mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
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).
88 lines
5.0 KiB
TOML
88 lines
5.0 KiB
TOML
[package]
|
|
name = "raea-cli"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "raea, the engine's command line: render, play, guide, song, add ... (src/lib.rs), and raea-bevy-sdk, the plugin build. The agent shell's half of the same command is this folder's @raea/cli (src/index.ts)"
|
|
license = "FSL-1.1-ALv2"
|
|
|
|
# one `raea` (docs/sdk.feature S1e): this binary, and @raea/cli in the agent's shell. raea-runtime-react's features are its own;
|
|
# a build with Bevy plugins names them through this crate's bevy-plugins feature (tools/bevy-plugins.sh)
|
|
[[bin]]
|
|
name = "raea"
|
|
path = "src/main.rs"
|
|
|
|
# the plugin build (tools/bevy-plugins.sh build DIR, which names every declared plugin's feature): a build without them
|
|
# (a plain or --workspace `cargo build --release`) leaves it out rather than writing a plugin-free raea-bevy-sdk over
|
|
# the plugin build in target/release, which the bench harnesses run (bench/bevy-ts live-plugin lost avian so, 10-22)
|
|
[[bin]]
|
|
name = "raea-bevy-sdk"
|
|
path = "src/bin/raea-bevy-sdk.rs"
|
|
required-features = ["bevy-plugins"]
|
|
|
|
[dependencies]
|
|
dunce = "1"
|
|
raea-runtime-plugins = { path = "../../runtime/plugins" }
|
|
raea-io-home = { path = "../../io/home" }
|
|
# the schemas of what an agent writes (brief.ts, script.ts, taste.ts, controllers): raea context reads specs against them
|
|
raea-core-brief = { path = "../../core/brief" }
|
|
# `raea workspace`, `raea project` and `raea controller` (docs/projects.feature PJ1-PJ4)
|
|
raea-app-workspace = { path = "../../apps/workspace" }
|
|
# raea-runtime-react's defaults
|
|
raea-runtime-react = { path = "../../runtime/react", default-features = false, features = ["h264", "av1", "scripts", "modules", "network", "ml"] }
|
|
# the sound of its renders and plays: <Seedling> samples and speech (raea-runtime-sound's features)
|
|
raea-runtime-sound = { path = "../../runtime/sound", features = ["seedling", "ml"] }
|
|
raea-runtime-export = { path = "../../runtime/export" }
|
|
# a bake finds the bundle's functions (raea-modules), so an edit re-bakes only the frames it changed
|
|
raea-runtime-bake = { path = "../../runtime/bake", features = ["modules"] }
|
|
raea-runtime-live = { path = "../../runtime/live" }
|
|
raea-core-alloc = { path = "../../core/alloc" }
|
|
raea-render = { path = "../../engine/render", default-features = false }
|
|
raea-native = { path = "../../engine/native", default-features = false, features = ["modules"] }
|
|
raea-io-trace = { path = "../../io/trace" }
|
|
raea-io-media = { path = "../../io/media", default-features = false, features = ["apple"] }
|
|
# npm packages for a project (`raea add|remove|install`): raea's own package manager
|
|
raea-io-npm = { path = "../../io/npm" }
|
|
# the agent's sandbox (WASI tools on Wasmtime/Pulley) as wsx.* native calls
|
|
wsx = { path = "../../engine/sandbox/wsx" }
|
|
serde = "1"
|
|
serde_json = "1"
|
|
# `raea neural` (docs/raytracing.feature RT2)
|
|
raea-neural = { path = "../neural" }
|
|
regex = "1"
|
|
# the app crates' verbs: `raea check`, `raea ci`, and the local tools' (sao, tokensynth, setup-audio, sounds, splat)
|
|
raea-app-check = { path = "../../apps/check" }
|
|
raea-app-direction = { path = "../../apps/direction" }
|
|
# `raea notes`: a person's notes as files the work is held to (docs/direction.feature DR5)
|
|
raea-app-notes = { path = "../../apps/notes" }
|
|
# `raea fingerprint`: axes with small heads over on-device encoders, and the service that keeps them loaded (docs/fingerprint.feature FP3a)
|
|
raea-app-fingerprint = { path = "../../apps/fingerprint" }
|
|
# `raea index`: every picture on a folder or a drive searchable by words, embedded on the Neural Engine (docs/index.feature IX13)
|
|
raea-sys-index = { path = "../../systems/index" }
|
|
raea-app-sound = { path = "../../apps/sound" }
|
|
raea-app-ci = { path = "../../apps/ci" }
|
|
raea-app-tools = { path = "../../apps/tools" }
|
|
raea-app-engines = { path = "../../apps/engines" }
|
|
# raea solid info|view: a solid file measured and pictured
|
|
raea-app-solid = { path = "../../apps/solid" }
|
|
# raea judge: review sheets judged by clef-omni
|
|
raea-app-judge = { path = "../../apps/judge" }
|
|
raea-app-media = { path = "../../apps/media" }
|
|
# `raea app run|check|bundle` and `raea rune` on either target (docs/targets.feature T0b)
|
|
raea-app-targets = { path = "../../apps/targets" }
|
|
raea-app-game = { path = "../../apps/game" }
|
|
raea-app-capcut = { path = "../../apps/capcut" }
|
|
raea-app-play = { path = "../../apps/play", features = ["ml"] }
|
|
raea-bevy-plugins = { path = "../../engine/bevy-plugins", optional = true }
|
|
# raea-bevy-sdk's reflection of the plugin build's App: the type registry, a one-camera program, the animation type
|
|
bevy = { version = "=0.20.0", default-features = false }
|
|
raea-core-program = { path = "../../core/program" }
|
|
raea-core-animate = { path = "../../core/animate" }
|
|
|
|
[features]
|
|
# Bevy plugins compiled in (raea-bevy-plugins), as tools/bevy-plugins.sh names them: bevy-plugins,raea-bevy-plugins/avian,...
|
|
bevy-plugins = ["dep:raea-bevy-plugins", "raea-runtime-react/bevy-plugins"]
|
|
|
|
[package.metadata.cargo-shear]
|
|
# depended on only to turn their features on (raea-runtime-bake's modules, raea-runtime-sound's seedling and ml)
|
|
ignored = ["raea-runtime-bake", "raea-runtime-sound"]
|