@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.js
CHANGED
|
@@ -1847,15 +1847,20 @@ function resolveAddonPackageDirs(addonsDir) {
|
|
|
1847
1847
|
return dirs;
|
|
1848
1848
|
}
|
|
1849
1849
|
function buildAgentChildUdsManifest(nodeId, childId, caps) {
|
|
1850
|
-
const
|
|
1850
|
+
const capsByAddon = /* @__PURE__ */ new Map();
|
|
1851
1851
|
for (const cap of caps) {
|
|
1852
|
-
if (cap.deviceId
|
|
1853
|
-
|
|
1854
|
-
|
|
1852
|
+
if (cap.deviceId !== void 0) continue;
|
|
1853
|
+
const addonId = cap.addonId ?? childId;
|
|
1854
|
+
const set = capsByAddon.get(addonId) ?? /* @__PURE__ */ new Set();
|
|
1855
|
+
set.add(cap.capName);
|
|
1856
|
+
capsByAddon.set(addonId, set);
|
|
1855
1857
|
}
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1858
|
+
if (capsByAddon.size === 0) {
|
|
1859
|
+
capsByAddon.set(childId, /* @__PURE__ */ new Set());
|
|
1860
|
+
}
|
|
1861
|
+
const addons = [...capsByAddon.entries()].map(
|
|
1862
|
+
([addonId, capNames]) => ({ addonId, capabilities: [...capNames] })
|
|
1863
|
+
);
|
|
1859
1864
|
return { nodeId, addons };
|
|
1860
1865
|
}
|
|
1861
1866
|
var scriptName = process.argv[1] ?? "";
|