mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
While the launcher's Settings > AI agents switch names VectorCraft, the window serves its control channel on loopback with craft-libs' AgentLink and publishes agent-connection.json; plain `vectorcraft-cli mcp` finds it on every tool call through the shared Live (challenge handshake, no port or token in client configs) and otherwise runs headless or follows the closed-app choice. Agent requests in the window are confined to the agent folders. Preferences gets an AI Integrations page (the shared Agents page), saved through the new UI command prefs.agents, which agents can't change. New MCP tool agent_folders; `--when-closed`; `--connect` deprecated. Closes #10621, closes #1470, closes #10453. Co-Authored-By: Claude Opus 5.5 <[email protected]>
65 lines
2.7 KiB
TOML
65 lines
2.7 KiB
TOML
[package]
|
|
name = "vectorcraft-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
description = "VectorCraft command line: MCP server (stdio) and headless batch runs"
|
|
|
|
[[bin]]
|
|
name = "vectorcraft-cli"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-engine = { workspace = true, features = ["bundled-fonts", "heif"] }
|
|
vectorcraft-format = { workspace = true }
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-svg = { workspace = true }
|
|
vectorcraft-mcp = { workspace = true }
|
|
vectorcraft-render = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
log = { workspace = true }
|
|
# The agent settings and the desktop app to start for plain `mcp` (the shared `src/agent_settings.rs`).
|
|
craft = { workspace = true, features = ["automation-agents"] }
|
|
|
|
# `perf` on Windows (src/perf.rs) reads how busy the processors are (GetSystemTimes) and this
|
|
# process's working set (GetProcessMemoryInfo) through winsafe's safe wrappers over Win32 (MIT),
|
|
# which the desktop app's src/gpu.rs also uses.
|
|
[target.'cfg(windows)'.dependencies]
|
|
winsafe = { version = "0.0.29", default-features = false, features = ["kernel", "psapi"] }
|
|
|
|
# DirectWrite's system font collection and GDI's font list (the desktop app's src/system_fonts.rs,
|
|
# shared): fonts that font services such as Adobe Fonts load in place (#579, #1258). MIT OR
|
|
# Apache-2.0. Win32_System_Threading has `GetProcessAffinityMask`, which the desktop app's
|
|
# src/windows_cores.rs, shared, uses to count the cores the process may run on.
|
|
windows = { version = "0.62", features = ["Win32_Graphics_DirectWrite", "Win32_Graphics_Gdi", "Win32_System_Threading"] }
|
|
|
|
# CoreText's font manager (the desktop app's src/mac_fonts.rs, shared): fonts that apps and font
|
|
# managers register from their own folders (#579). Zlib OR Apache-2.0 OR MIT.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFArray", "CFString", "CFURL"] }
|
|
objc2-core-text = { version = "0.3", default-features = false, features = ["std", "CTFontManager"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
vectorcraft-testkit = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# The files of other crates that this crate compiles or its tests read, for CI's test selection.
|
|
[package.metadata.craft]
|
|
reads = [
|
|
"apps/vectorcraft/src/agent_settings.rs",
|
|
"apps/vectorcraft/src/mac_fonts.rs",
|
|
"apps/vectorcraft/src/prefs_dir.rs",
|
|
"apps/vectorcraft/src/profile.rs",
|
|
"apps/vectorcraft/src/system_fonts.rs",
|
|
"apps/vectorcraft/src/windows_cores.rs",
|
|
"crates/plugins/tests/fixtures/desaturate.wasm",
|
|
]
|