UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) • 1.36 kB
import { d as hasExplicitPluginIdScope } from "./current-plugin-metadata-snapshot-H0TP3PFt.mjs"; import { n as buildPluginRuntimeLoadOptions } from "./load-context-CwTU1iXB.mjs"; import { n as loadPluginRegistryHandle } from "./loader--j41eir2.mjs"; import { t as resolvePluginRuntimeLoadContext } from "./load-context.resolve-D0f_6L5E.mjs"; //#region src/plugins/runtime/metadata-registry-loader.ts /** Loads a non-activated plugin metadata registry snapshot for validation/status callers. */ 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 } : {} })); } //#endregion export { loadPluginMetadataRegistrySnapshot as t };