@cairnkeep/cli 2.15.4 → 2.17.0

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 (70) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/CONTRIBUTING.md +12 -0
  3. package/README.md +85 -590
  4. package/docs/README.md +87 -0
  5. package/docs/agents.md +193 -0
  6. package/docs/context-intelligence.md +143 -0
  7. package/docs/context-packs.md +33 -0
  8. package/docs/domain-knowledge.md +29 -0
  9. package/docs/ecosystem.md +23 -0
  10. package/docs/learning/CURRICULUM-MAP.md +3 -1
  11. package/docs/learning/FEATURE-GUIDE.md +23 -4
  12. package/docs/learning/README.md +4 -0
  13. package/docs/learning/lessons/L00-why-cairnkeep.md +3 -1
  14. package/docs/learning/lessons/L01-safe-trial.md +3 -3
  15. package/docs/learning/lessons/L02-installation.md +2 -2
  16. package/docs/learning/lessons/L03-first-project.md +9 -10
  17. package/docs/learning/lessons/L19-validated-skill-improvement.md +1 -1
  18. package/docs/learning/lessons/L20-mcp-tool-profiles.md +1 -1
  19. package/docs/learning/lessons/L21-context-packs.md +1 -1
  20. package/docs/learning/lessons/L22-native-windows.md +2 -2
  21. package/docs/learning/lessons/L23-guided-setup.md +18 -5
  22. package/docs/learning/lessons/L24-okf-exchange.md +1 -1
  23. package/docs/learning/lessons/L25-playbooks.md +1 -1
  24. package/docs/learning/lessons/L26-context-intelligence.md +180 -0
  25. package/docs/learning/tracks/evidence-and-evaluation.md +1 -0
  26. package/docs/learning/tracks/operator.md +1 -0
  27. package/docs/learning/tracks/practitioner.md +1 -0
  28. package/docs/learning/video-scripts/V26-context-intelligence.md +144 -0
  29. package/docs/native-windows.md +5 -0
  30. package/docs/operating.md +65 -3
  31. package/docs/privacy-and-data-flow.md +22 -0
  32. package/docs/quickstart.md +12 -4
  33. package/docs/releasing.md +27 -19
  34. package/docs/storage.md +21 -0
  35. package/docs/work-evidence.md +14 -0
  36. package/examples/eval/bundled-fake.json +1 -1
  37. package/mcp-memory-server/dist/context-pack-cli.js +3 -1
  38. package/mcp-memory-server/dist/context-pack-retrieval.js +413 -0
  39. package/mcp-memory-server/dist/context-pack.js +171 -3
  40. package/mcp-memory-server/dist/domain-retrieval-provider.js +257 -0
  41. package/mcp-memory-server/dist/index.js +73 -387
  42. package/mcp-memory-server/dist/mcp-tool-catalog.js +2 -0
  43. package/mcp-memory-server/dist/memory-extraction.js +87 -0
  44. package/mcp-memory-server/dist/memory-proposal-cli.js +110 -0
  45. package/mcp-memory-server/dist/memory-proposal-schema.js +78 -0
  46. package/mcp-memory-server/dist/memory-proposal-store.js +273 -0
  47. package/mcp-memory-server/dist/platform-security.js +32 -26
  48. package/mcp-memory-server/dist/retrieval-benchmark.js +199 -0
  49. package/mcp-memory-server/dist/reviewed-memory-store.js +281 -0
  50. package/mcp-memory-server/dist/work-evidence-schema.js +17 -0
  51. package/mcp-memory-server/dist/work-evidence-store.js +57 -1
  52. package/mcp-memory-server/package.json +8 -1
  53. package/package.json +1 -1
  54. package/schemas/context-usage-receipt.schema.json +41 -0
  55. package/schemas/memory-proposal.schema.json +65 -0
  56. package/schemas/retrieval-benchmark.schema.json +64 -0
  57. package/scripts/cairn-cli.mjs +3 -0
  58. package/scripts/completion.sh +17 -6
  59. package/scripts/doctor.sh +4 -2
  60. package/scripts/setup.mjs +92 -13
  61. package/scripts/terminal-prompts.mjs +172 -0
  62. package/scripts/test-completion.sh +8 -1
  63. package/scripts/test-docs-navigation.sh +63 -0
  64. package/scripts/test-doctor.sh +21 -0
  65. package/scripts/test-phase17-artifact-lifecycle.sh +1 -1
  66. package/scripts/test-release-sbom.sh +44 -16
  67. package/scripts/test-setup-preflight.mjs +130 -0
  68. package/scripts/test-windows-native.mjs +30 -0
  69. package/scripts/verify-docs-parity.sh +28 -28
  70. package/scripts/windows-platform.mjs +8 -5
package/CHANGELOG.md CHANGED
@@ -5,6 +5,50 @@ All notable user-facing changes are documented here. This project follows
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.17.0] - 2026-08-29
9
+
10
+ ### Added
11
+
12
+ - Frozen, offline retrieval benchmark with substring and deterministic mock-
13
+ embedding goldens, quality/cost/latency metrics, mutation accounting, and
14
+ forbidden-result leakage checks.
15
+ - Progressive context-pack hierarchy and derived summary cache, the
16
+ `context_pack_tree` MCP tool, and opt-in hierarchical search detail and
17
+ sanitized explanation traces. Compatible flat content search remains the
18
+ default.
19
+ - Opt-in, privacy-preserving context-usage receipts linked to work evidence.
20
+ - Review-gated `cairn proposals create|list|show|apply|doctor` workflow for
21
+ promoting redacted trajectory candidates into reviewed durable memory.
22
+ - Provider-neutral domain retrieval with an explicitly gated, read-only
23
+ OpenViking adapter; AnythingLLM remains the default provider.
24
+
25
+ ### Changed
26
+
27
+ - Context-pack search can return stable result and chunk digests when requested,
28
+ without changing the default response shape.
29
+ - `cairn doctor` validates progressive context-cache records while preserving
30
+ immutable pack objects, project pins, and skill-approval authority.
31
+
32
+ ## [2.16.0] - 2026-08-27
33
+
34
+ ### Added
35
+
36
+ - Add dependency-free terminal selectors to `cairn setup`: arrow-key choices
37
+ for Git and memory, Space-toggle checkboxes for harnesses, and a selectable
38
+ final confirmation. Escape and Ctrl-C cancel safely.
39
+
40
+ ### Changed
41
+
42
+ - Keep the existing text-question fallback for limited terminals and preserve
43
+ every deterministic setup flag for scripts, CI, policies, and overlays.
44
+ - Treat redirected output as non-interactive even when standard input is still
45
+ a TTY, preventing hidden prompts in automation.
46
+
47
+ ### Fixed
48
+
49
+ - Keep capability-logging smoke fixtures relative to the test date so the
50
+ retention contract cannot fail merely because a hard-coded date aged out.
51
+
8
52
  ## [2.15.4] - 2026-08-19
9
53
 
10
54
  ### Changed
package/CONTRIBUTING.md CHANGED
@@ -37,6 +37,18 @@ npm run check:public
37
37
  Some integration verifiers require optional sibling tools or configured API
38
38
  endpoints. They are not part of the default offline test suite.
39
39
 
40
+ ## Repository map
41
+
42
+ - `mcp-memory-server/` contains the MCP server, storage owners, schemas, and
43
+ Node-based CLI implementations.
44
+ - `bin/cairn` is the installed command entry point.
45
+ - `templates/` contains project scaffolding and managed instruction assets.
46
+ - `claude/`, `opencode/`, `pi/`, and `kimi/` contain harness-specific operating
47
+ assets.
48
+ - `scripts/` contains sync, lifecycle, packaging, and contract checks.
49
+ - `docs/` contains the versioned user and operator references indexed from
50
+ [the documentation hub](docs/README.md).
51
+
40
52
  ## Pull requests
41
53
 
42
54
  - Create a focused branch from `main`.