Files
David Mann 308381360b feat(automation): agents in the open window through the ArtCraft Launcher's switch
While the launcher's Settings > AI agents switch names EffectCraft (behind
the suite's AI-MCP flag), the window serves agents through the shared
craft_automation::agents::AgentLink (token, connection file, switch
watching) and plain `effectcraft-cli mcp` finds it on every tool call
through the shared craft_control::agents::Live: the open window while
agents may use it, otherwise a session without a window, and the
closed-app choice (launch, headless, error) when EffectCraft is closed.

- The CLI signs in with the challenge handshake; the token never crosses
  the wire and a listener that can't prove it holds it gets nothing.
- Agent requests in the window stay inside the agent folders: a command
  gate on the session (Session::command_gate) runs the same Confinement
  checks as --automation-read-root/--automation-write-root, also for the
  input an agent queues until a UI pass applied it. Screenshots and
  frames without a file come back inline.
- New `agent_folders` tool; Settings > AI Agents is the shared Agents
  page (agents.settings saves agents.json for the CLI).
- `mcp --headless`, `--when-closed`; `mcp --bridge` stays one release as a
  deprecated alias. No client configuration is written.

Closes #4383.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 01:22:27 +01:00

31 lines
937 B
TOML

[package]
name = "effectcraft-cli"
description = "EffectCraft headless CLI: render frames and sequences, run commands, MCP server"
version.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[[bin]]
name = "effectcraft-cli"
path = "src/main.rs"
[dependencies]
effectcraft-engine = { workspace = true }
effectcraft-host = { workspace = true }
effectcraft-automation = { workspace = true }
# `mcp`'s closed-app choice and the launcher of the desktop app beside the CLI.
craft-control = { workspace = true, features = ["agents"] }
effectcraft-ui-egui = { workspace = true }
effectcraft-render = { workspace = true }
effectcraft-gpu = { workspace = true }
effectcraft-time = { workspace = true }
effectcraft-track = { workspace = true }
effectcraft-segment = { workspace = true }
effectcraft-sam2 = { workspace = true }
serde_json = { workspace = true }
image = { workspace = true }
cpu-time = "1"