pub struct Sim;Trait Implementations§
Source§impl Harness for Sim
impl Harness for Sim
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
The CLI argument (
borg hook <name>, borg install <name>), BORG_HARNESS and presence’s harness.fn caps(&self) -> Caps
Source§fn target(&self, home: &Path, _var: &dyn Fn(&str) -> Option<PathBuf>) -> PathBuf
fn target(&self, home: &Path, _var: &dyn Fn(&str) -> Option<PathBuf>) -> PathBuf
The config file
borg install writes, under home; var reads the harness’s own config-dir
variables (--home gives none, so nothing outside home is reached).Left out of help, completions,
all, status and doctor (the simulated harness).Source§fn normalise(&self, raw: Value) -> Value
fn normalise(&self, raw: Value) -> Value
The native hook payload as the canonical event. Default: it is one already.
Source§fn checks(&self, _target: &Path) -> Vec<(Level, String)>
fn checks(&self, _target: &Path) -> Vec<(Level, String)>
What
borg doctor checks beyond the CLI’s version line (Probe), e.g. that the harness trusts
borg’s hooks; target is the config borg install writes. Default: nothing more.Source§fn install_notes(&self) -> Vec<String>
fn install_notes(&self) -> Vec<String>
What
borg install tells the engineer to do in the harness itself (e.g. trust the new hooks).Source§fn sub_runs(
&self,
_home: &Path,
_session: Option<&str>,
_since: Option<i64>,
) -> Vec<Run>
fn sub_runs( &self, _home: &Path, _session: Option<&str>, _since: Option<i64>, ) -> Vec<Run>
The groups of sub-agents its sessions ran under
home (review_fix.rs), oldest first: of
session only (as its end hook names it), else of every session, from runs that started at
or after since (epoch ms). Default: none.Source§fn session_log(
&self,
_home: &Path,
_session: &str,
_input: &Value,
) -> Option<PathBuf>
fn session_log( &self, _home: &Path, _session: &str, _input: &Value, ) -> Option<PathBuf>
The file its own transcript of main session
session is in, which the turn-end sweep reads
(sweep.rs): under home ($HOME, its config-dir variable honoured), or as the hook’s input
names it. Default: none (opencode keeps no file borg reads; its CLI exports a session at its end).Auto Trait Implementations§
impl Freeze for Sim
impl RefUnwindSafe for Sim
impl Send for Sim
impl Sync for Sim
impl Unpin for Sim
impl UnsafeUnpin for Sim
impl UnwindSafe for Sim
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