Skip to main content

ai_agent/tools/powershell/
mod.rs

1// Source: /data/home/swei/claudecode/openclaudecode/src/tools/PowerShellTool/
2//! PowerShell tool module
3
4pub mod command_semantics;
5pub mod common_parameters;
6pub mod destructive_command_warning;
7pub mod git_safety;
8pub mod mode_validation;
9pub mod path_validation;
10pub mod powershell_security;
11pub mod powershell_tool;
12pub mod prompt;
13pub mod read_only_validation;
14pub mod tool_name;
15
16pub use command_semantics::interpret_command_result;
17pub use common_parameters::common_parameters;
18pub use destructive_command_warning::get_destructive_command_warning;
19pub use git_safety::{is_dot_git_path_ps, is_git_internal_path_ps};
20pub use mode_validation::{
21    PermissionBehavior, PermissionModeResult, check_permission_mode, is_symlink_creating_command,
22};
23pub use path_validation::{
24    check_path_constraints, dangerous_removal_deny, get_cmdlet_path_config,
25    is_dangerous_removal_path,
26};
27pub use powershell_security::{
28    PowerShellSecurityResult, SecurityBehavior, powershell_command_is_safe,
29};
30pub use powershell_tool::PowerShellTool;
31pub use prompt::{get_default_timeout_ms, get_max_timeout_ms};
32pub use read_only_validation::{
33    has_sync_security_concerns, is_cwd_changing_cmdlet, is_external_command_safe,
34    is_read_only_command, resolve_to_canonical,
35};
36pub use tool_name::POWERSHELL_TOOL_NAME;