UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

85 lines 8.06 kB
import { $o as ProviderAuthAliasLookupParams, Ao as resolveProfilesUnavailableReason, Bo as saveAuthProfileStore, Ea as agentCommandFromIngress, Fo as findPersistedAuthProfileCredential, Ha as DEFAULT_PROVIDER, Ho as clearRuntimeAuthProfileStoreSnapshots, Io as loadAuthProfileStoreForRuntime, Jo as listProfilesForProvider, Lo as loadAuthProfileStoreForSecretsRuntime, Mo as isProfileInCooldown, No as ensureAuthProfileStore, Oo as markAuthProfileBlockedUntil, Qo as resolveAuthProfileOrder, Ro as loadAuthProfileStoreWithoutExternalProfiles, Uo as replaceRuntimeAuthProfileStoreSnapshots, Xo as resolveApiKeyForProfile, Yo as refreshOAuthCredentialForRuntime, Zo as resolveAuthProfileEligibility, _o as resolveTtsConfig, es as resolveProviderIdForAuth, ho as getTtsProvider, jo as clearExpiredCooldowns, ko as resolveProfileUnusableUntilForDisplay, to as EmbeddedBlockChunker, vo as resolveTtsPrefsPath, wo as resolveApiKeyForProviderCore, xo as ResolvedTtsConfig, zo as resolvePersistedAuthProfileOwnerAgentDir } from "../agent-harness-runtime-CZIVRpx-.js"; import { r as OpenClawConfig } from "../types.openclaw-BdCLfP4c.js"; import { r as AssistantMessage } from "../types-DnOM6PIM.js"; import { n as PluginMetadataSnapshot } from "../plugin-metadata-snapshot.types-clrjejix.js"; import "../index-DrZymUhy.js"; import { C as AuthProfileCredential, E as OAuthCredential, T as AuthProfileStore, w as AuthProfileFailureReason } from "../types-BkvlwqkC.js"; import { n as ThinkLevel } from "../thinking.shared-CNN7g0o3.js"; import { d as readStringArrayParam, l as readPositiveIntegerParam, p as readToolStringParam, s as readNonNegativeIntegerParam } from "../common-DCfE5qvT.js"; import { t as jsonResult } from "../tool-results-DV8tUSfG.js"; import { r as findModelInCatalog, t as modelSupportsVision } from "../model-catalog-CFrq7UMF.js"; import { a as resolveAgentWorkspaceDir, i as resolveAgentDir, n as resolveAgentConfig, o as resolveDefaultAgentDir, s as resolveDefaultAgentId, t as listAgentIds } from "../agent-scope-config-C1Nx0bsu.js"; import { c as ModelCatalogSnapshot, i as resolveModelRefFromString, n as buildConfiguredModelCatalog, r as buildModelAliasIndex, s as ModelCatalogEntry } from "../model-selection-shared-Cd2NqtMF.js"; import { o as setAgentEffectiveModelPrimary, r as resolveAgentEffectiveModelPrimary } from "../agent-scope-BnvcBZbj.js"; import { c as resolveAckReaction, d as resolveHumanDelayConfig, f as resolveIdentityNamePrefix, l as resolveAgentIdentity } from "../ack-reactions-DVQVIUWX.js"; import { a as parseModelRef, i as findNormalizedProviderValue, n as resolveThinkingDefaultWithRuntimeCatalogCore, o as resolveDefaultModelForAgent, r as resolveAllowedModelRefCore, t as resolveThinkingDefault } from "../model-selection-CI7zzVMC.js"; import { n as resolveSessionAgentIdsCompatibility } from "../agent-scope-runtime-CavIeqs-.js"; import { t as CODEX_APP_SERVER_AUTH_MARKER } from "../model-auth-markers-DT9cUGpZ.js"; //#region src/agents/auth-profiles/paths.d.ts /** Resolve the user-facing path for the database selected by the auth store loader. */ export declare function resolveAuthStorePathForDisplay(agentDir?: string): string; //#endregion //#region src/agents/prepared-model-catalog.d.ts type LoadPreparedModelCatalogParams = { agentId?: string; agentDir?: string; config?: OpenClawConfig; readOnly?: boolean; workspaceDir?: string; env?: NodeJS.ProcessEnv; providerDiscoveryProviderIds?: readonly string[]; /** Refreshes auth-stale inventory; true also rebuilds a fresh full catalog on writable reads. */ refreshFullCatalog?: boolean | "stale"; /** Scoped read-only loads may run live discovery for the scoped providers only. */ scopedLiveProviderDiscovery?: boolean; allowGatewaySubagentBinding?: boolean; }; /** Returns the configured catalog for the current generation without starting discovery. */ export declare function getPreparedModelCatalogSnapshot(params?: LoadPreparedModelCatalogParams): ModelCatalogSnapshot | undefined; export declare function loadPreparedModelCatalog(params?: LoadPreparedModelCatalogParams): Promise<ModelCatalogEntry[]>; //#endregion //#region src/agents/identity-avatar.d.ts type AgentAvatarResolution = { kind: "none"; reason: string; source?: string; } | { kind: "local"; filePath: string; source: string; } | { kind: "remote"; url: string; source: string; } | { kind: "data"; url: string; source: string; }; /** Resolve the effective avatar for an agent, including config and IDENTITY.md. */ export declare function resolveAgentAvatar(cfg: OpenClawConfig, agentId: string): AgentAvatarResolution; //#endregion //#region src/agents/embedded-agent-utils.d.ts /** Extract sanitized assistant text across all text content blocks. */ declare function extractEmbeddedAssistantText(msg: AssistantMessage): string; /** Format reasoning text for markdown-friendly channel surfaces. */ export declare function formatReasoningMessage(text: string): string; //#endregion //#region src/plugin-sdk/agent-runtime.d.ts type LoadModelCatalogCompatibilityParams = LoadPreparedModelCatalogParams & { /** @deprecated Lifecycle publication owns refreshes; retained for source compatibility. */ useCache?: boolean; /** @deprecated Use getPreparedModelCatalogSnapshot for new nonblocking readers. */ cacheOnly?: boolean; /** @deprecated Plugin metadata belongs to the published lifecycle generation. */ metadataSnapshot?: Omit<PluginMetadataSnapshot, "owners"> & { owners: Omit<PluginMetadataSnapshot["owners"], "modelIdNormalizationPolicies"> & Partial<Pick<PluginMetadataSnapshot["owners"], "modelIdNormalizationPolicies">>; }; }; /** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */ export declare function loadModelCatalog(params?: LoadModelCatalogCompatibilityParams): Promise<ModelCatalogEntry[]>; export declare function resolveThinkingDefaultWithRuntimeCatalog(params: Omit<Parameters<typeof resolveThinkingDefaultWithRuntimeCatalogCore>[0], "loadRuntimeCatalog"> & { loadModelCatalog: Parameters<typeof resolveThinkingDefaultWithRuntimeCatalogCore>[0]["loadRuntimeCatalog"]; }): Promise<ThinkLevel>; //#endregion export { type AgentAvatarResolution, type AuthProfileCredential, type AuthProfileFailureReason, type AuthProfileStore, CODEX_APP_SERVER_AUTH_MARKER, DEFAULT_PROVIDER, EmbeddedBlockChunker, type ModelCatalogEntry, type OAuthCredential, type ProviderAuthAliasLookupParams, type ResolvedTtsConfig, agentCommandFromIngress, buildConfiguredModelCatalog, buildModelAliasIndex, clearExpiredCooldowns, clearRuntimeAuthProfileStoreSnapshots, ensureAuthProfileStore, extractEmbeddedAssistantText as extractAssistantText, findModelInCatalog, findNormalizedProviderValue, findPersistedAuthProfileCredential, getTtsProvider, isProfileInCooldown, jsonResult, listAgentIds, listProfilesForProvider, loadAuthProfileStoreForRuntime, loadAuthProfileStoreForSecretsRuntime, loadAuthProfileStoreWithoutExternalProfiles, markAuthProfileBlockedUntil, modelSupportsVision, parseModelRef, readNonNegativeIntegerParam, readPositiveIntegerParam, readStringArrayParam, readToolStringParam as readStringParam, refreshOAuthCredentialForRuntime, replaceRuntimeAuthProfileStoreSnapshots, resolveAckReaction, resolveAgentConfig, resolveAgentDir, resolveAgentEffectiveModelPrimary, resolveAgentIdentity, resolveAgentWorkspaceDir, resolveAllowedModelRefCore as resolveAllowedModelRef, resolveApiKeyForProfile, resolveApiKeyForProviderCore as resolveApiKeyForProvider, resolveAuthProfileEligibility, resolveAuthProfileOrder, resolveDefaultAgentDir, resolveDefaultAgentId, resolveDefaultModelForAgent, resolveHumanDelayConfig, resolveIdentityNamePrefix, resolveModelRefFromString, resolvePersistedAuthProfileOwnerAgentDir, resolveProfileUnusableUntilForDisplay, resolveProfilesUnavailableReason, resolveProviderIdForAuth, resolveSessionAgentIdsCompatibility as resolveSessionAgentIds, resolveThinkingDefault, resolveTtsConfig, resolveTtsPrefsPath, saveAuthProfileStore, setAgentEffectiveModelPrimary };