@dinasor/mnemo-cli 0.0.3 → 0.0.6

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
@@ -6,6 +6,35 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Mnemo u
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.0.6] - 2026-02-22
10
+
11
+ ### Added
12
+ - `npx @dinasor/mnemo-cli@latest` now launches a smart interactive wizard when run in a TTY, guiding users through vector mode enablement, provider selection, and API key setup in a beautiful ANSI UI.
13
+ - Wizard automatically detects existing API keys in the shell environment or project `.env` and skips the key prompt when a real value is already present.
14
+ - API key entered during the wizard is immediately appended to the project's `.env` file and injected into the current process environment.
15
+ - Dependency preflight check displays Node.js, Git, Python, pip, and all required Python packages (with live "checking…" → installed/will-be-installed status) before running the installer.
16
+ - `--yes` / `-y` flag skips the wizard entirely for non-interactive / CI use while still showing the dependency check.
17
+ - Success box at the end of install shows next steps: `vector_health → vector_sync` hint and `mnemo-codebase-optimizer` skill reminder for seeding codebase memory.
18
+
19
+ ### Changed
20
+ - `package.json` version aligned to `0.0.6` (was stale at `0.0.1`).
21
+
22
+ ## [0.0.5] - 2026-02-22
23
+
24
+ ### Fixed
25
+ - Vector `.env` loading now treats blank/unresolved MCP placeholder values (for example `${env:GEMINI_API_KEY}`) as missing and correctly hydrates `GEMINI_API_KEY`/`OPENAI_API_KEY` from project `.env`.
26
+ - Vector provider resolution now ignores unresolved `MNEMO_PROVIDER` placeholders and falls back to valid runtime values (`gemini` when key is present, otherwise `openai`).
27
+ - `.env` key parser now strips BOM characters from key names to prevent silent misses on Windows-generated files.
28
+
29
+ ## [0.0.4] - 2026-02-22
30
+
31
+ ### Added
32
+ - Installers now seed a project-level Cursor skill at `.cursor/skills/mnemo-codebase-optimizer/` (`SKILL.md` + `reference.md`) to accelerate high-signal memory bootstrapping for any codebase.
33
+
34
+ ### Changed
35
+ - Installer-managed `.gitignore` now includes `.cursor/skills/` to keep generated Mnemo skill artifacts out of default project tracking.
36
+ - Windows and POSIX regression tests now assert skill generation so installer behavior stays consistent across platforms.
37
+
9
38
  ## [0.0.3] - 2026-02-21
10
39
 
11
40
  ### Changed
@@ -66,7 +95,10 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Mnemo u
66
95
  - Version string drift between installer metadata and generated output by using `VERSION` as single source of truth.
67
96
  - Python fallback handling in memory query flows that previously depended on a single interpreter name.
68
97
 
69
- [Unreleased]: https://github.com/DiNaSoR/Mnemo/compare/v0.0.3...HEAD
98
+ [Unreleased]: https://github.com/DiNaSoR/Mnemo/compare/v0.0.6...HEAD
99
+ [0.0.6]: https://github.com/DiNaSoR/Mnemo/compare/v0.0.5...v0.0.6
100
+ [0.0.5]: https://github.com/DiNaSoR/Mnemo/compare/v0.0.4...v0.0.5
101
+ [0.0.4]: https://github.com/DiNaSoR/Mnemo/releases/tag/v0.0.4
70
102
  [0.0.3]: https://github.com/DiNaSoR/Mnemo/releases/tag/v0.0.3
71
103
  [0.0.2]: https://github.com/DiNaSoR/Mnemo/releases/tag/v0.0.2
72
104
  [0.0.1]: https://github.com/DiNaSoR/Mnemo/releases/tag/v0.0.1
package/README.md CHANGED
@@ -28,13 +28,24 @@ Run from the **target project root**.
28
28
  ### Any OS (npx, recommended)
29
29
 
30
30
  ```sh
31
- # Installs into your current project folder
31
+ # Interactive wizard guides you through every option (recommended)
32
32
  npx @dinasor/mnemo-cli@latest
33
+ ```
34
+
35
+ The wizard will ask you:
36
+
37
+ 1. **Vector mode** — enable semantic / embedding-based memory recall?
38
+ 2. **Provider** — Gemini (`GEMINI_API_KEY`) or OpenAI (`OPENAI_API_KEY`)?
39
+ 3. **API key** — enter now (saved to `.env`), already in `.env`, or skip.
33
40
 
34
- # Optional flags (cross-platform)
41
+ It then runs a live dependency check (Node · Git · Python · pip · packages) and launches the installer.
42
+
43
+ ```sh
44
+ # Non-interactive (CI / scripting) — skip wizard, use flags directly
45
+ npx @dinasor/mnemo-cli@latest --yes
46
+ npx @dinasor/mnemo-cli@latest --enable-vector --vector-provider gemini --yes
35
47
  npx @dinasor/mnemo-cli@latest --dry-run
36
48
  npx @dinasor/mnemo-cli@latest --force
37
- npx @dinasor/mnemo-cli@latest --enable-vector --vector-provider gemini
38
49
  ```
39
50
 
40
51
  ### Windows (PowerShell)
@@ -79,6 +90,38 @@ vector_sync
79
90
 
80
91
  ---
81
92
 
93
+ ## 🧠 Seeding memory for an existing codebase
94
+
95
+ After installing Mnemo in a project that already has code, use the bundled
96
+ `mnemo-codebase-optimizer` skill to fill memory quickly and accurately.
97
+
98
+ **In Cursor (or any agent that loads `.cursor/skills/`):**
99
+
100
+ 1. Open the project.
101
+ 2. Start a new conversation and say:
102
+
103
+ > Use the **mnemo-codebase-optimizer** skill to seed memory for this codebase.
104
+
105
+ Or load the skill directly:
106
+
107
+ ```text
108
+ @.cursor/skills/mnemo-codebase-optimizer/SKILL.md
109
+ ```
110
+
111
+ 3. The agent will map architecture, ownership, dev workflows, risks, commands,
112
+ and write optimized `memo.md`, `hot-rules.md`, `active-context.md`, lessons,
113
+ and a journal summary — then validate retrieval quality.
114
+
115
+ The skill is installed automatically by `memory.ps1` / `memory_mac.sh` and lives at:
116
+
117
+ ```text
118
+ .cursor/skills/mnemo-codebase-optimizer/
119
+ SKILL.md ← skill prompt + checklist
120
+ reference.md ← memory file templates + retrieval queries
121
+ ```
122
+
123
+ ---
124
+
82
125
  ## 🧩 IDE setup guide (per project)
83
126
 
84
127
  Use the section that matches your IDE. Each project should run Mnemo install once.
@@ -138,6 +181,7 @@ You should see MCP tools:
138
181
  - **Atomic lessons**: `.mnemo/memory/lessons/L-XXX-*.md` + generated lesson index
139
182
  - **Monthly journal + digests**: `.mnemo/memory/journal/YYYY-MM.md` + `.mnemo/memory/digests/*.digest.md`
140
183
  - **Rule enforcement**: `.mnemo/rules/cursor/00-memory-system.mdc` and `.mnemo/rules/agent/00-memory-system.md` (bridged to `.cursor/rules/` and `.agent/rules/`)
184
+ - **Project skill bootstrap**: `.cursor/skills/mnemo-codebase-optimizer/{SKILL.md,reference.md}` for fast codebase-to-memory optimization workflows
141
185
  - **Helper scripts**: `scripts/memory/*` (rebuild, lint, query, add-lesson, add-journal-entry, clear-active)
142
186
  - **Optional SQLite FTS**: `.mnemo/memory/memory.sqlite` when Python is available
143
187
  - **Optional vector layer**: `scripts/memory/mnemo_vector.py` + MCP tools
@@ -191,6 +235,10 @@ Runner triggers:
191
235
  .cursor/ # permanent compatibility bridge
192
236
  memory/
193
237
  rules/
238
+ skills/
239
+ mnemo-codebase-optimizer/
240
+ SKILL.md
241
+ reference.md
194
242
  mcp.json # bridge to .mnemo/mcp/cursor.mcp.json
195
243
 
196
244
  .agent/ # permanent compatibility bridge
@@ -252,6 +300,7 @@ python3 scripts/memory/mnemo_vector.py health
252
300
 
253
301
  ## 📋 Requirements
254
302
 
303
+ - **Node.js 18+** (for `npx @dinasor/mnemo-cli@latest`)
255
304
  - **PowerShell**: Windows PowerShell 5.1+ or PowerShell 7 (`pwsh`)
256
305
  - **Git**
257
306
  - **Optional**: Python 3 for SQLite FTS index
@@ -260,6 +309,9 @@ python3 scripts/memory/mnemo_vector.py health
260
309
  - API key: `OPENAI_API_KEY` or `GEMINI_API_KEY`
261
310
  - Auto-installed deps: `openai`, `sqlite-vec`, `mcp[cli]>=1.2.0,<2.0` (+ `google-genai` for Gemini)
262
311
 
312
+ > The interactive wizard (`npx @dinasor/mnemo-cli@latest`) checks all of these
313
+ > before running the installer and reports which packages are already installed.
314
+
263
315
  ## 🤝 Contributing
264
316
 
265
317
  See [CONTRIBUTING.md](CONTRIBUTING.md). Bug reports and feature requests use the issue templates in [.github/ISSUE_TEMPLATE/](.github/ISSUE_TEMPLATE/). Security issues go to [SECURITY.md](SECURITY.md).
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.6