akm-cli 0.8.0-rc2 → 0.8.1

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 (313) hide show
  1. package/{.github/CHANGELOG.md → CHANGELOG.md} +238 -3
  2. package/README.md +22 -6
  3. package/SECURITY.md +93 -0
  4. package/dist/assets/help/help-accept.md +12 -0
  5. package/dist/assets/help/help-improve.md +81 -0
  6. package/dist/{commands → assets}/help/help-proposals.md +7 -4
  7. package/dist/assets/help/help-reject.md +11 -0
  8. package/dist/{output → assets/hints}/cli-hints-full.md +60 -32
  9. package/dist/{output → assets/hints}/cli-hints-short.md +10 -7
  10. package/dist/assets/profiles/default.json +15 -0
  11. package/dist/assets/profiles/graph-refresh.json +13 -0
  12. package/dist/assets/profiles/memory-focus.json +12 -0
  13. package/dist/assets/profiles/quick.json +15 -0
  14. package/dist/assets/profiles/thorough.json +15 -0
  15. package/dist/assets/prompts/extract-session.md +80 -0
  16. package/dist/assets/prompts/graph-extract-user-prompt.md +35 -0
  17. package/dist/assets/tasks/graph-refresh-weekly.yml +10 -0
  18. package/dist/cli/config-migrate.js +144 -0
  19. package/dist/cli/config-validate.js +39 -0
  20. package/dist/cli/confirm.js +73 -0
  21. package/dist/cli/parse-args.js +93 -3
  22. package/dist/cli/shared.js +129 -0
  23. package/dist/cli.js +2141 -1268
  24. package/dist/commands/add-cli.js +279 -0
  25. package/dist/commands/agent-dispatch.js +20 -12
  26. package/dist/commands/agent-support.js +11 -5
  27. package/dist/commands/completions.js +3 -0
  28. package/dist/commands/config-cli.js +129 -517
  29. package/dist/commands/consolidate.js +1557 -147
  30. package/dist/commands/curate.js +44 -3
  31. package/dist/commands/db-cli.js +23 -0
  32. package/dist/commands/distill-promotion-policy.js +5 -3
  33. package/dist/commands/distill.js +906 -100
  34. package/dist/commands/env.js +213 -0
  35. package/dist/commands/eval-cases.js +3 -0
  36. package/dist/commands/events.js +3 -0
  37. package/dist/commands/extract-cli.js +127 -0
  38. package/dist/commands/extract-prompt.js +217 -0
  39. package/dist/commands/extract.js +477 -0
  40. package/dist/commands/feedback-cli.js +331 -0
  41. package/dist/commands/graph.js +260 -5
  42. package/dist/commands/health.js +1042 -55
  43. package/dist/commands/history.js +51 -16
  44. package/dist/commands/improve-auto-accept.js +97 -0
  45. package/dist/commands/improve-cli.js +236 -0
  46. package/dist/commands/improve-profiles.js +138 -0
  47. package/dist/commands/improve-result-file.js +167 -0
  48. package/dist/commands/improve.js +1736 -346
  49. package/dist/commands/info.js +26 -28
  50. package/dist/commands/init.js +49 -1
  51. package/dist/commands/installed-stashes.js +6 -23
  52. package/dist/commands/knowledge.js +3 -0
  53. package/dist/commands/lint/agent-linter.js +3 -0
  54. package/dist/commands/lint/base-linter.js +199 -5
  55. package/dist/commands/lint/command-linter.js +3 -0
  56. package/dist/commands/lint/default-linter.js +3 -0
  57. package/dist/commands/lint/env-key-rules.js +154 -0
  58. package/dist/commands/lint/index.js +92 -3
  59. package/dist/commands/lint/knowledge-linter.js +3 -0
  60. package/dist/commands/lint/markdown-insertion.js +343 -0
  61. package/dist/commands/lint/memory-linter.js +3 -0
  62. package/dist/commands/lint/registry.js +3 -0
  63. package/dist/commands/lint/skill-linter.js +3 -0
  64. package/dist/commands/lint/task-linter.js +15 -12
  65. package/dist/commands/lint/types.js +3 -0
  66. package/dist/commands/lint/workflow-linter.js +3 -0
  67. package/dist/commands/lint.js +3 -0
  68. package/dist/commands/migration-help.js +5 -2
  69. package/dist/commands/proposal-drain-policies.js +128 -0
  70. package/dist/commands/proposal-drain.js +477 -0
  71. package/dist/commands/proposal.js +60 -6
  72. package/dist/commands/propose.js +24 -19
  73. package/dist/commands/reflect.js +1004 -94
  74. package/dist/commands/registry-cli.js +150 -0
  75. package/dist/commands/registry-search.js +3 -0
  76. package/dist/commands/remember-cli.js +257 -0
  77. package/dist/commands/remember.js +15 -6
  78. package/dist/commands/schema-repair.js +88 -15
  79. package/dist/commands/search.js +99 -14
  80. package/dist/commands/secret.js +173 -0
  81. package/dist/commands/self-update.js +3 -0
  82. package/dist/commands/show.js +32 -13
  83. package/dist/commands/source-add.js +7 -35
  84. package/dist/commands/source-clone.js +3 -0
  85. package/dist/commands/source-manage.js +3 -0
  86. package/dist/commands/tasks.js +161 -95
  87. package/dist/commands/url-checker.js +3 -0
  88. package/dist/core/action-contributors.js +3 -0
  89. package/dist/core/asset-ref.js +13 -2
  90. package/dist/core/asset-registry.js +9 -2
  91. package/dist/core/asset-serialize.js +88 -0
  92. package/dist/core/asset-spec.js +61 -5
  93. package/dist/core/common.js +93 -5
  94. package/dist/core/concurrent.js +3 -0
  95. package/dist/core/config-io.js +347 -0
  96. package/dist/core/config-migration.js +622 -0
  97. package/dist/core/config-schema.js +558 -0
  98. package/dist/core/config-sources.js +108 -0
  99. package/dist/core/config-types.js +4 -0
  100. package/dist/core/config-walker.js +337 -0
  101. package/dist/core/config.js +366 -1077
  102. package/dist/core/errors.js +42 -20
  103. package/dist/core/events.js +31 -25
  104. package/dist/core/file-lock.js +104 -0
  105. package/dist/core/frontmatter.js +75 -10
  106. package/dist/core/lesson-lint.js +3 -0
  107. package/dist/core/markdown.js +3 -0
  108. package/dist/core/memory-belief.js +62 -0
  109. package/dist/core/memory-contradiction-detect.js +274 -0
  110. package/dist/core/memory-improve.js +142 -14
  111. package/dist/core/parse.js +3 -0
  112. package/dist/core/paths.js +218 -50
  113. package/dist/core/proposal-quality-validators.js +380 -0
  114. package/dist/core/proposal-validators.js +11 -3
  115. package/dist/core/proposals.js +464 -5
  116. package/dist/core/state-db.js +349 -56
  117. package/dist/core/text-truncation.js +107 -0
  118. package/dist/core/time.js +3 -0
  119. package/dist/core/tty.js +59 -0
  120. package/dist/core/warn.js +7 -2
  121. package/dist/core/write-source.js +12 -0
  122. package/dist/indexer/db-backup.js +391 -0
  123. package/dist/indexer/db-search.js +136 -28
  124. package/dist/indexer/db.js +661 -166
  125. package/dist/indexer/ensure-index.js +3 -0
  126. package/dist/indexer/file-context.js +3 -0
  127. package/dist/indexer/graph-boost.js +162 -40
  128. package/dist/indexer/graph-db.js +241 -51
  129. package/dist/indexer/graph-dedup.js +3 -7
  130. package/dist/indexer/graph-extraction.js +242 -149
  131. package/dist/indexer/index-context.js +3 -9
  132. package/dist/indexer/indexer.js +86 -16
  133. package/dist/indexer/llm-cache.js +24 -19
  134. package/dist/indexer/manifest.js +3 -0
  135. package/dist/indexer/matchers.js +184 -11
  136. package/dist/indexer/memory-inference.js +94 -50
  137. package/dist/indexer/metadata-contributors.js +3 -0
  138. package/dist/indexer/metadata.js +110 -50
  139. package/dist/indexer/path-resolver.js +3 -0
  140. package/dist/indexer/project-context.js +192 -0
  141. package/dist/indexer/ranking-contributors.js +134 -7
  142. package/dist/indexer/ranking.js +8 -1
  143. package/dist/indexer/search-fields.js +5 -9
  144. package/dist/indexer/search-hit-enrichers.js +91 -2
  145. package/dist/indexer/search-source.js +20 -1
  146. package/dist/indexer/semantic-status.js +4 -1
  147. package/dist/indexer/staleness-detect.js +447 -0
  148. package/dist/indexer/usage-events.js +12 -9
  149. package/dist/indexer/walker.js +3 -0
  150. package/dist/integrations/agent/builders.js +135 -0
  151. package/dist/integrations/agent/config.js +121 -401
  152. package/dist/integrations/agent/detect.js +3 -0
  153. package/dist/integrations/agent/index.js +6 -14
  154. package/dist/integrations/agent/model-aliases.js +55 -0
  155. package/dist/integrations/agent/profiles.js +3 -0
  156. package/dist/integrations/agent/prompts.js +137 -8
  157. package/dist/integrations/agent/runner.js +208 -0
  158. package/dist/integrations/agent/sdk-runner.js +8 -2
  159. package/dist/integrations/agent/spawn.js +54 -14
  160. package/dist/integrations/github.js +3 -0
  161. package/dist/integrations/lockfile.js +22 -51
  162. package/dist/integrations/session-logs/index.js +4 -0
  163. package/dist/integrations/session-logs/inline-refs.js +35 -0
  164. package/dist/integrations/session-logs/pre-filter.js +152 -0
  165. package/dist/integrations/session-logs/providers/claude-code.js +226 -0
  166. package/dist/integrations/session-logs/providers/opencode.js +231 -25
  167. package/dist/integrations/session-logs/types.js +3 -0
  168. package/dist/llm/call-ai.js +14 -26
  169. package/dist/llm/client.js +16 -2
  170. package/dist/llm/embedder.js +20 -29
  171. package/dist/llm/embedders/cache.js +3 -7
  172. package/dist/llm/embedders/local.js +42 -1
  173. package/dist/llm/embedders/remote.js +20 -8
  174. package/dist/llm/embedders/types.js +3 -7
  175. package/dist/llm/feature-gate.js +92 -56
  176. package/dist/llm/graph-extract.js +402 -31
  177. package/dist/llm/index-passes.js +44 -29
  178. package/dist/llm/memory-infer.js +30 -2
  179. package/dist/llm/metadata-enhance.js +3 -7
  180. package/dist/output/cli-hints.js +7 -4
  181. package/dist/output/context.js +60 -8
  182. package/dist/output/renderers.js +170 -194
  183. package/dist/output/shapes/curate.js +56 -0
  184. package/dist/output/shapes/distill.js +10 -0
  185. package/dist/output/shapes/env-list.js +19 -0
  186. package/dist/output/shapes/events.js +11 -0
  187. package/dist/output/shapes/helpers.js +424 -0
  188. package/dist/output/shapes/history.js +7 -0
  189. package/dist/output/shapes/passthrough.js +105 -0
  190. package/dist/output/shapes/proposal-accept.js +7 -0
  191. package/dist/output/shapes/proposal-diff.js +7 -0
  192. package/dist/output/shapes/proposal-list.js +7 -0
  193. package/dist/output/shapes/proposal-producer.js +11 -0
  194. package/dist/output/shapes/proposal-reject.js +7 -0
  195. package/dist/output/shapes/proposal-show.js +7 -0
  196. package/dist/output/shapes/registry-search.js +6 -0
  197. package/dist/output/shapes/registry.js +30 -0
  198. package/dist/output/shapes/search.js +6 -0
  199. package/dist/output/shapes/secret-list.js +19 -0
  200. package/dist/output/shapes/show.js +6 -0
  201. package/dist/output/shapes/vault-list.js +19 -0
  202. package/dist/output/shapes.js +51 -549
  203. package/dist/output/text/add.js +6 -0
  204. package/dist/output/text/clone.js +6 -0
  205. package/dist/output/text/config.js +6 -0
  206. package/dist/output/text/curate.js +6 -0
  207. package/dist/output/text/distill.js +7 -0
  208. package/dist/output/text/enable-disable.js +7 -0
  209. package/dist/output/text/events.js +10 -0
  210. package/dist/output/text/feedback.js +6 -0
  211. package/dist/output/text/helpers.js +1059 -0
  212. package/dist/output/text/history.js +7 -0
  213. package/dist/output/text/import.js +6 -0
  214. package/dist/output/text/index.js +6 -0
  215. package/dist/output/text/info.js +6 -0
  216. package/dist/output/text/init.js +6 -0
  217. package/dist/output/text/list.js +6 -0
  218. package/dist/output/text/proposal-producer.js +8 -0
  219. package/dist/output/text/proposal.js +12 -0
  220. package/dist/output/text/registry-commands.js +11 -0
  221. package/dist/output/text/registry.js +30 -0
  222. package/dist/output/text/remember.js +6 -0
  223. package/dist/output/text/remove.js +6 -0
  224. package/dist/output/text/save.js +6 -0
  225. package/dist/output/text/search.js +6 -0
  226. package/dist/output/text/show.js +6 -0
  227. package/dist/output/text/update.js +6 -0
  228. package/dist/output/text/upgrade.js +6 -0
  229. package/dist/output/text/vault.js +16 -0
  230. package/dist/output/text/wiki.js +15 -0
  231. package/dist/output/text/workflow.js +14 -0
  232. package/dist/output/text.js +44 -1329
  233. package/dist/registry/build-index.js +3 -0
  234. package/dist/registry/create-provider-registry.js +3 -0
  235. package/dist/registry/factory.js +4 -1
  236. package/dist/registry/origin-resolve.js +3 -0
  237. package/dist/registry/providers/index.js +3 -0
  238. package/dist/registry/providers/skills-sh.js +11 -2
  239. package/dist/registry/providers/static-index.js +10 -1
  240. package/dist/registry/providers/types.js +3 -24
  241. package/dist/registry/resolve.js +11 -16
  242. package/dist/registry/types.js +3 -0
  243. package/dist/scripts/migrate-storage.js +17767 -0
  244. package/dist/scripts/migrations/import-fs-improve-runs-to-db.js +9031 -0
  245. package/dist/scripts/migrations/v16-to-v17.js +141 -0
  246. package/dist/setup/detect.js +3 -0
  247. package/dist/setup/ripgrep-install.js +3 -0
  248. package/dist/setup/ripgrep-resolve.js +3 -0
  249. package/dist/setup/setup.js +306 -67
  250. package/dist/setup/steps.js +3 -15
  251. package/dist/sources/include.js +3 -0
  252. package/dist/sources/provider-factory.js +3 -11
  253. package/dist/sources/provider.js +3 -20
  254. package/dist/sources/providers/filesystem.js +19 -23
  255. package/dist/sources/providers/git.js +171 -21
  256. package/dist/sources/providers/index.js +3 -0
  257. package/dist/sources/providers/install-types.js +3 -13
  258. package/dist/sources/providers/npm.js +3 -4
  259. package/dist/sources/providers/provider-utils.js +3 -0
  260. package/dist/sources/providers/sync-from-ref.js +3 -11
  261. package/dist/sources/providers/tar-utils.js +3 -0
  262. package/dist/sources/providers/website.js +18 -22
  263. package/dist/sources/resolve.js +3 -0
  264. package/dist/sources/types.js +3 -0
  265. package/dist/sources/website-ingest.js +3 -0
  266. package/dist/tasks/backends/cron.js +3 -0
  267. package/dist/tasks/backends/exec-utils.js +3 -0
  268. package/dist/tasks/backends/index.js +3 -11
  269. package/dist/tasks/backends/launchd.js +4 -1
  270. package/dist/tasks/backends/schtasks.js +4 -1
  271. package/dist/tasks/parser.js +51 -38
  272. package/dist/tasks/resolveAkmBin.js +3 -0
  273. package/dist/tasks/runner.js +35 -9
  274. package/dist/tasks/schedule.js +20 -1
  275. package/dist/tasks/schema.js +5 -3
  276. package/dist/tasks/validator.js +6 -3
  277. package/dist/version.js +3 -0
  278. package/dist/wiki/wiki-templates.js +6 -3
  279. package/dist/wiki/wiki.js +4 -1
  280. package/dist/workflows/authoring.js +4 -1
  281. package/dist/workflows/cli.js +3 -0
  282. package/dist/workflows/db.js +140 -10
  283. package/dist/workflows/document-cache.js +3 -10
  284. package/dist/workflows/parser.js +3 -0
  285. package/dist/workflows/renderer.js +3 -0
  286. package/dist/workflows/runs.js +18 -1
  287. package/dist/workflows/schema.js +3 -0
  288. package/dist/workflows/scope-key.js +3 -0
  289. package/dist/workflows/validator.js +5 -9
  290. package/docs/README.md +7 -2
  291. package/docs/data-and-telemetry.md +225 -0
  292. package/docs/migration/release-notes/0.7.5.md +2 -2
  293. package/docs/migration/release-notes/0.8.0.md +57 -5
  294. package/docs/migration/v0.7-to-v0.8.md +1378 -0
  295. package/package.json +28 -11
  296. package/.github/LICENSE +0 -374
  297. package/dist/commands/help/help-accept.md +0 -9
  298. package/dist/commands/help/help-improve.md +0 -53
  299. package/dist/commands/help/help-reject.md +0 -8
  300. package/dist/commands/install-audit.js +0 -385
  301. package/dist/commands/vault.js +0 -310
  302. package/dist/indexer/match-contributors.js +0 -141
  303. package/dist/integrations/agent/pipeline.js +0 -39
  304. package/dist/integrations/agent/runners.js +0 -31
  305. package/dist/llm/prompts/graph-extract-user-prompt.md +0 -12
  306. /package/dist/{tasks → assets}/backends/launchd-template.xml +0 -0
  307. /package/dist/{tasks → assets}/backends/schtasks-template.xml +0 -0
  308. /package/dist/{commands → assets}/help/help-propose.md +0 -0
  309. /package/dist/{wiki → assets/wiki}/index-template.md +0 -0
  310. /package/dist/{wiki → assets/wiki}/ingest-workflow-template.md +0 -0
  311. /package/dist/{wiki → assets/wiki}/log-template.md +0 -0
  312. /package/dist/{wiki → assets/wiki}/schema-template.md +0 -0
  313. /package/dist/{workflows → assets/workflows}/workflow-template.md +0 -0
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "akm-cli",
3
- "version": "0.8.0-rc2",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
- "description": "akm (Agent Kit Manager) — A package manager for AI agent skills, commands, tools, and knowledge. Works with Claude Code, OpenCode, Cursor, and any AI coding assistant.",
5
+ "description": "akm (Agent Knowledge Management) — A package manager for AI agent skills, commands, tools, and knowledge. Works with Claude Code, OpenCode, Cursor, and any AI coding assistant.",
6
6
  "keywords": [
7
7
  "akm",
8
+ "agent-knowledge-management",
8
9
  "agent-kit-manager",
9
10
  "akm-cli",
10
11
  "ai-agent",
@@ -31,26 +32,40 @@
31
32
  "url": "https://github.com/itlackey/akm/issues"
32
33
  },
33
34
  "license": "MPL-2.0",
35
+ "pinNotes": {
36
+ "@opencode-ai/sdk@1.2.20": "Exact pin. The SDK surface we use (createOpencode + session.create/prompt/delete in src/integrations/agent/sdk-runner.ts) is stable across 1.x, but the SDK has shipped 5+ minor versions of unrelated provider/registry churn. akm-cli is a global CLI install so the pin is isolated from user-project deps. Re-test sdk-runner before bumping."
37
+ },
34
38
  "files": [
35
39
  "dist",
36
40
  "README.md",
37
- ".github/CHANGELOG.md",
41
+ "CHANGELOG.md",
42
+ "SECURITY.md",
38
43
  "LICENSE",
39
- "docs/migration/release-notes"
44
+ "docs/migration/release-notes",
45
+ "docs/migration/v0.7-to-v0.8.md",
46
+ "docs/data-and-telemetry.md"
40
47
  ],
41
48
  "bin": {
42
- "akm": "dist/cli.js"
49
+ "akm": "dist/cli.js",
50
+ "akm-migrate-storage": "dist/scripts/migrate-storage.js"
43
51
  },
44
52
  "scripts": {
53
+ "preinstall": "node -e \"var ua=process.env.npm_config_user_agent||'';if(process.versions.bun||ua.startsWith('bun/')||process.env.BUN_INSTALL){process.exit(0)}console.error('\\n ERROR: akm-cli 0.8 requires the Bun runtime (https://bun.sh) or the prebuilt binary.\\n Running under Node.js is not supported in this release.\\n Install options:\\n 1. Bun: curl -fsSL https://bun.sh/install | bash && bun install -g akm-cli\\n 2. Binary: curl -fsSL https://github.com/itlackey/akm/releases/latest/download/install.sh | bash\\n Cross-runtime support is planned for 0.9.0.\\n');process.exit(1)\"",
45
54
  "build": "rm -rf dist && bun run tsc --project ./tsconfig.build.json && bun scripts/copy-assets.ts",
46
- "check": "bun run lint && bunx tsc --noEmit && bun test ./tests",
47
- "check:changed": "bun test tests/output-baseline.test.ts tests/e2e.test.ts tests/stash-search.test.ts && bun run lint && bunx tsc --noEmit",
48
- "test": "bun test ./tests",
55
+ "check": "bun run lint && bunx tsc --noEmit && bun run test:unit && bun run test:integration",
56
+ "check:changed": "bun test tests/output-baseline.test.ts tests/integration/e2e.test.ts tests/stash-search.test.ts && bun run lint && bunx tsc --noEmit",
57
+ "test": "bun test --parallel=12 --timeout=30000 ./tests --path-ignore-patterns=tests/integration",
58
+ "test:unit": "bun test --parallel=12 --timeout=30000 ./tests --path-ignore-patterns=tests/integration",
59
+ "test:integration": "bun test --parallel=12 --timeout=30000 ./tests/integration ./tests/commands ./tests/workflows",
60
+ "test:sharded": "bun test ./tests --shard=1/4 & bun test ./tests --shard=2/4 & bun test ./tests --shard=3/4 & bun test ./tests --shard=4/4 & wait",
61
+ "test:time": "bun scripts/test-timing-report.ts",
62
+ "lint:isolation": "bun scripts/lint-tests-isolation.ts",
49
63
  "lint:devto-posts": "bun scripts/lint-devto-posts.ts",
50
64
  "lint:devto-posts:fix": "bun scripts/lint-devto-posts.ts --fix",
51
65
  "publish:devto": "npx -y @sinedied/devto-cli push \"docs/posts/**/*.md\" --token \"$DEVTO_TOKEN\" --repo \"$GITHUB_REPOSITORY\" --branch \"${GITHUB_REF_NAME:-main}\" --reconcile",
52
66
  "release:check": "./tests/release-check.sh",
53
- "lint": "bunx biome check src/ tests/",
67
+ "lint": "bunx biome check src/ tests/ && bun scripts/lint-tests-isolation.ts && bun scripts/lint-license-headers.ts",
68
+ "lint:tests-isolation": "bun scripts/lint-tests-isolation.ts",
54
69
  "lint:fix": "bunx biome check --write src/ tests/",
55
70
  "format": "bunx biome format --write src/ tests/",
56
71
  "prepublishOnly": "cp .github/README.npm.md README.md && bun run build",
@@ -67,7 +82,7 @@
67
82
  },
68
83
  "optionalDependencies": {
69
84
  "@huggingface/transformers": "^4.2.0",
70
- "sqlite-vec": "0.1.7-alpha.2"
85
+ "sqlite-vec": "^0.1.9"
71
86
  },
72
87
  "engines": {
73
88
  "bun": ">=1.0.0"
@@ -77,6 +92,8 @@
77
92
  "@opencode-ai/sdk": "1.2.20",
78
93
  "citty": "^0.2.2",
79
94
  "dotenv": "^17.4.2",
80
- "yaml": "^2.8.4"
95
+ "yaml": "^2.8.4",
96
+ "zod": "^3.23.0",
97
+ "zod-to-json-schema": "^3.23.0"
81
98
  }
82
99
  }
package/.github/LICENSE DELETED
@@ -1,374 +0,0 @@
1
- Mozilla Public License Version 2.0
2
- ==================================
3
-
4
- 1. Definitions
5
- --------------
6
-
7
- 1.1. "Contributor"
8
- means each individual or legal entity that creates, contributes to
9
- the creation of, or owns Covered Software.
10
-
11
- 1.2. "Contributor Version"
12
- means the combination of the Contributions of others (if any) used
13
- by a Contributor and that particular Contributor's Contribution.
14
-
15
- 1.3. "Contribution"
16
- means Covered Software of a particular Contributor.
17
-
18
- 1.4. "Covered Software"
19
- means Source Code Form to which the initial Contributor has attached
20
- the notice in Exhibit A, the Executable Form of such Source Code
21
- Form, and Modifications of such Source Code Form, in each case
22
- including portions thereof.
23
-
24
- 1.5. "Incompatible With Secondary Licenses"
25
- means
26
-
27
- (a) that the initial Contributor has attached the notice described
28
- in Exhibit B to the Covered Software; or
29
-
30
- (b) that the Covered Software was made available under the terms of
31
- version 1.1 or earlier of the License, but not also under the
32
- terms of a Secondary License.
33
-
34
- 1.6. "Executable Form"
35
- means any form of the work other than Source Code Form.
36
-
37
- 1.7. "Larger Work"
38
- means a work that combines Covered Software with other material, in
39
- a separate file or files, that is not Covered Software.
40
-
41
- 1.8. "License"
42
- means this document.
43
-
44
- 1.9. "Licensable"
45
- means having the right to grant, to the maximum extent possible,
46
- whether at the time of the initial grant or subsequently, any and
47
- all of the rights conveyed by this License.
48
-
49
- 1.10. "Modifications"
50
- means any of the following:
51
-
52
- (a) any file in Source Code Form that results from an addition to,
53
- deletion from, or modification of the contents of Covered
54
- Software; or
55
-
56
- (b) any new file in Source Code Form that contains any Covered
57
- Software.
58
-
59
- 1.11. "Patent Claims" of a Contributor
60
- means any patent claim(s), including without limitation, method,
61
- process, and apparatus claims, in any patent Licensable by such
62
- Contributor that would be infringed, but for the grant of the
63
- License, by the making, using, selling, offering for sale, having
64
- made, import, or transfer of either its Contributions or its
65
- Contributor Version.
66
-
67
- 1.12. "Secondary License"
68
- means either the GNU General Public License, Version 2.0, the GNU
69
- Lesser General Public License, Version 2.1, the GNU Affero General
70
- Public License, Version 3.0, or any later versions of those
71
- licenses.
72
-
73
- 1.13. "Source Code Form"
74
- means the form of the work preferred for making modifications.
75
-
76
- 1.14. "You" (or "Your")
77
- means an individual or a legal entity exercising rights under this
78
- License. For legal entities, "You" includes any entity that
79
- controls, is controlled by, or is under common control with You. For
80
- purposes of this definition, "control" means (a) the power, direct
81
- or indirect, to cause the direction or management of such entity,
82
- whether by contract or otherwise, or (b) ownership of more than
83
- fifty percent (50%) of the outstanding shares or beneficial
84
- ownership of such entity.
85
-
86
- 2. License Grants and Conditions
87
- --------------------------------
88
-
89
- 2.1. Grants
90
-
91
- Each Contributor hereby grants You a world-wide, royalty-free,
92
- non-exclusive license:
93
-
94
- (a) under intellectual property rights (other than patent or trademark)
95
- Licensable by such Contributor to use, reproduce, make available,
96
- modify, display, perform, distribute, and otherwise exploit its
97
- Contributions, either on an unmodified basis, with Modifications, or
98
- as part of a Larger Work; and
99
-
100
- (b) under Patent Claims of such Contributor to make, use, sell, offer
101
- for sale, have made, import, and otherwise transfer either its
102
- Contributions or its Contributor Version.
103
-
104
- 2.2. Effective Date
105
-
106
- The licenses granted in Section 2.1 with respect to any Contribution
107
- become effective for each Contribution on the date the Contributor first
108
- distributes such Contribution.
109
-
110
- 2.3. Limitations on Grant Scope
111
-
112
- The licenses granted in this Section 2 are the only rights granted under
113
- this License. No additional rights or licenses will be implied from the
114
- distribution or licensing of Covered Software under this License.
115
- Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
- Contributor:
117
-
118
- (a) for any code that a Contributor has removed from Covered Software;
119
- or
120
-
121
- (b) for infringements caused by: (i) Your and any other third party's
122
- modifications of Covered Software, or (ii) the combination of its
123
- Contributions with other software (except as part of its Contributor
124
- Version); or
125
-
126
- (c) under Patent Claims infringed by Covered Software in the absence of
127
- its Contributions.
128
-
129
- This License does not grant any rights in the trademarks, service marks,
130
- or logos of any Contributor (except as may be necessary to comply with
131
- the notice requirements in Section 3.4).
132
-
133
- 2.4. Subsequent Licenses
134
-
135
- No Contributor makes additional grants as a result of Your choice to
136
- distribute the Covered Software under a subsequent version of this
137
- License (see Section 10.2) or under the terms of a Secondary License (if
138
- permitted under the terms of Section 3.3).
139
-
140
- 2.5. Representation
141
-
142
- Each Contributor represents that the Contributor believes its
143
- Contributions are its original creation(s) or it has sufficient rights
144
- to grant the rights to its Contributions conveyed by this License.
145
-
146
- 2.6. Fair Use
147
-
148
- This License is not intended to limit any rights You have under
149
- applicable copyright doctrines of fair use, fair dealing, or other
150
- equivalents.
151
-
152
- 2.7. Conditions
153
-
154
- Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
- in Section 2.1.
156
-
157
- 3. Responsibilities
158
- -------------------
159
-
160
- 3.1. Distribution of Source Form
161
-
162
- All distribution of Covered Software in Source Code Form, including any
163
- Modifications that You create or to which You contribute, must be under
164
- the terms of this License. You must inform recipients that the Source
165
- Code Form of the Covered Software is governed by the terms of this
166
- License, and how they can obtain a copy of this License. You may not
167
- attempt to alter or restrict the recipients' rights in the Source Code
168
- Form.
169
-
170
- 3.2. Distribution of Executable Form
171
-
172
- If You distribute Covered Software in Executable Form then:
173
-
174
- (a) such Covered Software must also be made available in Source Code
175
- Form, as described in Section 3.1, and You must inform recipients of
176
- the Executable Form how they can obtain a copy of such Source Code
177
- Form by reasonable means in a timely manner, at a charge no more
178
- than the cost of distribution to the recipient; and
179
-
180
- (b) You may distribute such Executable Form under the terms of this
181
- License, or sublicense it under different terms, provided that the
182
- license for the Executable Form does not attempt to limit or alter
183
- the recipients' rights in the Source Code Form under this License.
184
-
185
- 3.3. Distribution of a Larger Work
186
-
187
- You may create and distribute a Larger Work under terms of Your choice,
188
- provided that You also comply with the requirements of this License for
189
- the Covered Software. If the Larger Work is a combination of Covered
190
- Software with a work governed by one or more Secondary Licenses, and the
191
- Covered Software is not Incompatible With Secondary Licenses, this
192
- License permits You to additionally distribute such Covered Software
193
- under the terms of such Secondary License(s), so that the recipient of
194
- the Larger Work may, at their option, further distribute the Covered
195
- Software under the terms of either this License or such Secondary
196
- License(s).
197
-
198
- 3.4. Notices
199
-
200
- You may not remove or alter the substance of any license notices
201
- (including copyright notices, patent notices, disclaimers of warranty,
202
- or limitations of liability) contained within the Source Code Form of
203
- the Covered Software, except that You may alter any license notices to
204
- the extent required to remedy known factual inaccuracies.
205
-
206
- 3.5. Application of Additional Terms
207
-
208
- You may choose to offer, and to charge a fee for, warranty, support,
209
- indemnity or liability obligations to one or more recipients of Covered
210
- Software. However, You may do so only on Your own behalf, and not on
211
- behalf of any Contributor. You must make it absolutely clear that any
212
- such warranty, support, indemnity, or liability obligation is offered by
213
- You alone, and You hereby agree to indemnify every Contributor for any
214
- liability incurred by such Contributor as a result of warranty, support,
215
- indemnity or liability terms You offer. You may include additional
216
- disclaimers of warranty and limitations of liability specific to any
217
- jurisdiction.
218
-
219
- 4. Inability to Comply Due to Statute or Regulation
220
- ---------------------------------------------------
221
-
222
- If it is impossible for You to comply with any of the terms of this
223
- License with respect to some or all of the Covered Software due to
224
- statute, judicial order, or regulation then You must: (a) comply with
225
- the terms of this License to the maximum extent possible; and (b)
226
- describe the limitations and the code they affect. Such description must
227
- be placed in a text file included with all distributions of the Covered
228
- Software under the name "LEGAL", with additions for new restrictions
229
- placed at the end of the file. Except to the extent prohibited by
230
- statute or regulation, such description must be sufficiently detailed
231
- for a recipient of ordinary skill to be able to understand it.
232
-
233
- 5. Termination
234
- --------------
235
-
236
- 5.1. The rights granted under this License will terminate automatically
237
- if You fail to comply with any of its terms. However, if You become
238
- compliant, then the rights granted under this License from a particular
239
- Contributor are reinstated (a) provisionally, unless and until such
240
- Contributor explicitly and finally terminates Your grants, and (b) on an
241
- ongoing basis, if such Contributor fails to notify You of the
242
- non-compliance by some reasonable means prior to 60 days after You have
243
- come back into compliance. Moreover, Your grants from a particular
244
- Contributor are reinstated on an ongoing basis if such Contributor
245
- notifies You of the non-compliance by some reasonable means, this is the
246
- first time You have received notice of non-compliance with this License
247
- from such Contributor, and You become compliant prior to 30 days after
248
- Your receipt of the notice.
249
-
250
- 5.2. If You initiate litigation against any entity by asserting a patent
251
- infringement claim (excluding declaratory judgment actions,
252
- counter-claims, and cross-claims) alleging that a Contributor Version
253
- directly or indirectly infringes any patent, then the rights granted to
254
- You by any and all Contributors for the Covered Software under Section
255
- 2.1 of this License shall terminate.
256
-
257
- 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
258
- end user license agreements (excluding distributors and resellers) which
259
- have been validly granted by You or Your distributors under this License
260
- prior to termination shall survive termination.
261
-
262
- ************************************************************************
263
- * *
264
- * 6. Disclaimer of Warranty *
265
- * ------------------------- *
266
- * *
267
- * Covered Software is provided under this License on an "as is" *
268
- * basis, without warranty of any kind, either expressed, implied, or *
269
- * statutory, including, without limitation, warranties that the *
270
- * Covered Software is free of defects, merchantable, fit for a *
271
- * particular purpose or non-infringing. The entire risk as to the *
272
- * quality and performance of the Covered Software is with You. *
273
- * Should any Covered Software prove defective in any respect, You *
274
- * (not any Contributor) assume the cost of any necessary servicing, *
275
- * repair, or correction. This disclaimer of warranty constitutes an *
276
- * essential part of this License. No use of any Covered Software is *
277
- * authorized under this License except under this disclaimer. *
278
- * *
279
- ************************************************************************
280
-
281
- ************************************************************************
282
- * *
283
- * 7. Limitation of Liability *
284
- * -------------------------- *
285
- * *
286
- * Under no circumstances and under no legal theory, whether tort *
287
- * (including negligence), contract, or otherwise, shall any *
288
- * Contributor, or anyone who distributes Covered Software as *
289
- * permitted above, be liable to You for any direct, indirect, *
290
- * special, incidental, or consequential damages of any character *
291
- * including, without limitation, damages for lost profits, loss of *
292
- * goodwill, work stoppage, computer failure or malfunction, or any *
293
- * and all other commercial damages or losses, even if such party *
294
- * shall have been informed of the possibility of such damages. This *
295
- * limitation of liability shall not apply to liability for death or *
296
- * personal injury resulting from such party's negligence to the *
297
- * extent applicable law prohibits such limitation. Some *
298
- * jurisdictions do not allow the exclusion or limitation of *
299
- * incidental or consequential damages, so this exclusion and *
300
- * limitation may not apply to You. *
301
- * *
302
- ************************************************************************
303
-
304
- 8. Litigation
305
- -------------
306
-
307
- Any litigation relating to this License may be brought only in the
308
- courts of a jurisdiction where the defendant maintains its principal
309
- place of business and such litigation shall be governed by laws of that
310
- jurisdiction, without reference to its conflict-of-law provisions.
311
- Nothing in this Section shall prevent a party's ability to bring
312
- cross-claims or counter-claims.
313
-
314
- 9. Miscellaneous
315
- ----------------
316
-
317
- This License represents the complete agreement concerning the subject
318
- matter hereof. If any provision of this License is held to be
319
- unenforceable, such provision shall be reformed only to the extent
320
- necessary to make it enforceable. Any law or regulation which provides
321
- that the language of a contract shall be construed against the drafter
322
- shall not be used to construe this License against a Contributor.
323
-
324
- 10. Versions of the License
325
- ---------------------------
326
-
327
- 10.1. New Versions
328
-
329
- Mozilla Foundation is the license steward. Except as provided in Section
330
- 10.3, no one other than the license steward has the right to modify or
331
- publish new versions of this License. Each version will be given a
332
- distinguishing version number.
333
-
334
- 10.2. Effect of New Versions
335
-
336
- You may distribute the Covered Software under the terms of the version
337
- of the License under which You originally received the Covered Software,
338
- or under the terms of any subsequent version published by the license
339
- steward.
340
-
341
- 10.3. Modified Versions
342
-
343
- If you create software not governed by this License, and you want to
344
- create a new license for such software, you may create and use a
345
- modified version of this License if you rename the license and remove
346
- any references to the name of the license steward (except to note that
347
- such modified license differs from this License).
348
-
349
- 10.4. Distributing Source Code Form that is Incompatible With Secondary
350
- Licenses
351
-
352
- If You choose to distribute Source Code Form that is Incompatible With
353
- Secondary Licenses under the terms of this version of the License, the
354
- notice described in Exhibit B of this License must be attached.
355
-
356
- Exhibit A - Source Code Form License Notice
357
- -------------------------------------------
358
-
359
- This Source Code Form is subject to the terms of the Mozilla Public
360
- License, v. 2.0. If a copy of the MPL was not distributed with this
361
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
362
-
363
- If it is not possible or desirable to put the notice in a particular
364
- file, then You may include the notice in a location (such as a LICENSE
365
- file in a relevant directory) where a recipient would be likely to look
366
- for such a notice.
367
-
368
- You may add additional accurate notices of copyright ownership.
369
-
370
- Exhibit B - "Incompatible With Secondary Licenses" Notice
371
- ---------------------------------------------------------
372
-
373
- This Source Code Form is "Incompatible With Secondary Licenses", as
374
- defined by the Mozilla Public License, v. 2.0.
@@ -1,9 +0,0 @@
1
- Usage:
2
- akm accept <id>
3
-
4
- Description:
5
- Accept a proposal and promote it into the stash.
6
-
7
- Examples:
8
- akm accept proposal_123
9
- akm accept proposal_123 --target team-stash
@@ -1,53 +0,0 @@
1
- Usage:
2
- akm improve
3
- akm improve <type>
4
- akm improve <ref>
5
-
6
- Description:
7
- Analyze existing AKM assets and generate improvement proposals.
8
-
9
- Modes:
10
- akm improve
11
- Improve all eligible assets in the current scope.
12
-
13
- akm improve <type>
14
- Improve all assets of a given type.
15
- Example: akm improve memory
16
-
17
- akm improve <ref>
18
- Improve one specific asset.
19
- Example: akm improve workflow:release-checklist
20
-
21
- What it does:
22
- - reviews feedback and recent history
23
- - proposes edits to existing assets
24
- - distills lessons where useful
25
- - promotes durable skill lessons into skill reference-doc proposals when justified
26
- - cleans and consolidates memories
27
- - writes results to the proposal queue
28
-
29
- Options:
30
- --task <text> Add extra guidance for this improvement pass
31
- --dry-run Show planned actions without generating proposals
32
- --target <source> Override the write target for accepted proposals
33
- --auto-accept safe Automatically accept low-risk proposals
34
- --ignore-cooldown Disable reflect/distill/consolidate cooldown checks for this run
35
- --reflect-cooldown-days <n>
36
- Override reflect cooldown with a non-negative integer
37
- --distill-cooldown-days <n>
38
- Override distill cooldown with a non-negative integer
39
- --consolidate-cooldown-days <n>
40
- Override consolidate cooldown with a non-negative integer
41
- --consolidate-recovery <mode>
42
- Recovery mode for stale consolidate journals: abort (default) or clean
43
- --require-feedback-signal
44
- Only process refs with recent feedback signal events
45
- --min-retrieval-count <n>
46
- Retrieval fallback threshold when no recent feedback exists (default: 5)
47
-
48
- Examples:
49
- akm improve
50
- akm improve memory
51
- akm improve skill
52
- akm improve skill:code-review
53
- akm improve workflow:incident-response --task "reduce duplication"
@@ -1,8 +0,0 @@
1
- Usage:
2
- akm reject <id> --reason "..."
3
-
4
- Description:
5
- Reject a proposal and record the reason.
6
-
7
- Examples:
8
- akm reject proposal_123 --reason "duplicates existing workflow"