UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

30 lines (29 loc) • 4.65 kB
import { b as parseStrictPositiveInteger } from "../number-coercion-CJQ8TR--.js"; import { f as resolveGatewayPort } from "../paths-DyelItkH.js"; import { i as normalizeHyphenSlug, n as normalizeAtHashSlug } from "../string-normalization-CRyoFBPt.js"; import { l as isSecretRef } from "../types.secrets-BHLVnd7g.js"; import { t as createSubsystemLogger } from "../subsystem-BTVUlTIB.js"; import { a as tryReadSecretFileSync, i as readSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "../secret-file-PClaG9G0.js"; import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "../account-id-5IgE9UKY.js"; import { m as resolveThreadSessionKeys } from "../session-key-BsbwBJwv.js"; import { i as buildJsonChannelConfigSchema, o as emptyChannelConfigSchema, r as buildChannelConfigSchema } from "../config-schema-CFVaMM-z.js"; import { c as isTrustedProxyAddress, f as resolveClientIp } from "../net-DQvRbvSK.js"; import { n as resolveGlobalDedupeCache, t as createDedupeCache } from "../dedupe-DnzL4okR.js"; import { n as enqueueKeyedTask, t as KeyedAsyncQueue } from "../keyed-async-queue-Ckmdd15z.js"; import { _ as readReactionParams, b as readStringParam, h as readNumberParam, i as createActionGate, l as jsonResult, v as readStringArrayParam } from "../common-DjVgHKFa.js"; import { t as buildAgentSessionKey } from "../resolve-route-CuA-4bFM.js"; import { n as channelTargetsSchema, o as optionalStringEnum, s as stringEnum, t as channelTargetSchema } from "../typebox-DgqA_f8_.js"; import { a as generateSecureUuid, i as generateSecureToken } from "../secure-random-Ds4AFLgz.js"; import { n as deleteAccountFromConfigSection, r as setAccountEnabledInConfigSection, t as clearAccountEntryFields } from "../config-helpers-CgcJ3mtr.js"; import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "../helpers-ou1qRqD0.js"; import { n as delegateCompactionToRuntime, t as buildMemorySystemPromptAddition } from "../delegate-b2ZmmBj8.js"; import { n as formatZonedTimestamp } from "../format-datetime-DO2rqkXr.js"; import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "../config-schema-nMrjYIPk.js"; import { t as definePluginEntry } from "../plugin-entry-BZpzqykQ.js"; import { s as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "../setup-helpers-CPWoWqOy.js"; import { t as loadSecretFileSync } from "../secret-file-Bf30e8vr.js"; import { t as resolveGatewayBindUrl } from "../gateway-bind-url-BQi9umgg.js"; import { t as resolveConfiguredAcpBindingRecord } from "../persistent-bindings.resolve-CgSGdM6k.js"; import { t as resolveTailnetHostWithRunner } from "../tailscale-status-B3whvNX4.js"; import { a as defineChannelPluginEntry, c as getChatChannelMeta, 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-DSBgt6Pg.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, getChatChannelMeta, isSecretRef, isTrustedProxyAddress, jsonResult, loadSecretFileSync, migrateBaseNameToDefaultAccount, normalizeAccountId, normalizeAtHashSlug, normalizeHyphenSlug, optionalStringEnum, parseOptionalDelimitedEntries, parseStrictPositiveInteger, readNumberParam, readReactionParams, readSecretFileSync, readStringArrayParam, readStringParam, recoverCurrentThreadSessionId, resolveClientIp, resolveConfiguredAcpBindingRecord, resolveGatewayBindUrl, resolveGatewayPort, resolveGlobalDedupeCache, resolveTailnetHostWithRunner, resolveThreadSessionKeys, setAccountEnabledInConfigSection, stringEnum, stripChannelTargetPrefix, stripTargetKindPrefix, tryReadSecretFileSync };