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
- New ask_clarification tool (crates/zclaw-runtime/src/tool/builtin/ask_clarification.rs) with 5 clarification types: missing_info, ambiguous_requirement, approach_choice, risk_confirmation, suggestion - Registered as built-in tool in builtin.rs - Added clarification system prompt instructions to messaging.rs system prompt - Fixed messaging.rs skill injection: when SkillIndexMiddleware is active, only inject usage instructions (not full skill list), avoiding duplicate injection - Fixed pre-existing unicode arrow character causing string literal parse error Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
1.0 KiB
Rust
35 lines
1.0 KiB
Rust
//! Built-in tools
|
|
|
|
mod file_read;
|
|
mod file_write;
|
|
mod shell_exec;
|
|
mod web_fetch;
|
|
mod execute_skill;
|
|
mod skill_load;
|
|
mod path_validator;
|
|
mod task;
|
|
mod ask_clarification;
|
|
|
|
pub use file_read::FileReadTool;
|
|
pub use file_write::FileWriteTool;
|
|
pub use shell_exec::ShellExecTool;
|
|
pub use web_fetch::WebFetchTool;
|
|
pub use execute_skill::ExecuteSkillTool;
|
|
pub use skill_load::SkillLoadTool;
|
|
pub use path_validator::{PathValidator, PathValidatorConfig};
|
|
pub use task::TaskTool;
|
|
pub use ask_clarification::AskClarificationTool;
|
|
|
|
use crate::tool::ToolRegistry;
|
|
|
|
/// Register all built-in tools
|
|
pub fn register_builtin_tools(registry: &mut ToolRegistry) {
|
|
registry.register(Box::new(FileReadTool::new()));
|
|
registry.register(Box::new(FileWriteTool::new()));
|
|
registry.register(Box::new(ShellExecTool::new()));
|
|
registry.register(Box::new(WebFetchTool::new()));
|
|
registry.register(Box::new(ExecuteSkillTool::new()));
|
|
registry.register(Box::new(SkillLoadTool::new()));
|
|
registry.register(Box::new(AskClarificationTool::new()));
|
|
}
|