Skip to content

feat(id): brand ProviderID and ModelID#17110

Open
kitlangton wants to merge 5 commits intodevfrom
feat/branded-provider-model-id
Open

feat(id): brand ProviderID and ModelID#17110
kitlangton wants to merge 5 commits intodevfrom
feat/branded-provider-model-id

Conversation

@kitlangton
Copy link
Contributor

Summary

  • add branded ProviderID and ModelID schemas and thread them through provider, session, server, and ACP validation paths
  • update provider/model parsing and construction sites so branded IDs flow through runtime code without casts
  • refresh affected tests and helpers to use the branded IDs and keep provider/session coverage green

@kitlangton kitlangton force-pushed the feat/branded-provider-model-id branch from 7f50fd4 to 08bf97c Compare March 12, 2026 00:41
@kitlangton kitlangton changed the base branch from dev to feat/branded-remaining-ids March 12, 2026 00:41
@kitlangton kitlangton force-pushed the feat/branded-provider-model-id branch from bf89141 to 41ad8b2 Compare March 12, 2026 00:54
@kitlangton kitlangton force-pushed the feat/branded-provider-model-id branch from 41ad8b2 to e346f2e Compare March 12, 2026 00:57
@kitlangton kitlangton force-pushed the feat/branded-remaining-ids branch from 19452df to 562689c Compare March 12, 2026 00:59
@kitlangton kitlangton force-pushed the feat/branded-provider-model-id branch from e346f2e to 3da87ad Compare March 12, 2026 00:59
Base automatically changed from feat/branded-remaining-ids to dev March 12, 2026 01:49
processor.ts already has a branded ProviderID from Provider.Model,
and fromError's ctx.providerID is already typed as ProviderID — no
need to double-wrap with .make().
Use typed local variable instead of inline cast for Provider.sort.
…after

model.json is read with ProviderID/ModelID in the generic, removing
the need for .make() when returning the result.
@kitlangton kitlangton force-pushed the feat/branded-provider-model-id branch from 3da87ad to 180cc02 Compare March 12, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant