pub struct Codex;Trait Implementations§
Source§impl Harness for Codex
impl Harness for Codex
Source§fn normalise(&self, raw: Value) -> Value
fn normalise(&self, raw: Value) -> Value
apply_patch becomes a canonical Edit (see patch_edit); the rollout path is dropped.
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 spawned agents (spawn_runs) under $CODEX_HOME/sessions, else
home/.codex/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>
The thread’s rollout (rollout_of; the session id is the thread id).
Source§fn checks(&self, target: &Path) -> Vec<(Level, String)>
fn checks(&self, target: &Path) -> Vec<(Level, String)>
Which of borg’s hooks Codex does not trust, as Codex itself reports it. Only once borg’s hooks are
wired; doctor asks only when codex is installed and answers --version. A failed call is a note,
never a failure.
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).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).Left out of help, completions,
all, status and doctor (the simulated harness).Auto Trait Implementations§
impl Freeze for Codex
impl RefUnwindSafe for Codex
impl Send for Codex
impl Sync for Codex
impl Unpin for Codex
impl UnsafeUnpin for Codex
impl UnwindSafe for Codex
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