pub struct CursorAgentAdapter {
pub inbox_dir: Option<PathBuf>,
}Expand description
Cursor CLI: the session’s own stop hook (m4a-inbox drain --format cursor-stop) returns followup_message, which Cursor auto-submits as
the next user turn. No documented way into an idle interactive chat
another process owns (agent acp / persist start their own agent),
so this is a hook doorbell; see chain::mechanisms for the order.
Fields§
§inbox_dir: Option<PathBuf>M4A_INBOX_DIR.
Trait Implementations§
Source§impl WakeAdapter for CursorAgentAdapter
impl WakeAdapter for CursorAgentAdapter
Source§fn kind(&self) -> SessionKind
fn kind(&self) -> SessionKind
Session kind this adapter wakes.
Source§fn probe(&self, session: &ProviderSession) -> Result<(), WakeError>
fn probe(&self, session: &ProviderSession) -> Result<(), WakeError>
Cheap readiness check (socket exists, server configured, routine
key present). Called before register and on every full drive.
Source§fn wake(
&mut self,
session: &ProviderSession,
letter: &WakeLetter<'_>,
) -> Result<WakeOutcome, WakeError>
fn wake( &mut self, session: &ProviderSession, letter: &WakeLetter<'_>, ) -> Result<WakeOutcome, WakeError>
Puts one letter in front of the session.
Auto Trait Implementations§
impl Freeze for CursorAgentAdapter
impl RefUnwindSafe for CursorAgentAdapter
impl Send for CursorAgentAdapter
impl Sync for CursorAgentAdapter
impl Unpin for CursorAgentAdapter
impl UnsafeUnpin for CursorAgentAdapter
impl UnwindSafe for CursorAgentAdapter
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