openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
20 lines (19 loc) • 823 B
JavaScript
import { i as getGatewayPluginMetadataSnapshot } from "./current-plugin-metadata-state-BmYo9Q7A.mjs";
import { t as buildPluginManifestRegistry } from "./manifest-registry-build-BbYTyBDW.mjs";
import { i as loadInstalledPluginIndexInstallRecordsSync } from "./installed-plugin-index-record-reader-B-7uGQZ9.mjs";
//#region 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 })
});
}
//#endregion
export { loadPluginManifestRegistryCore as t };