openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
11 lines (10 loc) • 5.84 kB
JavaScript
import { _ as resolveOAuthDir, a as normalizeStateDirEnv, c as resolveConfigPath, d as resolveGatewayLockDir, f as resolveGatewayPort, g as resolveNewStateDir, h as resolveLegacyStateDirs, i as isNixMode, l as resolveConfigPathCandidate, m as resolveIsNixMode, n as DEFAULT_GATEWAY_PORT, o as pinRuntimePaths, p as resolveIncludeRoots, r as STATE_DIR, s as resolveCanonicalConfigPath, t as CONFIG_PATH, u as resolveDefaultConfigCandidates, v as resolveOAuthPath, y as resolveStateDir } from "../paths-DyelItkH.js";
import { _ as resolveSecretInputString, a as UnresolvedSecretInputError, c as hasConfiguredSecretInput, d as isValidEnvSecretRefId, f as normalizeResolvedSecretInputString, g as resolveSecretInputRef, h as parseLegacySecretRefEnvMarker, i as LEGACY_SECRETREF_ENV_MARKER_PREFIX, l as isSecretRef, m as parseEnvTemplateSecretRef, n as ENV_SECRET_REF_ID_RE, o as assertSecretInputResolved, p as normalizeSecretInputString, r as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, s as coerceSecretRef, t as DEFAULT_SECRET_PROVIDER_ALIAS, u as isUnresolvedSecretInputError } from "../types.secrets-BHLVnd7g.js";
import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../types.models-C6-aKREc.js";
import { A as applyConfigOverrides, C as validateConfigObject, E as validateConfigObjectWithPlugins, F as ConfigMutationConflictError, M as resetConfigOverrides, N as setConfigOverride, P as unsetConfigOverride, T as validateConfigObjectRawWithPlugins, _ as recoverConfigFromLastKnownGood, a as loadConfig, c as readBestEffortConfig, d as readConfigFileSnapshotForWrite, f as readConfigFileSnapshotWithPluginMetadata, g as recoverConfigFromJsonRootSuffix, h as readSourceConfigSnapshotForWrite, i as getRuntimeConfig, j as getConfigOverrides, k as projectConfigOntoRuntimeSourceSnapshot, l as readBestEffortConfigSnapshot, m as readSourceConfigSnapshot, n as clearConfigCache, o as parseConfigJson5, p as readSourceConfigBestEffort, r as createConfigIO, s as promoteConfigSnapshotToLastKnownGood, t as ConfigRuntimeRefreshError, u as readConfigFileSnapshot, v as registerConfigWriteListener, w as validateConfigObjectRaw, x as writeConfigFile, y as resolveConfigSnapshotHash } from "../io-CwmOK6NP.js";
import { i as shouldAttemptLastKnownGoodRecovery, n as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, r as isPluginPackagingRuntimeOutputIssue, t as isPluginLocalInvalidConfigSnapshot } from "../recovery-policy-Dve6SNpn.js";
import { n as assertConfigWriteAllowedInCurrentMode, t as NixModeConfigMutationError } from "../nix-mode-write-guard-BjYy-zVW.js";
import { _ as selectApplicableRuntimeConfig, a as getRuntimeConfigSnapshotMetadata, c as hashRuntimeConfigValue, g as resolveRuntimeConfigCacheKey, h as resolveConfigWriteFollowUp, i as getRuntimeConfigSnapshot, m as resolveConfigWriteAfterWrite, p as resetConfigRuntimeState, s as getRuntimeConfigSourceSnapshot, t as clearRuntimeConfigSnapshot, v as setRuntimeConfigSnapshot, y as setRuntimeConfigSnapshotRefreshHandler } from "../runtime-snapshot-D93_HOsR.js";
import { a as transformConfigFileWithRetry, i as transformConfigFile, n as mutateConfigFileWithRetry, r as replaceConfigFile, t as mutateConfigFile } from "../config-CxwD7EO_.js";
import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-C53HHUbf.js";
export { CONFIG_PATH, ConfigMutationConflictError, 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, applyConfigOverrides, assertConfigWriteAllowedInCurrentMode, assertSecretInputResolved, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, createConfigIO, getConfigOverrides, getRuntimeConfig, getRuntimeConfigSnapshot, getRuntimeConfigSnapshotMetadata, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, hashRuntimeConfigValue, isModelThinkingFormat, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, isPluginPackagingRuntimeOutputIssue, isSecretRef, isUnresolvedSecretInputError, isValidEnvSecretRefId, loadConfig, mutateConfigFile, mutateConfigFileWithRetry, normalizeResolvedSecretInputString, normalizeSecretInputString, normalizeStateDirEnv, parseConfigJson5, parseEnvTemplateSecretRef, parseLegacySecretRefEnvMarker, 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, resolveGatewayLockDir, resolveGatewayPort, resolveIncludeRoots, resolveIsNixMode, resolveLegacyStateDirs, resolveNewStateDir, resolveOAuthDir, resolveOAuthPath, resolveRuntimeConfigCacheKey, resolveSecretInputRef, resolveSecretInputString, resolveStateDir, selectApplicableRuntimeConfig, setConfigOverride, setRuntimeConfigSnapshot, setRuntimeConfigSnapshotRefreshHandler, shouldAttemptLastKnownGoodRecovery, transformConfigFile, transformConfigFileWithRetry, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, writeConfigFile };