Commit Graph

9 Commits

Author SHA1 Message Date
Jon Eide Johnsen 5e8610a916 fix: address minor review findings and nits
- 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>
2026-02-23 13:50:42 -08:00
Jon Eide Johnsen f5e274a736 fix: address code review findings
- Fix pitfall numbering (13→16,17→14,15 → sequential 13→14,15→16,17)
- Add missing PortableTextBlock import in PTE components example
- Remove unused SanityDocument import in Astro rule
- Fix monorepo TypeGen paths to use correct relative dirs
- Standardize missed API version in sanity-schema.mdc
- Remove misleading path validation comment per reviewer feedback

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-23 13:46:52 -08:00
Jon Eide Johnsen 68c5283f7d fix: address DX and TypeScript expert review findings for TypeGen
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>
2026-02-21 00:47:01 -08:00
Jon Eide Johnsen b5201773e3 fix: update TypeGen docs for GA release
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>
2026-02-21 00:43:10 -08:00
Jon Eide Johnsen 3c62a9fd3c fix: standardize API version to 2026-02-01 across all rule files
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>
2026-02-21 00:36:08 -08:00
Charlie Brown 641708281b Update rules/sanity-app-sdk.mdc
Co-authored-by: Ryan Bonial <4294665+ryanbonial@users.noreply.github.com>
2026-01-14 13:34:34 -06:00
Charles Brown 77200c0f97 chore: improve file format 2025-12-12 07:55:09 -06:00
Charles Brown 4636e0ac6d feat: create app sdk rules 2025-12-12 07:43:05 -06:00
Jon Eide Johnsen 23ef4ff5ab feat: add sanity agent toolkit 2025-12-11 17:32:26 +01:00