agent-swarm-kit 1.0.152 → 1.0.154

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
@@ -1598,7 +1598,7 @@ var GLOBAL_CONFIG = {
1598
1598
  CC_BANHAMMER_PLACEHOLDER: CC_BANHAMMER_PLACEHOLDER,
1599
1599
  CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION: CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION,
1600
1600
  };
1601
- GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "recomplete";
1601
+ GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "flush";
1602
1602
  var setConfig = function (config) {
1603
1603
  Object.assign(GLOBAL_CONFIG, config);
1604
1604
  };
@@ -2242,7 +2242,7 @@ var ClientAgent = /** @class */ (function () {
2242
2242
  return [4 /*yield*/, this.params.validate(result_4)];
2243
2243
  case 5:
2244
2244
  if ((validation = _a.sent())) {
2245
- throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model ressurect failed: ").concat(validation));
2245
+ throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model resurrect failed: ").concat(validation));
2246
2246
  }
2247
2247
  this.params.onOutput &&
2248
2248
  this.params.onOutput(this.params.clientId, this.params.agentName, result_4);
@@ -2313,15 +2313,15 @@ var ClientAgent = /** @class */ (function () {
2313
2313
  case 0:
2314
2314
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
2315
2315
  this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel"));
2316
- console.warn("agent-swarm model ressurect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
2316
+ console.warn("agent-swarm model resurrect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
2317
2317
  placeholder = createPlaceholder();
2318
2318
  this.params.onResurrect &&
2319
2319
  this.params.onResurrect(this.params.clientId, this.params.agentName, mode, reason);
2320
2320
  if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "recomplete") {
2321
- console.warn("agent-swarm model ressurect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2321
+ console.warn("agent-swarm model resurrect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2322
2322
  }
2323
2323
  else if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom") {
2324
- console.warn("agent-swarm model ressurect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2324
+ console.warn("agent-swarm model resurrect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2325
2325
  }
2326
2326
  return [4 /*yield*/, this.params.history.push({
2327
2327
  role: "resque",
@@ -2370,7 +2370,7 @@ var ClientAgent = /** @class */ (function () {
2370
2370
  if (!(validation = _b.sent())) return [3 /*break*/, 11];
2371
2371
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
2372
2372
  this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel validation error: ").concat(validation));
2373
- console.warn("agent-swarm model ressurect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
2373
+ console.warn("agent-swarm model resurrect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
2374
2374
  return [4 /*yield*/, this.params.history.push({
2375
2375
  role: "resque",
2376
2376
  mode: "tool",
package/build/index.mjs CHANGED
@@ -1596,7 +1596,7 @@ var GLOBAL_CONFIG = {
1596
1596
  CC_BANHAMMER_PLACEHOLDER: CC_BANHAMMER_PLACEHOLDER,
1597
1597
  CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION: CC_TOOL_CALL_EXCEPTION_CUSTOM_FUNCTION,
1598
1598
  };
1599
- GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "recomplete";
1599
+ GLOBAL_CONFIG.CC_RESQUE_STRATEGY = "flush";
1600
1600
  var setConfig = function (config) {
1601
1601
  Object.assign(GLOBAL_CONFIG, config);
1602
1602
  };
@@ -2240,7 +2240,7 @@ var ClientAgent = /** @class */ (function () {
2240
2240
  return [4 /*yield*/, this.params.validate(result_4)];
2241
2241
  case 5:
2242
2242
  if ((validation = _a.sent())) {
2243
- throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model ressurect failed: ").concat(validation));
2243
+ throw new Error("agent-swarm-kit ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " model resurrect failed: ").concat(validation));
2244
2244
  }
2245
2245
  this.params.onOutput &&
2246
2246
  this.params.onOutput(this.params.clientId, this.params.agentName, result_4);
@@ -2311,15 +2311,15 @@ var ClientAgent = /** @class */ (function () {
2311
2311
  case 0:
2312
2312
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
2313
2313
  this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel"));
2314
- console.warn("agent-swarm model ressurect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
2314
+ console.warn("agent-swarm model resurrect for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " reason=").concat(reason));
2315
2315
  placeholder = createPlaceholder();
2316
2316
  this.params.onResurrect &&
2317
2317
  this.params.onResurrect(this.params.clientId, this.params.agentName, mode, reason);
2318
2318
  if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "recomplete") {
2319
- console.warn("agent-swarm model ressurect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2319
+ console.warn("agent-swarm model resurrect did not solved the problem (still being called after recomplete patch) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2320
2320
  }
2321
2321
  else if (GLOBAL_CONFIG.CC_RESQUE_STRATEGY === "custom") {
2322
- console.warn("agent-swarm model ressurect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2322
+ console.warn("agent-swarm model resurrect did not solved the problem (still being called after patchedMessage emit) for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY));
2323
2323
  }
2324
2324
  return [4 /*yield*/, this.params.history.push({
2325
2325
  role: "resque",
@@ -2368,7 +2368,7 @@ var ClientAgent = /** @class */ (function () {
2368
2368
  if (!(validation = _b.sent())) return [3 /*break*/, 11];
2369
2369
  GLOBAL_CONFIG.CC_LOGGER_ENABLE_DEBUG &&
2370
2370
  this.params.logger.debug("ClientAgent agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " _resurrectModel validation error: ").concat(validation));
2371
- console.warn("agent-swarm model ressurect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
2371
+ console.warn("agent-swarm model resurrect did not solved the problem for agentName=".concat(this.params.agentName, " clientId=").concat(this.params.clientId, " strategy=").concat(GLOBAL_CONFIG.CC_RESQUE_STRATEGY, " validation=").concat(validation));
2372
2372
  return [4 /*yield*/, this.params.history.push({
2373
2373
  role: "resque",
2374
2374
  mode: "tool",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",