Skip to main content

ClaudeAdapter

Struct ClaudeAdapter 

Source
pub struct ClaudeAdapter;
Expand description

Public unit-struct adapter for claude. Held as &'static CLAUDE_ADAPTER in the eager phf::Map registry — the value &CLAUDE_ADAPTER is a const expression so it satisfies phf_map!’s value bound directly.

Trait Implementations§

Source§

impl HarnessAdapter for ClaudeAdapter

Source§

fn name(&self) -> &'static str

Lowercase identifier — claude, codex, opencode, … — used as the dispatch key and as the harness label in log lines.
Source§

fn session_root(&self) -> PathBuf

Per-harness session-store root. Today this is a fixed path resolved against the user’s home directory; future iterations may thread BurnConfig through so the root is configurable.
Source§

fn plan<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 PlanCtx, ) -> Pin<Box<dyn Future<Output = Result<SpawnPlan>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Compute the spawn plan. Inject session ids or transport-level args here. Populate SpawnPlan::session_id when known so before_spawn / after_exit can stamp eagerly.
Source§

fn before_spawn<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 PlanCtx, plan: &'life2 SpawnPlan, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Pre-spawn side effects. Stamp now if the session id is in plan, otherwise drop a pending-stamp manifest the post-spawn ingest can resolve. Default impl is a no-op so simple adapters don’t have to spell it out.
Source§

fn after_exit<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, ctx: &'life1 PlanCtx, plan: &'life2 SpawnPlan, ) -> Pin<Box<dyn Future<Output = Result<IngestReport>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Final ingest pass after the child exits. Returns an IngestReport the driver folds into its summary line.
Source§

fn start_watcher( &self, _ctx: &PlanCtx, _on_report: ReportSink, ) -> Option<WatchController>

Optional. Return a WatchController from relayburn_sdk::start_watch_loop to drain a session store while the child runs; return None for adapters that ingest a single pre-known file at exit. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.