UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) • 7.34 kB
import { c as isSecretRef, l as isValidEnvSecretRefId, n as ENV_SECRET_REF_ID_RE, t as DEFAULT_SECRET_PROVIDER_ALIAS } from "../ref-contract-D0kWy5jy.mjs"; import { a as coerceSecretRef, c as isUnresolvedSecretInputError, d as parseEnvTemplateSecretRef, f as parseLegacySecretRefEnvMarker, i as assertSecretInputResolved, l as normalizeResolvedSecretInputString, m as resolveSecretInputString, n as LEGACY_SECRETREF_ENV_MARKER_PREFIX, o as hasConfiguredSecretInput, p as resolveSecretInputRef, r as UnresolvedSecretInputError, s as isLegacySecretRefEnvMarker, t as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, u as normalizeSecretInputString } from "../types.secrets-BXEuin38.mjs"; import { n as resolveNewStateDir, r as resolveStateDir, t as resolveLegacyStateDirs } from "../state-dir-CfAW6S2K.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-FklbMVOH.mjs"; import { p as resolveConfigSnapshotHash, s as parseConfigJson5 } from "../io.read-helpers-CK7CM5YG.mjs"; import { d as getConfigOverrides, f as resetConfigOverrides, l as applyConfigOverrides, m as unsetConfigOverride, p as setConfigOverride, t as createConfigIO, u as captureConfigOverrideApplier } from "../io.factory-SFi7FTm2.mjs"; import { n as validateConfigObject, r as validateConfigObjectRaw } from "../validation-core-CFeB-M2c.mjs"; import { t as ConfigMutationConflictError } from "../mutation-conflict-Be0wSyDG.mjs"; import { n as NixModeConfigMutationError, r as assertConfigWriteAllowedInCurrentMode, t as ConfigReadOnlyError } from "../config-write-guard-BXUoQ8wS.mjs"; import { n as validateConfigObjectRawWithPlugins, r as validateConfigObjectWithPlugins } from "../validation-Yn6JM19v.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-CifcQ780.mjs"; import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../model-config-vocabulary-DKKMQG9F.mjs"; import { n as projectConfigOntoRuntimeSourceSnapshot } from "../runtime-source-projection-CAFQ9dqa.mjs"; import { i as shouldAttemptLastKnownGoodRecovery, n as isPluginLocalInvalidConfigSnapshot, r as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, t as collectPollutedSecretPlaceholders } from "../recovery-policy-D5E-mA-L.mjs"; import { t as ConfigRuntimeRefreshError } from "../io.types-DdhXCrAp.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-FunTy0y1.mjs"; import { a as transformConfigFile, n as mutateConfigFileWithRetry, o as transformConfigFileWithRetry, r as replaceConfigFile, s as withConfigMutationExclusive, t as mutateConfigFile } from "../mutate-cU6JOWHQ.mjs"; import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-YIeKpsiJ.mjs"; import "../config-B-SAEPyK.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, hashRuntimeConfigValue, isDefaultInstallIdentity, isDefaultStateDir, isLegacySecretRefEnvMarker, isModelThinkingFormat, isNamedProfile, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, isSecretRef, isUnresolvedSecretInputError, isValidEnvSecretRefId, loadConfig, mutateConfigFile, mutateConfigFileWithRetry, normalizeResolvedSecretInputString, normalizeSecretInputString, normalizeStateDirEnv, parseConfigJson5, parseEnvTemplateSecretRef, parseGatewayPortEnvValue, 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, 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 };