@livx.cc/agentx 0.99.62 → 0.99.63

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
@@ -10461,7 +10461,12 @@ Another agent just implemented the above. Independently check the CURRENT state
10461
10461
  name: "CancelTask",
10462
10462
  description: "Cancel a running background task by id.",
10463
10463
  parameters: { type: "object", required: ["id"], properties: { id: { type: "string" } } },
10464
- run: async ({ id }) => this.cancelTask(String(id))
10464
+ // Cancel-and-redirect ("stop — do Y instead") is ONE user line: live, the reflex cancelled, said "fetching Y now" and
10465
+ // never dispatched (2/5 Bare voice runs). The tool result is where it looks next — tell it the redirect needs Act.
10466
+ run: async ({ id }) => {
10467
+ const r = this.cancelTask(String(id));
10468
+ return this.tasks.get(String(id))?.status === "cancelled" && r.endsWith("cancelled.") ? `${r} If the user's message ALSO asked for different work (a redirect \u2014 "instead\u2026", "actually\u2026", "do Y"), call Act NOW with that new brief: saying you are on it without calling Act does nothing. If they only asked to stop, just acknowledge in a few words.` : r;
10469
+ }
10465
10470
  };
10466
10471
  }
10467
10472
  };