refactor(usage): make discovery, quotas, and pricing exact - #191
Conversation
|
Important Review skippedToo many files! This PR contains 107 files, which is 7 over the limit of 100. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (133)
You can disable this status message by setting the ✨ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1031897066
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
1031897 to
b5fff9d
Compare
Summary
This PR makes the retained ADRs and the runtime describe one current product.
It keeps eight complete ADRs, removes 22 superseded or patch-style ADR files,
and implements the remaining source gaps against
personal/local-clients@a0d60f8d.The resulting contract is:
additional roots come only from
scanner.extraScanPaths, while OpenCodedatabase files come only from
scanner.opencodeDbPaths;usagecommandand its parallel output surface are removed;
claude,codex,zai,grok,kimi-coding-plan-key,kimi-coding-plan-credential,minimax-token-plan-cn, andminimax-token-plan-global;provider scopes, and an unmatched model displays
$0.00; andvariants instead of carrying compatibility branches.
Behavior
Local acquisition
scanner.extraScanPathssupports every local client except OpenCode.SQLite and multi-layout clients, including Goose, Kilo, Kiro, CodeBuddy,
Warp, and Zed, discover current-format inputs from configured roots with
canonical-path deduplication.
scanner.opencodeDbPathsauthority.warp.sqliteparser. Its per-model total isthe checked sum of
warp_tokens,byok_tokens, andcustom_endpoint_tokens.Subscription Usage
~/.codex/auth.json.~/.grok/auth.json, exposes one account, and requests theGrok Build billing backend without mutating credentials.
~/.kimi-code/credentials/kimi-code.jsoncredential provider.installed snapshot on an empty or failed refresh, and expose provider
failures as diagnostics.
Identity, pricing, and storage
modelIdanddisplayNamefields.
exact provider-scoped or exact unscoped catalog matching. Prefix, substring,
and fuzzy price matches are removed.
current v9 envelope.
tui,models,pricing,wrapped, andcache.Validation
cargo fmt --all -- --checkcargo test --workspace --no-fail-fastcargo clippy --workspace --all-targets -- -D warningscargo build -p tokscale-clibun run build:cligit diff --check