Jesús Pérez 027b8f2836
Some checks failed
Documentation Lint & Validation / Markdown Linting (push) Has been cancelled
Documentation Lint & Validation / Validate mdBook Configuration (push) Has been cancelled
Documentation Lint & Validation / Content & Structure Validation (push) Has been cancelled
Documentation Lint & Validation / Lint & Validation Summary (push) Has been cancelled
mdBook Build & Deploy / Build mdBook (push) Has been cancelled
mdBook Build & Deploy / Documentation Quality Check (push) Has been cancelled
mdBook Build & Deploy / Deploy to GitHub Pages (push) Has been cancelled
mdBook Build & Deploy / Notification (push) Has been cancelled
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
feat(channels): webhook notification channels with built-in secret resolution
Add vapora-channels crate with trait-based Slack/Discord/Telegram webhook
  delivery. ${VAR}/${VAR:-default} interpolation is mandatory inside
  ChannelRegistry::from_config — callers cannot bypass secret resolution.
  Fire-and-forget dispatch via tokio::spawn in both vapora-workflow-engine
  (four lifecycle events) and vapora-backend (task Done, proposal approve/reject).
  New REST endpoints: GET /channels, POST /channels/:name/test.
  dispatch_notifications extracted as pub(crate) fn for inline testability;
  5 handler tests + 6 workflow engine tests + 7 secret resolution unit tests.

  Closes: vapora-channels bootstrap, notification gap in workflow/backend layer
  ADR: docs/adrs/0035-notification-channels.md
2026-02-26 14:49:34 +00:00

97 lines
2.1 KiB
TOML

[package]
name = "vapora-backend"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[lib]
name = "vapora_backend"
path = "src/lib.rs"
[[bin]]
name = "vapora-backend"
path = "src/main.rs"
[dependencies]
# Internal crates
vapora-shared = { workspace = true }
vapora-agents = { workspace = true }
vapora-llm-router = { workspace = true }
vapora-swarm = { workspace = true }
vapora-tracking = { path = "../vapora-tracking" }
vapora-knowledge-graph = { path = "../vapora-knowledge-graph" }
vapora-workflow-engine = { workspace = true }
vapora-channels = { workspace = true }
vapora-rlm = { path = "../vapora-rlm" }
# Secrets management
secretumvault = { workspace = true }
# Web framework
axum = { workspace = true }
tower = { workspace = true }
tower-http = { workspace = true }
# Async runtime
tokio = { workspace = true }
futures = { workspace = true }
async-trait = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
serde_yaml = { workspace = true }
# Error handling
anyhow = { workspace = true }
thiserror = { workspace = true }
# HTTP
http = { workspace = true }
# Logging
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
# Database
surrealdb = { workspace = true }
sqlx = { workspace = true }
# Message Queue
async-nats = { workspace = true }
# Authentication
jsonwebtoken = { workspace = true }
argon2 = { workspace = true }
tower-sessions = { workspace = true }
tower-cookies = { workspace = true }
# Utilities
uuid = { workspace = true }
chrono = { workspace = true }
dotenv = { workspace = true }
once_cell = { workspace = true }
regex = { workspace = true }
# Configuration
clap = { workspace = true }
# Metrics
prometheus = { workspace = true }
lazy_static = { workspace = true }
# TLS (native tokio-rustls)
rustls = { workspace = true }
rustls-pemfile = { workspace = true }
[dev-dependencies]
mockall = { workspace = true }
axum-test = { workspace = true }
wiremock = { workspace = true }
tempfile = { workspace = true }