Files
zclaw_openfang/crates/zclaw-runtime/Cargo.toml
iven 9e0aa496cd
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
fix(runtime): 修复 Skill/MCP 调用链路3个断点
1. Anthropic Driver ToolResult 格式修复 — ContentBlock 添加 ToolResult 变体,
   tool_call_id 不再被丢弃, 按 Anthropic API 规范发送 tool_result 格式
2. 前端 callMcpTool 参数名对齐 — serviceName/toolName/args 改为
   service_name/tool_name/arguments, 后端支持 service_name 精确路由
3. MCP 工具桥接到 ToolRegistry — McpToolAdapter 添加 service_name/clone,
   新建 McpToolWrapper 实现 Tool trait, Kernel 添加 mcp_adapters 共享状态,
   McpManagerState 与 Kernel 共享同一 Arc<RwLock<Vec>>, MCP 服务启停时
   自动同步工具列表到 LLM 可见的 ToolRegistry
2026-04-11 16:20:38 +08:00

56 lines
1.2 KiB
TOML

[package]
name = "zclaw-runtime"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
description = "ZCLAW runtime with LLM drivers and agent loop"
[dependencies]
zclaw-types = { workspace = true }
zclaw-memory = { workspace = true }
zclaw-growth = { workspace = true }
zclaw-protocols = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
futures = { workspace = true }
async-stream = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
thiserror = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }
tracing = { workspace = true }
async-trait = { workspace = true }
regex = { workspace = true }
# HTTP client
reqwest = { workspace = true }
# URL parsing
url = { workspace = true }
# Secrets
secrecy = { workspace = true }
# Random
rand = { workspace = true }
# Crypto for hashing
sha2 = { workspace = true }
# Base64 encoding
base64 = { workspace = true }
# Directory helpers
dirs = { workspace = true }
# Shell parsing
shlex = { workspace = true }
[dev-dependencies]
tempfile = { workspace = true }