import { o as resolveRequiredHomeDir } from "../home-dir-g5LU3LmA.js";
import { a as coerceSecretRef, o as hasConfiguredSecretInput } from "../types.secrets-BHp0Y_k0.js";
import { l as resolveDefaultSecretProviderAlias } from "../ref-contract-DtvCiPbj.js";
import { a as omitEnvKeysCaseInsensitive, r as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-DdQPXuAI.js";
import { C as DEFAULT_OAUTH_REFRESH_MARGIN_MS, D as readClaudeCliCredentialsCached, M as CODEX_CLI_PROFILE_ID, T as hasUsableOAuthCredential, f as updateAuthProfileStoreWithLock, j as CLAUDE_CLI_PROFILE_ID, n as ensureAuthProfileStore, r as ensureAuthProfileStoreForLocalUpdate } from "../store-BiKyivJC.js";
import { t as resolveOpenClawAgentDir } from "../agent-paths-B_wzQ6Ed.js";
import { _ as resolveOAuthApiKeyMarker, h as resolveNonEnvSecretRefApiKeyMarker, l as isKnownEnvApiKeyMarker, r as MINIMAX_OAUTH_MARKER, t as CUSTOM_LOCAL_AUTH_MARKER, u as isNonSecretApiKeyMarker } from "../model-auth-markers-HKxaTYl8.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-BBVMiIqq.js";
import { t as resolveEnvApiKey } from "../model-auth-env-zigQ8YOz.js";
import { r as normalizeApiKeyConfig } from "../models-config.providers.secrets-D21-1iFH.js";
import { n as listProfilesForProvider } from "../profile-list-Brv-7ky1.js";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-DJ315p_D.js";
import { a as upsertAuthProfileWithLock, i as upsertAuthProfile, n as removeProviderAuthProfilesWithLock } from "../profiles-ConQ6oFg.js";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-YAUqVwur.js";
import { n as promptSecretRefForSetup } from "../provider-auth-ref-9loW5bQM.js";
import { a as normalizeSecretInputModeInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as validateApiKeyInput, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-BVB2BB_P.js";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-Cy1VJEwe.js";
import { i as writeOAuthCredentials, n as buildApiKeyCredential, r as upsertApiKeyProfile, t as applyAuthProfileConfig } from "../provider-auth-helpers-7re-p5C0.js";
import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-KHklus-s.js";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-DOeLgCn0.js";
import { a as generateHexPkceVerifierChallenge, i as resolveProviderAuthProfileApiKey, n as isProviderAuthProfileConfigured, o as generatePkceVerifierChallenge, r as listUsableProviderAuthProfileIds, s as toFormUrlEncoded, t as isProviderApiKeyConfigured } from "../provider-auth-DbAm5fnL.js";
export { CLAUDE_CLI_PROFILE_ID, CODEX_CLI_PROFILE_ID, CUSTOM_LOCAL_AUTH_MARKER, DEFAULT_OAUTH_REFRESH_MARGIN_MS, MINIMAX_OAUTH_MARKER, applyAuthProfileConfig, buildApiKeyCredential, buildOauthProviderAuthResult, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreForLocalUpdate, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeOptionalSecretInput, normalizeSecretInput, normalizeSecretInputModeInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, removeProviderAuthProfilesWithLock, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenClawAgentDir, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };
