UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

53 lines (52 loc) • 2.19 kB
import "./agent-scope-config-DmXgFGKP.mjs"; import "./provider-auth-aliases-CgGlzANu.mjs"; import "./agent-scope-BwB8YH6y.mjs"; import "./model-selection-shared-9Kz63Hhm.mjs"; import "./model-selection-config-Bvf5WqHo.mjs"; import "./common-njQNtpnW.mjs"; import "./model-selection-C2A4Wyix.mjs"; import { t as resolveThinkingDefaultWithRuntimeCatalogCore } from "./model-thinking-default-DTaWSs8g.mjs"; import "./model-auth-markers-4YSUG71a.mjs"; import "./identity-Cd2mxvzm.mjs"; import "./model-catalog-ZbVopayG.mjs"; import { d as readPreparedModelCatalog, f as refreshExpiredPreparedModelCatalog } from "./prepared-model-catalog-DSktrHGK.mjs"; import "./identity-avatar-Qmb94vA6.mjs"; import "./agent-scope-runtime-CDpr-vor.mjs"; import "./auth-profiles-VRLhewIH.mjs"; import "./model-auth-CEsyk_Yg.mjs"; import "./embedded-agent-utils-CRYA6mcb.mjs"; import "./embedded-agent-block-chunker-D13d7ur3.mjs"; import "./agent-command-FXkX3hj5.mjs"; import "./tts-DJQjnXAq.mjs"; //#region src/plugin-sdk/agent-runtime.ts /** Preserves the public SDK's writable default while internal catalog reads stay passive. */ async function loadPreparedModelCatalog(e = {}) { return await readPreparedModelCatalog({ ...e, readOnly: e.readOnly ?? false }); } /** @deprecated Use loadPreparedModelCatalog or getPreparedModelCatalogSnapshot. */ async function loadModelCatalog(e = {}) { const { agentId: t, agentDir: n, cacheOnly: r, config: i, env: a, readOnly: o, refreshFullCatalog: s, workspaceDir: c } = e; const l = { ...t ? { agentId: t } : {}, ...n ? { agentDir: n } : {}, ...i ? { config: i } : {}, ...a ? { env: a } : {}, ...o !== void 0 ? { readOnly: o } : {}, ...s !== void 0 ? { refreshFullCatalog: s } : {}, ...c ? { workspaceDir: c } : {} }; if (r) return refreshExpiredPreparedModelCatalog(l)?.entries ?? []; return await loadPreparedModelCatalog(l); } function resolveThinkingDefaultWithRuntimeCatalog(e) { const { loadModelCatalog: t, ...n } = e; return resolveThinkingDefaultWithRuntimeCatalogCore({ ...n, loadRuntimeCatalog: t }); } //#endregion export { loadPreparedModelCatalog as n, resolveThinkingDefaultWithRuntimeCatalog as r, loadModelCatalog as t };