[package]
edition = "2021"
rust-version = "1.88"
name = "shellfirm"
version = "0.4.2"
authors = ["Elad-Kaplan <kaplan.elad@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "`shellfirm` will intercept any risky patterns (default or defined by you) and prompt you a small challenge for double verification, kinda like a captcha for your terminal."
homepage = "https://github.com/kaplanelad/shellfirm"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/kaplanelad/shellfirm"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target-arch }-{ os-name }{ archive-suffix }"
bin-dir = "{ name }-v{ version }-{ target-arch }-{ os-name }/{ bin }{ binary-ext }"
pkg-fmt = "txz"
disabled-strategies = ["quick-install"]
[package.metadata.binstall.overrides.'cfg(target_os = "windows")']
pkg-fmt = "zip"
[features]
ai = [
"mcp",
"llm",
]
all = [
"cli",
"llm",
"mcp",
"ai",
"wrap",
"tui",
]
cli = [
"clap",
"clap_complete",
"clap_complete_nushell",
"toml_edit",
]
default = ["all"]
llm = ["reqwest"]
mcp = ["tokio"]
tui = [
"ratatui",
"crossterm",
"tui-input",
]
wrap = [
"nix/signal",
"nix/process",
"nix/poll",
"nix/fs",
"nix/ioctl",
"rustix",
"portable-pty",
"windows-sys",
]
[lib]
name = "shellfirm"
path = "src/lib.rs"
[[bin]]
name = "shellfirm"
path = "src/bin/shellfirm.rs"
required-features = ["cli"]
[[test]]
name = "agent_hooks"
path = "tests/agent_hooks.rs"
required-features = ["cli"]
[[test]]
name = "audit_replay"
path = "tests/audit_replay.rs"
[[test]]
name = "checks"
path = "tests/checks.rs"
[[test]]
name = "decision_matrix"
path = "tests/decision_matrix.rs"
[[test]]
name = "escalation_matrix_proptest"
path = "tests/escalation_matrix_proptest.rs"
[[test]]
name = "per_mode_resolution"
path = "tests/per_mode_resolution.rs"
[[test]]
name = "policy_enforcement"
path = "tests/policy_enforcement.rs"
[[test]]
name = "pure_logic"
path = "tests/pure_logic.rs"
[[test]]
name = "sandboxed_integration"
path = "tests/sandboxed_integration.rs"
[[test]]
name = "tui_app"
path = "tests/tui_app.rs"
[dependencies.aho-corasick]
version = "1.1"
[dependencies.clap]
version = "4.5"
features = [
"cargo",
"wrap_help",
]
optional = true
[dependencies.clap_complete]
version = "4.5"
optional = true
[dependencies.clap_complete_nushell]
version = "4.5"
optional = true
[dependencies.console]
version = "0.16"
[dependencies.crossterm]
version = "0.28"
optional = true
[dependencies.dirs]
version = "6.0"
[dependencies.exitcode]
version = "1.1"
[dependencies.rand]
version = "0.10"
[dependencies.ratatui]
version = "0.29"
optional = true
[dependencies.regex]
version = "1.12"
[dependencies.requestty]
version = "0.6"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"blocking",
]
optional = true
[dependencies.serde]
version = "1.0"
[dependencies.serde_derive]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]
[dependencies.serde_regex]
version = "1.1"
[dependencies.serde_yaml]
version = "0.9"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"time",
"io-std",
"io-util",
]
optional = true
[dependencies.toml_edit]
version = "0.25"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dependencies.tui-input]
version = "0.13"
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
[dependencies.wait-timeout]
version = "0.2"
[dev-dependencies.insta]
version = "1.46"
features = ["filters"]
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tree-fs]
version = "0.2"
[build-dependencies.regex]
version = "1.12"
[build-dependencies.regex-syntax]
version = "0.8"
[build-dependencies.serde_yaml]
version = "0.9"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = [
"term",
"fs",
"hostname",
]
[target."cfg(unix)".dependencies.rustix]
version = "1.0"
features = ["termios"]
optional = true
[target."cfg(windows)".dependencies.portable-pty]
version = "0.9"
optional = true
[target."cfg(windows)".dependencies.windows-sys]
version = "0.59"
features = [
"Win32_System_Console",
"Win32_Foundation",
]
optional = true