fix(install): copy missing rename action module - #7
Conversation
cc-switch.cjs requires ./lib/actions/rename.cjs, but install.cjs never copied it, so cc-switch crashed on launch with 'Cannot find module ./lib/actions/rename.cjs'. Add the actionRenameSource definition and copy it into bin/lib/actions.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe installer now registers ChangesRename action installation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
Comment |
|
@maciborka I'm sorry. For some unknown reason, I didn't receive the PR notification. Since there have been changes, please resolve the conflicts and resubmit the PR. Thank you. |
Problem
cc-switchcrashes immediately on launch after install:Root cause
cc-switch.cjsrequires the rename action:but
install.cjsnever copiedlib/actions/rename.cjsinto the install dir (~/.claude/multi-account-switch/bin/lib/actions/). Every other action module (sync, usage, remove, list, switch) is copied, only rename is missing — looks like it was overlooked when the rename feature was added.Fix
Add
actionRenameSourceand copy it intobin/lib/actions/, matching how the other action modules are handled.Verified locally:
node install.cjsnow installsrename.cjs, andcc-switchruns and lists accounts instead of crashing.Summary by CodeRabbit