pub struct ClaudeCodeAdapter;Expand description
Claude Code integration.
Implementations§
Source§impl ClaudeCodeAdapter
impl ClaudeCodeAdapter
Sourcepub fn stop_hook_entry() -> Value
pub fn stop_hook_entry() -> Value
Public for tests: build the Stop hook object inserted into settings.json.
Sourcepub fn session_start_hook_entry() -> Value
pub fn session_start_hook_entry() -> Value
Public for tests: build the SessionStart hook object that flips the
deployed variant according to the running experiment’s traffic share.
Sourcepub fn render_managed_section(config: &AgentConfig) -> String
pub fn render_managed_section(config: &AgentConfig) -> String
Render a config into the markdown snippet that goes inside the managed section of CLAUDE.md.
Trait Implementations§
Source§impl Adapter for ClaudeCodeAdapter
impl Adapter for ClaudeCodeAdapter
Source§fn detect(&self, root: &Path) -> AdapterDetection
fn detect(&self, root: &Path) -> AdapterDetection
Detect whether the tool is in use at
root (or in the user’s home).Source§fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
_config: &'life2 AgentConfig,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn install<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
_config: &'life2 AgentConfig,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Install hooks/config so the tool reports sessions back to Evolve. Idempotent.
Source§fn apply_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
config: &'life2 AgentConfig,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn apply_config<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
root: &'life1 Path,
config: &'life2 AgentConfig,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Write the given config into the tool’s files (inside managed-section markers).
Source§fn parse_session<'life0, 'async_trait>(
&'life0 self,
log: SessionLog,
) -> Pin<Box<dyn Future<Output = Result<Vec<ParsedSignal>, AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn parse_session<'life0, 'async_trait>(
&'life0 self,
log: SessionLog,
) -> Pin<Box<dyn Future<Output = Result<Vec<ParsedSignal>, AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Parse a session log into fitness signals.
Source§fn forget<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn forget<'life0, 'life1, 'async_trait>(
&'life0 self,
root: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), AdapterError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove everything this adapter installed, restoring the pre-evolve state.
Source§impl Clone for ClaudeCodeAdapter
impl Clone for ClaudeCodeAdapter
Source§fn clone(&self) -> ClaudeCodeAdapter
fn clone(&self) -> ClaudeCodeAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClaudeCodeAdapter
impl Debug for ClaudeCodeAdapter
Source§impl Default for ClaudeCodeAdapter
impl Default for ClaudeCodeAdapter
Source§fn default() -> ClaudeCodeAdapter
fn default() -> ClaudeCodeAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClaudeCodeAdapter
impl RefUnwindSafe for ClaudeCodeAdapter
impl Send for ClaudeCodeAdapter
impl Sync for ClaudeCodeAdapter
impl Unpin for ClaudeCodeAdapter
impl UnsafeUnpin for ClaudeCodeAdapter
impl UnwindSafe for ClaudeCodeAdapter
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