@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/cli.js CHANGED
@@ -10658,7 +10658,12 @@ Another agent just implemented the above. Independently check the CURRENT state
10658
10658
  name: "CancelTask",
10659
10659
  description: "Cancel a running background task by id.",
10660
10660
  parameters: { type: "object", required: ["id"], properties: { id: { type: "string" } } },
10661
- run: async ({ id }) => this.cancelTask(String(id))
10661
+ // Cancel-and-redirect ("stop — do Y instead") is ONE user line: live, the reflex cancelled, said "fetching Y now" and
10662
+ // never dispatched (2/5 Bare voice runs). The tool result is where it looks next — tell it the redirect needs Act.
10663
+ run: async ({ id }) => {
10664
+ const r = this.cancelTask(String(id));
10665
+ 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;
10666
+ }
10662
10667
  };
10663
10668
  }
10664
10669
  };