@shgroup/dsh-serenity-hooks 1.16.0 → 1.16.1

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/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @shgroup/dsh-serenity-hooks
2
+
3
+ 宁静号 ACC(Abstract Cognitive Container)harness — **DeepSeek Harness 原生 Cordis 插件**。
4
+
5
+ 为 DSH 会话提供认知容器基础设施:真实 DSH 工具(9 个)+ 拦截缝机械约束(safe-mode / 路径守卫 / 会话落盘)+ 系统提示词注入(ACC/CCE/Constraints/SKILL/Session 五块,对齐 opencode-serenity-plugin)+ WebUI 状态徽章。
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ dsh plugin --profile web add @shgroup/dsh-serenity-hooks
11
+ ```
12
+
13
+ 安装后重启 dsh web。在带 `.serenity` 标记的 CCC 目录中的会话自动获得全部能力。
14
+
15
+ ## 工具
16
+
17
+ `cc_fs` / `session` / `acc_kit` / `cc_git` / `acc_msm` / `eap` / `neat` / `cce` / `loop`
18
+
19
+ ## 系统提示词
20
+
21
+ 五块注入(`systemPrompt.section`,order -50):`=== Serenity ACC ===` / `=== Serenity CCE ===` / `=== Serenity Constraints ===` / 顶层入口 skill 全文(按 `.serenity` 记号发现)/ `=== Serenity Session ===` —— 平台无关文本与 [opencode-serenity-plugin](https://github.com/tellmewhattodo/opencode-serenity-plugin) 逐字节对齐;同一 CCC 可任意换用 osp / dsh 运行时。
22
+
23
+ ## 配置
24
+
25
+ `.dsh/serenity.json`(回退 `.opencode/serenity.json`):
26
+
27
+ ```jsonc
28
+ {
29
+ "loop": { "defaultModel": "provider/model" },
30
+ "sessionKeeper": { "threshold": 100 },
31
+ "safeMode": { "blacklist": [".secrets/", "regex:\\.env$"] }
32
+ }
33
+ ```
34
+
35
+ ## 文档
36
+
37
+ 完整文档见仓库 [README](https://github.com/tellmewhattodo/dsh-serenity-plugin)。
38
+
39
+ ## 许可
40
+
41
+ MIT
package/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-serenity-hooks",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
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": {
@@ -27,7 +27,8 @@
27
27
  "lib/invariant.js",
28
28
  "lib/types/**/*.d.ts",
29
29
  "cordis.patch.yml",
30
- "dsh.plugin.json"
30
+ "dsh.plugin.json",
31
+ "README.md"
31
32
  ],
32
33
  "scripts": {
33
34
  "typecheck": "tsc --noEmit",