Skip to main content

OpenCodeAdapter

Struct OpenCodeAdapter 

Source
pub struct OpenCodeAdapter;

Implementations§

Source§

impl OpenCodeAdapter

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl ToolAdapter for OpenCodeAdapter

Source§

fn name(&self) -> &str

Internal identifier (e.g. “claude”, “cursor”).
Source§

fn display_name(&self) -> &str

Human-readable display name (e.g. “Claude Code”, “Cursor”).
Source§

fn is_installed(&self) -> bool

Check if this tool is installed on the system.
Source§

fn hooks_registered(&self) -> bool

Check if agent-hand hooks are registered in this tool’s config.
Source§

fn register_hooks(&self, bridge_script: &Path) -> Result<()>

Register agent-hand hooks into this tool’s config. Read more
Source§

fn unregister_hooks(&self) -> Result<()>

Remove agent-hand hooks from this tool’s config.
Source§

fn config_path(&self) -> Option<PathBuf>

Path to this tool’s configuration file (for display purposes).
Source§

fn supported_events(&self) -> &[&str]

Event types this tool supports.
Source§

fn status(&self) -> ToolStatus

Get the current status of this tool.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.