dsh-taskbridge 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +21 -21
- package/README.md +150 -289
- package/THIRD_PARTY_NOTICES.txt +23 -23
- package/antigravity/agents/dsh-taskbridge.md +31 -0
- package/antigravity/skills/dsh-taskbridge/SKILL.md +51 -0
- package/codex/dsh-taskbridge.toml +170 -627
- package/cordis.patch.yml +6 -6
- package/docs/INTRODUCTION.md +119 -295
- package/docs/INTRODUCTION.zh.md +134 -279
- package/docs/antigravity-integration.md +42 -0
- package/docs/auth-contract.md +138 -138
- package/docs/claude-code.md +6 -11
- package/docs/codex-integration.md +13 -2
- package/docs/contracts-stage-b.md +443 -443
- package/docs/plugin-market.md +30 -30
- package/docs/redaction-contract.md +170 -170
- package/docs/releases/1.7.0.zh.md +11 -11
- package/docs/releases/1.8.0.zh.md +16 -0
- package/docs/runtime-compatibility.md +1 -1
- package/docs/taskbridge-upgrade.md +28 -28
- package/docs/taskdispatch-upgrade.md +25 -25
- package/docs/workspace-contract.md +538 -538
- package/docs/workspace-grouping.md +126 -126
- package/icon.svg +1 -1
- package/lib/client.d.ts +733 -699
- package/lib/client.js +7 -7
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +149 -144
- package/src/antigravity/installer.js +1046 -0
- package/src/antigravity/seam.js +142 -0
- package/src/auth/fence.js +361 -361
- package/src/auth/grants.js +789 -789
- package/src/client/api.js +143 -0
- package/src/client/index.jsx +113 -3
- package/src/client/sidebar.jsx +862 -862
- package/src/client/styles.js +624 -624
- package/src/client/task-cleanup.js +304 -304
- package/src/client/task-records-table.jsx +217 -217
- package/src/client/task-view.js +307 -307
- package/src/client/workspace-groups.js +482 -482
- package/src/client/workspaces-browser.jsx +770 -770
- package/src/codex/agent-ownership.js +270 -270
- package/src/codex/installer.js +6 -0
- package/src/codex/toml.js +784 -784
- package/src/config/redact.js +245 -245
- package/src/config/store.js +186 -186
- package/src/credentials/seam.js +202 -202
- package/src/http/respond.js +6 -5
- package/src/http/user-plane.js +72 -0
- package/src/index.js +25 -0
- package/src/jobs/diagnostics.js +15 -15
- package/src/jobs/plan-store.js +1020 -1020
- package/src/jobs/review-note.js +63 -63
- package/src/jobs/task-descriptions.js +82 -82
- package/src/jobs/task-display.js +73 -73
- package/src/jobs/task-tree.js +786 -786
- package/src/jobs/title.js +134 -134
- package/src/mcp/continuation.js +317 -317
- package/src/mcp/server.js +12 -5
- package/src/model/connectivity.js +371 -371
- package/src/model/discovery.js +582 -582
- package/src/model/native-catalog.js +68 -68
- package/src/model/openai-adapter.js +671 -671
- package/src/model/probe.js +264 -264
- package/src/model/providers.js +756 -756
- package/src/model/routing.js +321 -321
- package/src/runtime/permissions.js +1619 -1619
- package/src/runtime/question-call.js +162 -162
- package/src/runtime/questions.js +909 -909
- package/src/runtime/worker-prompt.js +60 -53
- package/src/workspace/audit.js +775 -775
- package/src/workspace/preflight.js +424 -424
- package/src/workspace/worktrees.js +679 -679
package/docs/plugin-market.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# DSH 插件索引、搜索和更新
|
|
2
|
-
|
|
3
|
-
本项目发布 **DSH TaskBridge 自定义插件索引**。它不是官方内置市场收录,也不会自动出现在没有订阅该索引的用户的搜索结果中。
|
|
4
|
-
|
|
5
|
-
索引地址:
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
https://ranranyya.github.io/dsh-taskbridge/index.json
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 在 DSH 中使用
|
|
12
|
-
|
|
13
|
-
1. 打开“插件”,启用实验性的“自定义插件索引”。
|
|
14
|
-
2. 在“发现”中选择“添加索引源”,填写上面的 HTTPS 地址。
|
|
15
|
-
3. 搜索 **DSH TaskBridge** 或 **dsh-taskbridge**。
|
|
16
|
-
4. 安装确认框应显示本项目 GitHub 仓库和精确提交。核对后安装,不要改填别人的 `dsh-delegate` 或 `dsh-dispatch` npm 包。
|
|
17
|
-
|
|
18
|
-
当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge
|
|
19
|
-
|
|
20
|
-
## 新版本
|
|
21
|
-
|
|
22
|
-
正式 Release 发布后,GitHub Pages 工作流会重新生成索引。支持 Git 来源更新的 DSH 版本可在索引中选择同一仓库的新版本更新;旧 Desktop 若提示第三方插件需要卸载再安装,以客户端实际能力为准。此前从本地 `.tgz` 安装的副本不保证自动转为 Git 来源。1.2.0 或 1.3.0 到 1.3.1 还涉及包名变更,必须先按 [升级说明](taskbridge-upgrade.md)迁移。曾添加旧 TaskDispatch 索引的用户,应改用本页的新索引地址。
|
|
23
|
-
|
|
24
|
-
工作流或 Pages 尚未部署成功时,不能声称已可搜索。发布报告记录实际公开地址、返回状态、格式校验与所指提交。1.4.2 起索引与插件都不声明 DSH 版本白名单,索引省略 `engines` 字段;所需运行时接口仍按实际能力检查。
|
|
25
|
-
|
|
26
|
-
## 维护发布源
|
|
27
|
-
|
|
28
|
-
`scripts/build-plugin-market.mjs` 从已检出的包元数据、明确的 40 位提交 SHA 和真实发布时间生成索引;不使用分支名或占位提交,不编造下载量或 star 数。`.github/workflows/plugin-market.yml` 在正式发布或手动指定已发布标签时部署 GitHub Pages;不自动发布 npm。
|
|
29
|
-
|
|
30
|
-
格式与操作依据:[DSH 官方插件索引说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/plugin-market.zh.md)。
|
|
1
|
+
# DSH 插件索引、搜索和更新
|
|
2
|
+
|
|
3
|
+
本项目发布 **DSH TaskBridge 自定义插件索引**。它不是官方内置市场收录,也不会自动出现在没有订阅该索引的用户的搜索结果中。
|
|
4
|
+
|
|
5
|
+
索引地址:
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
https://ranranyya.github.io/dsh-taskbridge/index.json
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 在 DSH 中使用
|
|
12
|
+
|
|
13
|
+
1. 打开“插件”,启用实验性的“自定义插件索引”。
|
|
14
|
+
2. 在“发现”中选择“添加索引源”,填写上面的 HTTPS 地址。
|
|
15
|
+
3. 搜索 **DSH TaskBridge** 或 **dsh-taskbridge**。
|
|
16
|
+
4. 安装确认框应显示本项目 GitHub 仓库和精确提交。核对后安装,不要改填别人的 `dsh-delegate` 或 `dsh-dispatch` npm 包。
|
|
17
|
+
|
|
18
|
+
当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
|
|
19
|
+
|
|
20
|
+
## 新版本
|
|
21
|
+
|
|
22
|
+
正式 Release 发布后,GitHub Pages 工作流会重新生成索引。支持 Git 来源更新的 DSH 版本可在索引中选择同一仓库的新版本更新;旧 Desktop 若提示第三方插件需要卸载再安装,以客户端实际能力为准。此前从本地 `.tgz` 安装的副本不保证自动转为 Git 来源。1.2.0 或 1.3.0 到 1.3.1 还涉及包名变更,必须先按 [升级说明](taskbridge-upgrade.md)迁移。曾添加旧 TaskDispatch 索引的用户,应改用本页的新索引地址。
|
|
23
|
+
|
|
24
|
+
工作流或 Pages 尚未部署成功时,不能声称已可搜索。发布报告记录实际公开地址、返回状态、格式校验与所指提交。1.4.2 起索引与插件都不声明 DSH 版本白名单,索引省略 `engines` 字段;所需运行时接口仍按实际能力检查。
|
|
25
|
+
|
|
26
|
+
## 维护发布源
|
|
27
|
+
|
|
28
|
+
`scripts/build-plugin-market.mjs` 从已检出的包元数据、明确的 40 位提交 SHA 和真实发布时间生成索引;不使用分支名或占位提交,不编造下载量或 star 数。`.github/workflows/plugin-market.yml` 在正式发布或手动指定已发布标签时部署 GitHub Pages;不自动发布 npm。
|
|
29
|
+
|
|
30
|
+
格式与操作依据:[DSH 官方插件索引说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/plugin-market.zh.md)。
|
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
# Redaction contract: what may cross a public surface
|
|
2
|
-
|
|
3
|
-
The rule this module enforces is narrow and checkable:
|
|
4
|
-
|
|
5
|
-
> A stored secret value never leaves the module that read it. A public surface
|
|
6
|
-
> carries a mask at most, and a model usage count is published only when it is a
|
|
7
|
-
> plain finite non-negative number under a known counter name.
|
|
8
|
-
|
|
9
|
-
`src/config/redact.js` is the only component that decides this. Configuration
|
|
10
|
-
surfaces, job history, MCP results, review findings, audit diagnostics and logs
|
|
11
|
-
all funnel through it.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 1. The secret-key rule
|
|
16
|
-
|
|
17
|
-
`isSecretKey(key)` returns true when the key matches:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
/(api[_-]?key|apikey|secret|token|password|passwd|credential[_-]?value|authorization)/i
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
This is a substring test, on purpose: `RELAY_API_KEY`, `access_token`,
|
|
24
|
-
`dbPassword` and `client_secret` are all caught without enumerating them. It also
|
|
25
|
-
means the rule is coarse — it cannot tell a credential from a count that merely
|
|
26
|
-
spells the same word.
|
|
27
|
-
|
|
28
|
-
`redactDeep` therefore masks the value behind such a key, with one exemption
|
|
29
|
-
described next.
|
|
30
|
-
|
|
31
|
-
## 2. The usage-counter exemption (the narrow fix)
|
|
32
|
-
|
|
33
|
-
Model token counts are named `inputTokens`, `totalTokens`, `reasoningTokens`, …
|
|
34
|
-
Every one of those names contains `token`, so before this contract they were all
|
|
35
|
-
masked and a job record reported nothing about what the run consumed. The
|
|
36
|
-
exemption restores exactly that, and nothing more.
|
|
37
|
-
|
|
38
|
-
`isUsageCounter(key, value)` is true when **both** hold:
|
|
39
|
-
|
|
40
|
-
1. `key` is one of these exact names:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
inputTokens input_tokens
|
|
44
|
-
outputTokens output_tokens
|
|
45
|
-
totalTokens total_tokens
|
|
46
|
-
reasoningTokens reasoning_tokens
|
|
47
|
-
cacheTokens cache_tokens
|
|
48
|
-
cacheReadTokens cache_read_tokens
|
|
49
|
-
cacheWriteTokens cache_write_tokens
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
(`TokenUsage` in `@deepseek-ai/dsh-llm` uses the camel forms; the snake forms
|
|
53
|
-
cover OpenAI-compatible wire payloads. Both spellings are listed for the same
|
|
54
|
-
seven counters.)
|
|
55
|
-
|
|
56
|
-
2. `value` is `typeof 'number'`, `Number.isFinite(value)` and `value >= 0`.
|
|
57
|
-
|
|
58
|
-
### Why this is an allow-list and not a `*Tokens` suffix rule
|
|
59
|
-
|
|
60
|
-
A suffix rule would exempt `refreshTokens`, `approvalTokens` and every credential
|
|
61
|
-
field that will ever end in those letters — a permanent hole for the sake of one
|
|
62
|
-
counter family. The allow-list keeps the hole to the names actually read from a
|
|
63
|
-
model response, and leaves every future unknown name masked by default. That is
|
|
64
|
-
the safe direction for a mistake to point.
|
|
65
|
-
|
|
66
|
-
### Why the value type matters
|
|
67
|
-
|
|
68
|
-
A counter name proves nothing about the value. `inputTokens: 'sk-abc…'` is a
|
|
69
|
-
credential that happens to sit under a counter name, and
|
|
70
|
-
`inputTokens: { raw: 'sk-abc…' }` is a nested object holding one. Neither is a
|
|
71
|
-
count, so neither is exempt:
|
|
72
|
-
|
|
73
|
-
| value | result |
|
|
74
|
-
| --- | --- |
|
|
75
|
-
| `12`, `0`, `1.5` | published as the number |
|
|
76
|
-
| `-1`, `NaN`, `Infinity` | masked — not a count |
|
|
77
|
-
| `'12'`, `'sk-abc…'` | masked — a string is never a count |
|
|
78
|
-
| `{ raw: 12 }`, `[1, 2]`, `true` | masked |
|
|
79
|
-
| `null` / `undefined` / `''` | passed through as `null` (no value to hide) |
|
|
80
|
-
|
|
81
|
-
The empty/null case is the existing rule for all secret keys, not a new
|
|
82
|
-
exception: an absent credential is not a credential.
|
|
83
|
-
|
|
84
|
-
## 3. Free text
|
|
85
|
-
|
|
86
|
-
`redactText` is the safety net for values the plugin never intended to see. It
|
|
87
|
-
runs over every string `redactDeep` visits, including strings inside a preserved
|
|
88
|
-
structure:
|
|
89
|
-
|
|
90
|
-
| pattern | replaced with |
|
|
91
|
-
| --- | --- |
|
|
92
|
-
| `Bearer <12+ token chars>` | `Bearer ••••••••` |
|
|
93
|
-
| `sk-…` / `pk-…` / `ak-…` (16+ chars) | `••••••••` |
|
|
94
|
-
| `SOMETHING_TOKEN=value` | `SOMETHING_TOKEN=••••••••` |
|
|
95
|
-
|
|
96
|
-
A preserved usage counter is a number, so it never carries text. A counter-shaped
|
|
97
|
-
key whose value is a string still goes through `redactText` and then is masked
|
|
98
|
-
whole — a credential-shaped string under `total_tokens` is masked, not published.
|
|
99
|
-
|
|
100
|
-
## 4. Path identity in free text (a rule about location, not appearance)
|
|
101
|
-
|
|
102
|
-
One rule rewrites a directory *segment* rather than a value. It keys on **where** the
|
|
103
|
-
segment lives, never on how unusual its letters look:
|
|
104
|
-
|
|
105
|
-
| path | result |
|
|
106
|
-
| --- | --- |
|
|
107
|
-
| `…\Temp\dsh-SoexNz\…`, `…\Temp\dsh-9Fk2Lm\…`, `…\Temp\profile-a1b2c3\…` | the segment is masked |
|
|
108
|
-
| `/home/u/.cache/dsh-SoexNz/x` | the segment is masked, `/` separators kept |
|
|
109
|
-
| `C:\Temp\dsh-development\x`, `C:\Temp\profile-settings\x`, `C:\Temp\dsh-delegate\x` | **kept** |
|
|
110
|
-
| `E:\repo\dsh-abc123\x`, `E:\repo\dsh-SoexNz\x`, `E:\project\v2-tools\x` | **kept** — no temporary root |
|
|
111
|
-
| `C:\Temp\profile-a1b2c3d\x` (seven characters) | **kept** — not the six-character key |
|
|
112
|
-
| a segment beginning `mask` (the placeholder itself) | **kept**, so redaction is idempotent |
|
|
113
|
-
|
|
114
|
-
The key is recognised by its *context*: `dsh-`/`profile-` plus exactly six id
|
|
115
|
-
characters, directly under a temporary root (`Temp`, `tmp`, `.cache`). The temp-root
|
|
116
|
-
segment itself is kept, so `…\Temp\masks-user-profile-segment\work` still reads as the
|
|
117
|
-
temporary tree it is and a Windows path keeps its backslashes.
|
|
118
|
-
|
|
119
|
-
Two earlier versions of this rule were wrong, in opposite directions:
|
|
120
|
-
|
|
121
|
-
- the first masked **every** `dsh-`/`profile-` segment with six alphanumerics, so this
|
|
122
|
-
product's own checkout (`dsh-delegate`) and its installed package
|
|
123
|
-
(`dsh-taskbridge`) lost their path in every published record;
|
|
124
|
-
- the second tried to tell a profile key from an ordinary name by **case and digit
|
|
125
|
-
shape**. That is a guess: a repository may legitimately be `v2-tools` or
|
|
126
|
-
`dsh-Bridge2`, and a masked path proves nothing, so a guess that fires wrongly
|
|
127
|
-
silently disables continuation.
|
|
128
|
-
|
|
129
|
-
Neither shape nor a package-name allowlist is used now. A name outside a temporary root
|
|
130
|
-
is an ordinary directory and keeps its path, whatever its letters.
|
|
131
|
-
|
|
132
|
-
The paths themselves are stored with a durable **digest** beside them
|
|
133
|
-
(`jobs/continuation-identity.js`): a digest is opaque to this rule, so a record that
|
|
134
|
-
really was shortened still proves its directory. A digest is not a reverser — it can
|
|
135
|
-
confirm a directory, never reconstruct one, so a masked row with no other trustworthy
|
|
136
|
-
original is refused. See `docs/conversation-placement.md`.
|
|
137
|
-
|
|
138
|
-
## 5. `maskSecret` never leaks shape
|
|
139
|
-
|
|
140
|
-
`maskSecret` returns the fixed `MASK` (`••••••••`) for any non-empty string, and
|
|
141
|
-
`''` for empty input. It does not keep a prefix, a suffix or the length, because a
|
|
142
|
-
partial mask is a partial credential.
|
|
143
|
-
|
|
144
|
-
## 6. What is *not* redacted
|
|
145
|
-
|
|
146
|
-
- Numbers and booleans under names that are not secret keys.
|
|
147
|
-
- `credentialRef` — a reference is a name, not a value; it is expected in public
|
|
148
|
-
settings.
|
|
149
|
-
- The mask itself, which is not a secret.
|
|
150
|
-
|
|
151
|
-
Structural fields are preserved so a host can still act on them: `code`, `phase`,
|
|
152
|
-
`outcome`, `agentId`, `sessionId` and the job's `usage` counters. Nothing in the
|
|
153
|
-
exemption path widens what a caller can learn about a credential.
|
|
154
|
-
|
|
155
|
-
## 7. Keeping this honest
|
|
156
|
-
|
|
157
|
-
`tests/redact.test.js` covers the reported bug, each known counter spelling, the
|
|
158
|
-
suffix-rule regression (`refreshTokens` and friends must stay masked), every
|
|
159
|
-
invalid-value shape, numeric secret token values, unknown token names, and
|
|
160
|
-
credential-shaped strings under a counter name. `tests/config.test.js` covers the
|
|
161
|
-
public-settings projection end to end. `tests/continuation-identity.test.js` covers
|
|
162
|
-
the path rule on the exact acceptance paths: `E:\deepseek workplace\dsh-delegate`
|
|
163
|
-
and `…\node_modules\dsh-taskbridge` must read back unchanged, a real temporary
|
|
164
|
-
profile directory must still be masked (with its separators kept), and the saved
|
|
165
|
-
digest must let a genuinely shortened record still prove its directory — while a
|
|
166
|
-
digest that contradicts its own path is refused.
|
|
167
|
-
|
|
168
|
-
Adding a counter means adding it to `USAGE_COUNTER_KEYS` *and* to the test table.
|
|
169
|
-
Adding a name there widens the one exemption in this module, so it deserves the
|
|
170
|
-
review that any other relaxation of a secret rule would get.
|
|
1
|
+
# Redaction contract: what may cross a public surface
|
|
2
|
+
|
|
3
|
+
The rule this module enforces is narrow and checkable:
|
|
4
|
+
|
|
5
|
+
> A stored secret value never leaves the module that read it. A public surface
|
|
6
|
+
> carries a mask at most, and a model usage count is published only when it is a
|
|
7
|
+
> plain finite non-negative number under a known counter name.
|
|
8
|
+
|
|
9
|
+
`src/config/redact.js` is the only component that decides this. Configuration
|
|
10
|
+
surfaces, job history, MCP results, review findings, audit diagnostics and logs
|
|
11
|
+
all funnel through it.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. The secret-key rule
|
|
16
|
+
|
|
17
|
+
`isSecretKey(key)` returns true when the key matches:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
/(api[_-]?key|apikey|secret|token|password|passwd|credential[_-]?value|authorization)/i
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This is a substring test, on purpose: `RELAY_API_KEY`, `access_token`,
|
|
24
|
+
`dbPassword` and `client_secret` are all caught without enumerating them. It also
|
|
25
|
+
means the rule is coarse — it cannot tell a credential from a count that merely
|
|
26
|
+
spells the same word.
|
|
27
|
+
|
|
28
|
+
`redactDeep` therefore masks the value behind such a key, with one exemption
|
|
29
|
+
described next.
|
|
30
|
+
|
|
31
|
+
## 2. The usage-counter exemption (the narrow fix)
|
|
32
|
+
|
|
33
|
+
Model token counts are named `inputTokens`, `totalTokens`, `reasoningTokens`, …
|
|
34
|
+
Every one of those names contains `token`, so before this contract they were all
|
|
35
|
+
masked and a job record reported nothing about what the run consumed. The
|
|
36
|
+
exemption restores exactly that, and nothing more.
|
|
37
|
+
|
|
38
|
+
`isUsageCounter(key, value)` is true when **both** hold:
|
|
39
|
+
|
|
40
|
+
1. `key` is one of these exact names:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
inputTokens input_tokens
|
|
44
|
+
outputTokens output_tokens
|
|
45
|
+
totalTokens total_tokens
|
|
46
|
+
reasoningTokens reasoning_tokens
|
|
47
|
+
cacheTokens cache_tokens
|
|
48
|
+
cacheReadTokens cache_read_tokens
|
|
49
|
+
cacheWriteTokens cache_write_tokens
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
(`TokenUsage` in `@deepseek-ai/dsh-llm` uses the camel forms; the snake forms
|
|
53
|
+
cover OpenAI-compatible wire payloads. Both spellings are listed for the same
|
|
54
|
+
seven counters.)
|
|
55
|
+
|
|
56
|
+
2. `value` is `typeof 'number'`, `Number.isFinite(value)` and `value >= 0`.
|
|
57
|
+
|
|
58
|
+
### Why this is an allow-list and not a `*Tokens` suffix rule
|
|
59
|
+
|
|
60
|
+
A suffix rule would exempt `refreshTokens`, `approvalTokens` and every credential
|
|
61
|
+
field that will ever end in those letters — a permanent hole for the sake of one
|
|
62
|
+
counter family. The allow-list keeps the hole to the names actually read from a
|
|
63
|
+
model response, and leaves every future unknown name masked by default. That is
|
|
64
|
+
the safe direction for a mistake to point.
|
|
65
|
+
|
|
66
|
+
### Why the value type matters
|
|
67
|
+
|
|
68
|
+
A counter name proves nothing about the value. `inputTokens: 'sk-abc…'` is a
|
|
69
|
+
credential that happens to sit under a counter name, and
|
|
70
|
+
`inputTokens: { raw: 'sk-abc…' }` is a nested object holding one. Neither is a
|
|
71
|
+
count, so neither is exempt:
|
|
72
|
+
|
|
73
|
+
| value | result |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| `12`, `0`, `1.5` | published as the number |
|
|
76
|
+
| `-1`, `NaN`, `Infinity` | masked — not a count |
|
|
77
|
+
| `'12'`, `'sk-abc…'` | masked — a string is never a count |
|
|
78
|
+
| `{ raw: 12 }`, `[1, 2]`, `true` | masked |
|
|
79
|
+
| `null` / `undefined` / `''` | passed through as `null` (no value to hide) |
|
|
80
|
+
|
|
81
|
+
The empty/null case is the existing rule for all secret keys, not a new
|
|
82
|
+
exception: an absent credential is not a credential.
|
|
83
|
+
|
|
84
|
+
## 3. Free text
|
|
85
|
+
|
|
86
|
+
`redactText` is the safety net for values the plugin never intended to see. It
|
|
87
|
+
runs over every string `redactDeep` visits, including strings inside a preserved
|
|
88
|
+
structure:
|
|
89
|
+
|
|
90
|
+
| pattern | replaced with |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| `Bearer <12+ token chars>` | `Bearer ••••••••` |
|
|
93
|
+
| `sk-…` / `pk-…` / `ak-…` (16+ chars) | `••••••••` |
|
|
94
|
+
| `SOMETHING_TOKEN=value` | `SOMETHING_TOKEN=••••••••` |
|
|
95
|
+
|
|
96
|
+
A preserved usage counter is a number, so it never carries text. A counter-shaped
|
|
97
|
+
key whose value is a string still goes through `redactText` and then is masked
|
|
98
|
+
whole — a credential-shaped string under `total_tokens` is masked, not published.
|
|
99
|
+
|
|
100
|
+
## 4. Path identity in free text (a rule about location, not appearance)
|
|
101
|
+
|
|
102
|
+
One rule rewrites a directory *segment* rather than a value. It keys on **where** the
|
|
103
|
+
segment lives, never on how unusual its letters look:
|
|
104
|
+
|
|
105
|
+
| path | result |
|
|
106
|
+
| --- | --- |
|
|
107
|
+
| `…\Temp\dsh-SoexNz\…`, `…\Temp\dsh-9Fk2Lm\…`, `…\Temp\profile-a1b2c3\…` | the segment is masked |
|
|
108
|
+
| `/home/u/.cache/dsh-SoexNz/x` | the segment is masked, `/` separators kept |
|
|
109
|
+
| `C:\Temp\dsh-development\x`, `C:\Temp\profile-settings\x`, `C:\Temp\dsh-delegate\x` | **kept** |
|
|
110
|
+
| `E:\repo\dsh-abc123\x`, `E:\repo\dsh-SoexNz\x`, `E:\project\v2-tools\x` | **kept** — no temporary root |
|
|
111
|
+
| `C:\Temp\profile-a1b2c3d\x` (seven characters) | **kept** — not the six-character key |
|
|
112
|
+
| a segment beginning `mask` (the placeholder itself) | **kept**, so redaction is idempotent |
|
|
113
|
+
|
|
114
|
+
The key is recognised by its *context*: `dsh-`/`profile-` plus exactly six id
|
|
115
|
+
characters, directly under a temporary root (`Temp`, `tmp`, `.cache`). The temp-root
|
|
116
|
+
segment itself is kept, so `…\Temp\masks-user-profile-segment\work` still reads as the
|
|
117
|
+
temporary tree it is and a Windows path keeps its backslashes.
|
|
118
|
+
|
|
119
|
+
Two earlier versions of this rule were wrong, in opposite directions:
|
|
120
|
+
|
|
121
|
+
- the first masked **every** `dsh-`/`profile-` segment with six alphanumerics, so this
|
|
122
|
+
product's own checkout (`dsh-delegate`) and its installed package
|
|
123
|
+
(`dsh-taskbridge`) lost their path in every published record;
|
|
124
|
+
- the second tried to tell a profile key from an ordinary name by **case and digit
|
|
125
|
+
shape**. That is a guess: a repository may legitimately be `v2-tools` or
|
|
126
|
+
`dsh-Bridge2`, and a masked path proves nothing, so a guess that fires wrongly
|
|
127
|
+
silently disables continuation.
|
|
128
|
+
|
|
129
|
+
Neither shape nor a package-name allowlist is used now. A name outside a temporary root
|
|
130
|
+
is an ordinary directory and keeps its path, whatever its letters.
|
|
131
|
+
|
|
132
|
+
The paths themselves are stored with a durable **digest** beside them
|
|
133
|
+
(`jobs/continuation-identity.js`): a digest is opaque to this rule, so a record that
|
|
134
|
+
really was shortened still proves its directory. A digest is not a reverser — it can
|
|
135
|
+
confirm a directory, never reconstruct one, so a masked row with no other trustworthy
|
|
136
|
+
original is refused. See `docs/conversation-placement.md`.
|
|
137
|
+
|
|
138
|
+
## 5. `maskSecret` never leaks shape
|
|
139
|
+
|
|
140
|
+
`maskSecret` returns the fixed `MASK` (`••••••••`) for any non-empty string, and
|
|
141
|
+
`''` for empty input. It does not keep a prefix, a suffix or the length, because a
|
|
142
|
+
partial mask is a partial credential.
|
|
143
|
+
|
|
144
|
+
## 6. What is *not* redacted
|
|
145
|
+
|
|
146
|
+
- Numbers and booleans under names that are not secret keys.
|
|
147
|
+
- `credentialRef` — a reference is a name, not a value; it is expected in public
|
|
148
|
+
settings.
|
|
149
|
+
- The mask itself, which is not a secret.
|
|
150
|
+
|
|
151
|
+
Structural fields are preserved so a host can still act on them: `code`, `phase`,
|
|
152
|
+
`outcome`, `agentId`, `sessionId` and the job's `usage` counters. Nothing in the
|
|
153
|
+
exemption path widens what a caller can learn about a credential.
|
|
154
|
+
|
|
155
|
+
## 7. Keeping this honest
|
|
156
|
+
|
|
157
|
+
`tests/redact.test.js` covers the reported bug, each known counter spelling, the
|
|
158
|
+
suffix-rule regression (`refreshTokens` and friends must stay masked), every
|
|
159
|
+
invalid-value shape, numeric secret token values, unknown token names, and
|
|
160
|
+
credential-shaped strings under a counter name. `tests/config.test.js` covers the
|
|
161
|
+
public-settings projection end to end. `tests/continuation-identity.test.js` covers
|
|
162
|
+
the path rule on the exact acceptance paths: `E:\deepseek workplace\dsh-delegate`
|
|
163
|
+
and `…\node_modules\dsh-taskbridge` must read back unchanged, a real temporary
|
|
164
|
+
profile directory must still be masked (with its separators kept), and the saved
|
|
165
|
+
digest must let a genuinely shortened record still prove its directory — while a
|
|
166
|
+
digest that contradicts its own path is refused.
|
|
167
|
+
|
|
168
|
+
Adding a counter means adding it to `USAGE_COUNTER_KEYS` *and* to the test table.
|
|
169
|
+
Adding a name there widens the one exemption in this module, so it deserves the
|
|
170
|
+
review that any other relaxation of a secret rule would get.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# TaskBridge 1.7.0
|
|
2
|
-
|
|
3
|
-
- 「任务记录」会自动显示新任务,保留工作标题。可按日期筛选,按执行链清理记录,也可打开任务原来的 DSH 会话。清理记录会保留源码和 DSH 会话。入口在**插件设置页的「任务记录」标签**;左侧侧栏不再有独立的「TaskBridge 任务」行。
|
|
4
|
-
- 左侧保留 DSH 原生工作区列表(原名、顺序、搜索、会话与菜单都不变)。「工作区 → 视图选项 → 按工作区树」显示可折叠的 TaskBridge 根工作区,展开后是隔离任务工作区和对话,旁边仍可访问原有工作区。工作区菜单可移除该工作区并保留文件及会话,对话菜单可归档和取消归档。共享任务沿用原项目中的原生工作区;经 TaskBridge 派出的会话在它自己的原生行里带一个很小的标记(「派工」/「派工 · 隔离」)。
|
|
5
|
-
- 同一项目可同时派发多个独立的隔离任务。每个工作包有自己的 DSH 会话和执行目录,各占一个并发名额。同一个共享目录一次只允许一个执行任务。
|
|
6
|
-
- 任务实际运行满 10 分钟时,插件在本机自检一次。Codex 连续 40 分钟未收到新成果时,插件会提醒 Codex 检查。两项可分别调整或关闭,提醒不会中止任务。
|
|
7
|
-
- 智能体协作默认关闭,可由用户设置,也可随单次派工选择。续接默认保留原会话的选择。任务的规划与交付验收由 Codex 负责。
|
|
8
|
-
- Codex 集成可识别和升级插件托管的旧智能体文件,保留用户的自定义设置。「安装 / 更新 TaskBridge 智能体」可重新配置集成,「仅修复 MCP 配置」只处理连接。
|
|
9
|
-
|
|
10
|
-
在 DSH 的「添加插件」中安装 `dsh-taskbridge-1.7.0.tgz`。已有 TaskBridge 的用户可用本地包升级。
|
|
11
|
-
|
|
1
|
+
# TaskBridge 1.7.0
|
|
2
|
+
|
|
3
|
+
- 「任务记录」会自动显示新任务,保留工作标题。可按日期筛选,按执行链清理记录,也可打开任务原来的 DSH 会话。清理记录会保留源码和 DSH 会话。入口在**插件设置页的「任务记录」标签**;左侧侧栏不再有独立的「TaskBridge 任务」行。
|
|
4
|
+
- 左侧保留 DSH 原生工作区列表(原名、顺序、搜索、会话与菜单都不变)。「工作区 → 视图选项 → 按工作区树」显示可折叠的 TaskBridge 根工作区,展开后是隔离任务工作区和对话,旁边仍可访问原有工作区。工作区菜单可移除该工作区并保留文件及会话,对话菜单可归档和取消归档。共享任务沿用原项目中的原生工作区;经 TaskBridge 派出的会话在它自己的原生行里带一个很小的标记(「派工」/「派工 · 隔离」)。
|
|
5
|
+
- 同一项目可同时派发多个独立的隔离任务。每个工作包有自己的 DSH 会话和执行目录,各占一个并发名额。同一个共享目录一次只允许一个执行任务。
|
|
6
|
+
- 任务实际运行满 10 分钟时,插件在本机自检一次。Codex 连续 40 分钟未收到新成果时,插件会提醒 Codex 检查。两项可分别调整或关闭,提醒不会中止任务。
|
|
7
|
+
- 智能体协作默认关闭,可由用户设置,也可随单次派工选择。续接默认保留原会话的选择。任务的规划与交付验收由 Codex 负责。
|
|
8
|
+
- Codex 集成可识别和升级插件托管的旧智能体文件,保留用户的自定义设置。「安装 / 更新 TaskBridge 智能体」可重新配置集成,「仅修复 MCP 配置」只处理连接。
|
|
9
|
+
|
|
10
|
+
在 DSH 的「添加插件」中安装 `dsh-taskbridge-1.7.0.tgz`。已有 TaskBridge 的用户可用本地包升级。
|
|
11
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# TaskBridge 1.8.0
|
|
2
|
+
|
|
3
|
+
## 核心更新
|
|
4
|
+
|
|
5
|
+
- **新增 Antigravity 一键集成**:设置页新增独立「Antigravity 集成」标签页,可将自包含插件包安装至 `~/.gemini/config/plugins/dsh-taskbridge/`(内含 `plugin.json`、按需加载的 `SKILL.md`、仅保留只读与 MCP 工具的后台派工子智能体 `agents/dsh-taskbridge.md` 与独立 `mcp_config.json`),不修改 Antigravity 全局配置。支持安装/更新、仅修复 MCP、移除托管项与 DSH 启动自动刷新;按文件哈希逐文件保护自定义修改,不影响其余托管文件升级或补装。
|
|
6
|
+
- **三层黑盒架构优化(Codex 端大幅瘦身)**:
|
|
7
|
+
- 底层 `worker-prompt.js` 自动注入“共享或脏工作区保留已有未提交修改”与“测试读取后清理新建未追踪临时日志”约束。
|
|
8
|
+
- 精简 `codex/dsh-taskbridge.toml`(移除顶层手管底层工作区与重复等待段落,篇幅缩减约 73%),保留完整 P0 规划、静默等待、单次审批、原生提问、派工回执核对(含 `agentTeamsOrigin` 与 `team.enabled`)、断线防重与检查点落盘纪律,并登记 `1.7.1` 原版哈希支持无感升级。
|
|
9
|
+
- 去除顶层规则与设置页说明中对用户可配监控阈值(自检/运行进度检查分钟数)的硬编码,全部动态跟随 DSH 插件设置。
|
|
10
|
+
- **润色中英文插件介绍与文档**:重写 `docs/INTRODUCTION.zh.md`、`docs/INTRODUCTION.md`、`README.md` 开头及 `locale/*.json`,新增 `docs/antigravity-integration.md`(含 Antigravity 首次调用 `delegate_*` 放行提示),统一同步 `1.7.0+` 实际监控计时口径与 2.0 Claude Code 接入规划。
|
|
11
|
+
- **工程细节补齐**:补全 `ANTIGRAVITY_*` / `CODEX_*` 错误码映射与中文提示,对齐客户端导出面与 `lib/client.d.ts`。
|
|
12
|
+
|
|
13
|
+
## 安装与升级
|
|
14
|
+
|
|
15
|
+
- 可通过 DSH **插件 → 添加插件** 安装 `dsh-taskbridge`,或下载下方 `dsh-taskbridge-1.8.0.tgz` 本地安装。
|
|
16
|
+
- 从 `1.7.1` 升级时,DSH 启动后会自动刷新未修改过的 Codex 托管模板并保留自定义配置;如需接入 Antigravity,打开 **DSH TaskBridge 设置 → Antigravity 集成** 点击 **安装 / 更新 Antigravity 插件** 即可。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Runtime compatibility
|
|
2
2
|
|
|
3
|
-
Build 1.
|
|
3
|
+
Build 1.8.0 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.
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# 从 DSH Delegate/TaskDispatch 升级到 DSH TaskBridge
|
|
2
|
-
|
|
3
|
-
**1.3.1 起统一使用 DSH TaskBridge,包名为 `dsh-taskbridge`,GitHub 仓库为 `ranranyya/dsh-taskbridge`。** 1.3.0 的旧包名 `dsh-taskdispatch` 只在 GitHub 发布;npm 因其与已有包名过于相似而拒绝注册。此前的 `dsh-delegate` 同样不要与 npm 上他人的包混淆。
|
|
4
|
-
|
|
5
|
-
## 升级步骤
|
|
6
|
-
|
|
7
|
-
1. 等待当前任务结束,关闭旧插件的本机调用开关。
|
|
8
|
-
2. 在 DSH 插件管理中停用并卸载本项目旧 `dsh-delegate` 或 `dsh-taskdispatch` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;DSH 若提供删除数据选项,不要勾选。新旧包不能同时启用。
|
|
9
|
-
3. 在“添加插件”中输入 **`dsh-taskbridge
|
|
10
|
-
4. 打开 **DSH TaskBridge** 配置页,核对 API、模型、思考强度和总开关。数据目录与旧版相同;安装前关闭旧开关,避免恢复之前保存的开启状态。
|
|
11
|
-
5. 在 Codex 集成中点击“安装 / 更新 TaskBridge 智能体”,更新智能体及 MCP,然后重新加载 Codex。未修改的旧 `dsh-delegate.toml` 会迁移为 `dsh-taskbridge.toml`;修改过的文件保留。只需修复 MCP 时可使用“仅修复 MCP 配置”。启动自检不会接管其他安装目录。
|
|
12
|
-
6. 若添加过旧索引,改用 `https://ranranyya.github.io/dsh-taskbridge/index.json`。
|
|
13
|
-
|
|
14
|
-
## 保持兼容的技术标识
|
|
15
|
-
|
|
16
|
-
- 数据与端点:`<DSH_HOME>/data/dsh-delegate`、`runtime-endpoint.json`。
|
|
17
|
-
- 环境变量:`DSH_DELEGATE_*`。
|
|
18
|
-
- MCP 工具:`delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_wait`、`delegate_result`、`delegate_cancel`、`delegate_permission_decide`。
|
|
19
|
-
- Codex MCP 条目:`mcp_servers.dsh-delegate`。智能体文件从 1.3.2 起改为 `agents/dsh-taskbridge.toml`,对外名称为 `dsh-taskbridge`。
|
|
20
|
-
- MCP/控制程序:`bin/dsh-delegate-mcp.js`、`bin/dsh-delegate-control.js`。
|
|
21
|
-
|
|
22
|
-
保留的内部名称不会让安装指向其他 npm 项目。仍存在的旧包入口须证明真实文件、bin 映射及本项目仓库来源。1.3.2 的显式安装/修复也接受本插件目录旁已卸载的 `node_modules/dsh-delegate` 或 `dsh-taskdispatch` 标准入口,前提是原 MCP 配置带托管标记且结构符合插件规则。其他路径、自定义包装器和用户编辑过的智能体文件保留;启动自检不会接管搬家路径。
|
|
23
|
-
|
|
24
|
-
## 版本差异
|
|
25
|
-
|
|
26
|
-
1.2.0 完成静默等待中断语义、独立控制通道和既有 Codex 集成升级修复。1.3.0 增加中英文介绍、图标、更名兼容和自定义插件索引。1.3.1 统一为 TaskBridge 并增加 npm 安装渠道。1.3.2 将 Codex 智能体同步更名、新工作区按任务内容命名,并修复旧包卸载后的 MCP 路径迁移;不改变模型选择、等待、审批或审查流程。从 TaskBridge 1.3.1 升到 1.3.2 是同包小版本更新。
|
|
27
|
-
|
|
28
|
-
更名是包身份迁移,不能称为对旧包的普通原地更新。隔离配置目录中的迁移测试不等于已经在真实 Desktop 完成卸载、安装和重启验收。
|
|
1
|
+
# 从 DSH Delegate/TaskDispatch 升级到 DSH TaskBridge
|
|
2
|
+
|
|
3
|
+
**1.3.1 起统一使用 DSH TaskBridge,包名为 `dsh-taskbridge`,GitHub 仓库为 `ranranyya/dsh-taskbridge`。** 1.3.0 的旧包名 `dsh-taskdispatch` 只在 GitHub 发布;npm 因其与已有包名过于相似而拒绝注册。此前的 `dsh-delegate` 同样不要与 npm 上他人的包混淆。
|
|
4
|
+
|
|
5
|
+
## 升级步骤
|
|
6
|
+
|
|
7
|
+
1. 等待当前任务结束,关闭旧插件的本机调用开关。
|
|
8
|
+
2. 在 DSH 插件管理中停用并卸载本项目旧 `dsh-delegate` 或 `dsh-taskdispatch` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;DSH 若提供删除数据选项,不要勾选。新旧包不能同时启用。
|
|
9
|
+
3. 在“添加插件”中输入 **`dsh-taskbridge`**。中国大陆镜像未同步时改选 npm 官方源。也可安装对应版本的本地包,例如 `dsh-taskbridge-1.8.0.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
|
|
10
|
+
4. 打开 **DSH TaskBridge** 配置页,核对 API、模型、思考强度和总开关。数据目录与旧版相同;安装前关闭旧开关,避免恢复之前保存的开启状态。
|
|
11
|
+
5. 在 Codex 集成中点击“安装 / 更新 TaskBridge 智能体”,更新智能体及 MCP,然后重新加载 Codex。未修改的旧 `dsh-delegate.toml` 会迁移为 `dsh-taskbridge.toml`;修改过的文件保留。只需修复 MCP 时可使用“仅修复 MCP 配置”。启动自检不会接管其他安装目录。
|
|
12
|
+
6. 若添加过旧索引,改用 `https://ranranyya.github.io/dsh-taskbridge/index.json`。
|
|
13
|
+
|
|
14
|
+
## 保持兼容的技术标识
|
|
15
|
+
|
|
16
|
+
- 数据与端点:`<DSH_HOME>/data/dsh-delegate`、`runtime-endpoint.json`。
|
|
17
|
+
- 环境变量:`DSH_DELEGATE_*`。
|
|
18
|
+
- MCP 工具:`delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_wait`、`delegate_result`、`delegate_cancel`、`delegate_permission_decide`。
|
|
19
|
+
- Codex MCP 条目:`mcp_servers.dsh-delegate`。智能体文件从 1.3.2 起改为 `agents/dsh-taskbridge.toml`,对外名称为 `dsh-taskbridge`。
|
|
20
|
+
- MCP/控制程序:`bin/dsh-delegate-mcp.js`、`bin/dsh-delegate-control.js`。
|
|
21
|
+
|
|
22
|
+
保留的内部名称不会让安装指向其他 npm 项目。仍存在的旧包入口须证明真实文件、bin 映射及本项目仓库来源。1.3.2 的显式安装/修复也接受本插件目录旁已卸载的 `node_modules/dsh-delegate` 或 `dsh-taskdispatch` 标准入口,前提是原 MCP 配置带托管标记且结构符合插件规则。其他路径、自定义包装器和用户编辑过的智能体文件保留;启动自检不会接管搬家路径。
|
|
23
|
+
|
|
24
|
+
## 版本差异
|
|
25
|
+
|
|
26
|
+
1.2.0 完成静默等待中断语义、独立控制通道和既有 Codex 集成升级修复。1.3.0 增加中英文介绍、图标、更名兼容和自定义插件索引。1.3.1 统一为 TaskBridge 并增加 npm 安装渠道。1.3.2 将 Codex 智能体同步更名、新工作区按任务内容命名,并修复旧包卸载后的 MCP 路径迁移;不改变模型选择、等待、审批或审查流程。从 TaskBridge 1.3.1 升到 1.3.2 是同包小版本更新。
|
|
27
|
+
|
|
28
|
+
更名是包身份迁移,不能称为对旧包的普通原地更新。隔离配置目录中的迁移测试不等于已经在真实 Desktop 完成卸载、安装和重启验收。
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
# 从 DSH Delegate 升级到 DSH TaskDispatch
|
|
2
|
-
|
|
3
|
-
> 这是 1.3.0 的历史说明。当前项目已统一为 **DSH TaskBridge**,请阅读 [1.3.1 升级说明](taskbridge-upgrade.md)。本文件保留旧链接兼容,不作为当前安装指南。
|
|
4
|
-
|
|
5
|
-
1.3.0 的展示名为 **DSH TaskDispatch**,包名为 **dsh-taskdispatch**。旧包 `dsh-delegate` 与 npm 上他人的同名占位包不是同一个项目。当前发布信息以本仓库和正式 Release 为准。
|
|
6
|
-
|
|
7
|
-
## 升级步骤
|
|
8
|
-
|
|
9
|
-
1. 等待当前任务结束,关闭旧插件的本机调用开关,并备份希望保留的配置。
|
|
10
|
-
2. 在 DSH 插件管理中停用并卸载本项目的旧 `dsh-delegate` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;本项目没有提供删除该目录的迁移脚本。DSH 自身若提供“删除数据”选项,不要勾选。不要同时启用两个包。
|
|
11
|
-
3. 从本项目 Release 安装 `dsh-taskdispatch-1.3.0.tgz`,或使用文档列出的固定 Git 提交索引安装。不要对 Desktop 保留的 profile 手动执行 npm/pnpm。
|
|
12
|
-
4. 打开新插件配置页。设置、历史、运行端点路径仍使用原数据目录;检查 API、模型与思考强度后,按需要开启本机调用开关。旧数据若保存了开启状态,插件会恢复该值,安装前应先完成第 1 步。
|
|
13
|
-
5. 在 Codex 集成中显式点击“安装 / 更新 Codex 集成”或“仅修复 MCP 配置”,把旧包入口迁移到新安装目录,再让 Codex 重新加载。启动自检不会擅自接管其他安装目录。
|
|
14
|
-
|
|
15
|
-
## 保持兼容的技术标识
|
|
16
|
-
|
|
17
|
-
- 数据与端点:`<DSH_HOME>/data/dsh-delegate`、`runtime-endpoint.json`。
|
|
18
|
-
- 环境变量:`DSH_DELEGATE_*`。
|
|
19
|
-
- MCP 工具:`delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_wait`、`delegate_result`、`delegate_cancel`、`delegate_permission_decide`。
|
|
20
|
-
- Codex 文件和条目:`agents/dsh-delegate.toml`、`mcp_servers.dsh-delegate`。
|
|
21
|
-
- MCP/控制程序:`bin/dsh-delegate-mcp.js`、`bin/dsh-delegate-control.js`。
|
|
22
|
-
|
|
23
|
-
保留这些名称是为了兼容,不会让安装源改指向别人的 npm 包。显式采纳旧入口需要真实的包目录、文件和正确 bin 映射,以及本项目新旧 GitHub 仓库来源;无法证明身份的旧入口、自定义包装器和用户编辑过的智能体文件都会被保留并报告冲突。
|
|
24
|
-
|
|
25
|
-
更名属于包身份迁移,不能描述为对旧包的普通原地更新。迁移检查在隔离的临时配置目录进行;不能据此声称真实 Desktop 卸载、安装、重启已全部验收。
|
|
1
|
+
# 从 DSH Delegate 升级到 DSH TaskDispatch
|
|
2
|
+
|
|
3
|
+
> 这是 1.3.0 的历史说明。当前项目已统一为 **DSH TaskBridge**,请阅读 [1.3.1 升级说明](taskbridge-upgrade.md)。本文件保留旧链接兼容,不作为当前安装指南。
|
|
4
|
+
|
|
5
|
+
1.3.0 的展示名为 **DSH TaskDispatch**,包名为 **dsh-taskdispatch**。旧包 `dsh-delegate` 与 npm 上他人的同名占位包不是同一个项目。当前发布信息以本仓库和正式 Release 为准。
|
|
6
|
+
|
|
7
|
+
## 升级步骤
|
|
8
|
+
|
|
9
|
+
1. 等待当前任务结束,关闭旧插件的本机调用开关,并备份希望保留的配置。
|
|
10
|
+
2. 在 DSH 插件管理中停用并卸载本项目的旧 `dsh-delegate` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;本项目没有提供删除该目录的迁移脚本。DSH 自身若提供“删除数据”选项,不要勾选。不要同时启用两个包。
|
|
11
|
+
3. 从本项目 Release 安装 `dsh-taskdispatch-1.3.0.tgz`,或使用文档列出的固定 Git 提交索引安装。不要对 Desktop 保留的 profile 手动执行 npm/pnpm。
|
|
12
|
+
4. 打开新插件配置页。设置、历史、运行端点路径仍使用原数据目录;检查 API、模型与思考强度后,按需要开启本机调用开关。旧数据若保存了开启状态,插件会恢复该值,安装前应先完成第 1 步。
|
|
13
|
+
5. 在 Codex 集成中显式点击“安装 / 更新 Codex 集成”或“仅修复 MCP 配置”,把旧包入口迁移到新安装目录,再让 Codex 重新加载。启动自检不会擅自接管其他安装目录。
|
|
14
|
+
|
|
15
|
+
## 保持兼容的技术标识
|
|
16
|
+
|
|
17
|
+
- 数据与端点:`<DSH_HOME>/data/dsh-delegate`、`runtime-endpoint.json`。
|
|
18
|
+
- 环境变量:`DSH_DELEGATE_*`。
|
|
19
|
+
- MCP 工具:`delegate_status`、`delegate_preflight`、`delegate_submit`、`delegate_wait`、`delegate_result`、`delegate_cancel`、`delegate_permission_decide`。
|
|
20
|
+
- Codex 文件和条目:`agents/dsh-delegate.toml`、`mcp_servers.dsh-delegate`。
|
|
21
|
+
- MCP/控制程序:`bin/dsh-delegate-mcp.js`、`bin/dsh-delegate-control.js`。
|
|
22
|
+
|
|
23
|
+
保留这些名称是为了兼容,不会让安装源改指向别人的 npm 包。显式采纳旧入口需要真实的包目录、文件和正确 bin 映射,以及本项目新旧 GitHub 仓库来源;无法证明身份的旧入口、自定义包装器和用户编辑过的智能体文件都会被保留并报告冲突。
|
|
24
|
+
|
|
25
|
+
更名属于包身份迁移,不能描述为对旧包的普通原地更新。迁移检查在隔离的临时配置目录进行;不能据此声称真实 Desktop 卸载、安装、重启已全部验收。
|