dsh-taskbridge 1.4.0 → 1.4.1

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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1 — 历史补审、可靠保存与长审查意见(2026-11-14)
4
+
5
+ - **重启后仍能完成审查。** 原指挥端可用原任务 ID 读取已结束的历史记录并补审,再次重启后仍保留结论。沿用原任务归属校验,不恢复旧执行对象或旧审批权限;历史缺少的执行证据明确标记。
6
+ - **保存状态与实际落盘一致。** 区分保存中、等待超时但尚未确认、已保存和确定失败;保存前不显示已通过,晚到结果同步更新。相同审查并发共享写入,冲突结论明确拒绝,失败可重试;修复任务收尾覆盖已保存结论的竞态。
7
+ - **审查备注统一为 8000 Unicode 码点。** MCP、HTTP、引擎与历史存储使用同一约定;合法正文完整保存,超限或容量不足明确拒绝。以前已经丢失的备注尾部无法凭升级恢复。
8
+ - **页面自动更新审查结论。** 待审和保存中的记录继续每 5 秒后台刷新;隐藏暂停、恢复立即读取、保存确认后停止。历史补审保存状态同步显示;刷新失败保留已显示内容。
9
+ - **长备注按需读取。** 列表预览最多 200 码点,详情展开/收起和复制全文;复制不可用或失败时准确提示。等待只返回状态和长度,结果过大时明确省略正文,使用 `delegate_result` 的可选备注分页取回。
10
+ - **更新托管 Codex 规则。** 明确集中审查、保存确认及按需读取;识别原版 1.4.0 模板的 LF/CRLF 字节并升级,保留用户自行修改的文件。技术 MCP 名称与既有配置目录保持兼容。
11
+ - 完整自动回归 1283 项通过,源码同步后针对性验证 48 项通过;隔离安装包的真实 stdio MCP/本机 HTTP 通道完成跨两次重启补审与 8000 码点备注分页验证。正式 Desktop 人工点击和真实提供方任务不在本轮验收范围内。
12
+ - API/模型选择与现有执行通道保持兼容。本版不包含后续规划的外层静默等待优化、审批后直接续等和减少不必要提权申请,也不宣称新的 token 节省比例。验证边界见 `docs/releases/1.4.1.zh.md`。
13
+
3
14
  ## 1.4.0 — 静默等待、重复失败提醒与宿主审查闭环
4
15
 
5
16
  - **长等待与集中审查。** Codex companion、MCP 说明和文档统一要求正常调用 `delegate_wait({ taskId })` 时省略短 `waitSeconds`。外层工具允许长 yield 时保持同一次等待;提前返回仍运行的单元则续接同一个单元,不重复派工、不反复读取中间代码。执行期间由程序观察,交付后由指挥端集中审查,需要修正时续接原任务。
@@ -17,8 +28,8 @@
17
28
  - Explicit Codex install/repair can migrate a marked legacy MCP entry after the old package was uninstalled, when its missing package path is a known sibling of the current `dsh-taskbridge` installation. Custom wrappers, unrelated paths and automatic startup path adoption remain excluded.
18
29
  - Update the settings page, companion dispatch rules and upgrade instructions. Model selection, delegation authorization, quiet waiting and host review retain their existing behavior.
19
30
 
20
- - Make loopback HTTP test fixtures avoid Fetch-blocked ports, which Windows can allocate from a customized low dynamic-port range. This only affects tests.
21
-
31
+ - Make loopback HTTP test fixtures avoid Fetch-blocked ports, which Windows can allocate from a customized low dynamic-port range. This only affects tests.
32
+
22
33
  ## 1.3.1 — DSH TaskBridge identity and npm distribution
23
34
 
24
35
  - Unify the project, GitHub repository, plugin title, package and bundle identity as **DSH TaskBridge** / `dsh-taskbridge`. The previous GitHub-only `dsh-taskdispatch` name was rejected by npm's similarity protection; it never became an npm package.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # DSH TaskBridge
2
2
 
3
+ **1.4.1** 修复跨重启补审、审查保存一致性及长备注,详见 [1.4.1 更新说明](docs/releases/1.4.1.zh.md)。安装标识为 `dsh-taskbridge@1.4.1`,也可使用对应的 `.tgz` 安装包。
4
+
3
5
  **让 Claude Code 或 Codex 指挥 DSH 完成任务,在 DSH 插件中配置 API、执行模型和思考强度。**
4
6
 
5
7
  你向指挥端提出目标;指挥端规划、拆分、派工和审查,DSH 根据插件设置执行。插件可选择 DSH 已接入的 API 提供方、执行模型及其支持的思考强度,并配置超时、并发与工作区隔离;额外模型审查可单独开关和配置。任务交付后集中审查,需要改进时续接同一任务对话。
@@ -16,7 +18,7 @@ DeepSeek Harness(DSH)的委托插件:让 MCP 宿主在你开启本机总
16
18
  新安装时本机调用总开关默认关闭。开关状态会保存在插件设置中,重启后恢复保存值;
17
19
  关闭时拒绝新的委派任务,并请求停止正在运行的任务。
18
20
 
19
- > **发布版本:`1.4.0`(静默等待、重复失败提醒与审查状态闭环)。** 源码仓库和可下载的 Release
21
+ > **当前版本:`1.4.1`(跨重启补审、可靠保存与长备注)。** 源码仓库和可下载的 Release
20
22
  > 位于 [GitHub](https://github.com/ranranyya/dsh-taskbridge)。npm 安装标识为 **`dsh-taskbridge`**,
21
23
  > GitHub Release 同时提供 `.tgz`。`1.1.0` 的静默等待说明见
22
24
  > [`docs/silent-wait.md`](./docs/silent-wait.md);`1.2.0` 修正了其中三处真实问题(等待中断的
@@ -47,13 +49,13 @@ profile 是**应用保留的**:npm / `dsh plugin` CLI 对该 profile 的操作
47
49
  Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式 profile 里执行 npm/pnpm
48
50
  命令,也不要直接编辑其中的文件。
49
51
 
50
- 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.4.0`**。
52
+ 1. 打开 Desktop 的 **Plugins manager → 添加插件**,输入 **`dsh-taskbridge@1.4.1`**。
51
53
  若中国大陆镜像尚未同步,先选择 npm 官方源再重试。安装后的显示名为 **DSH TaskBridge**。
52
54
  也可以从本项目 Release 下载 `.tgz`,或在仓库根目录打包:
53
55
 
54
56
  ```bash
55
57
  npm pack
56
- # → dsh-taskbridge-1.4.0.tgz
58
+ # → dsh-taskbridge-1.4.1.tgz
57
59
  ```
58
60
 
59
61
  2. 使用本地包时,通过 **添加插件**入口选择下载或生成的 `.tgz`(或本仓库目录)完成安装。
@@ -67,7 +69,7 @@ Desktop 侧的包操作只能交给应用完成——不要在 Desktop 的正式
67
69
 
68
70
  ```bash
69
71
  # 装进一个 profile(例:web)
70
- dsh plugin --profile web add ./dsh-taskbridge-1.4.0.tgz && dsh plugin --profile web why dsh-taskbridge
72
+ dsh plugin --profile web add ./dsh-taskbridge-1.4.1.tgz && dsh plugin --profile web why dsh-taskbridge
71
73
 
72
74
  # 启动(首次启动会自动把插件 bundle 追加到 dsh.profile.bundles)
73
75
  dsh --profile web
@@ -80,7 +82,7 @@ dsh --profile web
80
82
  ### 说明与注意
81
83
 
82
84
  - **不要装进你正在用的正式 profile 做试验。** 建议先用一次性 profile:
83
- `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.4.0.tgz`,再把
85
+ `dsh plugin --profile dsh-delegate-try add ./dsh-taskbridge-1.4.1.tgz`,再把
84
86
  `DSH_HOME` 指向临时目录做隔离验证。该命令同样只用于 CLI profile。
85
87
  - 该包声明了 `@deepseek-ai/dsh-*` 的 peer,若你的包管理器默认自动安装 peer,
86
88
  安装过程会尝试解析这些版本。可显式关闭:`npm_config_auto_install_peers=false`
@@ -515,7 +517,7 @@ Codex 子智能体现在按「提交 → `delegate_wait` 同一任务」运作
515
517
  # 不要在 Desktop 的正式 profile 下执行下面的 CLI 命令。
516
518
 
517
519
  # CLI web profile 的升级:换成本地新包或(将来)新版本
518
- dsh plugin --profile web add ./dsh-taskbridge-1.4.0.tgz
520
+ dsh plugin --profile web add ./dsh-taskbridge-1.4.1.tgz
519
521
 
520
522
  # 导出:界面里"导出非敏感配置"按钮,或用只读 API
521
523
  # 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.4.0"
4
+ version = "1.4.1"
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."
@@ -175,16 +175,29 @@ DISPATCH (only for an explicitly assigned implementation task)
175
175
  findings, changed files) and then do the review yourself, in Codex. If the diff
176
176
  is large, inspect only the files that matter for this change, once each. Do not
177
177
  re-read the same evidence repeatedly, and never reply "done" without reviewing.
178
+ The review note is up to 8000 Unicode code points; a longer answer states
179
+ `noteOmitted: true` and the note is read in pages with `reviewNoteOffset` and
180
+ `reviewNoteLimit` (2000 code points per page) until `complete` is true. Read the
181
+ full note before concluding when the page says it is longer.
178
182
  After the review, call `delegate_review` on THAT task with `decision: "accepted"`
179
- or `decision: "changes-requested"` and a short, factual `note` describing the
180
- checks or required corrections. Record accepted only when the delivered evidence
181
- supports it. This records your conclusion; it grants no tool permission and does
182
- not merge files. Wait for the write to succeed before reporting the decision as
183
- recorded. A failed write is a recording problem, not proof that execution failed.
183
+ or `decision: "changes-requested"`. A passing conclusion keeps a SHORT note (what
184
+ you checked and that it passed); a rework note is written ONCE as a single
185
+ consolidated correction list, not as a conversation.
186
+ Record accepted only when the delivered evidence supports it. This records your
187
+ conclusion; it grants no tool permission and does not merge files.
188
+ A review is only recorded once the answer says it is durable (`reviewPersistence`
189
+ `state: "saved"`, or a returned `hostAcceptance`). If the answer says `saving` or
190
+ `timed-out`, the write is still running: do NOT report it as recorded and do NOT
191
+ resubmit or re-dispatche the work — read the SAME task again with
192
+ `delegate_result`/`delegate_wait` until it is confirmed. A `failed` write is a
193
+ recording problem, not proof that execution failed; retry it on the same task.
184
194
  For changes-requested, consolidate corrections and submit a follow-up using
185
195
  `continueFromTaskId`; do not overwrite the old task's decision. Never mark old
186
196
  records accepted in bulk, and never claim a decision was saved when an older
187
197
  server lacks this tool.
198
+ Reviewing is done in ONE pass per delivery: do not call `delegate_review` to
199
+ "check in" while the run is still going, and do not review the same result more
200
+ than once.
188
201
  - `failed`, `cancelled`: the run ended without deliverables. Call
189
202
  `delegate_result` ONCE for the same task to read the recorded reason, then report
190
203
  it. Do not resubmit identical work hoping for a different result; if a correction
@@ -1,17 +1,19 @@
1
- # DSH TaskBridge
2
-
3
- Let Claude Code or Codex direct DSH tasks. Choose the execution API, model and supported reasoning effort in the DSH plugin settings.
4
-
5
- The host plans, dispatches and reviews; DSH executes using the effective configuration. Follow-up corrections explicitly continue the same task conversation and execution checkout. Providers come from DSH's existing API connections, without copying their credentials into the plugin.
6
-
7
- The settings include the local delegation switch, worker model/effort, task timeout, concurrency, workspace isolation, project overrides and optional additional read-only model review. A newly installed plugin starts with delegation disabled. Runtime/model capability checks remain authoritative.
8
-
9
- The quiet wait observes execution inside the program and returns at actionable boundaries. Pending wider-permission calls are presented to the commander for a single-call decision. Completion is evidence for host review, never automatic host acceptance.
10
-
11
- Version 1.4.0 clarifies long outer waits and continuation of the same running call, adds a configurable repeated-tool-failure reminder (3 by default; 0 disables it), and lets the host explicitly record an accepted or changes-requested decision with `delegate_review`. Task records display that decision instead of remaining indefinitely awaiting review.
12
-
13
- Codex has a managed agent/MCP installation button. Version 1.3.2 names the companion `dsh-taskbridge` and migrates unchanged published legacy companions. New DSH Workspaces use the task's work-content title; explicit follow-ups keep the original Workspace and conversation. Claude Code connects using standard stdio MCP; see [the manual guide](claude-code.md). A Claude one-click installer and native client mention selection are not promised.
14
-
15
- Version 1.3.1 adopts DSH TaskBridge and the package identity `dsh-taskbridge`, replacing `dsh-delegate` and the GitHub-only `dsh-taskdispatch` 1.3.0. Read the [upgrade guide](taskbridge-upgrade.md) before replacing an old installation. Historical data, MCP tools, environment variables and the Codex `dsh-delegate` technical identifier remain compatible. Do not run old and new bundles together.
16
-
17
- In DSH's Add plugin dialog, use `dsh-taskbridge@1.4.0`; use the official npm registry if a regional mirror has not synchronized yet. Distribution also uses GitHub releases and a [DSH custom plugin index](plugin-market.md) pinned to exact Git commits. This is not universal official marketplace inclusion. A single same-model, approximately 45-second waiting comparison reduced recorded waiting-response tokens by 66.58% (3 model responses to 1); this is not a full-task or billing reduction. See the [measurement report](releases/1.4.0-token-benchmark.zh.md). Client time limits and full Desktop upgrade behavior require environment-specific verification.
1
+ # DSH TaskBridge
2
+
3
+ Version 1.4.1 adds review after restart, confirmed persistence, 8000-code-point review notes and compact waiting with on-demand full-note reads. Install `dsh-taskbridge@1.4.1` or use its release tarball. See the [release notes](releases/1.4.1.zh.md).
4
+
5
+ Let Claude Code or Codex direct DSH tasks. Choose the execution API, model and supported reasoning effort in the DSH plugin settings.
6
+
7
+ The host plans, dispatches and reviews; DSH executes using the effective configuration. Follow-up corrections explicitly continue the same task conversation and execution checkout. Providers come from DSH's existing API connections, without copying their credentials into the plugin.
8
+
9
+ The settings include the local delegation switch, worker model/effort, task timeout, concurrency, workspace isolation, project overrides and optional additional read-only model review. A newly installed plugin starts with delegation disabled. Runtime/model capability checks remain authoritative.
10
+
11
+ The quiet wait observes execution inside the program and returns at actionable boundaries. Pending wider-permission calls are presented to the commander for a single-call decision. Completion is evidence for host review, never automatic host acceptance.
12
+
13
+ Version 1.4.0 clarifies long outer waits and continuation of the same running call, adds a configurable repeated-tool-failure reminder (3 by default; 0 disables it), and lets the host explicitly record an accepted or changes-requested decision with `delegate_review`. Task records display that decision instead of remaining indefinitely awaiting review.
14
+
15
+ Codex has a managed agent/MCP installation button. Version 1.3.2 names the companion `dsh-taskbridge` and migrates unchanged published legacy companions. New DSH Workspaces use the task's work-content title; explicit follow-ups keep the original Workspace and conversation. Claude Code connects using standard stdio MCP; see [the manual guide](claude-code.md). A Claude one-click installer and native client mention selection are not promised.
16
+
17
+ Version 1.3.1 adopts DSH TaskBridge and the package identity `dsh-taskbridge`, replacing `dsh-delegate` and the GitHub-only `dsh-taskdispatch` 1.3.0. Read the [upgrade guide](taskbridge-upgrade.md) before replacing an old installation. Historical data, MCP tools, environment variables and the Codex `dsh-delegate` technical identifier remain compatible. Do not run old and new bundles together.
18
+
19
+ In DSH's Add plugin dialog, use `dsh-taskbridge@1.4.1`; use the official npm registry if a regional mirror has not synchronized yet. Distribution also uses GitHub releases and a [DSH custom plugin index](plugin-market.md) pinned to exact Git commits. This is not universal official marketplace inclusion. A single same-model, approximately 45-second waiting comparison reduced recorded waiting-response tokens by 66.58% (3 model responses to 1); this is not a full-task or billing reduction. See the [measurement report](releases/1.4.0-token-benchmark.zh.md). Client time limits and full Desktop upgrade behavior require environment-specific verification.
@@ -1,36 +1,38 @@
1
- # DSH TaskBridge
2
-
3
- **让 Claude Code 或 Codex 指挥 DSH 完成任务,在 DSH 插件里配置执行所用的 API、模型和思考强度。**
4
-
5
- 你向指挥端说明目标,指挥端负责规划、拆分、派工和审查;DSH 根据插件设置调用执行模型。执行结束后交回结果,有需要修改的地方,指挥端可以续接同一任务对话继续处理。
6
-
7
- ## 在 DSH 中配置执行
8
-
9
- - 从 DSH 已接入的 API 提供方中选择,无需重复填写接口地址和密钥。
10
- - 选择执行模型及其支持的思考强度;也可设置任务超时、并发数量和工作区隔离方式。
11
- - 用一个本机调用总开关控制是否允许派工。新安装默认关闭;安装插件不会自动授权执行。
12
- - 可选开启额外模型审查,为审查单独选择 API、模型和思考强度;最终是否接收结果仍由指挥端决定。
13
- - 保存项目级覆盖和非敏感配置预设。具体选项以运行时及模型实际支持能力为准。
14
-
15
- ## 在执行期间减少重复干预
16
-
17
- `delegate_wait` 在程序内部观察任务。正常执行时保持等待,只在交付、失败、审批、停滞检查或等待上限等节点返回简短信息。连续 5 分钟无新活动时程序自查,10 分钟时请求指挥端判断;阈值可在高级设置中调整。
18
-
19
- 需要更大权限的工具调用会暂停,指挥端根据准确操作和指纹决定单次允许或拒绝,不是默认全部放行。交付后集中审查,修正通过 `continueFromTaskId` 续接原对话与执行工作区。
20
-
21
- 1.4.0 明确长等待及同一等待单元续接规则,新增默认 3 次的重复工具失败提醒(可调整,0 关闭)。指挥端审查交付后通过 `delegate_review` 写回结论,任务页区分“审查通过”“需要修正”和尚未审查,避免记录始终停在待审。
22
-
23
- 1.3.2 起,新建的 DSH 工作区按实际工作内容命名,例如“制作潘德 G 版装备表”,不再只显示工作树的任务编号。指挥端随派工提交标题,旧客户端则从任务目标提取;续接同一任务时保留原名称与对话。
24
-
25
- ## 连接 Claude Code 与 Codex
26
-
27
- - **Codex**:设置页提供智能体及 MCP 的安装/修复按钮。智能体名为 `dsh-taskbridge`,更新会迁移未修改的旧智能体,派工规则随安装写入。客户端是否提供输入框 `@` 选择由客户端版本决定。
28
- - **Claude Code**:通过标准 stdio MCP 连接,参见 [接入说明](claude-code.md)。目前没有一键安装 Claude Code 的按钮,也未进行真实 Claude Code 客户端验收。
29
-
30
- ## 安装、升级和边界
31
-
32
- 项目原名 DSH Delegate,1.3.0 曾使用 DSH TaskDispatch。1.3.1 起统一为 **DSH TaskBridge**,包名为 `dsh-taskbridge`。从旧包升级请先阅读 [更名升级说明](taskbridge-upgrade.md)。在 DSH“添加插件”中输入 `dsh-taskbridge@1.4.0`;中国大陆镜像若尚未同步,改选 npm 官方源。GitHub Release 同时提供安装包。
33
-
34
- [插件索引与更新说明](plugin-market.md)介绍如何添加索引,在 DSH 的“发现”中搜索本插件。发布自定义索引不代表已进入官方内置市场;DSH 当前需要用户自行添加可信索引。
35
-
36
- 同一 Codex 模型的约 45 秒等待对照样本中,长等待把模型响应从 3 次减少为 1 次,记录的等待阶段 token 总量减少 66.58%。这不是整个任务或账单的节省比例;方法与边界见[测量报告](releases/1.4.0-token-benchmark.zh.md)。插件不保证所有客户端完全零唤醒,Windows 与隔离迁移测试也不等同于所有平台和客户端均已验收。
1
+ # DSH TaskBridge
2
+
3
+ 1.4.1 补齐跨重启补审、可靠保存、8000 Unicode 码点审查意见及按需全文读取,页面自动显示审查进展。安装 `dsh-taskbridge@1.4.1` 或对应的 Release 安装包;详见 [1.4.1 更新说明](releases/1.4.1.zh.md)。
4
+
5
+ **让 Claude Code 或 Codex 指挥 DSH 完成任务,在 DSH 插件里配置执行所用的 API、模型和思考强度。**
6
+
7
+ 你向指挥端说明目标,指挥端负责规划、拆分、派工和审查;DSH 根据插件设置调用执行模型。执行结束后交回结果,有需要修改的地方,指挥端可以续接同一任务对话继续处理。
8
+
9
+ ## 在 DSH 中配置执行
10
+
11
+ - 从 DSH 已接入的 API 提供方中选择,无需重复填写接口地址和密钥。
12
+ - 选择执行模型及其支持的思考强度;也可设置任务超时、并发数量和工作区隔离方式。
13
+ - 用一个本机调用总开关控制是否允许派工。新安装默认关闭;安装插件不会自动授权执行。
14
+ - 可选开启额外模型审查,为审查单独选择 API、模型和思考强度;最终是否接收结果仍由指挥端决定。
15
+ - 保存项目级覆盖和非敏感配置预设。具体选项以运行时及模型实际支持能力为准。
16
+
17
+ ## 在执行期间减少重复干预
18
+
19
+ `delegate_wait` 在程序内部观察任务。正常执行时保持等待,只在交付、失败、审批、停滞检查或等待上限等节点返回简短信息。连续 5 分钟无新活动时程序自查,10 分钟时请求指挥端判断;阈值可在高级设置中调整。
20
+
21
+ 需要更大权限的工具调用会暂停,指挥端根据准确操作和指纹决定单次允许或拒绝,不是默认全部放行。交付后集中审查,修正通过 `continueFromTaskId` 续接原对话与执行工作区。
22
+
23
+ 1.4.0 明确长等待及同一等待单元续接规则,新增默认 3 次的重复工具失败提醒(可调整,0 关闭)。指挥端审查交付后通过 `delegate_review` 写回结论,任务页区分“审查通过”“需要修正”和尚未审查,避免记录始终停在待审。
24
+
25
+ 1.3.2 起,新建的 DSH 工作区按实际工作内容命名,例如“制作潘德 G 版装备表”,不再只显示工作树的任务编号。指挥端随派工提交标题,旧客户端则从任务目标提取;续接同一任务时保留原名称与对话。
26
+
27
+ ## 连接 Claude Code 与 Codex
28
+
29
+ - **Codex**:设置页提供智能体及 MCP 的安装/修复按钮。智能体名为 `dsh-taskbridge`,更新会迁移未修改的旧智能体,派工规则随安装写入。客户端是否提供输入框 `@` 选择由客户端版本决定。
30
+ - **Claude Code**:通过标准 stdio MCP 连接,参见 [接入说明](claude-code.md)。目前没有一键安装 Claude Code 的按钮,也未进行真实 Claude Code 客户端验收。
31
+
32
+ ## 安装、升级和边界
33
+
34
+ 项目原名 DSH Delegate,1.3.0 曾使用 DSH TaskDispatch。1.3.1 起统一为 **DSH TaskBridge**,包名为 `dsh-taskbridge`。从旧包升级请先阅读 [更名升级说明](taskbridge-upgrade.md)。在 DSH“添加插件”中输入 `dsh-taskbridge@1.4.1`;中国大陆镜像若尚未同步,改选 npm 官方源。GitHub Release 同时提供安装包。
35
+
36
+ [插件索引与更新说明](plugin-market.md)介绍如何添加索引,在 DSH 的“发现”中搜索本插件。发布自定义索引不代表已进入官方内置市场;DSH 当前需要用户自行添加可信索引。
37
+
38
+ 同一 Codex 模型的约 45 秒等待对照样本中,长等待把模型响应从 3 次减少为 1 次,记录的等待阶段 token 总量减少 66.58%。这不是整个任务或账单的节省比例;方法与边界见[测量报告](releases/1.4.0-token-benchmark.zh.md)。插件不保证所有客户端完全零唤醒,Windows 与隔离迁移测试也不等同于所有平台和客户端均已验收。
@@ -1,6 +1,18 @@
1
1
  # Codex integration contract
2
2
 
3
- Status: implemented in 1.4.0 (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. Claude Code uses the separate manual MCP guide.
3
+ Status: implemented in 1.4.1 (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. Claude Code uses the separate manual MCP guide.
4
+
5
+ 1.4.1 recognizes the exact unmodified
6
+ 1.4.0 companion in LF and CRLF forms, and updates the review contract: a completed
7
+ task may be read and reviewed by its original identity after a restart. History
8
+ does not restore execution or old permissions. Reviews are confirmed only when
9
+ `reviewPersistence.durable` is true (`state: "saved"`); `saving` or `timed-out`
10
+ means the write is still unconfirmed, and `failed` permits a retry. Ordinary waits
11
+ omit review prose. A result that reports `noteOmitted: true` can be read with
12
+ `delegate_result` plus `reviewNoteOffset` and optional `reviewNoteLimit` (1–2000
13
+ Unicode code points per page, default 2000); follow `nextOffset` until `complete`.
14
+ Review notes accept up to 8000 code points after trimming and are stored redacted.
15
+ See the [release notes](releases/1.4.1.zh.md) for validation boundaries.
4
16
 
5
17
  This document is the contract between the plugin's settings page (browser half),
6
18
  the host-side installer (`src/codex/installer.js`) and the two files it manages.
@@ -515,7 +527,7 @@ successful diagnosis.
515
527
  ```jsonc
516
528
  {
517
529
  "codexHome": "…",
518
- "packageVersion": "1.4.0",
530
+ "packageVersion": "1.4.1",
519
531
  "boundary": { "blocked": false, "link": null, "unknown": false, "home": "directory", "agents": "directory" },
520
532
  "agent": {
521
533
  "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.4.0`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
18
+ 当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.4.1`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
19
19
 
20
20
  ## 新版本
21
21
 
@@ -0,0 +1,59 @@
1
+ # DSH TaskBridge 1.4.1 更新说明
2
+
3
+ 发布日期:2026 年 11 月 14 日。安装标识:`dsh-taskbridge@1.4.1`。
4
+
5
+ 让 Claude Code 或 Codex 指挥 DSH 工作,在 DSH 插件中配置 API、执行模型和思考强度。1.4.1 针对 1.4.0 审查报告中的 R1—R5,补齐执行结束后的审查闭环。
6
+
7
+ ## 重启后继续读取和补审
8
+
9
+ 已结束任务保留原 ID。DSH/插件重启后,原指挥端仍可通过结果、等待与审查工具读取已保存记录;完成但尚未审查的任务可直接补审,再次重启仍保留结论。
10
+
11
+ 历史记录是可审查的证据,不会恢复成执行任务,也不会恢复旧权限申请。失败、取消或中断保持真实结局。其他身份与未知 ID 得到一致的拒绝;关闭派工开关后,已有结果读取和审查仍可进行。
12
+
13
+ 历史缺少的输出、差异或关联证据会明确标记。是否足以验收由指挥端判断;插件不会因为历史记录存在便自动通过。
14
+
15
+ ## 保存确认后才显示审查结论
16
+
17
+ 审查结论分为保存中、保存未确认、已保存及确定失败。请求等待超过默认 5 秒,仅表示底层写入尚未确认,不能当作确定失败,也不能提前说审查已记录。
18
+
19
+ 晚到的成功或失败会同步到后续读取和页面。相同审查并发提交共享一次写入,已有结论与冲突请求明确区分;确定失败可重试。任务收尾快照不能覆盖已经保存的审查结论,其他任务的历史写入也不应丢失。
20
+
21
+ ## 8000 字符审查意见完整保存
22
+
23
+ 统一按 **Unicode 码点** 统计,最多 8000,覆盖中文、英文、换行和 emoji。输入仍去除首尾空白并脱敏,合法正文不会再被通用短标签裁到 256 字符;超过限制在写入前拒绝。存储容量不足时明确报告,不能删掉审查正文来宣称保存成功。
24
+
25
+ 以前已被旧版截掉的部分,升级无法自动恢复;需要原对话或报告作为补证。
26
+
27
+ ## 页面和工具各按用途返回内容
28
+
29
+ - 可见页面在有运行中、待审或保存中记录时每 5 秒刷新;隐藏暂停、恢复立即读取,结论确认后停止。待审不被当作正在执行,也不增加取消入口。刷新失败保留原记录并提示异常。
30
+ - 列表只展示最多 200 码点预览,详情可展开和复制全文。剪贴板不可用、同步拒绝或异步失败时准确提示。
31
+ - `delegate_wait` 继续简短返回状态,不重复附带长审查正文。
32
+ - 旧 `delegate_result({ taskId })` 继续可用。返回大小受限时,备注明确带 `noteOmitted: true` 和 `noteChars`,不会把截短正文冒充全文。
33
+ - 需要全文时使用 `delegate_result({ taskId, reviewNoteOffset: 0 })`。默认每页 2000 码点,可用 `reviewNoteLimit` 调整到 1—2000;按 `nextOffset` 续读,到 `complete: true` 结束。分页只读取备注,不重复搬运执行输出和差异。
34
+
35
+ ## Codex 集成与升级
36
+
37
+ 受管理的原版 1.4.0 模板支持 LF/CRLF 精确识别和升级;用户改过的文件保留。新规则强调集中审查、写回确认、按需取全文以及通过 `continueFromTaskId` 续接原任务。
38
+
39
+ 首次安装仍使用插件设置页集成按钮。正式更新后,客户端可能需要重新加载规则和工具目录。历史数据目录、MCP 技术名称和 API/模型选择方式保持兼容。
40
+
41
+ ## 安装与升级
42
+
43
+ 在 DSH 插件管理中更新 `dsh-taskbridge`,或在添加插件时输入 `dsh-taskbridge@1.4.1`。区域镜像未同步时选择 npm 官方源;也可使用本 Release 的 `dsh-taskbridge-1.4.1.tgz` 和 SHA256 校验文件。订阅本项目自定义索引的用户,可在索引部署完成后刷新发现页面获取版本。
44
+
45
+ 升级后按需重新加载 Codex,使客户端重新读取受管理规则和 MCP 工具目录。不要同时启用旧名称的插件副本;既有数据目录和模型设置保持兼容。
46
+
47
+ ## 验证结果与边界
48
+
49
+ 完整自动回归 **1283 项通过**;同步开发仓库后,包内容、历史补审和页面刷新驱动的针对性验证 **48 项通过**。客户端构建及一致性检查、`git diff --check` 通过。
50
+
51
+ 隔离安装包使用实际 stdio MCP 子进程与本机 HTTP 接口,完成原任务 ID 读取、重启后补审、再次重启读回;8000 码点备注经 4 页完整重组。普通等待回复不带备注正文,该次通道验收为 1566 字节。
52
+
53
+ 自动回归覆盖真实历史写盘、超时后成功/失败、同任务并发、其他任务同时保存、收尾重叠、码点边界,以及刷新 hook 与实际 store、剪贴板和临时 Codex 配置迁移。
54
+
55
+ 自动测试使用包内真实模块和临时目录,模型/会话由夹具提供;发布不代替用户正式 Desktop 升级、页面点击验收、真实提供方任务验收或真实客户端长等待验收。
56
+
57
+ 本版没有重新测量账单或整任务 token,不给出新的节省百分比;仅验证长备注不会使普通等待回复按正文长度膨胀。1.4.0 的短样本测量保留其原有适用边界。
58
+
59
+ 本版不包含后续规划的外层静默等待优化、审批后直接恢复等待和减少不必要提权申请。这些问题另行实施与验收。
@@ -1,10 +1,16 @@
1
1
  # Runtime compatibility
2
2
 
3
- This document states which DSH runtimes this plugin build (`1.4.0`, package
4
- `dsh-taskbridge-1.4.0.tgz`) may be loaded into, what changed in the newest one, and what
3
+ Build 1.4.1 keeps the supported DSH
4
+ range unchanged. The history/review corrections are tested in temporary data
5
+ directories and isolated package installations; they do not establish a production
6
+ Desktop upgrade or live provider execution. The 1.4.0 measurement below remains a
7
+ historical waiting-channel sample, not a new 1.4.1 token-saving claim.
8
+
9
+ This document states which DSH runtimes this plugin build (`1.4.1`, package
10
+ `dsh-taskbridge-1.4.1.tgz`) may be loaded into, what changed in the newest one, and what
5
11
  has and has not been verified on it. It is a compatibility note, not an acceptance
6
12
  report; the package is distributed through npm and the GitHub Release. See the
7
- [1.4.0 release notes](releases/1.4.0.zh.md) for upgrade details and the
13
+ [1.4.1 release notes](releases/1.4.1.zh.md) for upgrade details and the
8
14
  [1.3.1 release report](releases/1.3.1.zh.md) for historical distribution verification.
9
15
 
10
16
  `1.1.0` added silent waiting: the global `monitoring` thresholds (self-check and attention
@@ -199,10 +205,10 @@ What remains genuinely unverified:
199
205
 
200
206
  ## 5. Upgrading from an older plugin build
201
207
 
202
- 1. Download `dsh-taskbridge-1.4.0.tgz` from the GitHub Release, or build the package locally (`npm pack`).
208
+ 1. Download `dsh-taskbridge-1.4.1.tgz` from the GitHub Release, or build the package locally (`npm pack`).
203
209
  2. Install it the way your surface requires: the Desktop **Plugins manager** for a
204
210
  Desktop profile (npm/CLI operations on that profile are refused), or
205
- `dsh plugin --profile <name> add ./dsh-taskbridge-1.4.0.tgz` for a CLI profile you
211
+ `dsh plugin --profile <name> add ./dsh-taskbridge-1.4.1.tgz` for a CLI profile you
206
212
  start yourself.
207
213
  3. The settings, the switch value and the task history are preserved
208
214
  (`$DSH_HOME/data/dsh-delegate`); nothing is migrated destructively.
@@ -204,6 +204,20 @@ node bin/dsh-delegate-control.js cancel <taskId> # 只停止这一个任务
204
204
 
205
205
  ## 7. 续接(跟进任务)
206
206
 
207
+ ### 1.4.1:审查保存与长备注
208
+
209
+ 原身份可读取和补审已结束的历史任务,重启不恢复执行或旧审批。审查备注统一最多
210
+ 8000 Unicode 码点(输入去除首尾空白并脱敏),合法正文完整保存,超限或容量不足明确拒绝。
211
+ `reviewPersistence` 区分 `saving`、`timed-out`、`saved`、`failed`;超过 5 秒只是尚未确认,
212
+ 不能宣称保存失败或提前通过。晚到结果通过状态读取确认;确定失败可重试。
213
+
214
+ 等待仅带结论状态和长度。结果中的 `noteOmitted: true` 表示正文被明确省略,使用
215
+ `delegate_result({ taskId, reviewNoteOffset: 0 })` 按 `nextOffset` 读取;默认每页 2000 码点,
216
+ 可选 `reviewNoteLimit` 范围 1—2000,直到 `complete: true`。列表 200 码点预览与详情展开
217
+ 不改变保存正文;可见页面的待审/保存中刷新由程序完成,不唤醒 GPT。
218
+
219
+ ### 同一任务继续修正
220
+
207
221
  同一个任务的修改、纠正或重试,用 `continueFromTaskId` 提交,并继续使用**同一个**
208
222
  已授权的源工作区路径。这样跟进任务会续接同一条 DSH 对话、落在同一棵工作树里。
209
223
  不相关的任务不要复用 id,也不要为了"保持上下文"而续接。
@@ -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.4.0`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.4.0.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
9
+ 3. 在“添加插件”中输入 **`dsh-taskbridge@1.4.1`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.4.1.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`。