@suifei/dsh-ai-team 0.4.108 → 0.4.109

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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.109 - 2026-11-16
4
+
5
+ **dsh 来源不再采 SkillOpt 自己的子代理会话**
6
+
7
+ - handoff 作答、判官、生成子代理都在项目工作区里运行,`dsh` 来源按 `cwd` 认项目,会把它们当成团队会话:
8
+ 题面以 `user` 消息投递,被挖成「回答 SkillOpt 题目」的任务。il2c 实机:一个 handoff 夜间后 17:00 起 39 个
9
+ 新会话里 38 个是 `skillopt-*` 子代理,采集得到 33 个摘要;
10
+ - `harvest_dsh` 遇到 label 以 `skillopt-` 开头的 `subagent/descriptor` 即跳过该会话(团队派生的其它子代理照采)。
11
+ 实机:17:00 起只剩团队宿主会话 1 个,72 小时窗口 10 个(与作答子代理出现前一致);
12
+ - 测试:`test/skillopt-dsh-source.test.js` 新增 1 例(去掉修复即失败);
13
+
3
14
  ## 0.4.108 - 2026-11-16
4
15
 
5
16
  **handoff 作答题面原样转交**
@@ -55,6 +55,8 @@ DECODER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "dsh_decode.m
55
55
  # Host bookkeeping (``time-context``, ``runtime-context``, ``skill-catalog``,
56
56
  # ``agent-instructions``, ``subagent-settled``, ``tool-jobs``, …) is not intent.
57
57
  _INTENT_SOURCES = {"", "user", "agent-message", "ai-team"}
58
+ # Label prefix of the AI-team plugin's SkillOpt subagents (subagent/descriptor).
59
+ _ENGINE_LABEL_PREFIX = "skillopt-"
58
60
  _RELAY_PREFIX = re.compile(r"^Agent \S+ sent a message:\s*")
59
61
  # AI-team activation prompts start with the member's identity block
60
62
  # (``memberIdentity`` in lib/domain/member-profile.js: "你是 <名>(<角色>)。"
@@ -178,6 +180,13 @@ def digest_dsh_session(path: str, *, node: str, project: str = "") -> Optional[S
178
180
  ended = stamp
179
181
  rtype = rec.get("type")
180
182
  data = rec.get("data") if isinstance(rec.get("data"), dict) else {}
183
+ if rtype == "subagent/descriptor" and str(data.get("label") or "").startswith(_ENGINE_LABEL_PREFIX):
184
+ # The engine's own one-shot children (handoff answers, judges,
185
+ # generators) run in the project directory too; their prompt is
186
+ # a SkillOpt task, not the team's work. Mining them teaches the
187
+ # loop to answer SkillOpt prompts (il2c: 38 of 39 sessions in one
188
+ # handoff night).
189
+ return None
181
190
  if rtype == "user/message":
182
191
  source = data.get("source") if isinstance(data.get("source"), dict) else {}
183
192
  kind = str(source.get("kind") or "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.108",
3
+ "version": "0.4.109",
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",