akm-cli 0.9.30 → 0.9.31

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 (161) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +10 -10
  3. package/ROADMAP.md +112 -0
  4. package/dist/commands/improve/improve-cli.js +33 -12
  5. package/dist/core/file-lock.js +10 -1
  6. package/dist/llm/client.js +33 -3
  7. package/dist/scripts/akm-migrate-node.js +5 -1
  8. package/dist/scripts/akm-migrate.js +5 -1
  9. package/docs/README.md +42 -41
  10. package/docs/agents/README.md +15 -0
  11. package/docs/agents/agent-install.md +14 -0
  12. package/docs/architecture/README.md +67 -0
  13. package/docs/architecture/adapters.md +272 -0
  14. package/docs/architecture/akm-architecture-decision-history.md +2055 -0
  15. package/docs/architecture/akm-core-principles.md +126 -0
  16. package/docs/architecture/architecture.md +579 -0
  17. package/docs/architecture/comparisons/claude-code-vs-akm-workflows-full.md +550 -0
  18. package/docs/architecture/decisions/0001-no-interpolation-attached-structured-context.md +72 -0
  19. package/docs/architecture/decisions/0002-unit-reuse-and-input-hash-scope.md +142 -0
  20. package/docs/architecture/decisions/0003-child-env-allowlist-and-provenance.md +189 -0
  21. package/docs/architecture/decisions/0004-task-input-contract-and-flag-coercion.md +97 -0
  22. package/docs/architecture/decisions/0005-task-result-vocabulary-and-legacy-read-mapping.md +108 -0
  23. package/docs/architecture/decisions/0006-task-source-version-routing.md +124 -0
  24. package/docs/architecture/decisions/0007-workflow-composition-bounds.md +83 -0
  25. package/docs/architecture/decisions/0008-task-binding-normalization.md +88 -0
  26. package/docs/architecture/decisions/0009-child-run-publication-column-parity.md +80 -0
  27. package/docs/architecture/decisions/0010-driver-protocol-cut.md +36 -0
  28. package/docs/architecture/decisions/0011-engine-run-loop-invariants.md +125 -0
  29. package/docs/architecture/decisions/README.md +62 -0
  30. package/docs/architecture/improvement.md +440 -0
  31. package/docs/architecture/internals/classification.md +154 -0
  32. package/docs/architecture/internals/fresh-host-rebuild-runbook.md +40 -0
  33. package/docs/architecture/internals/functional-contract-patterns.md +340 -0
  34. package/docs/architecture/internals/health-advisories.md +110 -0
  35. package/docs/architecture/internals/improve-workflow.md +713 -0
  36. package/docs/architecture/internals/indexing.md +498 -0
  37. package/docs/architecture/internals/registry-network-boundary.md +57 -0
  38. package/docs/architecture/internals/search.md +249 -0
  39. package/docs/architecture/internals/storage-locations.md +943 -0
  40. package/docs/architecture/persisted-data-compat.md +59 -0
  41. package/docs/architecture/reviews/env-secret-access.md +319 -0
  42. package/docs/architecture/runtime-boundary-design.md +153 -0
  43. package/docs/architecture/specs/0.9.0-close-out-plan.md +361 -0
  44. package/docs/architecture/specs/0.9.0-decisions.md +528 -0
  45. package/docs/architecture/specs/0.9.0-docs-code-drift-register.md +745 -0
  46. package/docs/architecture/specs/0.9.0-open-items-register.md +135 -0
  47. package/docs/architecture/specs/0.9.0-public-api-issue-backlog.md +740 -0
  48. package/docs/architecture/specs/0.9.0-release-surface-review.md +636 -0
  49. package/docs/architecture/specs/agent-command-engine-model-design.md +513 -0
  50. package/docs/architecture/specs/akm-0.9.0-bundle-adapter-spec.md +501 -0
  51. package/docs/architecture/specs/akm-0.9.0-ref-grammar-decision.md +291 -0
  52. package/docs/architecture/specs/akm-format-neutral-bundle-workspace-spec.md +2059 -0
  53. package/docs/architecture/specs/di-seams-plan.md +539 -0
  54. package/docs/architecture/specs/driver-protocol-keep-or-cut.md +275 -0
  55. package/docs/architecture/specs/fact-asset-type.md +142 -0
  56. package/docs/architecture/specs/improve-collapse-churn-detector-design.md +634 -0
  57. package/docs/architecture/specs/okf-support.md +148 -0
  58. package/docs/architecture/specs/ref.md +329 -0
  59. package/docs/architecture/specs/reviews/task-workflow-unification/README.md +72 -0
  60. package/docs/architecture/specs/reviews/task-workflow-unification/findings-consolidated.md +152 -0
  61. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-alternatives.md +352 -0
  62. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-bunqueue.md +300 -0
  63. package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-openworkflow.md +402 -0
  64. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-1.md +758 -0
  65. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-2.md +645 -0
  66. package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-3.md +602 -0
  67. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-adversarial.md +27 -0
  68. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-architecture.md +27 -0
  69. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-coverage.md +74 -0
  70. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-security.md +15 -0
  71. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-adversarial.md +132 -0
  72. package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-verification.md +147 -0
  73. package/docs/architecture/specs/stash-conventions-code-spec.md +275 -0
  74. package/docs/architecture/specs/stash-organization-conventions.md +377 -0
  75. package/docs/architecture/specs/task-workflow-format-unification.md +721 -0
  76. package/docs/architecture/specs/workflow-engine-buy-vs-build.md +231 -0
  77. package/docs/architecture/specs/workflow-format-unification.md +437 -0
  78. package/docs/architecture/testing/manual-testing-checklist.md +3420 -0
  79. package/docs/architecture/testing/okf-v0.2-conformance-runbook.md +924 -0
  80. package/docs/architecture/testing/task-workflow-manual-tests.md +1817 -0
  81. package/docs/architecture/testing/testing-workflow.md +446 -0
  82. package/docs/architecture/workflow-engine.md +274 -0
  83. package/docs/guides/README.md +33 -0
  84. package/docs/guides/author-bundles.md +310 -0
  85. package/docs/guides/author-workflows.md +520 -0
  86. package/docs/guides/bundles.md +321 -0
  87. package/docs/guides/capture-knowledge.md +136 -0
  88. package/docs/guides/claude-code-vs-akm-workflows.md +30 -0
  89. package/docs/guides/concepts.md +93 -0
  90. package/docs/guides/discover-and-load.md +158 -0
  91. package/docs/guides/getting-started.md +240 -0
  92. package/docs/guides/improve-the-library.md +246 -0
  93. package/docs/guides/knowledge-management.md +18 -0
  94. package/docs/guides/recipes/headless-install.md +97 -0
  95. package/docs/guides/recipes/website-source.md +28 -0
  96. package/docs/guides/run-workflows.md +279 -0
  97. package/docs/guides/scheduling.md +123 -0
  98. package/docs/guides/use-with-any-agent.md +129 -0
  99. package/docs/guides/wikis.md +81 -0
  100. package/docs/maintainers/README.md +19 -0
  101. package/docs/maintainers/curate-workmap.md +336 -0
  102. package/docs/maintainers/eval.md +3 -0
  103. package/docs/maintainers/local-development.md +108 -0
  104. package/docs/maintainers/release-checklist.md +103 -0
  105. package/docs/migration/README.md +2 -2
  106. package/docs/migration/release-notes/0.0.13.md +1 -1
  107. package/docs/migration/release-notes/0.1.0.md +1 -1
  108. package/docs/migration/release-notes/0.2.0.md +1 -1
  109. package/docs/migration/release-notes/0.3.0.md +1 -1
  110. package/docs/migration/release-notes/0.5.0.md +1 -1
  111. package/docs/migration/release-notes/0.6.0.md +1 -1
  112. package/docs/migration/release-notes/0.7.0.md +1 -1
  113. package/docs/migration/release-notes/0.7.3.md +2 -2
  114. package/docs/migration/release-notes/0.7.4.md +1 -1
  115. package/docs/migration/release-notes/0.7.5.md +1 -1
  116. package/docs/migration/release-notes/0.8.0.md +1 -1
  117. package/docs/migration/release-notes/0.9.0.md +1 -1
  118. package/docs/migration/release-notes/0.9.14.md +1 -1
  119. package/docs/migration/release-notes/0.9.15.md +1 -1
  120. package/docs/migration/release-notes/0.9.16.md +1 -1
  121. package/docs/migration/release-notes/0.9.17.md +1 -1
  122. package/docs/migration/release-notes/0.9.19.md +1 -1
  123. package/docs/migration/release-notes/0.9.2.md +1 -1
  124. package/docs/migration/release-notes/README.md +27 -31
  125. package/docs/migration/v0.5-to-v0.6.md +759 -0
  126. package/docs/migration/v0.8-to-v0.9.md +1 -1
  127. package/docs/plans/0.9.2-agent-command-workflow-plan.md +423 -0
  128. package/docs/posts/README.md +30 -0
  129. package/docs/posts/akm-command-tour.md +495 -0
  130. package/docs/posts/akm-logo-sized.webp +0 -0
  131. package/docs/posts/belief-aware-memory-12.md +139 -0
  132. package/docs/posts/config-v2-lessons-16.md +191 -0
  133. package/docs/posts/improve-loop-autonomous-10.md +225 -0
  134. package/docs/posts/improve-pipeline-debugging-0803.md +179 -0
  135. package/docs/posts/intro-part-01.md +76 -0
  136. package/docs/posts/intro-part-02.md +221 -0
  137. package/docs/posts/intro-part-03.md +190 -0
  138. package/docs/posts/intro-part-04.md +221 -0
  139. package/docs/posts/llm-mode-reflect-13.md +166 -0
  140. package/docs/posts/openpalm-built-on-akm.md +86 -0
  141. package/docs/posts/progressive-disclosure-06.md +129 -0
  142. package/docs/posts/proposal-safety-net-15.md +112 -0
  143. package/docs/posts/release-0.5.0.md +247 -0
  144. package/docs/posts/release-0.6.0.md +117 -0
  145. package/docs/posts/release-0.7.0.md +159 -0
  146. package/docs/posts/release-0.8.0.md +332 -0
  147. package/docs/posts/scattered-skills-05.md +100 -0
  148. package/docs/posts/task-assets-persistent-workflows-11.md +222 -0
  149. package/docs/posts/team-skills-07.md +198 -0
  150. package/docs/posts/wiki-agent-knowledge-08.md +223 -0
  151. package/docs/posts/workflows-vaults-09.md +321 -0
  152. package/docs/product-surface.md +54 -0
  153. package/docs/reference/README.md +1 -2
  154. package/docs/reference/asset-types.md +168 -0
  155. package/docs/reference/cli.md +5 -6
  156. package/docs/reference/env-and-secrets.md +126 -0
  157. package/docs/reference/memory.md +124 -0
  158. package/docs/reference/refs.md +156 -0
  159. package/docs/reference/registry.md +489 -0
  160. package/docs/reference/website-sources.md +141 -0
  161. package/package.json +12 -15
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.2.0
1
+ # akm v0.2.0 migration notes
2
2
 
3
3
  - Asset refs are user-facing `type:name` values; do not rely on URI-style refs.
4
4
  - The old fixed asset-type union was replaced by an extensible asset type system.
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.3.0
1
+ # akm v0.3.0 migration notes
2
2
 
3
3
  - The old `stash` and `kit` command groups were folded into the top-level CLI.
4
4
  - Use `akm add`, `akm list`, and `akm remove` instead of the older split command surfaces.
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.5.0
1
+ # akm v0.5.0 migration notes
2
2
 
3
3
  - New top-level surfaces: `akm wiki …`, `akm workflow …`, `akm vault …`, and `akm save`.
4
4
  - If you tried the unreleased single-wiki LLM prototype, move to the new `akm wiki …` workflow.
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.6.0
1
+ # akm v0.6.0 migration notes
2
2
 
3
3
  This release ships the v1 architecture refactor on top of the earlier 0.6
4
4
  terminology cut (`kit` → `stash` in the registry wire format). The CLI
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.7.0
1
+ # akm v0.7.0 migration notes
2
2
 
3
3
  0.7.0 is the last pre-1.0 ship in the v1 cycle. It introduces the
4
4
  proposal queue, agent reflection commands, the `lesson` asset type, the
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.7.3
1
+ # akm v0.7.3 migration notes
2
2
 
3
3
  0.7.3 includes stability improvements, security hardening, and UX refinements. Key changes include:
4
4
 
@@ -13,4 +13,4 @@ Migration notes for akm v0.7.3
13
13
  - **`.stash.json` no longer drives incremental stale detection** — editing `.stash.json` alone no longer forces directories to rescan during incremental indexing.
14
14
  - **One-shot URL ingest for `akm import` and `akm wiki stash`** — both commands now accept a single HTTP/HTTPS URL in addition to file paths and stdin. `akm import <url>` fetches the exact page, converts it to markdown, and writes it into `knowledge/` using a URL-path-derived default name. `akm wiki stash <wiki> <url>` fetches the exact page, converts it to markdown, and writes it into `wikis/<wiki>/raw/`. Neither command registers a persistent website source or crawls linked pages.
15
15
 
16
- For stash authors on the 0.7.x pre-release line: `.stash.json` remains supported for compatibility in this release, but it is deprecated and will be removed in v0.8.0. That timeline is intentional: during this aggressive pre-release phase-out window, compatibility shims do not stay around until 1.0 unless they still earn their cost. Prefer frontmatter for markdown assets and structured code comments for scripts, and migrate any remaining `.stash.json` metadata before taking the 0.8 upgrade.
16
+ For stash authors on the 0.7.x pre-release line: `.stash.json` remains supported for compatibility in this release, but it is deprecated and will be removed in v0.8.0. That timeline is intentional: during this aggressive pre-release phase-out window, compatibility shims do not stay around until 1.0 unless they still earn their cost. Prefer frontmatter for markdown assets and structured code comments for scripts, and migrate any remaining `.stash.json` metadata before taking the 0.8 upgrade.
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.7.4
1
+ # akm v0.7.4 migration notes
2
2
 
3
3
  This is a patch release that fixes the publish process. No functional changes from v0.7.3.
4
4
 
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.7.5
1
+ # akm v0.7.5 migration notes
2
2
 
3
3
  0.7.5 is a patch release that rolls up all changes shipped on `main` after v0.7.4.
4
4
 
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.8.0
1
+ # akm v0.8.0 migration notes
2
2
 
3
3
  This release combines the 0.8.0 CLI/storage break with the final improve-owned
4
4
  maintenance migration work that landed before release validation closed.
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.0
1
+ # akm v0.9.0 migration notes
2
2
 
3
3
  These notes apply to the 0.9.0 release candidates and final release. If you
4
4
  were already running a 0.9.0 beta, align scripts, prompts, and stash layout
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.14
1
+ # akm v0.9.14 migration notes
2
2
 
3
3
  The derived `index.db` generation changes from v22 to v23 to support lexical
4
4
  Markdown fragments. On the first normal read after upgrade, akm detects that
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.15
1
+ # akm v0.9.15 migration notes
2
2
 
3
3
  `RUN_LEASE_HELD` (a workflow run-lease refusal) and the new
4
4
  `STATE_DB_CONTENDED` (state.db write contention) now exit 75 (`EX_TEMPFAIL`)
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.16
1
+ # akm v0.9.16 migration notes
2
2
 
3
3
  Scheduled execution is now authorized by host-local config and bound to the
4
4
  specific source installed under a bundle id. Existing
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.17
1
+ # akm v0.9.17 migration notes
2
2
 
3
3
  Run this after upgrading:
4
4
 
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.19
1
+ # akm v0.9.19 migration notes
2
2
 
3
3
  Nothing has to run after upgrading from 0.9.18: 0.9.19 adds no config keys,
4
4
  changes no index layout, adds no state.db migration and leaves scheduler rows
@@ -1,4 +1,4 @@
1
- Migration notes for akm v0.9.2
1
+ # akm v0.9.2 migration notes
2
2
 
3
3
  Exact-prefix additive `state.db` upgrades remain automatic. The released
4
4
  historical migration 018 is classified separately because it removes retired
@@ -7,40 +7,36 @@ live one level up in `docs/migration/`.
7
7
 
8
8
  ## Available notes
9
9
 
10
- - [0.9.19](0.9.19.md) — `akm improve` planning only the bundle it writes to
11
- (a scheduled run needs one `--bundle` run per other bundle),
12
- `akm proposal reopen` and the retire-proposal diff, consolidate's coverage
13
- check and content-driven hold on decided promotions, distill's grounding
14
- check, and what a downgrade to 0.9.18 undoes
15
- - [0.9.17](0.9.17.md) — consolidate's retire proposals and continuity check,
16
- promotions archiving their source memory, declared links replacing the LLM
17
- entity graph, index layout 26, scheduler rows carrying their own context,
18
- and `akm improve` scoped to what retrieval actually returns
19
- - [0.9.16](0.9.16.md) — source-bound scheduler grants, local execution
20
- authority, config inheritance's portable-data boundary, and split unsafe
21
- overrides
22
- - [0.9.15](0.9.15.md) — exit-code 75 for lease/state.db contention,
23
- `--require-engines` scheduled task templates, `--no-probe` cli-version
24
- skip, thinking-control wire forms, embedding re-embed safety and
25
- cross-rebuild vector salvage, launcher signal forwarding, a default
26
- per-document embedding cap, and `extends` config inheritance
27
- - [0.9.14](0.9.14.md) — index v22-to-v23 derived-cache rebuild, lexical
28
- fragments, and collapse-detector canary re-minting
29
- - [0.9.2](0.9.2.md) — task source v4 migration, workflow source IR v1 and
30
- durable-v4-family `irVersion: 5`, command diagnostics, and strategy judgment
31
- migration
10
+ - [0.9.19](0.9.19.md) — Bundle-scoped improve planning, proposal reopen, and consolidate/distill guardrails.
11
+ - [0.9.17](0.9.17.md) — Retire proposals, declared links replacing the LLM entity graph, and scoped improve planning.
12
+ - [0.9.16](0.9.16.md) — Source-bound scheduler grants, local execution authority, and split unsafe overrides.
13
+ - [0.9.15](0.9.15.md) — Lease/state.db contention exit code 75, scheduled-task engine requirements, and safer launchers.
14
+ - [0.9.14](0.9.14.md) — Index v22→v23 derived-cache rebuild, lexical fragments, and collapse-detector canaries.
15
+ - [0.9.2](0.9.2.md) — Task source v4 migration, workflow source IR v1, and durable-v4-family `irVersion: 5`.
16
+ - [0.9.0](0.9.0.md) — 0.9 release-candidate and final-release migration notes.
17
+ - [0.8.0](0.8.0.md) — CLI/storage break, improve-owned graph pipeline, config v2, and task assets.
18
+ - [0.7.5](0.7.5.md) — Patch rollup for everything shipped on `main` after v0.7.4.
19
+ - [0.7.4](0.7.4.md) — Publish-process-only patch release with no functional change from 0.7.3.
20
+ - [0.7.3](0.7.3.md) — Stability improvements, security hardening, and UX refinements.
21
+ - [0.7.0](0.7.0.md) — Last v1-cycle pre-1.0 release with the proposal queue and improve-loop groundwork.
22
+ - [0.6.0](0.6.0.md) — v1 architecture refactor, stash rename cleanup, and sandbox/setup guidance.
23
+ - [0.5.0](0.5.0.md) — Wiki, workflow, vault, and save command additions before the 0.6 architecture cut.
24
+ - [0.3.0](0.3.0.md) — Fold the old `stash` and `kit` command groups into the top-level CLI.
25
+ - [0.2.0](0.2.0.md) — User-facing `type:name` refs and early bundle conventions.
26
+ - [0.1.0](0.1.0.md) — Rebrand from Agent-i-Kit to akm.
27
+ - [0.0.13](0.0.13.md) — Initial public release.
32
28
 
33
29
  ## Adding notes for a new release
34
30
 
35
31
  1. Create `<version>.md` in this directory (e.g. `0.7.0.md`).
36
- 2. Write plain text — the content is printed verbatim. Start the body
37
- with a line like `Migration notes for akm v0.7.0`, then list the
38
- automatic migrations, manual actions, publisher changes, etc.
39
- 3. The file ships with the published package via `package.json` →
40
- `files[]` and is resolved at runtime from either `src/` or `dist/`,
41
- so no code change is required.
32
+ 2. Start the file with `# akm v<version> migration notes`, then list the
33
+ automatic migrations, manual actions, publisher changes, and any longform
34
+ guide links the terminal user may need.
35
+ 3. The file ships with the published package via `package.json` → `files[]`
36
+ and is resolved at runtime from either `src/` or `dist/`, so no code
37
+ change is required.
42
38
  4. Link to the longform guide in the last paragraph if one exists.
43
39
 
44
- Keep each note self-contained: it should tell a user everything they
45
- need to upgrade without requiring them to open a browser (the longform
46
- guide link is the last resort, not the first).
40
+ Keep each note self-contained: it should tell a user everything they need to
41
+ upgrade without requiring them to open a browser (the longform guide link is
42
+ the last resort, not the first).