UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines • 480 B
//!src/media/bounded-read-file.ts const BOUNDED_OUTBOUND_MEDIA_READ_FILE=Symbol(`boundedOutboundMediaReadFile`);function createBoundedOutboundMediaReadFile(e){const wrapped=(async t=>await e(t));Object.defineProperty(wrapped,BOUNDED_OUTBOUND_MEDIA_READ_FILE,{value:e});return wrapped}async function readOutboundMediaFile(e,t,n){const r=e[BOUNDED_OUTBOUND_MEDIA_READ_FILE];return r?await r(t,n):await e(t)}export{readOutboundMediaFile as n,createBoundedOutboundMediaReadFile as t};