openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 1.11 kB
JavaScript
import{d as hasExplicitPluginIdScope}from"./current-plugin-metadata-snapshot-CYi8VAby.mjs";import{n as buildPluginRuntimeLoadOptions}from"./load-context-BgV8IMWg.mjs";import{n as loadPluginRegistryHandle}from"./loader-BhonRuVa.mjs";import{t as resolvePluginRuntimeLoadContext}from"./load-context.resolve-C8UgCzlR.mjs";
//!src/plugins/runtime/metadata-registry-loader.ts
function loadPluginMetadataRegistrySnapshot(e){const t=e?.runtimeContext??resolvePluginRuntimeLoadContext(e);return loadPluginRegistryHandle(buildPluginRuntimeLoadOptions(t,{...e?.config!==void 0?{config:e.config}:{},...e?.activationSourceConfig!==void 0?{activationSourceConfig:e.activationSourceConfig}:{},...e?.workspaceDir!==void 0?{workspaceDir:e.workspaceDir}:{},...e?.env!==void 0?{env:e.env}:{},...e?.logger!==void 0?{logger:e.logger}:{},throwOnLoadError:e?.throwOnLoadError??true,cache:false,mode:`validate`,loadModules:e?.loadModules,...hasExplicitPluginIdScope(e?.onlyPluginIds)?{onlyPluginIds:e?.onlyPluginIds}:{},...e?.manifestRegistry?{manifestRegistry:e.manifestRegistry}:{}}))}export{loadPluginMetadataRegistrySnapshot as t};