UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 7.79 kB
import { c as isSecretRef, l as isValidEnvSecretRefId, n as ENV_SECRET_REF_ID_RE, t as DEFAULT_SECRET_PROVIDER_ALIAS } from "../ref-contract-b8L-9DrQ.mjs"; import { _ as resolveSecretInputRef, a as coerceSecretRef, c as isLegacySecretRefEnvMarker, d as normalizeRequiredSecretInput, f as normalizeResolvedSecretInputString, g as parseSecretRef, h as parseLegacySecretRefEnvMarker, i as assertSecretInputResolved, l as isLegacySecretRefWithoutProvider, m as parseEnvTemplateSecretRef, n as LEGACY_SECRETREF_ENV_MARKER_PREFIX, o as hasConfiguredSecretInput, p as normalizeSecretInputString, r as UnresolvedSecretInputError, s as hasLegacySecretRefExtraFields, t as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, u as isUnresolvedSecretInputError, v as resolveSecretInputString } from "../types.secrets-BmNLLnHp.mjs"; import { n as resolveNewStateDir, r as resolveStateDir, t as resolveLegacyStateDirs } from "../state-dir-DiG0gXzD.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-DAcAg5aV.mjs"; import { n as validateConfigObject, r as validateConfigObjectRaw } from "../validation-core-1Fx8ByEb.mjs"; import { c as getConfigOverrides, d as unsetConfigOverride, l as resetConfigOverrides, o as applyConfigOverrides, s as captureConfigOverrideApplier, u as setConfigOverride } from "../io.recovery-BpeT7cx2.mjs"; import { p as resolveConfigSnapshotHash, s as parseConfigJson5 } from "../io.read-helpers-qAcqsRC0.mjs"; import { D as setRuntimeConfigAppliedHash, E as setAppliedRuntimeConfigSnapshot, O as setRuntimeConfigSnapshot, S as resolveRuntimeConfigCacheKey, T as selectLiveRuntimeConfig, a as getRuntimeConfigSnapshot, b as resolveConfigWriteAfterWrite, c as getRuntimeConfigSourceSnapshot, h as readRuntimeConfig, i as getRuntimeConfigAppliedHash, j as hashRuntimeConfigValue, k as setRuntimeConfigSnapshotRefreshHandler, o as getRuntimeConfigSnapshotMetadata, t as clearRuntimeConfigSnapshot, w as selectApplicableRuntimeConfig, x as resolveConfigWriteFollowUp, y as resetConfigRuntimeState } from "../runtime-snapshot-WbwbY5b7.mjs"; import { t as ConfigMutationConflictError } from "../mutation-conflict-Bs0nsNWn.mjs"; import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-BQVTy9eE.mjs"; import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../model-config-vocabulary-ByNYIDvQ.mjs"; import { n as projectConfigOntoRuntimeSourceSnapshot } from "../runtime-source-projection-DTwMWCo9.mjs"; import { i as validateConfigObjectWithPlugins, r as validateConfigObjectRawWithPlugins } from "../validation-DSwgLhC7.mjs"; import { t as createConfigIO } from "../io.factory-DEa_bi2j.mjs"; import { i as shouldAttemptLastKnownGoodRecovery, n as isPluginLocalInvalidConfigSnapshot, r as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, t as collectPollutedSecretPlaceholders } from "../recovery-policy-CixJJb9O.mjs"; import { n as NixModeConfigMutationError, r as assertConfigWriteAllowedInCurrentMode, t as ConfigReadOnlyError } from "../config-write-guard-CxNxfJ_I.mjs"; import { t as ConfigRuntimeRefreshError } from "../io.types-tZoWfCaZ.mjs"; import { _ as recoverConfigFromJsonRootSuffix, a as readBestEffortConfig, g as readSourceConfigSnapshotForWrite, h as readSourceConfigSnapshot, i as promoteConfigSnapshotToLastKnownGood, l as readConfigFileSnapshotForWrite, m as readSourceConfigBestEffort, n as clearConfigCache, o as readBestEffortConfigSnapshot, r as loadConfig, s as readConfigFileSnapshot, t as captureRuntimeConfigAsyncReader, u as readConfigFileSnapshotWithPluginMetadata, v as recoverConfigFromLastKnownGood, x as writeConfigFile, y as registerConfigWriteListener } from "../io.runtime-DsJ2dLCQ.mjs"; import { a as transformConfigFile, n as mutateConfigFileWithRetry, o as transformConfigFileWithRetry, r as replaceConfigFile, s as withConfigMutationExclusive, t as mutateConfigFile } from "../mutate-DhAOi0-2.mjs"; import "../config-CMA-J084.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, captureRuntimeConfigAsyncReader, captureRuntimeStateEnvironment, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, collectPollutedSecretPlaceholders, createConfigIO, getConfigOverrides, readRuntimeConfig as getRuntimeConfig, readRuntimeConfig, getRuntimeConfigAppliedHash, getRuntimeConfigSnapshot, getRuntimeConfigSnapshotMetadata, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, hasLegacySecretRefExtraFields, hashRuntimeConfigValue, isDefaultInstallIdentity, isDefaultStateDir, isLegacySecretRefEnvMarker, isLegacySecretRefWithoutProvider, isModelThinkingFormat, isNamedProfile, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, isSecretRef, isUnresolvedSecretInputError, isValidEnvSecretRefId, loadConfig, mutateConfigFile, mutateConfigFileWithRetry, normalizeRequiredSecretInput, 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, selectLiveRuntimeConfig, setAppliedRuntimeConfigSnapshot, setConfigOverride, setRuntimeConfigAppliedHash, setRuntimeConfigSnapshot, setRuntimeConfigSnapshotRefreshHandler, shouldAttemptLastKnownGoodRecovery, transformConfigFile, transformConfigFileWithRetry, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, withConfigMutationExclusive, writeConfigFile };