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>
43 lines
1.3 KiB
TOML
43 lines
1.3 KiB
TOML
[package]
|
|
name = "figcraft-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "FigCraft command line: info, export, convert, render, scripted commands, MCP server, perf"
|
|
|
|
[lib]
|
|
name = "figcraft_cli"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "figcraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
figcraft-engine = { workspace = true }
|
|
figcraft-collab-net = { workspace = true }
|
|
figcraft-doc = { workspace = true }
|
|
figcraft-render = { workspace = true }
|
|
figcraft-text = { workspace = true }
|
|
figcraft-svg = { workspace = true }
|
|
figcraft-format = { workspace = true }
|
|
figcraft-mcp = { workspace = true }
|
|
# `mcp`: the open window through the ArtCraft Launcher's switch, and the control channel's token.
|
|
craft-control = { workspace = true }
|
|
# The settings folder the app publishes its connection file in.
|
|
craft-settings = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
clap = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
# The window's side of the challenge sign-in, for a fake window in the live client's tests.
|
|
craft-automation = { workspace = true }
|
|
# 4.6 breaks Bash subcommand completion for hyphenated binary names (clap-rs/clap#6421).
|
|
clap_complete = "~4.5.67"
|
|
clap_mangen = "0.3"
|