@shgroup/dsh-serenity-hooks 1.19.3 → 1.19.4

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/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-serenity-hooks",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):真实 DSH 工具 cc_fs/session/acc_msm/eap/neat/cce/loop + 拦截缝机械约束(safe-mode/路径守卫)。适配 DSH 公开版(0.1.0-rc,deepseek-ai/deepseek-harness)。私有(dsh-external 组织)。",
6
6
  "engines": {
package/lib/index.js CHANGED
@@ -3572,9 +3572,10 @@ const DEFAULT_ANCHOR_MESSAGE = "You are a helpful software engineer assistant.Th
3572
3572
  * 某些模型/协议(如 opencode-go-responses)的会话可能不产生标准
3573
3573
  * `assistant/message` 晋升信号 → 永不晋升 → bootstrap 阶段工具被裁空
3574
3574
  * (zeroTools 首请求 0 工具,ACC 工具不可见)。兜底:无论晋升信号是否
3575
- * 到达,观察到的模型回复轮数(assistant/message 事件计数,独立于
3576
- * promoteEvents)达到 maxRoundsFallback 即强制 promoted(开放完整工具)。
3577
- * 正常模型锚定轮数(requiredSignals)通常 ≤ 2 < 默认兜底 3,不受影响。
3575
+ * 到达,观察到的模型 step 数(`step/start` 事件计数,平台稳定事件,
3576
+ * responses/completions 都触发,独立于 promoteEvents)达到 maxRoundsFallback
3577
+ * 即强制 promoted(开放完整工具)。正常模型锚定轮数(requiredSignals
3578
+ * 通常 ≤ 2 < 默认兜底 3,不受影响。
3578
3579
  */
3579
3580
  function createEpochPromotion(promoteEvents, requiredSignals = 1, maxRoundsFallback = 3) {
3580
3581
  /** sessionId -> { boundary, signalCount, rounds }(rounds = 兜底用回复轮计数) */
@@ -3601,7 +3602,7 @@ function createEpochPromotion(promoteEvents, requiredSignals = 1, maxRoundsFallb
3601
3602
  continue;
3602
3603
  }
3603
3604
  if (promoteEvents.has(e.type) && seq > boundary) signalCount++;
3604
- if (e.type === "assistant/message" && seq > boundary) rounds++;
3605
+ if (e.type === "step/start" && seq > boundary) rounds++;
3605
3606
  }
3606
3607
  const entry = {
3607
3608
  boundary,
@@ -3663,7 +3664,7 @@ function createEpochPromotion(promoteEvents, requiredSignals = 1, maxRoundsFallb
3663
3664
  return;
3664
3665
  }
3665
3666
  if (promoteEvents.has(e.type) && seq > entry.boundary) entry.signalCount++;
3666
- if (e.type === "assistant/message" && seq > entry.boundary) entry.rounds++;
3667
+ if (e.type === "step/start" && seq > entry.boundary) entry.rounds++;
3667
3668
  state.set(sid, entry);
3668
3669
  }
3669
3670
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "宁静号 ACC harness — Native Cordis 插件(DeepSeek Harness 运行时)。真实 DSH 工具注册(cc_fs/session/acc_msm 等 9 工具)+ 拦截缝机械约束(safe-mode/路径守卫/会话落盘)+ 系统提示词注入(ACC/CCE/Constraints/SKILL/Session 五块)。适配 DSH 公开版(deepseek-ai/deepseek-harness 0.1.0-rc)。",
5
5
  "license": "MIT",
6
6
  "repository": {