khive_vcs/lib.rs
1// Copyright 2026 khive contributors. Licensed under Apache-2.0.
2//
3//! KG versioning — content-addressed snapshot hashing, git-native core types,
4//! and the NDJSON-to-SQLite sync library boundary.
5//!
6//! v1 versioning is git-native (ADR-010, ADR-020): KG state lives as sorted
7//! NDJSON files in a git repository. The legacy snapshot/branch/merge pipeline
8//! (`KgSnapshot`, `KgBranch`, `RemoteConfig`, custom push/pull) was superseded
9//! by ADR-020. This crate retains:
10//!
11//! - [`types`] — `SnapshotId`, `SnapshotCoverage`, `VcsState`
12//! - [`hash`] — canonical JSON serialization + SHA-256 snapshot hashing
13//! - [`sync`] — NDJSON-to-SQLite rebuild library (ADR-010/ADR-020, F106)
14//! - [`error`] — `VcsError` type
15
16pub mod error;
17pub mod hash;
18pub mod sync;
19pub mod types;
20
21pub use error::VcsError;
22pub use types::{SnapshotCoverage, SnapshotId, VcsState, KG_V1_COVERAGE};