@vpxa/aikit 0.1.348 → 0.1.350

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.
Files changed (52) hide show
  1. package/package.json +1 -1
  2. package/packages/cli/dist/index.js +19 -19
  3. package/packages/cli/dist/{init-DAzYmzd4.js → init-D5TsG2R6.js} +1 -1
  4. package/packages/cli/dist/{templates-CNqAE336.js → templates-CztsaGb2.js} +23 -23
  5. package/packages/core/dist/index.d.ts +17 -1
  6. package/packages/core/dist/index.js +1 -1
  7. package/packages/server/dist/bin.js +6 -6
  8. package/packages/server/dist/config-4M54ZAT8.js +2 -0
  9. package/packages/server/dist/config-BXd38nVn.js +1 -0
  10. package/packages/server/dist/index.js +2 -2
  11. package/packages/server/dist/prelude-DpX0QnqF.js +2 -0
  12. package/packages/server/dist/prelude-pJPHXvnQ.js +1 -0
  13. package/packages/server/dist/proxy.js +7 -7
  14. package/packages/server/dist/routes-9KnBpwfe.js +6 -0
  15. package/packages/server/dist/routes-B8hTXXR8.js +5 -0
  16. package/packages/server/dist/sampling-9GcILoHr.js +2 -0
  17. package/packages/server/dist/sampling-DuXB6-rK.js +1 -0
  18. package/packages/server/dist/{server-CtQIpb5U.js → server-BYZo2XjK.js} +158 -163
  19. package/packages/server/dist/{server-BxwVJZm4.js → server-BtRv0mbH.js} +158 -163
  20. package/packages/server/dist/{server-http-B-04m9Cc.js → server-http-CatdRS-N.js} +1 -1
  21. package/packages/server/dist/{server-http-CIaF7SHf.js → server-http-L_WQ9v_b.js} +1 -1
  22. package/packages/server/dist/{server-stdio-BbBfvNHd.js → server-stdio-CZuGZR4e.js} +1 -1
  23. package/packages/server/dist/{server-stdio-C2-A9bzn.js → server-stdio-avLmmdEi.js} +1 -1
  24. package/packages/server/dist/version-check-B6bui-YI.js +1 -0
  25. package/packages/server/dist/version-check-CZ5hY6R2.js +2 -0
  26. package/packages/server/dist/workspace-bootstrap-B57Oz40_.js +1 -0
  27. package/packages/tools/dist/index.d.ts +64 -27
  28. package/packages/tools/dist/index.js +95 -97
  29. package/scaffold/dist/adapters/hermes-agent.mjs +1 -1
  30. package/scaffold/dist/adapters/hermes.mjs +1 -1
  31. package/scaffold/dist/definitions/agents.mjs +1 -1
  32. package/scaffold/dist/definitions/bodies.mjs +35 -34
  33. package/scaffold/dist/definitions/flows.mjs +7 -7
  34. package/scaffold/dist/definitions/prompts.mjs +7 -7
  35. package/scaffold/dist/definitions/protocols.mjs +7 -7
  36. package/scaffold/dist/definitions/skills/aikit.mjs +14 -14
  37. package/scaffold/dist/definitions/skills/c4-architecture.mjs +1 -1
  38. package/scaffold/dist/definitions/skills/docs.mjs +1300 -251
  39. package/scaffold/dist/definitions/skills/multi-agents-development.mjs +9 -9
  40. package/scaffold/dist/definitions/tools.mjs +1 -1
  41. package/scaffold/general/hooks/scripts/subagent-context.mjs +1 -1
  42. package/packages/server/dist/config-BsS-77rp.js +0 -2
  43. package/packages/server/dist/config-Ds28Hvip.js +0 -1
  44. package/packages/server/dist/prelude-C4WQMZGB.js +0 -2
  45. package/packages/server/dist/prelude-Dl1tjmFb.js +0 -1
  46. package/packages/server/dist/routes-C7bDyCOW.js +0 -5
  47. package/packages/server/dist/routes-CfG5gdSR.js +0 -6
  48. package/packages/server/dist/sampling-B8VsI_pG.js +0 -2
  49. package/packages/server/dist/sampling-CGZYd3sT.js +0 -1
  50. package/packages/server/dist/version-check-BjFqR01r.js +0 -1
  51. package/packages/server/dist/version-check-_2wmedTl.js +0 -2
  52. package/packages/server/dist/workspace-bootstrap-BJloolzr.js +0 -1
@@ -25,7 +25,7 @@ Start:
25
25
  6. scope_map({ task }) for non-trivial work.
26
26
 
27
27
  During:
28
- - Prefer search/file_summary/compact/digest/symbol/trace/graph over raw reads.
28
+ - Prefer search/file_summary/digest/symbol/trace/graph over raw reads.
29
29
  - Use stash for temporary findings; knowledge for durable decisions.
30
30
  - Run blast_radius before shared/public edits.
31
31
  - Validate with check + relevant test_run.
@@ -46,8 +46,8 @@ End:
46
46
  | **L0** | Flow-specific context | \`workflow:<flow>\` briefing card |
47
47
  | **L1** | Active flow state | \`knowledge({ action: 'withdraw', scope: 'flow', profile: '<role>' })\` |
48
48
  | **L2** | Prior decisions/conventions | \`search\` / \`knowledge\` |
49
- | **L2** | File structure | \`file_summary\` |
50
- | **L2** | Exact relevant section | \`compact\` |
49
+ | **L2** | File structure | \`file_summary({ files, tier: 'T1' })\` |
50
+ | **L2** | Exact relevant section | \`file_summary({ files, tier: 'T2' })\` |
51
51
  | **L2** | Many files | \`digest\` |
52
52
  | **L2** | Symbol defs/refs | \`symbol\` |
53
53
  | **L2** | Call/data flow | \`trace\` |
@@ -61,13 +61,13 @@ Raw read_file only for exact edit lines after compressed tools identify target.
61
61
 
62
62
  ## Context Reuse
63
63
 
64
- Before rereading path/topic, search exact path/topic first. If response gives ctxc_..., reuse with compact({ ref }) or compact({ ref, query }). Use enrich: true on tools that support it after first pass.
64
+ Before rereading path/topic, search exact path/topic first. If response gives ctxc_..., reuse with file_summary({ ref }) or file_summary({ ref, query }). Use enrich: true on tools that support it after first pass.
65
65
 
66
66
  ## Patterns
67
67
 
68
- - New area: search -> scope_map -> file_summary/compact -> graph/trace -> stash.
69
- - Bug: search -> symbol -> trace -> compact -> test/check -> remember.
70
- - Refactor shared code: blast_radius -> checkpoint -> compact -> rename/codemod -> check -> test_run.
68
+ - New area: search -> scope_map -> file_summary -> graph/trace -> stash.
69
+ - Bug: search -> symbol -> trace -> file_summary -> test/check -> remember.
70
+ - Refactor shared code: blast_radius -> checkpoint -> file_summary -> rename/codemod -> check -> test_run.
71
71
  - Web/API: web_search/web_fetch/http; browser only when JS/auth interaction needed. Browser snapshots now use ~200-400 tokens, making them practical for quick page state checks.
72
72
 
73
73
  ## Memory Discipline
@@ -85,7 +85,7 @@ Review decayed/stale entries periodically with knowledge({ action: 'flagged' }).
85
85
  Flows guide multi-step work. Read active step before acting. FORGE handles tiering/evidence/gates; load references only when main skill is too thin.
86
86
 
87
87
  ### Layered Knowledge Protocol
88
- - **L0** → Generated briefing cards: load \`workspace-core\` at session start via \`aikit://l0/workspace-core\` resource (full card, live-updated) or \`status({ includePrelude: true })\` (compact summary). Requires \`onboard()\` first — if card null, run \`onboard\` before session start. Add \`workflow:<flow>\` if flow active, or one task card if no flow. Use \`stratum_card\` / \`compact\` for content. Token-bounded.
88
+ - **L0** → Generated briefing cards: load \`workspace-core\` at session start via \`aikit://l0/workspace-core\` resource (full card, live-updated) or \`status({ includePrelude: true })\` (compact summary). Requires \`onboard()\` first — if card null, run \`onboard\` before session start. Add \`workflow:<flow>\` if flow active, or one task card if no flow. Use \`file_summary({ tier: 'T1' })\` for structure, or \`file_summary({ tier: 'T2', query })\` for content. Token-bounded.
89
89
  - **L1** → Flow working context. Withdraw before dispatch; reuse before broad retrieval.
90
90
  - **L2** → Canonical curated knowledge. Retrieve on demand; never preload broadly.
91
91
  - **L3** → Evidence/auto-knowledge. Inspect only for provenance, conflict, or promotion assessment.
@@ -172,7 +172,7 @@ Need real usage examples? → find({ mode: 'examples' })
172
172
  Need call/data flow? → trace
173
173
  Need import/module graph? → graph
174
174
  Need file reading plan? → scope_map
175
- Need one file section? → compact
175
+ Need one file section? → file_summary({ tier: "T2", query })
176
176
  Need many files compressed? → digest
177
177
  ~~~
178
178
 
@@ -182,13 +182,13 @@ Need many files compressed? → digest
182
182
  - Use \`symbol\` when the question is definition, imports, or refs.
183
183
  - Use \`trace\` when you care about execution path.
184
184
  - Use \`graph\` when you care about who depends on what.
185
- - Use \`compact\` after you already know the file and the question.
186
- - Use \`file_summary\` before \`compact\` if you still need structure.
185
+ - Use \`file_summary\` after you already know the file and the question.
186
+ - Use \`file_summary({ tier: 'T1' })\` for structure, or \`file_summary({ tier: 'T2', query })\` for specific content.
187
187
 
188
188
  ## Compression Ladder
189
189
 
190
190
  ~~~text
191
- file_summary compact digest read_file only for edit lines
191
+ file_summary (T1=structure, T2=content) or digest (multi-file synthesis). Read_file ONLY for edit lines
192
192
  ~~~
193
193
 
194
194
  ## Rule of Thumb
@@ -204,7 +204,7 @@ Fast, compact task setup loaded at session start.
204
204
 
205
205
  - **Auto-injected**: \`workspace-core\` (800-1200 tokens) — available via \`status({ includePrelude: true })\` after \`onboard()\` generates the card. If null → run \`onboard({ path, mode: 'generate' })\` then retry status.
206
206
  - **If flow active**: Load \`workflow:<flow>\` (500-900 tokens) via flow start refs (replaces task card)
207
- - **If no flow**: Optionally load one task card via \`stratum_card\` / \`compact\`
207
+ - **If no flow**: Optionally load one task card via \`file_summary\`
208
208
  - **Budget**: ≤ 2,100 tokens total
209
209
  - **Storage**: Generated workspace cache (path from server config)
210
210
  - **Card families**: \`workspace-core\`, \`architecture\`, \`testing-release\`, \`known-issues\`, \`workflow:<flow>\`
@@ -216,7 +216,7 @@ Fast, compact task setup loaded at session start.
216
216
  Active run state and role-filtered dispatch context.
217
217
 
218
218
  - Withdraw via \`knowledge({ action: 'withdraw', scope: 'flow', profile: '<role>', budget: 6000 })\`
219
- - Use withdrawn refs before calling \`compact\`, \`file_summary\`, \`stratum_card\`, \`scope_map\`, \`blast_radius\`, or \`search\`
219
+ - Use withdrawn refs before calling \`file_summary\`, \`scope_map\`, \`blast_radius\`, or \`search\`
220
220
  - Each step has a declared \`contextProfile\` (implementer, reviewer, researcher, documenter, debugger)
221
221
 
222
222
  ## L2 — Canonical Curated Knowledge
@@ -139,7 +139,7 @@ Default: Context + Container. Add Component only for a complex container and a c
139
139
 
140
140
  1. **Study examples first**: Load references/ example files to understand visual patterns, label density, and layout conventions before generating.
141
141
  2. Identify audience and decision the diagram supports.
142
- 3. Gather evidence with AI Kit: analyze/graph/search/compact.
142
+ 3. Gather evidence with AI Kit: analyze/graph/search/file_summary.
143
143
  4. Pick level(s); avoid mixing levels in one diagram.
144
144
  5. **Generate structured diagram JSON** conforming to the centralized diagram schema (see ~/.aikit/resources/renderers/schemas/). Render via CLI:
145
145