pub struct PiJsRuntimeConfig {
pub cwd: String,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub limits: PiJsRuntimeLimits,
pub repair_mode: RepairMode,
pub allow_unsafe_sync_exec: bool,
pub deny_env: bool,
pub disk_cache_dir: Option<PathBuf>,
}Fields§
§cwd: String§args: Vec<String>§env: HashMap<String, String>§limits: PiJsRuntimeLimits§repair_mode: RepairModeControls the auto-repair pipeline behavior. Default: AutoSafe.
allow_unsafe_sync_exec: boolUNSAFE escape hatch: enable synchronous process execution used by
node:child_process sync APIs (execSync/spawnSync/execFileSync).
Security default is false so extensions cannot bypass capability/risk
mediation through direct synchronous subprocess execution.
deny_env: boolExplicitly deny environment variable access regardless of is_env_var_allowed blocklist.
Used to enforce ExtensionPolicy with deny_caps=[\"env\"] for synchronous pi.env access.
disk_cache_dir: Option<PathBuf>Directory for persistent transpiled-source disk cache.
When set, transpiled module sources are cached on disk keyed by a
content-aware hash so that SWC transpilation is skipped across process
restarts. Defaults to ~/.pi/agent/cache/modules/ (overridden by
PIJS_MODULE_CACHE_DIR). Set to None to disable.
Implementations§
Source§impl PiJsRuntimeConfig
impl PiJsRuntimeConfig
Sourcepub const fn auto_repair_enabled(&self) -> bool
pub const fn auto_repair_enabled(&self) -> bool
Convenience: check if repairs should be applied.
Trait Implementations§
Source§impl Clone for PiJsRuntimeConfig
impl Clone for PiJsRuntimeConfig
Source§fn clone(&self) -> PiJsRuntimeConfig
fn clone(&self) -> PiJsRuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PiJsRuntimeConfig
impl Debug for PiJsRuntimeConfig
Auto Trait Implementations§
impl Freeze for PiJsRuntimeConfig
impl RefUnwindSafe for PiJsRuntimeConfig
impl Send for PiJsRuntimeConfig
impl Sync for PiJsRuntimeConfig
impl Unpin for PiJsRuntimeConfig
impl UnsafeUnpin for PiJsRuntimeConfig
impl UnwindSafe for PiJsRuntimeConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().