fabro/lib/apps/fabro-cli/Cargo.toml
Amp 467abb2c84
Use only sandbox-driver's new API; refuse what it cannot do yet
Fabro no longer uses sandbox_driver::legacy, the old Docker, Daytona and
Host provider crates, the legacy test doubles or protocol 2's plugin
supervisor. The server opens one SandboxCatalog with Fabro's Host, Docker
and Daytona entries and the operator's protocol 3 plugin entries, and
reaches run sandboxes, the inventory, health, files, preview ports, SSH,
VNC and the terminal through the new Sandbox handle.

Where the new API cannot yet do what Fabro did, the feature refuses or
degrades with a clear error, and a TODO(parity) comment says what
sandbox-driver is missing:

- Run Files reads no git: the file list falls back to the final patch,
  and the commit list and SHA ranges return 501.
- The terminal needs tty exec, which the built-in providers refuse.
- SSH and VNC need endpoints, which Daytona, Host and protocol 3 plugins
  do not offer.
- Provider health no longer tells an unreachable backend from a rejected
  credential, or lists a Daytona key's missing scopes.
- Sandbox status has no provider state string, error reason, region,
  workspace ownership or timestamps.
- A Host sandbox is re-designated by directory with no ownership check.
- Daytona gets sandbox-driver's User-Agent and HTTP client.
- The GitHub access probe makes one attempt, without git retry.

The sandbox status shown by the API is now a Fabro type projected from
sandbox-driver's Status, with the same wire shape. Listening ports for
the Services tab come from a Fabro-owned script run in the sandbox.
fabro-workflow's sandbox_git module is removed.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1e5fa-bf64-7347-834c-085d7d0fe444
Co-authored-by: Scott Werner <scott@lithos.computer>
2026-11-20 22:48:45 +00:00

130 lines
4.6 KiB
TOML

[package]
name = "fabro-cli"
edition.workspace = true
version.workspace = true
publish = false
license.workspace = true
description = "Unified CLI for the Fabro AI framework"
[[bin]]
name = "fabro"
path = "src/main.rs"
[features]
default = []
sleep_inhibitor = ["dep:core-foundation"]
[lints]
workspace = true
[dependencies]
fabro-auth = { path = "../../foundation/fabro-auth" }
fabro-config = { path = "../../foundation/fabro-config" }
fabro-environment = { path = "../../components/fabro-environment" }
fabro-llm = { path = "../../components/fabro-llm" }
fabro-oauth = { path = "../../foundation/fabro-oauth" }
fabro-github = { path = "../../components/fabro-github" }
pebble-coding-agent.workspace = true
pebble-cli-core.workspace = true
fabro-dump = { path = "../../components/fabro-dump" }
fabro-install = { path = "../../components/fabro-install" }
fabro-interview = { path = "../../components/fabro-interview" }
fabro-mcp-server = { path = "../fabro-mcp-server" }
fabro-petri = { path = "../../components/fabro-petri" }
fabro-manifest = { path = "../../components/fabro-manifest" }
fabro-proc = { path = "../../foundation/fabro-proc" }
sandbox-driver.workspace = true
fabro-graphviz = { path = "../../components/fabro-graphviz" }
fabro-workflow = { path = "../../components/fabro-workflow" }
fabro-server = { path = "../fabro-server" }
fabro-client = { path = "../../foundation/fabro-client" }
fabro-api = { path = "../../foundation/fabro-api" }
fabro-telemetry = { path = "../../foundation/fabro-telemetry" }
fabro-store = { path = "../../components/fabro-store" }
fabro-vault = { path = "../../foundation/fabro-vault" }
fabro-types = { path = "../../foundation/fabro-types", features = ["clap"] }
lithos-llm = { workspace = true, features = ["runtime"] }
fabro-redact.workspace = true
fabro-util = { path = "../../foundation/fabro-util" }
fabro-http.workspace = true
fabro-static.workspace = true
fabro-tool = { path = "../../components/fabro-tool" }
clap.workspace = true
clap_complete.workspace = true
cli-table.workspace = true
console.workspace = true
indicatif.workspace = true
anyhow.workspace = true
miette.workspace = true
tokio.workspace = true
tokio-tungstenite.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-appender.workspace = true
chrono = { workspace = true, features = ["serde"] }
dirs.workspace = true
serde.workspace = true
thiserror.workspace = true
toml.workspace = true
toml_edit.workspace = true
futures.workspace = true
semver.workspace = true
async-trait.workspace = true
jsonwebtoken.workspace = true
base64.workspace = true
scopeguard = "1"
rustls = { version = "0.23", default-features = false, features = ["std", "ring"] }
ring = "0.17"
rand.workspace = true
dialoguer.workspace = true
axum.workspace = true
serde_json.workspace = true
serde_yaml = "0.9"
tempfile = "3"
sha2.workspace = true
object_store.workspace = true
bytes.workspace = true
tokio-util.workspace = true
libc = "0.2"
nix = { version = "0.30", features = ["fs", "signal"] }
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = { version = "0.9", optional = true }
# Vendor openssl only for musl targets. Transitive dependencies pull
# native-tls via reqwest, which needs libssl. On glibc runners the system
# libssl is used; on musl runners we compile openssl from source.
[target.'cfg(target_env = "musl")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[build-dependencies]
fabro-build-support = { path = "../../foundation/build-support" }
chrono = { workspace = true }
[dev-dependencies]
shlex = "1"
ulid.workspace = true
regex.workspace = true
git2.workspace = true
assert_cmd = "2"
fabro-db = { path = "../../foundation/fabro-db" }
walkdir.workspace = true
rmcp = { workspace = true, features = ["client", "transport-child-process"] }
fabro-build-support = { path = "../../foundation/build-support" }
fabro-server = { path = "../fabro-server", features = ["test-support"] }
fabro-github = { path = "../../components/fabro-github", features = ["test-support"] }
fabro-petri = { path = "../../components/fabro-petri", features = ["test-support"] }
fabro-workflow = { path = "../../components/fabro-workflow", features = ["test-support"] }
fabro-types = { path = "../../foundation/fabro-types", features = ["clap", "test-support"] }
insta = { workspace = true, features = ["filters"] }
paste = "1"
predicates = "3"
serde_json.workspace = true
tempfile = "3"
temp-env = "0.3"
httpmock = "0.8"
fabro-test = { workspace = true }
fabro-macros = { path = "../../foundation/fabro-macros" }
hkdf.workspace = true
reqwest = { workspace = true, features = ["cookies"] }
tokio = { workspace = true, features = ["test-util", "macros"] }