refactor: 清理未使用代码并添加未来功能标记
Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
style: 统一代码格式和注释风格 docs: 更新多个功能文档的完整度和状态 feat(runtime): 添加路径验证工具支持 fix(pipeline): 改进条件判断和变量解析逻辑 test(types): 为ID类型添加全面测试用例 chore: 更新依赖项和Cargo.lock文件 perf(mcp): 优化MCP协议传输和错误处理
This commit is contained in:
@@ -229,6 +229,7 @@ impl PlanBuilder {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::collections::HashMap;
|
||||
use zclaw_types::SkillId;
|
||||
|
||||
fn make_test_graph() -> SkillGraph {
|
||||
use super::super::{SkillNode, SkillEdge};
|
||||
@@ -240,7 +241,7 @@ mod tests {
|
||||
nodes: vec![
|
||||
SkillNode {
|
||||
id: "research".to_string(),
|
||||
skill_id: "web-researcher".into(),
|
||||
skill_id: SkillId::new("web-researcher"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
@@ -250,7 +251,7 @@ mod tests {
|
||||
},
|
||||
SkillNode {
|
||||
id: "summarize".to_string(),
|
||||
skill_id: "text-summarizer".into(),
|
||||
skill_id: SkillId::new("text-summarizer"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
@@ -260,7 +261,7 @@ mod tests {
|
||||
},
|
||||
SkillNode {
|
||||
id: "translate".to_string(),
|
||||
skill_id: "translator".into(),
|
||||
skill_id: SkillId::new("translator"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
@@ -306,7 +307,7 @@ mod tests {
|
||||
.description("Test graph")
|
||||
.node(super::super::SkillNode {
|
||||
id: "a".to_string(),
|
||||
skill_id: "skill-a".into(),
|
||||
skill_id: SkillId::new("skill-a"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
@@ -316,7 +317,7 @@ mod tests {
|
||||
})
|
||||
.node(super::super::SkillNode {
|
||||
id: "b".to_string(),
|
||||
skill_id: "skill-b".into(),
|
||||
skill_id: SkillId::new("skill-b"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
|
||||
@@ -316,6 +316,8 @@ pub fn build_dependency_map(graph: &SkillGraph) -> HashMap<String, Vec<String>>
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use super::super::{SkillNode, SkillEdge};
|
||||
use zclaw_types::SkillId;
|
||||
|
||||
fn make_simple_graph() -> SkillGraph {
|
||||
SkillGraph {
|
||||
@@ -325,7 +327,7 @@ mod tests {
|
||||
nodes: vec![
|
||||
SkillNode {
|
||||
id: "a".to_string(),
|
||||
skill_id: "skill-a".into(),
|
||||
skill_id: SkillId::new("skill-a"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
@@ -335,7 +337,7 @@ mod tests {
|
||||
},
|
||||
SkillNode {
|
||||
id: "b".to_string(),
|
||||
skill_id: "skill-b".into(),
|
||||
skill_id: SkillId::new("skill-b"),
|
||||
description: String::new(),
|
||||
input_mappings: HashMap::new(),
|
||||
retry: None,
|
||||
|
||||
@@ -139,7 +139,7 @@ impl Skill for ShellSkill {
|
||||
.map_err(|e| zclaw_types::ZclawError::ToolError(format!("Failed to execute shell: {}", e)))?
|
||||
};
|
||||
|
||||
let duration_ms = start.elapsed().as_millis() as u64;
|
||||
let _duration_ms = start.elapsed().as_millis() as u64;
|
||||
|
||||
if output.status.success() {
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
|
||||
Reference in New Issue
Block a user