适配 master 当前提示词组合

This commit is contained in:
yexi committed 2026-08-31 07:52:34 +08:00
1 parent 057e473a6c
commit fdfecb09fc
18 files changed
+104 -143

No files matched your search

+1 -2
View File
@@ -43,7 +43,6 @@ const appBoot = await importPackage('packages/boot/app-boot')
const cmdline = await importPackage('packages/boot/cmdline')
const { SessionId } = await importPackage('packages/core/session')
const { renderPrompt } = await importPackage('packages/core/system-prompt')
const { settingsNamespace } = await importPackage('packages/settings/settings')
const { applyChildComposition, childSessionMeta } = await importPackage('packages/subagent/subagent')
const rules = await import(pathToFileURL(join(pluginDir, 'src/rules.js')).href)
@@ -141,7 +140,7 @@ async function assemblePrompt(agent) {
}
async function setEnabled(enabled) {
await ctx.settings.update(settingsNamespace('unrestricted'), { enabled })
await ctx.settings.update('unrestricted', { enabled })
}
/** Poll until the predicate holds or the deadline passes. */