Skip to main content

Crate khive_vcs

Crate khive_vcs 

Source
Expand description

KG versioning — content-addressed snapshot hashing, git-native core types, and the NDJSON-to-SQLite sync library boundary.

v1 versioning is git-native (ADR-010, ADR-020): KG state lives as sorted NDJSON files in a git repository. The legacy snapshot/branch/merge pipeline (KgSnapshot, KgBranch, RemoteConfig, custom push/pull) was superseded by ADR-020. This crate retains:

  • typesSnapshotId, SnapshotCoverage, VcsState
  • hash — canonical JSON serialization + SHA-256 snapshot hashing
  • sync — NDJSON-to-SQLite rebuild library (ADR-010/ADR-020, F106)
  • errorVcsError type

Re-exports§

pub use error::VcsError;
pub use types::SnapshotCoverage;
pub use types::SnapshotId;
pub use types::VcsState;
pub use types::KG_V1_COVERAGE;

Modules§

error
Error types for the VCS layer.
hash
Canonical JSON serialization and SHA-256 snapshot hashing.
sync
NDJSON-to-SQLite sync library boundary (ADR-010/ADR-020, finding F106).
types
Core versioning types: SnapshotId, VcsState.