pub fn bundle(
fs: &impl Fs,
paths: &StorePaths,
doc_id: &str,
) -> Result<Vec<u8>, SessionError>Expand description
Pack a document’s entire store directory into one portable, deterministic byte blob.
The directory bundled is <root>/docs/<doc_id>/ (objects/, versions.jsonl,
runs.jsonl, previews.jsonl, scratch/, meta.json, …). Returns an error if
doc_dir does not exist, since bundling a non-existent document is a user
mistake and an empty bundle would silently succeed with no useful data.