@suifei/dsh-ai-team 0.4.19 → 0.4.22

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.
Files changed (2) hide show
  1. package/index.js +3 -1
  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.19';
55
+ const VERSION = '0.4.22';
56
56
  const HUMAN_ID = 'mem_human';
57
57
 
58
58
  const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
@@ -1859,6 +1859,8 @@ export function apply(ctx, config = {}) {
1859
1859
  : '会话已重建(成员恢复)。先读 tasks/thread 当前状态,继续推进;不要重复已完成的工作。',
1860
1860
  },
1861
1861
  }, runtime);
1862
+ // reseat 后旧会话不再使用:清掉选择日志缓存,避免随重建累积(泄漏)。
1863
+ if (before !== null) modelSelectionLogged.delete(before);
1862
1864
  results.push({
1863
1865
  memberId,
1864
1866
  ok: activated.error === undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.19",
3
+ "version": "0.4.22",
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",