@camstack/agent 1.1.32 → 1.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1867,15 +1867,20 @@ function resolveAddonPackageDirs(addonsDir) {
1867
1867
  return dirs;
1868
1868
  }
1869
1869
  function buildAgentChildUdsManifest(nodeId, childId, caps) {
1870
- const systemCapNames = /* @__PURE__ */ new Set();
1870
+ const capsByAddon = /* @__PURE__ */ new Map();
1871
1871
  for (const cap of caps) {
1872
- if (cap.deviceId === void 0) {
1873
- systemCapNames.add(cap.capName);
1874
- }
1872
+ if (cap.deviceId !== void 0) continue;
1873
+ const addonId = cap.addonId ?? childId;
1874
+ const set = capsByAddon.get(addonId) ?? /* @__PURE__ */ new Set();
1875
+ set.add(cap.capName);
1876
+ capsByAddon.set(addonId, set);
1875
1877
  }
1876
- const addons = [
1877
- { addonId: childId, capabilities: [...systemCapNames] }
1878
- ];
1878
+ if (capsByAddon.size === 0) {
1879
+ capsByAddon.set(childId, /* @__PURE__ */ new Set());
1880
+ }
1881
+ const addons = [...capsByAddon.entries()].map(
1882
+ ([addonId, capNames]) => ({ addonId, capabilities: [...capNames] })
1883
+ );
1879
1884
  return { nodeId, addons };
1880
1885
  }
1881
1886
  var scriptName = process.argv[1] ?? "";
@@ -1893,4 +1898,4 @@ export {
1893
1898
  startAgentHttpServer,
1894
1899
  startAgent
1895
1900
  };
1896
- //# sourceMappingURL=chunk-CIITICY3.mjs.map
1901
+ //# sourceMappingURL=chunk-POIXEKWT.mjs.map