openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 6.05 kB
JavaScript
import{a as resolveRequiredHomeDir}from"../home-dir-DEN5DisQ.mjs";import{h as resolveDefaultSecretProviderAlias}from"../ref-contract-CdpCUlb6.mjs";import{a as coerceSecretRef,o as hasConfiguredSecretInput}from"../types.secrets-UWdyCdE6.mjs";import{n as findNormalizedProviderValue}from"../provider-id-A-8WTtLA.mjs";import{n as normalizeSecretInput,t as normalizeOptionalSecretInput}from"../normalize-secret-input-CEFJUjQX.mjs";import{n as CODEX_CLI_PROFILE_ID,t as CLAUDE_CLI_PROFILE_ID}from"../profile-ids-CZ5PgZfr.mjs";import{a as omitEnvKeysCaseInsensitive}from"../provider-env-vars-CSXML2JF.mjs";import{r as hasUsableOAuthCredential,t as DEFAULT_OAUTH_REFRESH_MARGIN_MS}from"../credential-state-C3XZhGc-.mjs";import{r as resolveNonEnvSecretRefApiKeyMarker}from"../provider-credential-values-BjeBUyPy.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-Dc97K3d8.mjs";import{m as readClaudeCliCredentialsCached,u as readCodexCliCredentialsCached}from"../external-cli-sync-C2s6hWdT.mjs";import{a as resolveAuthProfileOrder,f as listProfilesForProvider}from"../order-B8e_5ABM.mjs";import{t as resolveEnvApiKey}from"../model-auth-env-B6Hhnpzd.mjs";import{a as ensureAuthProfileStoreForLocalUpdate,f as loadAuthProfileStoreForRuntimeAsync,i as ensureAuthProfileStoreAsync,o as ensureAuthProfileStoreForLocalUpdateAsync,r as ensureAuthProfileStore}from"../store-runtime-GNz-2GjY.mjs";import{n as generatePkceVerifierChallenge,r as toFormUrlEncoded,t as generateHexPkceVerifierChallenge}from"../oauth-utils-CSVUYwgv.mjs";import{a as resolveOpenAICodexImportProfileName,i as resolveOpenAICodexAuthIdentity,n as decodeOpenAICodexJwtPayload,r as resolveOpenAICodexAccessTokenExpiry,t as buildOpenAICodexCredentialExtra}from"../provider-openai-chatgpt-auth-CWCvozl_.mjs";import{t as normalizeApiKeyConfig}from"../models-config.providers.secret-helpers-D5htCv0-.mjs";import{c as upsertAuthProfileAsync,s as upsertAuthProfile}from"../profiles-Bp0-JifZ.mjs";import{n as suggestOAuthProfileIdForLegacyDefault}from"../repair-C0j0sRhV.mjs";import{a as upsertApiKeyProfile,n as buildApiKeyCredential,o as upsertApiKeyProfileAsync,s as writeOAuthCredentials,t as applyAuthProfileConfig}from"../provider-auth-helpers-5o5rkp5c.mjs";import{t as resolveSecretInputModeForEnvSelection}from"../provider-auth-mode-Mr8tURVS.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-7D9wV2fA.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-BcdrxLsU.mjs";import{n as listKnownProviderAuthEnvVarNames}from"../provider-env-vars-B8FMgrbf.mjs";import{n as normalizeGithubCopilotDomain,t as applyProviderAuthConfigPatch}from"../provider-auth-Czspvb3-.mjs";import{n as updateAuthProfileStoreWithLockCompat,r as upsertAuthProfileWithLockCompat,t as removeProviderAuthProfilesWithLockCompat}from"../provider-auth-write-compat-iCHCUMSb.mjs";import{a as promptSecretRefForSetup,i as normalizeApiKeyInput,n as ensureApiKeyFromOptionEnvOrPrompt,o as validateApiKeyInput,r as formatApiKeyPreview,t as ensureApiKeyFromEnvOrPrompt}from"../provider-auth-input-CVgsbUtO.mjs";import{n as validateAnthropicSetupToken,t as buildTokenProfileId}from"../provider-auth-token-kKebY-yg.mjs";import{n as createProviderApiKeyAuthMethod}from"../provider-api-key-auth-BXg13tJg.mjs";import{t as buildOauthProviderAuthResult}from"../provider-auth-result-BR7b9AE1.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};