Skip to main content

verdant_runtime/
lib.rs

1//! verdant-runtime — live cache runtime that the M1 MCP server consumes.
2//!
3//! Build sequence so far: step 2 lands the content-addressed object
4//! store (`store`); step 3 lands the `LiveCache` surface that wraps the
5//! store with a registry, file-root revalidation, and dirty invalidation
6//! (`cache`). Step 4 (file revalidation path) is folded into the cache
7//! module; step 5 wires `LiveCache` into the verdant-mcp `read` tool.
8
9pub mod cache;
10pub mod cas;
11pub mod remote;
12pub mod stats;
13pub mod store;
14pub mod tree;
15pub mod tree_txn;
16
17pub use cache::{
18    current_root_fingerprint, fingerprint_dir, fingerprint_file, hash_file, hash_file_with_limit,
19    hash_max_bytes, observe_probe, probe_fingerprint, probe_fingerprint_from, stat_fingerprint,
20    tool_result_key, CacheError, FileHash, FileRoot, LiveCache, LookupOutcome, ProbeClass,
21    ProbeObserved, PROBE_PREFIX,
22};
23pub use remote::{RemoteStore, RemoteStoreConfig};
24pub use stats::{
25    accept_call_id, StatLine, StatsRecorder, MAX_CALL_ID_BYTES, OUTCOME_DECLINED, OUTCOME_HIT,
26    OUTCOME_INVALIDATE, OUTCOME_MISS, OUTCOME_UNCACHED,
27};
28pub use store::{FileRootSerde, FileStore, Key, Payload, PayloadMeta, Store, StoreError};