pub struct AiderAdapter;Expand description
Aider integration.
Implementations§
Source§impl AiderAdapter
impl AiderAdapter
Sourcepub fn render_managed_section(config: &AgentConfig) -> String
pub fn render_managed_section(config: &AgentConfig) -> String
Render a config as the YAML commentary that goes inside the managed section.
Trait Implementations§
Source§impl Adapter for AiderAdapter
impl Adapter for AiderAdapter
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 AiderAdapter
impl Clone for AiderAdapter
Source§fn clone(&self) -> AiderAdapter
fn clone(&self) -> AiderAdapter
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 AiderAdapter
impl Debug for AiderAdapter
Source§impl Default for AiderAdapter
impl Default for AiderAdapter
Source§fn default() -> AiderAdapter
fn default() -> AiderAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AiderAdapter
impl RefUnwindSafe for AiderAdapter
impl Send for AiderAdapter
impl Sync for AiderAdapter
impl Unpin for AiderAdapter
impl UnsafeUnpin for AiderAdapter
impl UnwindSafe for AiderAdapter
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