superlocalmemory 3.0.7 → 3.0.9

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/README.md CHANGED
@@ -38,8 +38,8 @@ SuperLocalMemory gives AI assistants persistent, structured memory that survives
38
38
 
39
39
  | Metric | Score | Context |
40
40
  |:-------|:-----:|:--------|
41
+ | LoCoMo (Mode C, full power) | **87.7%** | On conv-30, 81 scored questions |
41
42
  | LoCoMo (Mode A, zero-LLM) | **62.3%** | Highest zero-LLM score. No cloud dependency. |
42
- | LoCoMo (Mode C, full) | **~78%** | Competitive with funded systems ($10M+) |
43
43
  | Math layer improvement | **+12.7pp** | Average gain from mathematical foundations |
44
44
  | Multi-hop improvement | **+12pp** | 50% vs 38% (math on vs off) |
45
45
 
@@ -159,6 +159,27 @@ Add to your IDE's MCP config:
159
159
 
160
160
  24 MCP tools available: `remember`, `recall`, `search`, `fetch`, `list_recent`, `get_status`, `build_graph`, `switch_profile`, `health`, `consistency_check`, `recall_trace`, and more.
161
161
 
162
+ ### Web Dashboard (17 tabs)
163
+
164
+ ```bash
165
+ slm dashboard # Opens at http://localhost:8765
166
+ ```
167
+
168
+ The V3 dashboard provides real-time visibility into your memory system:
169
+
170
+ - **Dashboard** — Mode switcher, health score, quick store/recall
171
+ - **Recall Lab** — Search with per-channel score breakdown (Semantic, BM25, Entity, Temporal)
172
+ - **Knowledge Graph** — Interactive entity relationship visualization
173
+ - **Memories** — Browse, search, and manage stored memories
174
+ - **Trust Dashboard** — Bayesian trust scores per agent with Beta distribution visualization
175
+ - **Math Health** — Fisher-Rao confidence, Sheaf consistency, Langevin lifecycle state
176
+ - **Compliance** — GDPR export/erasure, EU AI Act status, audit trail
177
+ - **Learning** — Adaptive ranking progress, behavioral patterns, outcome tracking
178
+ - **IDE Connections** — Connected AI tools status and configuration
179
+ - **Settings** — Mode, provider, auto-capture/recall configuration
180
+
181
+ > The dashboard runs locally at `http://localhost:8765`. No data leaves your machine.
182
+
162
183
  ---
163
184
 
164
185
  ## V3 Engine Features
@@ -215,7 +236,7 @@ Evaluated on the [LoCoMo benchmark](https://arxiv.org/abs/2402.09714) (Long Conv
215
236
  | EverMemOS | 92.3% | Yes | No | No |
216
237
  | MemMachine | 91.7% | Yes | No | No |
217
238
  | Hindsight | 89.6% | Yes | No | No |
218
- | **SLM V3 Mode C** | **~78%** | Optional | **Yes** | Partial |
239
+ | **SLM V3 Mode C** | **87.7%** | Optional | **Yes** | Partial |
219
240
  | **SLM V3 Mode A** | **62.3%** | **No** | **Yes** | **Yes** |
220
241
  | Mem0 ($24M) | 34.2% F1 | Yes | Partial | No |
221
242
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlocalmemory",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "description": "Information-geometric agent memory with mathematical guarantees. 4-channel retrieval, Fisher-Rao similarity, zero-LLM mode, EU AI Act compliant. Works with Claude, Cursor, Windsurf, and 17+ AI tools.",
5
5
  "keywords": [
6
6
  "ai-memory",
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "superlocalmemory"
3
- version = "3.0.0"
3
+ version = "3.0.8"
4
4
  description = "Information-geometric agent memory with mathematical guarantees"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -193,7 +193,20 @@ def create_app() -> FastAPI:
193
193
 
194
194
  @application.on_event("startup")
195
195
  async def startup_event():
196
- """Register Event Bus listener for SSE bridge on startup."""
196
+ """Initialize V3 engine and event bus on startup."""
197
+ # Initialize V3 engine for dashboard API routes
198
+ try:
199
+ from superlocalmemory.core.config import SLMConfig
200
+ from superlocalmemory.core.engine import MemoryEngine
201
+ config = SLMConfig.load()
202
+ engine = MemoryEngine(config)
203
+ engine.initialize()
204
+ application.state.engine = engine
205
+ logger.info("V3 engine initialized for dashboard")
206
+ except Exception as exc:
207
+ logger.warning("V3 engine init failed: %s (V3 API routes will be unavailable)", exc)
208
+ application.state.engine = None
209
+
197
210
  register_event_listener()
198
211
 
199
212
  return application
@@ -329,6 +329,32 @@ class V2Migrator:
329
329
  except Exception as exc:
330
330
  stats["steps"].append(f"V2 conversion partial: {exc}")
331
331
 
332
+ # Step 4c: Create views for V2 dashboard compatibility
333
+ try:
334
+ v2_views = {
335
+ "graph_nodes": "_v2_bak_graph_nodes",
336
+ "graph_clusters": "_v2_bak_graph_clusters",
337
+ "sessions": "_v2_bak_sessions",
338
+ "memory_events": "_v2_bak_memory_events",
339
+ "identity_patterns": "_v2_bak_identity_patterns",
340
+ "pattern_examples": "_v2_bak_pattern_examples",
341
+ "creator_metadata": "_v2_bak_creator_metadata",
342
+ "agent_registry": "_v2_bak_agent_registry",
343
+ }
344
+ view_count = 0
345
+ for view_name, source in v2_views.items():
346
+ try:
347
+ conn.execute(f'SELECT 1 FROM "{source}" LIMIT 1')
348
+ conn.execute(f'DROP VIEW IF EXISTS "{view_name}"')
349
+ conn.execute(f'CREATE VIEW "{view_name}" AS SELECT * FROM "{source}"')
350
+ view_count += 1
351
+ except Exception:
352
+ pass
353
+ conn.commit()
354
+ stats["steps"].append(f"Created {view_count} V2 compatibility views")
355
+ except Exception:
356
+ pass
357
+
332
358
  conn.close()
333
359
  stats["steps"].append("Created V3 schema")
334
360
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: superlocalmemory
3
- Version: 3.0.0
3
+ Version: 3.0.7
4
4
  Summary: Information-geometric agent memory with mathematical guarantees
5
5
  Author-email: Varun Pratap Bhardwaj <admin@superlocalmemory.com>
6
6
  License: MIT
@@ -130,13 +130,35 @@ Query ──► Strategy Classifier ──► 4 Parallel Channels:
130
130
 
131
131
  ---
132
132
 
133
+ ## Prerequisites
134
+
135
+ | Requirement | Version | Why |
136
+ |:-----------|:--------|:----|
137
+ | **Node.js** | 14+ | npm package manager |
138
+ | **Python** | 3.11+ | V3 engine runtime |
139
+ | **pip** | Latest | Python dependency installer |
140
+
141
+ > All Python dependencies are installed automatically during `npm install`. You don't need to run pip manually. If any dependency fails, the installer shows clear instructions.
142
+
143
+ ---
144
+
133
145
  ## Quick Start
134
146
 
135
- ### Install via npm (recommended)
147
+ ### Install via npm (recommended — one command, everything included)
136
148
 
137
149
  ```bash
138
150
  npm install -g superlocalmemory
139
- slm setup
151
+ ```
152
+
153
+ This single command:
154
+ - Installs the V3 engine and CLI
155
+ - Auto-installs all Python dependencies (numpy, scipy, networkx, sentence-transformers, etc.)
156
+ - Creates the data directory at `~/.superlocalmemory/`
157
+ - Detects and guides V2 migration if applicable
158
+
159
+ Then configure:
160
+ ```bash
161
+ slm setup # Choose mode, configure provider
140
162
  ```
141
163
 
142
164
  ### Install via pip