Orchestrator tests: - Simple chat roundtrip with token usage verification - Event ordering (Started → Thinking → Done) - Metadata pass-through (opaque bag appears in Started event) - Token usage accuracy (longer prompts → more tokens) - Conversation continuity (multi-turn recall) - Client-side tool dispatch + mock result submission - Failed tool result handling (is_error: true) - Server-side tool execution (search_web via conversation) gRPC tests: - Full roundtrip (StartSession → UserInput → Status → TextDone) - Client tool relay (ToolCall → ToolResult through gRPC stream) - Token counts in TextDone (non-zero verification) - Session resume (same room_id, resumed flag) - Clean disconnect (EndSession → SessionEnd) Infrastructure: - ToolRegistry::new_minimal() — no OpenSearch/Matrix needed - ToolRegistry fields now Option for testability - GrpcState.matrix now Option - grpc_bridge moved to src/grpc/bridge.rs - TestHarness loads API key from .env
54 lines
1.5 KiB
TOML
54 lines
1.5 KiB
TOML
[package]
|
|
name = "sol"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
rust-version = "1.76.0"
|
|
authors = ["Sunbeam Studios <hello@sunbeam.pt>"]
|
|
description = "Sol — virtual librarian Matrix bot with E2EE, OpenSearch archive, and Mistral AI"
|
|
license = "AGPL-3.0-or-later"
|
|
repository = "https://src.sunbeam.pt/studio/sol"
|
|
|
|
[[bin]]
|
|
name = "sol"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
mistralai-client = { version = "1.1.0", registry = "sunbeam" }
|
|
matrix-sdk = { version = "0.9", features = ["e2e-encryption", "sqlite"] }
|
|
opensearch = "2"
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.8"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
rand = "0.8"
|
|
regex = "1"
|
|
anyhow = "1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
url = "2"
|
|
ruma = { version = "0.12", features = ["events", "client", "markdown"] }
|
|
libsqlite3-sys = { version = "0.30", features = ["bundled"] }
|
|
deno_core = "0.393"
|
|
deno_ast = { version = "0.53", features = ["transpiling"] }
|
|
deno_error = "0.7"
|
|
tempfile = "3"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
base64 = "0.22"
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
futures = "0.3"
|
|
tonic = "0.14"
|
|
tonic-prost = "0.14"
|
|
prost = "0.14"
|
|
tokio-stream = "0.1"
|
|
jsonwebtoken = "9"
|
|
tokenizers = { version = "0.22", default-features = false, features = ["onig", "http"] }
|
|
|
|
[dev-dependencies]
|
|
dotenv = "0.15"
|
|
|
|
[build-dependencies]
|
|
tonic-build = "0.14"
|
|
tonic-prost-build = "0.14"
|