Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every
render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and
place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code
are gone with no alias (MK41).

brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it
(the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written
back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one
goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines
and signed asks run inside the loop (MK47).

`raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake|
sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went.
docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out.

raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a
file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal
runner runs on the shipped binary.
2026-11-29 16:02:31 -08:00

2.6 KiB

title, summary, order, sources
title summary order sources
raea gen Generate images, video, music, sound, speech, 3D models and text through made.app, fal, Replicate, OpenRouter, Modal or ComfyUI. 114
io/gen/src
io/gen-comfy/src

raea gen makes generated media through the services you've connected: made.app, fal, Replicate, OpenRouter, Modal or a ComfyUI server. One prompt makes one file; a flow (FLOW.ts or FLOW.json) chains steps, and plan says what a flow will cost before run spends anything. --max-cents caps what a call may spend. A generated 3D model is checked and fitted: its real height, its origin at the bottom centre. ComfyUI workflows go both ways: import one as a flow, export a flow as one, or run a workflow as it is.

raea gen models --kind image
raea gen image "a ceramic mug on a sunlit table, product photo" --aspect 4:5 -o media/
raea gen mesh "a mid-century armchair" --h 0.8
raea gen check chair.glb --h 0.8 --solid -o chair-fixed.glb
raea gen plan flow.ts && raea gen run flow.ts --max-cents 200
raea gen comfy import workflow.json -o flow.json
raea gen balance

Usage

raea gen models [--kind image|video|audio] [--query WORDS] | balance | types [-o FILE] | flow FLOW.ts [-o FLOW.json]
raea gen image|video|music|sfx|speech|mesh|text "PROMPT" [--model M] [--image FILE]... [--seconds S] [--aspect W:H] [-o DIR] [--max-cents N] [--plan]   (mesh: --model tripo:H3.1|tripo:P2|fal:<endpoint>)
raea gen mesh "PROMPT" [--image FILE] [--h METRES] [--dims W,D,H] [--turn DEG]   (the model checked and fitted: its real height, origin at the bottom centre)
raea gen check MODEL.glb [--h METRES] [--dims W,D,H] [--turn DEG] [--faces N | --seen METRES] [--parts a,b] [--rig] [--solid] [-o FIXED.glb] [--json]
raea gen plan FLOW.json|FLOW.ts [--exact] | raea gen run FLOW.json|FLOW.ts [-o DIR] [--max-cents N] [--exact] [--comfy-on-replicate] [--no-local] [--no-tripo]
raea gen comfy import WORKFLOW.json [-o FLOW.json] | comfy export FLOW.json|FLOW.ts [-o WORKFLOW.json] | comfy needs WORKFLOW.json [-o NEEDS.json]
raea gen comfy run WORKFLOW.json [-o DIR]   (any workflow as it is, on the ComfyUI server: its input files uploaded, every output fetched)
raea gen comfy view WORKFLOW.json [-o FILE] | comfy set WORKFLOW.json CHANGES.json   (nodes, settings by name, links, groups; edits written back)
raea gen comfy schema [URL] | comfy coverage DIR | comfy up

Headless: it needs nothing running and opens no window. Its arguments go to a parser of its own, whose forms are listed above.