openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
31 lines (30 loc) • 6.31 kB
JavaScript
import { a as resolveRequiredHomeDir } from "../home-dir-EKmgmdPG.mjs";
import { h as resolveDefaultSecretProviderAlias } from "../ref-contract-b8L-9DrQ.mjs";
import { a as coerceSecretRef, o as hasConfiguredSecretInput } from "../types.secrets-BmNLLnHp.mjs";
import { n as findNormalizedProviderValue } from "../provider-id-b5XGSf9C.mjs";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-Cxkx67Fv.mjs";
import { n as CODEX_CLI_PROFILE_ID, t as CLAUDE_CLI_PROFILE_ID } from "../profile-ids-B9fFWPvP.mjs";
import { a as omitEnvKeysCaseInsensitive } from "../provider-env-vars-DPvuIf4v.mjs";
import { r as hasUsableOAuthCredential, t as DEFAULT_OAUTH_REFRESH_MARGIN_MS } from "../credential-state-BiAE74F8.mjs";
import { a as resolveAuthProfileOrder, f as listProfilesForProvider } from "../order-jOvee2J6.mjs";
import { r as resolveNonEnvSecretRefApiKeyMarker } from "../provider-credential-values-pLjdcwQh.mjs";
import { c as isKnownEnvApiKeyMarker, i as MINIMAX_OAUTH_MARKER, l as isNonSecretApiKeyMarker, m as resolveOAuthApiKeyMarker, n as CUSTOM_LOCAL_AUTH_MARKER } from "../model-auth-markers-4YSUG71a.mjs";
import { a as readCodexCliCredentialsCached, u as readClaudeCliCredentialsCached } from "../cli-credentials-BaPg7qWx.mjs";
import { t as resolveEnvApiKey } from "../model-auth-env-kbpGo8fU.mjs";
import { a as ensureAuthProfileStoreForLocalUpdate, f as loadAuthProfileStoreForRuntimeAsync, i as ensureAuthProfileStoreAsync, o as ensureAuthProfileStoreForLocalUpdateAsync, r as ensureAuthProfileStore } from "../store-runtime-dW0pXLJI.mjs";
import { a as resolveOpenAICodexImportProfileName, c as toFormUrlEncoded, i as resolveOpenAICodexAuthIdentity, n as decodeOpenAICodexJwtPayload, o as generateHexPkceVerifierChallenge, r as resolveOpenAICodexAccessTokenExpiry, s as generatePkceVerifierChallenge, t as buildOpenAICodexCredentialExtra } from "../provider-openai-chatgpt-auth-Lx-WyDpB.mjs";
import { t as normalizeApiKeyConfig } from "../models-config.providers.secret-helpers-D-ksd1i8.mjs";
import { c as upsertAuthProfileAsync, s as upsertAuthProfile } from "../profiles-DbLHYG1P.mjs";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-O0s3O0SG.mjs";
import { a as upsertApiKeyProfile, n as buildApiKeyCredential, o as upsertApiKeyProfileAsync, s as writeOAuthCredentials, t as applyAuthProfileConfig } from "../provider-auth-helpers-ByDXB7Po.mjs";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-BEzA0d9m.mjs";
import { a as listUsableProviderAuthProfileIds, i as isProviderAuthProfileConfiguredAsync, n as isProviderApiKeyConfiguredAsync, o as listUsableProviderAuthProfileIdsAsync, r as isProviderAuthProfileConfigured, s as resolveProviderAuthProfileApiKey, t as isProviderApiKeyConfigured } from "../provider-auth-availability-Bv9WFzc3.mjs";
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-COHsAEZl.mjs";
import { n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-BG9P6xMr.mjs";
import { n as normalizeGithubCopilotDomain, t as applyProviderAuthConfigPatch } from "../provider-auth-D_oAZ3fr.mjs";
import { n as updateAuthProfileStoreWithLockCompat, r as upsertAuthProfileWithLockCompat, t as removeProviderAuthProfilesWithLockCompat } from "../provider-auth-write-compat-a9sIepqY.mjs";
import { a as promptSecretRefForSetup, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, o as validateApiKeyInput, r as formatApiKeyPreview, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-D0pfNbEZ.mjs";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-CEoV5Js5.mjs";
import { n as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-B0AQ5Vpx.mjs";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-Br3rDHr2.mjs";
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_OAUTH_REFRESH_MARGIN_MS, MINIMAX_OAUTH_MARKER, applyAuthProfileConfig, applyProviderAuthConfigPatch, buildApiKeyCredential, buildCopilotIdeHeaders, buildOauthProviderAuthResult, buildOpenAICodexCredentialExtra, buildTokenProfileId, coerceSecretRef, createProviderApiKeyAuthMethod, decodeOpenAICodexJwtPayload, ensureApiKeyFromEnvOrPrompt, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, ensureAuthProfileStoreAsync, ensureAuthProfileStoreForLocalUpdate, ensureAuthProfileStoreForLocalUpdateAsync, findNormalizedProviderValue, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderApiKeyConfiguredAsync, isProviderAuthProfileConfigured, isProviderAuthProfileConfiguredAsync, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, listUsableProviderAuthProfileIdsAsync, loadAuthProfileStoreForRuntimeAsync, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeGithubCopilotDomain, normalizeOptionalSecretInput, normalizeSecretInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLockCompat as removeProviderAuthProfilesWithLock, resolveAuthProfileOrder, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenAICodexAccessTokenExpiry, resolveOpenAICodexAuthIdentity, resolveOpenAICodexImportProfileName, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLockCompat as updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertApiKeyProfileAsync, upsertAuthProfile, upsertAuthProfileAsync, upsertAuthProfileWithLockCompat as upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };