fix: point Setup hook to smart-install.js instead of deleted setup.sh (#1268)#1358
fix: point Setup hook to smart-install.js instead of deleted setup.sh (#1268)#1358ousamabenyounes wants to merge 2 commits intothedotmack:mainfrom
Conversation
…thedotmack#1268) The Setup hook referenced scripts/setup.sh which was deleted in commit 74d94aa but the hooks.json reference was never updated. This caused the Setup hook to fail silently on Claude Code updates, making claude-mem appear disconnected. smart-install.js already handles all the same setup tasks (Bun/uv installation, dependency checks, CLI install). Adds 3 tests verifying the Setup hook references an existing script. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Code ReviewOverviewThis PR fixes a setup hook issue by pointing the Setup hook to smart-install.js instead of the deleted setup.sh script. The fix includes tests to verify the hook references the correct script. Strengths
Issues & ConcernsNone identified. This is a clean, well-tested fix. Security ConcernsNone identified. Potential BugsNone identified. Test CoverageGood test coverage for the fix:
RecommendationsConsider adding a comment in hooks.json explaining why smart-install.js is used instead of setup.sh, for future maintainers who might not be aware of the issue history. SummaryThis is a straightforward, well-tested fix that addresses a setup hook issue. The tests provide good coverage and the change is minimal and targeted. Overall Assessment: Approve |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for the review! Added the recommended comment in commit 5d15c62: "_comment": "Uses smart-install.js (not setup.sh which was deleted in 74d94aa2). See #1268."All 1119 tests pass, 0 failures. |
Summary
Setuphook inhooks.jsonreferencedscripts/setup.shwhich was deleted in commit 74d94aasmart-install.jswhich already handles all setup tasks (Bun/uv installation, dependency checks, CLI install)Fixes #1268
Test plan
plugin/scripts/smart-install.jsexists and handles all setup tasks previously in setup.sh🤖 Coded by Claude, vibe-coded by Ousama Ben Younes
🤖 Generated with Claude Code