@cachly-dev/mcp-server 0.9.1 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -7,35 +7,62 @@
7
7
 
8
8
  ---
9
9
 
10
- ## [0.9.1] – 2026-05-05
10
+ ## [0.9.3] – 2026-05-06
11
11
 
12
- ### 💎 Memory Crystals — Properly surfaced
12
+ ### 🧠 10x Vision Phase 2 — Layers 3, 5 & 6
13
13
 
14
- Memory Crystals were implemented but invisible. Now they're first-class:
14
+ #### Layer 3 — Multi-Agent Deliberation Chamber (MADC)
15
15
 
16
- - **`crystal_view`** — New tool: inspect the current Crystal (patterns by category, freshness status, when to refresh). Previously there was no way to see Crystal contents without triggering a full `session_start`.
17
- - **`session_end` Crystal reminder** — After saving a session, `session_end` now checks Crystal age. If no Crystal exists, or it's ≥ 30 days old, it reminds you to run `memory_crystalize`. Zero friction — the Brain tells you when it needs a refresh.
18
- - **`autopilot` updated** — Generated CLAUDE.md now includes: `compact_recover` rule (context compaction), monthly crystal schedule, `syndicate_search` rule (unknown errors), and full Cognitive Tools table. Updated to v0.9.
16
+ New tool: **`madc_deliberate`** — When conflicting lessons exist for a topic, run deliberation between 6 specialist expert agents (InfraAgent, AuthAgent, DeployAgent, DatabaseAgent, DebugAgent, APIAgent). Each agent votes based on its CKG domain coverage. Unanimous → loser superseded. Split → contested flag. Resolutions stored as permanent CKG nodes.
19
17
 
20
- ---
18
+ Auto-trigger: `learn_from_attempts` now detects contradictions, writes a `contradicts` CKG edge, and suggests `madc_deliberate` automatically.
21
19
 
22
- ## [0.9.0] – 2026-05-05
20
+ #### Layer 5 — Continuous Learning Stream (CLS)
23
21
 
24
- ### ⚡ compact_recover + 🌱 brain_from_git — The two most-requested missing tools
22
+ Two new tools for learning **without `session_end`**:
25
23
 
26
- #### New Tools
24
+ - **`cls_ingest`** — Ingest learning signals from 3 sources: `git_commit` (commit message + files → CKG edges + lesson), `ci_outcome` (green after red → confirmed fix at 75% confidence), `ide_diagnostic` (compiler error + fix pair → instant lesson + CKG `fixes` edge).
25
+
26
+ - **`cls_install_hooks`** — Outputs a ready-to-paste git post-commit hook + GitHub Actions step. Once installed: every commit and CI run feeds the brain automatically. Zero `session_end` required.
27
+
28
+ #### Layer 6 — Federation Protocol (FedBrain)
29
+
30
+ Four new tools for AI-to-AI knowledge transfer with cryptographic provenance:
31
+
32
+ - **`fedbrain_contribute`** — Contribute a lesson to the global commons with a HMAC-signed knowledge certificate (domain fingerprint + confidence + outcome chain hash).
33
+
34
+ - **`fedbrain_search`** — Context-weighted search: your domain fingerprint (from contributed lessons + `context_hints`) weights results from brains with matching tech stacks higher. Shows Gold Standard badges (10+ confirms).
27
35
 
28
- - **`compact_recover`** — Fast context recovery after Claude/Cursor/Copilot context window compaction. Call as the FIRST tool after any context limit hit. Returns: last checkpoint (task + files + next step), session handoff if any, top recalled lessons for the current focus. Unlike `session_start`, this is instant — no full brain scan, no streak logic. Designed to be the first line of every CLAUDE.md recovery protocol.
36
+ - **`fedbrain_confirm`** — Confirm that a syndicated lesson worked. Propagates back to global commons (increments `confirm_count`). Updates local CKG confidence. At 10 independent confirmations → 🏆 Gold Standard.
29
37
 
30
- - **`brain_from_git`** — Bootstrap the AI Brain from git history in one call. Scans the last N days of commits, extracts actionable knowledge (fixes, reverts, deploys, migrations), and bulk-loads them as lessons. Skips commits already in the Brain (safe to re-run). Supports author filtering for solo bootstrapping on team repos. The recommended first step for any new project: `brain_from_git(workspace_path=".", days=180)`.
38
+ - **`fedbrain_status`** — Dashboard: contributed lessons, confirm history, Gold Standard count, pending propagations.
31
39
 
32
- #### Why these were missing
40
+ #### Summary
33
41
 
34
- `compact_recover` was referenced in every CLAUDE.md template and Autopilot output but had no implementation — users were told to call it but it would fail silently. `brain_from_git` was the #1 marketed feature ("Turn your git history into an AI knowledge base") but only existed as ambient learning inside `session_end`. Both are now first-class MCP tools.
42
+ | Layer | Tool(s) | What it does |
43
+ |-------|---------|--------------|
44
+ | 3 (MADC) | `madc_deliberate` | Expert agent voting on contradicting beliefs |
45
+ | 5 (CLS) | `cls_ingest`, `cls_install_hooks` | Continuous learning without session_end |
46
+ | 6 (FedBrain) | `fedbrain_contribute`, `fedbrain_search`, `fedbrain_confirm`, `fedbrain_status` | Federated knowledge with crypto certificates |
47
+
48
+ Total tools: **63** (was 54 in v0.9.2)
35
49
 
36
50
  ---
37
51
 
38
- ## [0.7.0] – 2026-05-04
52
+ ## [0.9.2] – 2026-05-06
53
+
54
+ ### 🧠 10x Vision Phase 1 — Layers 1, 2, 4 & 7
55
+
56
+ - **Layer 1 (CKG):** Redis-backed Causal Knowledge Graph. Typed edges: `fixes`, `requires`, `co-occurs`, `causes`, `contradicts`.
57
+ - **Layer 2 (BUE):** `learn_from_attempts` now writes CKG edges with Bayesian confidence `(s+1)/(t+2)`.
58
+ - **Layer 4 (PPE):** `brain_predict` — CKG traversal + text fallback for failure prediction.
59
+ - **Layer 7 (MCM):** Domain coverage map in `session_start` with confidence bars.
60
+ - New: `brain_search` (BM25+ over all brain data), `ckg_inspect` (BFS with confidence bars).
61
+ - `causal_trace` upgraded: CKG graph-first, text similarity fallback.
62
+
63
+ ---
64
+
65
+
39
66
 
40
67
  ### 🌐 Knowledge Syndication — The Global AI Brain
41
68
 
package/Dockerfile CHANGED
@@ -11,8 +11,6 @@ COPY package*.json ./
11
11
  RUN npm ci --omit=dev --ignore-scripts
12
12
  COPY --from=builder /app/dist/ ./dist/
13
13
  ENV NODE_ENV=production
14
- ENV CACHLY_JWT=""
15
- ENV CACHLY_BRAIN_INSTANCE_ID=""
16
- ENV CACHLY_NO_TELEMETRY=1
17
- ENV CACHLY_NO_UPDATE_CHECK=1
14
+ ENV PORT=3000
15
+ EXPOSE 3000
18
16
  ENTRYPOINT ["node", "dist/index.js"]