@suifei/dsh-ai-team 0.4.66 → 0.4.67
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 +21 -0
- package/index.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.67 - 2026-11-12
|
|
4
|
+
|
|
5
|
+
**启动探针:把「关键服务缺失」变成可判定的一行**
|
|
6
|
+
|
|
7
|
+
继续追 `NOT_RESUMABLE`。已排除的假设(都有证据):
|
|
8
|
+
|
|
9
|
+
- 会话文件损坏 —— 逐帧解压 87 个事件、`subagent/descriptor` 的 `mode: "continuable"` 完好;
|
|
10
|
+
- 会话未登记工作区 —— 7 个成员会话全部在 `E:\works\il2c` 的 `sessionIds` 里;
|
|
11
|
+
- 后端未挂载 —— `dsh-base` 的 `cordis.patch.yml` 声明了 `session-persistence-jsonl`,宿主启动日志显示 `state: 'active'`。
|
|
12
|
+
|
|
13
|
+
剩下的嫌疑集中在**运行期取不到服务**:`agents.resume` 在 `sessionPersistence` 缺失时抛
|
|
14
|
+
"cannot resume: session persistence is not configured",`subagents.coldResume` 在同一个
|
|
15
|
+
服务缺失时直接 `notFound`——两者都会表现为我们看到的 `subagent "X" is unavailable`。
|
|
16
|
+
|
|
17
|
+
- boot 时探针 `sessions` / `sessionPersistence` / `subagents` / `agents` / `workspaceRegistry`:
|
|
18
|
+
缺失即写 `service.missing.fail`(发布默认级别可见),齐全则写 `service.probe`(`full` 级)。
|
|
19
|
+
- 与 0.4.66 的 `wake.fail.cause` 配合,下一次 `NOT_RESUMABLE` 就能同时拿到「服务地图」和
|
|
20
|
+
「真实错误码/消息」,不必再猜。
|
|
21
|
+
- 测试:`node --test` **269 通过 / 1 跳过**;干跑可见 `service.probe` 与
|
|
22
|
+
`service.missing.fail` 按预期产出(假 ctx 必然缺失)。
|
|
23
|
+
|
|
3
24
|
## 0.4.66 - 2026-11-12
|
|
4
25
|
|
|
5
26
|
**`wake.fail` 带上 cause 链:`NOT_RESUMABLE` 的真实原因不再被吞掉**
|
package/index.js
CHANGED
|
@@ -258,6 +258,20 @@ export function apply(ctx, config = {}) {
|
|
|
258
258
|
// 库模块(ledger / registry / host-agent / skill-provider / jobs)拿不到 diag,
|
|
259
259
|
// 之前只能 console.warn——线上不可检索。这里把共享失败汇接到真正的 diag。
|
|
260
260
|
const removeDiagSink = installDiagSink((row) => diag.append(row));
|
|
261
|
+
// 启动探针:实机 `NOT_RESUMABLE` 的两种可能都指向「取不到服务」——
|
|
262
|
+
// `agents.resume` 在 `sessionPersistence` 缺失时抛 "cannot resume: session
|
|
263
|
+
// persistence is not configured",`subagents.coldResume` 在同一个服务缺失时
|
|
264
|
+
// 直接 notFound。这里把缺失的关键服务记成 `.fail`(发布默认级别可见),
|
|
265
|
+
// 不必再靠猜。
|
|
266
|
+
try {
|
|
267
|
+
const required = ['sessions', 'sessionPersistence', 'subagents', 'agents', 'workspaceRegistry'];
|
|
268
|
+
const missing = required.filter((name) => serviceOf(ctx, name) === undefined);
|
|
269
|
+
const present = required.filter((name) => !missing.includes(name));
|
|
270
|
+
diag.append({ ev: 'service.probe', present });
|
|
271
|
+
if (missing.length > 0) diag.append({ ev: 'service.missing.fail', missing });
|
|
272
|
+
} catch (probeError) {
|
|
273
|
+
diag.append({ ev: 'service.probe.fail', message: probeError?.message ?? String(probeError) });
|
|
274
|
+
}
|
|
261
275
|
// HTTP 层失败/拒绝的统一落点(route.reject 在 errors 白名单内)。
|
|
262
276
|
const errorResponse = (res, error) => {
|
|
263
277
|
diag.append({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
|
|
6
6
|
"license": "MIT",
|