vtcode_core/tools/handlers/
mod.rs1pub mod adapter;
50pub mod apply_patch_handler;
51pub mod events;
52pub mod intercept_apply_patch;
53pub mod orchestrator;
54pub mod router;
55pub mod sandboxing;
56pub mod tool_handler;
57pub mod tool_orchestrator;
58pub mod turn_diff_tracker;
59
60pub mod list_dir_handler;
62pub mod plan_mode;
63pub mod plan_task_tracker;
64pub mod read_file;
65pub mod session_tool_catalog;
66pub mod shell_handler;
67pub mod task_tracker;
68pub mod task_tracking;
69
70pub use apply_patch_handler::{
74 ApplyPatchHandler, ApplyPatchRequest as ApplyPatchHandlerRequest, ApplyPatchRuntime,
75 ApplyPatchToolArgs, create_apply_patch_freeform_tool, create_apply_patch_json_tool,
76};
77
78pub use events::{
80 ExecCommandInput, ExecCommandSource, ParsedCommand, ToolEmitter, ToolEventCtx,
81 ToolEventFailureKind, ToolEventStage,
82};
83
84pub use intercept_apply_patch::{
86 ApplyPatchError, ApplyPatchRequest, CODEX_APPLY_PATCH_ARG, intercept_apply_patch,
87 maybe_parse_apply_patch_from_command,
88};
89
90pub use list_dir_handler::{DirEntry, ListDirArgs, ListDirHandler, create_list_dir_tool};
92
93pub use sandboxing::{
95 Approvable, ApprovalCtx, ApprovalStore, AskForApproval, BoxFuture, CommandSpec,
96 ExecApprovalRequirement, ExecEnv, ExecPolicyAmendment, ExecToolCallOutput, NetworkAccess,
97 RejectConfig, ReviewDecision, SandboxAttempt, SandboxManager, SandboxMode, SandboxOverride,
98 SandboxPolicy, SandboxTransformError, SandboxType, Sandboxable, SandboxablePreference, ToolCtx,
99 ToolError, ToolRuntime, default_exec_approval_requirement, execute_env, with_cached_approval,
100};
101
102pub use tool_orchestrator::ToolOrchestrator;
104
105pub use turn_diff_tracker::{
107 ChangeAttribution, FileChange, FileChangeKind, SharedTurnDiffTracker, TurnDiffTracker,
108 new_shared_tracker,
109};
110
111pub use session_tool_catalog::{
113 CatalogToolKind, DeferredToolPolicy, DeferredToolSearchKind, SessionSurface,
114 SessionToolCatalog, SessionToolsConfig, ToolCatalogEntry, ToolCatalogSource,
115 ToolModelCapabilities, ToolSchemaEntry, anthropic_native_memory_enabled_for_runtime,
116 deferred_tool_policy_for_runtime,
117};
118pub use shell_handler::{ShellHandler, create_shell_tool};
119
120pub use plan_mode::{EnterPlanModeTool, ExitPlanModeTool, PlanModeState};
122
123pub use plan_task_tracker::PlanTaskTrackerTool;
125pub use task_tracker::TaskTrackerTool;
126
127pub use router::{
129 DispatchRegistry, DispatchRegistryBuilder, ToolCall, ToolRouter, ToolRouterProvider,
130};
131pub use tool_handler::{
132 AdditionalProperties, ApprovalPolicy, ConfiguredToolSpec, Constrained, ContentItem,
133 DiffTracker, FreeformTool, FreeformToolFormat, JsonSchema, McpToolResult, PatchApplyBeginEvent,
134 PatchApplyEndEvent, ResponsesApiTool, SandboxPermissions, SharedDiffTracker,
135 ShellEnvironmentPolicy, ShellToolCallParams, ToolCallError, ToolEvent, ToolEventBegin,
136 ToolEventFailure, ToolEventSuccess, ToolHandler, ToolInvocation, ToolKind, ToolOutput,
137 ToolPayload, ToolSession, ToolSpec, TurnContext,
138};
139
140pub use tool_handler::FileChange as LegacyFileChange;