pub struct SandboxEnvConfig {
pub sandbox_level: u8,
pub max_memory_mb: u64,
pub timeout_secs: u64,
pub auto_approve: bool,
pub no_sandbox: bool,
pub allow_playwright: bool,
pub script_args: Option<String>,
}Expand description
沙箱环境配置:级别、资源限制、开关等
所有沙箱相关环境变量统一由此读取,兼容 SKILLLITE_* 与 SKILLBOX_*。
runner、linux、macos、windows、policy 等应通过本配置访问,不再直接使用 env_compat。
Fields§
§sandbox_level: u8沙箱级别 1/2/3,默认 3
max_memory_mb: u64最大内存 MB,默认 256
timeout_secs: u64执行超时秒数,默认 30
auto_approve: bool是否自动批准 L3 安全提示
no_sandbox: bool是否禁用沙箱(等同于 level 1)
allow_playwright: bool是否允许 Playwright(放宽沙箱)
script_args: Option<String>透传给脚本的额外参数(SKILLLITE_SCRIPT_ARGS / SKILLBOX_SCRIPT_ARGS)
Implementations§
Trait Implementations§
Source§impl Clone for SandboxEnvConfig
impl Clone for SandboxEnvConfig
Source§fn clone(&self) -> SandboxEnvConfig
fn clone(&self) -> SandboxEnvConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SandboxEnvConfig
impl RefUnwindSafe for SandboxEnvConfig
impl Send for SandboxEnvConfig
impl Sync for SandboxEnvConfig
impl Unpin for SandboxEnvConfig
impl UnsafeUnpin for SandboxEnvConfig
impl UnwindSafe for SandboxEnvConfig
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