pub struct OpenCodeAdapter { /* private fields */ }Expand description
The OpenCode adapter. See the module notes for the store it reads.
Trait Implementations§
Source§impl Default for OpenCodeAdapter
impl Default for OpenCodeAdapter
Source§fn default() -> OpenCodeAdapter
fn default() -> OpenCodeAdapter
Returns the “default value” for a type. Read more
Source§impl HarnessAdapter for OpenCodeAdapter
impl HarnessAdapter for OpenCodeAdapter
Source§fn attribute(
&self,
_root: &ProcNode,
_raw: Option<&RawProc>,
ctx: &AttributeContext<'_>,
) -> (Vec<PathBuf>, Attribution)
fn attribute( &self, _root: &ProcNode, _raw: Option<&RawProc>, ctx: &AttributeContext<'_>, ) -> (Vec<PathBuf>, Attribution)
One process runs one conversation, in the directory it was started in. The newest top-level session in that directory that started before the process, and that no other process has claimed, is the row.
Source§fn detect(&self, _path: &Path) -> bool
fn detect(&self, _path: &Path) -> bool
OpenCode keeps no per-session file, so nothing on disk is detected as
OpenCode; a session is reached through transcripts by its id.
fn harness(&self) -> Harness
Source§fn rescan(&mut self, since: SystemTime)
fn rescan(&mut self, since: SystemTime)
Re-list the transcripts written since
since. Called every
fs_scan_interval, not every tick.Source§fn hints(&self, _pid: u32) -> Option<RegistryHints>
fn hints(&self, _pid: u32) -> Option<RegistryHints>
The harness’s own registry entry for a process, if it keeps one.
Source§fn unowned(&self, attached: &HashSet<PathBuf>) -> Vec<PathBuf>
fn unowned(&self, attached: &HashSet<PathBuf>) -> Vec<PathBuf>
Recently written transcripts no process owns: the stopped list.
Source§fn open(&self, path: &Path, spans: SpanRetention) -> Box<dyn SessionTracker>
fn open(&self, path: &Path, spans: SpanRetention) -> Box<dyn SessionTracker>
A tracker for one transcript.
Source§fn transcripts(&self) -> Vec<(String, PathBuf)>
fn transcripts(&self) -> Vec<(String, PathBuf)>
Every transcript on disk, however old, with the id a user would type
to name it. For
agent-top trace --session <id>.Source§fn prepare(&mut self, _roots: &[&ProcNode])
fn prepare(&mut self, _roots: &[&ProcNode])
Called once per pass with this harness’s root processes, before any
of them is attributed. For work that must see every process at once:
Codex reads which rollouts each process holds open here, so that no
process’s fallback can claim a thread another is demonstrably writing.
Auto Trait Implementations§
impl Freeze for OpenCodeAdapter
impl RefUnwindSafe for OpenCodeAdapter
impl Send for OpenCodeAdapter
impl Sync for OpenCodeAdapter
impl Unpin for OpenCodeAdapter
impl UnsafeUnpin for OpenCodeAdapter
impl UnwindSafe for OpenCodeAdapter
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