eagle-mem 4.9.6 → 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 +31 -4
- package/architecture.html +1791 -0
- package/bin/eagle-mem +1 -0
- package/db/migrate.sh +13 -2
- package/docs/visible-surface-ux-contract.md +53 -0
- package/hooks/post-tool-use.sh +2 -2
- package/hooks/pre-tool-use.sh +6 -6
- package/hooks/session-start.sh +188 -1
- package/hooks/user-prompt-submit.sh +35 -12
- package/lib/common.sh +361 -21
- package/lib/db-mirrors.sh +3 -6
- package/lib/db-summaries.sh +10 -1
- package/lib/hooks-posttool.sh +44 -10
- package/lib/updater.sh +12 -0
- package/package.json +4 -2
- package/scripts/doctor.sh +262 -0
- package/scripts/feature.sh +37 -11
- package/scripts/health.sh +10 -7
- package/scripts/help.sh +1 -0
- package/scripts/install.sh +9 -3
- package/scripts/memories.sh +189 -55
- package/scripts/orchestrate.sh +2 -2
- package/scripts/search.sh +195 -31
- package/scripts/statusline-em.sh +129 -26
- package/scripts/uninstall.sh +67 -0
- package/scripts/update.sh +8 -1
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.
|
|
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
|
|
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
|
|
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,31 @@ 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
|
+
|
|
155
182
|
### v4.9.6 Patch
|
|
156
183
|
|
|
157
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.
|