mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
core/brief's Brief drops stages and its Stage, Mark and Task types: a project's tasks are its plan.org. An older brief with stages still reads; raea doctor says its tasks belong in plan.org and moves nothing. core/brief's object plan, the solids contract, is parts() in NAME.parts.ts (raea spec --as parts), so plan means only a project's plan.org. No project used plan(); the bevy guides that teach it, the manual and the reference pages follow.
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
---
|
|
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.
|
|
|
|
```sh
|
|
raea spec brief.ts
|
|
raea spec launch.script.ts
|
|
raea spec notes.ts --as taste
|
|
```
|
|
|
|
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
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. |
|
|
|
|
<!-- generated:end -->
|