@livx.cc/agentx 0.99.60 → 0.99.62

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/index.js CHANGED
@@ -10184,7 +10184,7 @@ Another agent just implemented the above. Independently check the CURRENT state
10184
10184
  const rec = this.tasks.get(id);
10185
10185
  if (res.finishReason === "aborted" || rec.status === "cancelled") {
10186
10186
  rec.status = "cancelled";
10187
- this.notify("task_cancelled", `task ${id} (${rec.label}) cancelled`);
10187
+ this.notify("task_cancelled", `task ${id} (${rec.label}) cancelled`, { id });
10188
10188
  return;
10189
10189
  }
10190
10190
  if (res.finishReason === "error") {
@@ -10236,7 +10236,7 @@ Another agent just implemented the above. Independently check the CURRENT state
10236
10236
  rec.status = "error";
10237
10237
  rec.result = msg;
10238
10238
  log21.warn(`task ${rec.id} failed: ${msg}`);
10239
- this.notify("task_error", `task ${rec.id} (${rec.label}) failed: ${msg}`);
10239
+ this.notify("task_error", `task ${rec.id} (${rec.label}) failed: ${msg}`, { id: rec.id });
10240
10240
  if (this.foldIfSuperseded(rec, `The "${rec.label}" task failed: ${msg}`)) return;
10241
10241
  this.dropParked(rec);
10242
10242
  this.queueRevoice(this.integrationPrompt(rec, "error", msg, "error"), true);