@camstack/agent 1.1.31 → 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.
- package/dist/{chunk-CIITICY3.mjs → chunk-POIXEKWT.mjs} +13 -8
- package/dist/{chunk-CIITICY3.mjs.map → chunk-POIXEKWT.mjs.map} +1 -1
- package/dist/cli.js +12 -7
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1856,15 +1856,20 @@ function resolveAddonPackageDirs(addonsDir) {
|
|
|
1856
1856
|
return dirs;
|
|
1857
1857
|
}
|
|
1858
1858
|
function buildAgentChildUdsManifest(nodeId, childId, caps) {
|
|
1859
|
-
const
|
|
1859
|
+
const capsByAddon = /* @__PURE__ */ new Map();
|
|
1860
1860
|
for (const cap of caps) {
|
|
1861
|
-
if (cap.deviceId
|
|
1862
|
-
|
|
1863
|
-
|
|
1861
|
+
if (cap.deviceId !== void 0) continue;
|
|
1862
|
+
const addonId = cap.addonId ?? childId;
|
|
1863
|
+
const set = capsByAddon.get(addonId) ?? /* @__PURE__ */ new Set();
|
|
1864
|
+
set.add(cap.capName);
|
|
1865
|
+
capsByAddon.set(addonId, set);
|
|
1864
1866
|
}
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1867
|
+
if (capsByAddon.size === 0) {
|
|
1868
|
+
capsByAddon.set(childId, /* @__PURE__ */ new Set());
|
|
1869
|
+
}
|
|
1870
|
+
const addons = [...capsByAddon.entries()].map(
|
|
1871
|
+
([addonId, capNames]) => ({ addonId, capabilities: [...capNames] })
|
|
1872
|
+
);
|
|
1868
1873
|
return { nodeId, addons };
|
|
1869
1874
|
}
|
|
1870
1875
|
var scriptName = process.argv[1] ?? "";
|