chore: fix pre-push hook (DEBT-002) - #84
Conversation
Disabled .husky/pre-push (was running nonexistent npm test against root). Lefthook pre-push block is now empty. Verified: 'git push' now succeeds without ENOENT. Refs: docs/TECH_DEBT.md DEBT-002, PLAN.md § 4.1, worklogs/2026-06-17-fleet-readiness.md
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Warning Review limit reached
More reviews will be available in 43 minutes and 57 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Note
|
|



User description
Summary
Fixes DEBT-002 — the broken pre-push hook that ran
npmscripts against a non-existent rootpackage.json, blocking everygit pushwith anENOENT/Missing scriptabort.Findings on
main(pre-fix state).husky/pre-pushinvokednpm run check:any-budget:t11 && npm run check:tracked-artifacts. Neither script is defined in anypackage.jsonin the repo (verified viagrep -l), sogit pushaborted withnpm error Missing script— not the originalENOENTfornpm testdescribed indocs/TECH_DEBT.md, but the same class of failure.lefthook.ymldoes not exist at the root or anywhere in the repo (verified viafind).package.jsondoes not exist (verified viafind); real manifests live in@omniroute/opencode-plugin/,@omniroute/opencode-provider/,open-sse/,desktop-electrobun/,electron/.Changes
.husky/pre-push— replaced with a no-op shell script (exit 0) and a comment explaining the DEBT-002 background, the two real fix paths (workspace-aware npm/pnpm scripts OR port to lefthook +cargo make), and the re-enable trigger (CI runs the full test matrix and rootpackage.jsonis restored).lefthook.yml— already absent onmain; nothing to do.package.json— already absent onmain; nothing to do.Verification
git pushno longer aborts withnpm error code ENOENT/Missing script..husky/pre-push(set viahuskyinstall inpackageManagerfield of sub-package.jsons).Related
docs/TECH_DEBT.mdworklogs/<date>-<req-id>-<slug>.md)Out of scope (not touched)
docs/intent/OmniRoute.mdworking-tree modifications were left untouched (auto-save from a parallel process, not related to DEBT-002).feat(a2a): implement smartRouting skillcommit (341fce795, DEBT-006) that was on this branch from a prior session was left as-is — DEBT-002 fix is the additional13a670057commit on top.Branch:
chore/l5-117-fix-pre-push-hook-2026-06-18Base:
mainOwner: @KooshaPari/core
Commits ahead of main: 2 (1 unrelated
feat(a2a): implement smartRouting skill+ 1chore: fix pre-push hook (DEBT-002))CodeAnt-AI Description
Stop pre-push from blocking git pushes
What Changed
package.jsongit pushno longer fails withENOENTor “Missing script” from this hookImpact
✅ Fewer push failures✅ No more missing-script errors on pre-push✅ Cleaner contributor workflow💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.