openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 815 B
JavaScript
import{s as loadManifestMetadataSnapshot}from"./manifest-contract-eligibility-BFn2JM5T.mjs";import{t as createInstalledPluginIndexScopeLookup}from"./installed-plugin-index-scope-lookup-DXLwAcrn.mjs";import{n as collectConfiguredRuntimeIds}from"./configured-runtime-plugin-installs-BQaLFfSQ.mjs";
//!src/commands/doctor/shared/configured-runtime-plugin-owners.ts
function collectConfiguredRuntimePluginIds(e,t={}){const n=collectConfiguredRuntimeIds(e,t);if(n.length===0)return[];const r=loadManifestMetadataSnapshot({config:e,env:t.env});const i=createInstalledPluginIndexScopeLookup(r.index);const a=/* @__PURE__ */ new Set;for(const e of n)if(i.hasAgentHarnessOwners([e]))i.addAgentHarnessOwners(a,[e]);else a.add(e);return[...a].toSorted((e,t)=>e.localeCompare(t))}export{collectConfiguredRuntimePluginIds as t};