Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

1.2 KB
Raw Blame

title: "raea spec" summary: "Print a spec file's default export as JSON, checked against its schema: briefs, scripts, taste and an object's parts." order: 25 sources: ["engine/cli/src/spec.rs"]

raea's specs are TypeScript files whose default export is data: brief.ts, NAME.script.ts, taste.ts and NAME.parts.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.

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

Usage

raea spec FILE.ts [--as brief|script|taste|parts]   (a spec's default export as JSON, checked against its schema: brief.ts, script.ts, taste.ts, NAME.parts.ts)

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

Flags

Flag Takes What it does
--as brief|script|taste|parts Which schema to check it against. By default from the file's name (brief, script, parts), and taste otherwise.