Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.12 KB

AGENTS.md

File metadata and controls

30 lines (22 loc) · 1.12 KB

AGENTS.md

Commands

  • pnpm run check - TypeScript/Svelte type checking
  • pnpm run lint - ESLint
  • pnpm run format - Prettier formatting
  • pnpm run verify - Full CI check (format + lint + check + build + package)
  • pnpm run dev - Start dev server
  • pnpm run dev:zero-cache - Run Zero cache server

Code Style

  • Tabs for indentation, single quotes, no trailing commas, 100 char line width
  • Imports auto-organized by prettier-plugin-organize-imports
  • TypeScript strict mode; use explicit types for function params and return types
  • Svelte 5 runes: $state, $derived, $effect (no legacy reactive statements)
  • File naming: *.svelte.ts for Svelte-aware TS files with runes

Architecture

  • src/lib/ - Library code (Z, Query, ViewStore, ViewWrapper classes)
  • src/routes/ - Demo app routes
  • src/schema.ts - Zero schema with defineQuery and ArkType/Zod validators
  • Queries use defineQuery(validator, queryFn) pattern with Standard Schema validators

Contributing

  • Run pnpm run verify before pushing
  • PRs changing src/lib/** or package.json require changeset: pnpm run changeset