UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) 1.04 kB
import { r as mergeInboundPathRoots } from "./inbound-path-policy-CYWsER5a.js"; import "./channel-inbound-bl7VmTdr.js"; import { a as resolveIMessageAccount } from "./accounts-DzoymhDS.js"; //#region extensions/imessage/src/media-contract.ts const DEFAULT_IMESSAGE_ATTACHMENT_ROOTS = ["/Users/*/Library/Messages/Attachments"]; function resolveIMessageAttachmentRoots(params) { return mergeInboundPathRoots(resolveIMessageAccount(params).config.attachmentRoots, params.cfg.channels?.imessage?.attachmentRoots, DEFAULT_IMESSAGE_ATTACHMENT_ROOTS); } function resolveIMessageRemoteAttachmentRoots(params) { const account = resolveIMessageAccount(params); return mergeInboundPathRoots(account.config.remoteAttachmentRoots, params.cfg.channels?.imessage?.remoteAttachmentRoots, account.config.attachmentRoots, params.cfg.channels?.imessage?.attachmentRoots, DEFAULT_IMESSAGE_ATTACHMENT_ROOTS); } //#endregion export { resolveIMessageAttachmentRoots as n, resolveIMessageRemoteAttachmentRoots as r, DEFAULT_IMESSAGE_ATTACHMENT_ROOTS as t };