dsh-zdiary-kit 3.0.0 → 3.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 3.0.0
1
+ # dsh-zdiary-kit 3.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),
@@ -1176,7 +1176,17 @@ export function buildTools(workspaceOf = () => processWorkspace()) {
1176
1176
  totalWords: { type: 'number' },
1177
1177
  budget: { type: 'number' },
1178
1178
  headroom: { type: 'number' },
1179
- }, ['words', 'contractWords', 'totalWords', 'budget', 'headroom']),
1179
+ files: {
1180
+ type: 'array',
1181
+ items: objSchema({
1182
+ name: { type: 'string' },
1183
+ present: { type: 'boolean' },
1184
+ words: { type: 'number' },
1185
+ originalWords: { type: 'number' },
1186
+ retiredWords: { type: 'number' },
1187
+ }, ['name', 'present', 'words', 'originalWords', 'retiredWords']),
1188
+ },
1189
+ }, ['words', 'contractWords', 'totalWords', 'budget', 'headroom', 'files']),
1180
1190
  counts: objSchema({
1181
1191
  window: { type: 'number' },
1182
1192
  daily: { type: 'number' },
@@ -121,6 +121,8 @@ YAML 独有的转义(`\N`、`\_`)不是合法 JSON,退回「去掉引号
121
121
  外加 `totalWords`(`countWords(payload.text)`)与 `overheadWords`(框 / 做梦提醒 / notice / 契约告警等开销)。
122
122
  契约**不参与** `memoryBudgetWords` 的截断,超了只告警;`overWords` 是所有展示的唯一超量口径,别拿 `words` 再做减法。
123
123
  `zk_dream` 的 `memory.contractWords` 是整段契约注入量;`headroom` 只扣记忆侧(`totalWords - contractWords`),契约不占记忆预算。
124
+ `memory.files[]` 与 `zk_context` 同形(`name / present / words / originalWords / retiredWords`):`memoryUsage` 返回什么,schema 就得声明什么 ——
125
+ 少一个 key,宿主校验直接整次 invalid output。
124
126
 
125
127
  `zk_lint` / `zk_dream` 是**只读**工具,没有 `dry_run` 参数:不给只读工具留一个「看起来能写」的开关(D7)。
126
128
  `zk_lint` = 1 次 `zk list` + 三个 zk 原生过滤器(`--orphan` / `--broken-links` / `--tagless`)+ 1 次 `zk graph`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-zdiary-kit",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "内置 zk 的 DSH 知识库 / 日记插件:装好即用 —— 自动装 zk、建笔记本,给 agent 一组 zk_* 工具(搜索、读写、日记、双链),设置页里管路径、索引与自检。",
5
5
  "icon": "./icon.svg",
6
6
  "repository": {