UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 786 B
import"./transcript-session-entry-codec-CvLNFJN0.mjs";function isSessionTranscriptReplayMetadataType(e,t){return e===`thinking_level_change`||e===`model_change`||e===`custom`&&t!==`openclaw.background-result-placement`||e===`label`||e===`session_info`}function validateSessionTranscriptReplaySelection(e){let t=e.maxBytes??8388608;if(!Number.isSafeInteger(t)||t<=0||t>67108864)throw RangeError(`Replay maxBytes must be an integer between 1 and 67108864`);if(!Array.isArray(e.entryIds)||e.entryIds.length>1e4||e.entryIds.some(e=>typeof e!=`string`||e.length===0||e.length>1024))throw RangeError(`Replay entryIds must contain at most 10000 nonempty IDs of at most 1024 characters`);return t}export{validateSessionTranscriptReplaySelection as n,isSessionTranscriptReplayMetadataType as t};