@lawaty/lacode 1.0.2 → 1.1.0
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/CHANGELOG.md +75 -0
- package/README.md +25 -6
- package/dist/agents.js +368 -244
- package/dist/commands.js +29 -13
- package/dist/index.js +1185 -408
- package/dist/lacode.js +23 -2
- package/docs/CONTEXT.md +80 -10
- package/docs/INSTALL.md +2 -2
- package/package.json +2 -1
package/dist/commands.js
CHANGED
|
@@ -67,11 +67,14 @@ your system prompt.
|
|
|
67
67
|
Otherwise follow the bootstrap procedure in your system prompt: progressive
|
|
68
68
|
exploration (README \u2192 existing docs \u2192 manifests \u2192 top-level structure \u2192 build
|
|
69
69
|
and framework config \u2192 entry points \u2192 selective source), then write the five
|
|
70
|
-
context files inside their
|
|
71
|
-
|
|
70
|
+
context files inside their line budgets, using the entry schema (provenance
|
|
71
|
+
marker, rule of at most three lines, \`\u2014 See <path>[ \xA7Section] (verified
|
|
72
|
+
YYYY-MM-DD)\`). Also create \`.opencode/context/active.md\` with its heading and no
|
|
73
|
+
tasks.
|
|
72
74
|
|
|
73
|
-
Remember: write conclusions, not inventories.
|
|
74
|
-
documentation instead of
|
|
75
|
+
Remember: write conclusions, not inventories. Point at the project's existing
|
|
76
|
+
documentation instead of restating it. Run the drift pass and report a
|
|
77
|
+
contradiction rather than silently choosing a side.
|
|
75
78
|
|
|
76
79
|
Report what you created or updated, what you deliberately left out, and
|
|
77
80
|
anything that contradicts the code or existing docs.`
|
|
@@ -97,7 +100,11 @@ or an invariant not yet recorded.
|
|
|
97
100
|
|
|
98
101
|
Do not edit documentation just because source files changed. No
|
|
99
102
|
timestamp-only edits. If nothing material changed, make no edits and report
|
|
100
|
-
"no update needed"
|
|
103
|
+
"no update needed".
|
|
104
|
+
|
|
105
|
+
Every new or changed entry uses the schema in your system prompt and stays
|
|
106
|
+
under the file's line budget. If a file is already over budget, consolidate
|
|
107
|
+
before adding.`
|
|
101
108
|
},
|
|
102
109
|
"context-review": {
|
|
103
110
|
description: "Audit .opencode/context/ for staleness, contradictions, excess size, duplication, and missing entry points.",
|
|
@@ -105,20 +112,29 @@ timestamp-only edits. If nothing material changed, make no edits and report
|
|
|
105
112
|
subtask: true,
|
|
106
113
|
template: `Context review.
|
|
107
114
|
|
|
108
|
-
|
|
109
|
-
|
|
115
|
+
Follow the review procedure and entry schema in your system prompt. Everything
|
|
116
|
+
outside \`.opencode/context/\` is read-only for this run. Do not modify source
|
|
117
|
+
code under any circumstances.
|
|
110
118
|
|
|
111
119
|
Audit the context files and the backlog for:
|
|
112
120
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
121
|
+
- schema \u2014 every entry has one provenance marker, at most three lines, a
|
|
122
|
+
pointer, and a \`(verified YYYY-MM-DD)\` date
|
|
123
|
+
- budget \u2014 every file is within its non-blank-line cap; consolidate rather
|
|
124
|
+
than exceed it
|
|
125
|
+
- stale information \u2014 verify claims against the actual code and the cited page
|
|
126
|
+
- contradictions between context files, or between the map and a page \u2014 mark
|
|
127
|
+
\`[disputed]\` and report both sides; never silently prefer one
|
|
128
|
+
- dangling pointers \u2014 every cited path and \xA7section must exist
|
|
129
|
+
- unarchived content \u2014 an entry with no source in the tree; report it and keep
|
|
130
|
+
it, because it may be the only copy
|
|
131
|
+
- restatement \u2014 a table, a fenced block, or a long verbatim span copied from a
|
|
132
|
+
page
|
|
117
133
|
- duplicated information \u2014 one canonical place per fact; link to the
|
|
118
134
|
project's own docs rather than restating them
|
|
119
135
|
- missing canonical entry points for significant subsystems
|
|
120
|
-
- unsupported assumptions \u2014 anything
|
|
121
|
-
|
|
136
|
+
- unsupported assumptions \u2014 anything that is not \`[binding]\` or \`[disputed]\`
|
|
137
|
+
should be \`[provisional]\`
|
|
122
138
|
- backlog tasks that are finished but carry no date \u2014 the retention window
|
|
123
139
|
cannot age those out, so they stay forever
|
|
124
140
|
|