pub struct BashConfig {Show 15 fields
pub changed_files: BashChangedFiles,
pub enabled: bool,
pub host_fallback: bool,
pub detach_on_user_message: bool,
pub db_schema_hints: bool,
pub watch_sync_max_ms: u64,
pub worker_wait_max_ms: u64,
pub linux_scope: bool,
pub linux_scope_max_runtime_secs: u64,
pub memory_limit_mib: Option<u64>,
pub disclaim_privacy: bool,
pub powershell_tool: bool,
pub env: BTreeMap<String, String>,
pub project_env: BTreeMap<String, String>,
pub runon_env: Vec<String>,
}Fields§
§changed_files: BashChangedFilesOptional watcher-based reporting after shell commands. Disabled by default.
enabled: boolRuntime gate for every bash-execution operation, including the
background companions. When false those operations report
bash_disabled; registration is decided by disabled_tools alone.
host_fallback: boolPermit plugin-side break-glass execution when its AFT transport is unavailable. Rust accepts this for cross-language config parity but never acts on it.
detach_on_user_message: boolWhether the hosting plugin detaches wait:true bash calls on user messages. Rust accepts this for cross-language config parity but never acts on it.
db_schema_hints: boolAppend read-only database CLI schema hints after missing-schema errors.
watch_sync_max_ms: u64Maximum synchronous bash_watch wait accepted by the hosting plugin.
Rust accepts this for cross-language config parity but never acts on it.
worker_wait_max_ms: u64Longest a delegated worker’s wait on one command blocks before control
returns to it; see DEFAULT_BASH_WORKER_WAIT_MAX_MS. The engine caps
a worker’s blocking bash call with it, and each wait a worker makes on a
task without its own timeout pushes that task’s default hard kill to at
least this long after the wait.
linux_scope: boolPut Linux tool shells in transient user scopes when systemd is available.
linux_scope_max_runtime_secs: u64User-only ceiling for daemon scopes, in seconds. Default: 86_400.
memory_limit_mib: Option<u64>Aggregate local-command memory ceiling in MiB; absent means unlimited.
disclaim_privacy: boolOn macOS, agent commands become responsible for their own privacy permissions. Other platforms accept the setting but do not change process creation.
powershell_tool: boolPi-only fallback gate for its optional PowerShell default tool. The Rust executor accepts this solely to keep shared config parsing in parity.
env: BTreeMap<String, String>Fixed environment entries merged into each local bash request. User
configuration supplies these, and a trusted project’s bash.env adds
more in BashConfig::project_env; replies disclose names, never
values.
project_env: BTreeMap<String, String>Validated project-tier bash.env values. The resolver never applies
them: commands/bash.rs merges them only while the project root is on
the filter trust list at the time of the call, and a name the user tier
already sets keeps the user value.
runon_env: Vec<String>User-only names whose bash.env value is also sent to a runon build
job. Every other configured name stays on this machine, and a project
value is never sent.
Implementations§
Source§impl BashConfig
impl BashConfig
Sourcepub fn configured_env(&self, project_trusted: bool) -> Vec<ConfiguredBashEnv>
pub fn configured_env(&self, project_trusted: bool) -> Vec<ConfiguredBashEnv>
The bash.env values a local command should start with, lowest tier
first, tagged with the tier that supplied them.
project_trusted is the caller’s per-command trust decision; an
untrusted project’s map is not included at all. A name both tiers set
keeps the user value: user names are often protective
(GIT_TERMINAL_PROMPT=0), and a repository should add names rather
than undo the user’s.
Sourcepub fn shadowed_project_env(&self, project_trusted: bool) -> Vec<String>
pub fn shadowed_project_env(&self, project_trusted: bool) -> Vec<String>
Project names that a user value already covers, and so do not apply.
Trait Implementations§
Source§impl Clone for BashConfig
impl Clone for BashConfig
Source§impl Debug for BashConfig
impl Debug for BashConfig
Source§impl Default for BashConfig
impl Default for BashConfig
Source§impl<'de> Deserialize<'de> for BashConfigwhere
BashConfig: Default,
impl<'de> Deserialize<'de> for BashConfigwhere
BashConfig: Default,
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>,
impl Eq for BashConfig
Source§impl PartialEq for BashConfig
impl PartialEq for BashConfig
Source§impl Serialize for BashConfig
impl Serialize for BashConfig
impl StructuralPartialEq for BashConfig
Auto Trait Implementations§
impl Forget for BashConfig
impl Freeze for BashConfig
impl Move for BashConfig
impl RefUnwindSafe for BashConfig
impl Send for BashConfig
impl Sync for BashConfig
impl Unpin for BashConfig
impl UnsafeUnpin for BashConfig
impl UnwindSafe for BashConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 more