pub struct Omp;Trait Implementations§
Source§impl Harness for Omp
impl Harness for Omp
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>
Each session’s task agents ($PI_CODING_AGENT_DIR/sessions, else home/.omp/agent/sessions).
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>
<sessions>/<slug>/<ts>_<session>.jsonl (session_file).
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 budgets(&self) -> Option<Budgets>
fn budgets(&self) -> Option<Budgets>
What its adapter waits for each answer (
Budgets); None where the harness runs borg’s hooks
itself, under the timeout borg installs or its own default (Claude Code, Codex). Default: None.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).Auto Trait Implementations§
impl Freeze for Omp
impl RefUnwindSafe for Omp
impl Send for Omp
impl Sync for Omp
impl Unpin for Omp
impl UnsafeUnpin for Omp
impl UnwindSafe for Omp
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