Files
wunianxiao af6cfdaa83 feat: 拆分 worker 架构并增强 assistant 安全保护
- 新增 daemon/channel/assistant/function/scheduler/logging worker 架构和 JetStream 消息协议

- 修复邮件通知误入 assistant、迁移 checksum、日志 subject 和工具调用无限循环风险

- 新增 assistant 工具轮次熔断、工具结果截断和提示词软收敛规则

- 补充邮件推送关键字、可信发件人配置、升级日志和验证测试
2026-07-10 00:41:36 +08:00

28 lines
971 B
TOML

[package]
name = "ias-common"
version = "0.2.0"
edition = "2024"
[dependencies]
# ── NATS JetStream ──
async-nats = "0.49.1"
# ── HTTP 客户端 ──
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] } # HTTP 请求(微信 API + DeepSeek API + 工具调用)
# ── 序列化 ──
serde = { version = "1.0", features = ["derive"] } # 序列化/反序列化
serde_json = "1.0" # JSON 处理
serde_yaml = "0.9"
# ── 异步流工具 ──
futures-util = "0.3"
tokio = { version = "1.0", features = ["rt", "sync"] }
# ── 错误处理 ──
anyhow = "1"
thiserror = "2"
# ── 时间处理 ──
chrono = { version = "0.4", features = ["serde"] }
# ── 唯一标识 ──
uuid = { version = "1", features = ["v4", "serde"] }
[dev-dependencies]
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time"] }