@linxin666/dsh-client-ui-task-board-team 0.4.16 → 0.4.17

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/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: dcd1a5e5ffe66da82bd178eced7dbeb170fe8452
6
- README.zh.md: df1834dd37c68b47b15d9e18bfec547ff6e95a72
5
+ README.md: d66fda6641f03f0cde817cfea939069f92786aed
6
+ README.zh.md: bd85dbd3911c0a2cb243bc68175b7a45946865fa
package/README.md CHANGED
@@ -10,7 +10,7 @@ An external provider extension for the DeepSeek Harness (DSH) task board (`@linx
10
10
  - **Registration and heartbeat**: the Host registers at startup with its hostname, client version and agent definitions, then heartbeats every 15 s, which is the cadence the protocol fixes. A member name another Host already owns is skipped by the hub and reported as a visible problem instead of going missing silently.
11
11
  - **Lease-based claiming**: a claim returns a lease token and an execution attempt id; the mirror card stores both in this extension's own `integrations` payload, and the lease is renewed every 20 s while the card executes.
12
12
  - **Idempotent reconnect**: a reconnect re-registers, replays the channel from its last sequence number and re-claims with the attempt credentials the card still carries, which is only while the run executes here and the lease is held; a settled card releases both, so claiming that issue again is fresh and the hub mints the new attempt itself.
13
- - **Settlement write-back**: a settled execution becomes `succeeded` (the issue moves to `in_review`) only when automated acceptance passed; a failure or a cancellation becomes `failed` with the recorded reason, and the summary is clipped to the protocol's 4000-character cap. Every write-back names the attempt that ran. A refusal that can never change — 412 `LEASE_EXPIRED`, or any other deterministic 4xx (with four exceptions) — is final: the Host drops the pending settlement instead of retrying it, clears the attempt and lease only when the refusal names the ones the card holds, and records a visible error; reporting a new outcome requires starting the card again. Anything that may still pass — a transport failure, a 5xx, and four 4xx exceptions (401: the Host Token is unrecognized or revoked, and can still land once the operator provides the right token; 408 and 429; and a 4xx without the hub's error envelope: such errors come from a CDN or firewall in front of the hub rather than the hub's own gates) — stays on the card, and the next sweep retries it before claiming that card, because a claim would mint an attempt nothing runs and the retry would then die against it.
13
+ - **Settlement write-back**: a settled execution writes back its own Host execution verdict — `succeeded` (moving the issue to `in_review`) when the execution itself succeeded, or `failed` with the recorded reason on failure or cancellation — and the summary is clipped to the protocol's 4000-character cap. Every write-back names the attempt that ran. A refusal that can never change — 412 `LEASE_EXPIRED`, or any other deterministic 4xx (with four exceptions) — is final: the Host drops the pending settlement instead of retrying it, clears the attempt and lease only when the refusal names the ones the card holds, and records a visible error; reporting a new outcome requires starting the card again. Anything that may still pass — a transport failure, a 5xx, and four 4xx exceptions (401: the Host Token is unrecognized or revoked, and can still land once the operator provides the right token; 408 and 429; and a 4xx without the hub's error envelope: such errors come from a CDN or firewall in front of the hub rather than the hub's own gates) — stays on the card, and the next sweep retries it before claiming that card, because a claim would mint an attempt nothing runs and the retry would then die against it.
14
14
  - **Question routing**: a decision question asked through `ask_user_question` in a mirror card's session is reported to the hub and answered by the issue's reviewer; the answer, an expiry or a local cancellation ends the ask, and every other session on the machine keeps its own answerer.
15
15
  - **Comments both ways**: the `team_comment` tool posts an agent comment on the issue behind a card, and a comment that mentions a bound agent is delivered into that card's session as a follow-up message.
16
16
  - **Rework and retries**: a review rejection and a sweep share one claim per issue, and only a successful claim decides what runs — a pending rework re-runs the card in its existing session with the reviewer's instructions, and a card a human sent back with nothing running here is started again through the same entry a first claim uses. A refused claim starts nothing and records the refusal locally, and a fresh claim drops the settlement an earlier attempt left behind, because that attempt is gone and its retry can never land.
package/README.zh.md CHANGED
@@ -10,7 +10,7 @@
10
10
  - **注册与心跳**:宿主启动时用主机名、客户端版本与 Agent 定义注册,随后每 15 秒心跳一次,这是协议固定的节奏。已被其他宿主占用的成员名由 hub 跳过,并作为可见问题列出,不会静默消失。
11
11
  - **带租约的领取**:领取会拿到租约令牌与执行 attempt id,镜像卡把两者存在本扩展自己的 `integrations` 载荷里,卡片执行期间每 20 秒续租。
12
12
  - **幂等的重连**:重连会重新注册、按最后收到的序号续传事件通道,并用卡片仍在的 attempt 凭证重新领取——这只发生在执行还在本机进行且仍持有租约时;结算之后的卡片两者都已释放,因此再次领取该 issue 是全新领取,新的 attempt 由 hub 生成。
13
- - **结算写回**:只有自动验收通过的执行记为 `succeeded`(issue 进入 `in_review`),失败或取消记为 `failed` 并附原因,摘要截断到协议规定的 4000 字符。每次写回都带上产生结果的那次 attempt。永远无法改变结果的拒绝——412 `LEASE_EXPIRED` 或任何其他确定性的 4xx(但有四种例外)——属于终局:宿主丢弃待写回结算而不重试,仅当被拒的正是卡片当前那次 attempt 时才清掉 attempt 与租约凭据,并在卡片上记录一条可见错误;要报告新结果需重新启动该卡片。可能过去的失败——传输失败、5xx,以及四种 4xx 例外(401:Host Token 未被识别或已吊销,操作者换上正确的令牌后仍能送达;408 和 429;没有 hub 错误信封的 4xx:这类错误来自 hub 前面的 CDN 或防火墙,不是 hub 自身的门禁)——则留在卡片上,下一次轮询在领取该卡片之前先重试它,因为此时领卡只会拿到一个本机不执行的 attempt,随后的重试会被它判死。
13
+ - **结算写回**:已结算执行按该次执行自身的 Host 回合判定写回——执行成功即记为 `succeeded`(issue 进入 `in_review`),失败或取消记为 `failed` 并附原因——摘要截断到协议规定的 4000 字符。每次写回都带上产生结果的那次 attempt。永远无法改变结果的拒绝——412 `LEASE_EXPIRED` 或任何其他确定性的 4xx(但有四种例外)——属于终局:宿主丢弃待写回结算而不重试,仅当被拒的正是卡片当前那次 attempt 时才清掉 attempt 与租约凭据,并在卡片上记录一条可见错误;要报告新结果需重新启动该卡片。可能过去的失败——传输失败、5xx,以及四种 4xx 例外(401:Host Token 未被识别或已吊销,操作者换上正确的令牌后仍能送达;408 和 429;没有 hub 错误信封的 4xx:这类错误来自 hub 前面的 CDN 或防火墙,不是 hub 自身的门禁)——则留在卡片上,下一次轮询在领取该卡片之前先重试它,因为此时领卡只会拿到一个本机不执行的 attempt,随后的重试会被它判死。
14
14
  - **问题路由**:镜像卡会话里通过 `ask_user_question` 提出的决策问题会上报 hub,由该 issue 的审阅人回答;回答、过期或本地取消都会结束提问,本机其他会话仍由各自的应答方处理。
15
15
  - **双向评论**:`team_comment` 工具让 Agent 在卡片对应的 issue 上发表评论,而 @ 到本机 Agent 的评论会作为后续消息投递进该卡片的会话。
16
16
  - **返工与重试**:审阅被拒与轮询共用同一个逐 issue 领取,只有领取成功才决定跑什么——待处理的返工用审阅人的说明在既有会话里重跑该卡片,而人工打回、本机没有在跑执行的卡片会经首次领取所用的同一入口重新启动。领取被拒则什么都不执行,只在本地记录这次拒绝;全新领取会丢弃上一轮 attempt 留下的待写回结算,因为那次 attempt 已被取代,它的重试永远落不了地。
package/lib/index.js CHANGED
@@ -637,8 +637,8 @@ function buildMirrorDraft(issue, agent) {
637
637
  * The settlement one finished execution reports to the hub.
638
638
  *
639
639
  * The board owns the execution verdict and the hub owns the collaboration
640
- * status, so this module is the whole mapping between them: a passed automated
641
- * acceptance becomes `succeeded` (the hub moves the issue to `in_review`), and
640
+ * status, so this module is the whole mapping between them: a succeeded
641
+ * execution verdict becomes `succeeded` (the hub moves the issue to `in_review`), and
642
642
  * every other outcome — including a cancelled run — becomes `failed`, because a
643
643
  * card the Host stopped never earned a human review. The summary is clipped to
644
644
  * the character cap the protocol fixes (section 13), which mirrors the board's
@@ -674,7 +674,7 @@ function clipSummary(text) {
674
674
  */
675
675
  function buildSettleRequest(input) {
676
676
  const outcome = settleOutcome(input.outcome);
677
- const lines = [`${input.task.title} — ${outcome === "succeeded" ? "automated acceptance passed" : "automated acceptance did not pass"}`, `attempt: ${input.executionId}`];
677
+ const lines = [`${input.task.title} — ${outcome === "succeeded" ? "execution succeeded" : "execution failed"}`, `attempt: ${input.executionId}`];
678
678
  if (input.error !== void 0 && input.error.trim() !== "") lines.push(`reason: ${input.error.trim()}`);
679
679
  const body = {
680
680
  outcome,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@linxin666/dsh-client-ui-task-board-team",
3
3
  "description": "External provider extension for the dsh Web GUI task board that binds local dsh-agents members as team Agents and mirrors cloud team-hub issues onto the board; shipped as a dsh profile bundle with no DSH source changes.",
4
- "version": "0.4.16",
4
+ "version": "0.4.17",
5
5
  "icon": "icon.svg",
6
6
  "type": "module",
7
7
  "engines": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dsh": {
27
27
  "engines": {
28
- "dsh": ">=0.2.2-rc.1"
28
+ "dsh": ">=0.2.2-rc.2"
29
29
  },
30
30
  "bundle": {
31
31
  "patch": "./cordis.patch.yml"
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "peerDependencies": {
44
- "@deepseek-ai/dsh": ">=0.2.2-rc.1",
44
+ "@deepseek-ai/dsh": ">=0.2.2-rc.2",
45
45
  "react": "^18.2.0"
46
46
  },
47
47
  "dependencies": {
@@ -49,15 +49,15 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@deepseek-ai/cordis": "^4.1.0",
52
- "@deepseek-ai/dsh-api-gateway": "^0.2.2-rc.1",
53
- "@deepseek-ai/dsh-client-store": "^0.2.2-rc.1",
54
- "@deepseek-ai/dsh-credentials": "^0.2.2-rc.1",
55
- "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.1",
56
- "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.1",
57
- "@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.1",
58
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.1",
59
- "@deepseek-ai/dsh-llm": "^0.2.2-rc.1",
60
- "@deepseek-ai/dsh-tools": "^0.2.2-rc.1",
52
+ "@deepseek-ai/dsh-api-gateway": "^0.2.2-rc.2",
53
+ "@deepseek-ai/dsh-client-store": "^0.2.2-rc.2",
54
+ "@deepseek-ai/dsh-credentials": "^0.2.2-rc.2",
55
+ "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.2",
56
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.2",
57
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.2",
58
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.2",
59
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.2",
60
+ "@deepseek-ai/dsh-tools": "^0.2.2-rc.2",
61
61
  "@types/node": "^22.20.0",
62
62
  "@types/react": "~18.3.1",
63
63
  "@types/react-dom": "^18.3.7",
@@ -2,8 +2,8 @@
2
2
  * The settlement one finished execution reports to the hub.
3
3
  *
4
4
  * The board owns the execution verdict and the hub owns the collaboration
5
- * status, so this module is the whole mapping between them: a passed automated
6
- * acceptance becomes `succeeded` (the hub moves the issue to `in_review`), and
5
+ * status, so this module is the whole mapping between them: a succeeded
6
+ * execution verdict becomes `succeeded` (the hub moves the issue to `in_review`), and
7
7
  * every other outcome — including a cancelled run — becomes `failed`, because a
8
8
  * card the Host stopped never earned a human review. The summary is clipped to
9
9
  * the character cap the protocol fixes (section 13), which mirrors the board's
@@ -72,7 +72,7 @@ export function buildSettleRequest(input: {
72
72
  }): SettleRequestBody {
73
73
  const outcome = settleOutcome(input.outcome)
74
74
  const lines = [
75
- `${input.task.title} — ${outcome === 'succeeded' ? 'automated acceptance passed' : 'automated acceptance did not pass'}`,
75
+ `${input.task.title} — ${outcome === 'succeeded' ? 'execution succeeded' : 'execution failed'}`,
76
76
  `attempt: ${input.executionId}`,
77
77
  ]
78
78
  if (input.error !== undefined && input.error.trim() !== '') lines.push(`reason: ${input.error.trim()}`)