@suifei/dsh-ai-team 0.4.13 → 0.4.14
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -52,7 +52,7 @@ export const name = 'ai-team';
|
|
|
52
52
|
// 实际使用的服务(含可选服务:缺失时 serviceOf 回退 ctx.get 并返回 undefined)。
|
|
53
53
|
export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy', 'tools', 'shell', 'agents', 'subagents', 'sessions'];
|
|
54
54
|
|
|
55
|
-
const VERSION = '0.4.
|
|
55
|
+
const VERSION = '0.4.14';
|
|
56
56
|
const HUMAN_ID = 'mem_human';
|
|
57
57
|
|
|
58
58
|
const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
|
|
@@ -543,7 +543,9 @@ export function apply(ctx, config = {}) {
|
|
|
543
543
|
// 不在 subagent catalog)无法经父→子通道投递。识别该失败后自动以
|
|
544
544
|
// subagent 形态重建一次(重置会话),避免成员静默不再被唤醒。
|
|
545
545
|
const failureText = `${error?.code ?? ''} ${error?.message ?? String(error)}`;
|
|
546
|
-
|
|
546
|
+
// 含 NOT_RESUMABLE / is unavailable:DSH 重启后 subagent 会话不可恢复/
|
|
547
|
+
// 不可投递(diag 实测),此时必须重建会话,否则成员永久失联。
|
|
548
|
+
const legacySession = /subagent|not-found|not found|E_SESSION_MISSING|NOT_RESUMABLE|unavailable/i.test(failureText)
|
|
547
549
|
&& typeof member?.sessionId === 'string' && member.sessionId !== '';
|
|
548
550
|
if (legacySession) {
|
|
549
551
|
try {
|
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.14",
|
|
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",
|