UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

53 lines (52 loc) • 2.31 kB
import "./agent-scope-config-BEk6-ThS.mjs"; import "./agent-scope-bJOokm5r.mjs"; import "./provider-auth-aliases-CAzJGfWN.mjs"; import "./model-selection-shared-CHVNQnp1.mjs"; import "./model-selection-config-BC0CegJ7.mjs"; import "./model-auth-markers-BKfhEhYJ.mjs"; import "./model-catalog-DZVwlfiv.mjs"; import "./model-selection-Cpoq0B2R.mjs"; import { t as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-Cepu2GOi.mjs"; import "./auth-profiles-DpzfW6rH.mjs"; import "./model-auth-CGgrsVoA.mjs"; import { d as readPreparedModelCatalog, f as refreshExpiredPreparedModelCatalog } from "./prepared-model-catalog-KgiwpXAj.mjs"; import "./common-BkU19q6Q.mjs"; import "./identity-DMes0XZ3.mjs"; import "./agent-scope-runtime-OJ73CMLc.mjs"; import "./embedded-agent-utils-BDIGXaqj.mjs"; import "./tts-D_rvqhCx.mjs"; import "./embedded-agent-block-chunker-CxsctPo2.mjs"; import "./identity-avatar-s-8FJZYz.mjs"; import "./agent-command-B2Fr8yPI.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 };