agent-swarm-kit 1.0.41 → 1.0.42

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
@@ -356,7 +356,10 @@ var validateDefault = function (output) { return __awaiter(void 0, void 0, void
356
356
  }); };
357
357
 
358
358
  var removeXmlTags = function (input) {
359
- return input.replace(/<[^>]*>.*?<\/[^>]*>/g, '');
359
+ return input
360
+ .replace(/<[^>]+>[\s\S]*?<\/[^>]+>/g, '')
361
+ .replace(/\n\s*\n/g, '\n')
362
+ .trim();
360
363
  };
361
364
 
362
365
  /**
package/build/index.mjs CHANGED
@@ -354,7 +354,10 @@ var validateDefault = function (output) { return __awaiter(void 0, void 0, void
354
354
  }); };
355
355
 
356
356
  var removeXmlTags = function (input) {
357
- return input.replace(/<[^>]*>.*?<\/[^>]*>/g, '');
357
+ return input
358
+ .replace(/<[^>]+>[\s\S]*?<\/[^>]+>/g, '')
359
+ .replace(/\n\s*\n/g, '\n')
360
+ .trim();
358
361
  };
359
362
 
360
363
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",