use std::path::Path;
use std::sync::Arc;
use oxi_agent::{
ToolRegistry,
tools::{ReadTool, WriteTool, EditTool, LsTool},
};
pub fn coding_tools(cwd: &Path) -> Arc<ToolRegistry> {
let registry = ToolRegistry::new();
registry.register(ReadTool::with_cwd(cwd.to_path_buf()));
registry.register(WriteTool::with_cwd(cwd.to_path_buf()));
registry.register(EditTool::with_cwd(cwd.to_path_buf()));
registry.register(LsTool::with_cwd(cwd.to_path_buf()));
Arc::new(registry)
}
pub fn readonly_tools(cwd: &Path) -> Arc<ToolRegistry> {
let registry = ToolRegistry::new();
registry.register(ReadTool::with_cwd(cwd.to_path_buf()));
registry.register(LsTool::with_cwd(cwd.to_path_buf()));
Arc::new(registry)
}