fix(catalog): price free SKUs at $0 and fill remaining gaps from models.dev - #4
Merged
Conversation
…ls.dev Drop hardcoded FALLBACK_COSTS so billed rates come from CLI, official docs, or models.dev instead of a plugin table. Command Code free SKUs stay $0 and do not inherit paid twins. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep bun test. Add the same Oxc toolchain workit uses so CI can fail on lint and format instead of only tests and types. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
🎉 This PR is included in version 0.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
free, or id ending-free) now ship at$0 / $0instead of the unmatched$0.50 / $2placeholder. Paid twins on models.dev (for example Tencent Hy3) are not applied to those free SKUs.FALLBACK_COSTStable. Remaining paid gaps after CLI + official docs use models.dev as a reference. Only unmatched models still use$0.50 / $2, and that is the only case that marks the catalogdegraded.$0, 0 unmatched. Catalog status ishealthy.Test plan
bun test tests/unit/(133 pass)bunx tsc --noEmitbun run sync -- --remoteagainst command-code@1.38.1check (test),check (typecheck),check (pack)Made with Cursor