[package]
edition = "2024"
name = "agent-first-psql"
version = "0.8.2"
build = "build.rs"
exclude = [".github/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "afpsql"
description = "A PostgreSQL interface for AI agents: reliable, structured, explicit, and read-only by default."
readme = "README.md"
license = "MIT"
repository = "https://github.com/agentfirstkit/agent-first-psql"
[features]
db-tests = []
[lib]
name = "agent_first_psql"
path = "src/lib.rs"
[[bin]]
name = "afpsql"
path = "src/main.rs"
[[bin]]
name = "afpsql-readonly"
path = "src/readonly_main.rs"
[[test]]
name = "cli_integration"
path = "tests/cli_integration.rs"
[[test]]
name = "config_secret_sources"
path = "tests/config_secret_sources.rs"
[[test]]
name = "connection_env"
path = "tests/connection_env.rs"
[[test]]
name = "container_e2e"
path = "tests/container_e2e.rs"
[[test]]
name = "coverage_integration"
path = "tests/coverage_integration.rs"
[[test]]
name = "psql_compatibility"
path = "tests/psql_compatibility.rs"
[[test]]
name = "readonly_binary"
path = "tests/readonly_binary.rs"
[[test]]
name = "runtime_integration"
path = "tests/runtime_integration.rs"
[dependencies.agent-first-data]
version = "0.26.2"
features = [
"cli-help",
"cli-help-markdown",
"skill-admin",
"stream-redirect",
]
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.futures-util]
version = "0.3"
[dependencies.native-tls]
version = "0.2"
[dependencies.postgres-native-tls]
version = "0.5"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-postgres]
version = "0.7"
features = ["with-serde_json-1"]
[lints.clippy]
expect_used = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
unwrap_used = "deny"