Reintroduce apps/arcade and the ten game crates that were ripped out of
the fork (assets, audio, blocks, coedit, gen, net, pkg, render, script,
session), from makepad-internal/dev. Reconcile against the fork's layout:
- makepad-game-sim/math come from the fork's existing libs/sim + sim/math;
the copied internal libs/game/{sim,math} are dropped and the kept game
crates plus arcade point at ../../sim and ../../sim/math.
- arcade AI is rewritten off the removed makepad-ai agent API onto the
makepad-ai-hub headless ChatProvider worker (example/cad pattern):
AiWorker{send,cancel,poll}, ai_worker_loop driving
ClaudeApiChatProvider(ClaudeCli), AiWorkerEvent availability/delta/
done/error mapped into the chat feed and authoring land_edit, with
main.rs send_message/cancel_request/event-drain rebuilt around it.
- the game-script sandbox is adapted to the fork's jailed splash storage:
every isolate gets mod.fs = splash_storage jail; splaes splash_storage
set_root_for_heap is now public so the ScriptHost (or Splash) can grant
a per-game jail root. ENT font: build.rs/dispatch.rs entities fill new
fork sim Entity/Part fields via ..Default::default(); world_raycast now
borrows mutably and returns the material id.
cargo check -p makepad-arcade and the game + arcade test suites pass.
48 lines
2 KiB
TOML
48 lines
2 KiB
TOML
[package]
|
|
name = "makepad-arcade"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Makepad Arcade — networked AI game sandbox (see game.md)"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
name = "makepad_arcade"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "makepad-arcade"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
makepad-widgets = { path = "../../widgets", version = "2.0.0" }
|
|
makepad-game-math = { path = "../../libs/sim/math" }
|
|
makepad-game-sim = { path = "../../libs/sim" }
|
|
makepad-game-session = { path = "../../libs/game/session" }
|
|
makepad-game-blocks = { path = "../../libs/game/blocks" }
|
|
makepad-game-render = { path = "../../libs/game/render" }
|
|
makepad-game-assets = { path = "../../libs/game/assets" }
|
|
makepad-game-gen = { path = "../../libs/game/gen" }
|
|
makepad-game-script = { path = "../../libs/game/script" }
|
|
makepad-game-net = { path = "../../libs/game/net" }
|
|
makepad-game-coedit = { path = "../../libs/game/coedit" }
|
|
makepad-game-pkg = { path = "../../libs/game/pkg" }
|
|
# The improved AI layer replaced the old makepad-ai agent crate: chat and
|
|
# provider flows now come from makepad-ai-hub's headless ChatProvider model.
|
|
makepad-ai-hub = { path = "../../libs/ai/hub", default-features = false }
|
|
# default-features off drops speech synthesis (~10 MB of binary, ~327 MB
|
|
# resident). Re-enabled by `voice` below: a device that can capture speech is
|
|
# the one that has any use for producing it.
|
|
makepad-converse = { path = "../../libs/converse", default-features = false }
|
|
|
|
[features]
|
|
# Mic capture + Whisper, via the widgets VoiceWave. Separate from `local-llm`
|
|
# because transcription and the local judge are different models: a device can
|
|
# have one without the other.
|
|
voice = ["makepad-widgets/voice", "makepad-converse/tts"]
|
|
# Local model compute (Whisper/Silero/Qwen). Off by default so Quest/mobile
|
|
# builds — which have no backend — never try to link it. Implies `voice`:
|
|
# the judge only has something to judge once there is a mic.
|
|
local-llm = ["makepad-converse/local-llm", "voice"]
|
|
|
|
[dev-dependencies]
|
|
makepad-test = { path = "../../libs/makepad_test", version = "0.1.0" }
|