import { o as resolveRequiredHomeDir } from "../home-dir-DxrrpDft.js";
import { c as hasConfiguredSecretInput, s as coerceSecretRef } from "../types.secrets-Ck44SCc-.js";
import { c as resolveDefaultSecretProviderAlias } from "../ref-contract-BMCv3f1H.js";
import { i as omitEnvKeysCaseInsensitive, n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-DjpkonkD.js";
import { D as CODEX_CLI_PROFILE_ID, E as CLAUDE_CLI_PROFILE_ID } from "../persisted-CoXqnI99.js";
import { c as isNonSecretApiKeyMarker, f as resolveNonEnvSecretRefApiKeyMarker, i as MINIMAX_OAUTH_MARKER, m as resolveOAuthApiKeyMarker, n as CUSTOM_LOCAL_AUTH_MARKER, s as isKnownEnvApiKeyMarker } from "../model-auth-markers-eE-59iVv.js";
import { f as COPILOT_EDITOR_PLUGIN_VERSION, g as COPILOT_USER_AGENT, h as COPILOT_INTEGRATION_ID, m as COPILOT_GITHUB_API_VERSION, p as COPILOT_EDITOR_VERSION, v as buildCopilotIdeHeaders } from "../provider-request-config-C8QSmO3a.js";
import { o as readClaudeCliCredentialsCached, s as readCodexCliCredentialsCached } from "../external-auth-TOPggvoi.js";
import { r as hasUsableOAuthCredential, t as DEFAULT_OAUTH_REFRESH_MARGIN_MS } from "../credential-state-DjUiSeK9.js";
import { a as ensureAuthProfileStoreForLocalUpdate, i as ensureAuthProfileStore, v as updateAuthProfileStoreWithLock } from "../store-DjTDfSWq.js";
import { s as normalizeGithubCopilotDomain } from "../oauth-Bl9t2WoU.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-Df_qhWv_.js";
import { a as removeProviderAuthProfilesWithLock, c as upsertAuthProfileWithLock, s as upsertAuthProfile } from "../profiles-C1d4jp_L.js";
import { n as listProfilesForProvider } from "../profile-list-D--1yOBY.js";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-F3Q9N4bh.js";
import { t as resolveEnvApiKey } from "../model-auth-env--dn97-tg.js";
import { r as normalizeApiKeyConfig } from "../models-config.providers.secrets-Cz36YCR9.js";
import { a as listUsableProviderAuthProfileIds, c as generateHexPkceVerifierChallenge, d as buildOpenAICodexCredentialExtra, f as decodeOpenAICodexJwtPayload, h as resolveOpenAICodexImportProfileName, i as isProviderAuthProfileConfigured, l as generatePkceVerifierChallenge, m as resolveOpenAICodexAuthIdentity, n as deriveCopilotApiBaseUrlFromToken, o as resolveCopilotApiToken, p as resolveOpenAICodexAccessTokenExpiry, r as isProviderApiKeyConfigured, s as resolveProviderAuthProfileApiKey, t as DEFAULT_COPILOT_API_BASE_URL, u as toFormUrlEncoded } from "../provider-auth-ShvzbnnU.js";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-7FOSjRoY.js";
import { n as promptSecretRefForSetup } from "../provider-auth-ref-LocIors3.js";
import { a as normalizeSecretInputModeInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as validateApiKeyInput, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-Bbw4wVEI.js";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-DyHOhkct.js";
import { i as writeOAuthCredentials, n as buildApiKeyCredential, r as upsertApiKeyProfile, t as applyAuthProfileConfig } from "../provider-auth-helpers-CJTwvkLl.js";
import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-CM5oetcC.js";
import { t as resolveOpenClawAgentDir } from "../agent-dir-compat-CCE1JfuT.js";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-HnJJAjcD.js";
export { CLAUDE_CLI_PROFILE_ID, CODEX_CLI_PROFILE_ID, COPILOT_EDITOR_PLUGIN_VERSION, COPILOT_EDITOR_VERSION, COPILOT_GITHUB_API_VERSION, COPILOT_INTEGRATION_ID, COPILOT_USER_AGENT, CUSTOM_LOCAL_AUTH_MARKER, DEFAULT_COPILOT_API_BASE_URL, DEFAULT_OAUTH_REFRESH_MARGIN_MS, MINIMAX_OAUTH_MARKER, applyAuthProfileConfig, buildApiKeyCredential, buildCopilotIdeHeaders, buildOauthProviderAuthResult, buildOpenAICodexCredentialExtra, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, decodeOpenAICodexJwtPayload, deriveCopilotApiBaseUrlFromToken, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreForLocalUpdate, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeGithubCopilotDomain, normalizeOptionalSecretInput, normalizeSecretInput, normalizeSecretInputModeInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLock, resolveCopilotApiToken, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenAICodexAccessTokenExpiry, resolveOpenAICodexAuthIdentity, resolveOpenAICodexImportProfileName, resolveOpenClawAgentDir, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };
