dsh-taskbridge 1.5.2 → 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 CHANGED
@@ -1,5 +1,39 @@
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
+
11
+ ## 1.5.3 — 验收展示、混合换行与指挥规则修复(2026-11-17)
12
+
13
+ - 验收摘要仅显示结论、时间与保存状态;完整意见在详情中阅读,未确认保存成功时不提前显示通过。
14
+ - 修复完整审查意见的长路径与连续字符串换行,保留全部正文、原始换行及按需读取、复制和刷新。
15
+ - Codex 托管模板按全文准确识别 LF/CRLF/混合换行;额外独立 CR、BOM、空白、正文或版本改动仍受保护,新写入统一 LF,写删前精确复核原字节。
16
+ - 增加指挥端规划与按需拆单规则:先明确目标、方案、责任和验收,再派当前可执行工单,交付后集中审查。该规则不构成运行时行为拦截。
17
+ - 保留已发布 1.5.2 及真实本地 test.1/test.2 模板的准确升级身份;沿用现有提供方、模型、权限和等待协议。
18
+ - 本版汇总已验收测试候选;任务名称保存、分组与目标树不在本次更新内。验证范围与更新方法见 docs/releases/1.5.3.zh.md。
19
+
20
+ ## 1.5.3-test.2 — 验收展示、全文排版与混合换行修复(本地测试版,2026-11-17)
21
+
22
+ - 纳入 G10:验收摘要只显示结论、时间和保存状态,避免与完整意见正文重复;未确认保存成功时不提前显示通过。
23
+ - 纳入 G11:完整意见保留所有字符与换行,长路径及连续字符串在容器内换行,保留全文读取、复制和刷新。
24
+ - 纳入 G12:准确识别已知模板的 LF/CRLF/混合形式;额外独立 CR、正文或版本改动仍不认领,新受管文件统一 LF,写删并发保护保持精确。
25
+ - 保留 test.1 的 P0 指挥规则,并以实际已安装模板的准确样本支持 test.1 升级,不从当前正文推导历史身份。
26
+ - 此为新的本地测试包;任务名称/分组/目标树尚未实现。包前回归和真实安装结果另存验证报告,未发布 npm/GitHub。
27
+
28
+ ## 1.5.3-test.1 — 指挥端规划与按需拆单(本地测试版,2026-11-16)
29
+
30
+ - 新增 P0 指挥规则:指挥端先确定目标、方案、接口、依赖和验收,再派当前可执行的小工单。简单内聚任务可一次完成;多阶段目标按需拆分,不能把整个待办清单交给执行端自行规划。
31
+ - 每单明确工作目标、已选方案、文件责任、约束及验收;交付后由指挥端集中审查并记录结论,再推进有依赖的工作。修正续接原任务,独立工作另建会话。
32
+ - 规划、规则、用户报告、审查结论与更新日志由指挥端负责。只验证的工单不得自行修改规则、实现或测试断言。
33
+ - 在派工工具及 prompt 说明中加入简短提醒;保留用户选择的 API、模型、思考强度及原有审批、静默等待和续接协议。
34
+ - 登记已发布 1.5.2 模板的准确 LF/CRLF 身份,验证原版升级、幂等和自定义内容保留。包清单、锁文件和托管模板同步标记为测试版。
35
+ - 本包只交付以上规则和迁移支持。任务名称/任务树、审阅显示和 Codex 混合换行识别问题仍待后续修复;不包含真实安装生效或新 token 节省比例的声明。
36
+
3
37
  ## 1.5.2 — 产品介绍更新(2026-11-15)
4
38
 
5
39
  - 重写插件列表与 npm 简介,突出让 Codex 指挥 DSH,并在插件中配置已有 API、执行模型和思考强度。
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # DSH TaskBridge
2
2
 
3
+ > 当前版本:**1.5.4**。本次小更新保存任务名称、续接关系、目标与完成说明,并补齐派工归属核查规则。详见[更新说明](docs/releases/1.5.4.zh.md)。
4
+
3
5
  **让 Codex 指挥 DSH 工作,在 DSH 插件里选择执行所用的 API、模型和思考强度。**
4
6
 
5
7
  > **当前支持 Codex 端。Claude Code 与 Claude Desktop 接入预计在 2.0 版本上线。**
@@ -56,7 +58,7 @@ dsh-taskbridge
56
58
  也可以指定本次版本:
57
59
 
58
60
  ```text
59
- dsh-taskbridge@1.5.2
61
+ dsh-taskbridge@1.5.4
60
62
  ```
61
63
 
62
64
  安装后启用 **DSH TaskBridge**,进入该插件的设置页面。若使用的区域镜像尚未同步新版本,可切换到 npm 官方源;本项目 GitHub Release 也提供 `.tgz` 安装包。
@@ -260,7 +262,9 @@ TaskBridge 自身无需 dsh-crew。执行任务使用的项目依赖仍按任务
260
262
  | [会话放置与续接](docs/conversation-placement.md) | DSH 工作区命名、会话创建和同任务续接。 |
261
263
  | [插件发现与更新](docs/plugin-market.md) | 自定义索引、npm 与 GitHub 安装来源。 |
262
264
  | [旧名称迁移](docs/taskbridge-upgrade.md) | 从 DSH Delegate / TaskDispatch 升级。 |
263
- | [1.5.2 更新说明](docs/releases/1.5.2.zh.md) | 本次介绍更新的内容与验证范围。 |
265
+ | [1.5.4 更新说明](docs/releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
266
+ | [1.5.3 更新说明](docs/releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
267
+ | [1.5.2 更新说明](docs/releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
264
268
 
265
269
  本插件不按 DSH 版本白名单筛选,所需接口按运行时实际能力检查;具体说明见 [运行时说明](docs/runtime-compatibility.md)。CLI 独立执行通道及所有运行环境组合尚未完成,已知限制见 [1.5.1 说明](docs/releases/1.5.1.zh.md)。
266
270
 
@@ -300,13 +304,13 @@ profile 是**应用保留的**:npm / `dsh plugin` CLI 对该 profile 的操作
300
304
  Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式 profile 里执行 npm/pnpm
301
305
  命令,也不要直接编辑其中的文件。
302
306
 
303
- 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.5.2`**。
307
+ 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.5.4`**。
304
308
  若中国大陆镜像尚未同步,先选择 npm 官方源再重试。安装后的显示名为 **DSH TaskBridge**。
305
309
  也可以从本项目 Release 下载 `.tgz`,或在仓库根目录打包:
306
310
 
307
311
  ```bash
308
312
  npm pack
309
- # → dsh-taskbridge-1.5.2.tgz
313
+ # → dsh-taskbridge-1.5.4.tgz
310
314
  ```
311
315
 
312
316
  2. 使用本地包时,通过 **添加插件**入口选择下载或生成的 `.tgz`(或本仓库目录)完成安装。
@@ -320,7 +324,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
320
324
 
321
325
  ```bash
322
326
  # 装进一个 profile(例:web)
323
- dsh plugin --profile web add ./dsh-taskbridge-1.5.2.tgz && dsh plugin --profile web why dsh-taskbridge
327
+ dsh plugin --profile web add ./dsh-taskbridge-1.5.4.tgz && dsh plugin --profile web why dsh-taskbridge
324
328
 
325
329
  # 启动(首次启动会自动把插件 bundle 追加到 dsh.profile.bundles)
326
330
  dsh --profile web
@@ -333,7 +337,7 @@ dsh --profile web
333
337
  ### 说明与注意
334
338
 
335
339
  - **不要装进你正在用的正式 profile 做试验。** 建议先用一次性 profile:
336
- `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.5.2.tgz`,再把
340
+ `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.5.4.tgz`,再把
337
341
  `DSH_HOME` 指向临时目录做隔离验证。该命令同样只用于 CLI profile。
338
342
  - 该包声明了 `@deepseek-ai/dsh-*` 的 peer,若你的包管理器默认自动安装 peer,
339
343
  安装过程会尝试解析这些版本。可显式关闭:`npm_config_auto_install_peers=false`
@@ -768,7 +772,7 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
768
772
  # 不要在 Desktop 的正式 profile 下执行下面的 CLI 命令。
769
773
 
770
774
  # CLI web profile 的升级:换成本地新包或(将来)新版本
771
- dsh plugin --profile web add ./dsh-taskbridge-1.5.2.tgz
775
+ dsh plugin --profile web add ./dsh-taskbridge-1.5.4.tgz
772
776
 
773
777
  # 导出:界面里"导出非敏感配置"按钮,或用只读 API
774
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.2"
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."
@@ -23,6 +23,44 @@ ACTIVATION (check this before anything else)
23
23
  4. If it is unclear whether this task was explicitly assigned, ask one short
24
24
  clarifying question instead of dispatching.
25
25
 
26
+ P0: COMMANDER-OWNED PLANNING AND WORK PACKETS (for authorized implementation tasks)
27
+ 1. The coordinating model owns the plan. This applies to the parent commander and
28
+ this @-agent: do not merely forward an undivided user request to DSH. First define
29
+ the intended outcome, make the main design and interface decisions, identify the
30
+ dependencies, and set acceptance criteria. Then choose the next work packet.
31
+ Rules, plans, review decisions, user reports and release notes are commander's
32
+ deliverables unless the operator explicitly assigns their authorship otherwise.
33
+ 2. Size work by cohesion and a useful verification boundary. A simple, complete task
34
+ can be one packet, including the few related files and tests it needs. Break a
35
+ larger goal into dependent packets when it contains separable decisions or stages.
36
+ Do not impose a file-count or prompt-length quota, split a small fix into needless
37
+ fragments, or hand over an entire multi-stage backlog as one implementation task.
38
+ 3. Send only the current ready packet. State its work-content title, small objective,
39
+ chosen approach and contracts, owned files or modules, constraints, and concrete
40
+ acceptance checks. Include only the context needed for that work. A roadmap may
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.
43
+ The worker makes routine implementation choices inside this boundary; product
44
+ scope, cross-packet design and changes to the plan stay with the commander.
45
+ 4. Follow the dependency order: dispatch, wait silently, review the delivered diff
46
+ and evidence, then record the review before advancing dependent work. Consolidate
47
+ defects into one correction packet using continueFromTaskId for that same task.
48
+ A different work unit gets a new task conversation; do not chain the whole project
49
+ into one conversation merely to keep context or avoid another preflight.
50
+ 5. Parallel packets require independent work, explicit non-conflicting ownership,
51
+ and permission under the operator's request and the repository's AGENTS.md. Do
52
+ not enable Agent Teams by default. The operator still selects provider, model
53
+ and reasoning effort; smaller packets never authorize a different execution route.
54
+ 6. A blocker or a design question outside the packet goes back to the commander.
55
+ The worker must not expand its scope, execute the remaining roadmap, or become
56
+ its own final reviewer. For a verification-only packet, the implementation and
57
+ rules are read-only: run the agreed checks and report evidence; do not fix a
58
+ failing check without a separate correction assignment from the commander.
59
+ 7. If a parent supplies a broad multi-stage assignment, the coordinating model must
60
+ first turn it into the next bounded packet. An explicit @ mention authorizes the
61
+ task; it does not remove this planning duty. Keep all activation, approval, silent
62
+ waiting, review and continuation rules below while applying this P0 rule.
63
+
26
64
  DISPATCH (only for an explicitly assigned implementation task)
27
65
  1. PREFLIGHT FACTS FIRST — FOR A NEW TASK. Call `delegate_status` first, then call
28
66
  `delegate_preflight` with the exact authorized workspace path as
@@ -36,25 +74,16 @@ DISPATCH (only for an explicitly assigned implementation task)
36
74
  the preflight may still be read for reporting, but nothing may be submitted.
37
75
  2. APPLY THE ISOLATION DECISION. `delegate_preflight` answers with an `isolation`
38
76
  of `worktree`, `shared` or `block` and a stable `reason` code.
39
- 2a. PREFLIGHT IS PER CHAIN, NOT PER DISPATCH. Preflight a NEW task: `delegate_status`,
40
- then `delegate_preflight` on the original authorized source path, then the dirty-tree
41
- decision below. For a CONTINUATION of a task chain you already verified, do NOT redo
42
- the dirty-tree decision every round: when the source path is the same, the goal and
43
- boundaries are unchanged, and there is no identity or isolation anomaly, reuse the
44
- already-verified preflight facts and go straight to the submit in rule 4b. The
45
- worker's own uncommitted candidate changes in that chain are the expected state of
46
- the chain, not a fresh dirty-tree decision to re-litigate. Re-verify when the source
47
- path changed, the work is unrelated, an identity/isolation refusal came back, or the
48
- engine reports a mismatch — and then preflight afresh. This reuse changes NOTHING in
49
- the engine: every submission still carries the ORIGINAL source `workspacePath` plus
50
- the latest `continueFromTaskId`, and the engine still re-checks ownership, paths, the
51
- original checkout and the Session on every submit. Never route a refused or blocked
52
- chain through a new task to get past the refusal.
53
- 2b. For an explicit follow-up, submit with the parent's original source `workspacePath`
54
- — and re-run `delegate_preflight` only when needed under 2a (source changed, work
55
- unrelated, identity/isolation refusal, or an engine mismatch). A verified chain is NOT
56
- preflighted mechanically every round. The engine pins the parent's isolation, so do
57
- 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.
58
87
  - `isolation: "worktree"` (reason `PREFLIGHT_CLEAN_REPOSITORY`) — the repository
59
88
  is clean. Dispatch with the worktree isolation configured in the DSH TaskBridge
60
89
  plugin settings; do not change it.
@@ -133,24 +162,29 @@ DISPATCH (only for an explicitly assigned implementation task)
133
162
  channel's normal single-call approval. Never claim member approvals are bridged,
134
163
  never widen `owns`, never change the host's policy.
135
164
  4b. TASK THREADS. Every submission starts a NEW DSH task conversation by default,
136
- even when the same workspace has been used for many earlier tasks; a
137
- directory-level reuse setting no longer exists. Pass `continueFromTaskId` ONLY
138
- when this submission is a follow-up to one earlier delegated task — a requested
139
- change, correction or retry that belongs to THAT same task and must continue its
140
- conversation (same DSH Workspace and Session). Use the latest prior task id for
141
- that task, the immediate predecessor in that chain. Omit `continueFromTaskId`
142
- entirely for an unrelated task, a new topic, or a different workspace: never
143
- guess an id and never reuse an id to "keep context". A continuation is validated
144
- fail-closed, so an unknown, still-running, failed-without-conversation, removed
145
- or differently-pathed parent is refused. For a follow-up, keep using the
146
- parent's original authorized `workspacePath` (the source checkout) in both
147
- preflight and submit. The plugin resolves a worktree parent's original managed
148
- tree internally and continues there; do not send the internal `execution.workspacePath`
149
- as the authorization path, do not select a new isolation override, and do not
150
- prepare or accept another tree. The plugin pins the follow-up to the parent's
151
- recorded isolation even if the current settings changed. If the original tree
152
- is unavailable or cannot be proven, report the refusal and ask; do not retry as
153
- a new task to get past it.
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.
154
188
  5. SUBMIT, THEN WAIT. Keep the returned taskId and call `delegate_wait({ taskId })` with
155
189
  that same taskId and NO `waitSeconds` argument. Repeat `delegate_wait` on the SAME
156
190
  taskId until it returns one of the reasons below. Do NOT poll `delegate_result` or
@@ -56,7 +56,7 @@ dsh-taskbridge
56
56
  To install this specific release:
57
57
 
58
58
  ```text
59
- dsh-taskbridge@1.5.2
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,7 +260,9 @@ 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.2 release notes](releases/1.5.2.zh.md) | This introduction update and its validation scope. |
263
+ | [1.5.4 release notes](releases/1.5.4.zh.md) | Persisted task records, explicit goals and summaries, and placement checks. |
264
+ | [1.5.3 release notes](releases/1.5.3.zh.md) | Review summaries, full-note layout, mixed line endings, and commander planning rules. |
265
+ | [1.5.2 release notes](releases/1.5.2.zh.md) | The introduction update and its validation scope. |
264
266
 
265
267
  TaskBridge uses runtime capability checks rather than a DSH version whitelist; see [runtime notes](runtime-compatibility.md). A separate CLI execution channel and validation of every runtime environment are not complete. Existing limits are documented in the [1.5.1 notes](releases/1.5.1.zh.md).
266
268
 
@@ -56,7 +56,7 @@ dsh-taskbridge
56
56
  也可以指定本次版本:
57
57
 
58
58
  ```text
59
- dsh-taskbridge@1.5.2
59
+ dsh-taskbridge@1.5.4
60
60
  ```
61
61
 
62
62
  安装后启用 **DSH TaskBridge**,进入该插件的设置页面。若使用的区域镜像尚未同步新版本,可切换到 npm 官方源;本项目 GitHub Release 也提供 `.tgz` 安装包。
@@ -260,7 +260,9 @@ 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.2 更新说明](releases/1.5.2.zh.md) | 本次介绍更新的内容与验证范围。 |
263
+ | [1.5.4 更新说明](releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
264
+ | [1.5.3 更新说明](releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
265
+ | [1.5.2 更新说明](releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
264
266
 
265
267
  本插件不按 DSH 版本白名单筛选,所需接口按运行时实际能力检查;具体说明见 [运行时说明](runtime-compatibility.md)。CLI 独立执行通道及所有运行环境组合尚未完成,已知限制见 [1.5.1 说明](releases/1.5.1.zh.md)。
266
268
 
@@ -1,6 +1,6 @@
1
1
  # Codex integration contract
2
2
 
3
- Status: implemented in 1.5.2 (1.1.0 introduced wait rules, 1.2.0 added installed-integration upgrades, 1.4.0 clarifies outer long waits and explicit host-review recording). This automatic installer covers Codex, the currently supported client. Claude Code and Claude Desktop integration is planned for 2.0; see the separate roadmap.
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.2",
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,
@@ -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.2`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
18
+ 当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.5.4`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
19
19
 
20
20
  ## 新版本
21
21
 
@@ -0,0 +1,28 @@
1
+ # 1.5.3-test.1 本地测试版说明
2
+
3
+ 日期:2026-11-16。基于正式版 1.5.2,只更新指挥规则及其迁移支持。
4
+
5
+ ## 本次效果
6
+
7
+ 指挥端先明确总目标、主要方案、接口、依赖及验收,再选择当前工作包派给 DSH。简单且内聚的任务仍可一次完成;包含可分离阶段的大任务必须按需拆分。执行端只负责当前工单,不能自行实现整个路线图。
8
+
9
+ 每单交付后,指挥端集中审查、记录结论,再推进依赖任务。有问题续接该任务;独立工作使用新会话。规划、规则、报告及更新日志由指挥端编写。只验证的工单不允许修改候选规则、实现或测试断言。
10
+
11
+ 派工工具的说明同步增加提醒。API、执行模型、思考强度仍取自用户设置;审批、静默等待和续接机制保持原有协议。
12
+
13
+ ## 安装与验证
14
+
15
+ 1. 在 DSH 插件管理器中添加本地 `dsh-taskbridge-1.5.3-test.1.tgz`。这是同一插件的预发布包,会更新该 profile 中的 TaskBridge。
16
+ 2. 启用插件后,确认设置页的 Codex 集成已更新到 `1.5.3-test.1`;需要时点击更新 Codex 集成。
17
+ 3. 使用新的 Codex 对话或重新加载集成后再测试 `@dsh-taskbridge`。包内新规则不会改变已开始的执行任务。
18
+ 4. 用一个包含多个阶段的需求验证:指挥端先给出方案和当前小工单,DSH 交付并审查后才推进下一阶段。
19
+
20
+ 已发布 1.5.2 原版模板的 LF/CRLF 升级、重复更新及用户自定义规则保留有自动测试覆盖。此前 P0 候选的 184 项规则与协议测试通过;本测试包另做版本、分发和解包验证,具体结果随本地验证报告提供。
21
+
22
+ ## 尚未覆盖
23
+
24
+ - G01/G02/G03/G04/G09 的名称、分组与任务树尚未实现。
25
+ - G10/G11 的验收摘要和完整审阅意见排版尚未修复。
26
+ - G12 的已知混合换行模板识别问题仍存在;若 Codex 集成提示模板不属于已知版本,本次升级不能视为规则已经生效,需要单独处理。
27
+ - 本轮规则属于指挥行为约定,不是强制执行所有模型规划行为的运行时拦截器。
28
+ - 本地测试包未发布 npm/GitHub,不代表真实桌面安装与后续功能的验收已经完成。
@@ -0,0 +1,24 @@
1
+ # 1.5.3-test.2 本地测试版说明
2
+
3
+ 日期:2026-11-17(Asia/Shanghai)。本测试版合并已验收的 G10/G11/G12,保留 test.1 的 P0 指挥规则。
4
+
5
+ ## 本次变化
6
+
7
+ - G10:任务卡片的验收摘要显示结论、时间及保存状态;完整审查意见在详情中阅读。保存中、未确认或保存失败不提前显示为验收通过。
8
+ - G11:完整审查意见保留正文与换行,连续路径和长字符串可在容器内换行,保留按需读取、复制及刷新能力。
9
+ - G12:只容忍 LF/CRLF/混合换行的全文等价;正文、空白、BOM、独立 CR 和版本改动仍受保护。新写入的受管规则统一 LF,写删前仍精确复核原内容。
10
+ - 为已实际安装的 test.1 保存准确模板样本并提供升级支持;不以当前正文重盖旧版本推导历史身份。
11
+
12
+ ## 安装与验证
13
+
14
+ 1. 通过 DSH 原生插件管理器添加新的本地包 `dsh-taskbridge-1.5.3-test.2.tgz`,保留原 test.1 安装来源。
15
+ 2. 启用后确认插件设置页、Codex 集成及新启动的 MCP 都报告 `1.5.3-test.2`;验证旧规则正常升级,用户配置和已有历史任务保留。
16
+ 3. 检查验收摘要与详情全文,并验证真实安装包中的换行识别及用户编辑保护。
17
+ 4. 本版本实际构建、包内容、回归及真实安装结果以随本地测试包保存的最终验证报告为准。此发布说明不预先宣称真实安装已通过。
18
+
19
+ ## 范围与限制
20
+
21
+ - G01/G02/G03/G04/G09 的名称保存、分组与任务树尚未实现;G05—G08 也未随本版本新增。
22
+ - P0 规则属于指挥行为约定,不是强制所有模型规划行为的运行时拦截器。
23
+ - 本地测试包未发布 npm/GitHub;不宣称新的 token 节省比例。
24
+ - 已运行的 Codex 进程可能继续使用此前加载的工具说明;新连接的 MCP 握手和已安装文件的版本应分别核对。
@@ -0,0 +1,33 @@
1
+ # 1.5.3 — 验收展示、混合换行与指挥规则修复
2
+
3
+ 日期:2026-11-17(Asia/Shanghai)。这是基于 1.5.2 的小更新,汇总已安装验证的 1.5.3-test.2 候选。
4
+
5
+ ## 本次更新
6
+
7
+ - **验收摘要更清楚。** 任务卡片只显示结论、时间和保存状态,完整审查意见在详情中阅读;保存尚未确认或失败时不提前显示通过。
8
+ - **完整意见正常换行。** 长路径和连续字符串在容器内换行,保留全部正文和原始换行,继续支持按需读取、复制及刷新。
9
+ - **修复 Codex 模板换行识别。** 未修改的已知模板可采用 LF、CRLF 或逐行混合换行,避免仅因换行差异被误判为用户修改。新写入统一 LF;正文、空白、BOM、独立 CR 和版本改动继续受到保护,写入和删除前仍精确复核原字节。
10
+ - **加入指挥端规划与按需拆单规则。** 指挥端先明确目标、方案、责任和验收,再派当前可执行的工单;交付后集中审查,修正续接原任务。简单内聚任务可以一次完成,不强制机械拆分。
11
+ - **支持测试版升正式版。** 保留正式 1.5.2 以及真实本地 test.1/test.2 原版模板的准确身份;自定义规则继续保留,不用当前正文伪造旧模板。
12
+
13
+ ## 更新方法
14
+
15
+ 在 DSH 的 **插件 → 添加插件** 中输入:
16
+
17
+ ```text
18
+ dsh-taskbridge@1.5.3
19
+ ```
20
+
21
+ 也可安装本项目 GitHub Release 提供的 `dsh-taskbridge-1.5.3.tgz`,或使用本项目自定义插件索引。区域镜像尚未同步时可切换 npm 官方源。
22
+
23
+ 启用新版后,在 **Codex 集成** 中确认就绪;未修改的受管模板可在启动时升级,也可点击 **安装 / 更新 TaskBridge 智能体**。用户编辑过的规则不会自动覆盖,应先确认并自行处理冲突。重新加载 Codex 后使用新规则和工具说明,已打开的聊天可能仍保留旧说明。
24
+
25
+ ## 验证与边界
26
+
27
+ - test.2 候选已完成 1604 项全库回归、实际原生插件安装、验收摘要和完整意见界面检查,以及真实 Codex/MCP 就绪核对。候选界面样本的 792 字符正文与后台逐字一致,无横向溢出。
28
+ - 正式版针对真实 test.2 模板补充升级及编辑保护检查,并重新检查版本、包内容、客户端构建和回归。正式包的最终统计与校验值见本 Release 的验证摘要和 SHA256 附件。
29
+ - 正式源码完整回归 **1611/1611 通过**,0 失败、跳过或取消;相关定向检查最终 20/20 通过,客户端产物一致性检查通过。首次定向检查中的交替换行夹具构造问题已修正,未放宽产品识别或用户内容保护。
30
+ - 混合换行只用于准确识别全文等价,不授权覆盖其他用户修改。旧记录已经丢失的正文不会因升级恢复;任务历史仍沿用既有容量轮换策略。
31
+ - 指挥规则是行为约定,不是强制所有模型遵守规划流程的运行时拦截器。用户选择的提供方、模型与思考强度、权限判断及静默等待协议继续沿用。
32
+ - 本次不新增任务名称保存、分组或目标树,不新增执行通道,不宣称新的 token 节省比例。当前支持 Codex;Claude Code/Claude Desktop 接入仍为预计 2.0 的计划。
33
+ - 发布与本机安装分别记录;正式版发布不会自动把本地 test.2 安装来源改为 npm。
@@ -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.2 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
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.2`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.5.2.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
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.2; historical 1.0.0–1.2.0 audits retained)
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/lib/client.js CHANGED
@@ -988,12 +988,15 @@ window.__ModuleLoader__.load({
988
988
  return { label, tone, executed, accepted, decided, phaseLabel, note };
989
989
  }
990
990
  function hostReviewLine(task, formatTime2) {
991
+ const outcome = taskOutcome(task);
991
992
  const acceptance = task?.hostAcceptance;
992
- if (acceptance === null || acceptance === void 0) return "未记录(插件不会自行验收)";
993
- const label = acceptance.accepted === true ? "审查通过" : "需要修正";
993
+ if (acceptance === null || acceptance === void 0) {
994
+ const persistence = task?.reviewPersistence;
995
+ if (persistence?.pending === true || persistence?.state === "failed") return outcome.label;
996
+ return "未记录(插件不会自行验收)";
997
+ }
994
998
  const at = typeof acceptance.acceptedAt === "number" ? `(${formatTime2(acceptance.acceptedAt)})` : "";
995
- const note = typeof acceptance.note === "string" && acceptance.note !== "" ? `:${boundedText(acceptance.note, 200)}` : "";
996
- return `${label}${at}${note}`;
999
+ return outcome.decided ? `${outcome.label}${at}(结论已保存)` : `${outcome.label}${at}`;
997
1000
  }
998
1001
  var REVIEW_NOTE_PREVIEW_CHARS = 200;
999
1002
  function reviewNotePreview(task) {
@@ -2217,9 +2220,42 @@ window.__ModuleLoader__.load({
2217
2220
  .dshdg-fail { color: var(--dsw-alias-label-error, #d92d20); }
2218
2221
  .dshdg-unknown { color: var(--dsw-alias-label-tertiary, #8a9098); }
2219
2222
  .dshdg-table { display: grid; gap: 4px; }
2220
- .dshdg-kv { display: grid; grid-template-columns: minmax(96px, 140px) minmax(0, 1fr); gap: 4px 10px; }
2223
+ .dshdg-kv {
2224
+ display: grid;
2225
+ grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
2226
+ gap: 4px 10px;
2227
+ min-width: 0;
2228
+ }
2221
2229
  .dshdg-kv dt { color: var(--dsw-alias-label-secondary, #61666d); }
2222
- .dshdg-kv dd { margin: 0; overflow-wrap: anywhere; }
2230
+ .dshdg-kv dd {
2231
+ margin: 0;
2232
+ /* A grid item defaults to min-width: auto, i.e. "at least as wide as my longest
2233
+ unbreakable run" — the single place that pushed a long review note past the panel. */
2234
+ min-width: 0;
2235
+ overflow-wrap: anywhere;
2236
+ }
2237
+ /* A recorded review note: shown whole, wrapped inside its own track, never clipped.
2238
+ pre-wrap keeps every paragraph break and every space the host stored; anywhere breaks a
2239
+ long unbroken run (a path, a URL, 270 code points of Chinese with no spaces). Nothing
2240
+ here shortens, hides or line-clamps the body: the block keeps its natural height. */
2241
+ .dshdg-note {
2242
+ min-width: 0;
2243
+ max-width: 100%;
2244
+ overflow-wrap: anywhere;
2245
+ }
2246
+ .dshdg-note-full {
2247
+ min-width: 0;
2248
+ max-width: 100%;
2249
+ margin: 0;
2250
+ white-space: pre-wrap;
2251
+ overflow-wrap: anywhere;
2252
+ word-break: break-word;
2253
+ }
2254
+ .dshdg-note-preview {
2255
+ min-width: 0;
2256
+ overflow-wrap: anywhere;
2257
+ word-break: break-word;
2258
+ }
2223
2259
  @media (max-width: 560px) {
2224
2260
  .dshdg-layer, .dshdg-kv { grid-template-columns: minmax(0, 1fr); }
2225
2261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-taskbridge",
3
- "version": "1.5.2",
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": {
@@ -81,6 +81,10 @@
81
81
  "docs/releases/1.5.0-token-benchmark.zh.md",
82
82
  "docs/releases/1.5.1.zh.md",
83
83
  "docs/releases/1.5.2.zh.md",
84
+ "docs/releases/1.5.3-test.1.zh.md",
85
+ "docs/releases/1.5.3-test.2.zh.md",
86
+ "docs/releases/1.5.3.zh.md",
87
+ "docs/releases/1.5.4.zh.md",
84
88
  "docs/assets/*.png"
85
89
  ],
86
90
  "dsh": {