Commit Graph
11 Commits
Author SHA1 Message Date
shinyobjectz 5d7afd0493 #269's gates on main as it is now: crates and files under their limits by real splits, the copies folded, no "void"
- raea-cli 2139 -> about 1800 lines: raea goal's verbs (the loop's runner, its usage, the render moment, and raea
  make's asset tools regrouped) are raea-cli-goal (engine/cli/goal), and what a refused render changed is
  raea-cli-refused (engine/cli/refused); verbs.rs and usage.rs re-export them, so no call site moved
- engine/native node.rs 515 -> 495: spawnSync's deadline wait is deadline.rs (its pipes drained on threads of their
  own)
- a CommonJS file's names are exported by alias (`export { __cjs_0 as delete }`), so a reserved word is a name too and
  cjs.rs needs no list of them (the list named "void", which tools/no-void.sh can't tell from the product); the node
  test imports one (`delete as del`)
- raea-runtime-export back to main's: #269's own fix for a .png with no --frame (#261) is gone, main fixed it in the
  stills path (8627ba7a), and both had landed as two paths for one case
- tools/skills.sh 504 -> 459: the sections, their co-change warning (SK4) and `stale` are tools/skills-sections.sh,
  sourced as skills-app.sh is
- dupes back to 293/57: cjs.rs's quote and identifier tests one helper each, its resolve without format!, and the new
  lines that matched others by shape written plainly (js.rs's importing folder, check-make's broke lines, apps/make's
  goals, lod-plan's objects)

layers, names, legacy names, size, one-version, no-void, dupes, cargo shear and rask check pass on this tree;
raea-native's (cjs and node, with the reserved-word import and the spawnSync timeout), raea-cli-refused's and
raea-runtime-lod-plan's tests pass.
2026-11-29 17:18:31 -08:00
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 3f9d5eda2d The agent shell's Node core speaks Windows: platform, arch, ppid, paths, file URLs (#169)
process.platform was Rust's word ("windows", "macos"), so every === "win32" and === "darwin" in the shell was false, on
a Mac too; os.platform() said "darwin" and the arch "arm64" everywhere; there was no process.ppid. path was POSIX only:
resolve(".") named "/C:\Users\...", isAbsolute("C:\x") was false and dirname/basename ignored \. On Windows path
parses drives, shares and \ now and writes /, path.win32 parses them anywhere, and fileURLToPath, pathToFileURL,
createRequire, tmpdir, execSync (cmd) and the module URL (file:///C:/...) follow. tests/node.rs checks each against
Node 22's answer. The arch and parent-pid helpers live in node/os.rs (node.rs was over the size limit).
2026-11-19 14:30:17 -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 e05cee0c73 Windows app launch (#124): bytes become a string a 32 KB slice at a time, not String.fromCharCode(...bytes), which passed every byte as an argument and overflowed the stack on a blob of a few hundred KB (FileReader's readAsDataURL and readAsBinaryString, fetch's request body, a WebSocket's binary send, and the node shim's Buffer toString latin1); @raea/ui's platform has one latin1() for all of them, with a test of a 4 MB buffer. A frame's root-absolute script (/artifact.js) is found under the page's roots on Windows too: against a page at file:///C:/... it is C:\artifact.js, which only a leading / was taken for 2026-11-12 22:11:45 -08:00
shinyobjectz 6d8623ca9b Node's import.meta.url is written into each module, as import.meta.main is: macOS 15's JavaScriptCore left it undefined
createRequire(import.meta.url) then resolved packages from ".", so a tool requiring a package that way failed on
macOS 15 with "Cannot find package" (a newer JavaScriptCore gives the module's key, which is why it passed here).
raea-native's node test found it as soon as CI's unit tests ran it: the crates #90 added switch on raea-native's
modules feature, and before that the test compiled to nothing in CI. Each module's text now has import.meta.url as
its file's own file:// URL, the way node.rs already writes import.meta.main in.
2026-11-12 10:59:23 -08:00
shinyobjectz cf28bf1ca0 A shell verb's refusal exits 1: js::run_node takes the script's process.exitCode at its end, as Node does (engine/cli's native.ts sets it, so raea show, init, cut, frame, part, brand and library refusals exited 0) 2026-11-09 20:06:50 -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 925bc03c09 raea c8b196fdb32690c0ab507b6ecb34463bd859abf8 2026-11-05 04:36:44 -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