UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 719 B
import{o as getGatewayPluginMetadataSnapshot}from"./plugin-metadata-lifecycle-Bdt91XXL.mjs";import{t as buildPluginManifestRegistry}from"./manifest-registry-build-DSmHjL9c.mjs";import{i as loadInstalledPluginIndexInstallRecordsSync}from"./installed-plugin-index-record-reader-rJXlMUQ8.mjs"; //!src/plugins/manifest-registry.ts function loadPluginManifestRegistryCore(e={}){if(!e.candidates&&!e.discovery&&!e.installRecords){const e=getGatewayPluginMetadataSnapshot();if(e)return e.manifestRegistry}const t=e.env??process.env;let n=e.installRecords;return buildPluginManifestRegistry({...e,env:t,getInstallRecords:()=>n??=loadInstalledPluginIndexInstallRecordsSync({env:t})})}export{loadPluginManifestRegistryCore as t};