UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) • 1.13 kB
import { c as loadManifestMetadataSnapshot } from "./manifest-contract-eligibility-P_yAPTzd.mjs"; import { t as createInstalledPluginIndexScopeLookup } from "./installed-plugin-index-scope-lookup-zVHC9Dq8.mjs"; import { n as collectConfiguredRuntimeIds } from "./configured-runtime-plugin-installs-BKipzX1E.mjs"; //#region src/commands/doctor/shared/configured-runtime-plugin-owners.ts /** Resolve runtime selections to their manifest owners before checking plugin installation. */ function collectConfiguredRuntimePluginIds(cfg, options = {}) { const runtimes = collectConfiguredRuntimeIds(cfg, options); if (runtimes.length === 0) return []; const metadata = loadManifestMetadataSnapshot({ config: cfg, env: options.env }); const lookup = createInstalledPluginIndexScopeLookup(metadata.index); const ids = /* @__PURE__ */ new Set(); for (const runtime of runtimes) if (lookup.hasAgentHarnessOwners([runtime])) lookup.addAgentHarnessOwners(ids, [runtime]); else ids.add(runtime); return [...ids].toSorted((left, right) => left.localeCompare(right)); } //#endregion export { collectConfiguredRuntimePluginIds as t };