Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
241b8f9c feat(schemas): add xAI Grok provider
Adds Grok as a provider in the nightly OpenAPI sync. Source is xAI's
first-party OpenAPI spec at docs.x.ai/openapi.json (OpenAPI 3.1.0, 32
endpoints, 168 schemas). Public, no auth required for the spec.
Grok is API-compatible with OpenAI's chat completions at the wire level
but ships an independent schema set (different names, slightly different
shapes, plus xAI-specific endpoints: deferred-completion, documents/search,
per-modality model lists, video edits/extensions, tokenize-text, etc.).
Each provider stays isolated in the schemas package.
Bumps the build script's heap to 8 GB. With six providers now in the
single dts program, the default 4 GB limit was tight. Knip ignores
`vite` for ai-schemas since the script invokes the binary directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> 241b8f9c feat(schemas): add xAI Grok provider
Adds Grok as a provider in the nightly OpenAPI sync. Source is xAI's
first-party OpenAPI spec at docs.x.ai/openapi.json (OpenAPI 3.1.0, 32
endpoints, 168 schemas). Public, no auth required for the spec.
Grok is API-compatible with OpenAI's chat completions at the wire level
but ships an independent schema set (different names, slightly different
shapes, plus xAI-specific endpoints: deferred-completion, documents/search,
per-modality model lists, video edits/extensions, tokenize-text, etc.).
Each provider stays isolated in the schemas package.
Bumps the build script's heap to 8 GB. With six providers now in the
single dts program, the default 4 GB limit was tight. Knip ignores
`vite` for ai-schemas since the script invokes the binary directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> c6b45c01 refactor(schemas): provider-first subpath exports for tree-shaking
Switches `@tanstack/ai-schemas` from format-first
(`@tanstack/ai-schemas/schemas/openai`, `/zod/gemini`) to provider-first
(`@tanstack/ai-schemas/openai/json-schema`, `/gemini/zod`) and drops the
namespaced aggregator barrels.
With provider-first subpaths and no aggregator, importing one provider's
schemas pulls only that provider's bytes. Importing
`@tanstack/ai-schemas/gemini/json-schema` carries no OpenAI, Anthropic,
ElevenLabs, or FAL code into the consumer's bundle.
The default `.` entry now only re-exports `toOpenAIStrict` (4 KB).
Wildcard exports in package.json:
"./*/json-schema" -> dist/esm/providers/*/schemas-index.{js,d.ts}
"./*/zod" -> dist/esm/providers/*/index.{js,d.ts}
Generator emits a flat layout — `providers/{providerId}` for single-
category providers, `providers/{providerId}-{category}` for FAL
(`fal-image`, `fal-video`, etc.) — so Node's single-segment `*` wildcard
resolves cleanly.
Vite discovers per-provider barrels at build time so the dist mirrors
the provider layout.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>