mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
* PA13, PA14: raea playable, and playables in the public engine
Playables move from the private tree into the public engine (Shane 11-28: "public totally part of the engine"):
sdk/playable (raea/playable for authors, the browser host, check.ts, parity.ts, tony.ts), examples/playables and
docs/playables.feature, with raea/playable and @raea/playable back in sdk/tsconfig.base.json.
`raea playable GAME.tsx -o DIR` (apps/playable) replaces the Bun pipeline (playable.sh, bundle.ts, lint.ts, walk.ts,
alias.ts). It lints the source, renders each composition through `raea run` for its shapes and 3D kinds, bundles the
game and the host once with raea's own bundler, and writes each network's page or ZIP against its 5 MB cap.
engine/bundle gains `minify`, `inline` (inline.rs: pictures, sounds, fonts and .glb as data URLs, .bin as a
Uint8Array) and package-folder aliases (`three/=DIR`). brick-rush writes all nine targets in 7 s (1,384 KB a page);
mobile-ads' tiles and gates export; all play in WebKit, the Google and TikTok packages included.
check.ts lets a network's own page tags through; parity.ts draws in WebKit (chrome.ts is gone), 6.8/255 on
brick-rush frame 300. The craft guide motion/playable.md is `raea guide playable`. bench/live-3d skips brick-rush with
its real reason (PA18).
* tools/layers.toml: raea-app-playable in apps (PA13)
* Fonts travel with a playable, and an end card in a brand's type
An imported .ttf, .otf, .woff or .woff2 (and .jpeg) is its path in a native render (runtime/bundle rewrite.rs,
engine/bundle script.rs) and a data URL in a playable (inline.rs), so an @font-face names the same file either way.
<EndCard> takes font, color and button. Made for the real-brand playables in mobile-ads (ACANA, OLIPOP, HelloFresh),
which carry their brands' own type; the guide and docs/playables.feature say how.
* The preview page tells raea's review its ad events (PA16)
Inside a frame, the preview network posts {raeaPlayable: kind} to its parent on install and end, so the review can show
them beside the game.
* PA16 status: the review plays playables (raea-platform #99), on a host of their own
* The preview page tells the review when it's ready, seen or hidden, and the first touch (PA16)
Beside install and end, the preview build inside a frame posts ready (the game started), viewable and hidden (its page
shown or put away) and touch (the player took over from the game's own hand), so the review and the desktop show them.
* PA16 status: built in cloud (raea-platform #99, #101) and desktop (raea-feed #124), and raea show --playable
* raea playable says what the source can't have even when the game won't render for the lint
A fetch or a URL often stops the walk's render too, and the lint answered with the render's end ("lint.ts ended with
exit 1") and dropped the refusals it had found. Now the source's refusals are the answer, and a render that fails
for another reason is named by its error line.
* PA16 status: play.raea.io is live, checked with the ACANA export
* skills: raea-skills main ae81d0f (#135 notes hook, #136 and #137 the playable guide and raea playable in cli.md)
tools/skills.sh gen with a raea built at this branch and the feed app at main: every reference and guide copy matches it.
* raea-cli: export-game and playable dispatched in a line each, as the verbs around them, so the crate stays at the size gate's 2000 lines
* dupes: the playable's copies folded into what they copied
spec is raea-runtime-bundle's own (now pub), inline.rs's base64 is the base64 crate as raea's other crates use it,
the store and card JSON are json!, and the bundle FFI reads minify and inline as it reads z3 and stamps. tools/dupes.sh:
293 exact, 57 near, as allowed.
---------
Co-authored-by: shinyobjectz <[email protected]>
115 lines
6.7 KiB
TOML
115 lines
6.7 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, plan.ts): raea context reads specs against them
|
|
raea-core-brief = { path = "../../core/brief" }
|
|
# `raea workspace` and `raea project` (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"] }
|
|
# `raea wear bake`: raea/wear's bake from a shell (docs/wear.feature WR4)
|
|
raea-runtime-wear = { path = "../../runtime/wear" }
|
|
# 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" }
|
|
# `raea light check` (docs/realism.feature LT1)
|
|
raea-light = { path = "../light" }
|
|
# `raea bench denoise`: each denoiser against its converged truth (docs/denoise.feature DN0)
|
|
raea-denoise-bench = { path = "../render/denoise/bench" }
|
|
# `raea fix`: a problem looked up in raea's own fixes and the library of community ones the release ships
|
|
raea-sys-fixes = { path = "../../systems/fixes" }
|
|
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 scene lint|explain|light|stage (docs/stage-guards.feature)
|
|
raea-app-scene = { path = "../../apps/scene" }
|
|
raea-app-voice = { path = "../../apps/voice" }
|
|
raea-app-ask = { path = "../../apps/ask" }
|
|
# raea bake light (docs/bake.feature)
|
|
raea-app-lightbake = { path = "../../apps/lightbake" }
|
|
raea-app-make = { path = "../../apps/make" }
|
|
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 playable`: a game as a playable ad for each network (docs/playables.feature PA13)
|
|
raea-app-playable = { path = "../../apps/playable" }
|
|
raea-app-capcut = { path = "../../apps/capcut" }
|
|
raea-app-layers = { path = "../../apps/layers" }
|
|
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" }
|
|
|
|
# the plugin catalog in the macOS build (docs/nobuild.feature NB4a): every plugin compiled in, added to an App only when
|
|
# its project chooses it. Windows and Linux follow once their builders have built and checked it (tools/nobuild.sh catalog)
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
raea-bevy-plugins = { path = "../../engine/bevy-plugins", features = ["catalog"] }
|
|
raea-runtime-react = { path = "../../runtime/react", default-features = false, features = ["bevy-plugins"] }
|
|
|
|
[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"]
|
|
# every plugin engine/bevy-plugins declares but those it leaves out of its catalog, each added to an App only when its
|
|
# project chooses it (raea_runtime_plugins::choose, docs/nobuild.feature NB4a)
|
|
catalog = ["bevy-plugins", "raea-bevy-plugins/catalog"]
|
|
|
|
[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"]
|