mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-07-11 18:53:41 +03:00
ef1352f84b
install_hermes() resolved `dest` from HERMES_PLUGIN_DIR and ran `rm -rf "$dest"`. The var name invites setting it to the plugins *parent* (~/.hermes/plugins) rather than the full plugin path, in which case the rm -rf wiped the entire plugins directory and every other plugin in it. Always target the agency-agents-router subdir (append it when the resolved path doesn't already end in it), and add a defensive guard that refuses to remove any path whose basename isn't `agency-agents-router`. Verified: with HERMES_PLUGIN_DIR set to the plugins parent, a sibling plugin's data now survives the install. Fixes #669 Claude-Session: https://claude.ai/code/session_01WKnDRWM4izsB8WAXKszhsq Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>