返回 CodeWhale
mod.rs
根目录 / crates / tui / 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 apply_patch;
12 pub mod approval_cache;
13 pub mod arg_repair;
14 pub mod automation;
15 pub mod canonical_action;
16 pub mod cargo_failure_summary;
17 pub mod codemode;
18 pub mod dev_server_readiness;
19 pub mod diagnostics;
20 pub mod diff_format;
21 pub mod dynamic;
22 pub mod execution_envelope;
23 pub mod file;
24 pub mod file_search;
25 pub mod finance;
26
27 pub mod fetch_url;
28 pub mod file_tool;
29 pub mod fim;
30 pub mod git;
31 pub mod git_history;
32 pub mod git_tool;
33 pub mod github;
34 pub mod goal;
35 pub mod handle;
36 pub mod harness;
37 pub mod image_ocr;
38 pub mod js_execution;
39 pub mod large_output_router;
40 pub mod lsp;
41 pub mod mcp_registry;
42 pub mod native_memory;
43 pub mod notify;
44 pub mod pandoc;
45 mod pdf;
46 pub mod plan;
47 pub mod plugin;
48 pub mod project;
49 pub mod read_media;
50 pub mod registry;
51 pub mod remember;
52 pub mod request_plugin_install;
53 mod resource_admission;
54 pub mod revert_turn;
55 pub mod review;
56 pub mod review_hunks;
57 pub(crate) mod review_pr;
58 pub mod rlm;
59 pub mod run_tool;
60 pub mod runtime_mcp;
61 mod rust_format;
62 pub mod schema_canonicalize;
63 pub mod schema_sanitize;
64 pub mod search;
65 pub mod send_later;
66 pub mod session;
67 pub mod shell;
68 mod shell_output;
69 pub mod skill;
70 pub mod spec;
71 pub mod speech;
72 pub mod subagent;
73 mod syntax_check;
74 pub mod tasks;
75 #[cfg(not(target_env = "ohos"))]
76 pub mod terminal_session;
77 pub mod test_runner;
78 pub mod todo;
79 pub mod tool_call_budget;
80 pub mod tool_result_retrieval;
81 pub mod truncate;
82 pub mod tui_help;
83 pub mod user_input;
84 pub mod validate_data;
85 pub mod verifier;
86 pub mod verify;
87 pub mod web;
88 pub mod web_run;
89 pub mod web_search;
90 pub mod web_tool;
91 pub mod workflow;
92 pub mod workflow_plan_approval;
93
94 pub use registry::{AgentToolSurfaceOptions, ToolRegistry, ToolRegistryBuilder};
95 pub use review::ReviewOutput;
96 pub use spec::ToolContext;
97 pub use user_input::UserInputResponse;
98
98 lines RUST