openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
30 lines (29 loc) • 4.95 kB
JavaScript
import { w as parseStrictPositiveInteger } from "../number-coercion-CLj0HTDM.js";
import { i as normalizeAtHashSlug, o as normalizeHyphenSlug } from "../string-normalization-DsCfAx8q.js";
import { _ as resolveGatewayPort } from "../paths-D2sRr1a_.js";
import { h as resolveThreadSessionKeys } from "../session-key-BnWWjqNc.js";
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "../account-id-CETVCrTz.js";
import { d as isSecretRef } from "../types.secrets-kC0nOetj.js";
import { t as createSubsystemLogger } from "../subsystem-Dy2tqXOS.js";
import { i as buildChannelConfigSchema, l as emptyChannelConfigSchema, o as buildJsonChannelConfigSchema } from "../config-schema-C6z2p1z2.js";
import { n as resolveGlobalDedupeCache, t as createDedupeCache } from "../dedupe-gst1CUro.js";
import { a as generateSecureUuid, i as generateSecureToken } from "../secure-random-Ds4AFLgz.js";
import { n as enqueueKeyedTask, t as KeyedAsyncQueue } from "../keyed-async-queue-CTreGrmR.js";
import { d as isTrustedProxyAddress, h as resolveClientIp } from "../net-DbNPs6Xm.js";
import { a as resolveTailscaleServeGatewayUrlsWithRunner, i as resolveTailscalePublishedHost, r as resolveTailnetHostWithRunner } from "../tailscale-status-D3cAZH54.js";
import { c as stringEnum, n as channelTargetsSchema, s as optionalStringEnum, t as channelTargetSchema } from "../typebox-BdE5GwKs.js";
import { t as jsonResult } from "../tool-results-BCM3fdVS.js";
import { f as readReactionParams, h as readToolStringParam, n as createActionGate, p as readStringArrayParam, u as readNumberParam } from "../common-Bm6UTDDA.js";
import { n as delegateCompactionToRuntime, r as prepareMemorySystemPromptAddition, t as buildMemorySystemPromptAddition } from "../delegate-ANaiA5AE.js";
import { t as buildAgentSessionKey } from "../resolve-route-BRXfbiKP.js";
import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "../config-schema-ChMzSV8V.js";
import { r as formatZonedTimestamp } from "../format-datetime-xsAchuLA.js";
import { i as setAccountEnabledInConfigSection, r as deleteAccountFromConfigSection, t as clearAccountEntryFields } from "../config-helpers-DHwTXEER.js";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "../helpers-VcK_WJ24.js";
import { a as loadSecretFileSync, c as tryReadSecretFileSync, s as readSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "../secret-file-QljTRMYg.js";
import { t as definePluginEntry } from "../plugin-entry-zfBGJaNO.js";
import { o as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "../setup-helpers-DpWE8O4k.js";
import { t as resolveGatewayBindUrl } from "../gateway-bind-url-CO8cGU-C.js";
import { t as resolveConfiguredAcpBindingRecord } from "../persistent-bindings.resolve-DIgtURe3.js";
import { a as defineChannelPluginEntry, c as getChatChannelMetaForSdk, d as stripTargetKindPrefix, i as createChatChannelPlugin, l as recoverCurrentThreadSessionId, n as buildThreadAwareOutboundSessionRoute, o as defineSetupPluginEntry, r as createChannelPluginBase, s as ensureConfiguredAcpBindingReady, t as buildChannelOutboundSessionRoute, u as stripChannelTargetPrefix } from "../core-C-nFxxsj.js";
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 };