pub struct Opencode;Trait Implementations§
Source§impl Harness for Opencode
impl Harness for Opencode
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 subagents, through opencode’s CLI (read-only, as borg assimilate reads it), and
only where opencode keeps data under home ($XDG_DATA_HOME/opencode, else
home/.local/share/opencode). Every session: 1.x only (2.x has no query that lists them).
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 Opencode
impl RefUnwindSafe for Opencode
impl Send for Opencode
impl Sync for Opencode
impl Unpin for Opencode
impl UnsafeUnpin for Opencode
impl UnwindSafe for Opencode
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