UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

24 lines (23 loc) • 5.24 kB
import { o as resolveRequiredHomeDir } from "../home-dir-BjcCg_IW.js"; import { c as hasConfiguredSecretInput, s as coerceSecretRef } from "../types.secrets-BHLVnd7g.js"; import { c as resolveDefaultSecretProviderAlias } from "../ref-contract-DdmKY2cF.js"; import { i as omitEnvKeysCaseInsensitive, n as listKnownProviderAuthEnvVarNames } from "../provider-env-vars-CUa7WBrj.js"; import { B as CLAUDE_CLI_PROFILE_ID, F as hasUsableOAuthCredential, L as readClaudeCliCredentialsCached, N as DEFAULT_OAUTH_REFRESH_MARGIN_MS, R as readCodexCliCredentialsCached, V as CODEX_CLI_PROFILE_ID, m as updateAuthProfileStoreWithLock, n as ensureAuthProfileStore, r as ensureAuthProfileStoreForLocalUpdate } from "../store-DcJR3uqo.js"; import { n as normalizeSecretInput, t as normalizeOptionalSecretInput } from "../normalize-secret-input-JuG5HlWn.js"; import { i as removeProviderAuthProfilesWithLock, o as upsertAuthProfile, s as upsertAuthProfileWithLock } from "../profiles-BwfiFFgM.js"; import { n as listProfilesForProvider } from "../profile-list-JYs96RWi.js"; import { n as suggestOAuthProfileIdForLegacyDefault } from "../repair-CJgw4P2N.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-CF9zPORX.js"; import { d as isNonSecretApiKeyMarker, g as resolveNonEnvSecretRefApiKeyMarker, i as MINIMAX_OAUTH_MARKER, n as CUSTOM_LOCAL_AUTH_MARKER, u as isKnownEnvApiKeyMarker, v as resolveOAuthApiKeyMarker } from "../model-auth-markers-B2ymkRS2.js"; import { t as resolveEnvApiKey } from "../model-auth-env-C63WdfwU.js"; import { r as normalizeApiKeyConfig } from "../models-config.providers.secrets-CeFxmJRk.js"; import { t as resolveSecretInputModeForEnvSelection } from "../provider-auth-mode-7FOSjRoY.js"; import { n as promptSecretRefForSetup } from "../provider-auth-ref-DwjY_niY.js"; import { a as normalizeSecretInputModeInput, i as normalizeApiKeyInput, n as ensureApiKeyFromOptionEnvOrPrompt, r as formatApiKeyPreview, s as validateApiKeyInput, t as ensureApiKeyFromEnvOrPrompt } from "../provider-auth-input-BABUy6nS.js"; import { n as validateAnthropicSetupToken, t as buildTokenProfileId } from "../provider-auth-token-CH0Wu93I.js"; import { i as writeOAuthCredentials, n as buildApiKeyCredential, r as upsertApiKeyProfile, t as applyAuthProfileConfig } from "../provider-auth-helpers-MdcZ3zId.js"; import { t as createProviderApiKeyAuthMethod } from "../provider-api-key-auth-CQbVPrJg.js"; import { t as resolveOpenClawAgentDir } from "../agent-dir-compat-TFbN3Urf.js"; import { t as buildOauthProviderAuthResult } from "../provider-auth-result-BLjxnmRU.js"; import { a as listUsableProviderAuthProfileIds, c as generateHexPkceVerifierChallenge, d as buildOpenAICodexCredentialExtra, f as decodeOpenAICodexJwtPayload, h as resolveOpenAICodexImportProfileName, i as isProviderAuthProfileConfigured, l as generatePkceVerifierChallenge, m as resolveOpenAICodexAuthIdentity, n as deriveCopilotApiBaseUrlFromToken, o as resolveCopilotApiToken, p as resolveOpenAICodexAccessTokenExpiry, r as isProviderApiKeyConfigured, s as resolveProviderAuthProfileApiKey, t as DEFAULT_COPILOT_API_BASE_URL, u as toFormUrlEncoded } from "../provider-auth-BKShWMoo.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, formatApiKeyPreview, generateHexPkceVerifierChallenge, generatePkceVerifierChallenge, hasConfiguredSecretInput, hasUsableOAuthCredential, isKnownEnvApiKeyMarker, isNonSecretApiKeyMarker, isProviderApiKeyConfigured, isProviderAuthProfileConfigured, listKnownProviderAuthEnvVarNames, listProfilesForProvider, listUsableProviderAuthProfileIds, normalizeApiKeyConfig, normalizeApiKeyInput, normalizeOptionalSecretInput, normalizeSecretInput, normalizeSecretInputModeInput, omitEnvKeysCaseInsensitive, promptSecretRefForSetup, readClaudeCliCredentialsCached, readCodexCliCredentialsCached, removeProviderAuthProfilesWithLock, resolveCopilotApiToken, resolveDefaultSecretProviderAlias, resolveEnvApiKey, resolveNonEnvSecretRefApiKeyMarker, resolveOAuthApiKeyMarker, resolveOpenAICodexAccessTokenExpiry, resolveOpenAICodexAuthIdentity, resolveOpenAICodexImportProfileName, resolveOpenClawAgentDir, resolveProviderAuthProfileApiKey, resolveRequiredHomeDir, resolveSecretInputModeForEnvSelection, suggestOAuthProfileIdForLegacyDefault, toFormUrlEncoded, updateAuthProfileStoreWithLock, upsertApiKeyProfile, upsertAuthProfile, upsertAuthProfileWithLock, validateAnthropicSetupToken, validateApiKeyInput, writeOAuthCredentials };