pub struct WorkspaceProcessRunnerFactory { /* private fields */ }Expand description
Builds a workspace runner from an approved permission request.
Filesystem access stays governed by the configured path rules and the session-scoped capabilities already approved by the runtime. Approved ordinary path and host-integration requests are retained for later actions in the same session. Network requests and paths marked for review stay action-scoped.
Implementations§
Source§impl WorkspaceProcessRunnerFactory
impl WorkspaceProcessRunnerFactory
Sourcepub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
pub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
Creates a workspace-sandbox runner factory rooted at a workspace path.
Sourcepub fn read_only_workspace(self) -> Self
pub fn read_only_workspace(self) -> Self
Keeps the workspace readable and not writable for every child runner.
Sourcepub fn with_environment(self, environment: WorkspaceProcessEnvironment) -> Self
pub fn with_environment(self, environment: WorkspaceProcessEnvironment) -> Self
Sets the environment layout used by every materialized child runner.
Sourcepub fn with_path_rules(
self,
rules: impl IntoIterator<Item = PathAccessRule>,
) -> Self
pub fn with_path_rules( self, rules: impl IntoIterator<Item = PathAccessRule>, ) -> Self
Installs trusted path rules shared by each materialized runner.
Sourcepub fn with_network_requests_allowed(self, allowed: bool) -> Self
pub fn with_network_requests_allowed(self, allowed: bool) -> Self
Sets whether network capability requests can proceed to review.
Defaults to true without preauthorizing access. False rejects requests during validation and materialization, including direct runner creation.
Sourcepub fn with_session_permissions(
self,
permissions: ProcessSessionPermissions,
) -> SessionPermissionedProcessRunnerFactory<Self>
pub fn with_session_permissions( self, permissions: ProcessSessionPermissions, ) -> SessionPermissionedProcessRunnerFactory<Self>
Attaches a read-only capability view and returns the runtime-owned retention decorator. Configure backend-specific options before attaching it.