- Add missing author field to cursor plugin marketplace.json
- Restore query-level filter in migration example for performance
- Clarify sameAs vs socialLinks field purposes in EEAT schema
- Add TypeScript types to generateMetadata params in hreflang example
- Revert useCdn to false for SSR getting-started example
- Add NDJSON guardrail back to AGENTS.md boundaries
- Fix npx prefix consistency in typegen watch mode command
- Add schema.org position comment in BreadcrumbList example
- Clarify @graph @context usage and improve JSON-LD security note
- Deduplicate typegen-workflow.md by referencing the canonical rule file
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes from final review pass by DX and TypeScript expert agents:
- Added "unique query names" requirement (common developer footgun)
- Added tsconfig includes requirement for sanity.types.ts
- Fixed AUTHOR_QUERY example: was array query used as single object
- Added .astro, .svelte, .vue to path glob examples
- Updated Astro rule to use defineQuery instead of raw strings
- Updated get-started guide to use defineQuery (was raw string)
- Updated GROQ maintenance workflow to mention automatic generation
- Updated AGENTS.md boundary to mention typegen.enabled option
- Fixed groq-define-query.md to show auto-inference as primary pattern
- Standardized import path to @/sanity.types
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TypeGen is now GA. Key changes:
- Config moved from deprecated sanity-typegen.json to sanity.cli.ts
- Added automatic type generation (typegen.enabled: true)
- Added watch mode for separate frontend repos
- Added overloadClientMethods for automatic client.fetch() typing
- Added --enforce-required-fields flag
- Added Get and FilterByType type utilities
- Added supported file types (.astro, .svelte, .vue)
- Added @sanity-typegen-ignore for skipping individual queries
- Updated project structure to remove deprecated config file
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
API version examples were inconsistent across files: 2025-11-01 in GROQ,
2024-01-01 in get-started, v2024-08-01 (with v prefix) in Next.js, and
various other dates in framework rules. Standardized all to 2026-02-01
without the v prefix. Also fixed useCdn contradiction (get-started had
false, Next.js rule said true should be default) and added webhook path
validation to prevent cache-busting abuse.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>