pub struct CodexAdapter;Trait Implementations§
Source§impl VersionAdapter for CodexAdapter
impl VersionAdapter for CodexAdapter
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Logical name of the executor (e.g. “codex”, “claude”, “opencode”).
Source§fn detect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ExecutorVersion, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn detect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ExecutorVersion, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Detect the version by invoking
<executor> --version and parsing the output.Source§fn capabilities_for(&self, version: &ExecutorVersion) -> ExecutorCapabilities
fn capabilities_for(&self, version: &ExecutorVersion) -> ExecutorCapabilities
Returns the capability matrix for the given version.
Source§fn build_args(
&self,
prompt: &str,
caps: &ExecutorCapabilities,
_compat_mode: CompatMode,
) -> Vec<String>
fn build_args( &self, prompt: &str, caps: &ExecutorCapabilities, _compat_mode: CompatMode, ) -> Vec<String>
Build the CLI invocation arguments for a given prompt and capabilities.
Source§fn parse_output(
&self,
raw_stdout: &str,
raw_stderr: &str,
exit_code: i32,
) -> ParsedOutput
fn parse_output( &self, raw_stdout: &str, raw_stderr: &str, exit_code: i32, ) -> ParsedOutput
Parses the executor output into structured items.
Auto Trait Implementations§
impl Freeze for CodexAdapter
impl RefUnwindSafe for CodexAdapter
impl Send for CodexAdapter
impl Sync for CodexAdapter
impl Unpin for CodexAdapter
impl UnsafeUnpin for CodexAdapter
impl UnwindSafe for CodexAdapter
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more