pub struct ClaudeAdapter;Trait Implementations§
Source§impl VersionAdapter for ClaudeAdapter
impl VersionAdapter for ClaudeAdapter
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 ClaudeAdapter
impl RefUnwindSafe for ClaudeAdapter
impl Send for ClaudeAdapter
impl Sync for ClaudeAdapter
impl Unpin for ClaudeAdapter
impl UnsafeUnpin for ClaudeAdapter
impl UnwindSafe for ClaudeAdapter
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