@suifei/dsh-ai-team 0.3.83 → 0.3.84
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 +5 -0
- package/index.js +33 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.84 - 2026-11-12
|
|
4
|
+
|
|
5
|
+
- **旧会话自动迁移(review 修复)**:唤醒失败且错误表明 subagent 不可用时(旧形态成员会话由 agents.create 创建、不在 subagent catalog),自动以 subagent 形态重建一次(重置会话)并记录 member.autoreseat 诊断——避免成员在重构后静默不再被唤醒,用户无需手动迁移。
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
## 0.3.83 - 2026-11-12
|
|
4
9
|
|
|
5
10
|
- **人员池模型下拉 [object Object] 修复**:modelCatalog 的 providers[].models 元素是 {id,name} 对象,P2 之前按字符串拼接。改为按 {id,name} 取值,并用索引映射代替字符串拆解(模型显示名可能含分隔符)。
|
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export const name = 'ai-team';
|
|
|
41
41
|
/** The workbench only makes sense where the Web carrier exists. */
|
|
42
42
|
export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy'];
|
|
43
43
|
|
|
44
|
-
const VERSION = '0.3.
|
|
44
|
+
const VERSION = '0.3.84';
|
|
45
45
|
const HUMAN_ID = 'mem_human';
|
|
46
46
|
|
|
47
47
|
const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
|
|
@@ -490,6 +490,38 @@ export function apply(ctx, config = {}) {
|
|
|
490
490
|
message: error?.message ?? String(error),
|
|
491
491
|
});
|
|
492
492
|
console.warn('[ai-team] wake failed:', plan.memberId, error?.code ?? error?.message ?? error);
|
|
493
|
+
// 一次性迁移自愈:旧形态成员会话(历史上由 agents.create 创建、
|
|
494
|
+
// 不在 subagent catalog)无法经父→子通道投递。识别该失败后自动以
|
|
495
|
+
// subagent 形态重建一次(重置会话),避免成员静默不再被唤醒。
|
|
496
|
+
const failureText = `${error?.code ?? ''} ${error?.message ?? String(error)}`;
|
|
497
|
+
const legacySession = /subagent|not-found|not found|E_SESSION_MISSING/i.test(failureText)
|
|
498
|
+
&& typeof member?.sessionId === 'string' && member.sessionId !== '';
|
|
499
|
+
if (legacySession) {
|
|
500
|
+
try {
|
|
501
|
+
const reseated = await activateMember({
|
|
502
|
+
payload: {
|
|
503
|
+
memberId: plan.memberId,
|
|
504
|
+
force: true,
|
|
505
|
+
prompt: '会话已升级为团队子智能体形态(历史会话迁移)。先读 tasks/thread 当前状态,继续推进;不要重复已完成的工作。',
|
|
506
|
+
},
|
|
507
|
+
}, projectRuntime);
|
|
508
|
+
diag.append({
|
|
509
|
+
ev: 'member.autoreseat',
|
|
510
|
+
projectId: projectRuntime.id,
|
|
511
|
+
memberId: plan.memberId,
|
|
512
|
+
oldSessionId: member.sessionId,
|
|
513
|
+
newSessionId: reseated?.sessionId ?? null,
|
|
514
|
+
ok: reseated?.error === undefined,
|
|
515
|
+
});
|
|
516
|
+
} catch (reseatError) {
|
|
517
|
+
diag.append({
|
|
518
|
+
ev: 'member.autoreseat.fail',
|
|
519
|
+
projectId: projectRuntime.id,
|
|
520
|
+
memberId: plan.memberId,
|
|
521
|
+
message: reseatError?.message ?? String(reseatError),
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}
|
|
493
525
|
try {
|
|
494
526
|
await projectRuntime.service.recordWake(plan.memberId, {
|
|
495
527
|
ok: false, taskId: plan.taskId, reason: plan.reason, error: error?.code ?? error?.message ?? String(error),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.84",
|
|
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",
|