@suifei/dsh-ai-team 0.4.112 → 0.4.113

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,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.113 - 2026-11-16
4
+
5
+ **dsh 来源也跳过「替引擎答题」的会话,不论谁派的**
6
+
7
+ - il2c night 8(0.4.109,作答子代理仍逐个唤醒 PMO):PMO 被唤醒后自己派了 23 个子代理去答 handoff 题
8
+ (「读文件 …\.skillopt-sleep-handoff\PROMPTS.md 中 id …」),label 是 `agent-N`,0.4.109 按 `skillopt-*` label
9
+ 的过滤挡不住;night 9 因此钉入 33 个会话,其中 23 个是这类引擎工作;
10
+ - `harvest_dsh`:会话的**第一条**意图指向 `.skillopt-sleep-handoff` 即整段跳过;团队会话里后来顺带提到不受影响。
11
+ 实机同一 72 小时窗口:33 → 10(与作答子代理出现前一致);
12
+ - 根因(PMO 被逐个唤醒)已由 0.4.111 的 caller 投递消除:night 9 触发后 PMO 宿主会话的「子智能体已完成」通知
13
+ 保持 382 条不变;
14
+ - 测试:`test/skillopt-dsh-source.test.js` 扩充 1 例(去掉修复即失败);
15
+
3
16
  ## 0.4.112 - 2026-11-16
4
17
 
5
18
  **任务记录同样打开即在最新回帖(#33 后续)**
@@ -57,6 +57,10 @@ DECODER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "dsh_decode.m
57
57
  _INTENT_SOURCES = {"", "user", "agent-message", "ai-team"}
58
58
  # Label prefix of the AI-team plugin's SkillOpt subagents (subagent/descriptor).
59
59
  _ENGINE_LABEL_PREFIX = "skillopt-"
60
+ # A session whose opening request works on the engine's handoff files is engine
61
+ # work too, whoever spawned it: il2c night 8 had the PMO, woken by every answer
62
+ # child, dispatch 23 subagents of its own ("read PROMPTS.md, id …").
63
+ _ENGINE_WORK = re.compile(r"\.skillopt-sleep-handoff")
60
64
  _RELAY_PREFIX = re.compile(r"^Agent \S+ sent a message:\s*")
61
65
  # AI-team activation prompts start with the member's identity block
62
66
  # (``memberIdentity`` in lib/domain/member-profile.js: "你是 <名>(<角色>)。"
@@ -199,6 +203,8 @@ def digest_dsh_session(path: str, *, node: str, project: str = "") -> Optional[S
199
203
  if not text or _HOST_NOISE.match(text) or _is_meta_prompt(text):
200
204
  continue
201
205
  n_user += 1
206
+ if n_user == 1 and _ENGINE_WORK.search(text):
207
+ return None
202
208
  user_prompts.append(text)
203
209
  feedback.extend(_detect_feedback(text))
204
210
  if kind == "ai-team":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.112",
3
+ "version": "0.4.113",
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",