fix: standardize Croco diagnostic codes - #899
Conversation
|
Warning Review limit reached
More reviews will be available in 10 minutes and 11 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ 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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Benchmark Results❌ Some benchmarks failed Gate failures
Updated: 2026-06-18T16:56:01.361Z · Commit: c0a483a |
81a7380 to
c591b60
Compare
Fixes #871.
Summary
@croco/diagnostics-corenow exposes a stableCROCO_*diagnostic code contract with typed definitions, source locations, fix examples, message construction, formatting helpers, and an append-only change policy.The initial standard defines diagnostic examples across dependency injection, routing, and build-time categories. The troubleshooting guide documents the message fields, standard output shape, per-code cause/fix anchors, search keywords, and code stability policy.
Review notes
public-api-surface.snapshot.jsonwas regenerated on currenttrunk. Alongside the new diagnostics-core exports, it records already-present current-trunk exports for@croco/clidoctor APIs,@croco/framework-routesroute registration tables, and@croco/framework-contextruntime policies so the all-repo public API guard passes. No source changes were made in those packages.The diagnostics-core package test/typecheck config now aliases the existing
@croco/problems-coreworkspace source, matching the local source import path needed by package-scoped checks.Verification
mise exec node@22 -- pnpm --filter @croco/diagnostics-core test- passed, 2 files and 15 tests.mise exec node@22 -- pnpm --filter @croco/diagnostics-core typecheck- passed.mise exec node@22 -- pnpm --filter @croco/diagnostics-core build- passed.mise exec node@22 -- pnpm public-api:check- passed.NODE_OPTIONS=--experimental-strip-types mise exec node@22 -- pnpm check- passed.mise exec node@22 -- pnpm typecheck- passed, 200/200 Turbo tasks.mise exec node@22 -- pnpm test- passed, 201/201 Turbo tasks.mise exec node@22 -- pnpm changeset-required:check -- --base origin/trunk --head HEAD- passed.git diff --checkandgit diff --cached --check- passed.testandtypecheckhooks passed.Self-review gates