Skip to content

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 04:35
· 29 commits to main since this release

中文说明

  • 可配置的工具白名单:在 插件 页本插件行新增配置页(位置与 dsh-subagent-default-model 的配置页相同),按行填写除 send_message 之外允许旁问调用的工具名。执行期闸门每次调用都重读配置,改完对下一次旁问生效,不需要重新加载插件;留空保持原先的「只允许纯文字回答」(#22)。
  • 可配置的提示词:同一配置页可替换内置旁问提示词。工具权限说明与回传通道说明始终追加在末尾,自定义提示词无法让模型绕过闸门;send_message 也不在名单内,答案回传仍然只允许发给自己的父会话(#22)。
  • 保持主会话 prompt cache 不受影响:白名单与自定义提示词只改变末尾的用户消息,工具定义与系统提示词仍与主会话逐字节一致(#22)。
  • 提示词输入框预填内置文案:打开配置即可在原提示词上直接修改,不用面对空白框猜内置写了什么;把文案改回内置原文再保存等于恢复默认,不会把一份过期快照钉进用户配置(#22)。

English

  • Configurable tool whitelist: add a settings page on the plugin's row in Plugins (the same place as dsh-subagent-default-model's configuration) where a comma-free, one-per-line list of tool names widens what a side question may call. The execution-time guard reads the whitelist on every call, so changes apply to the next side question without reloading the plugin. Empty keeps the previous text-only behaviour (#22).
  • Configurable prompt: the same page can replace the built-in side-question prompt. The tool-permission sentence and the reply-channel sentence are always appended, so a custom prompt cannot talk the model past the guard, and send_message stays outside the whitelist so returning an answer is still bound to the parent session (#22).
  • Keep parent prompt cache intact: the whitelist and custom prompt only change the trailing user message; tool definitions and system prompt stay byte-identical to the main conversation (#22).
  • Pre-fill prompt box with built-in text: opening settings shows the actual prompt to edit in place instead of a blank box. Saving it unchanged restores the default rather than pinning a stale snapshot into configuration (#22).