dsh-chief 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.en.md +28 -13
- package/README.md +27 -12
- package/api-routes.js +1274 -0
- package/archive-cabinets.js +766 -0
- package/archive-core.js +761 -0
- package/archive-dossiers.js +1185 -0
- package/archive-precipitated.js +428 -0
- package/archives.js +63 -2991
- package/auto-continue.js +11 -1
- package/board-actions.js +1879 -0
- package/board-schema.js +580 -0
- package/board-store.js +392 -0
- package/chief-approvals.js +841 -0
- package/chief-archives.js +905 -0
- package/chief-commands.js +2513 -0
- package/chief-compaction.js +591 -0
- package/chief-executor.js +859 -153
- package/chief-models.js +578 -0
- package/chief-network.js +720 -0
- package/chief-review.js +1064 -0
- package/chief-state.js +1777 -0
- package/chief-view.js +553 -0
- package/chief.js +94 -7492
- package/client.js +11959 -10923
- package/digest.js +8 -8
- package/index.js +154 -6095
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/model-tools.js +755 -0
- package/package.json +48 -17
- package/runtime-hooks.js +629 -0
- package/subagent-runtime.js +1399 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,57 @@ All notable changes to **`dsh-chief`** (**DSH 参谋长**) will be documented in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.3.0] - 2026-11-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **模块化架构拆分(减少单文件依赖)**:将 4 个超长单体文件拆分为 **29 个后端 ESM 模块 + 16 个前端源码模块**,保持 `index.js`、`chief.js`、`archives.js`、`client.js` 公开导出 100% 兼容,强制零 `export let/var` 可变导出、无环依赖,并配套 `ARCHITECTURE.md`、`scripts/build-client.mjs` 与 `.github/workflows/ci.yml` 双版本 Node (22 / 24) CI 门禁。
|
|
12
|
+
- **授权/提权后自动续跑 (`resumeTasks`)**:用户点击「允许本次操作」或完成提权审批后,按轻量恢复账本(30 分钟 TTL + 最大深度熔断)自动续接未完成的多步参谋任务,拒绝或过期自动取消不空转。
|
|
13
|
+
- **独立只追加审计账本 (`chief-audit.jsonl`)**:所有权限判定、审批放行/拒绝与安全拦截均独立追加落盘至 `chief-audit.jsonl`,不受状态文件截断影响。
|
|
14
|
+
- **顶栏常驻版本号与对话流筛选**:参谋长标题栏常驻展示当前版本徽章(`v1.3.0`);参谋页支持 **`全部 / 💬 问答 / 📋 回执`** 视觉筛选,并将待定建议收拢至顶部统一「`▶ 执行建议`」批量执行。
|
|
15
|
+
|
|
16
|
+
### Security
|
|
17
|
+
- **命令与内容安全卫兵归一化**:`chief-executor.js` 在安全检查前统一执行 NFKC 规范化、PowerShell `-EncodedCommand` 解码、引号拼接还原、引号内反斜杠(如 `".\"env`)与 CMD `^` 插入符折叠、以及 `git` / `npm` 子命令提取;`checkForbiddenBounds` 同步覆盖 `write_file` / `edit_file` / 递话参数正文。
|
|
18
|
+
- **凭据路径与 NTFS ADS 拦截**:拦截工作区外越界写入、凭据符号链接及 NTFS Alternate Data Streams(如 `safe.txt:.env`)。
|
|
19
|
+
- **审批快照哈希锁与失败默认拒绝**:待批操作绑定 SHA-256 `payloadHash`,拦截篡改与重放审批并全部记入审计;同源 HTTP `guard()` 检测到连接守卫异常时 fail-closed 返回 `403`。
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- **存储层并发锁与原子写鲁棒性加固**:`board-store.js`、`chief-state.js`、`archive-core.js` 统一引入跨进程/跨工作线程 `O_EXCL` 自旋锁与 `threadId` 唯一临时文件路径,把 Windows NTFS 瞬态 `EPERM` / `EACCES` / `EBUSY` 纳入随机抖动等待,并对 `fs.renameSync` 增加瞬态重试,消除高并发多线程场景下的丢写风险。
|
|
23
|
+
- **模型上下文窗口异步回写**:`subagent-runtime.js` 兼容同步与异步 `resolveModelInfo` 查询,缓存并及时更新会话 Token 窗口统计。
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- **修复关闭右侧面板后每 3.2 秒自动弹回与假 Toggle**:区分首次启动自动挂载与用户手动收起状态,支持底部入口点击真实折叠/展开。
|
|
27
|
+
- **修复档案页「一键收纳入柜」无响应与未刷新**:补齐会话看板、根会话看板与横幅显式指定共享便签三路收纳,自动对疑似密钥串执行 `[REDACTED]` 脱敏入柜,并将最新 `board`、`archives` 与分柜实时计数即时同步至前端状态。
|
|
28
|
+
|
|
29
|
+
## [1.2.1] - 2026-11-17
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
#### 🛡️ 四档会话权限与逐项操作授权 (`chief-executor.js`)
|
|
34
|
+
- **四档会话权限**:`advisor`(只读 · 默认)/ `assistant`(助手)/ `strategist`(逐项授权)/ `chief`(高自主)。
|
|
35
|
+
- **新会话一律只读起步**:新开窗口与跨窗投递进来的会话统一落在 `advisor`,只观察、只分析、只给方案,不改工作区、不打断主对话。
|
|
36
|
+
- **受控操作先弹窗**:改文件、跑命令、调子代理工作流前强制弹出「🛡️ 操作授权请求」,写明做什么 / 改谁 / 为什么 / 有什么影响。
|
|
37
|
+
- **单次授权不放永久权**:只有亲手点「允许本次操作」才执行;权限不够时模型主动打报告申请提权,不会自行升档。
|
|
38
|
+
- **提权申请闭环**:新增 `request_permission_elevation` 执行工具与 `chief_board permission.request` 动作,弹窗展示申请方、原因与目标档位,高自主档申请时可选择只提到逐项授权档。
|
|
39
|
+
- **旧配置自动降级**:未经风险勾选校验的旧版或异常配置一律回落到 `advisor`。
|
|
40
|
+
|
|
41
|
+
#### 🔒 统一安全流水线与审计日志
|
|
42
|
+
- **6 级流水线**:`用户模式 → 操作请求 → 安全卫兵硬性规则 → 权限判定 → 执行器 → 审计日志`。
|
|
43
|
+
- **红线对全档位硬兜底**:删库、`git reset --hard`、`.env` 与密钥泄露、全局禁止红线不因放权而松开。
|
|
44
|
+
- **高自主档先读风险**:进入前强制弹出「⚠️ 高权限模式风险告知」并勾选确认,后端复核 `confirmedChiefRisk === true`,切回低档或新建对话后自动失效。
|
|
45
|
+
- **全程留审计账本**:权限判定与执行结果均写入会话审计日志,支持前端弹窗检索。
|
|
46
|
+
- **随时急停**:输入栏红色 `⏹ 急停` 一键切断后台自驱,回到人工接管。
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
- **`⚡ 主动强介入` 随档位差异化**:
|
|
50
|
+
- `advisor`:仅只读巡检诊断与建议输出,不改写工作区,不注入 `@lead` 强推指令。
|
|
51
|
+
- `assistant`:仅自动维护参谋记忆、档案与建议卡,不干预主对话执行流。
|
|
52
|
+
- `strategist`:每轮强介入产生的关键受控动作、递话与压缩均队列化,逐条弹出授权请求,允许后单次执行。
|
|
53
|
+
- `chief`:高自主闭环督导(直控主对话与子代理、纠偏、压缩前抢救与 `auto-continue.js` 续跑),配合死循环熔断与人工结项门禁。
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
- **修复「🚀 新建窗口并部署参谋长」按钮在深色与标准主题下发白看不清文字**:原 `--dnb-accent` 绑定宿主 `--dsw-alias-brand-primary`(标准深色主题下接近白色 `#f9fafb`),白字按钮对比度崩掉;现改用 `--dsw-alias-state-business-primary` 并引入独立的 `--dnb-primary-bg` / `--dnb-primary-fg` 高对比主按钮令牌,同时补齐暗色 `<select option>` 下拉配色。
|
|
57
|
+
- **修复「🚀 新建窗口并部署参谋长」创建会话未绑定当前 `workspaceId`、不自动跳转新窗**:`transferChief('create')` 现会继承当前会话工作区,前端同时兼容 `sessions.open(created)` 切换视图。
|
|
58
|
+
|
|
8
59
|
## [1.2.0] - 2026-11-16
|
|
9
60
|
|
|
10
61
|
### Added
|
package/README.en.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
**AI manages AI, you take the day off — even when you're not there, it's watching.**
|
|
4
|
+
<sub>It dispatches the work, keeps the subagents on track, and closes out on its own; if it starts to drift, it stops first.</sub>
|
|
5
|
+
|
|
6
|
+
<img src="assets/chief-10s-compare.gif" alt="dsh-chief in 10 seconds: left is a plain long session — re-reading the same files, losing parameters to compaction, forgetting when you switch windows; right is Chief — loop breaker, parameters vaulted before compaction, archive carried across windows. Read-only by default." width="800" />
|
|
7
|
+
|
|
8
|
+
<sub>Read-only by default · asks before touching your workspace · `dsh plugin --profile web add dsh-chief`</sub>
|
|
9
|
+
|
|
10
|
+
<br />
|
|
11
|
+
|
|
3
12
|
<img src="assets/hero-banner.png" alt="DSH Chief (dsh-chief) v1.2.0 — Wish-Driven Multi-Agent Cockpit & 3-Tier Cold Vaults" width="100%" />
|
|
4
13
|
|
|
5
14
|
<br />
|
|
@@ -16,8 +25,8 @@
|
|
|
16
25
|
[](#)
|
|
17
26
|
[](LICENSE)
|
|
18
27
|
|
|
19
|
-
> **
|
|
20
|
-
>
|
|
28
|
+
> **Nobody watching, nothing breaking: state your intent in the Wishing Box and it runs the whole flow, stopping first if it starts to drift (`v1.3.0`)**
|
|
29
|
+
> Follows the same shape as DeepSeek's official **[SuperAgent (`dsh-superagent-prototype`)](https://github.com/deepseek-ai/dsh-superagent-prototype)** *Router + Isolated Workers* architecture to keep focus sharp and context clean.
|
|
21
30
|
|
|
22
31
|
[简体中文 (`README.md`)](README.md) · **English** · [Changelog (`CHANGELOG.md`)](CHANGELOG.md)
|
|
23
32
|
|
|
@@ -27,9 +36,11 @@
|
|
|
27
36
|
|
|
28
37
|
## 🔗 Core Highlights Wired Into DSH Runtime
|
|
29
38
|
|
|
39
|
+
- **Modular Architecture & Concurrency Robustness (`v1.3.0`)**: Split from monolithic files into 29 backend + 16 frontend ES modules with acyclic DAG boundaries, `O_EXCL` spin-locks with Windows NTFS retry (`board-store`, `chief-state`, `archive-core`), fail-closed `guard()`, SHA-256 `payloadHash` approval verification, and append-only `chief-audit.jsonl`.
|
|
40
|
+
|
|
30
41
|
- **Persistent Router Cockpit**: Unifies the root coordinator, subagents, and linked DSH windows inside one **Full-Spread Pyramid DAG**—zero blind tab switching.
|
|
31
42
|
- **Native Split-Pane Streams (`subagentchat`)**: Click `分屏` on any subagent node to open DSH's native `sidebarRight.openResource` live stream.
|
|
32
|
-
- **
|
|
43
|
+
- **Read-only first, asks before acting (`chief-executor.js`)**: New and handed-off sessions start read-only — it observes and proposes first. Editing files, running commands, or steering subagents needs your per-action approval, with a confirmation popup and an audit log behind it.
|
|
33
44
|
- **Ready on Blank New Sessions**: Resolves workspace root via `workspaceRegistry` even before turn 1 in the main chat, and stages `@lead` relays cleanly in `pending-transfer.json`.
|
|
34
45
|
- **Objective Lock & Human Sign-Off**: Strong Intervention locks your Core Objective (`0 = ∞` turns supported), verifies `allowed` must-do items, and waits for your explicit **`✅ 批准结项`** click.
|
|
35
46
|
- **Cross-Isolation `✦ 智选压缩` & Flexible Thresholds**: Compacts via DSH `/compact` across Cordis service isolation (and wakes dormant agents via `sessionController.resolveAgent`), supporting `10%–95%`, `>= 8,000` tokens, or direct `"压缩吧"` commands.
|
|
@@ -57,9 +68,13 @@ Ordinary Todo plugins give you another scratchpad; always-on memory plugins floo
|
|
|
57
68
|
- **`dsh-chief`**: All three cold vaults remain **0 bytes / 0 tokens while sealed** (Precipitated Vault is double-blind to both Lead and Chief).
|
|
58
69
|
- **On-Demand Precision**: Injects only items explicitly spotlighted via **`📌 摆上桌面`** or flipped out via **`📤 取出`**.
|
|
59
70
|
|
|
60
|
-
### 4. Chat-Only "Mascot Copilots"
|
|
61
|
-
- **Typical Plugins**:
|
|
62
|
-
- **`dsh-chief`**:
|
|
71
|
+
### 4. Chat-Only "Mascot Copilots" — Or All-or-Nothing Yolo Modes
|
|
72
|
+
- **Typical Plugins**: Either you can only look, or one switch hands over everything and it quietly edits your files.
|
|
73
|
+
- **`dsh-chief`**: Read-only by default, and it asks before each escalation — it won't act up while you're away:
|
|
74
|
+
- **Read-only on every new session**: Observes, analyses, and proposes; never touches the workspace or takes over lead/subagent flows.
|
|
75
|
+
- **Asks before acting**: File edits, commands, and subagent steering pop an **Operation Approval Modal** (`what / on what / why / impact`) and run only after you allow that one action.
|
|
76
|
+
- **Second check for high autonomy**: Granting higher autonomy requires acknowledging the **High-Privilege Risk Notice** checkbox, then a backend check.
|
|
77
|
+
- **Take it back anytime**: The red **`⏹ 急停`** button hands control back to you immediately, and everything stays in the audit log.
|
|
63
78
|
|
|
64
79
|
### 5. Cramped Subagent Views & Verbal Rules Forgotten in 10 Turns
|
|
65
80
|
- **Typical Plugins**: Tiny scroll boxes hide blocked workers, and safety instructions scroll out of context.
|
|
@@ -74,7 +89,7 @@ Ordinary Todo plugins give you another scratchpad; always-on memory plugins floo
|
|
|
74
89
|
## 📸 Visual Tour (`v1.2.0` 7 High-DPI Views)
|
|
75
90
|
|
|
76
91
|
### 01 · Wish-Driven Chief Cockpit (`参谋` Tab)
|
|
77
|
-
- **
|
|
92
|
+
- **Guardrails & Tactical Bar**: Compact `+` trigger on the left with live pills above (`⚡ 强介入 0/♾️`, `✦ 智选压缩`, `🛡 红线哨兵`, `🔵 完全权限`, and `⏹ 急停`).
|
|
78
93
|
- **Clear Execution & Compaction Receipts**: Live status narrative, boundary approval cards, and visible `✦ 智选压缩` chat receipts side-by-side.
|
|
79
94
|
- **Handoff Sync Toggle**: `同步交接单` control right in the cockpit header.
|
|
80
95
|
|
|
@@ -92,9 +107,9 @@ Ordinary Todo plugins give you another scratchpad; always-on memory plugins floo
|
|
|
92
107
|
|
|
93
108
|
---
|
|
94
109
|
|
|
95
|
-
### 03 ·
|
|
110
|
+
### 03 · 0-Token Cold Vaults & Bidirectional Diff (`档案` Tab)
|
|
96
111
|
- **Strict Vault Switcher**: Toggle **💬 Session Cabinet**, **🌐 System Global Vault**, and **🏛️ Precipitated Cold Vault** cleanly from the top bar.
|
|
97
|
-
- **
|
|
112
|
+
- **Paperclip Organization, Four Levels**: Cabinets → Drawers → Gold / Silver / Copper paperclipped dossiers → Unfoldable points & sub-points.
|
|
98
113
|
- **Spotlight & Diff Tracking**: Tracks `Synced` / `Local Modified` / `Local Only` diffs; inject selectively via **`📌 摆上桌面`** or send multi-archive **combinatorial relays**.
|
|
99
114
|
|
|
100
115
|
<div align="center">
|
|
@@ -166,11 +181,11 @@ Ordinary Todo plugins give you another scratchpad; always-on memory plugins floo
|
|
|
166
181
|
Search **`dsh-chief`** inside [dshmarket](https://github.com/dsh-market/dsh-market) / DSH Plugin Market, or install via CLI (replace `desktop` with `web` for web profile):
|
|
167
182
|
|
|
168
183
|
```bash
|
|
169
|
-
# Option 1: Install from npm registry (recommended — fastest mirrors + auto-update notices)
|
|
184
|
+
# Option 1: Install the latest v1.3.0 from npm registry (recommended — fastest mirrors + auto-update notices)
|
|
170
185
|
dsh plugin --profile desktop add dsh-chief
|
|
171
186
|
|
|
172
|
-
# Option 2: Install
|
|
173
|
-
dsh plugin --profile desktop add https://github.com/gluztm/dsh-chief/releases/download/v1.2.
|
|
187
|
+
# Option 2: Install archived historical GitHub Release tarball (v1.2.1)
|
|
188
|
+
dsh plugin --profile desktop add https://github.com/gluztm/dsh-chief/releases/download/v1.2.1/dsh-chief-1.2.1.tgz
|
|
174
189
|
|
|
175
190
|
# Option 3: Install directly from GitHub repository
|
|
176
191
|
dsh plugin --profile desktop add github:gluztm/dsh-chief
|
|
@@ -189,7 +204,7 @@ dsh plugin --profile desktop add github:gluztm/dsh-chief
|
|
|
189
204
|
|
|
190
205
|
| Tool Name | Purpose | Key Actions |
|
|
191
206
|
| :--- | :--- | :--- |
|
|
192
|
-
| **`chief_board`** | Task DAG orchestration, step lists, archive search, inter-agent mail, smart compaction | `graph.plan`, `task.add`, `task.update`, `plan.set`, `cursor.set`, `mail.send`, `archive.save`, `archive.search`, `bounds.propose`, `context.compact` |
|
|
207
|
+
| **`chief_board`** | Task DAG orchestration, step lists, archive search, inter-agent mail, elevation request, smart compaction | `graph.plan`, `task.add`, `task.update`, `plan.set`, `cursor.set`, `mail.send`, `archive.save`, `archive.search`, `bounds.propose`, `permission.request`, `context.compact` |
|
|
193
208
|
| **`chief_memory`** | Session-scoped hot digest items (`decisions`, `progress`, `verify`, `risks`) | `list`, `get`, `add`, `update`, `remove` |
|
|
194
209
|
| **`chief_boundaries`** | Global thumbtack redlines (`📌`), must-do checks (`allowed`), and notes | `get`, `set`, `add`, `pin`, `remove` |
|
|
195
210
|
| **`chief_handoff`** | Generate self-contained cross-session Markdown handoff packets | `preview` / session relay |
|
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
**AI 管 AI,你当甩手掌柜 —— 你不在的时候,它也替你盯着。**
|
|
4
|
+
<sub>它自己派活、自己盯子代理、自己收口;跑偏了先熔断,不用你守着屏幕。</sub>
|
|
5
|
+
|
|
6
|
+
<img src="assets/chief-10s-compare.gif" alt="10 秒看懂 dsh-chief:左边是原生长会话——循环重读、压缩丢参数、跨窗失忆;右边是参谋长——一键熔断、参数先入柜、归档随取。默认只读起手" width="800" />
|
|
7
|
+
|
|
8
|
+
<sub>默认只读起手 · 越权改工作区会先问你 · `dsh plugin --profile web add dsh-chief`</sub>
|
|
9
|
+
|
|
10
|
+
<br />
|
|
11
|
+
|
|
3
12
|
<img src="assets/hero-banner.png" alt="DSH 参谋长 (dsh-chief) v1.2.0 — 许愿式一站式多代理指挥与三层冷库中枢" width="100%" />
|
|
4
13
|
|
|
5
14
|
<br />
|
|
@@ -16,8 +25,8 @@
|
|
|
16
25
|
[](#)
|
|
17
26
|
[](LICENSE)
|
|
18
27
|
|
|
19
|
-
>
|
|
20
|
-
>
|
|
28
|
+
> **不盯着也不出事:向右侧「✦ 许愿框」许下意图,它自己把流程跑完,跑歪了先拦住(`v1.3.0`)**
|
|
29
|
+
> 做法对齐 DeepSeek 官方 **[SuperAgent (`dsh-superagent-prototype`)](https://github.com/deepseek-ai/dsh-superagent-prototype)** 的「Router 统筹 + Workers 隔离执行」:把散装聊天窗收成一张常驻指挥台。
|
|
21
30
|
|
|
22
31
|
**简体中文** · [English (`README.en.md`)](README.en.md) · [更新日志 (`CHANGELOG.md`)](CHANGELOG.md)
|
|
23
32
|
|
|
@@ -27,9 +36,11 @@
|
|
|
27
36
|
|
|
28
37
|
## 🔗 与 SuperAgent 及 DSH 原生能力深度联动
|
|
29
38
|
|
|
39
|
+
- **模块化低耦合架构(`v1.3.0`)**:29 个后端与 16 个前端单一职责模块协同(无环依赖、零可变导出),搭配跨进程/多线程 `O_EXCL` 自旋锁与 `chief-audit.jsonl` 只追加审计账本,兼顾长期可维护性与高并发鲁棒性。
|
|
40
|
+
|
|
30
41
|
- **常驻指挥中枢**:把主对话、子代理和跨窗独立会话收拢到同一张**全铺开金字塔拓扑图**,不再在十几个黑盒标签页间来回切换。
|
|
31
42
|
- **原生分屏盯流 (`subagentchat`)**:任意子代理卡片点击「`分屏`」,直连 `sidebarRight.openResource` 拉开实时推理流。
|
|
32
|
-
-
|
|
43
|
+
- **默认只读,先看后动 (`chief-executor`)**:新开与接力的会话都从只读起手 —— 先观察、先出方案;要改工作区、跑命令、调度子代理,得逐项拿到你的允许,敏感动作弹窗确认并留审计日志。
|
|
33
44
|
- **空白新对话即开即用**:主对话尚未发送第一条消息时,自动定位当前工作区开工,或预埋待领包给即将开启的 `@lead`。
|
|
34
45
|
- **目标锁死 + 人类拍板结项**:强介入锁定核心目标(支持 `0 = ♾️` 无限轮),达标后核验 `allowed` 必做清单并等待人类点击「`✅ 批准结项`」。
|
|
35
46
|
- **✦ 智选压缩 + 灵活安全阈值**:支持 `✦ 智选压缩` 在阶段收口等主代理空闲后触发,也支持 `10%–95%` / `>= 8k` Token 阈值或直说「压缩吧」。
|
|
@@ -58,9 +69,13 @@
|
|
|
58
69
|
- **`dsh-chief` 解法**:三层冷库平时 **0 字节 / 0 Token 物理隔离**,沉淀库默认双盲不可见。
|
|
59
70
|
- **精准按需**:只有你点击「`📌 摆上桌面`」或「`📤 取出`」时才临时注入,点回封存即刻归零。
|
|
60
71
|
|
|
61
|
-
### 4.
|
|
62
|
-
-
|
|
63
|
-
- **`dsh-chief`
|
|
72
|
+
### 4. 只敢嘴上聊天的“吉祥物副驾”,一放权就裸奔
|
|
73
|
+
- **普通插件**:要么只能看不能动,要么一放权就全盘裸奔,改坏了你的文件你也不知道。
|
|
74
|
+
- **`dsh-chief` 解法**:默认只读,越权一项项问你 —— 你不管的时候它也不会乱来:
|
|
75
|
+
- **新会话一律只读**:只观察、只分析、只给方案,不碰工作区,也不接管主/子工作流。
|
|
76
|
+
- **动手前先申请**:改文件、跑命令、调度子代理这类操作,会弹 **「🛡️ 操作授权请求」**(做什么 / 对谁 / 为什么 / 影响),你点「允许本次操作」才执行。
|
|
77
|
+
- **高危档位二次确认**:给更高自主权之前,要先读 **「⚠️ 高权限模式风险告知」** 并勾选,后端再校验一次。
|
|
78
|
+
- **随时能收回**:红色 **「⏹ 急停」** 一按就切回人工接管,全程留下审计日志。
|
|
64
79
|
|
|
65
80
|
### 5. 多子代理黑盒迷宫 & 口头红线聊十轮就忘
|
|
66
81
|
- **普通插件**:窄视口列表反复拖拽,聊天里交代的红线随上下文滚出窗口。
|
|
@@ -152,7 +167,7 @@
|
|
|
152
167
|
> 启用「✦ 许愿框实权执行」「⚡ 主动强介入」「✦ 智选压缩」前,请务必牢记以下两条客观规律:
|
|
153
168
|
>
|
|
154
169
|
> 1. **能力下限靠本插件工程护栏兜底,能力上限完全取决于底层大模型**
|
|
155
|
-
> - 本插件通过 0-Token
|
|
170
|
+
> - 本插件通过 0-Token 冷隔离、默认只读越权先问、先落盘复核再压缩、轮数熔断与 `⏹ 急停` 守住安全下限。
|
|
156
171
|
> - 但多步工具规划、复杂代码洞察、强介入纠偏与重点提炼的上限,**完全看你为参谋长搭配的模型智商**。
|
|
157
172
|
> - 重度工程强烈建议给参谋长选配推理过硬的主力旗舰模型,勿对超轻量小模型抱有超出其推理上限的期待。
|
|
158
173
|
> 2. **切忌同时挂载过多“破坏对话模型脑子”的外部注入**
|
|
@@ -201,11 +216,11 @@ flowchart TB
|
|
|
201
216
|
在 DSH 已安装 [dshmarket](https://github.com/dsh-market/dsh-market) 后可直接搜索 **`dsh-chief`**(或 **`DSH 参谋长`**)点击安装,也可使用 CLI 一键装入(`web` 环境把 `desktop` 改为 `web`):
|
|
202
217
|
|
|
203
218
|
```bash
|
|
204
|
-
# 方式 1:通过 npm
|
|
219
|
+
# 方式 1:通过 npm 官方源安装最新版(v1.3.0,国内自动走镜像加速,支持后续检测升级)
|
|
205
220
|
dsh plugin --profile desktop add dsh-chief
|
|
206
221
|
|
|
207
|
-
# 方式 2
|
|
208
|
-
dsh plugin --profile desktop add https://github.com/gluztm/dsh-chief/releases/download/v1.2.
|
|
222
|
+
# 方式 2:安装历史归档 GitHub Release 预构建包(v1.2.1 归档快照)
|
|
223
|
+
dsh plugin --profile desktop add https://github.com/gluztm/dsh-chief/releases/download/v1.2.1/dsh-chief-1.2.1.tgz
|
|
209
224
|
|
|
210
225
|
# 方式 3:通过 GitHub 仓库源码直接安装
|
|
211
226
|
dsh plugin --profile desktop add github:gluztm/dsh-chief
|
|
@@ -228,7 +243,7 @@ dsh plugin --profile desktop add github:gluztm/dsh-chief
|
|
|
228
243
|
|
|
229
244
|
| 工具名 | 核心职责 | 典型高频动作 (`action`) |
|
|
230
245
|
| :--- | :--- | :--- |
|
|
231
|
-
| **`chief_board`** |
|
|
246
|
+
| **`chief_board`** | 驱动任务图、小任务板、冷档案检索、跨代理信箱、提权请示与协同压缩 | `graph.plan`、`task.add`、`task.update`、`plan.set`、`cursor.set`、`mail.send`、`archive.save`、`archive.search`、`bounds.propose`、`permission.request`、`context.compact` |
|
|
232
247
|
| **`chief_memory`** | 读写会话级高密度热记忆(决策 / 进展 / 验证 / 风险) | `list`、`get`、`add`、`update`、`remove` |
|
|
233
248
|
| **`chief_boundaries`** | 维护图钉全局红线(`📌`)、必做事项(`allowed`)与注意事项 | `get`、`set`、`add`、`pin`、`remove` |
|
|
234
249
|
| **`chief_handoff`** | 预览与生成自包含跨会话 Markdown 交接单 | `preview` / 新会话接力包 |
|
|
@@ -246,4 +261,4 @@ dsh plugin --profile desktop add github:gluztm/dsh-chief
|
|
|
246
261
|
|
|
247
262
|
## 📄 开源许可 (License)
|
|
248
263
|
|
|
249
|
-
基于 **[GNU Affero General Public License v3.0 (`AGPL-3.0-only`)](LICENSE)** 开源发布。欢迎使用、审计与提交 PR
|
|
264
|
+
基于 **[GNU Affero General Public License v3.0 (`AGPL-3.0-only`)](LICENSE)** 开源发布。欢迎使用、审计与提交 PR。
|