@vpxa/aikit 0.1.360 → 0.1.362

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 (65) hide show
  1. package/README.md +442 -442
  2. package/package.json +3 -1
  3. package/packages/claude-desktop/dist/manifest.json +31 -0
  4. package/packages/claude-desktop/dist/mcp-source.json +16 -0
  5. package/packages/cli/dist/index.js +14 -14
  6. package/packages/cli/dist/init-JfM6gnAO.js +7 -0
  7. package/packages/cli/dist/mcp-entry.json +8 -0
  8. package/packages/cli/dist/{templates-DUUaYk_d.js → templates-CNDa9H4e.js} +25 -25
  9. package/packages/core/dist/index.d.ts +4 -2
  10. package/packages/core/dist/index.js +1 -1
  11. package/packages/flows/dist/index.d.ts +1 -1
  12. package/packages/flows/dist/index.js +1 -1
  13. package/packages/present/dist/annotation-layer.js +97 -14
  14. package/packages/present/dist/index.html +92 -9
  15. package/packages/server/dist/bin.js +1 -1
  16. package/packages/server/dist/config-B4klhHVp.js +2 -0
  17. package/packages/server/dist/config-D3rRPB9X.js +1 -0
  18. package/packages/server/dist/index.js +1 -1
  19. package/packages/server/dist/prelude-BgvW6Hp5.js +2 -0
  20. package/packages/server/dist/prelude-Di-ZDdDk.js +1 -0
  21. package/packages/server/dist/routes-Ct7q5jrL.js +6 -0
  22. package/packages/server/dist/routes-DsSm9ea0.js +5 -0
  23. package/packages/server/dist/sampling-CFWUnzbA.js +1 -0
  24. package/packages/server/dist/sampling-lcC_v6KY.js +2 -0
  25. package/packages/server/dist/server-Bsceh-AT.js +3070 -0
  26. package/packages/server/dist/server-DUWF6mtP.js +3071 -0
  27. package/packages/server/dist/{server-http-Dd2uCMBi.js → server-http-BGcKUn5y.js} +1 -1
  28. package/packages/server/dist/{server-http-BaMUtb5Y.js → server-http-Cx4tvbmK.js} +1 -1
  29. package/packages/server/dist/{server-stdio-B5rk-PAI.js → server-stdio-BmGuXkkF.js} +1 -1
  30. package/packages/server/dist/{server-stdio-CtR4QNT3.js → server-stdio-C66e05P_.js} +1 -1
  31. package/packages/server/viewers/architecture-static.html +794 -794
  32. package/packages/server/viewers/report-template.html +11 -11
  33. package/packages/server/viewers/tour-viewer.html +26 -26
  34. package/packages/settings-ui/dist/index.html +12 -12
  35. package/packages/tools/dist/index.d.ts +109 -14
  36. package/packages/tools/dist/index.js +118 -98
  37. package/scaffold/definitions/mcp-entry.json +1 -1
  38. package/scaffold/dist/adapters/claude-code.mjs +5 -5
  39. package/scaffold/dist/adapters/claude-desktop.mjs +6 -6
  40. package/scaffold/dist/adapters/copilot.mjs +1 -1
  41. package/scaffold/dist/adapters/gemini.mjs +2 -2
  42. package/scaffold/dist/adapters/hermes-agent.mjs +1 -1
  43. package/scaffold/dist/adapters/hermes.mjs +1 -1
  44. package/scaffold/dist/adapters/opencode.mjs +2 -2
  45. package/scaffold/dist/adapters/zed.mjs +1 -1
  46. package/scaffold/dist/definitions/flows.mjs +40 -162
  47. package/scaffold/dist/definitions/mcp-entry.json +1 -1
  48. package/scaffold/dist/definitions/platform-capabilities.mjs +1 -1
  49. package/scaffold/dist/definitions/protocols.mjs +22 -19
  50. package/scaffold/dist/definitions/skills/adr-skill.mjs +1 -1
  51. package/scaffold/dist/definitions/skills/docs.mjs +51 -1
  52. package/scaffold/dist/definitions/skills/lesson-learned.mjs +21 -0
  53. package/scaffold/vitest.config.mjs +1 -0
  54. package/packages/cli/dist/init-C_WzeMTD.js +0 -7
  55. package/packages/server/dist/config-4M54ZAT8.js +0 -2
  56. package/packages/server/dist/config-BXd38nVn.js +0 -1
  57. package/packages/server/dist/prelude-CNOjd5qt.js +0 -2
  58. package/packages/server/dist/prelude-Dki25eYn.js +0 -1
  59. package/packages/server/dist/routes-9KnBpwfe.js +0 -6
  60. package/packages/server/dist/routes-B8hTXXR8.js +0 -5
  61. package/packages/server/dist/sampling-B8NwOv_z.js +0 -1
  62. package/packages/server/dist/sampling-DOOgTH1B.js +0 -2
  63. package/packages/server/dist/server-C2n9kQMF.js +0 -3069
  64. package/packages/server/dist/server-CizTllz1.js +0 -3070
  65. package/scaffold/AUTOMATION-BOUNDARY-ANALYSIS.md +0 -78
@@ -1,78 +0,0 @@
1
- # Automation Boundary Analysis (Reconciled)
2
-
3
- > **Status:** Corrected per architectural review (2026-06-28).
4
- > **Previous version:** Classified 7 actions as AUTOMATABLE with 80% token savings claims.
5
- > **Corrections:**
6
- > - `status({includePrelude: true})` is LLM-JUDGMENT, not automatable
7
- > - `search({query: "SESSION CHECKPOINT"})` is LLM-JUDGMENT — fixed query silently misses
8
- > - `check({})` / `test_run({})` are MIXED/SCOPED only — full-project runs too slow
9
- > - Token savings claims removed — not proven
10
- >
11
- > See `docs/architecture/eventbus-hooks-developer-guide.md` for the full implementation guide.
12
-
13
- ---
14
-
15
- ## Corrected Classification
16
-
17
- | Action | Correct Category | Reason |
18
- |--------|-----------------|--------|
19
- | `status({})` at session start | **Automatable signal** | Safe only when bounded (no includePrelude) and not used as dynamic instruction replacement |
20
- | `status({includePrelude: true})` | **LLM judgment** | Produces LLM-facing context; may be stale if hidden behind a hook |
21
- | `knowledge({action: "list"})` at session start | **Automatable signal with budget** | Safe only with strict result cap and no full-list injection |
22
- | `search({query: "SESSION CHECKPOINT"})` | **LLM judgment** | Fixed query can silently miss relevant checkpoints |
23
- | `search({query: "<task>"})` before code change | **LLM judgment** | Query requires task understanding |
24
- | `scope_map({task})` before code change | **LLM judgment** | Task description requires LLM synthesis |
25
- | `check({})` / `test_run({})` before commit | **Mixed, scoped only** | Full-project runs too slow; must pass `files` from `git diff` or user intent |
26
- | `blast_radius({changed_files})` before commit | **Mixed** | Call can be automated; output interpretation is LLM judgment |
27
- | Handoff/checkpoint content creation | **LLM judgment** | Requires summarizing decisions and next steps |
28
- | Writing a prepared handoff file | **Automatable** | File IO is deterministic after content exists |
29
- | Skill loading at session start | **LLM judgment with signal** | Hook can recommend; LLM must choose and follow skill protocol |
30
- | Context pressure check at session end | **Automatable signal** | Numeric comparison is deterministic |
31
-
32
- ---
33
-
34
- ## Per-Automation Specification
35
-
36
- Each automated action must have:
37
-
38
- | Field | Required |
39
- |-------|----------|
40
- | Input source | ✔ — What triggers the automation |
41
- | Output budget | ✔ — Max tokens/characters produced |
42
- | Timeout | ✔ — Max execution time |
43
- | Failure mode | ✔ — Log, warn, or degrade (never silently fail) |
44
- | User-visible trace | ✔ — Agent sees automation output |
45
-
46
- ---
47
-
48
- ## Per-LLM-Judgment Specification
49
-
50
- Each LLM-judgment action must have:
51
-
52
- | Field | Required |
53
- |-------|----------|
54
- | Why it cannot be automated | ✔ — Clear boundary reason |
55
- | What instructions must remain | ✔ — Exact instruction text |
56
- | How EventBus can assist (not replace) | ✔ — Signal, not decision |
57
-
58
- ---
59
-
60
- ## What NOT to Automate
61
-
62
- These actions are explicitly rejected for automation:
63
-
64
- - Search query composition (requires task understanding)
65
- - Scope map task description (requires intent synthesis)
66
- - Handoff/checkpoint content creation (requires LLM synthesis)
67
- - Broad `check({})` / `test_run({})` without scope (too slow, may not match task)
68
- - Any action where the automation would hide its own failures from the LLM
69
-
70
- ---
71
-
72
- ## Guiding Principles
73
-
74
- 1. **Automate bounds, not decisions** — signals and file IO are safe; composition and synthesis are not
75
- 2. **Every automation must be bounded** — max cost, max output, failure behavior, user-visible trace
76
- 3. **No hidden behavior** — the LLM must know automation ran and see its output
77
- 4. **LLM remains responsible for** — query composition, scope description, checkpoint/handoff synthesis, blast-radius interpretation, and validation choice when scope is unclear
78
- 5. **Token savings require proof** — do not claim reduced instruction text until the removed instruction is proven safe to omit on that platform