Repository navigation
fix(catalog): bind inline provider enums from command-code 1.94 - #344
Merged
Merged
Conversation
Co-authored-by: Multfinite <17569259+Multfinite@users.noreply.github.com> Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2:ses_dbdb64884ffeMNw51fReXEvm1T
Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2:ses_dbdb64884ffeMNw51fReXEvm1T
Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2
… source Co-Authored-By: Claude <noreply@anthropic.com> Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2:ses_dbda73d6fffeREpCn308MkgZ81
Contributor
|
🎉 This PR is included in version 0.12.55 🎉 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.
Problem
command-code@1.94.0defines its provider enum inline:The catalog reads
provider:Q_.ANTHROPICandprovider:X_. An earlier rich enum (Bi={...}) winsextractBestProviderEnum, soQ_was never bound and the sync failed withCould not evaluate model catalog: Q_ is not defined.Change
src/catalog.ts: newextractEnumBindingsfindsouter=(inner={...})before the catalog anchor using the balanced-brace scan, bindsinnerto the object andouterto the member's string value, and feeds them intobuildEvalContext. This is the extractor part of fix(catalog): parse 1.94.0 inline enum bindings and add API-only SKUs #340 only: noAPI_ONLY_MODELS, no hardcoded rows, noFORK.md.tests/unit/catalog.test.ts: regression fixture with the earlierqs/Bienums followed by the realQ_/X_shape. It fails onmainwithQ_ is not definedand passes here.docs/specs/2026-09-20-catalog-freshness.md: documents the supported binding shapes, including the inline enum.models.json/manifest.json/_version.txtwithbun run sync -- --remote: 125 CLI candidates intersected with 111 live IDs gives 106 models,command-code@1.94.0, status healthy.recursive/flint-v1.0:freeis removed andamazon/ergo-1.0andzai-org/GLM-5.4are added. Every published ID is in the live/provider/v1/modelslist.API-only IDs that remain unpublished, per the spec (no CLI metadata):
minimax/minimax-m4,recursive/flint-v1.1:free,reflection/beam-contributor:free,subquadratic/subq-savant-1.4,thinkingmachines/inkling-2-small.Supersedes #340.
Verification
bun run check: pass (275 tests)bun test tests/unit/catalog.test.ts tests/unit/sync-models.test.ts: pass (38)loadCatalogFromBundleon the real 1.94.0dist/cli.mjsreturns 125 entriesCo-authored-by: Multfinite 17569259+Multfinite@users.noreply.github.com