pub struct ProcessBackendOptions { /* private fields */ }Expand description
Inputs shared by local process backend implementations.
Implementations§
Source§impl ProcessBackendOptions
impl ProcessBackendOptions
Sourcepub fn with_path_rules(
self,
path_rules: impl IntoIterator<Item = PathAccessRule>,
) -> Self
pub fn with_path_rules( self, path_rules: impl IntoIterator<Item = PathAccessRule>, ) -> Self
Sets trusted filesystem rules installed for isolated actions.
Sourcepub fn extend_path_rules(
self,
path_rules: impl IntoIterator<Item = PathAccessRule>,
) -> Self
pub fn extend_path_rules( self, path_rules: impl IntoIterator<Item = PathAccessRule>, ) -> Self
Appends filesystem rules installed for isolated actions.
Sourcepub fn with_default_development_baseline(self, home: &Path) -> Self
pub fn with_default_development_baseline(self, home: &Path) -> Self
Appends the default local development toolchain and cache baseline rules.
Sourcepub fn with_host_path_policy(self, policy: &HostPathPolicy) -> Self
pub fn with_host_path_policy(self, policy: &HostPathPolicy) -> Self
Appends Merry’s product path rules from the shared HostPathPolicy
contract (writable config/skills, writable durable memory, read-only
state/history, and denied private credentials).
Sourcepub fn with_network_policy(self, policy: CapabilityPolicy) -> Self
pub fn with_network_policy(self, policy: CapabilityPolicy) -> Self
Sets the three-state network policy (deny, ask, or allow).
Sourcepub fn with_allowed_domains<I, S>(self, domains: I) -> Self
pub fn with_allowed_domains<I, S>(self, domains: I) -> Self
Sets workspace-persisted exact allowed domains for web/browser tools.
Sourcepub fn with_browser_allow_local(self, allow_local: bool) -> Self
pub fn with_browser_allow_local(self, allow_local: bool) -> Self
Sets whether explicit local browser targets (localhost, 127.0.0.1,
::1, data:text/html) are permitted without permission review.
Sourcepub fn with_network_requests_allowed(self, allowed: bool) -> Self
pub fn with_network_requests_allowed(self, allowed: bool) -> Self
Sets whether isolated process sessions may request network capability.
true maps to CapabilityPolicy::Ask; false maps to
CapabilityPolicy::Deny. Use Self::with_network_policy to
pre-authorize network via CapabilityPolicy::Allow.
Sourcepub fn read_only_workspace(self) -> Self
pub fn read_only_workspace(self) -> Self
Keeps the workspace readable and not writable for isolated actions.
Baseline paths such as /tmp stay writable. Host execution ignores this.
Sourcepub fn with_host_integrations(
self,
host_integrations: impl IntoIterator<Item = HostIntegration>,
) -> Self
pub fn with_host_integrations( self, host_integrations: impl IntoIterator<Item = HostIntegration>, ) -> Self
Sets host integrations pre-authorized (allow) by the embedding application.
Sourcepub fn with_denied_host_integrations(
self,
denied: impl IntoIterator<Item = HostIntegration>,
) -> Self
pub fn with_denied_host_integrations( self, denied: impl IntoIterator<Item = HostIntegration>, ) -> Self
Sets host integrations hard-denied (deny) by the embedding application.
Sourcepub fn with_host_integration_policy(
self,
integration: HostIntegration,
policy: CapabilityPolicy,
) -> Self
pub fn with_host_integration_policy( self, integration: HostIntegration, policy: CapabilityPolicy, ) -> Self
Sets the three-state policy for one host integration (deny, ask, allow).
Sourcepub fn with_gpg_agent_sockets(self, sockets: GpgAgentSockets) -> Self
pub fn with_gpg_agent_sockets(self, sockets: GpgAgentSockets) -> Self
Installs explicitly discovered native and auxiliary GnuPG socket paths.
Sourcepub fn with_environment_overrides(
self,
environment_overrides: impl IntoIterator<Item = (OsString, OsString)>,
) -> Self
pub fn with_environment_overrides( self, environment_overrides: impl IntoIterator<Item = (OsString, OsString)>, ) -> Self
Sets environment assignments that the backend validates before applying.
Sourcepub fn with_env_isolation(self, env_isolation: ProcessEnvIsolation) -> Self
pub fn with_env_isolation(self, env_isolation: ProcessEnvIsolation) -> Self
Replaces the environment-variable isolation policy enforced across both isolated and host process runners.
Sourcepub fn path_rules(&self) -> &[PathAccessRule]
pub fn path_rules(&self) -> &[PathAccessRule]
Returns the trusted filesystem rules installed for isolated actions.
Sourcepub const fn network_policy(&self) -> CapabilityPolicy
pub const fn network_policy(&self) -> CapabilityPolicy
Returns the configured three-state network policy.
Sourcepub fn allowed_domains(&self) -> &[String]
pub fn allowed_domains(&self) -> &[String]
Returns workspace-persisted allowed domains for web/browser tools.
Sourcepub const fn browser_allow_local(&self) -> bool
pub const fn browser_allow_local(&self) -> bool
Returns whether local browser targets are allowed without review.
Sourcepub const fn network_requests_allowed(&self) -> bool
pub const fn network_requests_allowed(&self) -> bool
Returns whether isolated sessions allow network requests (ask or allow).
Sourcepub fn host_integrations(&self) -> &[HostIntegration]
pub fn host_integrations(&self) -> &[HostIntegration]
Returns host integrations already approved by the embedding application.
Sourcepub fn denied_host_integrations(&self) -> &[HostIntegration]
pub fn denied_host_integrations(&self) -> &[HostIntegration]
Returns host integrations hard-denied by the embedding application.
Sourcepub fn environment_overrides(&self) -> &[(OsString, OsString)]
pub fn environment_overrides(&self) -> &[(OsString, OsString)]
Returns the validated environment assignments applied by the backend.