Packages
@toon-ui/cli
Terminal tooling for validation and AST inspection.
@toon-ui/cli gives you terminal tooling for validation and AST inspection.
Use it for CI, fixtures, and debugging generated output.
Commands
toon-ui validate example.toon
toon-ui inspect example.toonWhat each command does
| Command | Purpose |
|---|---|
toon-ui validate <file> | Parses and validates ToonUI, then exits non-zero on invalid output |
toon-ui inspect <file> | Prints the parsed AST as JSON |
Typical workflow
- Save a generated
toon-uiblock into a fixture file - Run
toon-ui validate fixture.toon - If needed, run
toon-ui inspect fixture.toon - Fix the prompt or the generated structure
Boundary
This package does NOT belong in browser runtime code.
Pair it with:
@toon-ui/corefor protocol/runtime utilities@toon-ui/reactor@toon-ui/toon-uifor actual rendering