openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
35 lines (34 loc) • 6.41 kB
JavaScript
import { _ as resolveDefaultAgentId, a as resolveAgentDir, f as resolveAgentWorkspaceDir, g as resolveDefaultAgentDir, r as resolveAgentConfig } from "../agent-scope-config-DmXgFGKP.mjs";
import { A as resolveProfileUnusableUntilForDisplay, _ as clearExpiredCooldowns, j as resolveProfilesUnavailableReason, w as isProfileInCooldown } from "../user-model-account-authority-CRj924IP.mjs";
import { i as DEFAULT_PROVIDER } from "../defaults-BWyoTPqn.mjs";
import { i as resolveProviderIdForAuth } from "../provider-auth-aliases-CgGlzANu.mjs";
import { a as resolveAgentEffectiveModelPrimary, h as setAgentEffectiveModelPrimary } from "../agent-scope-BwB8YH6y.mjs";
import { C as findModelInCatalog, i as buildModelAliasIndex, r as buildConfiguredModelCatalog, y as resolveModelRefFromString } from "../model-selection-shared-9Kz63Hhm.mjs";
import { n as parseModelRef, t as findNormalizedProviderValue } from "../model-selection-normalize-DIZCRGVF.mjs";
import { n as resolveDefaultModelForAgent } from "../model-selection-config-Bvf5WqHo.mjs";
import { a as isPendingOAuthRefreshFence, o as isSameOAuthRefreshGeneration } from "../oauth-refresh-marker-Bm1Qb0ET.mjs";
import { O as replaceRuntimeAuthProfileStoreSnapshots, k as replaceRuntimeAuthProfileStoreSnapshotsAsync, r as clearRuntimeAuthProfileStoreSnapshots } from "../runtime-snapshots-1lyYKb7Y.mjs";
import { n as jsonResult } from "../tool-results-CcV0sxnb.mjs";
import { c as readNonNegativeIntegerParam, f as readStringArrayParam, m as readToolStringParam, u as readPositiveIntegerParam } from "../common-njQNtpnW.mjs";
import { t as resolveAllowedModelRefCore } from "../model-selection-resolve-CyMfPqoi.mjs";
import { r as resolveThinkingDefaultCore } from "../model-thinking-default-DTaWSs8g.mjs";
import { a as resolveAuthProfileOrder, f as listProfilesForProvider, i as resolveAuthProfileEligibility } from "../order-jOvee2J6.mjs";
import { t as CODEX_APP_SERVER_AUTH_MARKER } from "../model-auth-markers-4YSUG71a.mjs";
import { c as resolvePersistedAuthProfileOwnerAgentDir, i as findPersistedAuthProfileCredential } from "../store-Bh2lUvOT.mjs";
import { b as saveAuthProfileStore, d as loadAuthProfileStoreForRuntime, f as loadAuthProfileStoreForRuntimeAsync, g as loadAuthProfileStoreWithoutExternalProfilesAsync, h as loadAuthProfileStoreWithoutExternalProfiles, i as ensureAuthProfileStoreAsync, l as findPersistedAuthProfileCredentialAsync, p as loadAuthProfileStoreForSecretsRuntime, r as ensureAuthProfileStore, y as resolvePersistedAuthProfileOwnerAgentDirAsync } from "../store-runtime-dW0pXLJI.mjs";
import { a as resolveIdentityNamePrefix, i as resolveHumanDelayConfig, n as resolveAgentIdentity, t as resolveAckReaction } from "../identity-Cd2mxvzm.mjs";
import { r as resolveAuthStorePathForDisplay } from "../paths-BSElhsGi.mjs";
import { r as modelSupportsVision } from "../model-catalog-ZbVopayG.mjs";
import { f as refreshExpiredPreparedModelCatalog } from "../prepared-model-catalog-DSktrHGK.mjs";
import { t as resolveAgentAvatar } from "../identity-avatar-Qmb94vA6.mjs";
import { n as resolveApiKeyForProfile, t as refreshOAuthCredentialForRuntime } from "../oauth--EeX6RHc.mjs";
import { t as markAuthProfileBlockedUntil } from "../usage-wMHUW27k.mjs";
import { _ as resolveTtsPrefsPath, m as resolveTtsConfig, v as resolveTtsPrefsPathAsync } from "../tts-settings-DMe0GS9W.mjs";
import { r as resolveSessionAgentIdsCompatibility, t as listAgentIdsCompatibility } from "../agent-scope-runtime-CDpr-vor.mjs";
import { t as resolveApiKeyForProviderCore } from "../model-auth-provider-CRnOp_fz.mjs";
import { c as extractEmbeddedAssistantText, d as formatReasoningMessage } from "../embedded-agent-utils-CRYA6mcb.mjs";
import { t as EmbeddedBlockChunker } from "../embedded-agent-block-chunker-D13d7ur3.mjs";
import { r as agentCommandFromIngress } from "../agent-command-FXkX3hj5.mjs";
import { n as getTtsProviderAsync, t as getTtsProvider } from "../runtime-api-BN0bzB_n.mjs";
import { n as loadPreparedModelCatalog, r as resolveThinkingDefaultWithRuntimeCatalog, t as loadModelCatalog } from "../agent-runtime-DA4W1L0G.mjs";
export { CODEX_APP_SERVER_AUTH_MARKER, DEFAULT_PROVIDER, EmbeddedBlockChunker, agentCommandFromIngress, buildConfiguredModelCatalog, buildModelAliasIndex, clearExpiredCooldowns, clearRuntimeAuthProfileStoreSnapshots, ensureAuthProfileStore, ensureAuthProfileStoreAsync, extractEmbeddedAssistantText as extractAssistantText, findModelInCatalog, findNormalizedProviderValue, findPersistedAuthProfileCredential, findPersistedAuthProfileCredentialAsync, formatReasoningMessage, refreshExpiredPreparedModelCatalog as getPreparedModelCatalogSnapshot, getTtsProvider, getTtsProviderAsync, isPendingOAuthRefreshFence, isProfileInCooldown, isSameOAuthRefreshGeneration, jsonResult, listAgentIdsCompatibility as listAgentIds, listProfilesForProvider, loadAuthProfileStoreForRuntime, loadAuthProfileStoreForRuntimeAsync, loadAuthProfileStoreForSecretsRuntime, loadAuthProfileStoreWithoutExternalProfiles, loadAuthProfileStoreWithoutExternalProfilesAsync, loadModelCatalog, loadPreparedModelCatalog, markAuthProfileBlockedUntil, modelSupportsVision, parseModelRef, readNonNegativeIntegerParam, readPositiveIntegerParam, readStringArrayParam, readToolStringParam as readStringParam, refreshOAuthCredentialForRuntime, replaceRuntimeAuthProfileStoreSnapshots, replaceRuntimeAuthProfileStoreSnapshotsAsync, resolveAckReaction, resolveAgentAvatar, resolveAgentConfig, resolveAgentDir, resolveAgentEffectiveModelPrimary, resolveAgentIdentity, resolveAgentWorkspaceDir, resolveAllowedModelRefCore as resolveAllowedModelRef, resolveApiKeyForProfile, resolveApiKeyForProviderCore as resolveApiKeyForProvider, resolveAuthProfileEligibility, resolveAuthProfileOrder, resolveAuthStorePathForDisplay, resolveDefaultAgentDir, resolveDefaultAgentId, resolveDefaultModelForAgent, resolveHumanDelayConfig, resolveIdentityNamePrefix, resolveModelRefFromString, resolvePersistedAuthProfileOwnerAgentDir, resolvePersistedAuthProfileOwnerAgentDirAsync, resolveProfileUnusableUntilForDisplay, resolveProfilesUnavailableReason, resolveProviderIdForAuth, resolveSessionAgentIdsCompatibility as resolveSessionAgentIds, resolveThinkingDefaultCore as resolveThinkingDefault, resolveThinkingDefaultWithRuntimeCatalog, resolveTtsConfig, resolveTtsPrefsPath, resolveTtsPrefsPathAsync, saveAuthProfileStore, setAgentEffectiveModelPrimary };