pub struct CodeGraphProvider { /* private fields */ }Expand description
Production local-intelligence provider using public CodeGraph MCP and CLI interfaces.
Implementations§
Source§impl CodeGraphProvider
impl CodeGraphProvider
Sourcepub fn new(config: CodeGraphConfig) -> Result<Self, ProviderError>
pub fn new(config: CodeGraphConfig) -> Result<Self, ProviderError>
Builds a production adapter without starting or modifying any CodeGraph index.
§Errors
Returns ProviderError::InvalidRequest when child-process concurrency is zero.
Trait Implementations§
Source§impl LocalCodeIntelligenceProvider for CodeGraphProvider
impl LocalCodeIntelligenceProvider for CodeGraphProvider
Source§fn provider_name(&self) -> &'static str
fn provider_name(&self) -> &'static str
Returns the stable provider name.
Source§fn probe<'life0, 'async_trait>(
&'life0 self,
request: ProviderRequest,
) -> Pin<Box<dyn Future<Output = Result<ProviderCapability, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn probe<'life0, 'async_trait>(
&'life0 self,
request: ProviderRequest,
) -> Pin<Box<dyn Future<Output = Result<ProviderCapability, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Discovers public capabilities for one repository without creating or modifying indexes. Read more
Source§fn resolve_symbols<'life0, 'async_trait>(
&'life0 self,
input: ResolveSymbolsRequest,
) -> Pin<Box<dyn Future<Output = Result<ResolveSymbolsResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve_symbols<'life0, 'async_trait>(
&'life0 self,
input: ResolveSymbolsRequest,
) -> Pin<Box<dyn Future<Output = Result<ResolveSymbolsResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resolves a textual anchor to bounded exact local symbols. Read more
Source§fn get_local_neighbors<'life0, 'async_trait>(
&'life0 self,
input: LocalNeighborsRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalNeighborResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_local_neighbors<'life0, 'async_trait>(
&'life0 self,
input: LocalNeighborsRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalNeighborResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns bounded callers or callees for one local symbol. Read more
Source§fn get_local_impact<'life0, 'async_trait>(
&'life0 self,
input: LocalImpactRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalImpactResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_local_impact<'life0, 'async_trait>(
&'life0 self,
input: LocalImpactRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalImpactResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns bounded local impact for one symbol. Read more
Source§fn build_local_context<'life0, 'async_trait>(
&'life0 self,
input: LocalContextRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalContextResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build_local_context<'life0, 'async_trait>(
&'life0 self,
input: LocalContextRequest,
) -> Pin<Box<dyn Future<Output = Result<LocalContextResult, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Builds ephemeral local source and flow context. Read more
Source§fn get_affected_tests<'life0, 'async_trait>(
&'life0 self,
input: AffectedTestsRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<AffectedTestsResult>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_affected_tests<'life0, 'async_trait>(
&'life0 self,
input: AffectedTestsRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<AffectedTestsResult>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns bounded tests affected by changed files when supported. Read more
Auto Trait Implementations§
impl !Freeze for CodeGraphProvider
impl !RefUnwindSafe for CodeGraphProvider
impl Send for CodeGraphProvider
impl Sync for CodeGraphProvider
impl Unpin for CodeGraphProvider
impl UnsafeUnpin for CodeGraphProvider
impl UnwindSafe for CodeGraphProvider
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