28 Commits
Author SHA1 Message Date
shane d873402ac5 raea goal is the loop, raea make the asset tools (#269)
One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done (goal check, tasks, judge, seen, gates, next); the brief's contract is goal: (one goal or a list, a workflow inline), and its plan is plan:. raea make is making a finished asset: character, clothes, motion, solid, wear, splat, physics, bake, sounds, component, the kit pipeline and shots. Instruments (check, judge, ask, world, scene faults, light check) stay top-level. With it: the montage pack (MK48-MK51), JavaScriptCore fixes raea goal needs (CommonJS named exports, reserved words too, dynamic import of file URLs, process.exit from a promise, stdin for -), raea-cli-goal and raea-cli-refused split out of raea-cli, and skills at raea-skills 105aede.
2026-11-29 18:43:09 -08:00
shinyobjectz 538bc30f37 A project's client in its own file (apps/workspace client.rs): workspace.rs was 512 lines, over the 500 a file may be 2026-11-24 23:46:50 -08:00
shinyobjectz 16abfb08b7 A project names its client, raea cloud's tag, instead of sitting inside another project: raea project new NAME --client C, raea project tag [NAME] --client C | --no-client; raea project and raea workspace --json say it (and the workspace's clients). raea.app files every card raea show makes from the folder under it 2026-11-24 23:46:50 -08:00
shinyobjectz d90b05017e PL8a: a brief has no tasks, and an object's plan is its parts
core/brief's Brief drops stages and its Stage, Mark and Task types: a
project's tasks are its plan.org. An older brief with stages still
reads; raea doctor says its tasks belong in plan.org and moves nothing.

core/brief's object plan, the solids contract, is parts() in
NAME.parts.ts (raea spec --as parts), so plan means only a project's
plan.org. No project used plan(); the bevy guides that teach it, the
manual and the reference pages follow.
2026-11-20 14:00:55 -08:00
shinyobjectz 822b73fc7d PJ9: controllers are gone; a standing rule is a taste line
A taste line's check now takes any of raea's checks by name or a project's
own .ts check by path, with values and a level, beside the six forms. raea
check reads the project's own taste.ts beside the person's and the
workspace's, and raea context prints it.

Removed: the controller schema, raea controller, raea spec --as controller,
[controller] overrides in .raea/project, the registry's controller kind and
its lints, controllers/ in new projects and shared/, and controller() in
raea/brief. raea controller and raea doctor say where a controller's parts
go; doctor moves or deletes nothing. The direction proof's five rules are
lines in its taste.ts and it passes as before.
2026-11-20 13:00:19 -08:00
shinyobjectz b60d901473 Git on a PC without it: found or fetched once, as the app's host does (#169)
raea workspace, project and controller failed with "git: program not found" on a PC whose only Git was the app's.
raea_io_assets::git(): $RAEA_GIT, the PATH's, then on Windows the app's (InstallLocation\git), Git for Windows off the
PATH, and raea's own in the tools cache, fetched once (dugite-native, the build the app's host uses, sha256 checked).
Elsewhere it says how to install git. The default root is joined a folder at a time. NOTICE names the fetch, and
FormatJS and CLDR for the Intl commit before this.
2026-11-19 14:30:31 -08:00
shinyobjectz b54136c4af Windows: a workspace raea 0.1.5 or 0.1.6 broke is repaired. Its include.path named a \\?\ path Git for Windows can't open, so every git command in it failed, rev-parse too, and raea workspace init inside it, adopt and doctor --fix all stopped there (#169). include() now drops such a line from the repo's config file itself before asking git (apps/workspace/src/repair.rs), and raea doctor says so. Tested on Windows 11, Git for Windows 2.49: git fails in the broken repo, then works after the repair. 2026-11-17 13:06:13 -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 a927fbb027 Windows: a workspace and its projects are made and read through plain paths. canonicalize() gives \\?\C:\... on Windows, which Git for Windows can neither read nor lock, and which shares no root with the C:/... git prints. So raea workspace init (the app's Make workspace) wrote an include of ../../../../\\?\C:/... into .git/config and every git command in the workspace failed ("Invalid argument"); workspace.id and project.id were never written; and raea workspace --json read id null even from a mended file, which the app's set-up took as a workspace with no id (a black window, then set-up again on every launch). up(), the record's paths, include(), adopt(), the doctor and the registry now canonicalize through dunce (C:\... wherever a path can be said so); include() takes both ends that way, and names a file on another drive whole instead of climbing to it. Also on Windows: the workspace root is found from USERPROFILE when there is no HOME (an app opened from the Start menu has none), the record names paths with / (it said out\edit.mp4), and the registry's @shared/ suggestion is an import (it said components\desk). Checked on a Windows 11 PC: the new a_workspace_reads_back_through_git failed there as reported (could not lock config file \\?\C:\...; the include climbed to the drive) and passes now; raea-app-workspace 10, raea-app-registry 7 and raea-core-facts 17 pass there and on macOS.
Skills: sections 0, 2 and 3 of the raea skill (sources apps/workspace/src) checked, still true: nothing a Mac sees changed.
2026-11-17 09:44:42 -08:00
shinyobjectz 1c93300361 raea.root is never ~/Studio by default: with none set, a workspace someone names goes in ~/Documents/raea (or ~/raea under iCloud), and ~/Studio, the root on raea's own Mac before 11-10, is no one else's (Shane 11-14: "no internal no studio, its up to the user to set their workspace"). raea-feed's host says the same (integration-014 c01686e); raea's own Mac keeps ~/Studio through raea.root. 2026-11-14 12:29:46 -08:00
shinyobjectz bb7e6716b4 raea's own commits name their author when git has no user.name: a Linux account with no full name (CI's runner, a container) failed every one with "empty ident name ... not allowed", so a new workspace was never made there (main's CI: workspace tests' a_new_workspace_and_project_have_the_layout on ubuntu-24.04). As git_cmd gives a fresh Mac an EMAIL, it names the author and committer for the account, only when no user.name is set 2026-11-12 16:35:10 -08:00
shinyobjectz 6da2995575 Layout L1: lint.rs's outside-import hint formats the shared path where it says it, so no closure copies direction/world.rs's (dupes back to 293/59) 2026-11-12 15:31:36 -08:00
shinyobjectz c7e857b243 Layout L1: the CLI crate back to 2000 lines (component and part's checks in one), workspace_of is shared_of (the loader only wanted shared/, and it duplicated godot_run's nearest_project), and the manual's raea component page (Projects group, --shared and --force described) 2026-11-12 15:19:50 -08:00
shinyobjectz cb87e0cd59 Layout LY1-LY4: a project's compositions/, components/, controllers/, assets/ and artifacts/, and the workspace's shared/ (docs/layout.feature)
Shane 11-12: reorganize the default project around compositions, components, controllers, assets and artifacts, with a workspace library any project can call on. It's named shared/ and @shared/ so it isn't confused with raea's media libraries.
- LY1: raea project new makes the five folders (each with a .gitkeep), out/, brief.ts, AGENTS.md and a tsconfig mapping @shared/* to the workspace's shared/. raea workspace init makes shared/ with the same five, and .gitattributes keeps assets/** and out/** in LFS.
- LY2: the engine's loader resolves @shared/<kind>/<name> by walking up to .raea/workspace, with a relative import's extensions and index files; outside a workspace it's refused with what to do. PJ8's lint takes @shared/ imports and names @shared/ as the fix for a climb into shared/.
- LY3: the scan reads compositions from compositions/ and components from components/ (and from shared/), lints a composition elsewhere as misplaced, says once that a project is in the old layout, and reads controllers as the project's over shared/controllers/ by id.
- LY4: raea component list/add [--shared] replaces raea part, which still answers this release.
2026-11-12 15:07:16 -08:00
shinyobjectz 6e79971b12 CI runs the tests of the crates that need no GPU or media device, and two of their tests hold on any build (#90)
ci.yml's unit-test step tested three crates; the brief, K, bundle, check, workspace, tools and targets crates join it,
with debug info off for the test binaries (with it they filled 27 GB of a runner's disk). Two tests only passed by
accident of the build: the bundle test's fake SDK sat where the resolver no longer looks (it reads sdk/tsconfig.base
.json's paths since S1d), so it's laid out as the real one with that file; and the workspace's literal test depended
on serde_json's key order, which a crate built alongside (raea-cli) turns into insertion order through preserve_order,
so its lines are held as a set. Found and shaped by SirSicard's report.

Skills (SK4): SKILL.md's "2. The workspace and its projects" and "3. Read before you make" name apps/workspace/src,
where only its tests changed: checked, still true.
2026-11-12 10:32:04 -08:00
shinyobjectz 973ee00acc DR4: a check is a system, and raea's own are written the same way. raea check PROJECT|EDIT.tsx runs every rule that applies to each composition: raea's floor on its newest render, the person's taste, and the workspace's and the project's controller rule fields. It reads the frames each check ranges over (all, cuts, lines, once or a list) into worlds once, runs raea's named checks in Rust (apps/direction systems.rs) and a project's .ts checks in the JS host (raea/check: check({ id, text, needs, level, frames }, (world, frame, values) => ...) and found(...), with the components' types generated from core/facts), and keeps the findings in the project's record. A check that needs a render and has none waits, and says what for; a check that throws, or a rule file raea can't read, is a finding. raea check VIDEO.mp4 is the floor as before.
Proved by bench/direction/proof/proof.sh: five checks that import nothing of Bevy's (a lyric layer over footage, a footage cut, a cue in a mix, a caption in a vertical ad, a rider on a 3D seat), each passing its piece and failing its cheat, and a taste line failing the ad's cheat as the named check of its form.

Fixed on the way: a text's box grows over words drawn past it (the caption cheat passed); a word a cut passes through is in each clip's words (the cut cheat passed); a Part carries its own box before its transform, so a turned part is tested as turned; the help reads `[A|B]` as one argument. Copies folded rather than added: a command's words (apps/check, now also raea workspace's), the printed report and exit code, the person's taste folder, a controller read from JSON (core/brief, now also apps/workspace's), and a path made plain (runtime/bundle's). The spec's lines that the code showed wrong are fixed beside them: --stage moves to DR10, a note's checks to DR6, and the rule field from DR8 to DR4.
2026-11-10 12:14:15 -08:00
shinyobjectz fc274e2870 DR3: under the size and copy limits: gen check's fitted-fix wording moves to raea-core-meshcheck (said_fix, tested there), Finding::read replaces four copies of reading a kept finding, the export cache prune is one pass over the folder, and the closures cargo-dupes matched by shape are written another way 2026-11-10 09:54:02 -08:00
shinyobjectz eab9198a1e DR3: nothing reads as fixed by hiding it: a clip no frame shows is said as a note, a renamed part is renamed, a video from the export cache says what it found, a run is set against the one before of its kind; renders inside another (a review's tiles, a quick check's stills) keep no entry; a review's cameras face where they're put 2026-11-10 09:18:26 -08:00
shinyobjectz aebbdb2d4a DR3: the project's record keeps what each render and check found; raea findings reads it, raea next steps by it
A render, or raea check, of a file in a raea project keeps its findings in .raea/record/, one file apiece named by
when (UTC) and what, with the project's commit ("+" when the file has changes not committed), what --despite let
through, and at most 500 entries. raea findings [PROJECT | EDIT.tsx] [--about NAME] [--check ID] [--open] [--since
RENDER] [--json] compares each thing's latest entry with the one before (or RENDER): what was fixed, what is new and
what is carried, and since which render; a finding is the same across renders by its check and what it is about, not
its frames. raea next reads the record, not out/ and a check.json's time: a render's errors are the next step, then
its video's check and what that found. A render's manifest has all its findings (the exposure's too). The record lives
in core/facts beside Finding, since the render, raea check and raea next all use it (the scenario says why); the
registry's up() moved with it. raea findings is dispatched; its help line follows the lane changing help.
2026-11-10 08:56:09 -08:00
shinyobjectz a0b770709f DR3: raea gen check, raea solid info and raea project scan write Findings
gen check's and solid info's {check, level, says} become Findings about the model, or the part (else the solid's file),
worst first, their count last; their JSON has findings and count in place of found, errors and warnings. A fix's
command, which was in its words, is its fix. project scan's lint is Findings about each file keyed file:line, a note
for what only the render knows, a fix raea doctor --fix applies starting by saying so; its JSON has findings in place
of lint. A file whose registerRoot makes its compositions through a helper is no orphan: the scan says it can't list
them (computed-root, a note).
2026-11-10 08:56:09 -08:00
shinyobjectz 1c49f37e06 Merge branch 'raea-root' 2026-11-10 08:54:56 -08:00
shinyobjectz 4ca98b13a3 Workspaces go in ~/Documents/raea when no raea.root is set
~/Studio didn't say whose folder it was. With no raea.root, default_root: ~/Studio where workspaces are already (the root before 11-10), else ~/Documents/raea, or ~/raea when iCloud keeps the Documents folder (a workspace's git history and footage don't belong in a synced folder). The feed's host says the same (raea-feed host/workspace.ts defaultRoot). raea's usage and the manual's CLI pages name the new default; the skill's files.md follows in raea-skills.
2026-11-10 08:54:10 -08:00
shinyobjectz 05abcdfc82 DR3: one Finding; the clipping check, raea scene lint and raea check write it
core/facts gains Finding { check, level, about, frames, says, measure, fix, by }, its one-line text, ranked (worst
first) and count, with its TypeScript declaration; raea check's P0 and P1 are errors, P2 a warn, P3 a note, and lint's
"warning" a warn. systems/contact's found.rs makes the lint's faults and the clipping check's overlaps Findings about
the parts by name, with the number each turns on and its fix. A render's manifest carries "findings" (it carried
"clipping", which nothing read) and says each on stderr; raea scene lint prints them worst first, notes included,
with the count last. raea check -o writes {file, fps, findings, passed} and prints the count last; --quick takes in
what its stills' render found and says a render that fails as an error. raea next reads the errors from findings.
The plan's apps/direction issue.rs is six lines in apps/check's report (the scenario says why).
2026-11-10 08:17:29 -08:00
shinyobjectz 151de4ba63 Project registry in its own crate, raea-app-registry (apps/workspace/registry), so raea-app-workspace stays under the crate limit (L1 size: 2060 lines)
The registry depends on nothing of the workspace crate. It now owns up() and slug(), which the workspace crate re-exports, and takes the controller ids named by the project's overrides as an argument. raea-app-workspace's registry module wraps scan() with them, read from .raea/project. raea context takes both the workspace's sections (controllers, project files) from one call, raea_app_workspace::context(), which keeps raea-cli at 1997 lines. Folded the copies L1 counted: Registry::warnings() and composition_files() replace the filters and sort in doctor and next, resolve() builds its candidates in a loop, and a line number is counted from the newlines before it (stamp.rs had the same line_starts). New test: an override naming a missing controller is linted once. raea-app-registry has 6 tests and raea-app-workspace 6.
2026-11-09 12:28:18 -08:00
shinyobjectz 0f6c275bdb Project registry lint: a path outside the project is written from ~ (~/.cache/raea-mocap/...), as a person reads it 2026-11-09 12:14:40 -08:00
shinyobjectz 9aaf3f21e6 Project registry (docs/projects.feature PJ8): one static reading of a project's compositions, components and controllers, and lint for what isn't connected
apps/workspace src/registry: each .tsx and .ts is parsed with oxc (the version engine/bundle uses), without running it. A composition is each <Composition> that a registerRoot registers, with its id, component, size, fps and length read from the source. A prop written as a top-level constant, or simple arithmetic on constants (const FPS = 30; 15 * FPS; edit.w; Math.round), is read as its value; anything else is kept as the expression. A .tsx whose default export no other file imports is registered under its file's name, sized from its newest render manifest. A component is a .tsx that a composition imports, directly or through another file. A controller is a module whose default export is controller({...}) from raea/brief.

Lint (each finding has a file:line and its fix): not-a-project, broken, orphan, unresolved, outside, duplicate-id, computed (info), unregistered (info; fixable when a manifest gives the size), controller-home (fixable: moved to controllers/<id>.ts), controller-duplicate, override-missing.

CLI: raea project scan [DIR] [--json]. raea doctor lists the warnings, and --fix registers a default export and moves a stray controller, committing only the files it touched. raea next reads compositions from the scan (no more grepping for registerRoot) and puts unconnected files first. raea context gains a PROJECT FILES section. Tests: 11 pass.
2026-11-09 12:03:32 -08:00
shinyobjectz 9f8a94cdfd raea's own git commits work on a clean Mac: apps/workspace git_cmd sets EMAIL ([email protected]) when it's unset
A new Mac has no user.email and a hostname git can't make one from, so the first project's commit failed with
"Author identity unknown" and onboarding never made the person's first project (found in tools/raea-app/journey.sh
from a fresh HOME). git reads $EMAIL only when user.email isn't set, so nobody's own identity is overridden. Used by
workspace::git and the controllers' commit.
2026-11-08 18:05:19 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00