openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 1.79 kB
JavaScript
import"./agent-scope-config-CG9CFpGX.mjs";import"./provider-auth-aliases-BRA1A5Vm.mjs";import"./agent-scope-Dw5XRSEh.mjs";import"./model-selection-shared-CIOFxJ36.mjs";import"./model-catalog-lookup-bSGgKRpi.mjs";import"./model-selection-config-CnvHkHXn.mjs";import"./common-DIgvX97L.mjs";import"./model-selection-CNHinoVN.mjs";import"./model-auth-markers-Dc97K3d8.mjs";import{t as resolveThinkingDefaultWithRuntimeCatalogCore}from"./model-thinking-default-DP-enq9i.mjs";import"./identity-C2YDObs7.mjs";import{f as readPreparedModelCatalog,p as refreshExpiredPreparedModelCatalog}from"./prepared-model-catalog-DR44fXi2.mjs";import"./identity-avatar-D04U5Dc_.mjs";import"./agent-scope-runtime-DKb8jQZx.mjs";import"./auth-profiles-nMUErGRQ.mjs";import"./model-auth-C99Q9Dp8.mjs";import"./embedded-agent-utils-Bld7utNs.mjs";import"./embedded-agent-block-chunker-CJ0Pb7kL.mjs";import"./agent-command-ORwedrZc.mjs";import"./tts-DQc94RQ-.mjs";
//!src/plugin-sdk/agent-runtime.ts
async function loadPreparedModelCatalog(e={}){return await readPreparedModelCatalog({...e,readOnly:e.readOnly??false})}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})}export{loadPreparedModelCatalog as n,resolveThinkingDefaultWithRuntimeCatalog as r,loadModelCatalog as t};