UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 557 B
function resolveTranscriptAppendParent(e){return e.parentId===void 0?e.tailId:e.appendIntent!==`active-branch`||e.tailId===e.parentId||e.tailId===null?e.parentId:e.isAncestor(e.tailId,e.parentId)?e.tailId:e.parentId}const e=1048576,t=4096;function preparedAssistantMessagesPreserveTurn(e,t,n){return e.every(e=>e.message_role!==`user`||e.event_id===t||e.context_free_command===1||e.provenance_kind===`realtime_voice`&&e.provenance_source_channel===`talk`||n(e))}export{resolveTranscriptAppendParent as i,e as n,preparedAssistantMessagesPreserveTurn as r,t};