openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 568 B
JavaScript
const e=8388608;var SessionTranscriptSourceMessageTooLargeError=class extends Error{constructor(){super(`Transcript source message exceeds the ${e}-byte page limit`),this.code=`TRANSCRIPT_SOURCE_MESSAGE_TOO_LARGE`,this.name=`SessionTranscriptSourceMessageTooLargeError`}};async function*iterateSessionTranscriptSourcePages(e,t,n={},r){let i;do{r?.throwIfAborted();let a=await e(t,{...n,mode:`page`,cursor:i},r);r?.throwIfAborted(),yield a,i=a.nextCursor}while(i)}export{SessionTranscriptSourceMessageTooLargeError as n,iterateSessionTranscriptSourcePages as r,e as t};