mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-07-30 06:32:17 +00:00
## Headline feature - Multi-instance Hands via optional instance_name (customer ask + #878). Web UI, CLI (--name / -n), API, kernel, registry all threaded. Two clip-youtube + clip-tiktok instances now coexist. Backward compatible when instance_name is omitted. ## Critical bug fixes - #919 [SECURITY] rm bypass closed. process_start tool now validates against exec_policy allowlist and rejects shell metacharacters in both command and args. Added 5 regression tests. - #1013 session_repair phase ordering — dedup now runs BEFORE synthetic result insertion, fixing Moonshot's non-unique tool_call_id format (function_name:index). Added regression test. - #1003 global [[fallback_providers]] now actually used at runtime. resolve_driver wraps primary in FallbackDriver with global fallback chain. Network errors escalate to fallback instead of infinite retry. - #937 Discord gateway heartbeat. Spawns interval task, tracks sequence, handles ACKs, detects zombie connections, force-closes on missing ACK. Credits @hello-world-bfree (PR #938) for the diagnosis. - #935 System prompt leak in Web UI. get_agent_session now filters Role::System by default (?include_system=true for debug). Defense in depth client-side filter too. - #984 Custom hands persistence. install_from_path copies to ~/.openfang/hands/. Kernel loads them on startup. - #884 Workspace version bump 0.5.5 -> 0.5.7. Binaries now correctly report --version as 0.5.7 instead of stale 0.5.5. ## Cleanup - rmcp 1.3 builder API adopted (credits @jefflower PR #986) for StreamableHttpClientTransportConfig. Drops unused Arc import. ## Stats - 22 files changed, all workspace tests passing (1800+) - Live-tested with daemon: v0.5.7 reported, multi-instance hands verified end-to-end, Groq round-trip PONG confirmed
170 lines
3.5 KiB
TOML
170 lines
3.5 KiB
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"crates/openfang-types",
|
|
"crates/openfang-memory",
|
|
"crates/openfang-runtime",
|
|
"crates/openfang-wire",
|
|
"crates/openfang-api",
|
|
"crates/openfang-kernel",
|
|
"crates/openfang-cli",
|
|
"crates/openfang-channels",
|
|
"crates/openfang-migrate",
|
|
"crates/openfang-skills",
|
|
"crates/openfang-desktop",
|
|
"crates/openfang-hands",
|
|
"crates/openfang-extensions",
|
|
"xtask",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.5.7"
|
|
edition = "2021"
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/RightNow-AI/openfang"
|
|
rust-version = "1.75"
|
|
|
|
[workspace.dependencies]
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-stream = "0.1"
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.9"
|
|
rmp-serde = "1"
|
|
|
|
# Error handling
|
|
thiserror = "2"
|
|
anyhow = "1"
|
|
|
|
# Concurrency
|
|
dashmap = "6"
|
|
crossbeam = "0.8"
|
|
|
|
# Logging / Tracing
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
|
|
# Time
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
chrono-tz = "0.10"
|
|
|
|
# IDs
|
|
uuid = { version = "1", features = ["v4", "v5", "serde"] }
|
|
|
|
# Database
|
|
rusqlite = { version = "0.31", features = ["bundled", "serde_json"] }
|
|
|
|
# CLI
|
|
clap = { version = "4", features = ["derive"] }
|
|
clap_complete = "4"
|
|
|
|
# HTTP client (for LLM drivers)
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart", "rustls-tls", "gzip", "deflate", "brotli"] }
|
|
|
|
# Async trait
|
|
async-trait = "0.1"
|
|
|
|
# Base64
|
|
base64 = "0.22"
|
|
|
|
# Bytes
|
|
bytes = "1"
|
|
|
|
# Futures
|
|
futures = "0.3"
|
|
prost = "0.13"
|
|
|
|
# WebSocket client (for Discord/Slack gateway)
|
|
tokio-tungstenite = { version = "0.24", default-features = false, features = ["connect", "rustls-tls-native-roots"] }
|
|
url = "2"
|
|
|
|
# WASM sandbox
|
|
wasmtime = "41"
|
|
|
|
# HTTP server (for API daemon)
|
|
axum = { version = "0.8", features = ["ws", "multipart"] }
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6", features = ["cors", "trace", "compression-gzip", "compression-br"] }
|
|
|
|
# Home directory resolution
|
|
dirs = "6"
|
|
|
|
# YAML parsing
|
|
serde_yaml = "0.9"
|
|
|
|
# JSON5 parsing
|
|
json5 = "0.4"
|
|
|
|
# Directory walking
|
|
walkdir = "2"
|
|
|
|
# Security
|
|
sha2 = "0.10"
|
|
sha1 = "0.10"
|
|
aes = "0.8"
|
|
cbc = "0.1"
|
|
hmac = "0.12"
|
|
hex = "0.4"
|
|
subtle = "2"
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
rand = "0.8"
|
|
zeroize = { version = "1", features = ["derive"] }
|
|
|
|
# Rate limiting
|
|
governor = "0.10"
|
|
|
|
# Interactive CLI
|
|
ratatui = "0.29"
|
|
colored = "3"
|
|
|
|
# Encryption
|
|
aes-gcm = "0.10"
|
|
argon2 = "0.5"
|
|
|
|
# HTML entity decoding
|
|
html-escape = "0.2"
|
|
|
|
# Lightweight regex
|
|
regex-lite = "0.1"
|
|
|
|
# MCP SDK (official Rust implementation)
|
|
rmcp = { version = "1.2", default-features = false, features = ["client", "transport-child-process", "transport-streamable-http-client-reqwest", "reqwest"] }
|
|
|
|
# Socket options (SO_REUSEADDR)
|
|
socket2 = "0.5"
|
|
|
|
# Zip archive extraction
|
|
zip = { version = "4", default-features = false, features = ["deflate"] }
|
|
|
|
# Email (SMTP + IMAP)
|
|
lettre = { version = "0.11", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1", "tokio1-rustls-tls"] }
|
|
imap = "2"
|
|
native-tls = { version = "0.2", features = ["vendored"] }
|
|
mailparse = "0.16"
|
|
|
|
# MQTT client
|
|
rumqttc = "0.24"
|
|
|
|
# OpenSSL (vendored = statically compiled, no runtime libssl dependency on Linux)
|
|
openssl = { version = "0.10", features = ["vendored"] }
|
|
|
|
# Testing
|
|
tokio-test = "0.4"
|
|
tempfile = "3"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
opt-level = 3
|
|
|
|
[profile.release-fast]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 8
|
|
opt-level = 2
|
|
strip = false
|