Commit Graph
15 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
shinyobjectz 6d6e81d7f4 SG17: a CSS animation in a frame rendered alone is where the render has it; L2 holds the frame-order benches
A frame alone (`render --frame N`, or `--at` that doesn't start at 0) mounts every element in one pass. The page
resolved them all at the earliest <Sequence> start, so an animation outside any Sequence began there
(sdk/react/bench/css/anim.tsx: A at x 100, not 300, at frame 15 alone, on 0.1.9 too), and on a page with no
<Sequence> every animation began on the frame itself (frame 15 alone: x 0, not 300). engine/page motion.rs now
resolves at the earliest start, an element outside any Sequence starting at the composition's 0, and moves each later
element's animations to its own start (blitz-dom BaseDocument::delay_animations). A render of every frame, and P26's
`--at` from frame 0, mount each element on its own frame and are unchanged.

P26 couldn't see it: it compares with 0.1.9's baseline. tools/l2.sh now runs the benches in bench/l2-checks.txt, which
check what is right (at-0, at-time, at-3d, compute-frames, css), each with the candidate's raea: 5/5 on this build.
css/check.sh takes RAEA_BIN as the other benches do.
2026-11-22 19:20:30 -08:00
shinyobjectz 6cd3a2f29f A comment that says "import" no longer takes the edit's real import
The rewriter skipped a match that started in a comment, but went on searching after the match's end. A header line
such as "its @import and nesting" therefore swallowed the `import { ... } from "raea"` below it, which stayed
unrewritten and threw "Can't find variable: raea" before the first frame (sdk/react/bench/css/edit.tsx on 0.1.9,
P26's one failure). It now looks again right after the comment or string the match began in.

Test: an_import_written_in_a_string_template_or_comment_is_left_as_text gains the case (it fails without the fix). sdk/react/bench/css/check.sh's CSS part passes; its
CSS-animation part (a frame rendered alone, A at x 100 not 300) fails the same on 0.1.9 and is separate.

check.sh finds the repo's target/release/raea by default (it looked under sdk/react, where it cds first) and takes a relative RAEA path.
2026-11-22 18:31:19 -08:00
shinyobjectz 3db55f345d References follow the review: tonejs-instruments is CC-BY 3.0 in catalog.py and catalog.json (the README's licence; sample-source-info.txt's sources credited), so LICENCE.txt and the credit line raea sounds get prints say so, and the sounds manual page credits all three CC-BY libraries. The setup-audio page states SAO's licence as it reads, gets uv and git from ensure.sh, and says what status 1 and RAEA_AUDIO_AUTOSETUP=0 mean. The tone game bench's music was a fatsine pad holding two-bar chords, the default the guides now forbid, and games.md pointed agents at it: it is now a chiptune loop, synths on purpose so the bench needs no sample files, with a square lead that asks and answers, a bass walking C Am F G and a plucked arpeggio, ducked under the voice as before (check.sh's tempo line and amount: -12 are unchanged). 2026-11-16 17:29:58 -08:00
shinyobjectz 620cfe0744 References and the agent's prompt teach sound the way the guides now do.
The agent's sound line in engine/cli puts a sample library first, names raea guide sources, says music is composed for the cut and never a pad or drone by default, and keeps TokenSynth for a timbre no library has. Audio's src doc no longer offers lyria(), which is retired (and audio-stack.md says so), and the manual's example drops the media/ prefix staticFile doesn't take. The CLI pages say what is true: raea sounds' ids are exact (vcsl/upright-piano-knight, vcsl/bass-drum-1) and --all gives a pitched instrument one take a note; an SAO take is at most 11.9 s, a seed's take is played from its file, and SAO suits effects better than music; TokenSynth is for a missing timbre, curated; setup-audio says what each model fetches, its size and licence (SAO's is Stability AI's Community License, not an open one), what it needs and what its failures mean.
2026-11-16 17:29:58 -08:00
shinyobjectz 19c877037a #158: a render can't wait forever on a frame its runtime lost. Ragul's long 4K renders hung before their first frame about half the time on 0.1.4 (2 of 6 on 0.1.2): the main thread waiting in settle's wait_flush, the JS thread idle, no output, no exit. Settle's no-progress guard took any JS time anywhere as progress, and the JS thread ticks its timer queue every 500 ms even when it's empty, so a frame that would never come was waited on for good; it also read every runtime's flushes, and a render's 3D rows run three runtimes.
Now each runtime keeps its own JsState (runtime/shared stall.rs, with Settling, the settle's watch over it): its flushes, its work (an event delivered, or a timers call with a timer due; an empty tick isn't work), its current call and since when it has sat idle with nothing scheduled. Settle reads its own runtime's counts; a thread that only runs timers without committing is given at most HOLD_SECS. A runtime stepping a range (step_frames sets Stepping) whose JS thread sits idle for a second with its frame neither drawn nor held is asked for the rest of the range again from that frame, up to three times (frames are pure), and the render says so. A frame still not drawn fails after 20 s naming the frame, the marker, how long the thread sat idle and how often it was asked. The bridge's event loop ending by a throw (a rejection nothing caught, so events queued unread) is now a composition error the render reports at once (the prelude's __raea_loop_died, which entry.rs catches with), and the prelude's __raea_deliver says when an event went unheard, which the stall error reports.

The hang didn't reproduce here: 587 runs of a composition like his (2160x3840, 752 and 3840 frames, Sequences, @font-face, Img, #96's six-layer Freeze blur), 3 and 16 runtimes under load, 0 hangs. So the cause in his project is still unknown. RAEA_FAULT_DROP_EVENT=raea-frames loses the 3D rows' range event as such a hang would: tools/settle-nudge.sh shows the render asking again and finishing, and with raea-frames* (every one lost) failing in 23 s with the named error instead of hanging. Smoke on the new build: 60 scene-rows passes with no re-asks, a 600-frame PNG folder, mp4, the 752-frame 4K mp4, and examples/games/lighting.tsx. Dupes: one exact group gone (tools/dupes.max 293 -> 292).
2026-11-15 05:08:52 -08:00
shinyobjectz b95a9fab63 TL13a: a sequence retimed live: the stage's props carry __raeaSequences (each named Sequence's from and length), which a Sequence takes over its own until the file it was written into opens again. domReads listens for raea-props in both runtimes (lite hands its bridge's addEventListener over as __raeaListen, since its entry gives domReads none). raea-feed b7e1514 sends them as an edit is let go and seeks a paused stage again so it draws them (set_props on a paused stage isn't drawn until something steps it, an engine gap); 16 edits on the stage in raea's window by 88 ms (median of sound upper bounds that each count a capture's ~78 ms read back), the playhead held through each reopening 2026-11-14 05:48:18 -08:00
shinyobjectz 53d5f94888 LR2: every host that runs a composition answers its layout reads. Live play (preview, raea play, the app's stage, an exported game) answers from its live page, synced mid-settle as a render's is. Live play's lite runtime set no refs (a ref was null, a canvas drawn through one drew nothing): its hosts now keep bevy-react's BevyElement, BevyCanvasElement and BevyTextNode linked as React's tree is and set and clear refs, and entry_lite installs canvas2d and the DOM reads. raea world answers from the page it lays its frames out with; a baked timeline (raea play --baked) refuses a read plainly instead of baking it as 0. #54's repro played live puts "here" at x 342 (x 0 before); every layout-reads probe played live is its render's frame (SSIM 1.000), and the games replay (pong, platformer, lite against React) stays 1.000. A read costs a live frame about 1.5 ms (step p50 0.4 -> 1.9 ms, one read a frame on a 40-line page) 2026-11-12 20:30:01 -08:00
shinyobjectz 8a2f9c78ab LR4: a composition's refs have the tree a web component walks and queries: children and childNodes, the first, last and sibling nodes, parentElement, tagName, nodeName and nodeType, id, className, classList, dataset, getAttribute, textContent, contains, matches, closest, querySelector and querySelectorAll, answered in JS from bevy-react's committed instances (sdk/raea's dom-tree, installed from the entry with dom-reads). Selectors cover tag, *, #id, .class, attributes, descendant and child, comma lists, :first-child, :last-child, :only-child, :nth-child and :not; anything else throws a SyntaxError, as Chrome's does. el.id is the id attribute as on the web: the bevy-react patch renames its reconciler id to nodeId, and canvas2d, dom-reads and useEntity read that. probes/tree.tsx prints every answer and matches Chrome's words 2026-11-12 14:26:20 -08:00
shinyobjectz 2d869d719b LR3: a composition's refs have the geometry a web component reads, from the page that draws the frame: getBoundingClientRect (a DOMRect, transforms included), getClientRects, offset* and offsetParent (untransformed, whole px, from the positioned ancestor's padding edge), client* and scroll*, each as Chrome answers it. bevy-react 0.8.1 gets a patch (sdk/react/js/patches, applied by bun install) that makes its instances a tree, BevyElement and BevyTextNode with their parent, children and committed props; sdk/raea's dom-reads puts the reads on BevyElement from the entry. #54's repro now puts "here" where Chrome does (x 342, was 0), and probes/geometry.tsx prints every read and matches Chrome's words. The bundle crate's stylesheet url() rewriter moves to raea-runtime-cssurls to leave it under 2000 lines 2026-11-12 14:18:19 -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 f955e031da raea 644193211 2026-11-06 17:26:46 -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
shinyobjectz a7d0117f16 raea v0.0.2 2026-10-21 16:17:59 -07:00