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;
15
16pub use cache::{
17    fingerprint_dir, fingerprint_file, hash_file, hash_file_with_limit, hash_max_bytes,
18    stat_fingerprint, tool_result_key, CacheError, FileHash, FileRoot, LiveCache, LookupOutcome,
19};
20pub use remote::{RemoteStore, RemoteStoreConfig};
21pub use stats::{StatsRecorder, OUTCOME_HIT, OUTCOME_INVALIDATE, OUTCOME_MISS, OUTCOME_UNCACHED};
22pub use store::{FileRootSerde, FileStore, Key, Payload, PayloadMeta, Store, StoreError};