@forwardimpact/libwiki 0.2.19 → 0.2.20
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/package.json +1 -1
- package/src/commands/fix.js +11 -6
package/package.json
CHANGED
package/src/commands/fix.js
CHANGED
|
@@ -48,9 +48,10 @@ function invariantContract(findings) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* The opening task: the findings, the invariant contract, and the
|
|
52
|
-
*
|
|
53
|
-
* single
|
|
51
|
+
* The opening task: the findings, the invariant contract, and the things the
|
|
52
|
+
* rule hints don't cover — where trimmed history goes (only existing
|
|
53
|
+
* weekly-log files; rotation owns minting new ones), and to prefer a single
|
|
54
|
+
* Write.
|
|
54
55
|
*/
|
|
55
56
|
function composeTask(findings, wikiRoot, projectRoot) {
|
|
56
57
|
return [
|
|
@@ -62,9 +63,13 @@ function composeTask(findings, wikiRoot, projectRoot) {
|
|
|
62
63
|
`by breaking another:`,
|
|
63
64
|
...invariantContract(findings),
|
|
64
65
|
``,
|
|
65
|
-
`Move history out of an over-budget summary into the agent's
|
|
66
|
-
`file (wiki/<agent>-YYYY-Www.md)
|
|
67
|
-
`
|
|
66
|
+
`Move history out of an over-budget summary into the agent's existing`,
|
|
67
|
+
`weekly-log file or its current part (wiki/<agent>-YYYY-Www[-partN].md) —`,
|
|
68
|
+
`never a new summary section, and never a new file: rotation tooling owns`,
|
|
69
|
+
`when part files are created, so do not mint filenames yourself. If the`,
|
|
70
|
+
`trimmed narrative already exists in the weekly log, replace it in the`,
|
|
71
|
+
`summary with a pointer to that file instead of copying it anywhere.`,
|
|
72
|
+
`Prefer a single Write over many Edits.`,
|
|
68
73
|
].join("\n");
|
|
69
74
|
}
|
|
70
75
|
|