dsh-taskbridge 1.5.1 → 1.5.3
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 +34 -0
- package/README.md +281 -28
- package/codex/dsh-taskbridge.toml +38 -1
- package/docs/INTRODUCTION.md +262 -9
- package/docs/INTRODUCTION.zh.md +255 -21
- package/docs/assets/taskbridge-workflow.en.png +0 -0
- package/docs/assets/taskbridge-workflow.zh.png +0 -0
- package/docs/claude-code.md +14 -22
- package/docs/codex-integration.md +2 -2
- package/docs/plugin-market.md +1 -1
- package/docs/releases/1.5.2.zh.md +30 -0
- package/docs/releases/1.5.3-test.1.zh.md +28 -0
- package/docs/releases/1.5.3-test.2.zh.md +24 -0
- package/docs/releases/1.5.3.zh.md +33 -0
- package/docs/runtime-compatibility.md +4 -4
- package/docs/taskbridge-upgrade.md +1 -1
- package/docs/worker-permissions.md +1 -1
- package/lib/client.js +42 -6
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +8 -3
- package/src/client/api.js +23 -9
- package/src/client/styles.js +35 -2
- package/src/codex/installer.js +157 -47
- package/src/mcp/server.js +6 -2
package/docs/claude-code.md
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
# Claude Code
|
|
1
|
+
# Claude Code / Claude Desktop 接入计划
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**当前版本仅支持 Codex 端。Claude Code 和 Claude Desktop 接入预计在 2.0 版本上线。**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
TaskBridge 目前提供 Codex 智能体与 MCP 的安装、更新和修复入口。Claude Code、Claude Desktop 尚未作为当前版本的正式接入端提供;请先通过 Codex 使用现有的派工、等待、审批和审查流程。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 2.0 计划
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"args": ["<本插件安装目录>/bin/dsh-delegate-mcp.js"],
|
|
15
|
-
"env": {
|
|
16
|
-
"DSH_DELEGATE_DISCOVERY_FILE": "<DSH_HOME>/data/dsh-delegate/runtime-endpoint.json"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
```
|
|
9
|
+
| 客户端 | 当前状态 | 预计版本 |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| Codex | 已支持 | 当前版本可用 |
|
|
12
|
+
| Claude Code | 接入尚未上线 | 2.0 |
|
|
13
|
+
| Claude Desktop | 接入尚未上线 | 2.0 |
|
|
22
14
|
|
|
23
|
-
|
|
15
|
+
计划的目标是让 Claude Code 和 Claude Desktop 也能作为指挥端,使用 DSH 插件中配置的执行 API、模型和思考强度,并接入任务委派、静默等待、必要判断和交付审查流程。
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
具体配置入口、客户端操作方法与验收范围将在 2.0 发布时提供。预计版本是产品计划,实际功能以对应发布说明为准。
|
|
26
18
|
|
|
27
|
-
|
|
19
|
+
## 关于旧的手动 MCP 文档
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
本页此前记录过标准 stdio MCP 的手动连接方案。该方案不代表 Claude 客户端已经正式上线或完成实际验收;为避免误导,本页已改为接入规划。
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
当前安装步骤请查看 [TaskBridge 中文介绍](INTRODUCTION.zh.md) 和 [Codex 集成说明](codex-integration.md)。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Codex integration contract
|
|
2
2
|
|
|
3
|
-
Status: implemented in 1.5.
|
|
3
|
+
Status: implemented in 1.5.3 (commander-owned planning, bounded work packets, and mixed-line-ending 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
|
|
|
@@ -526,7 +526,7 @@ successful diagnosis.
|
|
|
526
526
|
```jsonc
|
|
527
527
|
{
|
|
528
528
|
"codexHome": "…",
|
|
529
|
-
"packageVersion": "1.5.
|
|
529
|
+
"packageVersion": "1.5.3",
|
|
530
530
|
"boundary": { "blocked": false, "link": null, "unknown": false, "home": "directory", "agents": "directory" },
|
|
531
531
|
"agent": {
|
|
532
532
|
"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.3`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
|
|
19
19
|
|
|
20
20
|
## 新版本
|
|
21
21
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# DSH TaskBridge 1.5.2 更新说明
|
|
2
|
+
|
|
3
|
+
发布日期:2026 年 11 月 15 日。安装标识:`dsh-taskbridge@1.5.2`。
|
|
4
|
+
|
|
5
|
+
**这次专门更新插件介绍,帮助新用户更快了解 TaskBridge 能做什么、如何接入与开始派工。功能沿用 1.5.1。**
|
|
6
|
+
|
|
7
|
+
## 更新内容
|
|
8
|
+
|
|
9
|
+
- **列表简介**:讲清“让 Codex 指挥 DSH”的定位,突出在插件中选择已有 API、执行模型与思考强度,以及静默等待、审批、审查和原会话续接。
|
|
10
|
+
- **中英文详情**:按产品用途、完整任务流程、核心功能和上手步骤重新组织,补充设置表、任务状态、实际派工示例、常见问题和中英文任务流程图。
|
|
11
|
+
- **README**:先介绍产品和使用价值,再提供版本更新与技术文档,方便从 GitHub 或 npm 了解项目。
|
|
12
|
+
- **能力说明**:当前仅支持 Codex 端;Claude Code 与 Claude Desktop 接入预计在 2.0 上线。同步修订旧的 Claude 接入说明,避免将规划功能写成已上线能力。
|
|
13
|
+
|
|
14
|
+
## 功能与升级
|
|
15
|
+
|
|
16
|
+
API/模型选择、静默等待、权限审批、集中审查和同任务续接的行为保持 1.5.1。同步发布版本及未修改的 1.5.1 Codex 托管模板身份,支持正常升级;用户自定义配置仍保留。
|
|
17
|
+
|
|
18
|
+
已有功能的验收范围与已知限制见 [1.5.1 更新说明](1.5.1.zh.md)。本次不新增执行通道,不宣称新的 token 节省比例。
|
|
19
|
+
|
|
20
|
+
## 本次检查
|
|
21
|
+
|
|
22
|
+
- 161 项发布、版本、包内容及 Codex 集成相关检查通过,无失败、跳过或取消。
|
|
23
|
+
- 前端构建一致性检查通过;托管智能体的行为规则与 1.5.1 相同,仅同步版本戳。
|
|
24
|
+
- 本次检查围绕文案分发与升级,不将 1.5.1 的真实模型验收记作本次重新执行。
|
|
25
|
+
|
|
26
|
+
## 更新方式
|
|
27
|
+
|
|
28
|
+
在 DSH 插件管理中更新 `dsh-taskbridge`,或在“添加插件”中输入 `dsh-taskbridge@1.5.2`;也可安装 GitHub Release 提供的 `dsh-taskbridge-1.5.2.tgz`。区域镜像尚未同步时请选择 npm 官方源。
|
|
29
|
+
|
|
30
|
+
本项目自定义插件索引随正式 Release 更新。已安装插件的介绍随本次更新显示;发现页和镜像可能需要刷新缓存。
|
|
@@ -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。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Runtime compatibility
|
|
2
2
|
|
|
3
|
-
Build 1.5.
|
|
3
|
+
Build 1.5.3 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.
|
|
@@ -53,7 +53,7 @@ acceptance run.
|
|
|
53
53
|
- Development dependencies remain pinned for reproducible tests; they do not
|
|
54
54
|
restrict the host-provided peer versions used by an installed plugin.
|
|
55
55
|
- Older plugin packages keep their own metadata and can still be refused by a
|
|
56
|
-
newer host. Upgrade to `dsh-taskbridge@1.5.
|
|
56
|
+
newer host. Upgrade to `dsh-taskbridge@1.5.2` to use this loading policy.
|
|
57
57
|
|
|
58
58
|
## 2. What DSH 0.2.2 changes
|
|
59
59
|
|
|
@@ -184,10 +184,10 @@ What remains genuinely unverified:
|
|
|
184
184
|
|
|
185
185
|
## 5. Upgrading from an older plugin build
|
|
186
186
|
|
|
187
|
-
1. Download `dsh-taskbridge-1.5.
|
|
187
|
+
1. Download `dsh-taskbridge-1.5.2.tgz` from the GitHub Release, or build the package locally (`npm pack`).
|
|
188
188
|
2. Install it the way your surface requires: the Desktop **Plugins manager** for a
|
|
189
189
|
Desktop profile (npm/CLI operations on that profile are refused), or
|
|
190
|
-
`dsh plugin --profile <name> add ./dsh-taskbridge-1.5.
|
|
190
|
+
`dsh plugin --profile <name> add ./dsh-taskbridge-1.5.2.tgz` for a CLI profile you
|
|
191
191
|
start yourself.
|
|
192
192
|
3. The settings, the switch value and the task history are preserved
|
|
193
193
|
(`$DSH_HOME/data/dsh-delegate`); nothing is migrated destructively.
|
|
@@ -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.3`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.5.3.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.3; 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)
|
|
993
|
-
|
|
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
|
-
|
|
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 {
|
|
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 {
|
|
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/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "DSH TaskBridge",
|
|
4
|
-
"description": "Let
|
|
4
|
+
"description": "Let Codex direct DSH with your choice of API, worker model and reasoning effort. Includes quiet waiting, per-operation approvals, review, same-session corrections, optional model review, automatic saving and Codex integration setup. Claude Code and Claude Desktop support is planned for 2.0.",
|
|
5
5
|
"detail": "docs/INTRODUCTION.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "DSH TaskBridge",
|
|
4
|
-
"description": "让
|
|
4
|
+
"description": "让 Codex 指挥 DSH:在插件里选择已有 API、执行模型与思考强度,完成派工、静默等待、权限审批、集中审查和原会话续接。支持一键配置 Codex 智能体、可选模型复审与设置自动保存。Claude Code / Claude Desktop 接入预计在 2.0 上线。",
|
|
5
5
|
"detail": "docs/INTRODUCTION.zh.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-taskbridge",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "让
|
|
3
|
+
"version": "1.5.3",
|
|
4
|
+
"description": "让 Codex 指挥 DSH:在插件里选择已有 API、执行模型与思考强度,完成派工、静默等待、权限审批、集中审查和原会话续接。支持一键配置 Codex 智能体、可选模型复审与设置自动保存。Claude Code / Claude Desktop 接入预计在 2.0 上线。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -79,7 +79,12 @@
|
|
|
79
79
|
"docs/releases/1.4.2.zh.md",
|
|
80
80
|
"docs/releases/1.5.0.zh.md",
|
|
81
81
|
"docs/releases/1.5.0-token-benchmark.zh.md",
|
|
82
|
-
"docs/releases/1.5.1.zh.md"
|
|
82
|
+
"docs/releases/1.5.1.zh.md",
|
|
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/assets/*.png"
|
|
83
88
|
],
|
|
84
89
|
"dsh": {
|
|
85
90
|
"manifestVersion": 1,
|
package/src/client/api.js
CHANGED
|
@@ -1560,23 +1560,37 @@ export function hostReviewBadge(task) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
1562
|
/**
|
|
1563
|
-
* A task's recorded review conclusion as one
|
|
1563
|
+
* A task's recorded review conclusion as one SHORT display line.
|
|
1564
1564
|
*
|
|
1565
|
-
*
|
|
1566
|
-
*
|
|
1565
|
+
* This line carries the conclusion and its time — nothing else. The note BODY deliberately
|
|
1566
|
+
* does not appear here: this row sits beside the detail's own "完整审查意见" block, which
|
|
1567
|
+
* renders the saved text whole. Splicing a bounded cut of it in here produced a second,
|
|
1568
|
+
* truncated copy that read as if the stored text itself had been cut (the misleading
|
|
1569
|
+
* "已截断" line G10 fixes).
|
|
1570
|
+
*
|
|
1571
|
+
* The wording comes from `taskOutcome(...)` and only from there, so this row can never
|
|
1572
|
+
* claim a conclusion the headline contradicts — notably `accepted: true` with a review
|
|
1573
|
+
* record that is not durable yet (a save in flight, a timed-out unconfirmed write, a
|
|
1574
|
+
* failed one). A record written before `reviewPersistence` existed keeps the old
|
|
1575
|
+
* compatibility meaning (stored), which is again exactly what `taskOutcome` decides.
|
|
1567
1576
|
* @param {object} task - task view.
|
|
1568
1577
|
* @param {(at: number) => string} formatTime - time formatter from the page.
|
|
1569
1578
|
* @returns {string} display text.
|
|
1570
1579
|
*/
|
|
1571
1580
|
export function hostReviewLine(task, formatTime) {
|
|
1581
|
+
const outcome = taskOutcome(task);
|
|
1572
1582
|
const acceptance = task?.hostAcceptance;
|
|
1573
|
-
if (acceptance === null || acceptance === undefined)
|
|
1574
|
-
|
|
1583
|
+
if (acceptance === null || acceptance === undefined) {
|
|
1584
|
+
// Nothing recorded. A write that is pending or already failed is its own state, and
|
|
1585
|
+
// `taskOutcome` has already named it — repeating that here would say it twice.
|
|
1586
|
+
const persistence = task?.reviewPersistence;
|
|
1587
|
+
if (persistence?.pending === true || persistence?.state === 'failed') return outcome.label;
|
|
1588
|
+
return '未记录(插件不会自行验收)';
|
|
1589
|
+
}
|
|
1575
1590
|
const at = typeof acceptance.acceptedAt === 'number' ? `(${formatTime(acceptance.acceptedAt)})` : '';
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
return `${label}${at}${note}`;
|
|
1591
|
+
// Only a CONFIRMED record is described as saved; an unconfirmed write keeps its own
|
|
1592
|
+
// label and never borrows this suffix.
|
|
1593
|
+
return outcome.decided ? `${outcome.label}${at}(结论已保存)` : `${outcome.label}${at}`;
|
|
1580
1594
|
}
|
|
1581
1595
|
|
|
1582
1596
|
/**
|
package/src/client/styles.js
CHANGED
|
@@ -209,9 +209,42 @@ export const CSS_TEXT = `
|
|
|
209
209
|
.dshdg-fail { color: var(--dsw-alias-label-error, #d92d20); }
|
|
210
210
|
.dshdg-unknown { color: var(--dsw-alias-label-tertiary, #8a9098); }
|
|
211
211
|
.dshdg-table { display: grid; gap: 4px; }
|
|
212
|
-
.dshdg-kv {
|
|
212
|
+
.dshdg-kv {
|
|
213
|
+
display: grid;
|
|
214
|
+
grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
|
|
215
|
+
gap: 4px 10px;
|
|
216
|
+
min-width: 0;
|
|
217
|
+
}
|
|
213
218
|
.dshdg-kv dt { color: var(--dsw-alias-label-secondary, #61666d); }
|
|
214
|
-
.dshdg-kv dd {
|
|
219
|
+
.dshdg-kv dd {
|
|
220
|
+
margin: 0;
|
|
221
|
+
/* A grid item defaults to min-width: auto, i.e. "at least as wide as my longest
|
|
222
|
+
unbreakable run" — the single place that pushed a long review note past the panel. */
|
|
223
|
+
min-width: 0;
|
|
224
|
+
overflow-wrap: anywhere;
|
|
225
|
+
}
|
|
226
|
+
/* A recorded review note: shown whole, wrapped inside its own track, never clipped.
|
|
227
|
+
pre-wrap keeps every paragraph break and every space the host stored; anywhere breaks a
|
|
228
|
+
long unbroken run (a path, a URL, 270 code points of Chinese with no spaces). Nothing
|
|
229
|
+
here shortens, hides or line-clamps the body: the block keeps its natural height. */
|
|
230
|
+
.dshdg-note {
|
|
231
|
+
min-width: 0;
|
|
232
|
+
max-width: 100%;
|
|
233
|
+
overflow-wrap: anywhere;
|
|
234
|
+
}
|
|
235
|
+
.dshdg-note-full {
|
|
236
|
+
min-width: 0;
|
|
237
|
+
max-width: 100%;
|
|
238
|
+
margin: 0;
|
|
239
|
+
white-space: pre-wrap;
|
|
240
|
+
overflow-wrap: anywhere;
|
|
241
|
+
word-break: break-word;
|
|
242
|
+
}
|
|
243
|
+
.dshdg-note-preview {
|
|
244
|
+
min-width: 0;
|
|
245
|
+
overflow-wrap: anywhere;
|
|
246
|
+
word-break: break-word;
|
|
247
|
+
}
|
|
215
248
|
@media (max-width: 560px) {
|
|
216
249
|
.dshdg-layer, .dshdg-kv { grid-template-columns: minmax(0, 1fr); }
|
|
217
250
|
}
|