rto-graph 0.0.11

Provenance-tagged codebase knowledge graph store for Roteiro
Documentation
//! Provenance-tagged knowledge graph store.
//!
//! Every edge in a Roteiro graph carries a [`Provenance`] tag recording how it
//! was produced: deterministically derived from source ASTs, authored by a
//! human or agent in an ADR/blueprint, or inferred heuristically from docs and
//! other artifacts. See ADR-0001.
//!
//! The graph is a set of [`Node`]s addressed by a deterministic natural
//! [`Node::key`], connected by [`Edge`]s. Facts extracted from one source blob
//! are grouped into a [`FactSet`] and applied atomically to a [`Store`].
//!
//! @rto:0001

mod artifact;
mod cache;
mod extract;
mod git;
#[cfg(feature = "inference")]
mod infer;
mod migrations;
mod model;
mod provenance;
mod query;
mod store;
mod sync;

pub use artifact::{ARTIFACT_SCHEMA, GraphArtifact};
pub use cache::{CacheError, ObjectCache};
pub use extract::{Extractor, FileNodeExtractor, Registry, RustExtractor};
pub use git::{BlobRef, GitError, Repo};
#[cfg(feature = "inference")]
pub use infer::{InferenceConfig, embed, infer_edges, similarity};
pub use model::{Direction, Edge, EdgeKind, FactSet, Node, NodeKind, Span};
pub use provenance::Provenance;
pub use query::{
    EdgeRef, Explanation, Listing, NodeSummary, Path, PathHop, SCHEMA, explain, list_kind, path,
};
pub use store::{Store, StoreError};
pub use sync::{SyncError, SyncReport, sync, sync_worktree};