pub struct PermissionPathsConfig {
pub additional_directories: Option<Vec<String>>,
pub include_temp_directory: Option<bool>,
pub unrestricted: Option<bool>,
pub workspace_path: Option<String>,
}Expand description
If specified, replaces the session’s path-permission policy. The runtime constructs the appropriate PathManager based on these inputs (rooted at the session’s working directory). Omit to leave the current path policy unchanged.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§additional_directories: Option<Vec<String>>Additional directories to allow tool access to (in addition to the session’s working directory). When unrestricted is true, these are still pre-populated on the UnrestrictedPathManager so they remain visible via getDirectories() (e.g. for @-mention completion).
include_temp_directory: Option<bool>Whether to include the system temp directory in the allowed list (defaults to true). Ignored when unrestricted is true.
unrestricted: Option<bool>If true, the runtime allows access to all paths without prompting. Equivalent to constructing an UnrestrictedPathManager.
workspace_path: Option<String>Workspace root path (special-cased to be allowed even before the directory exists). Ignored when unrestricted is true.
Trait Implementations§
Source§impl Clone for PermissionPathsConfig
impl Clone for PermissionPathsConfig
Source§fn clone(&self) -> PermissionPathsConfig
fn clone(&self) -> PermissionPathsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more