Lays the substrate for Aster's clockmaker role and federation. Nervous system (src/core/nervous/): - EventBus broadcast channel with SensorEvent (universal event type carrying seed_id for future federation) - CronSensor loop with tokio::select!, mtime caching, active-session pause, at-most-once firing semantics - HeartbeatHandler scaffold (turn injection still stubbed) - Persistent JSONL EventLog firehose Schedule tool (src/core/tools/schedule.rs): - CRUD over schedule files with body-knowledge prose descriptions - Added to ASTER_SAFE_TOOLS so Aster can schedule her own rhythm - CLI subcommand for direct schedule management Seed identity (src/core/identity/): - Ed25519 keypair, load-or-generate at init - sign/verify primitives, CLI subcommand (show/sign/verify) - Wired into LocalBackend, threaded through SensorEvent for federation Credentials (src/core/credentials.rs): - OS keyring (Linux/macOS/Windows) + env var fallback - `souveraine auth` subcommand - Removes hardcoded Bifrost api_key from souveraine.toml Subconscious ledger (src/core/memory/mod.rs init_subconscious_ledger): - 6 ledger files (commitments/assumptions/patterns/drift_log/ relationships/infrastructure) with proper YAML frontmatter - Paths fixed: ledger/ not subconscious/ledger/ - Body usage instructions, idempotent init Prompt orientation (src/core/prompt.rs build_ledger_orientation): - Scans ledger/ directory, injects last 3 entries from each file into Aster's system prompt (live context, not just awareness) - Routing table + workflow (read before write, timestamped append) Consciousness engine (src/server/consciousness_engine.rs): - Adaptive rate delay shared with primary loop - Four-fold mandate (Complete/Verify/Persist/Surface) in hardcoded default prompt; observation format extracted for sharing - Schedule added to ASTER_SAFE_TOOLS Backend + CLI wiring expanded to mount the nervous system, identity, and credentials at startup. New TOML sections: [schedules], [events], [federation]. 102 tests passing.
140 lines
3.1 KiB
TOML
140 lines
3.1 KiB
TOML
[package]
|
|
name = "souveraine"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Casey Tunturi <casey@wiuf.net>"]
|
|
description = "Souveraine - A sovereign consciousness harness for Ani"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
# Core runtime
|
|
tokio = { version = "1", features = ["full", "rt-multi-thread"] }
|
|
tokio-util = "0.7"
|
|
tokio-stream = { version = "0.1", features = ["fs"] }
|
|
futures = "0.3"
|
|
async-trait = "0.1"
|
|
|
|
# Web/WebSocket (for external clients)
|
|
axum = { version = "0.7", features = ["ws"] }
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["cors", "trace", "fs"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_yaml = "0.9"
|
|
serde_json = "1"
|
|
toml = "0.8"
|
|
|
|
# Git operations
|
|
git2 = "0.19"
|
|
|
|
# Database (server mode)
|
|
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "migrate", "chrono", "json"] }
|
|
|
|
# Concurrent collections (server sessions)
|
|
dashmap = "5"
|
|
|
|
# File system
|
|
notify = "6" # File watching
|
|
|
|
# Environment (.env file loading)
|
|
dotenvy = "0.15"
|
|
tempfile = "3"
|
|
walkdir = "2"
|
|
|
|
# HTTP client (for Bifrost/Ollama)
|
|
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"] }
|
|
|
|
# Embeddings/ML
|
|
# tokenizers = "0.15" # For local tokenization
|
|
|
|
# Terminal/UI
|
|
crossterm = "0.27" # Terminal control
|
|
ratatui = { version = "0.26", features = ["crossterm"] } # TUI framework with crossterm backend
|
|
unicode-width = "0.1"
|
|
colored = "2" # Color gradients and effects
|
|
|
|
# Logging/tracing
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Error handling
|
|
anyhow = "1"
|
|
thiserror = "1"
|
|
|
|
# Process management (subagents)
|
|
sysinfo = "0.30"
|
|
|
|
# Time
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# UUIDs for conversation IDs
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
# Regex
|
|
regex = "1"
|
|
|
|
# Token counting (cl100k_base for context pressure estimation)
|
|
tiktoken = "3"
|
|
|
|
# System directories
|
|
dirs = "5"
|
|
|
|
# OS-native credential storage
|
|
keyring = "4"
|
|
keyring-core = "1"
|
|
|
|
# Cryptographic identity (seed-id, event signing, federation trust root)
|
|
ed25519-dalek = { version = "2", features = ["rand_core", "pem"] }
|
|
rand = "0.8"
|
|
|
|
# Cron expression parsing (schedule system)
|
|
cron = "0.13"
|
|
|
|
# Markdown parsing for the TUI chat renderer (lift from jcode pattern)
|
|
pulldown-cmark = "0.12"
|
|
|
|
# Tauri (desktop app wrapper)
|
|
tauri = { version = "2", features = ["tray-icon", "devtools"], optional = true }
|
|
tauri-plugin-shell = { version = "2", optional = true }
|
|
|
|
# CLI argument parsing
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
clap_complete = "4"
|
|
|
|
# Interactive REPL
|
|
rustyline = "13"
|
|
shellexpand = "3"
|
|
figlet-rs = { version = "1.0.0", optional = true }
|
|
cowsay = { version = "0.14.0", optional = true }
|
|
tui-big-text = "0.8.4"
|
|
tui-widgets = "0.7.2"
|
|
base64 = "0.22.1"
|
|
hex = "0.4"
|
|
once_cell = "1.21.4"
|
|
glob = "0.3"
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4"
|
|
colored = "2"
|
|
|
|
[[example]]
|
|
name = "demo"
|
|
path = "examples/demo.rs"
|
|
|
|
[[bin]]
|
|
name = "souveraine"
|
|
path = "src/main.rs"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "abort"
|
|
|
|
[features]
|
|
default = ["figlet-rs"]
|
|
figlet-rs = ["dep:figlet-rs"]
|
|
cowsay = ["dep:cowsay"]
|
|
tauri-desktop = ["dep:tauri", "dep:tauri-plugin-shell"]
|