Files
shaneandshinyobjectz 28af820668 PA13, PA14: raea playable, and playables in the public engine (#264)
* PA13, PA14: raea playable, and playables in the public engine

Playables move from the private tree into the public engine (Shane 11-28: "public totally part of the engine"):
sdk/playable (raea/playable for authors, the browser host, check.ts, parity.ts, tony.ts), examples/playables and
docs/playables.feature, with raea/playable and @raea/playable back in sdk/tsconfig.base.json.

`raea playable GAME.tsx -o DIR` (apps/playable) replaces the Bun pipeline (playable.sh, bundle.ts, lint.ts, walk.ts,
alias.ts). It lints the source, renders each composition through `raea run` for its shapes and 3D kinds, bundles the
game and the host once with raea's own bundler, and writes each network's page or ZIP against its 5 MB cap.
engine/bundle gains `minify`, `inline` (inline.rs: pictures, sounds, fonts and .glb as data URLs, .bin as a
Uint8Array) and package-folder aliases (`three/=DIR`). brick-rush writes all nine targets in 7 s (1,384 KB a page);
mobile-ads' tiles and gates export; all play in WebKit, the Google and TikTok packages included.

check.ts lets a network's own page tags through; parity.ts draws in WebKit (chrome.ts is gone), 6.8/255 on
brick-rush frame 300. The craft guide motion/playable.md is `raea guide playable`. bench/live-3d skips brick-rush with
its real reason (PA18).

* tools/layers.toml: raea-app-playable in apps (PA13)

* Fonts travel with a playable, and an end card in a brand's type

An imported .ttf, .otf, .woff or .woff2 (and .jpeg) is its path in a native render (runtime/bundle rewrite.rs,
engine/bundle script.rs) and a data URL in a playable (inline.rs), so an @font-face names the same file either way.
<EndCard> takes font, color and button. Made for the real-brand playables in mobile-ads (ACANA, OLIPOP, HelloFresh),
which carry their brands' own type; the guide and docs/playables.feature say how.

* The preview page tells raea's review its ad events (PA16)

Inside a frame, the preview network posts {raeaPlayable: kind} to its parent on install and end, so the review can show
them beside the game.

* PA16 status: the review plays playables (raea-platform #99), on a host of their own

* The preview page tells the review when it's ready, seen or hidden, and the first touch (PA16)

Beside install and end, the preview build inside a frame posts ready (the game started), viewable and hidden (its page
shown or put away) and touch (the player took over from the game's own hand), so the review and the desktop show them.

* PA16 status: built in cloud (raea-platform #99, #101) and desktop (raea-feed #124), and raea show --playable

* raea playable says what the source can't have even when the game won't render for the lint

A fetch or a URL often stops the walk's render too, and the lint answered with the render's end ("lint.ts ended with
exit 1") and dropped the refusals it had found. Now the source's refusals are the answer, and a render that fails
for another reason is named by its error line.

* PA16 status: play.raea.io is live, checked with the ACANA export

* skills: raea-skills main ae81d0f (#135 notes hook, #136 and #137 the playable guide and raea playable in cli.md)

tools/skills.sh gen with a raea built at this branch and the feed app at main: every reference and guide copy matches it.

* raea-cli: export-game and playable dispatched in a line each, as the verbs around them, so the crate stays at the size gate's 2000 lines

* dupes: the playable's copies folded into what they copied

spec is raea-runtime-bundle's own (now pub), inline.rs's base64 is the base64 crate as raea's other crates use it,
the store and card JSON are json!, and the bundle FFI reads minify and inline as it reads z3 and stamps. tools/dupes.sh:
293 exact, 57 near, as allowed.

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 13:53:48 -08:00

12 KiB

title, summary, order, sources
title summary order sources
CLI Every raea verb: what it does, its forms, where it runs and each flag. 1
engine/cli/src/cli.rs
engine/cli/src/usage.rs
tools/manual-ref/cli.ts

raea is one program with a verb for each job. Each verb has a page here with its forms, where it runs, every flag it takes and what each one does. The forms and flags are generated from the binary itself (raea help --json), so they match the version they were made from; the prose around them is written by hand.

How every verb behaves

  • Help. raea help (or raea alone) lists every verb's forms. raea help --json gives the same as data: each verb's forms, its flags, how many values each flag takes, how many arguments it takes and where it runs.
  • Strict arguments. A verb refuses a flag or an argument its forms don't name, rather than ignoring it, so a typo is caught. The five verbs with parsers of their own (media, gen, physics, blender, godot) list their own forms.
  • Output. A verb prints its result on stdout and exits 0. When it can't do what it was asked, it prints a line starting with REFUSED that says why and what to do instead, and exits 1. A file refused again is told what changed since the last refusal.
  • Where it runs. Almost every verb is headless: it needs nothing running and opens no window, so it works over SSH, in CI and from an agent. raea library needs the raea app running, and adding a folder waits for a person's yes in the app.
  • Sessions. Each render and play records its session; raea traces lists them.
  • Version. raea --version prints the version. The agent skill and these pages match it.

Make

Render, play and package what you wrote.

Verb What it does
raea render Render a composition to an MP4, a PNG or a folder of frames, on the GPU and headless.
raea play Play a game live in a window, or headless with scripted keys, snapshots and a timing report.
raea export-game Package a game as a program of its own: a Mac app or a command-line program.
raea playable Export a game as a playable ad: one page or ZIP for each ad network, under its size cap, from the same TSX that renders as the video ad.
raea export The composition as a CapCut draft ready in its timeline: its footage and sounds as clips of their own files at their trims and gains, everything raea draws as transparent overlay clips above them.
raea bundle Bundle a composition into one JavaScript file that render_bundle draws, on the Mac or the iPhone.
raea app Run, check headless and package a desktop app written as one TSX file on @raea/ui.
raea run Run a TypeScript program on the engine, headless, and print what it prints.

Projects

The workspace, its projects and what a project holds.

Verb What it does
raea init Add a project's starting files where they're missing: edit.tsx, cuts.ts, components/ and AGENTS.md.
raea workspace Make, adopt or show a workspace: the git repository that holds a studio's projects and house taste.
raea project Make a project in the workspace, list them, or move one between inline and a repository of its own.
raea spec Print a spec file's default export as JSON, checked against its schema: briefs, scripts, taste and an object's parts.
raea component Copy a ready-made component or set into the project's components/, or the workspace's shared/components/, to use and change as your own.
raea part The old name of raea component: copy a ready-made component into the project's components/, to use and change as your own.
raea add Add, remove and install npm packages for a project, with no Node or npm: raea.lock and node_modules.
raea brand Read a brand kit from a website on this machine: colours, fonts and logos into brand/ and BRAND.md.
raea library Search and manage the person's media libraries in the raea app: folders and drives indexed on this machine, searched by meaning.
raea index Make every picture on a folder or a drive searchable by words, embedded on this Mac's Neural Engine, and keep the index open for the raea app.

Check

What's wrong before anyone watches it.

Verb What it does
raea check Check a composition's text in a second, a project against every rule it holds, or an export against the floor: text, contrast, safe areas, freezes, flashing, cues and loudness.
raea judge Judge a 3D scene's review sheets blind, by a model on a frozen rubric or a fresh agent session, with the pass decided in code.
raea make A scene, kit or shot made to its plan: the plan stop, the kit's references, generators, pick, prep and landing, a shot list's framing and lens charts, and whether it's done, decided in code; the agent's Stop hook holds it there.
raea fingerprint A person's sense of good work, learned on this Mac: axes with small heads over on-device encoders that score a render moment by moment and say what they can't judge yet.
raea findings What each render and check found, read back from the project's record: fixed, new and carried since the one before.
raea scene Find floating, sunk and clipping 3D parts, say what each part rests on, meter a shot's light, hold every frame to the stage checks a render runs, and list each part's planned detail beside how large the frames show it.
raea light Measure a scene's light on each light path against its path-traced reference: distance in stops, the worst tile, flicker and cost.
raea bench Each case on each denoiser against its converged truth: FLIP, RMSE, bias, flicker, blotches, lag after a disocclusion or a light going out, a frame's cost, and how many of MetalFX's numbers each meets.
raea world A frame as one world: its layers, text, 3D parts, camera, shots, clips, cues and lines as entities, queried across media.
raea solid Measure, view and export a solid: parts built from code with exact volumes, joints and parameters.
raea next The two or three most useful next steps for a project, read from its brief, compositions, renders and checks.
raea doctor Find what doesn't match this version of raea: old brief files, an older workspace format, an agent's stale skill.
raea hook Every agent's tool hooks: media opened in the Mac's viewer goes to raea show, and the quick check after a composition is saved.
raea traces List the sessions raea apps left, newest first, with how each ended and its glitches, or tell one in full.

Footage

Takes, cuts and the camera, from your own media.

Verb What it does
raea media Probe, cut, measure and encode media natively, the same on the Mac and the iPhone, with no ffmpeg.
raea cut Cut a take to the lines it says, transcribing it first, and write cuts.ts and words.json.
raea frame Say how a take fits the edit: a talking take for , a screen recording for , from where its face is.
raea track Solve a clip's camera on this machine, so 3D can stand in its world with .
raea splat Train footage of a real place or thing into a 3D Gaussian splat for , on this Mac's GPU.
raea mezz Make an intra-only ProRes copy of each long-GOP source over 1080p, so scrubbing it is smooth.
raea neural Run DLSS 5 neural rendering over a render's frames on the Mac, through your own MLX-DLSS build and weights.

Sound

Music read, foley and instruments made on this machine.

Verb What it does
raea song Read a song's energy map: beats, bars, sections, builds, drops, stops, hits and cuts per bar.
raea sounds Search open sample libraries for instruments and drums, and fetch one for a Sampler.
raea sao Make a sound effect from a description with Stable Audio Open, on this machine.
raea tokensynth Make an instrument's notes from a description of its timbre with TokenSynth, on this machine.
raea setup-audio Install or check the local audio models: Stable Audio Open for foley and TokenSynth for instruments.
raea voice Speech in and out on this computer, as lines of JSON on stdin and stdout: what raea.app's Ideate hears and speaks with. While it speaks it doesn't listen, unless --duplex (headphones: it listens all the time) or --over (speakers: its own voice is taken out of the microphone's sound, new and not yet tried across real rooms).

Generate and 3D tools

Generated media, physics, light and weathering bakes, clothes and motion for SOMA's body, Blender and Godot.

Verb What it does
raea gen Generate images, video, music, sound, speech, 3D models and text through made.app, fal, Replicate, OpenRouter, Modal or ComfyUI.
raea physics Make the bakes and play: rigid bodies, soft goo, and parts cut out of a .glb.
raea bake Bake a composition's bounce light into lightmaps on raea's own ray tracer, and measure the bake against Cycles.
raea wear Bake what weathers a model: where rain reaches and runs, what the sun sees, edges, hollows and touch, as maps raea/wear reads.
raea clothes Clothes for SOMA's body from words: make sews a garment from a sewing pattern (GarmentCode, MIT), cut to SOMA's measurements and draped by raea's own cloth, as assets/clothes/NAME.json and its .glb; cover lays one on the skin by procedure; wear puts garments on a body.
raea motion Body motion made on this machine by Kimodo (NVIDIA), on MLX on a Mac and on PyTorch on Linux and Windows: a SOMA clip from a line of words and, with --keys, Kimodo constraints (full-body keyframes, hand or foot targets, a root path, as sdk/body/tools/between.ts writes them), as the clip sdk/body/tools/fromkimodo.ts reads.
raea blender Run a Blender Python script headless, with raea's library of mesh scripts: convert, decimate, repair, split, bake, rig, cloth.
raea godot Run a TypeScript script against Godot's whole API in a headless Godot with GodotJS, record what it draws as frames, or open the editor on the project.

Agents and setup

What an agent reads and shows the person, and the tools raea installs.

Verb What it does
raea guide Print raea's craft guides: the floor read before any edit, the modes, the notes and the 3D guides.
raea fix A problem looked up before you guess: what you see or the error text, "quoted" for an exact phrase.
raea context Print what to read before working on a project: its taste, brief and look, the floor and its modes' guides.
raea notes A person's notes as files the work is held to: each taken word for word, then restated as asks before anything changes.
raea show Show the person something in the raea app, as an item they can use and answer: stills, a video, a sound, a script, an interactive .tsx or a question.
raea skill Print the agent skill this raea ships, matched to its version, or one of its references.
raea skills Install raea's agent skill where Claude Code, Codex, Kimi or Gemini read skills, with its MCP server and hook.
raea setup Find Blender, or download its current LTS, and install raea's add-on and the MCP add-on.
raea bug Report a bug in raea itself to raea's server: a line saying what's wrong and what happened, with raea's version and the OS added, no account needed.
raea ask Ask about a piece's picture and sound: clef-omni answers in words and a probability, paid from your raea plan, and every answer is kept so a question can be calibrated.