musememory 2.0.0 → 2.1.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.
- package/.agents/context/architecture.md +5 -2
- package/.agents/context/current.md +5 -2
- package/.agents/context/product.md +6 -0
- package/.agents/context/roadmap.md +15 -8
- package/README.md +21 -6
- package/dist/index.js +13918 -11736
- package/package.json +1 -1
|
@@ -65,7 +65,8 @@ musememory/
|
|
|
65
65
|
│ ├── harvester.ts # Universal agent transcript discovery and auto-learner engine
|
|
66
66
|
│ ├── intelligence/ # Pluggable code intelligence providers (CodeGraph, Graphify, LSP, AST)
|
|
67
67
|
│ ├── learning/ # Observation, candidate distillation, negative anti-patterns
|
|
68
|
-
│ ├── mcp.ts # Model Context Protocol stdio server (
|
|
68
|
+
│ ├── mcp.ts # Model Context Protocol stdio server (69 tools with profiles)
|
|
69
|
+
│ ├── mesh/ # Multi-repo & monorepo workspace discovery, query resolver, contracts
|
|
69
70
|
│ ├── orchestrator/ # Flagship muse_context fusion, bidirectional lookups, MCP profiles
|
|
70
71
|
│ ├── promotion/ # 3-tier promotion ladder, 5x success rule, archival lifecycle
|
|
71
72
|
│ ├── quality/ # Deduplication, semantic contradiction engine, utility & ROI
|
|
@@ -74,12 +75,14 @@ musememory/
|
|
|
74
75
|
│ ├── schema.ts # JSON Schema & store referential validator
|
|
75
76
|
│ ├── secrets.ts # Vibeguard zero-leakage secret scanner & redactor
|
|
76
77
|
│ ├── store.ts # Dual-scope storage layout & lifecycle state machine
|
|
78
|
+
│ ├── sync/ # Cross-agent knowledge sync, P2P gossip protocol, shared pool
|
|
77
79
|
│ ├── transcript.ts # Universal JSONL parser, dialogue windowing & search
|
|
78
80
|
│ ├── types.ts # Core TypeScript interfaces & enums
|
|
81
|
+
│ ├── ui.ts # Full Web Observability Studio & 3D knowledge graph
|
|
79
82
|
│ ├── user.ts # Persona & working preference engine
|
|
80
83
|
│ ├── agents/ # Workstation coding agents detection & registry (80+ platforms)
|
|
81
84
|
│ └── migrator/ # Multi-provider auto-detection & migration engine (24+ formats)
|
|
82
|
-
├── test/ # Automated
|
|
85
|
+
├── test/ # Automated Bun test suites (498 tests across 81 suites)
|
|
83
86
|
├── package.json # Package metadata & dependencies (v2.0.0)
|
|
84
87
|
└── dist/ # Compiled Node/Bun bundle
|
|
85
88
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 📍 Current Shipped State & Active Invariants
|
|
2
2
|
|
|
3
|
-
> **Version**: `v2.
|
|
4
|
-
> **Status**: Production Release (
|
|
3
|
+
> **Version**: `v2.1.0`
|
|
4
|
+
> **Status**: Production Release (P2P Sync, Studio, and Monorepo Mesh)
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
22. **First-Class Architecture Decision Records (ADRs) & Bidirectional Drift Engine**: ADRs as living memory entities (`proposed`, `accepted`, `superseded`, `rejected`) with native code anchors and supersession lineage; bidirectional documentation ↔ code drift engine classifying alignment (`DOCUMENTED`, `IMPLEMENTED`, `PARTIAL`, `CONFLICTING`, `STALE`, `MISSING`) and scoring repository health.
|
|
32
32
|
23. **Autonomous Engineering Cognition & "Why" Reasoner**: Historical "Why" explanation engine synthesizing ADRs, bug fixes, trade-offs, and invariants; recurring bug and fragility clustering across 5 root causes; and technical debt scanner detecting TODOs/FIXMEs, `as any` type bypasses, and drifted anchors.
|
|
33
33
|
24. **Unified 5-Pillar Project Health Gate (`muse_health`)**: Comprehensive architectural health evaluation auditing store integrity, native code anchors, doc/code alignment, anti-pattern sentry, and technical debt; computes composite grade (A-F), gate status (PASS/WARN/FAIL), prioritized remediation checklist, and CLI dashboard.
|
|
34
|
+
25. **Cross-Agent Knowledge Sync & P2P Gossip Protocol (R14)**: Portable sealed `SyncPacket` with SHA-256 integrity, vector clock causal ordering, bidirectional shared pool drop-directory gossip exchange, deduplication, Vibeguard secret scrubbing, and semantic contradiction tagging with mutual `conflict_ids`.
|
|
35
|
+
26. **Full Web Observability Studio & Interactive Visual Dashboard (R15)**: Integrated web studio served over local HTTP (`memory studio`), featuring a 5-pillar health scorecard, overall letter grade, prioritized remediation action checklist, ADR registry with code-to-doc drift inspector, autonomous "Why" reasoner, bug friction clusters heatmap, debt hotspots, and live P2P mesh topology visualizer.
|
|
36
|
+
27. **Multi-Repo & Monorepo Cross-Project Mesh (R16)**: Automatic workspace detection across pnpm, npm, bun, lerna, and multi-repo sibling groups; cross-project memory querying with origin package provenance; cross-package contract and entrypoint export auditing; explicit mesh linking (`mesh_links.json`); and shared invariant propagation across the entire mesh.
|
|
34
37
|
|
|
35
38
|
---
|
|
36
39
|
|
|
@@ -31,6 +31,12 @@ Muse Memory is a zero-daemon, file-backed cognitive memory engine designed to gi
|
|
|
31
31
|
| `memory_promote_scope` | **Scoped Promotion** | Promotes memory along 3-tier ladder (`local` $\rightarrow$ `project` $\rightarrow$ `global`) with 5× repeated success policy and universal generalization. |
|
|
32
32
|
| `memory_archive` / `rehydrate` | **Archival Lifecycle** | Evaluates and manages `active` $\rightarrow$ `cold` $\rightarrow$ `dormant` $\rightarrow$ `archived` lifecycle with query rehydration. |
|
|
33
33
|
| `anchor_create` / `verify` / `audit` | **Code Identity** | Creates, verifies, and audits line-independent structural code anchors. |
|
|
34
|
+
| `muse_sync_broadcast` / `ingest` | **P2P Gossip Mesh** | Broadcasts and ingests portable sealed SyncPackets with deduplication and contradiction flagging. |
|
|
35
|
+
| `muse_sync_status` / `pool` | **Sync Coordination** | Tracks peer vector clocks and synchronizes memories bidirectionally via shared drop-directory pool. |
|
|
36
|
+
| `muse_mesh_status` | **Monorepo Topology** | Discovers monorepo workspaces and multi-repo sibling groups with package dependencies and stores. |
|
|
37
|
+
| `muse_mesh_query` | **Cross-Project Query** | Queries memories across the entire workspace mesh with origin package provenance tags. |
|
|
38
|
+
| `muse_mesh_audit` | **Contract Verification** | Audits cross-package dependency contracts, entrypoint exports, and cross-repo code anchors. |
|
|
39
|
+
| `muse_mesh_link` | **Mesh Linking** | Explicitly links or unlinks external repository paths into the workspace mesh registry. |
|
|
34
40
|
|
|
35
41
|
### 🛠️ Core Memory & Lifecycle Tools
|
|
36
42
|
| MCP Tool | Execution Phase | Agent Purpose |
|
|
@@ -2,11 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
## ✅ Completed Milestones
|
|
6
|
+
- **R14: Cross-Agent Knowledge Sync & P2P Gossip Protocol**: Sealed SyncPackets, vector clock causal tracking, filesystem shared pool drop-directory synchronization, contradiction tagging.
|
|
7
|
+
- **R15: Full Web Observability Studio**: Embedded visual web dashboard (`memory studio`) featuring 5-pillar health scorecards, ADR drift inspection, autonomous "Why" reasoner, and live mesh visualization.
|
|
8
|
+
- **R16: Multi-Repo & Monorepo Cross-Project Mesh**: Monorepo auto-discovery (pnpm, npm, bun, lerna), cross-project memory resolution with origin provenance, cross-package contract integrity auditing.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🚀 Active Roadmap & Future Horizons
|
|
13
|
+
|
|
14
|
+
1. **Distributed Agentic Swarm Telemetry**:
|
|
15
|
+
- Aggregate multi-agent task traces and memory application telemetry across distributed agency clusters.
|
|
16
|
+
2. **Autonomous Semantic Refactoring Engine**:
|
|
17
|
+
- Proactive codebase refactoring recommendations driven by historical bug friction clusters and ADR drift patterns.
|
|
18
|
+
3. **Enterprise Role-Based Access & Secret Boundary Enclaves**:
|
|
19
|
+
- Cryptographic memory encryption and tenant-isolated compartmentalization for multi-client agency delivery.
|
package/README.md
CHANGED
|
@@ -360,18 +360,23 @@ memory migrate --all
|
|
|
360
360
|
|
|
361
361
|
---
|
|
362
362
|
|
|
363
|
-
## 🌐 Cognitive Studio Dashboard (`memory ui`)
|
|
363
|
+
## 🌐 Cognitive Studio Dashboard (`memory ui` / `memory studio`)
|
|
364
364
|
|
|
365
|
-
Muse Memory includes an embedded, zero-dependency visual graph studio:
|
|
365
|
+
Muse Memory includes an embedded, zero-dependency visual graph studio and observability dashboard:
|
|
366
366
|
|
|
367
367
|
```bash
|
|
368
|
-
memory
|
|
369
|
-
# or
|
|
368
|
+
memory studio
|
|
369
|
+
# or alias:
|
|
370
370
|
memory ui --port 2222
|
|
371
371
|
```
|
|
372
372
|
|
|
373
373
|
Navigate to `http://localhost:2222` to access:
|
|
374
374
|
- 🌐 **3D Force-Directed Knowledge Graph**: Orbital canvas physics, degree-scaled node radii, and link relationship viewer.
|
|
375
|
+
- 🏥 **5-Pillar Project Health Gate**: Live architectural scorecard (Store Integrity, Native Anchors, Doc-Code Alignment, Anti-Pattern Sentry, Technical Debt) with A-F grading and PASS/WARN/FAIL status.
|
|
376
|
+
- 🏛️ **ADR Registry & Drift Inspector**: First-class Architecture Decision Records and bi-directional code ↔ documentation drift auditor.
|
|
377
|
+
- 🤔 **Autonomous "Why" Reasoner**: Traces historical evolution of symbols/files backwards through past bug fixes and trade-offs to explain architectural rationale before refactoring.
|
|
378
|
+
- 🤝 **P2P Gossip Mesh Topology**: Real-time peer vector clocks, local agent identity, and one-click broadcast/shared pool sync.
|
|
379
|
+
- 🕸️ **Monorepo & Cross-Project Mesh**: Workspace monorepo topology (pnpm, npm, bun, lerna), discovered package nodes, cross-project memory query, and contract drift audit.
|
|
375
380
|
- ⚡ **Active Invariants & Real-Time Handoff**: Live `CURRENT.md` monitor tracking in-flight session status and agent checkpoints.
|
|
376
381
|
- 📚 **Obsidian Wiki Browser**: Concept and entity page reader with full Markdown rendering.
|
|
377
382
|
- 👤 **Persona Studio (`USER.md`)**: 5 archetype picker (`developer`, `designer`, `marketer`, `casual`, `custom`) and live editor.
|
|
@@ -403,6 +408,12 @@ When registered as an MCP server, `musememory` exposes the following native tool
|
|
|
403
408
|
| `memory_archive` / `rehydrate` | **Archival Lifecycle** | Evaluates and manages `active` $\rightarrow$ `cold` $\rightarrow$ `dormant` $\rightarrow$ `archived` lifecycle with query rehydration. |
|
|
404
409
|
| `memory_lifecycle_stats` / `sweep` | **Lifecycle Sweeper** | Reports store-wide lifecycle statistics and executes sweep transitions for aging memories. |
|
|
405
410
|
| `anchor_create` / `verify` / `audit` | **Code Identity** | Creates, verifies, and audits line-independent structural code anchors. |
|
|
411
|
+
| `muse_sync_broadcast` / `ingest` | **P2P Gossip Mesh** | Broadcasts and ingests portable sealed SyncPackets with deduplication and contradiction flagging. |
|
|
412
|
+
| `muse_sync_status` / `pool` | **Sync Coordination** | Tracks peer vector clocks and synchronizes memories bidirectionally via shared drop-directory pool. |
|
|
413
|
+
| `muse_mesh_status` | **Monorepo Topology** | Discovers monorepo workspaces and multi-repo sibling groups with package dependencies and stores. |
|
|
414
|
+
| `muse_mesh_query` | **Cross-Project Query** | Queries memories across the entire workspace mesh with origin package provenance tags. |
|
|
415
|
+
| `muse_mesh_audit` | **Contract Verification** | Audits cross-package dependency contracts, entrypoint exports, and cross-repo code anchors. |
|
|
416
|
+
| `muse_mesh_link` | **Mesh Linking** | Explicitly links or unlinks external repository paths into the workspace mesh registry. |
|
|
406
417
|
| `profile_list` / `profile_switch` | **Tool Management** | Lists and switches task-focused MCP profiles (`core`, `coding`, `debugging`, `review`, `architecture`, `maintenance`). |
|
|
407
418
|
| `get_context` | **Session Start** | Fetches Top-$K$ ranked memories, `USER.md` profile, active `CURRENT.md` constraints, and supports `--tier 0|1|2`. |
|
|
408
419
|
| `search` | **Investigation** | Searches memory units with query, token budget, project, type, and verification filters. |
|
|
@@ -447,7 +458,7 @@ When registered as an MCP server, `musememory` exposes the following native tool
|
|
|
447
458
|
</details>
|
|
448
459
|
|
|
449
460
|
<details>
|
|
450
|
-
<summary><b>💻 Full CLI Command Matrix (
|
|
461
|
+
<summary><b>💻 Full CLI Command Matrix (47 Commands)</b> — <i>Click to expand</i></summary>
|
|
451
462
|
|
|
452
463
|
```bash
|
|
453
464
|
memory <command> [arguments] [flags] # alias: musememory
|
|
@@ -456,6 +467,11 @@ memory <command> [arguments] [flags] # alias: musememory
|
|
|
456
467
|
| Command | Arguments / Flags | Description |
|
|
457
468
|
| :--- | :--- | :--- |
|
|
458
469
|
| `health` | `[--json] [--global]` | **Unified 5-Pillar Project Health Gate**: audits Store Integrity, Code Anchors, Drift, Sentry, and Tech Debt with A-F grading and pass/fail gate. |
|
|
470
|
+
| `studio` / `ui` | `[--port N] [--global]` | **Web Observability Studio**: visual dashboard with 5-pillar health, ADR drift, why reasoner, and live mesh (default port: `2222`). |
|
|
471
|
+
| `sync` | `[status\|broadcast\|ingest\|pool] [flags]` | **P2P Gossip Mesh**: peer vector clock status, packet export, ingestion, and shared pool gossip sync. |
|
|
472
|
+
| `mesh` | `[overview\|query\|check\|link\|unlink\|propagate] [flags]` | **Monorepo & Multi-Repo Mesh**: workspace discovery, cross-project memory query, and contract drift audit. |
|
|
473
|
+
| `adr` | `[record\|list\|supersede] [args]` | **Architecture Decision Records**: record, list, and supersede living architecture decisions. |
|
|
474
|
+
| `anchor` | `[create\|verify\|audit] [args]` | **Code Anchors**: create, verify, and audit line-independent structural code anchors. |
|
|
459
475
|
| `install` | `[path] [--global]` | **One-line complete setup**: initializes `.memory/`, `USER.md`, and auto-wires coding agents. |
|
|
460
476
|
| `doctor` | `[path] [--global]` | **System diagnostic**: checks SQLite primary, schemas, secrets, and MCP connections. |
|
|
461
477
|
| `uninstall` | `[agent] [--purge] [--dry-run]` | **Clean uninstaller**: unwires MCP configs (and optionally purges `.memory/`). |
|
|
@@ -465,7 +481,6 @@ memory <command> [arguments] [flags] # alias: musememory
|
|
|
465
481
|
| `agents` | *(none)* | Scan workstation for 80+ coding agents (Cursor, Claude Code, Antigravity, etc.). |
|
|
466
482
|
| `detect` | *(none)* | Scan workstation and local workspace for 29 external memory systems. |
|
|
467
483
|
| `migrate` | `[--provider P] [--all] [--dry-run] [--overwrite]` | Migrate memories into Muse Memory preserving active/archived state. |
|
|
468
|
-
| `ui` | `[--port N] [--global]` | Launch 6-view Cognitive Studio dashboard (default port: `2222`). |
|
|
469
484
|
| `context` | `[query] [--token-budget N] [--limit N] [--tier 0\|1\|2]` | Retrieve Top-$K$ ranked active context for prompt injection. |
|
|
470
485
|
| `search` | `<query> [--limit N] [--token-budget N] [--type T]` | Ranked multi-factor token search with score breakdown. |
|
|
471
486
|
| `search-transcript` | `<query> [file.jsonl] [--window N]` | Full-text search past transcripts with dialogue context windows. |
|