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/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
- backfilled=$(eagle_backfill_projects 2>/dev/null)
175
- if [ "${backfilled:-0}" -gt 0 ]; then
176
- eagle_ok "Project names: $backfilled rows corrected"
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
- eagle_ok "Project names up to date"
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
- eagle_ok "CLAUDE.md updated ${DIM}(eagle-summary instructions added)${RESET}"
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}."