UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) 6.74 kB
import { C as applyConfigOverrides, D as setConfigOverride, E as resetConfigOverrides, O as unsetConfigOverride, S as createConfigIO, T as getConfigOverrides, _ as writeConfigFile, a as readBestEffortConfig, d as readSourceConfigBestEffort, f as readSourceConfigSnapshot, g as registerConfigWriteListener, h as recoverConfigFromLastKnownGood, i as promoteConfigSnapshotToLastKnownGood, l as readConfigFileSnapshotForWrite, m as recoverConfigFromJsonRootSuffix, n as getRuntimeConfig, o as readBestEffortConfigSnapshot, p as readSourceConfigSnapshotForWrite, r as loadConfig, s as readConfigFileSnapshot, t as clearConfigCache, u as readConfigFileSnapshotWithPluginMetadata, w as captureConfigOverrideApplier } from "../io.runtime-B9iJRs3w.js"; import { C as resolveOAuthDir, S as resolveNewStateDir, _ as resolveGatewayPort, a as isDefaultInstallIdentity, b as resolveLegacyStateDirs, c as isNixMode, d as resolveCanonicalConfigPath, f as resolveConfigPath, g as resolveGatewayLockDir, h as resolveDeliveryQueueMediaDir, i as allowsProcessHomeSessionScan, l as normalizeStateDirEnv, m as resolveDefaultConfigCandidates, n as DEFAULT_GATEWAY_PORT, o as isDefaultStateDir, p as resolveConfigPathCandidate, r as STATE_DIR, s as isNamedProfile, t as CONFIG_PATH, u as pinRuntimePaths, v as resolveIncludeRoots, w as resolveStateDir, x as resolveNativeServiceProfileConflict, y as resolveIsNixMode } from "../paths-D2sRr1a_.js"; import { _ as parseLegacySecretRefEnvMarker, a as UnresolvedSecretInputError, c as collectEnvSecretRefIds, d as isSecretRef, f as isUnresolvedSecretInputError, g as parseEnvTemplateSecretRef, h as normalizeSecretInputString, i as LEGACY_SECRETREF_ENV_MARKER_PREFIX, l as hasConfiguredSecretInput, m as normalizeResolvedSecretInputString, n as ENV_SECRET_REF_ID_RE, o as assertSecretInputResolved, p as isValidEnvSecretRefId, r as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, s as coerceSecretRef, t as DEFAULT_SECRET_PROVIDER_ALIAS, u as isLegacySecretRefEnvMarker, v as resolveSecretInputRef, y as resolveSecretInputString } from "../types.secrets-kC0nOetj.js"; import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../types.models-Z6EPRVI_.js"; import { C as selectApplicableRuntimeConfig, D as setRuntimeConfigSnapshotRefreshHandler, E as setRuntimeConfigSnapshot, S as resolveRuntimeConfigCacheKey, T as setRuntimeConfigAppliedHash, a as getRuntimeConfigAppliedHash, b as resolveConfigWriteAfterWrite, d as hashRuntimeConfigValue, l as getRuntimeConfigSourceSnapshot, o as getRuntimeConfigSnapshot, s as getRuntimeConfigSnapshotMetadata, t as clearRuntimeConfigSnapshot, w as setAppliedRuntimeConfigSnapshot, x as resolveConfigWriteFollowUp, y as resetConfigRuntimeState } from "../runtime-snapshot-BaQikjTR.js"; import { t as projectConfigOntoRuntimeSourceSnapshot } from "../runtime-source-projection-DOHmC11j.js"; import { _ as validateConfigObjectRaw, g as validateConfigObject, h as validateConfigObjectWithPlugins, m as validateConfigObjectRawWithPlugins, t as ConfigRuntimeRefreshError } from "../io.types-BUCjdS5v.js"; import { h as resolveConfigSnapshotHash, l as parseConfigJson5 } from "../io.read-helpers-ZKp-UiGx.js"; import { t as ConfigMutationConflictError } from "../mutation-conflict-Be0wSyDG.js"; import { n as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, r as shouldAttemptLastKnownGoodRecovery, t as isPluginLocalInvalidConfigSnapshot } from "../recovery-policy-CsUZ07YX.js"; import { n as assertConfigWriteAllowedInCurrentMode, t as NixModeConfigMutationError } from "../nix-mode-write-guard-uwcnAyQN.js"; import { a as transformConfigFileWithRetry, i as transformConfigFile, n as mutateConfigFileWithRetry, o as withConfigMutationExclusive, r as replaceConfigFile, t as mutateConfigFile } from "../mutate-ZNN4iFCn.js"; import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-_OkSyioO.js"; import "../config-Cs0XXL3x.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, allowsProcessHomeSessionScan, applyConfigOverrides, assertConfigWriteAllowedInCurrentMode, assertSecretInputResolved, captureConfigOverrideApplier, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, collectEnvSecretRefIds, createConfigIO, getConfigOverrides, getRuntimeConfig, getRuntimeConfigAppliedHash, getRuntimeConfigSnapshot, getRuntimeConfigSnapshotMetadata, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, hashRuntimeConfigValue, isDefaultInstallIdentity, isDefaultStateDir, isLegacySecretRefEnvMarker, isModelThinkingFormat, isNamedProfile, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, 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, resolveDeliveryQueueMediaDir, resolveGatewayLockDir, resolveGatewayPort, resolveIncludeRoots, 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 };