mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 02:30:22 +08:00
修复 Minimal 子代理与预览并发并发布 0.2.4
This commit is contained in:
1 parent
58adb081b9
commit
7beb2d2546
13 files changed
+375
-142
No files matched your search
@@ -62,7 +62,7 @@ DSH provides distinct execution modes with differing prompt structures and tool
|
||||
|
||||
### Minimal Mode
|
||||
- **Profile**: Minimal terminal assistant with an isolated scope registration.
|
||||
- **Coordination**: Uses an agent-scoped shadow override to supply the fused minimal persona, seamlessly releasing it upon deactivation.
|
||||
- **Coordination**: Preserves the persona text while injecting rules in the current agent scope, restoring the original prompt upon deactivation. `0.2.4` fixes assembly failures caused by duplicate persona registration in Minimal subagents with custom personas and preserves the native `structured_output` instructions required by structured subagents.
|
||||
|
||||
### Subagents & Structured Output
|
||||
- **Subagents**: Background child agents inherit the unrestrict rules of their parent mode.
|
||||
@@ -84,12 +84,14 @@ Computes a SHA-256 hash (first 16 hex characters) of the unrestrict text block,
|
||||
### Realtime Prompt Preview
|
||||
An RPC endpoint renders the exact, fully assembled prompt text, total line count, and byte size for each mode, ensuring complete transparency.
|
||||
|
||||
When refreshes or rechecks overlap, stale responses cannot overwrite the latest status or preview. The busy state remains active until all pending status operations finish.
|
||||
|
||||
---
|
||||
|
||||
## 5. Automated Testing
|
||||
|
||||
```sh
|
||||
# Run the 33-assertion test suite
|
||||
# Run the test suite
|
||||
pnpm test
|
||||
|
||||
# Dump fresh prompts from DSH source to update fixtures
|
||||
|
||||
@@ -62,7 +62,7 @@ DSH は複数の実行モードを備えており、プラグインはそれぞ
|
||||
|
||||
### Minimal(最小モード)
|
||||
- **特徴**:非常に軽量なプロンプト構成のエージェント。
|
||||
- **適応**:エージェントスコープでペルソナを適切に置換し、制限解除ルールを注入します。無効化時には自動的に元の最小ペルソナへ復帰します。
|
||||
- **適応**:現在のエージェントスコープでペルソナ本文を保持しながらルールを注入し、無効化時には元のプロンプトへ復帰します。`0.2.4` は、カスタムペルソナを持つ Minimal サブエージェントで重複登録によって組み立てが失敗する問題を修正し、構造化サブエージェントに必要な公式の `structured_output` 呼び出し指示を保持します。
|
||||
|
||||
### サブエージェントおよび構造化出力
|
||||
- **サブエージェント**:バックグラウンドで起動されるサブエージェントは親モードの制限解除設定を自動継承します。
|
||||
@@ -84,12 +84,14 @@ DSH 本体のバージョン更新によるプロンプト構造の変化を検
|
||||
### リアルタイムプロンプトプレビュー
|
||||
UI 上の「プレビューを表示」をクリックすることで、実際にモデルへ送信されるシステムプロンプトの全文、行数、バイトサイズをリアルタイムに確認できます。
|
||||
|
||||
更新や再確認が重なっても、古いリクエストの結果が最新の状態やプレビューを上書きすることはありません。処理中の表示は、保留中の状態操作がすべて完了するまで維持します。
|
||||
|
||||
---
|
||||
|
||||
## 5. 自動テストと検証
|
||||
|
||||
```sh
|
||||
# 33 項目のテストを実行
|
||||
# テストを実行
|
||||
pnpm test
|
||||
|
||||
# DSH 源码から最新プロンプトを抽出し fixtures を更新
|
||||
|
||||
@@ -64,7 +64,7 @@ DSH 支持多种工作模式,各模式下的提示词结构和工具调用策
|
||||
|
||||
### Minimal(极简模式)
|
||||
- **特点**:极简模式的系统提示词极其短小,且在底层使用了独立的作用域注册机制。
|
||||
- **适配方式**:在 agent 作用域上使用动态代理替换完整的角色设定,将破限规则精炼注入;关闭开关时自动释放代理,恢复极简原貌。
|
||||
- **适配方式**:在当前 agent 作用域中保留角色正文并注入规则,关闭开关时恢复原版。`0.2.4` 修复了带自定义角色的 Minimal 子代理因同名提示词重复注册而组装失败的问题,并保留结构化子代理所需的官方 `structured_output` 调用指引。
|
||||
|
||||
### 子代理(Subagent)与结构化输出(structured_output)
|
||||
- **子代理**:主智能体派生的所有后台子代理自动继承父模式的破限规则。
|
||||
@@ -86,6 +86,8 @@ DSH 支持多种工作模式,各模式下的提示词结构和工具调用策
|
||||
### 完整提示词预览
|
||||
插件提供了专门的 RPC 预览端点。用户在前端界面点击“查看预览”,即可实时获取当前模式即将发送给模型的真实系统提示词、总行数和字节大小,做到底层透明可见。
|
||||
|
||||
并发刷新或重新检查时,过期请求的结果不会覆盖最新状态与预览;忙碌状态保持到所有状态操作结束,避免请求尚未完成就提前解除。
|
||||
|
||||
---
|
||||
|
||||
## 5. 自动化测试与验证
|
||||
@@ -93,7 +95,7 @@ DSH 支持多种工作模式,各模式下的提示词结构和工具调用策
|
||||
仓库内置了完善的断言测试与集成验证脚本:
|
||||
|
||||
```sh
|
||||
# 运行全部规则断言测试(33 项测试)
|
||||
# 运行测试
|
||||
pnpm test
|
||||
|
||||
# 从 DSH 源码中重新抓取原版提示词并更新测试 fixtures
|
||||
|
||||
Reference in new issue
Block a user