mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-05 08:21:21 -05:00
308381360b
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>