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
115 lines
3.0 KiB
TOML
115 lines
3.0 KiB
TOML
[package]
|
|
authors.workspace = true
|
|
description = "RAG system for provisioning platform with Rig framework and SurrealDB"
|
|
edition.workspace = true
|
|
name = "rag"
|
|
version.workspace = true
|
|
|
|
[[bin]]
|
|
name = "provisioning-rag"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# ============================================================================
|
|
# WORKSPACE DEPENDENCIES - Core async runtime and traits
|
|
# ============================================================================
|
|
async-trait = { workspace = true }
|
|
futures = { workspace = true }
|
|
tokio = { workspace = true, features = [
|
|
"rt",
|
|
"rt-multi-thread",
|
|
"process",
|
|
"io-util",
|
|
"time",
|
|
"fs",
|
|
] }
|
|
|
|
# Serialization and data handling
|
|
chrono = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
toml = { workspace = true }
|
|
uuid = { workspace = true }
|
|
|
|
# Error handling
|
|
anyhow = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
# Logging framework
|
|
tracing = { workspace = true }
|
|
|
|
# HTTP client for OpenAI API
|
|
reqwest = { workspace = true }
|
|
|
|
# ============================================================================
|
|
# REST API Framework (Phase 8)
|
|
# ============================================================================
|
|
axum = { workspace = true }
|
|
http = { workspace = true }
|
|
hyper = { workspace = true, features = ["full"] }
|
|
tower = { workspace = true }
|
|
tower-http = { workspace = true, features = ["cors", "trace"] }
|
|
|
|
# Database
|
|
surrealdb = { workspace = true }
|
|
|
|
# RAG Framework
|
|
rig-core = { workspace = true }
|
|
rig-surrealdb = { workspace = true }
|
|
|
|
# Filesystem and path operations
|
|
dirs = { workspace = true }
|
|
walkdir = { workspace = true }
|
|
|
|
# Configuration
|
|
config = { workspace = true }
|
|
|
|
# Platform configuration management
|
|
platform-config = { workspace = true }
|
|
|
|
# Centralized observability (logging, metrics, health, tracing)
|
|
observability = { workspace = true, features = ["logging", "metrics-prometheus", "health"] }
|
|
|
|
# Stratum ecosystem - embeddings and LLM abstraction
|
|
stratum-embeddings = { workspace = true, features = ["openai-provider", "ollama-provider", "fastembed-provider"] }
|
|
stratum-llm = { workspace = true, features = ["anthropic", "openai", "ollama"] }
|
|
|
|
# Regex for document parsing
|
|
regex = { workspace = true }
|
|
|
|
# Tokenization for chunking
|
|
tokenizers = { workspace = true }
|
|
|
|
# Caching support (Phase 7)
|
|
lru = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
|
|
# Metrics and monitoring (Phase 7)
|
|
parking_lot = { workspace = true }
|
|
|
|
# ============================================================================
|
|
# CLI AND TESTING
|
|
# ============================================================================
|
|
clap = { workspace = true, features = ["derive", "env"] }
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
assert_matches = { workspace = true }
|
|
criterion = { workspace = true, features = ["html_reports", "async_tokio"] }
|
|
tempfile = { workspace = true }
|
|
tokio-test = { workspace = true }
|
|
|
|
[[bench]]
|
|
harness = false
|
|
name = "phase8_benchmarks"
|
|
|
|
# Library target
|
|
[lib]
|
|
name = "provisioning_rag"
|
|
path = "src/lib.rs"
|
|
|
|
# Features
|
|
[features]
|
|
cli = []
|
|
default = ["cli"]
|