@shgroup/dsh-serenity-hooks 1.17.0 → 1.17.2

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.17.0",
3
+ "version": "1.17.2",
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
@@ -2633,9 +2633,7 @@ const gitTool = defineTool({
2633
2633
  },
2634
2634
  count: {
2635
2635
  type: "integer",
2636
- minimum: 1,
2637
- maximum: 100,
2638
- description: "log 条数(默认 10,max 100)"
2636
+ description: "log 条数(默认 10,max 100;运行时 clamp 1-100)"
2639
2637
  },
2640
2638
  staged: {
2641
2639
  type: "boolean",
@@ -3788,7 +3786,12 @@ function resolveActiveSessionInfo(root, scope) {
3788
3786
  return null;
3789
3787
  }
3790
3788
  }
3791
- /** 5) Session 块:逐字对齐 osp(活跃会话 + todowrite 首位约定);scope = dsh 会话维度 */
3789
+ /**
3790
+ * 5) Session 块:对齐 osp(活跃会话 + todowrite 首位约定);scope = dsh 会话维度。
3791
+ * **平台适配(v1.17.2)**:osp 的 todowrite 首项含 `priority: "low"`(opencode todo 支持),
3792
+ * 但 DSH 平台 todowrite schema 无 priority(additionalProperties: false 拒绝)→ agent 照做报
3793
+ * `todos[0].priority is not a declared property`。DSH 版去掉 priority 字段(其余逐字对齐 osp)。
3794
+ */
3792
3795
  function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
3793
3796
  const active = resolveActiveSessionInfo(root, scope);
3794
3797
  if (!active) return "";
@@ -3810,7 +3813,7 @@ function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
3810
3813
  "CRITICAL: When calling todowrite, the first item in the todos array MUST",
3811
3814
  "always be:",
3812
3815
  ` { content: "SESSION: ${active.sessionId} — ${active.dirName.replace(/^\d{4}-\d{2}-\d{2}--/, "")}",`,
3813
- " status: \"completed\", priority: \"low\" }",
3816
+ " status: \"completed\" }",
3814
3817
  "This preserves the session context across todo updates.",
3815
3818
  "Do NOT remove or reorder this item — keep it at position 0.",
3816
3819
  ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.17.0",
3
+ "version": "1.17.2",
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": {