feat(usage-limits): add Novita AI balance provider - #183
Conversation
🦋 Changeset detectedLatest commit: 0fc6b5b The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (2)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (19)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe usage-limits plugin adds a Novita AI provider that fetches ChangesNovita AI balance provider
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant UsageLimits
participant NovitaAiProvider
participant NovitaAPI
UsageLimits->>NovitaAiProvider: Provide settings and available credentials
NovitaAiProvider->>NovitaAPI: Request billing balance with bearer token
NovitaAPI-->>NovitaAiProvider: Return availableBalance
NovitaAiProvider->>NovitaAiProvider: Convert balance to USD
NovitaAiProvider-->>UsageLimits: Return timestamped USD credits window
Merge Risk: ⚪ Minimal · up to No identified issue blocks merging the Novita AI balance provider after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Automatically discovered credentials remain restricted to Novita’s official origin, and custom destinations require explicit credential configuration. No introduced security flaw was established, but custom credential-file authority and runtime redirect behavior warrant a bounded assessment. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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. A rabbit checks the balance bright, Comment |
Deploying with
|
| Status | Name | Latest commit | Updated (UTC) |
|---|---|---|---|
| Deployment successful View Cloudflare logs |
opencode-plugins-docs-pr-183 | 0fc6b5bc | 2026-10-05T04:56:28.707Z |
Diagnostics: View GitHub Actions run
There was a problem hiding this comment.
All reported issues were addressed across 19 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Summary
Closes #172
Verification
bun run test(463 usage-limits tests passed)bun run typecheckbun run checkbun run buildbun run test:packagebun run knipThe docs check/build emitted a non-blocking warning because
GITHUB_TOKENis not set for the live GitHub releases content source.Summary by cubic
Adds Novita AI as a supported balance provider in the usage-limits plugin, displaying the current available USD balance from Novita's official billing endpoint. Closes #172.
https://api.novita.ai; a custombaseUrlrequires an explicitauthPathorapiKey.Written for commit 0fc6b5b. Summary will update on new commits.