Files
raea/engine/cli/Cargo.toml
T
shinyobjectz 07cd85e663 CC1, CC2: raea render -o OUT.mov --alpha writes a transparent movie natively, and raea export capcut EDIT.tsx writes the composition as a CapCut draft ready in its timeline (docs/capcut.feature)
raea-io-alpha encodes --alpha PNG frames (straight alpha) as a QuickTime movie: ProRes 4444 or HEVC with alpha through AVAssetWriter on the Mac, and QuickTime Animation (32-bit ARGB run-length, FFmpeg's qtrle layout) or PNG frames on every platform. `--alpha-codec prores|hevc|rle|png` picks one; prores is the Mac's default, rle elsewhere. CC1a, on a 3 s 1080x1920 graphic: 12.3 MB, 0.34 MB, 0.84 MB and 7.4 MB; rle and png decode identical to the PNGs, prores and hevc alpha within 61 dB, and a frame that draws nothing decodes fully transparent in all four.

raea-io-capcut writes CapCut 8.5.0's draft as CapCut writes it (an empty project and one with a clip placed by hand give its skeleton and a video segment's companion materials): one material per segment, times on the frame grid, media copied into its assets/, version markers from the newest draft CapCut made, and the entry in root_meta_info.json (backed up first, refused while CapCut runs). raea-app-capcut renders the composition three times: as it is with --manifest (footage runs, sound clips); with its footage and the backgrounds holding it hidden (RAEA_HIDE_MEDIA=1, the overlay); and with only those backgrounds (RAEA_HIDE_MEDIA=under, kept unless black). Footage becomes clips of the original files at their trims and rates, placed by object-fit (cover, contain, a cover crop), keeping their own sound at the composition's gain; sounds become audio clips with gains and fades; the overlay becomes clips cut where it draws. The manifest gains each video's object-fit and each sound's rate and fades, and the export cache is skipped under RAEA_HIDE_*. Checked on two fixtures: the draft's layers composited in ffmpeg match raea's render (31-33 dB against its H.264). Not yet checked: the draft opened in CapCut itself (CC3a). The CLI reference gains export (in Make) and --alpha-codec.
2026-11-11 06:43:39 -08:00

83 lines
4.6 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]
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-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"]