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 +1 -1
- package/dist/features/zk-tools/feature.js +11 -1
- package/docs/features/zk-tools.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
-
|
|
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`,
|