Roo-Code/schemas
Roo Code 3fd2ca47c8 refactor: dynamically generate roomodes JSON schema from Zod types
Replace the hand-crafted schemas/roomodes.json with one generated from
the Zod schemas in packages/types/src/mode.ts using zod-to-json-schema.
This ensures the schema stays in sync when TypeScript types change.

- Add zod-to-json-schema dev dependency to packages/types
- Create packages/types/scripts/generate-roomodes-schema.ts
- Add generate:schema npm script to packages/types
- Add drift-detection test in packages/types to catch schema/type mismatches
- Update existing AJV validation tests with documentation comment
2026-03-02 15:31:19 +00:00
..
roomodes.json refactor: dynamically generate roomodes JSON schema from Zod types 2026-03-02 15:31:19 +00:00