@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.
- 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
|
@@ -1867,15 +1867,20 @@ function resolveAddonPackageDirs(addonsDir) {
|
|
|
1867
1867
|
return dirs;
|
|
1868
1868
|
}
|
|
1869
1869
|
function buildAgentChildUdsManifest(nodeId, childId, caps) {
|
|
1870
|
-
const
|
|
1870
|
+
const capsByAddon = /* @__PURE__ */ new Map();
|
|
1871
1871
|
for (const cap of caps) {
|
|
1872
|
-
if (cap.deviceId
|
|
1873
|
-
|
|
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
|
-
|
|
1877
|
-
|
|
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-
|
|
1901
|
+
//# sourceMappingURL=chunk-POIXEKWT.mjs.map
|