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