UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

18 lines (16 loc) 569 B
import { r as saveMediaBuffer } from "./store-Be0QxLPZ.js"; import { a as loadWebMedia } from "./ir-CRTCIHIG.js"; //#region src/media/outbound-attachment.ts async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) { const media = await loadWebMedia(mediaUrl, { maxBytes, localRoots: options?.localRoots }); const saved = await saveMediaBuffer(media.buffer, media.contentType ?? void 0, "outbound", maxBytes); return { path: saved.path, contentType: saved.contentType }; } //#endregion export { resolveOutboundAttachmentFromUrl as t };