dsh-zdiary-kit 0.10.1 → 1.0.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 CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-zdiary-kit 0.10.1
1
+ # dsh-zdiary-kit 1.0.1
2
2
 
3
3
  > 给 [DSH](https://github.com/deepseek-ai/deepseek-harness) 装一个**内置 [zk](https://github.com/zk-org/zk) 的知识库 / 日记本**:
4
4
  > 插件提供一键安装 zk(官方 release;设置页按钮或 `zk-kit install`)、自动建笔记本(zk init + 日记模板 + 日记 group),
@@ -13,9 +13,13 @@
13
13
  * lint 据此报告「未填」。
14
14
  */
15
15
  /** PERSONA.md 模板版本:改模板就 +1(独立于 TEMPLATE_VERSION) */
16
- export const PERSONA_TEMPLATE_VERSION = 2;
17
- /** POLICY.md 模板版本:改模板就 +1 */
18
- export const POLICY_TEMPLATE_VERSION = 2;
16
+ export const PERSONA_TEMPLATE_VERSION = 3;
17
+ /**
18
+ * POLICY.md 模板版本:改模板就 +1。
19
+ * 注意与模板 frontmatter 里的 `version:` 区分:那个是**机器可读 schema 版本**(表头 / 字段语义变了才升),
20
+ * 不随模板版本走 —— 模板 v1→v2 时它一直是 1。M3 解析按 `version` 分支,别把两者混成一条线。
21
+ */
22
+ export const POLICY_TEMPLATE_VERSION = 3;
19
23
  /**
20
24
  * 去掉首行契约版本标记,剩下的可以直接交给 `parseFrontmatter()`。
21
25
  * M3 的 policy / persona 解析必须走这里,别自己再写一套「跳过第几行」的规则。
@@ -39,32 +43,22 @@ updated: {{updated}}
39
43
  - 语气:{{tone}}
40
44
  - 边界:{{boundaries}}
41
45
 
42
- ## 口头禅
43
-
44
- - 待填
45
-
46
46
  ## 禁用表达
47
47
 
48
48
  - 待填
49
49
  `;
50
50
  export const POLICY_TEMPLATE = `<!-- zdiary-policy: v${POLICY_TEMPLATE_VERSION} -->
51
51
  ---
52
- version: 1
52
+ version: 2
53
53
  updated: {{updated}}
54
54
  audit: DREAMS.md
55
55
  ---
56
56
 
57
57
  # 自主权契约
58
58
 
59
- > zdiary 生成;人类所有。插件只做最小检查;publish / spend 等动作工具自己读、自己执行。
60
-
61
59
  | action | level | approval | reversible |
62
60
  |---|---|---|---|
63
- | read-note | auto | none | yes |
64
- | write-note | auto | none | yes |
65
- | publish | ask | human | no |
66
- | spend | ask | human | no |
67
- | edit-persona | forbidden | human | yes |
68
- | edit-memory | forbidden | human | yes |
69
- | impersonate-human | forbidden | human | no |
61
+ | zk.read | auto | none | yes |
62
+ | zk.note.write | auto | none | yes |
63
+ | zk.notebook.use | auto | none | yes |
70
64
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-zdiary-kit",
3
- "version": "0.10.1",
3
+ "version": "1.0.1",
4
4
  "description": "内置 zk 的 DSH 知识库 / 日记插件:装好即用 —— 自动装 zk、建笔记本,给 agent 一组 zk_* 工具(搜索、读写、日记、双链),设置页里管路径、索引与自检。",
5
5
  "icon": "./icon.svg",
6
6
  "repository": {