raea spec

Print a spec file's default export as JSON, checked against its schema: briefs, scripts, taste, plans and controllers.

View as Markdown

raea's specs are TypeScript files whose default export is data: brief.ts, NAME.script.ts, taste.ts, plan.ts and controllers/ID.ts. raea spec evaluates one, checks it against its schema and prints it as JSON, so an agent can read a brief without running anything else, and a wrong field is caught before it matters.

Terminal
raea spec brief.ts
raea spec launch.script.ts
raea spec notes.ts --as taste

Usage

Terminal
raea spec FILE.ts [--as brief|script|taste|plan|controller]   (a spec's default export as JSON, checked against its schema: brief.ts, script.ts, taste.ts, plan.ts, controllers/ID.ts)

Headless: it needs nothing running and opens no window. Takes up to 1 argument besides its flags.

Flags

FlagTakesWhat it does
--asbrief|script|taste|plan|controllerWhich schema to check it against. By default from the file's name (brief, script, plan, a controllers/ folder), and taste otherwise.