agent.libx.js 0.89.7 → 0.89.8

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
@@ -7076,7 +7076,14 @@ async function repl(args, ai, cfg, cwd) {
7076
7076
  if (data) resumeInto(data);
7077
7077
  else err(red(" no such session\n"));
7078
7078
  };
7079
- const turn = (task) => runTurn(face, store, session, task, duplex ? void 0 : checkpoints, cwd, sendVia);
7079
+ const turn = async (task) => {
7080
+ const r = await runTurn(face, store, session, task, duplex ? void 0 : checkpoints, cwd, sendVia);
7081
+ if (dx) {
7082
+ const running = [...dx.tasks.values()].filter((t) => t.status === "running");
7083
+ if (running.length) err(cyan(` \u25D4 ${running.length === 1 ? `task ${running[0].id} (${running[0].label})` : `${running.length} tasks`} still working in the background`) + dim(" \u2014 the result will appear here; keep chatting meanwhile\n"));
7084
+ }
7085
+ return r;
7086
+ };
7080
7087
  const runSkill = async (sk, extra = "") => {
7081
7088
  try {
7082
7089
  const body = await fs.readFile(sk.path);