Skip to content

[1/2] feat: accept generation model catalogues - #168

Merged
dazzatronus merged 2 commits into
mainfrom
derk/eng-889-catalogue-contract
Aug 27, 2026
Merged

[1/2] feat: accept generation model catalogues#168
dazzatronus merged 2 commits into
mainfrom
derk/eng-889-catalogue-contract

Conversation

@dazzatronus

Copy link
Copy Markdown
Contributor

Studio cannot offer generation models without a catalogue, and hardcoding one would tie every model launch to an SDK release. Registration now takes an optional snapshot of the expanded GET /models?expand=options response and normalises it into the shapes the editor can work with. Nothing renders yet — that is [2/2].

Decisions a reviewer cannot see in the diff:

  • A snapshot, not a subscription. No fetching, refresh, billing or pricing logic enters the SDK; the published pricing block is ignored.
  • Entries without an options schema are dropped, because an unexpanded entry and a model with genuinely no options are indistinguishable.
  • Models whose schema requires inputSrc are excluded — source media has no picker in this release.
  • Reconciliation keeps a raw merge-field placeholder when its resolved value is valid, so switching models never destroys one.
  • The only new public surface is the optional catalogue; the UI bridge is @internal and stripped from dist/index.d.ts.

Verify: npm run verify:ci

Risk: none at runtime — a stored catalogue with no reader.

Base automatically changed from derk/raise-umd-bundle-limit to main August 27, 2026 08:16
@dazzatronus
dazzatronus force-pushed the derk/eng-889-catalogue-contract branch 2 times, most recently from 596ec07 to 47c4e99 Compare August 27, 2026 10:04
@dazzatronus
dazzatronus force-pushed the derk/eng-889-catalogue-contract branch from 47c4e99 to 95349b0 Compare August 27, 2026 10:44
@dazzatronus
dazzatronus merged commit 345430b into main Aug 27, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.18.0 🎉

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