dsh-taskbridge 1.5.3 → 1.5.4
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 +8 -0
- package/README.md +8 -7
- package/codex/dsh-taskbridge.toml +35 -38
- package/docs/INTRODUCTION.md +2 -1
- package/docs/INTRODUCTION.zh.md +2 -1
- package/docs/codex-integration.md +8 -2
- package/docs/plugin-market.md +1 -1
- package/docs/releases/1.5.4.zh.md +25 -0
- package/docs/runtime-compatibility.md +1 -1
- package/docs/taskbridge-upgrade.md +1 -1
- package/docs/worker-permissions.md +1 -1
- package/package.json +2 -1
- package/src/codex/installer.js +3 -0
- package/src/http/execution-plane.js +34 -2
- package/src/index.d.ts +62 -5
- package/src/jobs/engine.js +96 -17
- package/src/jobs/history.js +166 -14
- package/src/jobs/task-descriptions.js +82 -0
- package/src/mcp/server.js +321 -41
- package/src/mcp/wait.js +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.4 — 任务记录保存与派工归属规则修复(2026-11-18)
|
|
4
|
+
|
|
5
|
+
- 保存任务已有标题和明确续接关系,重启后仍可读取,不推测旧记录缺失信息。
|
|
6
|
+
- 提交支持可选目标说明,审查支持可选完成说明;同次确认落盘后公开,最多2000 Unicode码点,保留中文、emoji与内部换行。
|
|
7
|
+
- 修复直接历史写入的脱敏后长度、异常读取裁剪幂等和旧审查结论补写保护,保留并发、超时、重试及快照保护。
|
|
8
|
+
- 补齐授权项目、执行目录、原生Workspace与Session的归属核查规则,说明新会话可能复用旧分组;不新增原生工作区路由。
|
|
9
|
+
- 保留正式1.5.3模板准确升级身份和自定义内容保护;规划节点、父子树及界面留待后续。详见docs/releases/1.5.4.zh.md。
|
|
10
|
+
|
|
3
11
|
## 1.5.3 — 验收展示、混合换行与指挥规则修复(2026-11-17)
|
|
4
12
|
|
|
5
13
|
- 验收摘要仅显示结论、时间与保存状态;完整意见在详情中阅读,未确认保存成功时不提前显示通过。
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DSH TaskBridge
|
|
2
2
|
|
|
3
|
-
> 当前版本:**1.5.
|
|
3
|
+
> 当前版本:**1.5.4**。本次小更新保存任务名称、续接关系、目标与完成说明,并补齐派工归属核查规则。详见[更新说明](docs/releases/1.5.4.zh.md)。
|
|
4
4
|
|
|
5
5
|
**让 Codex 指挥 DSH 工作,在 DSH 插件里选择执行所用的 API、模型和思考强度。**
|
|
6
6
|
|
|
@@ -58,7 +58,7 @@ dsh-taskbridge
|
|
|
58
58
|
也可以指定本次版本:
|
|
59
59
|
|
|
60
60
|
```text
|
|
61
|
-
dsh-taskbridge@1.5.
|
|
61
|
+
dsh-taskbridge@1.5.4
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
安装后启用 **DSH TaskBridge**,进入该插件的设置页面。若使用的区域镜像尚未同步新版本,可切换到 npm 官方源;本项目 GitHub Release 也提供 `.tgz` 安装包。
|
|
@@ -262,6 +262,7 @@ TaskBridge 自身无需 dsh-crew。执行任务使用的项目依赖仍按任务
|
|
|
262
262
|
| [会话放置与续接](docs/conversation-placement.md) | DSH 工作区命名、会话创建和同任务续接。 |
|
|
263
263
|
| [插件发现与更新](docs/plugin-market.md) | 自定义索引、npm 与 GitHub 安装来源。 |
|
|
264
264
|
| [旧名称迁移](docs/taskbridge-upgrade.md) | 从 DSH Delegate / TaskDispatch 升级。 |
|
|
265
|
+
| [1.5.4 更新说明](docs/releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
|
|
265
266
|
| [1.5.3 更新说明](docs/releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
|
|
266
267
|
| [1.5.2 更新说明](docs/releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
|
|
267
268
|
|
|
@@ -303,13 +304,13 @@ profile 是**应用保留的**:npm / `dsh plugin` CLI 对该 profile 的操作
|
|
|
303
304
|
Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式 profile 里执行 npm/pnpm
|
|
304
305
|
命令,也不要直接编辑其中的文件。
|
|
305
306
|
|
|
306
|
-
1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.5.
|
|
307
|
+
1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.5.4`**。
|
|
307
308
|
若中国大陆镜像尚未同步,先选择 npm 官方源再重试。安装后的显示名为 **DSH TaskBridge**。
|
|
308
309
|
也可以从本项目 Release 下载 `.tgz`,或在仓库根目录打包:
|
|
309
310
|
|
|
310
311
|
```bash
|
|
311
312
|
npm pack
|
|
312
|
-
# → dsh-taskbridge-1.5.
|
|
313
|
+
# → dsh-taskbridge-1.5.4.tgz
|
|
313
314
|
```
|
|
314
315
|
|
|
315
316
|
2. 使用本地包时,通过 **添加插件**入口选择下载或生成的 `.tgz`(或本仓库目录)完成安装。
|
|
@@ -323,7 +324,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
|
|
|
323
324
|
|
|
324
325
|
```bash
|
|
325
326
|
# 装进一个 profile(例:web)
|
|
326
|
-
dsh plugin --profile web add ./dsh-taskbridge-1.5.
|
|
327
|
+
dsh plugin --profile web add ./dsh-taskbridge-1.5.4.tgz && dsh plugin --profile web why dsh-taskbridge
|
|
327
328
|
|
|
328
329
|
# 启动(首次启动会自动把插件 bundle 追加到 dsh.profile.bundles)
|
|
329
330
|
dsh --profile web
|
|
@@ -336,7 +337,7 @@ dsh --profile web
|
|
|
336
337
|
### 说明与注意
|
|
337
338
|
|
|
338
339
|
- **不要装进你正在用的正式 profile 做试验。** 建议先用一次性 profile:
|
|
339
|
-
`dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.5.
|
|
340
|
+
`dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.5.4.tgz`,再把
|
|
340
341
|
`DSH_HOME` 指向临时目录做隔离验证。该命令同样只用于 CLI profile。
|
|
341
342
|
- 该包声明了 `@deepseek-ai/dsh-*` 的 peer,若你的包管理器默认自动安装 peer,
|
|
342
343
|
安装过程会尝试解析这些版本。可显式关闭:`npm_config_auto_install_peers=false`
|
|
@@ -771,7 +772,7 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
|
|
|
771
772
|
# 不要在 Desktop 的正式 profile 下执行下面的 CLI 命令。
|
|
772
773
|
|
|
773
774
|
# CLI web profile 的升级:换成本地新包或(将来)新版本
|
|
774
|
-
dsh plugin --profile web add ./dsh-taskbridge-1.5.
|
|
775
|
+
dsh plugin --profile web add ./dsh-taskbridge-1.5.4.tgz
|
|
775
776
|
|
|
776
777
|
# 导出:界面里"导出非敏感配置"按钮,或用只读 API
|
|
777
778
|
# GET /api/dsh-delegate/settings
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-taskbridge Codex companion — managed by the DSH TaskBridge plugin settings page.
|
|
2
2
|
# Editing this file turns it into an operator-owned file: the plugin then never
|
|
3
3
|
# overwrites or removes it, and reports it as "modified" instead.
|
|
4
|
-
version = "1.5.
|
|
4
|
+
version = "1.5.4"
|
|
5
5
|
|
|
6
6
|
name = "dsh-taskbridge"
|
|
7
7
|
description = "Dispatch an explicitly assigned implementation task to DSH through the dsh-taskbridge MCP tools, then return evidence for Codex review."
|
|
@@ -39,6 +39,7 @@ P0: COMMANDER-OWNED PLANNING AND WORK PACKETS (for authorized implementation tas
|
|
|
39
39
|
chosen approach and contracts, owned files or modules, constraints, and concrete
|
|
40
40
|
acceptance checks. Include only the context needed for that work. A roadmap may
|
|
41
41
|
explain dependencies but does not authorize the worker to implement future packets.
|
|
42
|
+
Record GitHub and existing-code reuse choices before dispatch; do not leave them to the worker.
|
|
42
43
|
The worker makes routine implementation choices inside this boundary; product
|
|
43
44
|
scope, cross-packet design and changes to the plan stay with the commander.
|
|
44
45
|
4. Follow the dependency order: dispatch, wait silently, review the delivered diff
|
|
@@ -73,25 +74,16 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
73
74
|
the preflight may still be read for reporting, but nothing may be submitted.
|
|
74
75
|
2. APPLY THE ISOLATION DECISION. `delegate_preflight` answers with an `isolation`
|
|
75
76
|
of `worktree`, `shared` or `block` and a stable `reason` code.
|
|
76
|
-
2a. PREFLIGHT IS PER CHAIN, NOT PER DISPATCH. Preflight a NEW task
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
the engine: every submission still carries the ORIGINAL source `workspacePath` plus
|
|
87
|
-
the latest `continueFromTaskId`, and the engine still re-checks ownership, paths, the
|
|
88
|
-
original checkout and the Session on every submit. Never route a refused or blocked
|
|
89
|
-
chain through a new task to get past the refusal.
|
|
90
|
-
2b. For an explicit follow-up, submit with the parent's original source `workspacePath`
|
|
91
|
-
— and re-run `delegate_preflight` only when needed under 2a (source changed, work
|
|
92
|
-
unrelated, identity/isolation refusal, or an engine mismatch). A verified chain is NOT
|
|
93
|
-
preflighted mechanically every round. The engine pins the parent's isolation, so do
|
|
94
|
-
not choose a new mode from any fresh preflight result.
|
|
77
|
+
2a. PREFLIGHT IS PER CHAIN, NOT PER DISPATCH. Preflight a NEW task as above.
|
|
78
|
+
For a CONTINUATION with the same SOURCE, goal and boundaries and no identity or
|
|
79
|
+
isolation anomaly, reuse the already-verified preflight facts. The worker's uncommitted
|
|
80
|
+
candidate is expected, not a fresh dirty-tree decision. Re-verify when the source changed, work
|
|
81
|
+
is unrelated, an identity/isolation refusal came back, or the engine reports a
|
|
82
|
+
mismatch. Never start a new task to bypass a blocked or refused chain.
|
|
83
|
+
2b. A follow-up submits the parent's original source `workspacePath` plus the latest
|
|
84
|
+
`continueFromTaskId`; re-run `delegate_preflight` only when needed under 2a. A verified
|
|
85
|
+
chain is NOT preflighted mechanically every round. The engine still re-checks ownership, paths, the
|
|
86
|
+
original checkout and the Session, and pins the parent's isolation.
|
|
95
87
|
- `isolation: "worktree"` (reason `PREFLIGHT_CLEAN_REPOSITORY`) — the repository
|
|
96
88
|
is clean. Dispatch with the worktree isolation configured in the DSH TaskBridge
|
|
97
89
|
plugin settings; do not change it.
|
|
@@ -170,24 +162,29 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
170
162
|
channel's normal single-call approval. Never claim member approvals are bridged,
|
|
171
163
|
never widen `owns`, never change the host's policy.
|
|
172
164
|
4b. TASK THREADS. Every submission starts a NEW DSH task conversation by default,
|
|
173
|
-
even
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
165
|
+
even in a previously used Workspace. This means a new Session, NOT necessarily a new
|
|
166
|
+
native Workspace. Pass `continueFromTaskId` ONLY when this submission is a follow-up
|
|
167
|
+
to THAT same task: use the latest prior task id, its immediate predecessor, and keep the
|
|
168
|
+
same DSH Workspace and Session. Omit `continueFromTaskId` entirely for an unrelated task;
|
|
169
|
+
never reuse a task just to keep context. Unknown, running,
|
|
170
|
+
removed, differently-sourced or failed-without-conversation parents are refused.
|
|
171
|
+
Submit the ORIGINAL authorized source `workspacePath`, never `execution.workspacePath`.
|
|
172
|
+
The plugin resolves and proves the original managed tree internally, pins the parent's
|
|
173
|
+
isolation and reuses its Session. Do not set a new isolation override or accept another
|
|
174
|
+
tree. If the original tree cannot be proved, report the refusal; do not retry as a new task.
|
|
175
|
+
4c. NATIVE PLACEMENT: the parent commander must check it too.
|
|
176
|
+
Distinguish SOURCE, execution directory, native Workspace (id/title), and Session (id).
|
|
177
|
+
`title` names only a newly created Workspace. Same-path execution, especially `shared`,
|
|
178
|
+
may reuse an old Workspace/title with a NEW Session. Never promise a fresh Workspace
|
|
179
|
+
from a new task alone. Before dispatch, read known receipts or available read-only
|
|
180
|
+
placement facts. If unavailable, record UNKNOWN and explain possible reuse in the shared
|
|
181
|
+
decision. If required grouping cannot be met, explain that limit before dispatch.
|
|
182
|
+
A submit may precede placement. At the first actionable wait/result with placement,
|
|
183
|
+
verify source, execution path, isolation, workspaceId/title, sessionId and new/continued
|
|
184
|
+
identity before review or another dispatch; do not poll a live run for this check.
|
|
185
|
+
Report mismatches and pause dependent dispatches until resolved or the operator permits
|
|
186
|
+
the known placement. Do not disguise it with another SOURCE, fake paths, unrelated
|
|
187
|
+
continuations, forced renaming or moving the operator's Sessions.
|
|
191
188
|
5. SUBMIT, THEN WAIT. Keep the returned taskId and call `delegate_wait({ taskId })` with
|
|
192
189
|
that same taskId and NO `waitSeconds` argument. Repeat `delegate_wait` on the SAME
|
|
193
190
|
taskId until it returns one of the reasons below. Do NOT poll `delegate_result` or
|
package/docs/INTRODUCTION.md
CHANGED
|
@@ -56,7 +56,7 @@ dsh-taskbridge
|
|
|
56
56
|
To install this specific release:
|
|
57
57
|
|
|
58
58
|
```text
|
|
59
|
-
dsh-taskbridge@1.5.
|
|
59
|
+
dsh-taskbridge@1.5.4
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Enable **DSH TaskBridge** and open its settings. Use the official npm registry if a regional mirror has not synchronized yet. GitHub Releases also provide `.tgz` packages.
|
|
@@ -260,6 +260,7 @@ The goal for 2.0 is to let more commanders use the execution models configured i
|
|
|
260
260
|
| [Conversation placement](conversation-placement.md) | Workspace naming, conversation creation and explicit continuation. |
|
|
261
261
|
| [Plugin discovery and updates](plugin-market.md) | Custom indexes, npm and GitHub installation sources. |
|
|
262
262
|
| [Migration](taskbridge-upgrade.md) | Upgrading from DSH Delegate / TaskDispatch. |
|
|
263
|
+
| [1.5.4 release notes](releases/1.5.4.zh.md) | Persisted task records, explicit goals and summaries, and placement checks. |
|
|
263
264
|
| [1.5.3 release notes](releases/1.5.3.zh.md) | Review summaries, full-note layout, mixed line endings, and commander planning rules. |
|
|
264
265
|
| [1.5.2 release notes](releases/1.5.2.zh.md) | The introduction update and its validation scope. |
|
|
265
266
|
|
package/docs/INTRODUCTION.zh.md
CHANGED
|
@@ -56,7 +56,7 @@ dsh-taskbridge
|
|
|
56
56
|
也可以指定本次版本:
|
|
57
57
|
|
|
58
58
|
```text
|
|
59
|
-
dsh-taskbridge@1.5.
|
|
59
|
+
dsh-taskbridge@1.5.4
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
安装后启用 **DSH TaskBridge**,进入该插件的设置页面。若使用的区域镜像尚未同步新版本,可切换到 npm 官方源;本项目 GitHub Release 也提供 `.tgz` 安装包。
|
|
@@ -260,6 +260,7 @@ TaskBridge 自身无需 dsh-crew。执行任务使用的项目依赖仍按任务
|
|
|
260
260
|
| [会话放置与续接](conversation-placement.md) | DSH 工作区命名、会话创建和同任务续接。 |
|
|
261
261
|
| [插件发现与更新](plugin-market.md) | 自定义索引、npm 与 GitHub 安装来源。 |
|
|
262
262
|
| [旧名称迁移](taskbridge-upgrade.md) | 从 DSH Delegate / TaskDispatch 升级。 |
|
|
263
|
+
| [1.5.4 更新说明](releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
|
|
263
264
|
| [1.5.3 更新说明](releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
|
|
264
265
|
| [1.5.2 更新说明](releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
|
|
265
266
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Codex integration contract
|
|
2
2
|
|
|
3
|
-
Status: implemented in 1.5.
|
|
3
|
+
Status: implemented in 1.5.4 (persisted task descriptions, commander planning, placement checks, and managed template upgrades). This automatic installer covers Codex, the currently supported client. Claude Code and Claude Desktop integration is planned for 2.0; see the separate roadmap.
|
|
4
4
|
|
|
5
5
|
1.5.1 refreshes the manifest on each activation, resolves a normal linked home root, and upgrades exact shipped/candidate templates while preserving custom content. See [1.5.1 notes](releases/1.5.1.zh.md).
|
|
6
6
|
|
|
@@ -48,6 +48,12 @@ not apply to custom wrappers, other directories, or automatic startup refresh.
|
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
51
|
+
## Explicit task descriptions (1.5.4)
|
|
52
|
+
|
|
53
|
+
`delegate_submit` and `POST /tasks` accept optional `goalDescription`; `delegate_review` and `POST /tasks/review` accept optional `completionSummary`. Both trim surrounding whitespace, preserve internal newlines, and allow at most 2000 Unicode code points before and after redaction. Missing or blank strings are absent; explicit null and other non-strings are refused. No value is inferred from prompts or earlier tasks.
|
|
54
|
+
|
|
55
|
+
The goal is fixed at task creation. The completion summary exists only under `hostAcceptance.completionSummary`, is part of the review identity with decision and note, and becomes public only after the same review write is durable. A saved review cannot gain or change a summary. Compact waits return only its character count and an omission flag; full results contain the prose. History retains titles and explicit continuation references without inventing missing old data.
|
|
56
|
+
|
|
51
57
|
## 1. What is owned, and what is not
|
|
52
58
|
|
|
53
59
|
| Path | Owner | The plugin may | The plugin may never |
|
|
@@ -526,7 +532,7 @@ successful diagnosis.
|
|
|
526
532
|
```jsonc
|
|
527
533
|
{
|
|
528
534
|
"codexHome": "…",
|
|
529
|
-
"packageVersion": "1.5.
|
|
535
|
+
"packageVersion": "1.5.4",
|
|
530
536
|
"boundary": { "blocked": false, "link": null, "unknown": false, "home": "directory", "agents": "directory" },
|
|
531
537
|
"agent": {
|
|
532
538
|
"path": "…", "state": "installed", "installed": true, "managed": true,
|
package/docs/plugin-market.md
CHANGED
|
@@ -15,7 +15,7 @@ https://ranranyya.github.io/dsh-taskbridge/index.json
|
|
|
15
15
|
3. 搜索 **DSH TaskBridge** 或 **dsh-taskbridge**。
|
|
16
16
|
4. 安装确认框应显示本项目 GitHub 仓库和精确提交。核对后安装,不要改填别人的 `dsh-delegate` 或 `dsh-dispatch` npm 包。
|
|
17
17
|
|
|
18
|
-
当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.5.
|
|
18
|
+
当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.5.4`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
|
|
19
19
|
|
|
20
20
|
## 新版本
|
|
21
21
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 1.5.4 — 任务记录保存与派工归属规则修复
|
|
2
|
+
|
|
3
|
+
日期:2026-11-18(Asia/Shanghai)。基于1.5.3的小更新,保留已有接口和执行流程。
|
|
4
|
+
|
|
5
|
+
## 本次更新
|
|
6
|
+
|
|
7
|
+
- **重启后保留任务名称与续接关系。** 保存执行时已有的标题和明确的前轮任务引用,不从旧输出猜测缺失信息。
|
|
8
|
+
- **明确记录目标与实际完成内容。** 提交可附带`goalDescription`;审查可附带`completionSummary`,后者与审查结论同次保存,确认落盘后才公开。两项均为可选说明,最多2000个Unicode码点,支持中文、emoji及内部换行;类型错误或脱敏后超长会明确拒绝,不静默缩短新输入。
|
|
9
|
+
- **保护已保存的审查事实。** 相同结论、意见和完成说明可幂等重放;只修改或事后补写完成说明也会被拒绝。修复直接历史写入的脱敏后长度边界,保留并发、超时、晚成功、失败重试和旧快照保护。
|
|
10
|
+
- **补齐派工归属核查规则。** 区分授权项目、执行目录、DSH原生Workspace和Session;新会话不保证新工作区。要求提前说明可能复用旧分组,并在取得实际归属后核对;发现不符先报告,不擅自改名或搬会话。
|
|
11
|
+
- **保留受管升级和自定义规则。** 登记正式1.5.3模板的原始身份,支持现有受管规则安全升级;用户修改继续保留。
|
|
12
|
+
|
|
13
|
+
## 更新方法
|
|
14
|
+
|
|
15
|
+
在DSH的插件管理中添加`dsh-taskbridge@1.5.4`,或安装GitHub Release中的`dsh-taskbridge-1.5.4.tgz`。自定义插件索引也会在部署成功后指向本次固定提交。镜像尚未同步时可选择npm官方源。
|
|
16
|
+
|
|
17
|
+
启用新版后确认Codex集成就绪,重新加载Codex以读取新规则及工具说明。旧聊天可能仍持有旧说明;已修改的受管规则不会被自动覆盖。
|
|
18
|
+
|
|
19
|
+
## 验证与边界
|
|
20
|
+
|
|
21
|
+
发布前检查版本一致性、原始全库回归、安装包内容、包中MCP与临时环境的规则升级。最终计数和包校验值随Release验证摘要及SHA256附件提供;公开发布与本机安装分别记录。
|
|
22
|
+
|
|
23
|
+
本版只保存明确提供的任务信息,不恢复升级前已丢失的标题或说明,不改变历史容量轮换。紧凑等待仅返回完成说明的长度和省略标记,正文通过完整结果读取。
|
|
24
|
+
|
|
25
|
+
派工规则属于协调约定,不是强制执行拦截;当前仍可能按目录复用旧原生Workspace,本版没有增加同目录独立分组接口。规划节点、父子任务树和树形界面尚未实现。提供方、模型、思考强度、权限及静默等待流程保持原有选择;没有新增依赖或节省比例声明。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Runtime compatibility
|
|
2
2
|
|
|
3
|
-
Build 1.5.
|
|
3
|
+
Build 1.5.4 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
|
|
4
4
|
host-provided `@deepseek-ai/dsh-*` peers as `*`, and publishes no DSH engine range
|
|
5
5
|
in the custom plugin index. The plugin uses runtime capability checks rather than
|
|
6
6
|
rejecting a host solely by its version number. Node.js `>=24` is still required.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
1. 等待当前任务结束,关闭旧插件的本机调用开关。
|
|
8
8
|
2. 在 DSH 插件管理中停用并卸载本项目旧 `dsh-delegate` 或 `dsh-taskdispatch` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;DSH 若提供删除数据选项,不要勾选。新旧包不能同时启用。
|
|
9
|
-
3. 在“添加插件”中输入 **`dsh-taskbridge@1.5.
|
|
9
|
+
3. 在“添加插件”中输入 **`dsh-taskbridge@1.5.4`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.5.4.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
|
|
10
10
|
4. 打开 **DSH TaskBridge** 配置页,核对 API、模型、思考强度和总开关。数据目录与旧版相同;安装前关闭旧开关,避免恢复之前保存的开启状态。
|
|
11
11
|
5. 在 Codex 集成中点击“安装 / 更新 TaskBridge 智能体”,更新智能体及 MCP,然后重新加载 Codex。未修改的旧 `dsh-delegate.toml` 会迁移为 `dsh-taskbridge.toml`;修改过的文件保留。只需修复 MCP 时可使用“仅修复 MCP 配置”。启动自检不会接管其他安装目录。
|
|
12
12
|
6. 若添加过旧索引,改用 `https://ranranyya.github.io/dsh-taskbridge/index.json`。
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Worker session permissions (1.5.
|
|
1
|
+
# Worker session permissions (1.5.4; historical 1.0.0–1.2.0 audits retained)
|
|
2
2
|
|
|
3
3
|
This document describes the worker sandbox, per-call approval and ordinary-question boundaries. The standing worker sandbox remains `workspace-write`; a question answer never grants access. A single approved operation does not authorize another call.
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-taskbridge",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "让 Codex 指挥 DSH:在插件里选择已有 API、执行模型与思考强度,完成派工、静默等待、权限审批、集中审查和原会话续接。支持一键配置 Codex 智能体、可选模型复审与设置自动保存。Claude Code / Claude Desktop 接入预计在 2.0 上线。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"docs/releases/1.5.3-test.1.zh.md",
|
|
85
85
|
"docs/releases/1.5.3-test.2.zh.md",
|
|
86
86
|
"docs/releases/1.5.3.zh.md",
|
|
87
|
+
"docs/releases/1.5.4.zh.md",
|
|
87
88
|
"docs/assets/*.png"
|
|
88
89
|
],
|
|
89
90
|
"dsh": {
|
package/src/codex/installer.js
CHANGED
|
@@ -468,6 +468,9 @@ export const KNOWN_AGENT_TEMPLATES = [
|
|
|
468
468
|
// something unknown and stays the operator's file.
|
|
469
469
|
{ version: '1.5.3-test.2', sha256: '2a9058424f33b0a022b05aedc3ebfcf35c0cb10eac498b754597dd7f90d3c775' },
|
|
470
470
|
{ version: '1.5.3-test.2', sha256: '77a4e83459ef605826cfaa1057d19058c4ae36a5ed6080ebd70c88a0a3dd69fb' },
|
|
471
|
+
// Exact published 1.5.3 template (CRLF/LF), preserved before the placement-rule update.
|
|
472
|
+
{ version: '1.5.3', sha256: 'd26428333420f6e37d6a2ed5b953268bb99642eec4c08d46c402002ca6793df8' },
|
|
473
|
+
{ version: '1.5.3', sha256: '12c1caac42d461b143e23b0b1e1218e32a735ee665ce13ac56ebef7c0f46cfd3' },
|
|
471
474
|
];
|
|
472
475
|
|
|
473
476
|
/** The `version = "…"` line of an agent file, at column 0. */
|
|
@@ -22,6 +22,10 @@ import { classifyError, HttpError, readJsonBody, sendJson } from '../http/respon
|
|
|
22
22
|
import { preflightWorkspace } from '../workspace/preflight.js';
|
|
23
23
|
import { redactText } from '../config/redact.js';
|
|
24
24
|
import { REVIEW_NOTE_MAX_CHARS, normalizeReviewNote, reviewNoteOverflow } from '../jobs/review-note.js';
|
|
25
|
+
import {
|
|
26
|
+
TASK_DESCRIPTION_FIELDS,
|
|
27
|
+
canonicalTaskDescription,
|
|
28
|
+
} from '../jobs/task-descriptions.js';
|
|
25
29
|
|
|
26
30
|
/** Route prefix owned by this plane. Deliberately not under `/api`. */
|
|
27
31
|
export const EXECUTION_PREFIX = '/dsh-delegate/x';
|
|
@@ -238,6 +242,19 @@ async function submitTask({ req, res, connection, deps }) {
|
|
|
238
242
|
const overrides = body.agentTeams === undefined
|
|
239
243
|
? body.overrides
|
|
240
244
|
: { ...(body.overrides ?? {}), agentTeams: body.agentTeams };
|
|
245
|
+
// Checked here as well as in the engine: a bad or redaction-lengthened goal is refused
|
|
246
|
+
// before a task, slot or consumed grant exists.
|
|
247
|
+
const goal = canonicalTaskDescription(body.goalDescription, TASK_DESCRIPTION_FIELDS.goal, redactText);
|
|
248
|
+
if (goal.ok === false) {
|
|
249
|
+
throw new HttpError(400, 'TASK_GOAL_DESCRIPTION_INVALID', goal.refusal.message, {
|
|
250
|
+
field: goal.refusal.field,
|
|
251
|
+
limit: goal.refusal.limit,
|
|
252
|
+
length: goal.refusal.length,
|
|
253
|
+
unit: goal.refusal.unit,
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
// The canonical value travels on; the engine re-derives the same form (a no-op).
|
|
257
|
+
const goalField = goal.value === null ? {} : { goalDescription: goal.value };
|
|
241
258
|
if (deps.engine.authorizationMode === 'switch') {
|
|
242
259
|
const task = await deps.engine.start({
|
|
243
260
|
connectionId: connection.connectionId,
|
|
@@ -246,6 +263,7 @@ async function submitTask({ req, res, connection, deps }) {
|
|
|
246
263
|
...(body.title === undefined ? {} : { title: body.title }),
|
|
247
264
|
overrides,
|
|
248
265
|
...(continueFromTaskId === undefined ? {} : { continueFromTaskId }),
|
|
266
|
+
...goalField,
|
|
249
267
|
});
|
|
250
268
|
sendJson(res, 202, { ok: true, task });
|
|
251
269
|
return;
|
|
@@ -264,6 +282,7 @@ async function submitTask({ req, res, connection, deps }) {
|
|
|
264
282
|
...(body.title === undefined ? {} : { title: body.title }),
|
|
265
283
|
overrides,
|
|
266
284
|
...(continueFromTaskId === undefined ? {} : { continueFromTaskId }),
|
|
285
|
+
...goalField,
|
|
267
286
|
});
|
|
268
287
|
sendJson(res, 202, { ok: true, task });
|
|
269
288
|
}
|
|
@@ -428,7 +447,7 @@ async function answerQuestion({ req, res, connection, deps }) {
|
|
|
428
447
|
});
|
|
429
448
|
sendJson(res, 200, { ok: true, ...result });
|
|
430
449
|
}
|
|
431
|
-
const REVIEW_FIELDS = Object.freeze(['taskId', 'decision', 'note']);
|
|
450
|
+
const REVIEW_FIELDS = Object.freeze(['taskId', 'decision', 'note', 'completionSummary']);
|
|
432
451
|
|
|
433
452
|
/**
|
|
434
453
|
* Longest review note the route will even read, in Unicode code points.
|
|
@@ -479,6 +498,18 @@ async function recordHostReview({ req, res, connection, deps }) {
|
|
|
479
498
|
unit: 'unicode-code-points',
|
|
480
499
|
});
|
|
481
500
|
}
|
|
501
|
+
// Optional, checked with the same rule as the goal, refused before any read or write.
|
|
502
|
+
const summary = canonicalTaskDescription(body.completionSummary, TASK_DESCRIPTION_FIELDS.summary, redactText);
|
|
503
|
+
if (summary.ok === false) {
|
|
504
|
+
throw new HttpError(400, 'REVIEW_COMPLETION_SUMMARY_INVALID', summary.refusal.message, {
|
|
505
|
+
field: summary.refusal.field,
|
|
506
|
+
limit: summary.refusal.limit,
|
|
507
|
+
length: summary.refusal.length,
|
|
508
|
+
unit: summary.refusal.unit,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
// The canonical value is sent only when there is one, so `undefined` means "stated none".
|
|
512
|
+
const summaryField = summary.value === null ? {} : { completionSummary: summary.value };
|
|
482
513
|
let result;
|
|
483
514
|
try {
|
|
484
515
|
result = await deps.engine.recordHostReview({
|
|
@@ -487,6 +518,7 @@ async function recordHostReview({ req, res, connection, deps }) {
|
|
|
487
518
|
taskId: body.taskId,
|
|
488
519
|
decision: body.decision,
|
|
489
520
|
note,
|
|
521
|
+
...summaryField,
|
|
490
522
|
});
|
|
491
523
|
} catch (error) {
|
|
492
524
|
// A finished task read back from durable history (after a restart) is reviewed through
|
|
@@ -495,7 +527,7 @@ async function recordHostReview({ req, res, connection, deps }) {
|
|
|
495
527
|
result = await deps.engine.recordHistoricalReview({
|
|
496
528
|
taskId: body.taskId,
|
|
497
529
|
connectionId: connection.connectionId,
|
|
498
|
-
}, body.decision, redactText(note), null);
|
|
530
|
+
}, body.decision, redactText(note), null, summary.value ?? undefined);
|
|
499
531
|
}
|
|
500
532
|
sendJson(res, 200, { ok: true, ...result });
|
|
501
533
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -105,6 +105,22 @@ export interface DelegateRouteOptions {
|
|
|
105
105
|
requireEffort?: boolean;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/** Commander-supplied submission fields (`delegate_submit`, `POST /tasks`; prose <= 2000 code points). */
|
|
109
|
+
export interface DelegateSubmitRequest {
|
|
110
|
+
workspacePath: string;
|
|
111
|
+
prompt: string;
|
|
112
|
+
title?: string;
|
|
113
|
+
goalDescription?: string;
|
|
114
|
+
continueFromTaskId?: string;
|
|
115
|
+
overrides?: {
|
|
116
|
+
model?: string;
|
|
117
|
+
reasoningEffort?: string;
|
|
118
|
+
timeoutSeconds?: number;
|
|
119
|
+
[field: string]: unknown;
|
|
120
|
+
};
|
|
121
|
+
agentTeams?: boolean;
|
|
122
|
+
}
|
|
123
|
+
|
|
108
124
|
/**
|
|
109
125
|
* One pending per-call permission request, as the task view publishes it.
|
|
110
126
|
*
|
|
@@ -431,7 +447,7 @@ export type DelegateObserveReason =
|
|
|
431
447
|
| 'cancelled'
|
|
432
448
|
| 'interrupted';
|
|
433
449
|
|
|
434
|
-
/**
|
|
450
|
+
/** Compact task summary one observation returns (carries summary length/omission flag, no prose). */
|
|
435
451
|
export interface DelegateObservationSummary {
|
|
436
452
|
taskId: string;
|
|
437
453
|
state: 'pending' | 'running' | 'awaiting-host-review' | 'failed' | 'cancelled' | 'interrupted';
|
|
@@ -501,14 +517,16 @@ export interface DelegateAgentTeamsOutcome {
|
|
|
501
517
|
* A replayed (idempotent) review request and its answer.
|
|
502
518
|
*
|
|
503
519
|
* `decision` is the closed vocabulary the review verb accepts; a note is required and
|
|
504
|
-
* bounded. Repeating the same decision with the same note
|
|
505
|
-
* conclusion is refused.
|
|
520
|
+
* bounded. Repeating the same decision with the same note — and the same optional
|
|
521
|
+
* completion summary — is a no-op; a different conclusion is refused.
|
|
506
522
|
*/
|
|
507
523
|
export interface DelegateReviewRequest {
|
|
508
524
|
taskId: string;
|
|
509
525
|
decision: 'accepted' | 'changes-requested';
|
|
510
526
|
/** Required after trimming; at most 8000 Unicode code points; stored redacted. */
|
|
511
527
|
note: string;
|
|
528
|
+
/** Optional completion summary (<= 2000 code points, redacted, part of review identity). */
|
|
529
|
+
completionSummary?: string;
|
|
512
530
|
}
|
|
513
531
|
|
|
514
532
|
/** Answer of one recorded delivery review. */
|
|
@@ -542,10 +560,21 @@ export interface DelegateReviewPersistence {
|
|
|
542
560
|
error: { code: string; message: string } | null;
|
|
543
561
|
}
|
|
544
562
|
|
|
545
|
-
/**
|
|
546
|
-
export interface DelegateCompactHostAcceptance extends Omit<DelegateHostAcceptance, 'note'> {
|
|
563
|
+
/** Wait/compact review projection: carries lengths and omission flags, never prose bodies. */
|
|
564
|
+
export interface DelegateCompactHostAcceptance extends Omit<DelegateHostAcceptance, 'note' | 'completionSummary'> {
|
|
565
|
+
noteChars: number;
|
|
566
|
+
noteOmitted: true;
|
|
567
|
+
completionSummaryChars?: number;
|
|
568
|
+
completionSummaryOmitted?: true;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/** Bounded review projection where `note` is paged out while a legal `completionSummary` stays whole unless omitted. */
|
|
572
|
+
export interface DelegateOmittedHostAcceptance extends Omit<DelegateHostAcceptance, 'note' | 'completionSummary'> {
|
|
547
573
|
noteChars: number;
|
|
548
574
|
noteOmitted: true;
|
|
575
|
+
completionSummary?: string;
|
|
576
|
+
completionSummaryChars?: number;
|
|
577
|
+
completionSummaryOmitted?: true;
|
|
549
578
|
}
|
|
550
579
|
|
|
551
580
|
/** Optional paged note read on delegate_result; omit offset for the old result shape. */
|
|
@@ -574,6 +603,32 @@ export interface DelegateReviewNotePageResult {
|
|
|
574
603
|
reviewPersistence: DelegateReviewPersistence | null;
|
|
575
604
|
}
|
|
576
605
|
|
|
606
|
+
/** Optional paged completion-summary read on delegate_result when completionSummaryOmitted is true. */
|
|
607
|
+
export interface DelegateCompletionSummaryPageRequest {
|
|
608
|
+
taskId: string;
|
|
609
|
+
/** Nonnegative Unicode code-point offset. */
|
|
610
|
+
completionSummaryOffset: number;
|
|
611
|
+
/** Integer from 1 to 2000, default 2000. Requires completionSummaryOffset. */
|
|
612
|
+
completionSummaryLimit?: number;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export interface DelegateCompletionSummaryPageResult {
|
|
616
|
+
ok: true;
|
|
617
|
+
taskId: string;
|
|
618
|
+
state: string | null;
|
|
619
|
+
completionSummary: {
|
|
620
|
+
offset: number;
|
|
621
|
+
limit: number;
|
|
622
|
+
text: string;
|
|
623
|
+
summaryChars: number;
|
|
624
|
+
nextOffset: number | null;
|
|
625
|
+
complete: boolean;
|
|
626
|
+
present: boolean;
|
|
627
|
+
};
|
|
628
|
+
hostAcceptance: DelegateCompactHostAcceptance | null;
|
|
629
|
+
reviewPersistence: DelegateReviewPersistence | null;
|
|
630
|
+
}
|
|
631
|
+
|
|
577
632
|
/**
|
|
578
633
|
* The commander's recorded delivery review of one finished task.
|
|
579
634
|
*
|
|
@@ -592,6 +647,8 @@ export interface DelegateHostAcceptance {
|
|
|
592
647
|
by: string;
|
|
593
648
|
/** The redacted, bounded conclusion. */
|
|
594
649
|
note: string;
|
|
650
|
+
/** Optional redacted summary recorded with `note` (absent when omitted; never implies acceptance). */
|
|
651
|
+
completionSummary?: string;
|
|
595
652
|
}
|
|
596
653
|
|
|
597
654
|
/**
|