openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
30 lines (29 loc) • 5.82 kB
JavaScript
import { o as resolveRequiredHomeDir } from "../home-dir-BPhrG-aM.js";
import { n as findNormalizedProviderValue } from "../provider-id-DMd-TDFp.js";
import { l as hasConfiguredSecretInput, s as coerceSecretRef } from "../types.secrets-kC0nOetj.js";
import { u as resolveDefaultSecretProviderAlias } from "../ref-contract-D92DqQ-r.js";
import { i as omitEnvKeysCaseInsensitive, n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-B8XgJCSL.js";
import { a as resolveOpenAICodexImportProfileName, i as resolveOpenAICodexAuthIdentity, n as decodeOpenAICodexJwtPayload, r as resolveOpenAICodexAccessTokenExpiry, t as buildOpenAICodexCredentialExtra } from "../provider-openai-chatgpt-auth-BoLGEnud.js";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-Df_qhWv_.js";
import { M as CLAUDE_CLI_PROFILE_ID, N as CODEX_CLI_PROFILE_ID } from "../persisted-B_qhhBlh.js";
import { r as hasUsableOAuthCredential, t as DEFAULT_OAUTH_REFRESH_MARGIN_MS } from "../credential-state-N1MIGw99.js";
import { n as readCodexCliCredentialsCached } from "../cli-credentials-CHuqM5pH.js";
import { i as ensureAuthProfileStoreForLocalUpdate, r as ensureAuthProfileStore } from "../store-F1B2duCT.js";
import { c as upsertAuthProfile } from "../profiles-DOTqXcYA.js";
import { n as listProfilesForProvider } from "../profile-list-DyfWX-d2.js";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-DXThsgJF.js";
import { a as resolveAuthProfileOrder } from "../order-CC2RBzI5.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-jBKQn38x.js";
import { t as resolveEnvApiKey } from "../model-auth-env-Dq9W4xg9.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-C42FH9jo.js";
import { i as resolveProviderAuthProfileApiKey, n as isProviderAuthProfileConfigured, r as listUsableProviderAuthProfileIds, t as isProviderApiKeyConfigured } from "../provider-auth-availability-BUrlw84-.js";
import { t as normalizeApiKeyConfig } from "../models-config.providers.secret-helpers-DC_SfKyR.js";
import { a as generatePkceVerifierChallenge, c as normalizeGithubCopilotDomain, i as generateHexPkceVerifierChallenge, n as deriveCopilotApiBaseUrlFromToken, o as toFormUrlEncoded, r as resolveCopilotApiToken, s as readClaudeCliCredentialsCached, t as DEFAULT_COPILOT_API_BASE_URL } from "../provider-auth-BeZ7NZUU.js";
import { n as updateAuthProfileStoreWithLockCompat, r as upsertAuthProfileWithLockCompat, t as removeProviderAuthProfilesWithLockCompat } from "../provider-auth-write-compat-B_rokROR.js";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-7FOSjRoY.js";
import { a as normalizeSecretInputModeInput, c as validateApiKeyInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as promptSecretRefForSetup, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-B4MRIGbK.js";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-BocDZcXC.js";
import { a as upsertApiKeyProfile, n as buildApiKeyCredential, o as writeOAuthCredentials, t as applyAuthProfileConfig } from "../provider-auth-helpers-CaYTVMoC.js";
import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-mNtReYE0.js";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-BJQq6asp.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, findNormalizedProviderValue, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeGithubCopilotDomain, normalizeOptionalSecretInput, normalizeSecretInput, normalizeSecretInputModeInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLockCompat as removeProviderAuthProfilesWithLock, resolveAuthProfileOrder, resolveCopilotApiToken, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenAICodexAccessTokenExpiry, resolveOpenAICodexAuthIdentity, resolveOpenAICodexImportProfileName, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLockCompat as updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLockCompat as upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };