eagle-mem 4.0.0 → 4.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eagle-mem",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Persistent memory for Claude Code — SQLite + FTS5, no daemon, no bloat",
5
5
  "bin": {
6
6
  "eagle-mem": "bin/eagle-mem"
package/scripts/update.sh CHANGED
@@ -85,13 +85,11 @@ fi
85
85
 
86
86
  if [ -d "$PACKAGE_DIR/skills" ]; then
87
87
  mkdir -p "$EAGLE_SKILLS_DIR"
88
- # Remove stale symlinks for deleted skills
89
- for existing in "$EAGLE_SKILLS_DIR"/eagle-mem-*/; do
90
- local_path="${existing%/}"
91
- [ ! -L "$local_path" ] && continue
92
- skill_name=$(basename "$local_path")
88
+ # Remove stale symlinks for deleted skills (find catches broken symlinks; glob doesn't)
89
+ find "$EAGLE_SKILLS_DIR" -maxdepth 1 -name "eagle-mem-*" -type l 2>/dev/null | while read -r existing; do
90
+ skill_name=$(basename "$existing")
93
91
  if [ ! -d "$PACKAGE_DIR/skills/$skill_name" ]; then
94
- rm "$local_path"
92
+ rm "$existing"
95
93
  eagle_ok "Removed stale skill: $skill_name"
96
94
  fi
97
95
  done