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 +35 -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 +20 -5
package/scripts/update.sh
CHANGED
|
@@ -40,6 +40,8 @@ if [ -d "$EAGLE_CODEX_DIR" ] || command -v codex &>/dev/null; then
|
|
|
40
40
|
codex_found=true
|
|
41
41
|
fi
|
|
42
42
|
|
|
43
|
+
eagle_runtime_change_plan "update" "$PACKAGE_DIR" "$claude_found" "$codex_found"
|
|
44
|
+
|
|
43
45
|
# ─── Update files ──────────────────────────────────────────
|
|
44
46
|
|
|
45
47
|
mkdir -p "$EAGLE_MEM_DIR"/{hooks,lib,db,scripts}
|
|
@@ -171,11 +173,19 @@ fi
|
|
|
171
173
|
|
|
172
174
|
# ─── Backfill project names ───────────────────────────────
|
|
173
175
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
if [ "${EAGLE_MEM_UPDATE_BACKFILL:-background}" = "sync" ]; then
|
|
177
|
+
backfilled=$(eagle_backfill_projects 2>/dev/null)
|
|
178
|
+
if [ "${backfilled:-0}" -gt 0 ]; then
|
|
179
|
+
eagle_ok "Project names: $backfilled rows corrected"
|
|
180
|
+
else
|
|
181
|
+
eagle_ok "Project names up to date"
|
|
182
|
+
fi
|
|
177
183
|
else
|
|
178
|
-
|
|
184
|
+
(
|
|
185
|
+
backfilled=$(eagle_backfill_projects 2>/dev/null || echo 0)
|
|
186
|
+
eagle_log "INFO" "Update: background project backfill corrected ${backfilled:-0} rows"
|
|
187
|
+
) >/dev/null 2>&1 &
|
|
188
|
+
eagle_ok "Project names backfill queued"
|
|
179
189
|
fi
|
|
180
190
|
|
|
181
191
|
# ─── Ensure auto-update defaults exist ─────────────────────
|
|
@@ -187,7 +197,7 @@ eagle_ok "Auto-updates ${DIM}(mode=$(eagle_update_config_mode), allow=$(eagle_up
|
|
|
187
197
|
|
|
188
198
|
if [ "$claude_found" = true ]; then
|
|
189
199
|
if eagle_patch_claude_md; then
|
|
190
|
-
|
|
200
|
+
eagle_ok "CLAUDE.md updated ${DIM}(Eagle Mem guidance refreshed)${RESET}"
|
|
191
201
|
else
|
|
192
202
|
eagle_ok "CLAUDE.md up to date"
|
|
193
203
|
fi
|
|
@@ -206,5 +216,10 @@ fi
|
|
|
206
216
|
version=$(jq -r .version "$PACKAGE_DIR/package.json" 2>/dev/null || echo "unknown")
|
|
207
217
|
echo "$version" > "$EAGLE_MEM_DIR/.version"
|
|
208
218
|
echo "$version" > "$EAGLE_MEM_DIR/.latest-version"
|
|
219
|
+
if eagle_runtime_manifest_write "$PACKAGE_DIR" "update"; then
|
|
220
|
+
eagle_ok "Install manifest refreshed"
|
|
221
|
+
else
|
|
222
|
+
eagle_warn "Install manifest could not be refreshed"
|
|
223
|
+
fi
|
|
209
224
|
|
|
210
225
|
eagle_footer "Eagle Mem updated to v${version}."
|