superlocalmemory 3.4.17 → 3.4.18

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 (78) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -3
  3. package/pyproject.toml +10 -1
  4. package/src/superlocalmemory/cli/setup_wizard.py +30 -0
  5. package/src/superlocalmemory.egg-info/PKG-INFO +4 -1
  6. package/src/superlocalmemory.egg-info/requires.txt +3 -0
  7. package/docs/ARCHITECTURE.md +0 -149
  8. package/docs/api-reference.md +0 -284
  9. package/docs/auto-memory.md +0 -150
  10. package/docs/cli-reference.md +0 -327
  11. package/docs/cloud-backup.md +0 -174
  12. package/docs/compliance.md +0 -191
  13. package/docs/configuration.md +0 -182
  14. package/docs/getting-started.md +0 -102
  15. package/docs/ide-setup.md +0 -261
  16. package/docs/mcp-tools.md +0 -220
  17. package/docs/migration-from-v2.md +0 -170
  18. package/docs/profiles.md +0 -173
  19. package/docs/screenshots/01-dashboard-main.png +0 -0
  20. package/docs/screenshots/02-knowledge-graph.png +0 -0
  21. package/docs/screenshots/03-math-health.png +0 -0
  22. package/docs/screenshots/03-patterns-learning.png +0 -0
  23. package/docs/screenshots/04-learning-dashboard.png +0 -0
  24. package/docs/screenshots/04-recall-lab.png +0 -0
  25. package/docs/screenshots/05-behavioral-analysis.png +0 -0
  26. package/docs/screenshots/05-trust-dashboard.png +0 -0
  27. package/docs/screenshots/06-graph-communities.png +0 -0
  28. package/docs/screenshots/06-settings.png +0 -0
  29. package/docs/screenshots/07-memories-blurred.png +0 -0
  30. package/docs/skill-evolution.md +0 -256
  31. package/docs/troubleshooting.md +0 -310
  32. package/docs/v2-archive/ACCESSIBILITY.md +0 -291
  33. package/docs/v2-archive/ARCHITECTURE.md +0 -886
  34. package/docs/v2-archive/CLI-COMMANDS-REFERENCE.md +0 -425
  35. package/docs/v2-archive/COMPRESSION-README.md +0 -390
  36. package/docs/v2-archive/FRAMEWORK-INTEGRATIONS.md +0 -300
  37. package/docs/v2-archive/MCP-MANUAL-SETUP.md +0 -775
  38. package/docs/v2-archive/MCP-TROUBLESHOOTING.md +0 -787
  39. package/docs/v2-archive/PATTERN-LEARNING.md +0 -228
  40. package/docs/v2-archive/PROFILES-GUIDE.md +0 -453
  41. package/docs/v2-archive/RESET-GUIDE.md +0 -353
  42. package/docs/v2-archive/SEARCH-ENGINE-V2.2.0.md +0 -749
  43. package/docs/v2-archive/SEARCH-INTEGRATION-GUIDE.md +0 -502
  44. package/docs/v2-archive/UI-SERVER.md +0 -262
  45. package/docs/v2-archive/UNIVERSAL-INTEGRATION.md +0 -488
  46. package/docs/v2-archive/V2.2.0-OPTIONAL-SEARCH.md +0 -666
  47. package/docs/v2-archive/WINDOWS-INSTALL-README.txt +0 -34
  48. package/docs/v2-archive/WINDOWS-POST-INSTALL.txt +0 -45
  49. package/docs/v2-archive/example_graph_usage.py +0 -146
  50. package/ui/index.html +0 -1879
  51. package/ui/js/agents.js +0 -192
  52. package/ui/js/auto-settings.js +0 -399
  53. package/ui/js/behavioral.js +0 -276
  54. package/ui/js/clusters.js +0 -206
  55. package/ui/js/compliance.js +0 -252
  56. package/ui/js/core.js +0 -246
  57. package/ui/js/dashboard.js +0 -110
  58. package/ui/js/events.js +0 -178
  59. package/ui/js/fact-detail.js +0 -92
  60. package/ui/js/feedback.js +0 -333
  61. package/ui/js/graph-core.js +0 -447
  62. package/ui/js/graph-filters.js +0 -220
  63. package/ui/js/graph-interactions.js +0 -351
  64. package/ui/js/graph-ui.js +0 -214
  65. package/ui/js/ide-status.js +0 -102
  66. package/ui/js/init.js +0 -45
  67. package/ui/js/learning.js +0 -435
  68. package/ui/js/lifecycle.js +0 -298
  69. package/ui/js/math-health.js +0 -98
  70. package/ui/js/memories.js +0 -264
  71. package/ui/js/modal.js +0 -357
  72. package/ui/js/patterns.js +0 -93
  73. package/ui/js/profiles.js +0 -236
  74. package/ui/js/recall-lab.js +0 -292
  75. package/ui/js/search.js +0 -59
  76. package/ui/js/settings.js +0 -224
  77. package/ui/js/timeline.js +0 -32
  78. package/ui/js/trust-dashboard.js +0 -73
@@ -1,425 +0,0 @@
1
- # SuperLocalMemory V2 - CLI Commands Reference
2
-
3
- **Quick reference for all CLI commands**
4
-
5
- **Version 2.4.1** - Universal integration across 16+ IDEs and CLI tools
6
-
7
- SuperLocalMemory V2 offers three access methods:
8
- 1. **Universal CLI** - Simple `slm` commands (NEW in v2.1.0)
9
- 2. **Original CLI** - Full `superlocalmemoryv2-*` commands
10
- 3. **MCP/Skills** - IDE-specific integration (auto-configured)
11
-
12
- All methods use the same local SQLite database.
13
-
14
- ---
15
-
16
- ## 🎯 Universal CLI Commands (NEW)
17
-
18
- **Simple syntax for everyday use:**
19
-
20
- ### Memory Operations
21
-
22
- ```bash
23
- # Save memory
24
- slm remember "content" --tags tag1,tag2
25
-
26
- # Search memories
27
- slm recall "query"
28
-
29
- # List recent memories
30
- slm list
31
-
32
- # System status
33
- slm status
34
-
35
- # Get project context
36
- slm context
37
- ```
38
-
39
- ### Profile Management
40
-
41
- ```bash
42
- # List profiles
43
- slm profile list
44
-
45
- # Create profile
46
- slm profile create work --description "Work projects"
47
-
48
- # Switch profile
49
- slm profile switch work
50
-
51
- # Delete profile
52
- slm profile delete old-project
53
-
54
- # Show current profile
55
- slm profile current
56
- ```
57
-
58
- ### Knowledge Graph
59
-
60
- ```bash
61
- # Build graph
62
- slm graph build
63
-
64
- # View statistics
65
- slm graph stats
66
-
67
- # Find related memories
68
- slm graph related --id 5
69
-
70
- # View cluster
71
- slm graph cluster --id 1
72
- ```
73
-
74
- ### Pattern Learning
75
-
76
- ```bash
77
- # Update patterns
78
- slm patterns update
79
-
80
- # List patterns
81
- slm patterns list 0.5
82
-
83
- # Get coding identity
84
- slm patterns context 0.7
85
-
86
- # Pattern statistics
87
- slm patterns stats
88
- ```
89
-
90
- ### Aider Integration
91
-
92
- ```bash
93
- # Launch Aider with auto-context injection
94
- aider-smart "Add authentication to the API"
95
-
96
- # Regular Aider works too
97
- aider
98
- ```
99
-
100
- ---
101
-
102
- ## 📊 Original CLI Commands (Still Supported)
103
-
104
- All original commands continue to work unchanged. Use these if you prefer explicit paths or are scripting.
105
-
106
- ### Check System Status
107
- ```bash
108
- superlocalmemoryv2-status
109
- # OR
110
- ~/.superlocalmemory/bin/superlocalmemoryv2-status
111
- ```
112
- Shows: total memories, graph stats, clusters, patterns, database size
113
-
114
- ---
115
-
116
- ## 👤 Profile Management (Original Commands)
117
-
118
- **Default profile is always available.** Use profiles to maintain separate memory contexts for different projects, clients, or AI personalities.
119
-
120
- ### List All Profiles
121
- ```bash
122
- superlocalmemoryv2-profile list
123
- # OR
124
- ~/.superlocalmemory/bin/superlocalmemoryv2-profile list
125
- ```
126
- Shows all profiles with active marker (→)
127
-
128
- ### Show Current Active Profile
129
- ```bash
130
- superlocalmemoryv2-profile current
131
- # OR
132
- ~/.superlocalmemory/bin/superlocalmemoryv2-profile current
133
- ```
134
- Shows current profile details and memory count
135
-
136
- ### Create New Profile
137
- ```bash
138
- # Empty profile
139
- superlocalmemoryv2-profile create work --description "Work projects"
140
-
141
- # Copy from current profile
142
- superlocalmemoryv2-profile create personal --from-current
143
- ```
144
-
145
- ### Switch Profile
146
- ```bash
147
- superlocalmemoryv2-profile switch work
148
- ```
149
- **⚠️ Restart your IDE after switching if using MCP integration.**
150
-
151
- ### Delete Profile
152
- ```bash
153
- superlocalmemoryv2-profile delete old-project
154
- ```
155
- - Cannot delete "default" profile
156
- - Cannot delete currently active profile
157
- - Creates backup before deletion
158
- - Requires typing profile name to confirm
159
-
160
- ---
161
-
162
- ## 🔄 Reset Commands (Destructive - Use with Caution)
163
-
164
- ### Check Status First
165
- ```bash
166
- slm status
167
- # OR
168
- superlocalmemoryv2-status
169
- ```
170
- **Always check status before any reset operation!**
171
-
172
- ### Soft Reset
173
- ```bash
174
- superlocalmemoryv2-reset soft
175
- # OR
176
- ~/.superlocalmemory/bin/superlocalmemoryv2-reset soft
177
- ```
178
- - Clears all memories from current profile
179
- - Clears graph, patterns, tree structure
180
- - Keeps V2 schema intact
181
- - Creates automatic backup
182
- - Prompt: "Proceed with soft reset? (yes/no)"
183
-
184
- ### Hard Reset
185
- ```bash
186
- superlocalmemoryv2-reset hard --confirm
187
- # OR
188
- ~/.superlocalmemory/bin/superlocalmemoryv2-reset hard --confirm
189
- ```
190
- - ⚠️ **NUCLEAR OPTION** ⚠️
191
- - Deletes entire database file
192
- - Reinitializes fresh V2 schema
193
- - Creates automatic backup
194
- - Prompt: Type "DELETE EVERYTHING" to confirm
195
-
196
- ### Layer Reset (Surgical)
197
- ```bash
198
- superlocalmemoryv2-reset layer --layers graph patterns
199
- # OR
200
- ~/.superlocalmemory/bin/superlocalmemoryv2-reset layer --layers graph patterns
201
- ```
202
- Available layers:
203
- - `graph` - Clear graph nodes, edges, clusters
204
- - `patterns` - Clear learned identity patterns
205
- - `tree` - Clear hierarchical tree structure
206
- - `archive` - Clear compressed memory archives
207
-
208
- Prompt: "Proceed with layer reset? (yes/no)"
209
-
210
- ---
211
-
212
- ## 🔍 Graph Operations
213
-
214
- ### Build Knowledge Graph
215
- ```bash
216
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py build
217
- ```
218
- Builds graph from all memories using TF-IDF + Leiden clustering
219
-
220
- ### Show Graph Statistics
221
- ```bash
222
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py stats
223
- ```
224
- Shows: nodes, edges, clusters with names and member counts
225
-
226
- ### Find Related Memories
227
- ```bash
228
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py related --memory-id 5
229
- ```
230
- Shows memories connected in the knowledge graph
231
-
232
- ### View Cluster Members
233
- ```bash
234
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py cluster --cluster-id 1
235
- ```
236
- Lists all memories in a specific cluster
237
-
238
- ---
239
-
240
- ## 🧠 Pattern Learning
241
-
242
- ### Update Patterns
243
- ```bash
244
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py update
245
- ```
246
- Analyzes all memories and learns new identity patterns
247
-
248
- ### List Learned Patterns
249
- ```bash
250
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py list 0.1
251
- ```
252
- Shows patterns with confidence >= 0.1 (10%)
253
-
254
- ### Get Claude Context
255
- ```bash
256
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py context 0.7
257
- ```
258
- Outputs patterns formatted for Claude with confidence >= 0.7 (70%)
259
-
260
- ### Show Pattern Statistics
261
- ```bash
262
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py stats
263
- ```
264
- Shows pattern count, avg confidence, types, categories
265
-
266
- ---
267
-
268
- ## 📦 Traditional Memory Operations
269
-
270
- ### Add Memory
271
- ```bash
272
- python ~/.superlocalmemory/memory_store_v2.py add "content" --tags tag1,tag2
273
- ```
274
-
275
- ### Search Memories
276
- ```bash
277
- python ~/.superlocalmemory/memory_store_v2.py search "query"
278
- ```
279
-
280
- ### List Recent Memories
281
- ```bash
282
- python ~/.superlocalmemory/memory_store_v2.py list 20
283
- ```
284
-
285
- ### Get Stats
286
- ```bash
287
- python ~/.superlocalmemory/memory_store_v2.py stats
288
- ```
289
-
290
- ---
291
-
292
- ## ⚙️ Adding Commands to Shell
293
-
294
- ### Option 1: Bash Aliases
295
- Add to `~/.bashrc` or `~/.zshrc`:
296
-
297
- ```bash
298
- # SuperLocalMemory V2 aliases
299
- alias memory-status='~/.superlocalmemory/bin/memory-status'
300
- alias memory-reset='~/.superlocalmemory/bin/memory-reset'
301
- alias memory-profile='~/.superlocalmemory/bin/memory-profile'
302
- alias memory-graph='~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py'
303
- alias memory-patterns='~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py'
304
- ```
305
-
306
- Then reload: `source ~/.bashrc` or `source ~/.zshrc`
307
-
308
- ### Option 2: Add to PATH
309
- Add to `~/.bashrc` or `~/.zshrc`:
310
-
311
- ```bash
312
- export PATH="$HOME/.claude-memory/bin:$PATH"
313
- ```
314
-
315
- Then reload and use short commands:
316
- ```bash
317
- memory-status
318
- memory-reset status
319
- memory-profile list
320
- ```
321
-
322
- ---
323
-
324
- ## 🔐 Safety Features
325
-
326
- All destructive commands include:
327
- - ✅ Confirmation prompts
328
- - ✅ Automatic backups
329
- - ✅ Clear warnings
330
- - ✅ Cannot delete default profile
331
- - ✅ Cannot delete active profile
332
-
333
- ### Backup Location
334
- ```bash
335
- ~/.superlocalmemory/backups/
336
- ```
337
-
338
- Format: `pre-reset-YYYYMMDD-HHMMSS.db`
339
-
340
- ### Restore from Backup
341
- ```bash
342
- cp ~/.superlocalmemory/backups/pre-reset-20260205-143000.db \
343
- ~/.superlocalmemory/memory.db
344
- ```
345
-
346
- ---
347
-
348
- ## 📝 Help Commands
349
-
350
- ### Memory Status
351
- ```bash
352
- ~/.superlocalmemory/bin/memory-status
353
- # No --help flag, just shows status
354
- ```
355
-
356
- ### Memory Reset
357
- ```bash
358
- ~/.superlocalmemory/bin/memory-reset --help
359
- ```
360
-
361
- ### Memory Profile
362
- ```bash
363
- ~/.superlocalmemory/bin/memory-profile --help
364
- ```
365
-
366
- ---
367
-
368
- ## 🎯 Common Workflows
369
-
370
- ### Daily Usage
371
- ```bash
372
- # Standalone: Use Python commands directly
373
- python ~/.superlocalmemory/memory_store_v2.py add "content" --tags tag1
374
-
375
- # Optional Claude CLI: Use /remember skill
376
- # /remember "content"
377
- ```
378
-
379
- ### Weekly Maintenance
380
- ```bash
381
- # Rebuild graph (as memories grow)
382
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/graph_engine.py build
383
-
384
- # Update patterns
385
- ~/.superlocalmemory/venv/bin/python ~/.superlocalmemory/pattern_learner.py update
386
- ```
387
-
388
- ### Switching Contexts
389
- ```bash
390
- # Check current profile
391
- memory-profile current
392
-
393
- # Switch to work profile
394
- memory-profile switch work
395
-
396
- # If using Claude CLI integration, restart it
397
- # If using standalone, no restart needed
398
-
399
- # Verify switch
400
- memory-profile current
401
- ```
402
-
403
- ### Fresh Start
404
- ```bash
405
- # Check what you have
406
- memory-status
407
-
408
- # Soft reset (keeps schema)
409
- memory-reset soft
410
- # Type: yes
411
-
412
- # Or create new profile instead
413
- memory-profile create fresh
414
- memory-profile switch fresh
415
- ```
416
-
417
- ---
418
-
419
- **All commands are safe by default with warnings and confirmations for destructive operations.**
420
-
421
- For complete documentation, see:
422
- - `~/.superlocalmemory/docs/README.md` - Main documentation
423
- - `~/.superlocalmemory/RESET-GUIDE.md` - Reset procedures
424
- - `~/.superlocalmemory/PROFILES-GUIDE.md` - Profile management
425
- - `docs/ARCHITECTURE.md` - All features