openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
31 lines (30 loc) • 5.03 kB
JavaScript
import { w as parseStrictPositiveInteger } from "../number-coercion-CkhMiRw8.mjs";
import { i as normalizeAtHashSlug, o as normalizeHyphenSlug } from "../string-normalization-D6DKCpwE.mjs";
import { c as isSecretRef } from "../ref-contract-Bfd9_-Lp.mjs";
import { b as resolveGatewayPort } from "../paths-BP0DYpE8.mjs";
import { t as createSubsystemLogger } from "../subsystem-4NzR43uz.mjs";
import { f as resolveThreadSessionKeys } from "../session-key-DY3MOX4N.mjs";
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "../account-id-ifCOO7_9.mjs";
import { n as resolveGlobalDedupeCache, t as createDedupeCache } from "../dedupe-DKjkQntq.mjs";
import { n as enqueueKeyedTask, t as KeyedAsyncQueue } from "../keyed-async-queue-CTreGrmR.mjs";
import { a as generateSecureUuid, i as generateSecureToken } from "../secure-random-B2AO8OrW.mjs";
import { i as buildChannelConfigSchema, l as emptyChannelConfigSchema, o as buildJsonChannelConfigSchema } from "../config-schema-DOYMqIQ1.mjs";
import { d as isTrustedProxyAddress, h as resolveClientIp } from "../net-CpjDDLK3.mjs";
import { t as jsonResult } from "../tool-results-BCM3fdVS.mjs";
import { d as readReactionParams, f as readStringArrayParam, l as readNumberParam, m as readToolStringParam, t as createActionGate } from "../common-BkU19q6Q.mjs";
import { t as buildAgentSessionKey } from "../resolve-route-DeZAxBYa.mjs";
import { n as delegateCompactionToRuntime, r as prepareMemorySystemPromptAddition, t as buildMemorySystemPromptAddition } from "../delegate-CQuMnceA.mjs";
import { r as formatZonedTimestamp } from "../format-datetime-DS_okl6M.mjs";
import { a as loadSecretFileSync, c as tryReadSecretFileSync, s as readSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "../secret-file-DKRLTCxI.mjs";
import { c as optionalStringEnum, l as stringEnum, n as channelTargetsSchema, t as channelTargetSchema } from "../typebox-X-jU33BZ.mjs";
import { a as setAccountEnabledInConfigSection, i as deleteAccountFromConfigSection, t as clearAccountEntryFields } from "../config-helpers-DqlTH3wQ.mjs";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "../helpers-COTq3ATj.mjs";
import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "../config-schema-DdZnBtuC.mjs";
import { t as definePluginEntry } from "../plugin-entry-8p_0SEiv.mjs";
import { a as resolveTailscalePublishedHost, i as resolveTailnetHostWithRunner, o as resolveTailscaleServeGatewayUrlsWithRunner } from "../tailscale-status-D3CkNS90.mjs";
import { o as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "../setup-helpers-DYtaYPMo.mjs";
import { t as resolveGatewayBindUrl } from "../gateway-bind-url-Ci0exoFE.mjs";
import { t as resolveConfiguredAcpBindingRecord } from "../persistent-bindings.resolve-DILbeOjn.mjs";
import { l as stripChannelTargetPrefix, u as stripTargetKindPrefix } from "../chat-target-prefixes-CkuKSHyK.mjs";
import { a as defineChannelPluginEntry, c as getChatChannelMetaForSdk, i as createChatChannelPlugin, l as recoverCurrentThreadSessionId, n as buildThreadAwareOutboundSessionRoute, o as defineSetupPluginEntry, r as createChannelPluginBase, s as ensureConfiguredAcpBindingReady, t as buildChannelOutboundSessionRoute } from "../core-CV8kUYw2.mjs";
export { DEFAULT_ACCOUNT_ID, DEFAULT_SECRET_FILE_MAX_BYTES, KeyedAsyncQueue, applyAccountNameToChannelSection, buildAgentSessionKey, buildChannelConfigSchema, buildChannelOutboundSessionRoute, buildJsonChannelConfigSchema, buildJsonPluginConfigSchema, buildMemorySystemPromptAddition, buildPluginConfigSchema, buildThreadAwareOutboundSessionRoute, channelTargetSchema, channelTargetsSchema, clearAccountEntryFields, createActionGate, createChannelPluginBase, createChatChannelPlugin, createDedupeCache, createSubsystemLogger, defineChannelPluginEntry, definePluginEntry, defineSetupPluginEntry, delegateCompactionToRuntime, deleteAccountFromConfigSection, emptyChannelConfigSchema, emptyPluginConfigSchema, enqueueKeyedTask, ensureConfiguredAcpBindingReady, formatPairingApproveHint, formatZonedTimestamp, generateSecureToken, generateSecureUuid, getChatChannelMetaForSdk as getChatChannelMeta, isSecretRef, isTrustedProxyAddress, jsonResult, loadSecretFileSync, migrateBaseNameToDefaultAccount, normalizeAccountId, normalizeAtHashSlug, normalizeHyphenSlug, optionalStringEnum, parseOptionalDelimitedEntries, parseStrictPositiveInteger, prepareMemorySystemPromptAddition, readNumberParam, readReactionParams, readSecretFileSync, readStringArrayParam, readToolStringParam as readStringParam, recoverCurrentThreadSessionId, resolveClientIp, resolveConfiguredAcpBindingRecord, resolveGatewayBindUrl, resolveGatewayPort, resolveGlobalDedupeCache, resolveTailnetHostWithRunner, resolveTailscalePublishedHost, resolveTailscaleServeGatewayUrlsWithRunner, resolveThreadSessionKeys, setAccountEnabledInConfigSection, stringEnum, stripChannelTargetPrefix, stripTargetKindPrefix, tryReadSecretFileSync };