bones_core/sync/mod.rs
1//! Synchronisation helpers for bones event shards.
2//!
3//! This module provides:
4//!
5//! - [`merge`] — logic for combining divergent `.events` shard files.
6//! - [`prolly`] — content-defined Merkle tree for O(log N) event set diffing.
7//! - [`protocol`] — transport-agnostic 3-round sync protocol built on prolly trees.
8//!
9//! The prolly tree and protocol modules are **library APIs** for external sync
10//! tools. bones does not own transport — tools like `maw`, custom MCP servers,
11//! or direct TCP/HTTP services implement [`protocol::SyncTransport`] and call
12//! the sync functions.
13
14pub mod merge;
15pub mod prolly;
16pub mod protocol;