Commit Graph
27 Commits
Author SHA1 Message Date
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
shaneandshinyobjectz ea5640de8f raea show --fyi/--group; notes reach closed sessions through raea's hook (#263)
* raea show --fyi and --group; the inbox hook says seen

Shane 11-28: "some things I'm not approving, I'm just acknowledging"; "the agent can go 'let me add a label here'".
raea show --fyi sends a show only to be looked at (the person says Got it, never approves or sends notes); --group
"Title: what it is" FILE... lays the files out in groups, each titled and said in a plain line. Both go to the app's
host as ShowBody.intent and .groups (raea-feed host/show.ts), which hands them to the review (raea-platform
harness/board.ts). The inbox hook says a {kind: seen} line as "seen on item ...", and when every new line is one,
tells the agent there's nothing to do rather than to take it up.

* Notes reach closed sessions: raea's hook hands them over when the session starts again

Shane 11-28: "raea installs a hook in Claude Code and Codex so your notes are delivered when the session next starts".
What the person sends from raea to a session whose terminal has closed waits in its inbox (~/.raea/inbox); the hook
now reads it at SessionStart (a resumed session takes it up first, told it waited while the session was closed) and at
UserPromptSubmit, as well as after a tool and as a turn ends. raea skills install adds SessionStart and
UserPromptSubmit for Claude Code, and Stop, SessionStart and UserPromptSubmit for Codex.

Tested: raea-app-check-inbox (4, a SessionStart hand-over once) and the installer's test in a standalone crate. The
hook.rs change isn't compiled here: raea-app-check needs ~12 GB to build and the disk has 3.5 GB free.

* The inbox tests share one scratch folder helper (dupes: the new test copied the first one's setup)

* The inbox's all-seen check written so it isn't a copy of a closure in fingerprint-use (dupes)

---------

Co-authored-by: shinyobjectz <[email protected]>
2026-11-28 11:29:49 -08:00
shinyobjectz 407dbc5bec raea sounds get -o DIR: a folder that already holds another instrument keeps it, and this one goes in DIR/PACK-INSTRUMENT (two instruments share note names, so the second replaced the first and its licence, #217) 2026-11-24 23:46:55 -08:00
shinyobjectz cedf2607c6 MK0-MK2: raea make, the review loop the agent can't skip (AnyScene/AnyKit/AnyShot, docs/make.feature)
A scene, kit or shot is now a job made to a frozen plan and held to it in code:

- core/brief make.rs: `make` on brief.ts (scene(), kit(), shot() from raea/brief): kind, references, one
  style paragraph, dials with value/source/means per kind, objects with real size, route, reference or
  invented and crop, shots, compositions, deliverables, a round cap. doctor() names what the plan lacks.
  TS types generated as Make* (brief.gen.ts).
- apps/make: `raea make status [DIR] [--json]`: the kind's deliverables, NOTES.md's "What the skill got
  wrong", each composition's last render or check newer than it and clean (the record), a critic round
  newer than the newest deliverable with each blocking defect fixed or answered in NOTES, and once the
  judge is calibrated two passes in a row. Done also at the round cap or AnyKit's stall, delivered short.
- apps/check/make: the Stop hook blocks a turn's end while the job isn't done, three times at most on the
  same open items; a project without `make` is never held. Claude's Stop hook timeout 10 s -> 30 s.
- docs/make.feature MK0-MK20: the whole adoption plan (gate tiers through raea ask, grounding, kits, shots,
  plan drawing, raea cloud).

Tested: raea-core-brief 11, raea-app-make 8, raea-app-check-make 3. Not built here (disk at 13 GB):
apps/solid, apps/check and engine/cli's one-line wiring; L1 builds them.
2026-11-23 11:39:18 -08:00
shinyobjectz e9909de88f NB2a: debug views as channels with values; messages that told an author to run cargo
io/trace's stat_value gives a channel a value (pass=depth, lod_debug=time, fog_skip=a,b; a channel chosen bare is
"1"), its variable still the override. Nine debug views (clay, fog_debug, fog_show_fallback, lod_debug, pass,
pass_rays, pass_reach, song_debug, volume_debug), inspect and fog_skip go through it, so a composition chooses them
with stats.on. tools/nobuild.sh stats: pass=depth chosen from TypeScript draws RAEA_PASS=depth's frame (max 0 levels
apart, 240 from the picture), and its static check covers the 35 stat and view variables decided done.

raea song, framing="face" and matchmove say to update raea when raea-perceive is missing (releases ship it) rather than
to build it. export-game says this raea ships without raea-game and how to ask for it; the note on the smaller player
prints only to a checkout's build.
2026-11-22 09:15:58 -08:00
shinyobjectz 4d44519fc1 Local models install and run on a Mac, Windows or Linux with nothing installed first
Each local model's setup is now tools/<model>/setup.py (standard library only, on tools/local_setup.py), run by uv
on any OS as raea runs it: uv on the PATH, else raea's own uv 0.12.24 fetched once into ~/.cache/raea-tools/uv (where
tools/ensure.sh puts it) and checked against its SHA-256. The setup.sh beside each is a wrapper for a Mac or Linux.
Until now each setup was a sh script needing uv already installed (brew install uv), so Windows had no way to
install any local model.

- SAO: Core ML on a Mac, ONNX Runtime elsewhere (CUDA where nvidia-smi finds a GPU; RAEA_SAO_CUDA=0|1); its WAV is
  written by Python's wave module, not an installed ffmpeg (same samples)
- matchmove, splat: footage read through PyAV, whose wheels carry FFmpeg's libraries (no ffmpeg/ffprobe needed);
  splat fetches Brush v0.3.0's release build for macOS arm64, Linux x86_64 or Windows x86_64, each SHA-256 checked
- goo: Taichi on Metal on a Mac, else its best GPU (CUDA, Vulkan) or the CPU; the backend is reported as run
- TokenSynth: its code as GitHub's archive at a pinned commit (no git); coremltools only on a Mac
- the engine runs .venv\Scripts\python.exe on Windows (venv_python), Brush's brush_app.exe
- tools/release.sh ships tools/local_setup.py
2026-11-18 16:24:45 -08:00
shinyobjectz 04adefa570 L1 for every branch landing at once: crates and files back under their limits, copies folded, the Solari fix marked
- raea-sys-shots: raea-sys-frame's cuts between cameras as a crate of their own (frame re-exports it as shots), so
  frame's new Cut fits under the crate limit; runtime/scene's paint_cut joins cam_keyed's prefixes.
- sdk/video controls.ts: a composition's controls out of registry.tsx (under 500 lines), each kind documented.
- raea-runtime-segments in tools/layers.toml; vendor/bevy_solari's compaction-queue fix marked raea:.
- sdk/cloud: a farm job's GPU kind is `card` (a prop names what it picks, not the processor); the farm's query is
  unchanged.
- Copies folded: io-media's backend() is backend_unsigned wrapped by the signer; paint's cut colours read by one
  closure; foliage's one smoothstep, a triangle's bounds in one pass, a cell's pixels as one range; segments' video
  track found once in its tests and its shortest segment set where it's used; the Solari switch through
  raea_io_home::env_on; kimodo's package record a path like its others; a few one-liners written directly.
  tools/dupes.max names the six left, which match by shape only (trait forwards, foliage's own FNV and stream).
2026-11-17 19:52:34 -08:00
shinyobjectz c53a2cfd47 TokenSynth on an NVIDIA GPU (docs/cloud-render.feature CR25): run.py --device cpu|cuda (the DAC decoder and the model on the device, sampling still on the CPU from the seed), raea's asset store passes it from RAEA_TOKENSYNTH_DEVICE (the device is in the cache key, so a GPU's note is its own sample), and an install from before --device says to run setup.sh again. sdk/cloud/deploy/modal/tokensynth.py installs it into raea-models (built at its own path on the container's disk: uv's temporary files fail on the volume, and the venv names its path) and measures it. On a Modal A10, 2.5 s a note with the model loaded against 50.6 s on 4 CPU cores; a process a note, 15.5 s on a T4 against 103 s. CLAP audio embeddings: 4 of 6 GPU notes are as close to the CPU's as two CPU seeds are. 2026-11-17 19:52:34 -08:00
shinyobjectz c37616685c raea-app-motion: raea motion and raea setup motion leave raea-app-tools, and kimodo's torch path passes L1
raea-app-tools was 2050 lines, over the crate limit, with the motion verbs: they move whole to apps/motion
(raea-app-motion), and raea-app-tools re-exports it as motion, so the CLI's tools::motion calls stand. A path handed
to PyTorch goes through dunce::canonicalize (std's gives \\?\C:\ on Windows), and the run's temp folder is
raea-kimodo-PID (the retired name gone). The environment's venv and checkpoint folders are fields made with the
Torch, a constraint row's numbers are read without a closure, and what a folder takes on disk is io-home's
disk_use for raea setup motion and raea sounds alike: tools/dupes.sh's new groups from kimodo, folded.
2026-11-17 19:52:34 -08:00
shinyobjectz 10a18eb332 raea motion on PyTorch off the Mac, raea setup motion, and shaded meshes that spawn after a load
raea motion runs Kimodo on MLX on a Mac as before; on Linux and Windows it runs upstream Kimodo (commit e1c219c, Kimodo-SOMA-RP-v1, post_processing off) on PyTorch, CUDA when there is an NVIDIA GPU, else the CPU. Python hands back the sampler's raw features and raea's Rust decoder makes the clip, so both write one clip format (systems/kimodo torch.rs, torch/run.py). raea setup motion [--check] fetches or checks the MLX models on a Mac, and elsewhere makes a uv Python 3.11 environment and fetches the weights (Llama 3 from NousResearch's ungated copy, its files checked against Meta's SHA-256s, each repository pinned). Checked on the Mac: MLX unchanged, the torch path's Rust half on MLX's own features (same keys, root gap 1.1e-16 m), cargo check for macOS, Linux and Windows. Not yet run end to end on Linux or Windows (docs/character.feature CH15d says what is and isn't tested).

scene3d's shade_meshes: a mesh row waiting for its shader gets it after a live frame's or a fed render's rows too, not only when a model spawned (a shaded part with no model beside it drew its bare standard surface). docs/first-person.feature: the first-person hands, interactions and cutscenes spec (FP1-FP11).
2026-11-17 19:52:34 -08:00
shinyobjectz 57f3ef8db3 Windows: canonicalize goes through dunce and the home folder through user_home (all but five crates)
canonicalize() through std gives \\?\C:\... on Windows: a path Git for Windows can neither read nor lock, Rolldown can't resolve, and which shares no root with the C:\... git and everything else print. It broke a new workspace's git config (fixed in apps/workspace earlier today). Here the calls in the apps (CapCut, check, direction, engines, fingerprint, game, interchange, judge, solid, sound, targets, tools), the bundler, the CLI, the modules loader, the native shim's realpath, the page's motion, io (assets, gen, home, shell), runtime/bundle/lib, js, track and world, the systems (fingerprint-use, footage, index, ml, page-net), the bridge bench's examples and the sdk/ui test tools use dunce::canonicalize, which gives C:\... wherever a path can be said so and is std's own call on the Mac and Linux.

Reads of the home folder took HOME alone, which Windows doesn't set for an app opened from the Start menu or Explorer, so the taste file, the settings file, the inbox, the npm store, the caches (sounds, splats, goo, ingest, speech, Core ML, the portable perceive models), the node shim's os.homedir() and CapCut's drafts were looked for under whatever folder raea ran in. raea_io_home::user_home() reads HOME, then USERPROFILE (Git for Windows' order; an empty one counts as unset), and models(), caches(), logs(), env_path() and offline() use it, as do the places that had their own fallback.

The caches that had their own copy of "this variable, else this folder under home" (splats, goo, ingest, the npm store, Core ML's models) now call raea_io_home::env_path and models(), and raea_io_home::real canonicalizes a path or keeps it as given, so tools/dupes.max comes down to 289 exact and 58 near. tools/skills.sh reads a variable from env_path("RAEA_...", ".raea/...") as it did from env::var, so files.md keeps RAEA_NPM_HOME on ~/.raea/npm (every generated reference is unchanged).

Five crates hold other sessions' uncommitted edits (engine/page/stage, engine/render, runtime/bundle, runtime/export, runtime/live): their few calls, and tools/windows-paths.sh, the check that keeps both at zero, land once those are committed.

Checked: cargo check --all-targets of every crate changed, and of sdk/ui/conformance and sdk/ui/parity. On a Windows 11 PC and on macOS the unit tests of raea-io-home (user_home's order and an empty HOME, now in caches_logs_and_the_home_folder_follow_the_platform), raea-app-check, raea-app-workspace, raea-app-registry and raea-core-facts pass (5, 27, 10, 7, 17).
2026-11-17 10:38:33 -08:00
shinyobjectz b5425278b3 CH15c: Kimodo on this Mac. raea-sys-kimodo runs Kimodo-SOMA-RP-v1 and its LLM2Vec text encoder (Llama 3 8B Instruct in 8 bits) on MLX in Rust, with no Python and no cloud GPU; raea motion "LINE" [--keys KEYS.json] writes the clip sdk/body/tools/fromkimodo.ts reads
Checked against the PyTorch reference (tests.rs, fixtures in ~/.cache/raea-kimodo/mlx/ref/rust):
- the denoiser within 2e-3 on its features (two batches, padding, constraints, headings);
- a whole 100-step generation from the same noise and text within 0.002 cm at worst on the 77 joints;
- constraints become the same conditions (mask equal, values within 1e-4);
- the 8-bit encoder at cosine 1.000000 to the Python MLX 8-bit run and 0.999929 to float32 (over eight lines, the motion's joints move 0.01 to 0.74 cm on average and 1.44 cm at worst, against float32 text).

Kimodo's post-processing (its C++ foot-skate and constraint clean-up) is not ported: clips are post_processing=False. A seed here is not that seed in the cloud (PCG32 noise, not torch's).

raea motion is in the manual's CLI reference (docs/manual/reference/cli/motion.md, under "Generate and 3D tools", every flag described, a do line made between standing keys). The crate's small helpers that copied ones elsewhere are written once or rewritten (floats, cross, round, the .npy words, the clip's slug), so dupes stays at 292 and 59; dyn-clone leaves NOTICE's catalog list, since the motion crate brings mlx-rs (which uses it) into a plain raea build. SKILL.md:19 (which workspace, which project): checked, still true; raea motion takes no project and writes where -o says.
2026-11-16 01:43:08 -08:00
shinyobjectz 76a11076ea A3c: raea hook hands an agent what the person sent from the raea app, after any tool and as its turn ends
A session that posted with raea show has an inbox; the app writes there what the person sends on its items or to it
in the feed. raea hook now reads what was added since its last look (raea-app-check-inbox, apps/check/inbox: a byte
mark in <inbox>.read the app reads to say Read) and hands it over: as PostToolUse context after any tool, and on Stop
as the reason the turn goes on, so a reply reaches a busy terminal session at its next step instead of waiting for it
to follow the file. raea skills install gives Claude Code the PostToolUse hook on every tool and a Stop hook, widening
an older raea's after-save matcher (Shane 11-14: a reply in the feed didn't confirm or interrupt the agent). The inbox
is its own crate to keep raea-app-check under the size limit.
2026-11-14 23:38:01 -08:00
shinyobjectz 0ed836095e SK13: raea-cli stays under its 2000 lines (origin/main had it at 1999). Where each agent reads skills moves to apps/tools agent_skills.rs (folder, agents, AGENTS), beside agent_mcp, agent_hooks and agent_grokbot; raea skills install and raea doctor read it there. Grok Bot's install step is agent_grokbot::stage: the preface in the staged SKILL.md, refused over the 256 KB Grok Bot's Add new skill takes (MAX_SKILL), and the links; its test moves with it, and raea-cli's skill test checks the shipped SKILL.md with its preface fits. The preface is written in with_preface, its one caller, and ask takes the folder (both were structural twins of other code: dupes). raea-cli 1975 lines; cargo check -p raea-app-tools -p raea-cli --tests passes; the unit tests weren't run here (a debug test build of apps/tools needs the whole engine, about 15 GB, and filled the disk) 2026-11-14 12:09:48 -08:00
shinyobjectz c939b27aee SK13: Grok Bot as a raea skills install target. Grok Bot (xAI's desktop agent, /Applications/Grok Bot.app 1.1.0) keeps its skills and MCP servers on a computer of its own in the cloud and has no hooks, CLI or ACP; what reaches this Mac is its Execution on this computer. So raea skills install --agent grokbot stages raea's skill in ~/.raea/grokbot/skills (RAEA_GROKBOT_HOME), stamped, with a preface after the front matter saying raea runs on the person's Mac and how to run it there, and prints Grok Bot's own links that finish it: grokbot://app/v1/settings?id=local-execution and a prompt link, filled in but not sent, asking the Bot to make the skill from the staged file (or Skills, Add new skill, Upload file). No MCP server: Grok Bot would run its command on its own computer. apps/tools agent_grokbot.rs holds the folder, the preface, the links (encoded as Grok Bot encodes its own, within its 1000 and 2048 character limits) and the closing text; engine/cli skill.rs adds the agent and splits install_into for a test. Not built here: cargo test -p raea-app-tools agent_grokbot and the engine/cli skill tests need the integrator's lane build. 2026-11-14 12:09:48 -08:00
shinyobjectz a331bffd13 BL29, GD8, GD9: Windows and Linux on raea's own v0.1.1-rc4 builds, and setup blender finishes on Windows with uv. Linux (debian:trixie-slim): Blender and GodotJS's Godot installed and both smokes passed. Windows 11 from the release zip in an empty home: Blender's smoke passed, GodotJS's Godot installed and its smoke passed, and raea's own Windows Godot (sha256 as pinned, 4.6.1.stable.raea) passed it too, its typings the same text as GodotJS's (4 of 18 files CRLF there, LF in raea's). With uv on PATH, setup blender exited 1 there: the MCP add-on's installer prints an arrow Python can't encode for the cp1252 console; it now runs with PYTHONIOENCODING=utf-8 and PYTHONUTF8=1 (apps/tools blender.rs), and so run on that machine it installed the add-on and exited 0 2026-11-11 10:09:23 -08:00
shinyobjectz 33d5548254 BL29, GD8, GD2: setup on a clean machine needs no uv, git or shasum; smoke scripts; a clean Linux's libraries recorded
- raea setup blender finishes on a machine without uv (the MCP add-on becomes a note) or git (raea.blender is
  remembered only where git is; find() takes raea's download anyway).
- Downloads are checked with coreutils' sha256sum where perl's shasum is missing (debian:trixie-slim has none), for
  Blender's setup and Godot's.
- A Linux Blender that can't load its libraries names the Debian packages it needs, found in debian:trixie-slim:
  libx11-6 libxi6 libxext6 libxfixes3 libxrender1 libxkbcommon0 libsm6 libice6 libgl1 libopengl0.
- sdk/blender/test/smoke.ts: raea blender run's smoke (cubes made, a bmesh volume, mathutils against Blender's, one
  PASS line).
- GD2: pin_for(os, arch), and a test that Linux and Windows on arm64 and other systems are told to build GodotJS and
  set raea.godot.
- docs: BL29 and GD8 record the clean Mac runs and the clean Linux probe; GD2 is done.

Proven: cargo test -p raea-app-tools -p raea-app-engines. macOS with an empty HOME and the system's PATH: raea setup
blender --download, then raea blender run smoke.ts, PASS (Blender 5.2.4 LTS); raea setup godot, then raea godot run
smoke.ts, PASS. debian:trixie-slim on Modal: Blender 5.2.4 runs with the packages above, smoke.ts under Bun through
raea/blender PASS, and GodotJS's Linux editor starts headless.
2026-11-10 21:42:49 -08:00
shinyobjectz 8a9236fffa BL28: raea setup blender installs raea's add-on, and a script drives the person's own Blender live
- raea setup blender copies sdk/blender/python/raea_blender into that Blender's add-ons folder (replacing an older
  copy) and enables it, beside the MCP add-on; --check says whether it is current and on. Started with its window,
  that Blender serves raea/blender on 127.0.0.1 behind a token (~/.raea/blender/live.json).
- The add-on serves only a Blender with a window: a background one (a command-line render, setup's own checks) would
  hide the person's open Blender behind its own live.json.
- Fixed: Blender 5.2 gives a timer the window but no area, so the bridge's ui_context left view3d operators with no 3D
  view; it now fills in the area whenever there is none.
- Fixed, headless too: a slot freed by garbage collection was freed at the head of the next batch, before the read an
  await had queued for it ("reference N was released or never set"). Frees now go last, and are sent again after a
  batch that fails before them. test/bridge.test.ts forces the race: it failed before the fix and passes after.
- test/live.ts, run by hand (it opens a window): setup in a scratch BLENDER_USER_RESOURCES, Blender started with its
  window, a cube made, moved and put in edit mode and view3d.snap_cursor_to_center run, on the main thread in the 3D
  view; once Blender quits, connect({ live: true }) refuses its live.json.
- The CLI reference (docs/manual/reference/cli: setup, blender, index) follows the help.

Proven: cargo test -p raea-app-tools; sdk/blender's tsc and its 14 bun tests against Blender 5.2.1; test/live.ts 5 of 5
runs; the race test 5 of 5; bun tools/manual-ref/cli.ts check.
2026-11-10 21:42:49 -08:00
shinyobjectz 32fdfe0863 blender-godot: L1's repo-wide checks (licences, dupes, taxonomy, the CLI reference)
- Licences: Godot's setup unpacks its zip with the zip crate, which brings zeroize_derive into a plain raea build, so it
  leaves the plugin catalog's list (tools/licenses.sh: NOTICE's line and LICENSES/zeroize_derive-1.5.0).
- Dupes, back to 294 exact and 56 near: Blender and Godot share apps/tools' own_dir(name) (~/.raea/tools/NAME);
  godot_run's project_size reads `key=value` with split_once, and godot types counts its .d.ts files in a loop.
- Taxonomy: the backend-name scan leaves out sdk/blender/src/gen, Blender's own API as its RNA names it
  (bpy.ops.render.opengl), as it leaves out the generated .gen.tsx.
- The manual's CLI reference (tools/manual-ref/cli.ts gen): `godot` joins Generate and 3D tools with a page of its own
  (docs/manual/reference/cli/godot.md, with its prose: run, the window that --window and --movie open, types, open);
  blender.md says what a .ts script does; setup.md and the index follow the help.

Proven in an export of origin/main + this lane: tools/dupes.sh (294, 56), tools/taxonomy.sh, tools/licenses.sh --check,
and bun tools/manual-ref/cli.ts check (48 verbs, 214 flags, every flag described) pass; cargo test -p raea-app-engines
-p raea-app-tools passes.
2026-11-10 21:42:49 -08:00
shinyobjectz 4dc3083c6e apps/engines: Blender's TypeScript runner and Godot in a crate of their own, so apps/tools and engine/cli stay under the 2,000-line crate limit (tools/size.sh)
The lane's first commit put apps/tools at 2,192 lines and engine/cli at 2,041, and L1 refused it. raea-app-engines
(apps/engines, layer apps) now holds godot.rs, godot_run.rs and blender_bridge.rs unchanged, and `raea blender run
SCRIPT.ts` (blender_ts.rs, moved out of engine/cli's cli.rs). Its cli(args) answers `setup blender|godot`, `blender ...`
and `godot ...`, so cli.rs calls it once where it had five branches. Finding and setting up Blender stays in
apps/tools/src/blender.rs, whose run and sha256 are now pub for Godot's setup; zip and dunce moved with Godot.
Sizes now: apps/tools 1,496, apps/engines 777, engine/cli 1,996 (main has 1,999).

tools/layers.toml gives the crate its layer; tools/skills.sh's stale-help check also watches apps/engines/src, where
Godot's usage now lives; docs/godot.feature, sdk/godot/README.md, sdk/godot/tools/gen.sh and runtime/calls/src/blender.rs
name the new paths.

Proven: cargo test -p raea-app-engines -p raea-app-tools (10 and 12 pass, among them a new test that cli() takes only its
own verbs and leaves the rest to the CLI); raea built with it runs `raea godot`, `raea setup godot --check` and
`raea blender run` on a .ts script as before.
2026-11-10 21:42:49 -08:00
shinyobjectz b2631ff5b6 raea/blender and raea/godot: Blender's and Godot's whole APIs from TypeScript (docs/blender.feature BL22-BL35, docs/godot.feature GD1-GD10)
Shane, 11-10: "include natively a blender api package in raea/blender using samchon/blendia as good starting place and
get us to a solid scripting parity to the official blender python api. we will own this ourselves", and "make sure to
add GodotJS which should add a more complete integration and bindings for godot integration".

raea/blender (sdk/blender, started from samchon/blendia, MIT, and rewritten): bpy, bmesh, mathutils, bpy_extras and
gpu typed from Blender 5.2.1's own RNA and docstrings (tools/gen.sh: 1809 structs, 2498 operators, 41 modules outside
RNA; 102 of about 12 900 members any), run against a real Blender. Paths are lazy as Python's attribute access is
(writes and calls sent in order, reads awaited, py.pin for a stable handle), errors are Python's (BlenderError),
mathutils is computed in TypeScript with Blender's maths (1450 values within 1e-5 of Blender's), float arrays are
the value Blender gives (Vector, Matrix, Euler, Quaternion, Color), a call that makes a thing by its type returns
that class (tools/refine.py), node sockets are typed by name, and every argument can be given by keyword.
`raea blender run SCRIPT.ts [FILE.blend] [ARGS...]` runs a script on raea's engine against a headless Blender
(apps/tools blender_bridge.rs, runtime/calls blender.post); under Bun or Node it starts its own, or joins the person's
Blender through raea's add-on (python/raea_blender).

raea/godot (sdk/godot) on GodotJS (MIT): Godot 4.6.1's every class, singleton, enum and builtin typed from GodotJS's
codegen, JavaScriptCore on the Mac and QuickJS-ng on Windows and Linux (no V8). `raea setup godot` downloads GodotJS's
editor build pinned by size and sha256 (apps/tools godot.rs); `raea godot run SCRIPT.ts` bundles the script and runs
its default export (a function given the SceneTree and ARGS, or a SceneTree subclass as the main loop) headless or
with --window, --movie recording with Godot's Movie Maker (the window kept on top, the frame size from the project),
a callback that throws stopping the run, RAEA_CWD with cwd() and resolve() for paths; `raea godot types` and
`raea godot open` (godot_run.rs).

The guides: raea guide bevy/blender gains "A step in TypeScript" and bevy/godot is new, each example type-checked
with its SDK's tests (sdk/blender/test/guide.ts, sdk/godot/test/guide.ts) and run as shown; raea guide bevy routes to
bevy/godot. Their raea-skills copies are 7497067 (branch blender-godot-ts, not pushed). sdk/tsconfig.base.json maps
raea/blender and raea/godot; tools/release.sh ships @raea/blender's python/.

Proven: sdk/blender's tsc and bun tests against Blender 5.2.1; sdk/godot's tsc and its 7 bun tests against the
installed GodotJS; apps/tools godot_run's unit tests; post 07b's film (releases/0.1.1/src/engines), its left half
built and keyed by raea/blender and its right half recorded by raea/godot.
2026-11-10 21:42:49 -08:00
shinyobjectz eff11d8778 raea hook: the open's arguments read in one loop, the program's name and the patch's headers matched without copying other code's closures (dupes) 2026-11-09 19:41:12 -08:00
shinyobjectz e9e0fba83e raea hook for every agent: media opened in Preview goes to raea show (a second try goes through), and every harness gets the hooks (Shane 11-09)
Shane 11-09, on a hook that steers an agent's open of a still to raea show: "yes lets do that or at least make it double
confirm then push and confirm. again also make sure all hooks and usages are acp agnostic not just claude".

apps/check/src/hook.rs: raea hook [claude|codex|gemini|kimi] reads any of the four harnesses' hook input (the harness
named, or told apart: Gemini's BeforeTool/AfterTool, Kimi's client_type). Before a shell command (Bash, shell,
shell_command, exec_command, run_shell_command; not Codex's apply_patch), a still, video or sound opened with open,
open -a Preview, xdg-open or qlmanage -p while the raea app is installed is stopped once: exit 2 with the reason on
stderr, which every harness hands its agent, naming the raea show command for those files. The same command in the
same session within ten minutes goes through (~/.raea/hooks/again), so an agent that means it says so twice. open -a
raea, open -R, links and PDFs are never stopped. After a save (file_path, path, or the files an apply_patch adds or
updates), the quick check on a composition, its findings in the shape each harness reads (Kimi's plain stdout,
Gemini's AfterTool context, Claude Code's and Codex's PostToolUse context). quick.rs loses its Claude-only hook.

apps/tools/src/agent_hooks.rs: raea skills install --agent A adds both hooks to that harness's own config:
~/.claude/settings.json, Codex's hooks.json (trusted in its /hooks), ~/.gemini/settings.json (milliseconds, named),
Kimi Code's config.toml [[hooks]] (only the four keys it allows). An event with a raea hook entry is left alone.
agent_mcp.rs loses claude_hook. engine/cli/src/skill.rs: hooks for every agent; a skill folder that's a link (a
raea-skills checkout) is left as it is instead of replaced by a stamped copy.

engine/cli/src/show.ts, native.ts: raea show names its poster from the harness that started it, found up its parent
processes (HARNESSES: Claude Code, Codex, Gemini, Kimi, OpenCode, Goose, Cursor, Amp, Qwen Code, Crush, Aider) when
its shell carries no mark, with an inbox per harness process.

docs/agents.feature A5d, A5e; the manual's hook and skills pages.
2026-11-09 19:33:35 -08:00
shinyobjectz 3fcd4e56f3 raea song builds and runs off Apple (fixes #43). raea-sys-vision compiled modules that use Core ML and Apple Vision on every platform. depth and object are now Apple-only, and AppleVision with its text_lines moved into apple_vision.rs. The Vision trait and the portable helpers stay in vision.rs, and image becomes a dependency everywhere. raea-sys-layout's motion module (pure Rust) is no longer gated. raea-perceive gates the eyes, vad, track and hands commands to Apple, and read-lines and faces to builds that have a backend. Footage's store and content_hash (beats --store) move out of the Apple-only ingest module into store.rs. Off Apple, song and beats decode in process with the soft backend (Symphonia), since a Windows install has no ffmpeg: on a 163 s mp3 the map matches the ffmpeg backend's (264 beats, the same sections; strengths within 0.003). Models live in raea_io_home::models(): %LOCALAPPDATA%\raea\models on Windows, which has no HOME, and ~/.local/share/raea-models elsewhere as before. raea-perceive is found as raea-perceive.exe on Windows (io/assets perceive_bin, and the CLI's native.ts, whose PATH lookup now splits on the platform's delimiter). raea-perceive checks for Linux and Windows except opus's C build, which the soft backend brings and only a native toolchain compiles. The release doesn't ship raea-perceive for Windows or Linux yet 2026-11-08 02:17:06 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00