Skip to content

refactor(core): derive provider schema .zod via effect-zod walker#23753

Merged
kitlangton merged 1 commit intodevfrom
kit/provider-schema
Apr 21, 2026
Merged

refactor(core): derive provider schema .zod via effect-zod walker#23753
kitlangton merged 1 commit intodevfrom
kit/provider-schema

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Replace hand-written z.string().pipe(z.custom<T>()) wrappers in src/provider/schema.ts with zod(schema) from @/util/effect-zod so ProviderID.zod / ModelID.zod are derived from the canonical Effect Schema instead of maintained separately.
  • Mark src/provider/schema.ts complete in specs/effect/schema.md progress tracker. Unblocks the session/message-v2 cluster that depends on provider IDs.

Verification

  • bun typecheck passes
  • bun run test test/util/effect-zod.test.ts — 60/60 pass
  • Regenerated SDK (packages/sdk/openapi.json, packages/sdk/js/src/v2/gen/types.gen.ts) — byte-identical

Replace hand-written z.custom wrappers with zod() from @/util/effect-zod
so the .zod compatibility shim is derived from the canonical Effect
Schema instead of maintained separately. SDK output is byte-identical.
@kitlangton kitlangton merged commit 2da6d86 into dev Apr 21, 2026
11 checks passed
@kitlangton kitlangton deleted the kit/provider-schema branch April 21, 2026 21:49
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