import { o as resolveRequiredHomeDir } from "../home-dir-Be-LF1OW.js";
import { o as coerceSecretRef, s as hasConfiguredSecretInput } from "../types.secrets-Bif8UgOj.js";
import { l as resolveDefaultSecretProviderAlias } from "../ref-contract-CUNJwCq3.js";
import { i as omitEnvKeysCaseInsensitive, n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-DxKLuBtA.js";
import { a as CLAUDE_CLI_PROFILE_ID, o as CODEX_CLI_PROFILE_ID } from "../store-cache-wjkL73Rc.js";
import { I as readClaudeCliCredentialsCached, L as readCodexCliCredentialsCached, M as DEFAULT_OAUTH_REFRESH_MARGIN_MS, P as hasUsableOAuthCredential, n as ensureAuthProfileStore, p as updateAuthProfileStoreWithLock, r as ensureAuthProfileStoreForLocalUpdate } from "../store-3g0Tgl72.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-Dq4sI9be.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-C4pX5roM.js";
import { t as resolveEnvApiKey } from "../model-auth-env-iSgUWPmR.js";
import { r as normalizeApiKeyConfig } from "../models-config.providers.secrets-FWqaZOpP.js";
import { n as listProfilesForProvider } from "../profile-list-BmYS1ZtN.js";
import { i as removeProviderAuthProfilesWithLock, o as upsertAuthProfile, s as upsertAuthProfileWithLock } from "../profiles-UFvLVeMq.js";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-BlW4q3fA.js";
import { a as COPILOT_USER_AGENT, i as COPILOT_INTEGRATION_ID, n as COPILOT_EDITOR_VERSION, r as COPILOT_GITHUB_API_VERSION, s as buildCopilotIdeHeaders, t as COPILOT_EDITOR_PLUGIN_VERSION } from "../copilot-dynamic-headers-BynVdP_r.js";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-Bpwdwrec.js";
import { n as promptSecretRefForSetup } from "../provider-auth-ref-CWvsriQY.js";
import { a as normalizeSecretInputModeInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as validateApiKeyInput, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-BHBkNIv5.js";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-DZJq9TZ9.js";
import { i as writeOAuthCredentials, n as buildApiKeyCredential, r as upsertApiKeyProfile, t as applyAuthProfileConfig } from "../provider-auth-helpers-DhfGzwFj.js";
import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-mfBCub50.js";
import { t as resolveKlawAgentDir } from "../agent-dir-compat-BZv9ojni.js";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-DLulvaD6.js";
import { a as listUsableProviderAuthProfileIds, c as generateHexPkceVerifierChallenge, i as isProviderAuthProfileConfigured, l as generatePkceVerifierChallenge, n as deriveCopilotApiBaseUrlFromToken, o as resolveCopilotApiToken, r as isProviderApiKeyConfigured, s as resolveProviderAuthProfileApiKey, t as DEFAULT_COPILOT_API_BASE_URL, u as toFormUrlEncoded } from "../provider-auth-CMrH-R8H.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, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, deriveCopilotApiBaseUrlFromToken, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreForLocalUpdate, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeOptionalSecretInput, normalizeSecretInput, normalizeSecretInputModeInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLock, resolveCopilotApiToken, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveKlawAgentDir, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };
