mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 02:30:22 +08:00
适配 master 当前提示词组合
This commit is contained in:
1 parent
057e473a6c
commit
fdfecb09fc
18 files changed
+104
-143
No files matched your search
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user