akm-cli 0.7.5 → 0.8.0-rc.3

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 (155) hide show
  1. package/.github/CHANGELOG.md +1 -1
  2. package/dist/cli/parse-args.js +86 -0
  3. package/dist/cli.js +1023 -521
  4. package/dist/commands/agent-dispatch.js +107 -0
  5. package/dist/commands/agent-support.js +62 -0
  6. package/dist/commands/config-cli.js +68 -84
  7. package/dist/commands/consolidate.js +812 -0
  8. package/dist/commands/distill-promotion-policy.js +658 -0
  9. package/dist/commands/distill.js +218 -43
  10. package/dist/commands/eval-cases.js +40 -0
  11. package/dist/commands/events.js +2 -23
  12. package/dist/commands/graph.js +222 -0
  13. package/dist/commands/health.js +376 -0
  14. package/dist/commands/help/help-accept.md +9 -0
  15. package/dist/commands/help/help-improve.md +53 -0
  16. package/dist/commands/help/help-proposals.md +15 -0
  17. package/dist/commands/help/help-propose.md +17 -0
  18. package/dist/commands/help/help-reject.md +8 -0
  19. package/dist/commands/history.js +3 -30
  20. package/dist/commands/improve.js +1161 -0
  21. package/dist/commands/info.js +2 -2
  22. package/dist/commands/init.js +2 -2
  23. package/dist/commands/install-audit.js +5 -1
  24. package/dist/commands/installed-stashes.js +118 -138
  25. package/dist/commands/knowledge.js +133 -0
  26. package/dist/commands/lint/agent-linter.js +46 -0
  27. package/dist/commands/lint/base-linter.js +291 -0
  28. package/dist/commands/lint/command-linter.js +46 -0
  29. package/dist/commands/lint/default-linter.js +13 -0
  30. package/dist/commands/lint/index.js +145 -0
  31. package/dist/commands/lint/knowledge-linter.js +13 -0
  32. package/dist/commands/lint/memory-linter.js +58 -0
  33. package/dist/commands/lint/registry.js +33 -0
  34. package/dist/commands/lint/skill-linter.js +42 -0
  35. package/dist/commands/lint/task-linter.js +47 -0
  36. package/dist/commands/lint/types.js +1 -0
  37. package/dist/commands/lint/vault-key-rules.js +67 -0
  38. package/dist/commands/lint/workflow-linter.js +53 -0
  39. package/dist/commands/lint.js +1 -0
  40. package/dist/commands/proposal.js +8 -7
  41. package/dist/commands/propose.js +71 -28
  42. package/dist/commands/reflect.js +135 -35
  43. package/dist/commands/registry-search.js +2 -2
  44. package/dist/commands/remember.js +54 -0
  45. package/dist/commands/schema-repair.js +130 -0
  46. package/dist/commands/search.js +21 -5
  47. package/dist/commands/show.js +125 -20
  48. package/dist/commands/source-add.js +10 -10
  49. package/dist/commands/source-manage.js +11 -19
  50. package/dist/commands/tasks.js +385 -0
  51. package/dist/commands/url-checker.js +39 -0
  52. package/dist/commands/vault.js +168 -77
  53. package/dist/core/action-contributors.js +25 -0
  54. package/dist/core/asset-ref.js +4 -0
  55. package/dist/core/asset-registry.js +4 -16
  56. package/dist/core/asset-spec.js +10 -0
  57. package/dist/core/common.js +100 -0
  58. package/dist/core/concurrent.js +22 -0
  59. package/dist/core/config.js +233 -133
  60. package/dist/core/events.js +73 -126
  61. package/dist/core/frontmatter.js +0 -6
  62. package/dist/core/markdown.js +17 -0
  63. package/dist/core/memory-improve.js +678 -0
  64. package/dist/core/parse.js +155 -0
  65. package/dist/core/paths.js +101 -3
  66. package/dist/core/proposal-validators.js +61 -0
  67. package/dist/core/proposals.js +49 -38
  68. package/dist/core/state-db.js +731 -0
  69. package/dist/core/time.js +51 -0
  70. package/dist/core/warn.js +59 -1
  71. package/dist/indexer/db-search.js +52 -238
  72. package/dist/indexer/db.js +403 -54
  73. package/dist/indexer/ensure-index.js +61 -0
  74. package/dist/indexer/graph-boost.js +247 -94
  75. package/dist/indexer/graph-db.js +201 -0
  76. package/dist/indexer/graph-dedup.js +99 -0
  77. package/dist/indexer/graph-extraction.js +409 -76
  78. package/dist/indexer/index-context.js +10 -0
  79. package/dist/indexer/indexer.js +456 -290
  80. package/dist/indexer/llm-cache.js +47 -0
  81. package/dist/indexer/matchers.js +124 -160
  82. package/dist/indexer/memory-inference.js +63 -29
  83. package/dist/indexer/metadata-contributors.js +26 -0
  84. package/dist/indexer/metadata.js +196 -197
  85. package/dist/indexer/path-resolver.js +89 -0
  86. package/dist/indexer/ranking-contributors.js +204 -0
  87. package/dist/indexer/ranking.js +74 -0
  88. package/dist/indexer/search-hit-enrichers.js +22 -0
  89. package/dist/indexer/search-source.js +24 -9
  90. package/dist/indexer/semantic-status.js +2 -16
  91. package/dist/indexer/walker.js +25 -0
  92. package/dist/integrations/agent/builders.js +109 -0
  93. package/dist/integrations/agent/config.js +203 -3
  94. package/dist/integrations/agent/index.js +5 -2
  95. package/dist/integrations/agent/model-aliases.js +63 -0
  96. package/dist/integrations/agent/profiles.js +67 -5
  97. package/dist/integrations/agent/prompts.js +77 -72
  98. package/dist/integrations/agent/sdk-runner.js +120 -0
  99. package/dist/integrations/agent/spawn.js +93 -22
  100. package/dist/integrations/lockfile.js +10 -18
  101. package/dist/integrations/session-logs/index.js +65 -0
  102. package/dist/integrations/session-logs/providers/claude-code.js +56 -0
  103. package/dist/integrations/session-logs/providers/opencode.js +52 -0
  104. package/dist/integrations/session-logs/types.js +1 -0
  105. package/dist/llm/call-ai.js +74 -0
  106. package/dist/llm/client.js +61 -122
  107. package/dist/llm/feature-gate.js +27 -16
  108. package/dist/llm/graph-extract.js +297 -62
  109. package/dist/llm/memory-infer.js +49 -71
  110. package/dist/llm/metadata-enhance.js +39 -22
  111. package/dist/llm/prompts/graph-extract-user-prompt.md +12 -0
  112. package/dist/output/cli-hints-full.md +277 -0
  113. package/dist/output/cli-hints-short.md +65 -0
  114. package/dist/output/cli-hints.js +2 -318
  115. package/dist/output/renderers.js +220 -256
  116. package/dist/output/shapes.js +101 -93
  117. package/dist/output/text.js +256 -17
  118. package/dist/registry/providers/skills-sh.js +61 -49
  119. package/dist/registry/providers/static-index.js +44 -48
  120. package/dist/registry/resolve.js +8 -16
  121. package/dist/setup/setup.js +510 -11
  122. package/dist/sources/provider-factory.js +2 -1
  123. package/dist/sources/providers/filesystem.js +16 -23
  124. package/dist/sources/providers/git.js +4 -5
  125. package/dist/sources/providers/website.js +15 -22
  126. package/dist/sources/website-ingest.js +4 -0
  127. package/dist/tasks/backends/cron.js +200 -0
  128. package/dist/tasks/backends/exec-utils.js +25 -0
  129. package/dist/tasks/backends/index.js +32 -0
  130. package/dist/tasks/backends/launchd-template.xml +19 -0
  131. package/dist/tasks/backends/launchd.js +184 -0
  132. package/dist/tasks/backends/schtasks-template.xml +29 -0
  133. package/dist/tasks/backends/schtasks.js +212 -0
  134. package/dist/tasks/parser.js +198 -0
  135. package/dist/tasks/resolveAkmBin.js +84 -0
  136. package/dist/tasks/runner.js +432 -0
  137. package/dist/tasks/schedule.js +208 -0
  138. package/dist/tasks/schema.js +13 -0
  139. package/dist/tasks/validator.js +59 -0
  140. package/dist/wiki/index-template.md +12 -0
  141. package/dist/wiki/ingest-workflow-template.md +54 -0
  142. package/dist/wiki/log-template.md +8 -0
  143. package/dist/wiki/schema-template.md +61 -0
  144. package/dist/wiki/wiki-templates.js +12 -0
  145. package/dist/wiki/wiki.js +10 -61
  146. package/dist/workflows/authoring.js +5 -25
  147. package/dist/workflows/renderer.js +8 -3
  148. package/dist/workflows/runs.js +59 -91
  149. package/dist/workflows/validator.js +1 -1
  150. package/dist/workflows/workflow-template.md +24 -0
  151. package/docs/README.md +5 -2
  152. package/docs/migration/release-notes/0.7.0.md +1 -1
  153. package/docs/migration/release-notes/0.8.0.md +43 -0
  154. package/package.json +3 -2
  155. package/dist/templates/wiki-templates.js +0 -100
@@ -7,322 +7,6 @@
7
7
  * `EMBEDDED_HINTS` (default reference, ~40 lines) and
8
8
  * `EMBEDDED_HINTS_FULL` (`--detail full`, ~250 lines).
9
9
  */
10
- const EMBEDDED_HINTS = `# akm CLI
11
-
12
- You have access to a searchable library of scripts, skills, commands, agents, knowledge documents, workflows, wikis, and memories via \`akm\`. Search your sources first before writing something from scratch.
13
-
14
- ## Agent Task Loop
15
-
16
- For any task, follow this loop:
17
- 1. \`akm curate "<task>"\` — find the best matching asset
18
- 2. \`akm show <ref>\` — read the schema (field names and structure)
19
- 3. Edit the workspace file using schema field names + task-specific values from your README
20
- 4. \`akm feedback <ref> --positive\` — record success
21
-
22
- For workflow tasks:
23
- 1. \`akm workflow next workflow:<name>\` — get current step instructions
24
- 2. Do the step work in your workspace
25
- 3. \`akm workflow complete <run-id> --step <step-id>\` — mark done, get next step
26
-
27
- Workflow runs are scoped to your current project/worktree/directory. Ref-based
28
- commands like \`workflow next workflow:<name>\`, \`workflow status workflow:<name>\`,
29
- and \`workflow list\` operate within the current scope only.
30
-
31
- ## Quick Reference
32
-
33
- \`\`\`sh
34
- akm search "<query>" # Search all sources
35
- akm curate "<task>" # Curate the best matches for a task
36
- akm search "<query>" --type workflow # Filter to workflow assets
37
- akm search "<query>" --source both # Also search registries
38
- akm show <ref> # View asset details
39
- akm workflow next <ref> # Start or resume a workflow
40
- akm remember "Deployment needs VPN access" # Record a memory in your stash
41
- akm import ./notes/release-checklist.md # Import a knowledge doc into your stash
42
- akm wiki list # List available wikis
43
- akm wiki ingest <name> # Print the ingest workflow for a wiki
44
- akm feedback <ref> --positive|--negative # Record whether an asset helped
45
- akm add <ref> # Add a source (npm, GitHub, git, local dir)
46
- akm clone <ref> # Copy an asset to the working stash (optional --dest arg to clone to specific location)
47
- akm save # Commit (and push if writable remote) changes in the primary stash
48
- akm registry search "<query>" # Search all registries
49
- \`\`\`
50
-
51
- ## Primary Asset Types
52
-
53
- | Type | What \`akm show\` returns |
54
- | --- | --- |
55
- | script | A \`run\` command you can execute directly |
56
- | skill | Instructions to follow (read the full content) |
57
- | command | A prompt template with placeholders to fill in |
58
- | agent | A system prompt with model and tool hints |
59
- | knowledge | A reference doc (use \`toc\` or \`section "..."\` to navigate) |
60
- | workflow | Parsed steps plus workflow-specific execution commands |
61
- | memory | Recalled context (read the content for background information) |
62
- | vault | Key names only; use \`akm vault path\` or \`akm vault run\` to use values safely |
63
- | wiki | A page in a multi-wiki knowledge base. For any wiki task, start with \`akm wiki list\`, then \`akm wiki ingest <name>\` for the workflow. Run \`akm wiki -h\` for the full surface. |
64
-
65
- When an asset meaningfully helps or fails, record that with \`akm feedback\` so
66
- future search ranking can learn from real usage.
67
-
68
- Run \`akm -h\` for the full command reference.
69
- `;
70
- const EMBEDDED_HINTS_FULL = `# akm CLI — Full Reference
71
-
72
- You have access to a searchable library of scripts, skills, commands, agents, knowledge documents, workflows, wikis, and memories via \`akm\`. Search your sources first before writing something from scratch.
73
-
74
- ## Search
75
-
76
- \`\`\`sh
77
- akm search "<query>" # Search all sources
78
- akm curate "<task>" # Curate the best matches for a task
79
- akm search "<query>" --type workflow # Filter by asset type
80
- akm search "<query>" --source both # Also search registries
81
- akm search "<query>" --source registry # Search registries only
82
- akm search "<query>" --limit 10 # Limit results
83
- akm search "<query>" --detail full # Include scores, paths, timing
84
- \`\`\`
85
-
86
- | Flag | Values | Default |
87
- | --- | --- | --- |
88
- | \`--type\` | \`skill\`, \`command\`, \`agent\`, \`knowledge\`, \`workflow\`, \`script\`, \`memory\`, \`vault\`, \`wiki\`, \`any\` | \`any\` |
89
- | \`--source\` | \`stash\`, \`registry\`, \`both\` | \`stash\` |
90
- | \`--limit\` | number | \`20\` |
91
- | \`--format\` | \`json\`, \`jsonl\`, \`text\`, \`yaml\` | \`json\` |
92
- | \`--detail\` | \`brief\`, \`normal\`, \`full\`, \`summary\`, \`agent\` | \`brief\` |
93
- | \`--for-agent\` | boolean (deprecated — use \`--detail agent\`) | \`false\` |
94
-
95
- ## Curate
96
-
97
- Combine search + follow-up hints into a dense summary for a task or prompt.
98
-
99
- \`\`\`sh
100
- akm curate "plan a release" # Pick top matches across asset types
101
- akm curate "deploy a Bun app" --limit 3 # Keep the summary shorter
102
- akm curate "review architecture" --type workflow # Restrict to one asset type
103
- \`\`\`
104
-
105
- ## Show
106
-
107
- Display an asset by ref. Knowledge assets support view modes as positional arguments.
108
-
109
- \`\`\`sh
110
- akm show script:deploy.sh # Show script (returns run command)
111
- akm show skill:code-review # Show skill (returns full content)
112
- akm show command:release # Show command (returns template)
113
- akm show agent:architect # Show agent (returns system prompt)
114
- akm show workflow:ship-release # Show parsed workflow steps
115
- akm show knowledge:guide toc # Table of contents
116
- akm show knowledge:guide section "Auth" # Specific section
117
- akm show knowledge:guide lines 10 30 # Line range
118
- akm show knowledge:my-doc # Show content (local or remote)
119
- \`\`\`
120
-
121
- | Type | Key fields returned |
122
- | --- | --- |
123
- | script | \`run\`, \`setup\`, \`cwd\` |
124
- | skill | \`content\` (full SKILL.md) |
125
- | command | \`template\`, \`description\`, \`parameters\` |
126
- | agent | \`prompt\`, \`description\`, \`modelHint\`, \`toolPolicy\` |
127
- | knowledge | \`content\` (with view modes: \`full\`, \`toc\`, \`frontmatter\`, \`section\`, \`lines\`) |
128
- | workflow | \`workflowTitle\`, \`workflowParameters\`, \`steps\` |
129
- | memory | \`content\` (recalled context) |
130
- | vault | \`keys\`, \`comments\` |
131
- | wiki | \`content\` (same view modes as knowledge). For any wiki task, run \`akm wiki list\` then \`akm wiki ingest <name>\` for the workflow. |
132
-
133
- ## Capture Knowledge While You Work
134
-
135
- \`\`\`sh
136
- akm remember "Deployment needs VPN access" # Record a memory in your stash
137
- akm remember --name release-retro < notes.md # Save multiline memory from stdin
138
- akm import ./docs/auth-flow.md # Import a file as knowledge
139
- akm import - --name scratch-notes < notes.md # Import stdin as a knowledge doc
140
- akm import https://example.com/docs/auth # Fetch one URL and import it as knowledge
141
- akm workflow create ship-release # Create a workflow asset in the stash
142
- akm workflow validate workflows/foo.md # Validate a workflow file or ref; lists every error
143
- akm workflow next workflow:ship-release # Start or resume the next workflow step
144
- akm feedback skill:code-review --positive # Record that an asset helped
145
- akm feedback agent:reviewer --negative # Record that an asset missed the mark
146
- akm feedback memory:deployment-notes --positive # Works for memories too
147
- akm feedback vault:prod --positive # Records vault feedback without surfacing values
148
- \`\`\`
149
-
150
- Use \`akm feedback\` whenever an asset materially helps or fails so future search
151
- ranking can learn from actual usage.
152
-
153
- ## Wikis
154
-
155
- Multi-wiki knowledge bases (Karpathy-style). A stash-owned wiki lives at
156
- \`<stashDir>/wikis/<name>/\`; external directories or repos can also be registered
157
- as first-class wikis. akm owns lifecycle + raw-slug + lint + index regeneration
158
- for stash-owned wikis; page edits use your native Read/Write/Edit tools.
159
-
160
- \`\`\`sh
161
- akm wiki list # List wikis (name, pages, raws, last-modified)
162
- akm wiki create research # Scaffold a new wiki
163
- akm wiki register ics-docs ~/code/ics-documentation # Register an external wiki
164
- akm wiki show research # Path, description, counts, last 3 log entries
165
- akm wiki pages research # Page refs + descriptions (excludes schema/index/log; includes raw/)
166
- akm wiki search research "attention" # Scoped search (equivalent to --type wiki --wiki research)
167
- akm wiki stash research ./paper.md # Copy source into raw/<slug>.md (never overwrites)
168
- akm wiki stash research https://example.com/paper # Fetch one URL into raw/<slug>.md
169
- echo "..." | akm wiki stash research - # stdin form
170
- akm wiki lint research # Structural checks: orphans, broken xrefs, uncited raws, stale index
171
- akm wiki ingest research # Print the ingest workflow for this wiki (no action)
172
- akm wiki remove research --force # Delete pages/schema/index/log; preserves raw/
173
- akm wiki remove research --force --with-sources # Full nuke, including raw/
174
- \`\`\`
175
-
176
- **For any wiki task, start with \`akm wiki list\`, then \`akm wiki ingest <name>\`
177
- to get the step-by-step workflow.** Wiki pages are also addressable as
178
- \`wiki:<name>/<page-path>\` and show up in stash-wide \`akm search\` as
179
- \`type: wiki\`. Files under \`raw/\` and the wiki root infrastructure files
180
- \`schema.md\`, \`index.md\`, and \`log.md\` are not indexed and do not appear in
181
- search results. No \`--llm\` anywhere — akm never reasons about page content.
182
-
183
- ## Vaults
184
-
185
- Encrypted-at-rest key/value stores for secrets. Each vault is a \`.env\`-format
186
- file at \`<stashDir>/vaults/<name>.env\`.
187
-
188
- \`\`\`sh
189
- akm vault create prod # Create a new vault
190
- akm vault set prod DB_URL postgres://... # Set a key (or KEY=VALUE combined form)
191
- akm vault set prod DB_URL=postgres://... # Combined KEY=VALUE form also works
192
- akm vault unset prod DB_URL # Remove a key
193
- akm vault list # List all vaults across all stashes with key names
194
- akm vault path vault:prod # Print the vault file path for shell loading
195
- akm vault run vault:prod -- env # Run one command with all vault vars injected
196
- akm vault run vault:prod/DB_URL -- printenv DB_URL # Inject one key for one command
197
- \`\`\`
198
-
199
- ## Workflows
200
-
201
- Step-based workflows stored as \`<stashDir>/workflows/<name>.md\`.
202
-
203
- Ref-based workflow commands are scoped to the current project/worktree/directory,
204
- so one active run does not block unrelated directories from starting the same
205
- workflow. Direct run-id commands still target the exact run.
206
-
207
- \`\`\`sh
208
- akm workflow template # Print a starter workflow template
209
- akm workflow create ship-release # Scaffold a new workflow asset
210
- akm workflow start workflow:ship-release # Start a new run in the current scope
211
- akm workflow next workflow:ship-release # Advance to the next step (or auto-start) in the current scope
212
- akm workflow complete <run-id> # Mark a step complete and advance
213
- akm workflow status <run-id> # Show the exact run by id
214
- akm workflow resume <run-id> # Resume a blocked or failed run
215
- akm workflow list # List workflow runs in the current scope
216
- \`\`\`
217
-
218
- ## Clone
219
-
220
- Copy an asset to the working stash or a custom destination for editing.
221
-
222
- \`\`\`sh
223
- akm clone <ref> # Clone to working stash
224
- akm clone <ref> --name new-name # Rename on clone
225
- akm clone <ref> --dest ./project/.claude # Clone to custom location
226
- akm clone <ref> --force # Overwrite existing
227
- akm clone "npm:@scope/pkg//script:deploy.sh" # Clone from remote package
228
- \`\`\`
229
-
230
- When \`--dest\` is provided, \`akm init\` is not required first.
231
-
232
- ## Save
233
-
234
- Commit local changes in a git-backed stash. Behaviour adapts automatically:
235
-
236
- - **Not a git repo** — no-op (silent skip)
237
- - **Git repo, no remote** — stage and commit only (the default stash always falls here)
238
- - **Git repo, has remote, not writable** — stage and commit only
239
- - **Git repo, has remote, \`writable: true\`** — stage, commit, and push
240
-
241
- \`\`\`sh
242
- akm save # Save primary stash (timestamp message)
243
- akm save -m "Add deploy skill" # Save with explicit message
244
- akm save my-skills # Save a named writable git stash
245
- akm save my-skills -m "Update patterns" # Save named stash with message
246
- \`\`\`
247
-
248
- The \`--writable\` flag on \`akm add\` opts a remote git stash into push-on-save:
249
-
250
- \`\`\`sh
251
- akm add git@github.com:org/skills.git --provider git --name my-skills --writable
252
- \`\`\`
253
-
254
- ## Add & Manage Sources
255
-
256
- \`\`\`sh
257
- akm add <ref> # Add a source
258
- akm add @scope/stash # From npm (managed)
259
- akm add owner/repo # From GitHub (managed)
260
- akm add ./path/to/local/stash # Local directory
261
- akm add git@github.com:org/repo.git --provider git --name my-skills --writable
262
- akm enable skills.sh # Enable the skills.sh registry
263
- akm disable skills.sh # Disable the skills.sh registry
264
- akm list # List all sources
265
- akm list --kind managed # List managed sources only
266
- akm remove <target> # Remove by id, ref, path, or name
267
- akm update --all # Update all managed sources
268
- akm update <target> --force # Force re-download
269
- \`\`\`
270
-
271
- ## Registries
272
-
273
- \`\`\`sh
274
- akm registry list # List configured registries
275
- akm registry add <url> # Add a registry
276
- akm registry add <url> --name my-team # Add with label
277
- akm registry add <url> --provider skills-sh # Specify provider type
278
- akm registry remove <url-or-name> # Remove a registry
279
- akm registry search "<query>" # Search all registries
280
- akm registry search "<query>" --assets # Include asset-level results
281
- akm registry build-index # Build the default cache-backed index.json
282
- akm registry build-index --out dist/index.json # Build to a custom path
283
- \`\`\`
284
-
285
- ## Configuration
286
-
287
- \`\`\`sh
288
- akm config list # Show current config
289
- akm config get <key> # Read a value
290
- akm config set <key> <value> # Set a value
291
- akm config unset <key> # Remove a key
292
- akm config path --all # Show all config paths
293
- \`\`\`
294
-
295
- ## Other Commands
296
-
297
- \`\`\`sh
298
- akm init # Initialize working stash
299
- akm index # Rebuild search index (no LLM enrichment)
300
- akm index --full # Full reindex (no LLM enrichment)
301
- akm index --enrich # Reindex with LLM inference/enrichment passes
302
- akm list # List all sources
303
- akm upgrade # Upgrade akm using its install method
304
- akm upgrade --check # Check for updates
305
- akm help migrate 0.6.0 # Print migration notes for a release (or: latest)
306
- akm hints # Print this reference
307
- akm completions # Print bash completion script
308
- akm completions --install # Install completions
309
- \`\`\`
310
-
311
- ## Output Control
312
-
313
- All commands accept \`--format\` and \`--detail\` flags:
314
-
315
- - \`--format json\` (default) — structured JSON
316
- - \`--format jsonl\` — one JSON object per line (streaming-friendly)
317
- - \`--format text\` — human-readable plain text
318
- - \`--format yaml\` — YAML output
319
- - \`--detail brief\` (default) — compact output
320
- - \`--detail normal\` — adds tags, refs, origins
321
- - \`--detail full\` — includes scores, paths, timing, debug info
322
- - \`--detail summary\` — metadata only (no content/template/prompt), under 200 tokens
323
- - \`--detail agent\` — agent-optimized output: strips non-actionable fields
324
- - \`--for-agent\` — deprecated alias for \`--detail agent\`
325
-
326
- Run \`akm -h\` or \`akm <command> -h\` for per-command help.
327
- `;
10
+ import EMBEDDED_HINTS_FULL from "./cli-hints-full.md" with { type: "text" };
11
+ import EMBEDDED_HINTS from "./cli-hints-short.md" with { type: "text" };
328
12
  export { EMBEDDED_HINTS, EMBEDDED_HINTS_FULL };