UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

11 lines (10 loc) • 608 B
//#region src/acp/event-ledger-bytes.ts /** Retained UTF-8 text footprint, including the existing fixed allowance per row. */ function estimateAcpSessionRowBytes(e) { return Buffer.byteLength(e.sessionId, "utf8") + Buffer.byteLength(e.sessionKey, "utf8") + Buffer.byteLength(e.cwd, "utf8") + 32; } function estimateAcpEventRowBytes(e) { return Buffer.byteLength(e.sessionId, "utf8") + Buffer.byteLength(e.sessionKey, "utf8") + Buffer.byteLength(e.runId ?? "", "utf8") + Buffer.byteLength(e.updateJson, "utf8") + 32; } //#endregion export { estimateAcpSessionRowBytes as n, estimateAcpEventRowBytes as t };