agent-swarm-kit 1.1.151 → 1.1.152

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
@@ -19186,6 +19186,7 @@ dumpClientPerformance.runAfterExecute = beginContext(async (dirName = "./logs/cl
19186
19186
  });
19187
19187
  });
19188
19188
 
19189
+ const WARN_KB = 10;
19189
19190
  /**
19190
19191
  * Dumps the outline result into a folder structure with markdown files.
19191
19192
  *
@@ -19259,6 +19260,13 @@ const dumpOutlineResult = beginContext(async (result, outputDir = "./dump/outlin
19259
19260
  const messageNum = String(idx + 1).padStart(2, "0");
19260
19261
  const contentFileName = `${messageNum}_user_message.md`;
19261
19262
  const contentFilePath = path__namespace.join(subfolderPath, contentFileName);
19263
+ {
19264
+ const messageSizeBytes = Buffer.byteLength(message.content, "utf8");
19265
+ const messageSizeKb = Math.floor(messageSizeBytes / 1024);
19266
+ if (messageSizeBytes > WARN_KB) {
19267
+ console.warn(`User message ${idx + 1} is ${messageSizeBytes} bytes (${messageSizeKb}kb), which exceeds warning limit`);
19268
+ }
19269
+ }
19262
19270
  let content = `# User Input ${idx + 1}\n\n`;
19263
19271
  content += `**ResultId**: ${result.resultId}\n\n`;
19264
19272
  content += message.content;
package/build/index.mjs CHANGED
@@ -19166,6 +19166,7 @@ dumpClientPerformance.runAfterExecute = beginContext(async (dirName = "./logs/cl
19166
19166
  });
19167
19167
  });
19168
19168
 
19169
+ const WARN_KB = 10;
19169
19170
  /**
19170
19171
  * Dumps the outline result into a folder structure with markdown files.
19171
19172
  *
@@ -19239,6 +19240,13 @@ const dumpOutlineResult = beginContext(async (result, outputDir = "./dump/outlin
19239
19240
  const messageNum = String(idx + 1).padStart(2, "0");
19240
19241
  const contentFileName = `${messageNum}_user_message.md`;
19241
19242
  const contentFilePath = path.join(subfolderPath, contentFileName);
19243
+ {
19244
+ const messageSizeBytes = Buffer.byteLength(message.content, "utf8");
19245
+ const messageSizeKb = Math.floor(messageSizeBytes / 1024);
19246
+ if (messageSizeBytes > WARN_KB) {
19247
+ console.warn(`User message ${idx + 1} is ${messageSizeBytes} bytes (${messageSizeKb}kb), which exceeds warning limit`);
19248
+ }
19249
+ }
19242
19250
  let content = `# User Input ${idx + 1}\n\n`;
19243
19251
  content += `**ResultId**: ${result.resultId}\n\n`;
19244
19252
  content += message.content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.1.151",
3
+ "version": "1.1.152",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",