返回 CodeWhale
mod.rs
根目录 / crates / engine / src / tools / mod.rs
1 //! Tool system modules and re-exports.
2
3 // Tools run inside the TUI alt-screen runtime. Raw `print!` / `eprintln!`
4 // inside this module tree leaks into ratatui's diff-renderer buffer and
5 // produces the "scroll demon" regression (#1085 / v0.8.27 follow-up).
6 // Route status/error reporting through `tracing::*` instead — the
7 // `runtime_log` subscriber captures it to `~/.deepseek/logs/`.
8 #![deny(clippy::print_stdout)]
9 #![deny(clippy::print_stderr)]
10
11 pub mod activity;
12 pub mod apply_patch;
13 pub mod approval_cache;
14 pub mod approval_summary;
15 pub mod arg_repair;
16 pub mod automation;
17 #[cfg(any(test, feature = "test-support"))]
18 pub mod canonical_action_test_support;
19 #[cfg(test)]
20 mod canonical_action_tests;
21 pub mod cargo_failure_summary;
22 pub mod codemode;
23 pub mod context_archive;
24 pub mod dev_server_readiness;
25 pub mod diff_format;
26 pub mod dynamic;
27 pub mod execution_envelope;
28 pub mod file;
29 pub mod file_search;
30
31 pub mod fetch_url;
32 pub mod file_tool;
33 pub mod fim;
34 pub mod git;
35 pub mod git_history;
36 pub mod git_tool;
37 pub mod github;
38 pub mod goal;
39 pub mod handle;
40 pub mod image_ocr;
41 pub mod large_output_router;
42 pub mod lsp;
43 pub mod mcp_registry;
44 pub mod native_memory;
45 pub mod notify;
46 #[cfg(all(test, unix))]
47 mod output_link_tests;
48 pub mod pandoc;
49 pub mod pdf;
50 pub mod plan;
51 pub mod plugin;
52 pub mod present;
53 pub mod read_media;
54 pub mod registry;
55 pub mod remember;
56 pub mod request_plugin_install;
57 mod resource_admission;
58 pub mod revert_turn;
59 pub mod review;
60 pub mod review_core;
61 pub mod review_host;
62 pub mod review_hunks;
63 pub mod review_pr;
64 pub mod review_triage;
65 pub mod rlm;
66 pub mod run_tool;
67 pub mod runtime_mcp;
68 mod rust_format;
69 #[cfg(test)]
70 mod schema_sanitize_apply_patch_tests;
71 pub mod search;
72 pub mod send_later;
73 pub mod session;
74 pub mod shell;
75 pub mod shell_output;
76 pub mod show_data;
77 pub mod skill;
78 pub mod spec;
79 pub mod speech;
80 pub mod subagent;
81 mod syntax_check;
82 pub mod tasks;
83 #[cfg(not(target_env = "ohos"))]
84 pub mod terminal_session;
85 pub mod test_runner;
86 pub mod todo;
87 pub mod tool_call_budget;
88 pub mod tool_result_retrieval;
89 pub mod truncate;
90 pub mod tui_help;
91 pub mod user_input;
92 pub mod validate_data;
93 pub mod verifier;
94 pub mod web;
95 pub mod web_run;
96 pub mod web_search;
97 pub mod web_tool;
98 pub mod workflow;
99 pub mod workflow_plan_approval;
100
101 pub use registry::{AgentToolSurfaceOptions, ToolRegistry, ToolRegistryBuilder};
102 pub use review::ReviewOutput;
103 pub use spec::ToolContext;
104 pub use user_input::UserInputResponse;
105
105 lines RUST