UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

53 lines (52 loc) • 2.31 kB
import "./agent-scope-config-BU4qc9bA.mjs"; import "./agent-scope-DWB4x52T.mjs"; import "./provider-auth-aliases-CsUniyj5.mjs"; import "./model-selection-shared-B7jheFJO.mjs"; import "./model-selection-config-f31fW3C2.mjs"; import "./model-auth-markers-_1hub14I.mjs"; import "./model-catalog-DEp70Mhx.mjs"; import "./model-selection-CibyjxTm.mjs"; import { t as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-Dc7O2_FJ.mjs"; import "./auth-profiles-BvOnvz5y.mjs"; import "./model-auth-DfhKAcog.mjs"; import { d as readPreparedModelCatalog, f as refreshExpiredPreparedModelCatalog } from "./prepared-model-catalog-0uZANRjz.mjs"; import "./identity-cOgj0nSe.mjs"; import "./common-CwfR3iO6.mjs"; import "./agent-scope-runtime-kyXy8x5x.mjs"; import "./embedded-agent-utils-CtIx7yzd.mjs"; import "./tts-D9yp3VFH.mjs"; import "./embedded-agent-block-chunker-CZM6S5oy.mjs"; import "./identity-avatar-Dm9w9wxs.mjs"; import "./agent-command-DoMupwER.mjs"; //#region src/plugin-sdk/agent-runtime.ts /** Preserves the public SDK's writable default while internal catalog reads stay passive. */ async function loadPreparedModelCatalog(params = {}) { return await readPreparedModelCatalog({ ...params, readOnly: params.readOnly ?? false }); } /** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */ async function loadModelCatalog(params = {}) { const { agentId, agentDir, cacheOnly, config, env, readOnly, refreshFullCatalog, workspaceDir } = params; const preparedParams = { ...agentId ? { agentId } : {}, ...agentDir ? { agentDir } : {}, ...config ? { config } : {}, ...env ? { env } : {}, ...readOnly !== void 0 ? { readOnly } : {}, ...refreshFullCatalog !== void 0 ? { refreshFullCatalog } : {}, ...workspaceDir ? { workspaceDir } : {} }; if (cacheOnly) return refreshExpiredPreparedModelCatalog(preparedParams)?.entries ?? []; return await loadPreparedModelCatalog(preparedParams); } function resolveThinkingDefaultWithRuntimeCatalog(params) { const { loadModelCatalog: loadRuntimeCatalog, ...rest } = params; return resolveThinkingDefaultWithRuntimeCatalogCore({ ...rest, loadRuntimeCatalog }); } //#endregion export { loadPreparedModelCatalog as n, resolveThinkingDefaultWithRuntimeCatalog as r, loadModelCatalog as t };