[ef-33] feat: publish alias packages for common failproofai misspellings + bump to 0.0.1-beta.8#32
Conversation
…llings + bump to 0.0.1-beta.8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis change introduces an automated npm package alias publishing system. After the main npm publish step, a new workflow step executes Changes
Sequence DiagramsequenceDiagram
participant CI as CI/CD Pipeline
participant NPM as npm Registry
participant PubScript as publish-aliases.mjs
participant TempPkg as Temp Alias Package
CI->>NPM: npm publish (main package)
CI->>PubScript: Execute with NODE_AUTH_TOKEN
PubScript->>PubScript: Read package.json (version, metadata)
loop For each alias name
PubScript->>TempPkg: Generate temp package.json<br/>(with proxy.js bin mapping)
PubScript->>NPM: npm publish alias package
PubScript->>TempPkg: Clean up temp directory
end
Note over CI: All aliases published<br/>with same version
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 |
Summary
scripts/publish-aliases.mjs— a script that generates and publishes 14 alias packages on npm for common misspellings offailproofaiscripts/alias-proxy.js— a shared thin proxy binary included in every alias package; delegates all CLI calls to the realfailproofaibinary via the npm-generated.bin/wrapper (handles bun shebang + Windows correctly).github/workflows/publish.yml— runspublish-aliases.mjsautomatically after every main publish0.0.1-beta.7→0.0.1-beta.8Alias packages published (all currently unclaimed on npm):
failproof,failproof-ai,fail-proof-ai,failproof_ai,fail_proof_ai,fail-proofaifailprof,failprof-ai,failprofai,fail-prof-ai,failprof_aifaliproof,faliproof-ai,faliproofaiHow it works:
npm install -g failproof-ai→ installsfailproofaias a local dep (triggers hook setup) + links afailproof-aiglobal binary that proxies to it.Test plan
node scripts/publish-aliases.mjs --dry-run— prints all 14 generatedpackage.jsonfiles without publishingnpm view failproof version,npm view failprof-ai versionetc. — all should show0.0.1-beta.8npm install -g failprof-aion a clean machine →failprof-ai --versionprints0.0.1-beta.8🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes