Skip to content

fix(catalog): price free SKUs at $0 and fill remaining gaps from models.dev - #4

Merged
BrainerVirus merged 2 commits into
mainfrom
feature/models-dev-costs
Aug 28, 2026
Merged

fix(catalog): price free SKUs at $0 and fill remaining gaps from models.dev#4
BrainerVirus merged 2 commits into
mainfrom
feature/models-dev-costs

Conversation

@BrainerVirus

@BrainerVirus BrainerVirus commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Free Command Code SKUs (id/name free, or id ending -free) now ship at $0 / $0 instead of the unmatched $0.50 / $2 placeholder. Paid twins on models.dev (for example Tencent Hy3) are not applied to those free SKUs.
  • Removed the hardcoded FALLBACK_COSTS table. 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 catalog degraded.
  • This sync: 60 official-docs prices, 5 free SKUs at $0, 0 unmatched. Catalog status is healthy.

Test plan

  • bun test tests/unit/ (133 pass)
  • bunx tsc --noEmit
  • bun run sync -- --remote against command-code@1.38.1
  • CI required checks: check (test), check (typecheck), check (pack)

Made with Cursor

BrainerVirus and others added 2 commits August 28, 2026 15:52
…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>
@BrainerVirus
BrainerVirus merged commit 94be56e into main Aug 28, 2026
5 checks passed
@BrainerVirus
BrainerVirus deleted the feature/models-dev-costs branch August 28, 2026 20:04
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant