[package]
name = "klieo-ops-api"
version = "3.1.0"
edition = "2021"
rust-version = "1.89"
license = "MIT"
publish = true
description = "Read-only HTTP monitoring router for klieo agentic systems."
readme = "README.md"
repository.workspace = true
homepage.workspace   = true

[features]
default = []
test-fixtures = [
    "klieo-auth-common/test-fixtures",
    "klieo-core/test-utils",
]
# Exposes `OpsRouterBuilder::with_dev_auth()` wiring `AllowAnonymous`.
# NEVER enable in production — anyone reachable can hit `/_ops`.
dev-auth = ["klieo-auth-common/test-fixtures"]

[dependencies]
klieo-core         = { path = "../klieo-core",         version = "3" }
klieo-runlog       = { path = "../klieo-runlog",       version = "3" }
klieo-a2a          = { path = "../klieo-a2a",          version = "3" }
klieo-auth-common  = { path = "../klieo-auth-common",  version = "3" }
axum               = { workspace = true }
tower              = { workspace = true }
tower-http         = { workspace = true }
serde              = { workspace = true }
serde_json         = { workspace = true }
thiserror          = { workspace = true }
chrono             = { workspace = true }
tokio              = { workspace = true }
tracing            = { workspace = true }
async-trait        = { workspace = true }
ulid               = { workspace = true }

[dev-dependencies]
klieo-core         = { path = "../klieo-core",        features = ["test-utils"] }
klieo-auth-common  = { path = "../klieo-auth-common", features = ["test-fixtures"] }
klieo-bus-memory   = { path = "../klieo-bus-memory" }
tokio              = { workspace = true, features = ["macros", "rt-multi-thread"] }
tokio-test         = { workspace = true }
bytes              = { workspace = true }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
