pub struct CursorAdapter;Expand description
Cursor integration.
Implementations§
Source§impl CursorAdapter
impl CursorAdapter
Sourcepub fn render_managed_section(config: &AgentConfig) -> String
pub fn render_managed_section(config: &AgentConfig) -> String
Render a config into the plain-text snippet for .cursorrules.
Trait Implementations§
Source§impl Adapter for CursorAdapter
impl Adapter for CursorAdapter
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 CursorAdapter
impl Clone for CursorAdapter
Source§fn clone(&self) -> CursorAdapter
fn clone(&self) -> CursorAdapter
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 CursorAdapter
impl Debug for CursorAdapter
Source§impl Default for CursorAdapter
impl Default for CursorAdapter
Source§fn default() -> CursorAdapter
fn default() -> CursorAdapter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CursorAdapter
impl RefUnwindSafe for CursorAdapter
impl Send for CursorAdapter
impl Sync for CursorAdapter
impl Unpin for CursorAdapter
impl UnsafeUnpin for CursorAdapter
impl UnwindSafe for CursorAdapter
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