New crates
- platform-nats: async_nats JetStream bridge; pull/push consumers, explicit ACK,
subject prefixing under provisioning.>, 6 stream definitions on startup
- platform-db: SurrealDB pool (embedded RocksDB solo, Surreal<Mem> tests,
WebSocket server multi-user); migrate() with DEFINE TABLE IF NOT EXISTS DDL
Service integrations
- orchestrator: NATS pub on task state transitions, execution_logs → SurrealDB,
webhook handler (HMAC-SHA256), AuditCollector (batch INSERT, 100-event/1s flush)
- control-center: solo_auth_middleware (intentional bypass, --mode solo only),
NATS session events, WebSocket bridge via JetStream subscription (no polling)
- vault-service: NATS lease flow; credentials over HTTPS only (lease_id in NATS);
SurrealDB storage backend with MVCC retry + exponential backoff
- secretumvault: complete SurrealDB backend replacing HashMap; 9 unit + 19 integration tests
- extension-registry: NATS lifecycle events, vault:// credential resolver with TTL cache,
cache invalidation via provisioning.workspace.*.deploy.done
Clippy workspace clean
cargo clippy --workspace -- -D warnings: 0 errors
Patterns fixed: derivable_impls (#[default] on enum variants), excessive_nesting
(let-else, boolean arithmetic in retain, extracted helpers), io_error_other,
redundant_closure, iter_kv_map, manual_range_contains, pathbuf_instead_of_path
70 lines
1.8 KiB
TOML
70 lines
1.8 KiB
TOML
[package]
|
|
authors.workspace = true
|
|
description = "HTTP service for AI capabilities including RAG, MCP tool invocation, and knowledge graph operations"
|
|
edition.workspace = true
|
|
name = "ai-service"
|
|
version.workspace = true
|
|
|
|
[[bin]]
|
|
name = "provisioning-ai-service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Workspace dependencies
|
|
async-trait = { workspace = true }
|
|
futures = { workspace = true }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
# Web server and API
|
|
axum = { workspace = true }
|
|
tower = { workspace = true, features = ["full"] }
|
|
tower-http = { workspace = true, features = ["cors", "trace"] }
|
|
|
|
# Serialization
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
toml = { workspace = true }
|
|
|
|
# Platform configuration
|
|
platform-config = { workspace = true }
|
|
|
|
# Centralized observability (logging, metrics, health, tracing)
|
|
observability = { workspace = true, features = ["logging", "metrics-prometheus", "health"] }
|
|
|
|
# Error handling
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
# Logging
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
# UUID and time
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
uuid = { workspace = true, features = ["v4", "serde"] }
|
|
|
|
# CLI
|
|
clap = { workspace = true, features = ["derive"] }
|
|
|
|
# RAG crate for AI capabilities
|
|
rag = { workspace = true }
|
|
|
|
# MCP server tools for real implementations
|
|
mcp-server = { workspace = true }
|
|
|
|
# Graph operations for DAG
|
|
petgraph = { workspace = true }
|
|
|
|
# Stratum ecosystem - embeddings and LLM abstraction (optional - requires external setup)
|
|
stratum-embeddings = { workspace = true }
|
|
stratum-llm = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
tokio-test = { workspace = true }
|
|
|
|
# Library target
|
|
[lib]
|
|
name = "ai_service"
|
|
path = "src/lib.rs"
|