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_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.
Defaults to true, which still requires approval for each action. False rejects network requests before review. Explicit host execution is not isolated and is not restricted by this ceiling.
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 the embedding application authorizes.
The embedding application owns this decision; the backend treats the
listed integrations as part of the ordinary action baseline instead of
requiring a per-action request for them. Merry’s CLI derives the list
from user-trusted global configuration, which preauthorizes the inner
action sandbox; project-local configuration never does. Endpoint
validation and path policy still apply per action, so a deny_paths
entry can keep a listed integration masked when it is not inside a
broader grant.
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 fn network_requests_allowed(&self) -> bool
pub fn network_requests_allowed(&self) -> bool
Returns whether isolated sessions may request, not preauthorize, network access.
Sourcepub fn host_integrations(&self) -> &[HostIntegration]
pub fn host_integrations(&self) -> &[HostIntegration]
Returns host integrations already approved 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.