openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
31 lines (30 loc) • 5.92 kB
JavaScript
import { i as resolveRequiredHomeDir } from "../home-dir-CjKH62jd.mjs";
import { h as resolveDefaultSecretProviderAlias } from "../ref-contract-D0kWy5jy.mjs";
import { a as coerceSecretRef, o as hasConfiguredSecretInput } from "../types.secrets-BXEuin38.mjs";
import { n as findNormalizedProviderValue } from "../provider-id-BIyeXQag.mjs";
import { a as omitEnvKeysCaseInsensitive } from "../provider-env-vars-Cpd1BNrl.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-DY_g-mT7.mjs";
import { n as CODEX_CLI_PROFILE_ID, t as CLAUDE_CLI_PROFILE_ID } from "../profile-ids-B9fFWPvP.mjs";
import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-DBJvdk-L.mjs";
import { r as hasUsableOAuthCredential, t as DEFAULT_OAUTH_REFRESH_MARGIN_MS } from "../credential-state-BkcsouDD.mjs";
import { n as readCodexCliCredentialsCached } from "../cli-credentials-BaCubPeC.mjs";
import { s as upsertAuthProfile } from "../profiles-4HoYZdiM.mjs";
import { a as resolveAuthProfileOrder, p as listProfilesForProvider } from "../order-CVv16yN9.mjs";
import { r as resolveNonEnvSecretRefApiKeyMarker } from "../provider-credential-values-Cf7LMsFg.mjs";
import { f as resolveOAuthApiKeyMarker, i as MINIMAX_OAUTH_MARKER, n as CUSTOM_LOCAL_AUTH_MARKER, o as isKnownEnvApiKeyMarker, s as isNonSecretApiKeyMarker } from "../model-auth-markers-_1hub14I.mjs";
import { t as resolveEnvApiKey } from "../model-auth-env-CMwk6AGf.mjs";
import { n as ensureAuthProfileStore, r as ensureAuthProfileStoreForLocalUpdate } from "../store-runtime-CGMnCh1h.mjs";
import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-DI8lHBjj.mjs";
import { t as normalizeApiKeyConfig } from "../models-config.providers.secret-helpers-D6N-YAt6.mjs";
import { i as resolveProviderAuthProfileApiKey, n as isProviderAuthProfileConfigured, r as listUsableProviderAuthProfileIds, t as isProviderApiKeyConfigured } from "../provider-auth-availability-Def9yjI2.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-C8eJEO7a.mjs";
import { a as upsertApiKeyProfile, n as buildApiKeyCredential, o as writeOAuthCredentials, t as applyAuthProfileConfig } from "../provider-auth-helpers-BuFDRF5X.mjs";
import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-7FOSjRoY.mjs";
import { n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-BeyfINaZ.mjs";
import { a as normalizeGithubCopilotDomain, i as readClaudeCliCredentialsCached, n as deriveCopilotApiBaseUrlFromToken, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "../provider-auth-DgA3mFGd.mjs";
import { n as updateAuthProfileStoreWithLockCompat, r as upsertAuthProfileWithLockCompat, t as removeProviderAuthProfilesWithLockCompat } from "../provider-auth-write-compat-DeDKxzVl.mjs";
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-BOOS-kr6.mjs";
import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-BrLjJmJp.mjs";
import { n as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-Be2lyTmK.mjs";
import { t as buildOauthProviderAuthResult } from "../provider-auth-result-CRKbQH1K.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_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 };