UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 852 B
import{O as setRuntimeConfigSnapshot,c as getRuntimeConfigSourceSnapshot}from"./runtime-snapshot-Bg5K4JNu.mjs";import{t as captureRuntimeConfigAsyncReader}from"./io.runtime-BvSeVFIY.mjs";import"./config-DkZ8y8Gv.mjs";import{c as getModelsCommandSecretTargetIds}from"./command-secret-targets-X-olXSJu.mjs";import{t as resolveCommandConfigWithSecrets}from"./command-config-resolution-D_5kK7Ri.mjs"; //!src/commands/models/load-config.ts async function loadModelsConfig(e){const t=await captureRuntimeConfigAsyncReader(e.skipPluginValidation?{skipPluginValidation:true}:void 0)();const n=getRuntimeConfigSourceSnapshot()??t;const{resolvedConfig:r}=await resolveCommandConfigWithSecrets({config:t,commandName:e.commandName,targetIds:getModelsCommandSecretTargetIds(),runtime:e.runtime});setRuntimeConfigSnapshot(r,n);return r}export{loadModelsConfig as t};