Skip to main content

Crate repograph_core

Crate repograph_core 

Source
Expand description

Core domain library for repograph.

Owns the Config model, error type, and git2 adapters. No clap, no terminal I/O — the binary crate (and a future MCP server) depend on this crate to keep their concerns separate.

Re-exports§

pub use agent_artifact::ARTIFACT_BODY_VERSION;
pub use agent_artifact::ArtifactResult;
pub use agent_artifact::BODY as AGENT_ARTIFACT_BODY;
pub use agent_artifact::Capability;
pub use agent_artifact::DELIMITER_BEGIN;
pub use agent_artifact::DELIMITER_BEGIN_PREFIX;
pub use agent_artifact::DELIMITER_END;
pub use agent_artifact::REASON_COPILOT_DEFERRED;
pub use agent_artifact::SETUP_BODY as AGENT_ARTIFACT_SETUP_BODY;
pub use agent_artifact::SETUP_SUMMARY as AGENT_ARTIFACT_SETUP_SUMMARY;
pub use agent_artifact::SUMMARY as AGENT_ARTIFACT_SUMMARY;
pub use agent_artifact::capabilities_for;
pub use agent_artifact::has_artifact_writer;
pub use agent_artifact::install_artifacts;
pub use agent_artifact::install_one;
pub use agent_artifact::installed_version;
pub use agent_artifact::render_artifact;
pub use agent_artifact::resolve_path;
pub use agent_artifact::scope_is_meaningful;
pub use agents::AgentId;
pub use config::Agents;
pub use config::CONFIG_FILE_NAME;
pub use config::Config;
pub use config::MAX_WORKSPACE_NAME_LEN;
pub use config::RESERVED_WORKSPACE_NAMES;
pub use config::Repo;
pub use config::RepoEdit;
pub use config::Settings;
pub use config::Workspace;
pub use config::WorkspaceResolution;
pub use config::validate_workspace_name;
pub use context::AgentDoc;
pub use context::Context;
pub use context::MatchedFile;
pub use context::RepoContext;
pub use context::SCHEMA_VERSION;
pub use context::Scope;
pub use context::resolve_agent_docs;
pub use doctor::Check;
pub use doctor::DOCTOR_SCHEMA_VERSION;
pub use doctor::DoctorReport;
pub use doctor::Finding;
pub use doctor::Severity;
pub use doctor::Summary;
pub use error::RepographError;
pub use git::RepoState;
pub use git::RepoStatus;
pub use git::inspect;
pub use git::validate_git_repo;
pub use search::FIND_SCHEMA_VERSION;
pub use search::Hit;
pub use search::INDEX_DB_NAME;
pub use search::IndexOutcome;
pub use search::IndexStatus;
pub use search::MODEL_SUBDIR;
pub use search::SearchOutcome;
pub use search::build_index;
pub use search::index_db_path;
pub use search::index_health;
pub use search::model_cache_dir;
pub use search::search;

Modules§

agent_artifact
Per-agent native instruction artifacts.
agents
Built-in registry of agent toolchains.
config
Config model and TOML persistence.
context
Agent-facing context aggregation.
doctor
Read-only health checks against the on-disk config.
error
Error type for the repograph domain.
git
git2-backed introspection helpers.
path
Path canonicalization that yields shell-usable paths on every platform.
search
Cross-repo precedent search: index the git-tracked content of every registered repo, then retrieve it by meaning or by keyword.

Constants§

VERSION
Crate version, sourced from Cargo.toml.