@suifei/dsh-ai-team 0.3.77 → 0.3.78

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.78 - 2026-11-12
4
+
5
+ - **【关键】成员会话对 Human 只读的根因修复**:宿主 hasApiSessionSubagentOwner 除 origin=subagent 外,对「header 带 parentSession 且 parent 拥有该 agent」的会话同样判定为 subagent-owned 并拒绝 Human 输入。插件 direct 模式创建成员会话时恰好设置了 meta.parentSession,导致所有成员会话被拒。现移除该 header 字段(驱动改用 agents.resume 的 parentAgent,不依赖 header)——新激活/重置后的成员会话可在 DSH 主界面直接输入。
6
+ - 已存在成员需执行一次「重置会话」(reseat)使新 header 生效。
7
+
8
+
3
9
  ## 0.3.77 - 2026-11-12
4
10
 
5
11
  - **Human 对话入口直达**:主对话流成员消息头新增「私信」按钮(此前需点名字→资料面板→私信三步);私信直达该成员会话写入通道。
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.77';
44
+ const VERSION = '0.3.78';
45
45
  const PROJECT_ID = 'prj_main';
46
46
  const HUMAN_ID = 'mem_human';
47
47
 
@@ -184,9 +184,11 @@ export class MemberRuntime {
184
184
  parentAgent: this.parent,
185
185
  meta: {
186
186
  cwd: member.workspace ?? this.cwd,
187
- parentSession: this.parent.id,
188
- // Deliberately NOT origin:'subagent': the archived Team Host
189
- // must not put members under the archived-session pre-step gate.
187
+ // 关键:不设 parentSession——宿主 hasApiSessionSubagentOwner 对
188
+ // 「有 parentSession 且 parent 拥有该 agent」的会话同样判定为
189
+ // subagent-owned 并拒绝 Human 输入(session/agent-busy)。成员
190
+ // 会话必须允许 Human 在 DSH 主界面直接对话,故 header 不带父链
191
+ // (驱动仍靠 agents.resume(parentAgent),不依赖该 header)。
190
192
  delegationDepth: 1,
191
193
  ...(preset ? { agentPreset: preset } : {}),
192
194
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.3.77",
3
+ "version": "0.3.78",
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",