import { o as resolveRequiredHomeDir } from "../home-dir-DVzO3f_c.js";
import { a as coerceSecretRef, o as hasConfiguredSecretInput } from "../types.secrets-CwOir82x.js";
import { l as resolveDefaultSecretProviderAlias } from "../ref-contract-RR2KmPqX.js";
import { i as omitEnvKeysCaseInsensitive, n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-D9cak_em.js";
import { E as hasUsableOAuthCredential, M as CLAUDE_CLI_PROFILE_ID, N as CODEX_CLI_PROFILE_ID, O as readClaudeCliCredentialsCached, n as ensureAuthProfileStore, p as updateAuthProfileStoreWithLock, r as ensureAuthProfileStoreForLocalUpdate, w as DEFAULT_OAUTH_REFRESH_MARGIN_MS } from "../store-B25JueFs.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-SpJU-oRG.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-DuQXoOUa.js";
import { t as resolveEnvApiKey } from "../model-auth-env-DKl7x7Lc.js";
import { r as normalizeApiKeyConfig } from "../models-config.providers.secrets-BUWg8tmw.js";
import { n as listProfilesForProvider } from "../profile-list-BAnTZRL_.js";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-DV1aQUmG.js";
import { a as upsertAuthProfile, o as upsertAuthProfileWithLock, r as removeProviderAuthProfilesWithLock } from "../profiles-CD4i4629.js";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-BJjqDZKT.js";
import { n as promptSecretRefForSetup } from "../provider-auth-ref-DNipENxa.js";
import { a as normalizeSecretInputModeInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as validateApiKeyInput, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-C3tV01BI.js";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-CZ243okU.js";
import { i as writeOAuthCredentials, n as buildApiKeyCredential, r as upsertApiKeyProfile, t as applyAuthProfileConfig } from "../provider-auth-helpers-BSjYjFoV.js";
import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-DzMcSXZG.js";
import { a as DEFAULT_COPILOT_API_BASE_URL, c as isProviderApiKeyConfigured, d as resolveCopilotApiToken, f as resolveProviderAuthProfileApiKey, g as resolveOpenClawAgentDir, h as toFormUrlEncoded, i as COPILOT_USER_AGENT, l as isProviderAuthProfileConfigured, m as generatePkceVerifierChallenge, n as COPILOT_EDITOR_VERSION, o as buildCopilotIdeHeaders, p as generateHexPkceVerifierChallenge, r as COPILOT_GITHUB_API_VERSION, s as deriveCopilotApiBaseUrlFromToken, t as COPILOT_EDITOR_PLUGIN_VERSION, u as listUsableProviderAuthProfileIds } from "../provider-auth-xmozx9bh.js";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-B4UXR9TI.js";
export { CLAUDE_CLI_PROFILE_ID, CODEX_CLI_PROFILE_ID, COPILOT_EDITOR_PLUGIN_VERSION, COPILOT_EDITOR_VERSION, COPILOT_GITHUB_API_VERSION, 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, removeProviderAuthProfilesWithLock, resolveCopilotApiToken, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenClawAgentDir, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };
