agent-swarm-kit 1.0.85 → 1.0.86

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/build/index.cjs CHANGED
@@ -7284,25 +7284,27 @@ var AgentMetaService = /** @class */ (function () {
7284
7284
  if (dependsOn && !seen.has(agentName)) {
7285
7285
  agentTree.push({
7286
7286
  name: "Agents (".concat(agentName, ")"),
7287
- child: dependsOn.map(function (dep) { return _this.makeAgentNode(dep, childSeen); }),
7287
+ child: dependsOn
7288
+ .filter(function (name) { return !!name; })
7289
+ .map(function (dep) { return _this.makeAgentNode(dep, childSeen); }),
7288
7290
  });
7289
7291
  }
7290
7292
  if (states) {
7291
7293
  agentTree.push({
7292
7294
  name: "States (".concat(agentName, ")"),
7293
- child: states.map(function (name) { return ({ name: name }); }),
7295
+ child: states.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7294
7296
  });
7295
7297
  }
7296
7298
  if (storages) {
7297
7299
  agentTree.push({
7298
7300
  name: "Storages (".concat(agentName, ")"),
7299
- child: storages.map(function (name) { return ({ name: name }); }),
7301
+ child: storages.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7300
7302
  });
7301
7303
  }
7302
7304
  if (tools) {
7303
7305
  agentTree.push({
7304
7306
  name: "Tools (".concat(agentName, ")"),
7305
- child: tools.map(function (name) { return ({ name: name }); }),
7307
+ child: tools.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7306
7308
  });
7307
7309
  }
7308
7310
  return {
package/build/index.mjs CHANGED
@@ -7282,25 +7282,27 @@ var AgentMetaService = /** @class */ (function () {
7282
7282
  if (dependsOn && !seen.has(agentName)) {
7283
7283
  agentTree.push({
7284
7284
  name: "Agents (".concat(agentName, ")"),
7285
- child: dependsOn.map(function (dep) { return _this.makeAgentNode(dep, childSeen); }),
7285
+ child: dependsOn
7286
+ .filter(function (name) { return !!name; })
7287
+ .map(function (dep) { return _this.makeAgentNode(dep, childSeen); }),
7286
7288
  });
7287
7289
  }
7288
7290
  if (states) {
7289
7291
  agentTree.push({
7290
7292
  name: "States (".concat(agentName, ")"),
7291
- child: states.map(function (name) { return ({ name: name }); }),
7293
+ child: states.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7292
7294
  });
7293
7295
  }
7294
7296
  if (storages) {
7295
7297
  agentTree.push({
7296
7298
  name: "Storages (".concat(agentName, ")"),
7297
- child: storages.map(function (name) { return ({ name: name }); }),
7299
+ child: storages.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7298
7300
  });
7299
7301
  }
7300
7302
  if (tools) {
7301
7303
  agentTree.push({
7302
7304
  name: "Tools (".concat(agentName, ")"),
7303
- child: tools.map(function (name) { return ({ name: name }); }),
7305
+ child: tools.filter(function (name) { return !!name; }).map(function (name) { return ({ name: name }); }),
7304
7306
  });
7305
7307
  }
7306
7308
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",