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-CuVhdCBs.mjs";
import { i as normalizeAtHashSlug, o as normalizeHyphenSlug } from "../string-normalization-CECOqf64.mjs";
import { c as isSecretRef } from "../ref-contract-D0kWy5jy.mjs";
import { b as resolveGatewayPort } from "../paths-DGIwWbpu.mjs";
import { t as createSubsystemLogger } from "../subsystem-I-uqdx4f.mjs";
import { n as enqueueKeyedTask, t as KeyedAsyncQueue } from "../keyed-async-queue-CTreGrmR.mjs";
import { f as resolveThreadSessionKeys } from "../session-key-C09ow4h0.mjs";
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "../account-id-DbRsdayc.mjs";
import { n as resolveGlobalDedupeCache, t as createDedupeCache } from "../dedupe-qhwfyIea.mjs";
import { a as generateSecureUuid, i as generateSecureToken } from "../secure-random-Dimnnrm0.mjs";
import { i as buildChannelConfigSchema, l as emptyChannelConfigSchema, o as buildJsonChannelConfigSchema } from "../config-schema-Be-FohaC.mjs";
import { d as isTrustedProxyAddress, h as resolveClientIp } from "../net-C6WEu3pd.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-Dyxcwsy8.mjs";
import { t as buildAgentSessionKey } from "../resolve-route-DYoHvZlS.mjs";
import { n as delegateCompactionToRuntime, r as prepareMemorySystemPromptAddition, t as buildMemorySystemPromptAddition } from "../delegate-CejxdgQK.mjs";
import { a as loadSecretFileSync, c as tryReadSecretFileSync, s as readSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "../secret-file-B_nJw6pE.mjs";
import { r as formatZonedTimestamp } from "../format-datetime-QNTzUilb.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-Ch_BBBFF.mjs";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "../helpers-Bm4RKejp.mjs";
import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "../config-schema-BBtylDlH.mjs";
import { t as definePluginEntry } from "../plugin-entry-2l_2QeB2.mjs";
import { a as resolveTailscalePublishedHost, i as resolveTailnetHostWithRunner, o as resolveTailscaleServeGatewayUrlsWithRunner } from "../tailscale-status-BA6JQcBe.mjs";
import { o as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "../setup-helpers-CDK4xLs4.mjs";
import { t as resolveGatewayBindUrl } from "../gateway-bind-url-Ci0exoFE.mjs";
import { t as resolveConfiguredAcpBindingRecord } from "../persistent-bindings.resolve-8mevgclE.mjs";
import { l as stripChannelTargetPrefix, u as stripTargetKindPrefix } from "../chat-target-prefixes-C7_cZj_-.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-BzA2fKHX.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 };