import { _ as resolveOAuthDir, a as normalizeStateDirEnv, c as resolveConfigPathCandidate, d as resolveGatewayPort, f as resolveIncludeRoots, g as resolveNewStateDir, h as resolveLegacyStateDirs, i as isNixMode, l as resolveDefaultConfigCandidates, m as resolveLegacyStateDir, n as DEFAULT_GATEWAY_PORT, o as resolveCanonicalConfigPath, p as resolveIsNixMode, r as STATE_DIR, s as resolveConfigPath, t as CONFIG_PATH, u as resolveGatewayLockDir, v as resolveOAuthPath, y as resolveStateDir } from "../paths-CU1mLMSe.js";
import { a as assertSecretInputResolved, c as isSecretRef, d as normalizeSecretInputString, f as parseEnvTemplateSecretRef, h as resolveSecretInputString, i as LEGACY_SECRETREF_ENV_MARKER_PREFIX, l as isValidEnvSecretRefId, m as resolveSecretInputRef, n as ENV_SECRET_REF_ID_RE, o as coerceSecretRef, p as parseLegacySecretRefEnvMarker, r as LEGACY_DOUBLE_UNDERSCORE_ENV_MARKER_PREFIX, s as hasConfiguredSecretInput, t as DEFAULT_SECRET_PROVIDER_ALIAS, u as normalizeResolvedSecretInputString } from "../types.secrets-DdS3-UHE.js";
import { n as MODEL_THINKING_FORMATS, r as isModelThinkingFormat, t as MODEL_APIS } from "../types.models-BaTLvlWH.js";
import { A as applyConfigOverrides, C as validateConfigObject, E as validateConfigObjectWithPlugins, M as resetConfigOverrides, N as setConfigOverride, P as unsetConfigOverride, T as validateConfigObjectRawWithPlugins, _ as recoverConfigFromLastKnownGood, a as loadConfig, c as promoteConfigSnapshotToLastKnownGood, d as readConfigFileSnapshotForWrite, f as readConfigFileSnapshotWithPluginMetadata, g as recoverConfigFromJsonRootSuffix, h as readSourceConfigSnapshotForWrite, i as getRuntimeConfig, j as getConfigOverrides, l as readBestEffortConfig, m as readSourceConfigSnapshot, n as clearConfigCache, o as parseConfigJson5, p as readSourceConfigBestEffort, r as createConfigIO, s as projectConfigOntoRuntimeSourceSnapshot, t as ConfigRuntimeRefreshError, u as readConfigFileSnapshot, v as registerConfigWriteListener, w as validateConfigObjectRaw, x as writeConfigFile, y as resolveConfigSnapshotHash } from "../io-6EUKoyeO.js";
import { i as shouldAttemptLastKnownGoodRecovery, n as isPluginPackagingRuntimeOutputInvalidConfigSnapshot, r as isPluginPackagingRuntimeOutputIssue, t as isPluginLocalInvalidConfigSnapshot } from "../recovery-policy-CKSxWKv4.js";
import { n as assertConfigWriteAllowedInCurrentMode, t as NixModeConfigMutationError } from "../nix-mode-write-guard-Bl6UkGGQ.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 transformConfigFile, i as replaceConfigFile, n as mutateConfigFile, o as transformConfigFileWithRetry, r as mutateConfigFileWithRetry, t as ConfigMutationConflictError } from "../config-DMP4WGct.js";
import { n as parseToolsBySenderTypedKey, t as TOOLS_BY_SENDER_KEY_TYPES } from "../types.tools-D-bYX-Mw.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, applyConfigOverrides, assertConfigWriteAllowedInCurrentMode, assertSecretInputResolved, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, createConfigIO, getConfigOverrides, getRuntimeConfig, getRuntimeConfigSnapshot, getRuntimeConfigSnapshotMetadata, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, hashRuntimeConfigValue, isModelThinkingFormat, isNixMode, isPluginLocalInvalidConfigSnapshot, isPluginPackagingRuntimeOutputInvalidConfigSnapshot, isPluginPackagingRuntimeOutputIssue, isSecretRef, isValidEnvSecretRefId, loadConfig, mutateConfigFile, mutateConfigFileWithRetry, normalizeResolvedSecretInputString, normalizeSecretInputString, normalizeStateDirEnv, parseConfigJson5, parseEnvTemplateSecretRef, parseLegacySecretRefEnvMarker, parseToolsBySenderTypedKey, projectConfigOntoRuntimeSourceSnapshot, promoteConfigSnapshotToLastKnownGood, readBestEffortConfig, readConfigFileSnapshot, readConfigFileSnapshotForWrite, readConfigFileSnapshotWithPluginMetadata, readSourceConfigBestEffort, readSourceConfigSnapshot, readSourceConfigSnapshotForWrite, recoverConfigFromJsonRootSuffix, recoverConfigFromLastKnownGood, registerConfigWriteListener, replaceConfigFile, resetConfigOverrides, resetConfigRuntimeState, resolveCanonicalConfigPath, resolveConfigPath, resolveConfigPathCandidate, resolveConfigSnapshotHash, resolveConfigWriteAfterWrite, resolveConfigWriteFollowUp, resolveDefaultConfigCandidates, resolveGatewayLockDir, resolveGatewayPort, resolveIncludeRoots, resolveIsNixMode, resolveLegacyStateDir, resolveLegacyStateDirs, resolveNewStateDir, resolveOAuthDir, resolveOAuthPath, resolveRuntimeConfigCacheKey, resolveSecretInputRef, resolveSecretInputString, resolveStateDir, selectApplicableRuntimeConfig, setConfigOverride, setRuntimeConfigSnapshot, setRuntimeConfigSnapshotRefreshHandler, shouldAttemptLastKnownGoodRecovery, transformConfigFile, transformConfigFileWithRetry, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, writeConfigFile };
