@hadooppei/hwcode 1.0.8 → 1.0.9
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/.pi/extensions/knowledge.ts +137 -192
- package/.pi/lib/knowledge/review-worker.ts +238 -42
- package/.pi/lib/knowledge/session-scanner.ts +155 -0
- package/.pi/lib/knowledge/store.ts +237 -123
- package/.pi/lib/knowledge/types.ts +37 -5
- package/.pi/lib/knowledge/worker-protocol.ts +15 -7
- package/.pi/lib/runtime/defaults.ts +5 -2
- package/.pi/lib/runtime/paths.ts +16 -11
- package/README.md +19 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -153,21 +153,24 @@ scanned through a verified ProxyJump. Runner execution requires Terraform,
|
|
|
153
153
|
Terraform backend. The exact policy-checked file manifest is uploaded and its
|
|
154
154
|
per-file digest is verified remotely before execution.
|
|
155
155
|
|
|
156
|
-
Knowledge capture is independent from workflow completion.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
156
|
+
Knowledge capture is independent from workflow and session completion. Every
|
|
157
|
+
HWCode process owns a lightweight Worker, but a user-private Unix socket elects
|
|
158
|
+
exactly one machine-local Leader. The Leader checks every open or closed session
|
|
159
|
+
once per minute and serially asks its configured model to review uncommitted
|
|
160
|
+
session deltas. Workers without model access remain ineligible; they rejoin the
|
|
161
|
+
election automatically after model authentication becomes available.
|
|
162
|
+
|
|
163
|
+
Reusable knowledge is stored as immutable generations under
|
|
164
|
+
`~/.hwcode/knowledge-v3/` using two tracks. Short, high-confidence rules live
|
|
165
|
+
under each generation's `rules/` directory and every applicable rule is loaded
|
|
166
|
+
when an agent starts. Detailed SOPs and evolving engineering experience live
|
|
167
|
+
under `topics/`; only the bounded keyword index is loaded into the prompt. The
|
|
168
|
+
`hwcode_knowledge_lookup` tool loads a detailed topic on demand. A generation
|
|
169
|
+
atomically publishes rules, topics, the complete catalog, and per-session review
|
|
170
|
+
cursors, so a catalog can never reference an unpublished body. Exact repeats
|
|
171
|
+
are reinforced, safe explicit revisions replace their source, and ambiguous
|
|
172
|
+
conflicts are quarantined under `pending/`. Earlier knowledge layouts are
|
|
173
|
+
neither loaded nor migrated.
|
|
171
174
|
|
|
172
175
|
A successful managed Terraform apply additionally produces a schema-v2
|
|
173
176
|
Terraform Template bundle containing filtered Terraform, Helm, discovery and
|
|
@@ -200,7 +203,7 @@ Runtime data is separated by ownership: project SDD specifications live under
|
|
|
200
203
|
`.hwcode/specs/`, retained Cloud run artifacts live under
|
|
201
204
|
`.hwcode/cloud/runs/<run-id>/`, user-private credentials, SSH trust, and
|
|
202
205
|
Terraform Templates live under `~/.hwcode/cloud/`, and the cross-workflow
|
|
203
|
-
knowledge base lives under `~/.hwcode/knowledge/`. Cloud run artifacts are
|
|
206
|
+
knowledge base lives under `~/.hwcode/knowledge-v3/`. Cloud run artifacts are
|
|
204
207
|
deliberately retained for inspection and automatic bundle extraction; HWCode
|
|
205
208
|
does not apply a time-based cleanup policy.
|
|
206
209
|
|