@shahmilsaari/memory-core 0.2.16 → 0.2.17
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 +79 -5
- package/dist/chunk-T4WJR6L6.js +1287 -0
- package/dist/cli.js +341 -1463
- package/dist/dashboard/assets/index-BCu-gBna.js +2 -0
- package/dist/dashboard/assets/index-BxS_xPdw.css +1 -0
- package/dist/dashboard/index.html +13 -0
- package/dist/dashboard-server-EVN4FL4L.js +547 -0
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
You decide the architecture. memory-core remembers it. Every AI tool — Copilot, Cursor, Claude Code, Windsurf, and 10 more — reads those rules before writing a single line of code.
|
|
6
6
|
|
|
7
|
+
Website: https://memory-core.shahmilsaari.my/
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
10
|
npx @shahmilsaari/memory-core init
|
|
9
11
|
```
|
|
@@ -171,9 +173,33 @@ For the full CLI reference, examples, and command behavior notes, see [COMMANDS.
|
|
|
171
173
|
New setup-management commands:
|
|
172
174
|
- `memory-core status` — show project name, provider/model, agents, hook state, generated files, and health checks
|
|
173
175
|
- `memory-core auto-sync` — show or change automatic agent file regeneration (`on`, `off`, or `status`)
|
|
176
|
+
- `memory-core uninstall` — remove memory-core from the current project; use `reset` when you only need to regenerate files
|
|
174
177
|
- `memory-core provider set <provider>` — switch code-checking provider without rerunning `init`
|
|
175
178
|
- `memory-core model set <model>` — update chat or embedding model from the CLI
|
|
176
179
|
- `memory-core model doctor` — verify database, Ollama, model installation, and cloud API key presence
|
|
180
|
+
- `memory-core dashboard` — open the local Svelte command center with live WebSocket updates
|
|
181
|
+
|
|
182
|
+
## User Documentation
|
|
183
|
+
|
|
184
|
+
The public docs focus on how to install, use, configure, reset, and uninstall memory-core:
|
|
185
|
+
|
|
186
|
+
- Website: https://memory-core.shahmilsaari.my/
|
|
187
|
+
- Docs: https://memory-core.shahmilsaari.my/docs/
|
|
188
|
+
- Quick start and installation: `website/docs/intro.md`, `website/docs/installation.md`
|
|
189
|
+
- Daily usage: `website/docs/workflow.md`
|
|
190
|
+
- CLI reference: `website/docs/commands.md`
|
|
191
|
+
- Dashboard and model setup: `website/docs/dashboard.md`, `website/docs/models.md`
|
|
192
|
+
- Reset and uninstall behavior: `website/docs/cleanup.md`
|
|
193
|
+
|
|
194
|
+
The static homepage remains `index.html` at `/`. Public docs are plain static HTML generated from the markdown files in `website/docs/` and served under `/docs/`.
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
npm run site:start # build and preview the full site at / and /docs/
|
|
198
|
+
npm run site:build # assemble static output in site-build/
|
|
199
|
+
npm run site:serve # serve an existing site-build/ locally
|
|
200
|
+
npm run docs:build # build only the static docs app
|
|
201
|
+
npm run docs:serve # preview the existing site-build/ output
|
|
202
|
+
```
|
|
177
203
|
|
|
178
204
|
### `init` — Set up a project
|
|
179
205
|
|
|
@@ -323,6 +349,29 @@ Only checks source files — ignores `node_modules`, `dist`, config files, JSON,
|
|
|
323
349
|
|
|
324
350
|
---
|
|
325
351
|
|
|
352
|
+
### `dashboard` — Local command center
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
npx @shahmilsaari/memory-core dashboard
|
|
356
|
+
npx @shahmilsaari/memory-core dashboard --port 5178
|
|
357
|
+
npx @shahmilsaari/memory-core dashboard --path src/
|
|
358
|
+
npx @shahmilsaari/memory-core dashboard --no-watch
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Starts a local Svelte dashboard at `http://localhost:5178` by default. The dashboard includes:
|
|
362
|
+
|
|
363
|
+
- WebSocket live feed for `watch` events
|
|
364
|
+
- terminal-style violation details with file, line, rule, reason, issue, fix, and code context
|
|
365
|
+
- PostgreSQL connection status, database name, host, and redacted URL
|
|
366
|
+
- code-checking model status, resolved Ollama model, embedding model, and provider
|
|
367
|
+
- architecture-aware rule browser filtered to the project initialized during `init`
|
|
368
|
+
- stats for most violated rules and files
|
|
369
|
+
- live reload for `.env`, `.memory-core.env`, `.memory-core.json`, and `.memory-core-stats.json`
|
|
370
|
+
|
|
371
|
+
The WebSocket endpoint is local: `ws://localhost:5178/ws`. Runtime config changes are reloaded and pushed to the browser without restarting the dashboard after the dashboard process is running.
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
326
375
|
### `check` — Manual check (for CI)
|
|
327
376
|
|
|
328
377
|
```bash
|
|
@@ -527,15 +576,36 @@ Shows which rules fire most often and which files have the most violations. Usef
|
|
|
527
576
|
|
|
528
577
|
---
|
|
529
578
|
|
|
530
|
-
### `reset`
|
|
579
|
+
### `reset` vs `uninstall` — Cleanup commands
|
|
580
|
+
|
|
581
|
+
Use `reset` when you want to keep using memory-core but need to regenerate or reinitialize project files. Use `uninstall` when you want memory-core removed from the current project.
|
|
582
|
+
|
|
583
|
+
| Command | User intent | What it removes | Database |
|
|
584
|
+
|---|---|---|---|
|
|
585
|
+
| `reset --soft` | Regenerate agent files from a clean slate | Generated agent files only | Kept |
|
|
586
|
+
| `reset` | Reinitialize memory-core in this project | Generated agent files, `.memory-core.json`, hook | Kept |
|
|
587
|
+
| `reset --db` | Reinitialize and clear stored memories | Same as `reset` | Drops `memories` after confirmation |
|
|
588
|
+
| `uninstall` | Remove memory-core from this project | Generated files, config/env/state, CI workflow, hook, `.gitignore` block | Kept |
|
|
589
|
+
| `uninstall --db` | Remove project footprint and stored memory table | Same as `uninstall` | Drops `memories` after confirmation |
|
|
590
|
+
|
|
591
|
+
### `reset` — Reinitialize generated files
|
|
531
592
|
|
|
532
593
|
```bash
|
|
533
|
-
npx @shahmilsaari/memory-core reset # remove
|
|
594
|
+
npx @shahmilsaari/memory-core reset # remove generated files + .memory-core.json + hook
|
|
534
595
|
npx @shahmilsaari/memory-core reset --soft # keep config and DB, remove only generated files
|
|
535
596
|
npx @shahmilsaari/memory-core reset --db # also drop the memories table from the database
|
|
536
597
|
```
|
|
537
598
|
|
|
538
|
-
|
|
599
|
+
Use this when memory-core should stay part of the project, but generated files need to be rebuilt or the project config should be recreated. Use `--soft` for the safest regeneration path.
|
|
600
|
+
|
|
601
|
+
### `uninstall` — Remove memory-core from a project
|
|
602
|
+
|
|
603
|
+
```bash
|
|
604
|
+
npx @shahmilsaari/memory-core uninstall # remove generated files, config, env, hook, stats, and gitignore block
|
|
605
|
+
npx @shahmilsaari/memory-core uninstall --db # also drop the memories table after confirmation
|
|
606
|
+
```
|
|
607
|
+
|
|
608
|
+
Use this when you want the project back to a pre-memory-core state. Database deletion is opt-in and only happens with `--db`.
|
|
539
609
|
|
|
540
610
|
---
|
|
541
611
|
|
|
@@ -645,6 +715,9 @@ npx @shahmilsaari/memory-core search "caching strategy"
|
|
|
645
715
|
# Inspect current setup, provider, model, and health checks
|
|
646
716
|
npx @shahmilsaari/memory-core status
|
|
647
717
|
|
|
718
|
+
# Open the local command center with live watch/config updates
|
|
719
|
+
npx @shahmilsaari/memory-core dashboard
|
|
720
|
+
|
|
648
721
|
# Switch code-checking provider or model without rerunning init
|
|
649
722
|
npx @shahmilsaari/memory-core provider set openai --model gpt-4o-mini --api-key $OPENAI_API_KEY
|
|
650
723
|
npx @shahmilsaari/memory-core model set qwen2.5-coder --provider ollama
|
|
@@ -759,15 +832,16 @@ npm run smoke:npx
|
|
|
759
832
|
| ✓ | Export / import — portable memories.json for version control and team sharing |
|
|
760
833
|
| ✓ | List / remove / edit — full CRUD for stored memories |
|
|
761
834
|
| ✓ | False positive tagging — `ignore` command saves exceptions for hook and watcher |
|
|
762
|
-
| ✓ |
|
|
835
|
+
| ✓ | Cleanup commands — `reset` regenerates/reinitializes files; `uninstall` removes memory-core from a project |
|
|
763
836
|
| ✓ | Test suite — smoke tests for all core commands and providers |
|
|
764
837
|
| ✓ | Multi-provider code checking — Ollama, OpenAI, Anthropic, MiniMax |
|
|
765
838
|
| ✓ | Context-aware retrieval — surface the most relevant rules for the file being edited |
|
|
766
839
|
| ✓ | Setup management — `status`, `provider set`, `model set`, `model doctor` |
|
|
767
840
|
| ✓ | `--debug` flag — verbose output for diagnosing hook and watcher issues |
|
|
841
|
+
| ✓ | Local Svelte dashboard — WebSocket live feed, runtime status, stats, and architecture-filtered rules |
|
|
842
|
+
| ✓ | Live config reload — dashboard updates when `.env`, `.memory-core.env`, project config, or stats change |
|
|
768
843
|
| | Model guidance during init — recommend a model based on machine specs |
|
|
769
844
|
| | Violation → rule pipeline — auto-suggest a new rule when the same violation repeats |
|
|
770
|
-
| | Rule analytics dashboard — visual breakdown of rule coverage and violations |
|
|
771
845
|
| | Team sync — shared database so the whole team works from the same rule set |
|
|
772
846
|
|
|
773
847
|
---
|