pub struct WorkspaceConfig {
pub root: String,
pub env_allowlist: Vec<String>,
pub protected_paths: Vec<String>,
pub sandbox: bool,
pub sandbox_read_paths: Vec<String>,
}Expand description
Workspace configuration for agent home directories.
When configured, each agent gets a persistent home directory where it can freely create and organize files. File tools resolve relative paths against this directory.
Fields§
§root: StringWorkspace root directory. All agents share this single directory.
Defaults to ~/.heartbit/workspaces if not specified.
env_allowlist: Vec<String>Environment variable allowlist for bash subprocesses.
Empty = use DAEMON_ENV_ALLOWLIST defaults.
protected_paths: Vec<String>Additional file path patterns to deny (e.g., *.pem, secrets/).
sandbox: boolEnable Landlock filesystem sandbox (Linux only, requires sandbox feature).
sandbox_read_paths: Vec<String>Additional paths the sandbox should allow reading (beyond system defaults).
Trait Implementations§
Source§impl Debug for WorkspaceConfig
impl Debug for WorkspaceConfig
Source§impl<'de> Deserialize<'de> for WorkspaceConfig
impl<'de> Deserialize<'de> for WorkspaceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkspaceConfig
impl RefUnwindSafe for WorkspaceConfig
impl Send for WorkspaceConfig
impl Sync for WorkspaceConfig
impl Unpin for WorkspaceConfig
impl UnsafeUnpin for WorkspaceConfig
impl UnwindSafe for WorkspaceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more