pub fn archive_session_output(
wstore: &Arc<WaveStore>,
filestore: &Arc<FileStore>,
block_id: &str,
archive_dir: &Path,
) -> Result<(u64, i64), String>Expand description
Archive the FileStore “output” file for block_id:
- Read bytes from FileStore.
- Compress to
archive_dir/<block_id>.jsonl.gz. - Delete the FileStore entry to reclaim SQLite space.
- Write archive meta keys to the block.
Returns (archived_bytes, archived_at_ms).
If the FileStore entry is missing or empty, returns (0, now_ms) — no-op.