[ef-36] fix: custom hooks loading + p alias for policies + bump to 0.0.1-beta.10#36
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 2 minutes and 52 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe pull request introduces a shorthand command alias ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
…s + bump to 0.0.1-beta.10 - Fix custom hooks loading failure: bin entry now sets FAILPROOFAI_DIST_PATH so findDistIndex() resolves the dist module and rewrites `import from 'failproofai'` in user hook files — previously returned null and left the import unrewritten - Add `p` as a shorthand alias for the `policies` subcommand (normalised early so all downstream routing works transparently) - Bump version to 0.0.1-beta.10 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
-cflag):bin/failproofai.mjsnow setsFAILPROOFAI_DIST_PATHat startup (mirroring howFAILPROOFAI_PACKAGE_ROOTis set). PreviouslyfindDistIndex()returnednull, the ESM shim was never created, andimport ... from 'failproofai'in user hook files would throwCannot find package 'failproofai'.palias for thepoliciessubcommand —failproofai p -i -c <path>now works. Implemented as a single early normalization (if (args[0] === "p") args[0] = "policies") so all downstream routing is transparent.0.0.1-beta.10.Test plan
failproofai policies -i -c ~/failproofai/examples/policies-notification.jsloads withoutCannot find packageerrorfailproofai plists policiesfailproofai p -iruns install flowfailproofai p -i -c <path>loads custom hooks correctlyfailproofai p -hshows helpfailproofai --versionprints0.0.1-beta.10🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Chores