pub struct OpsContext {
pub config: Config,
}Expand description
The main operations context.
Holds configuration and provides methods for all vibe-graph operations. Thread-safe and can be shared across async tasks.
Fields§
§config: ConfigConfiguration for operations.
Implementations§
Source§impl OpsContext
impl OpsContext
Sourcepub fn default_config() -> OpsResult<Self>
pub fn default_config() -> OpsResult<Self>
Create a new OpsContext with default configuration.
Sourcepub async fn sync(&self, request: SyncRequest) -> OpsResult<SyncResponse>
pub async fn sync(&self, request: SyncRequest) -> OpsResult<SyncResponse>
Sync a codebase (local or remote).
This is the main entry point for syncing. It detects the source type and dispatches to the appropriate handler.
Sourcepub async fn graph(&self, request: GraphRequest) -> OpsResult<GraphResponse>
pub async fn graph(&self, request: GraphRequest) -> OpsResult<GraphResponse>
Build or load a source code graph.
Sourcepub fn build_source_graph(
&self,
project: &Project,
) -> OpsResult<SourceCodeGraph>
pub fn build_source_graph( &self, project: &Project, ) -> OpsResult<SourceCodeGraph>
Build a SourceCodeGraph from a Project.
Sourcepub async fn status(&self, request: StatusRequest) -> OpsResult<StatusResponse>
pub async fn status(&self, request: StatusRequest) -> OpsResult<StatusResponse>
Get workspace status.
Sourcepub async fn load(&self, request: LoadRequest) -> OpsResult<LoadResponse>
pub async fn load(&self, request: LoadRequest) -> OpsResult<LoadResponse>
Load a project from .self store.
Sourcepub async fn clean(&self, request: CleanRequest) -> OpsResult<CleanResponse>
pub async fn clean(&self, request: CleanRequest) -> OpsResult<CleanResponse>
Clean the .self folder.
Sourcepub async fn git_changes(
&self,
request: GitChangesRequest,
) -> OpsResult<GitChangesResponse>
pub async fn git_changes( &self, request: GitChangesRequest, ) -> OpsResult<GitChangesResponse>
Get git changes for a workspace.
Trait Implementations§
Source§impl Clone for OpsContext
impl Clone for OpsContext
Source§fn clone(&self) -> OpsContext
fn clone(&self) -> OpsContext
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 moreAuto Trait Implementations§
impl Freeze for OpsContext
impl RefUnwindSafe for OpsContext
impl Send for OpsContext
impl Sync for OpsContext
impl Unpin for OpsContext
impl UnsafeUnpin for OpsContext
impl UnwindSafe for OpsContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more