//! 声明式注册工具集合(tool_registry 拆分第一步 · 试点容器) //! //! 容纳迁自 `tool_registry.rs` 手写 register 调用、改用 `declare_tool!` 宏的工具。 //! 本步(基础设施 + 1 试点)仅迁 `list_projects`,其余 47 个工具仍在 tool_registry.rs 手写, //! 后续批次渐进迁移(每批 1-3 个,各自独立文件,互不影响)。 //! //! 设计:每个工具一个独立文件 + `register(&mut registry, db)` 入口,tool_registry.rs //! 对应 `register_*` 函数改调本模块(原手写 register 调用删除)。这样工具定义与实现同源、 //! 文件边界清晰,新增工具只加文件 + 在对应 register_* 接一行,不动 4224 行巨函数主体。 pub mod list_projects; pub mod project; pub mod task; pub mod task_graph; pub mod git; pub mod http; pub mod local_proxy; pub mod fetch_url; pub mod fetch_search; pub mod generate_image; pub mod get_app_config; pub mod workflow; pub mod idea; pub mod knowledge; pub mod trash; pub mod file; pub mod download_file; pub mod entity_resolve; pub mod read_skill; // spawn_agent 子代理派发(独立 agentic 循环入口,audit 与 ai_approve 经本模块 // scope_caller_conv 注入父会话 task-local,故需 pub 可达)。 pub mod spawn_agent;