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 +1 -1
- package/dist/lib/persona-template.js +11 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,13 @@
|
|
|
13
13
|
* lint 据此报告「未填」。
|
|
14
14
|
*/
|
|
15
15
|
/** PERSONA.md 模板版本:改模板就 +1(独立于 TEMPLATE_VERSION) */
|
|
16
|
-
export const PERSONA_TEMPLATE_VERSION =
|
|
17
|
-
/**
|
|
18
|
-
|
|
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:
|
|
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
|
|
64
|
-
| write
|
|
65
|
-
|
|
|
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
|
`;
|