UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) • 7.52 kB
import { c as isSecretRef, l as isValidEnvSecretRefId, n as ENV_SECRET_REF_ID_RE, t as DEFAULT_SECRET_PROVIDER_ALIAS } from "../ref-contract-Bfd9_-Lp.mjs"; import { _ as resolveSecretInputString, a as coerceSecretRef, c as isLegacySecretRefEnvMarker, d as normalizeResolvedSecretInputString, f as normalizeSecretInputString, g as resolveSecretInputRef, h as parseSecretRef, i as assertSecretInputResolved, l as isLegacySecretRefWithoutProvider, m as parseLegacySecretRefEnvMarker, n as LEGACY_SECRETREF_ENV_MARKER_PREFIX, o as hasConfiguredSecretInput, p as parseEnvTemplateSecretRef, r as UnresolvedSecretInputError, s as hasLegacySecretRefExtraFields, t as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, u as isUnresolvedSecretInputError } from "../types.secrets-DD-Q2SS_.mjs"; import { n as resolveNewStateDir, r as resolveStateDir, t as resolveLegacyStateDirs } from "../state-dir-CYkBUd_G.mjs"; import { C as resolveIsNixMode, S as resolveIsConfigReadOnly, T as resolveOAuthDir, _ as resolveDeliveryQueueMediaDir, a as captureRuntimeStateEnvironment, b as resolveGatewayPort, c as isNamedProfile, d as parseGatewayPortEnvValue, f as pinRuntimePaths, g as resolveDefaultConfigCandidates, h as resolveConfigPathCandidate, i as allowsProcessHomeSessionScan, l as isNixMode, m as resolveConfigPath, n as DEFAULT_GATEWAY_PORT, o as isDefaultInstallIdentity, p as resolveCanonicalConfigPath, r as STATE_DIR, s as isDefaultStateDir, t as CONFIG_PATH, u as normalizeStateDirEnv, v as resolveGatewayLockDir, w as resolveNativeServiceProfileConflict, x as resolveIncludeRoots, y as resolveGatewayLockDirForCanonicalStateDir } from "../paths-BP0DYpE8.mjs"; import { p as resolveConfigSnapshotHash, s as parseConfigJson5 } from "../io.read-helpers-BBxWMZOW.mjs"; import { n as validateConfigObject, r as validateConfigObjectRaw } from "../validation-core-DHjeBn07.mjs"; import { d as captureConfigOverrideApplier, f as getConfigOverrides, h as unsetConfigOverride, m as setConfigOverride, p as resetConfigOverrides, t as createConfigIO, u as applyConfigOverrides } from "../io.factory-QmLuiLlX.mjs"; import { t as ConfigMutationConflictError } from "../mutation-conflict-Be0wSyDG.mjs"; import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-YIeKpsiJ.mjs"; import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../model-config-vocabulary-DUlNI05T.mjs"; import { C as resolveRuntimeConfigCacheKey, D as setRuntimeConfigSnapshot, E as setRuntimeConfigAppliedHash, O as setRuntimeConfigSnapshotRefreshHandler, S as resolveConfigWriteFollowUp, T as setAppliedRuntimeConfigSnapshot, a as getRuntimeConfigAppliedHash, b as resetConfigRuntimeState, d as hashRuntimeConfigValue, l as getRuntimeConfigSourceSnapshot, n as clearRuntimeConfigSnapshot, o as getRuntimeConfigSnapshot, s as getRuntimeConfigSnapshotMetadata, w as selectApplicableRuntimeConfig, x as resolveConfigWriteAfterWrite } from "../runtime-snapshot-De_QxZI9.mjs"; import { n as projectConfigOntoRuntimeSourceSnapshot } from "../runtime-source-projection-BaYSQVvW.mjs"; import { n as validateConfigObjectRawWithPlugins, r as validateConfigObjectWithPlugins } from "../validation-CTgKi8Pz.mjs"; import { i as shouldAttemptLastKnownGoodRecovery, n as isPluginLocalInvalidConfigSnapshot, r as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, t as collectPollutedSecretPlaceholders } from "../recovery-policy-CgbblNbu.mjs"; import { n as NixModeConfigMutationError, r as assertConfigWriteAllowedInCurrentMode, t as ConfigReadOnlyError } from "../config-write-guard-C8fkwYP0.mjs"; import { t as ConfigRuntimeRefreshError } from "../io.types-BG-TsUU1.mjs"; import { S as writeConfigFile, _ as readSourceConfigSnapshot, a as promoteConfigSnapshotToLastKnownGood, b as recoverConfigFromLastKnownGood, c as readConfigFileSnapshot, d as readConfigFileSnapshotWithPluginMetadata, g as readSourceConfigBestEffort, i as loadConfig, n as clearConfigCache, o as readBestEffortConfig, r as getRuntimeConfig, s as readBestEffortConfigSnapshot, u as readConfigFileSnapshotForWrite, v as readSourceConfigSnapshotForWrite, x as registerConfigWriteListener, y as recoverConfigFromJsonRootSuffix } from "../io.runtime-B134MOMz.mjs"; import { a as transformConfigFile, n as mutateConfigFileWithRetry, o as transformConfigFileWithRetry, r as replaceConfigFile, s as withConfigMutationExclusive, t as mutateConfigFile } from "../mutate-C5g37HdW.mjs"; import "../config-VnHbY_QV.mjs"; export { CONFIG_PATH, ConfigMutationConflictError, ConfigReadOnlyError, ConfigRuntimeRefreshError, DEFAULT_GATEWAY_PORT, DEFAULT_SECRET_PROVIDER_ALIAS, ENV_SECRET_REF_ID_RE, LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, LEGACY_SECRETREF_ENV_MARKER_PREFIX, MODEL_APIS, MODEL_THINKING_FORMATS, NixModeConfigMutationError, STATE_DIR, TOOLS_BY_SENDER_KEY_TYPES, UnresolvedSecretInputError, allowsProcessHomeSessionScan, applyConfigOverrides, assertConfigWriteAllowedInCurrentMode, assertSecretInputResolved, captureConfigOverrideApplier, captureRuntimeStateEnvironment, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, collectPollutedSecretPlaceholders, createConfigIO, getConfigOverrides, getRuntimeConfig, getRuntimeConfigAppliedHash, getRuntimeConfigSnapshot, getRuntimeConfigSnapshotMetadata, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, hasLegacySecretRefExtraFields, hashRuntimeConfigValue, isDefaultInstallIdentity, isDefaultStateDir, isLegacySecretRefEnvMarker, isLegacySecretRefWithoutProvider, isModelThinkingFormat, isNamedProfile, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, isSecretRef, isUnresolvedSecretInputError, isValidEnvSecretRefId, loadConfig, mutateConfigFile, mutateConfigFileWithRetry, normalizeResolvedSecretInputString, normalizeSecretInputString, normalizeStateDirEnv, parseConfigJson5, parseEnvTemplateSecretRef, parseGatewayPortEnvValue, parseLegacySecretRefEnvMarker, parseSecretRef, parseToolsBySenderTypedKey, pinRuntimePaths, projectConfigOntoRuntimeSourceSnapshot, promoteConfigSnapshotToLastKnownGood, readBestEffortConfig, readBestEffortConfigSnapshot, readConfigFileSnapshot, readConfigFileSnapshotForWrite, readConfigFileSnapshotWithPluginMetadata, readSourceConfigBestEffort, readSourceConfigSnapshot, readSourceConfigSnapshotForWrite, recoverConfigFromJsonRootSuffix, recoverConfigFromLastKnownGood, registerConfigWriteListener, replaceConfigFile, resetConfigOverrides, resetConfigRuntimeState, resolveCanonicalConfigPath, resolveConfigPath, resolveConfigPathCandidate, resolveConfigSnapshotHash, resolveConfigWriteAfterWrite, resolveConfigWriteFollowUp, resolveDefaultConfigCandidates, resolveDeliveryQueueMediaDir, resolveGatewayLockDir, resolveGatewayLockDirForCanonicalStateDir, resolveGatewayPort, resolveIncludeRoots, resolveIsConfigReadOnly, resolveIsNixMode, resolveLegacyStateDirs, resolveNativeServiceProfileConflict, resolveNewStateDir, resolveOAuthDir, resolveRuntimeConfigCacheKey, resolveSecretInputRef, resolveSecretInputString, resolveStateDir, selectApplicableRuntimeConfig, setAppliedRuntimeConfigSnapshot, setConfigOverride, setRuntimeConfigAppliedHash, setRuntimeConfigSnapshot, setRuntimeConfigSnapshotRefreshHandler, shouldAttemptLastKnownGoodRecovery, transformConfigFile, transformConfigFileWithRetry, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, withConfigMutationExclusive, writeConfigFile };