rto-graph 0.0.12

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 codegraph;
mod extract;
mod git;
#[cfg(feature = "inference")]
mod infer;
#[cfg(feature = "inference-local-models")]
mod localmodel;
mod markers;
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 codegraph::{ORACLE_SCHEMA, OracleError, OracleReport, compare as compare_codegraph};
pub use extract::{Extractor, FileNodeExtractor, Registry, RustExtractor};
pub use git::{BlobRef, GitError, Repo};
#[cfg(feature = "inference")]
pub use infer::{
    EMBED_REF, Embedder, HashEmbedder, InferenceConfig, embed, infer_edges, infer_edges_with,
    similarity,
};
#[cfg(feature = "inference-local-models")]
pub use localmodel::{
    LocalEmbedder, LocalModelError, ModelFile, ModelSpec, ModelVariant, Platform, REGISTRY,
    ensure_model_dir, find as find_model, is_installed, model_dir, sha256_hex, store_root,
    verify_sha256,
};
pub use model::{Direction, Edge, EdgeKind, FactSet, Node, NodeKind, Span};
pub use provenance::Provenance;
pub use query::{
    DebtItem, DebtReport, EdgeRef, Explanation, Listing, NodeSummary, Path, PathHop, SCHEMA, debt,
    explain, list_kind, path,
};
pub use store::{ImportApplied, Store, StoreError};
pub use sync::{SyncError, SyncReport, sync, sync_worktree};