ralph-workflow 0.7.18

PROMPT-driven multi-agent orchestrator for git repos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Compress `data` to a base64-encoded gzip string.
///
/// Delegates to the boundary-layer implementation in `checkpoint::io::compression`,
/// which owns all I/O state (encoder, buffers).
pub fn compress(data: &[u8]) -> Result<String, std::io::Error> {
    crate::checkpoint::io::compression::compress(data)
}

/// Decompress a base64-encoded gzip string back to UTF-8.
///
/// Delegates to the boundary-layer implementation in `checkpoint::io::compression`,
/// which owns all I/O state (decoder, buffers) and enforces the size cap.
pub fn decompress(encoded: &str) -> Result<String, std::io::Error> {
    crate::checkpoint::io::compression::decompress(encoded)
}