ext-apps/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik eeb81c08bc
fix(schemas): import from zod/v4 to match SDK's zod API (#548)
The generated schemas compose with schemas imported from
@modelcontextprotocol/sdk/types.js (e.g. z.array(ContentBlockSchema)).
The SDK constructs its schemas via `import * as z from 'zod/v4'`, but
our generated schema.ts used `import { z } from "zod"` — which returns
the v3 API when the consumer has zod 3.25.x installed.

Mixing v3-created and v4-created schema instances throws at parse time
with errors like `keyValidator._parse is not a function` because zod v4
dropped the `_parse` / `_parseSync` internals that v3 wrappers call.

This was masked before #534 because zod was bundled — all schema
creation shared the same inlined zod copy. Externalizing zod exposed
the mismatch on consumers pinned to zod 3.x (e.g. anthropics/apps).

The `zod/v4` subpath is exported by both zod 3.25+ and zod 4.x, so the
existing peerDependency range `^3.25.0 || ^4.0.0` is preserved.

https://claude.ai/code/session_013xQUegrvVGct5xpqeSL5av

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-10 19:10:36 +00:00
..
check-versions.mjs chore: bump ext-apps to 1.0.1 (#369) 2026-01-26 22:32:34 +00:00
generate-schemas.ts fix(schemas): import from zod/v4 to match SDK's zod API (#548) 2026-03-10 19:10:36 +00:00
link-self.mjs fix: sync local SDK build into node_modules for examples (#504) 2026-02-24 21:20:59 +00:00
run-bun.mjs fix: Windows compatibility - bun as optional dep, cross-env for examples (#145) 2025-12-16 14:07:38 +00:00
sync-snippets.ts Fix extractRegion() matching region names that are substrings of others 2026-01-27 12:57:11 -06:00
typedoc-plugin-fix-mermaid-entities.mjs Fix mermaid diagram arrowheads not rendering 2026-01-24 16:52:49 -06:00
typedoc-plugin-mcpstyle.mjs fix(readme): use picture element for theme-aware logo (#545) 2026-03-10 17:33:40 +00:00
typedoc-plugin-seo.mjs Add Security documentation section and SEO improvements (#524) 2026-03-06 13:45:15 +00:00