mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-04 19:41:51 -05:00
f22cac0de4
The window now runs craft_automation's AgentLink and AgentSwitch for the agents channel (token, challenge handshake, connection file, retry, stop on switch-off) and forwards its requests into FigCraft's control queue, each confined to the agent folders as before; FigCraft's own copy of that code is gone. Preferences offer the shared Agents page (AI agents..., with the suite's AI-MCP flag) over Prefs::agents, changed by the new pref.agents command, which an agent's confined request can't use. figcraft-cli mcp reads the saved settings (folders, When FigCraft is closed), takes --when-closed, signs in to the window with the challenge handshake, deprecates --attach and gets the agent_folders tool (control method agent.folders). The --control server is stopped on exit. Closes #2963. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>