eagle-mem 4.9.5 → 4.9.7

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
@@ -11,7 +11,7 @@
11
11
 
12
12
  Eagle Mem turns AI coding sessions into compounding project knowledge. It gives Claude Code and Codex the same local memory, labels which agent created each memory, blocks risky release commands until affected features are verified, and lets broad work split into durable worker lanes.
13
13
 
14
- **v4.9.5 hardens hooks and SQLite:** Stop hooks save immediately and queue LLM enrichment in the background instead of launching nested agents during turn shutdown. SQLite calls also resolve through one FTS5-capable binary selector, so Android SDK or other PATH shims do not accidentally break Eagle Mem.
14
+ **v4.9.7 focuses on distribution trust and visible UX:** `eagle-mem doctor` now checks the installed runtime, selected SQLite/FTS5 binary, hooks, statusline wiring, install manifest, and runtime drift. Install/update show a clear "what will change" preflight, uninstall supports dry-run cleanup with backups, and statuslines now resolve the live session project so brand-new projects do not inherit old memory/session counts.
15
15
 
16
16
  **Website:** [Product](https://eagleisbatman.github.io/eagle-mem/) |
17
17
  [Architecture](https://eagleisbatman.github.io/eagle-mem/architecture.html) |
@@ -63,9 +63,10 @@ Both agents share the same SQLite database at `~/.eagle-mem/memory.db`, and capt
63
63
  ```bash
64
64
  npm install -g eagle-mem
65
65
  eagle-mem install
66
+ eagle-mem doctor
66
67
  ```
67
68
 
68
- That's it. Open Claude Code or Codex in any project directory. Eagle Mem activates automatically.
69
+ That's it. `doctor` should report a healthy install. Open Claude Code or Codex in any project directory and Eagle Mem activates automatically.
69
70
 
70
71
  Everything is automatic from here. Eagle Mem scans your codebase, indexes source files, captures session summaries, mirrors Claude's memories and tasks, learns which commands are noisy, prunes stale data, and installs patch bug fixes — all in the background via hooks.
71
72
 
@@ -134,10 +135,11 @@ Eagle Mem prevents Claude from repeating past mistakes:
134
135
  | Command | What It Does |
135
136
  |---------|-------------|
136
137
  | `eagle-mem install` | First-time setup: hooks, database, skills |
137
- | `eagle-mem update` | Re-deploy hooks and run migrations after `npm update` |
138
- | `eagle-mem uninstall` | Remove hooks and optionally delete data |
138
+ | `eagle-mem update` | Re-deploy hooks, refresh the install manifest, and run migrations after `npm update` |
139
+ | `eagle-mem uninstall` | Remove hooks/statuslines/skills/instruction blocks, with `--dry-run` and backups |
139
140
  | `eagle-mem search` | Search past sessions, memories, and code |
140
141
  | `eagle-mem health` | Diagnose pipeline health and background automation |
142
+ | `eagle-mem doctor` | Verify installed runtime files, hooks, SQLite/FTS5, statusline, manifest, and drift |
141
143
  | `eagle-mem config` | View or change LLM provider and token-guard settings |
142
144
  | `eagle-mem updates` | View or change auto-update policy |
143
145
  | `eagle-mem guard` | Manage regression guardrails for files |
@@ -152,6 +154,35 @@ Eagle Mem prevents Claude from repeating past mistakes:
152
154
  | `eagle-mem scan` | Scan codebase and generate overview |
153
155
  | `eagle-mem index` | Index source files for FTS5 code search |
154
156
 
157
+ ### Trust and Recovery
158
+
159
+ Eagle Mem now treats installation as a visible product surface, not a black box:
160
+
161
+ ```bash
162
+ eagle-mem doctor # human install report
163
+ eagle-mem doctor --json # automation-friendly report
164
+ eagle-mem uninstall --dry-run
165
+ ```
166
+
167
+ Install and update print the files/configs they intend to touch before they change the runtime. The installed runtime writes `~/.eagle-mem/install-manifest.json` with file sizes, modes, and SHA-256 hashes, so `doctor` can tell whether hooks, scripts, libraries, and database helpers still match the package that installed them.
168
+
169
+ Uninstall removes Claude Code and Codex hook registrations, Eagle Mem instruction blocks, custom Claude statusline integration, and skill links. It backs up user config files before editing them and keeps `~/.eagle-mem/memory.db` unless you explicitly confirm data deletion.
170
+
171
+ ### v4.9.7 Patch
172
+
173
+ This patch is a release-readiness and UX-hardening pass:
174
+
175
+ - `eagle-mem doctor` reports the install footprint, selected SQLite binary, FTS5 availability, hook registration, statusline wiring, install-manifest health, and runtime drift.
176
+ - Install/update show a clear preflight plan, refresh the manifest, and keep rollback backups aware of the manifest/version files.
177
+ - Uninstall supports `--dry-run`, backs up config files, removes Claude/Codex hook and instruction integrations, cleans up skill links, and preserves runtime data by default.
178
+ - Claude statusline/HUD rendering is centralized through `scripts/statusline-em.sh --hud`.
179
+ - Statusline project resolution now prefers the live session row and avoids `$HOME` ancestor leakage, so new projects show their own sessions/memories instead of stale counts from older workspaces.
180
+ - Default hook/search/memory output follows the visible-surface UX contract: branded, compact, freshness-aware, and free of raw IDs/paths unless `--raw`, `--debug`, or `--json` is requested.
181
+
182
+ ### v4.9.6 Patch
183
+
184
+ `eagle-mem update` now queues project-key backfill in the background by default, so install/update can finish, write the installed version marker, and return control to the user. Use `EAGLE_MEM_UPDATE_BACKFILL=sync eagle-mem update` only when you intentionally want to wait for a full backfill.
185
+
155
186
  ### v4.9.5 Patch
156
187
 
157
188
  Stop hooks now use a fast path: they save heuristic summaries immediately, extract explicit summary blocks when present, and queue LLM enrichment in the background so Codex/Claude lifecycle hooks do not time out. SQLite access now goes through a shared FTS5-capable binary resolver used by migrations, DB helpers, updater backups, install checks, and the statusline, avoiding Android SDK or other PATH shims that shadow working SQLite builds.