@shgroup/dsh-serenity-hooks 1.17.1 → 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 +1 -1
- package/lib/index.js +7 -2
- package/package.json +1 -1
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-serenity-hooks",
|
|
3
|
-
"version": "1.17.
|
|
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
|
@@ -3786,7 +3786,12 @@ function resolveActiveSessionInfo(root, scope) {
|
|
|
3786
3786
|
return null;
|
|
3787
3787
|
}
|
|
3788
3788
|
}
|
|
3789
|
-
/**
|
|
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
|
+
*/
|
|
3790
3795
|
function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
|
|
3791
3796
|
const active = resolveActiveSessionInfo(root, scope);
|
|
3792
3797
|
if (!active) return "";
|
|
@@ -3808,7 +3813,7 @@ function sessionBlock(root, scope = DEFAULT_SESSION_SCOPE) {
|
|
|
3808
3813
|
"CRITICAL: When calling todowrite, the first item in the todos array MUST",
|
|
3809
3814
|
"always be:",
|
|
3810
3815
|
` { content: "SESSION: ${active.sessionId} — ${active.dirName.replace(/^\d{4}-\d{2}-\d{2}--/, "")}",`,
|
|
3811
|
-
" status: \"completed\"
|
|
3816
|
+
" status: \"completed\" }",
|
|
3812
3817
|
"This preserves the session context across todo updates.",
|
|
3813
3818
|
"Do NOT remove or reorder this item — keep it at position 0.",
|
|
3814
3819
|
""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.17.
|
|
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": {
|