@livx.cc/agentx 0.99.137 → 0.99.138

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
@@ -23210,49 +23210,52 @@ ${out}
23210
23210
  const q2 = ask.question.replace(/\s+/g, " ").slice(0, 64);
23211
23211
  return bold(yellow(`? ${q2}${ask.question.length > 64 ? "\u2026" : ""} \u2039yes/no\u203A `));
23212
23212
  };
23213
- const result = await readMultiline((cont) => editor.readLine({
23214
- prompt: cont ? contPrompt : livePrompt,
23215
- suggest,
23216
- history,
23217
- classifyPaste,
23218
- onEmptyPaste: grabClipboardAttachment,
23219
- onSubmit: () => {
23220
- dispatchPending = true;
23221
- },
23222
- // claim keys buffered behind the Enter (turn isn't active yet)
23223
- initial: cont ? void 0 : initial,
23224
- status: computeFooter,
23225
- vimMode: cfg.editorMode === "vim",
23226
- statusTickMs: dx ? 1e3 : void 0,
23227
- // duplex: animate the running-task footer while idle at the prompt
23228
- // Esc at the idle prompt with workers running → cancel them (CC-style: Esc stops the work).
23229
- onEscapeIdle: dx ? () => {
23230
- const running = [...dx.tasks.values()].filter((t) => t.status === "running");
23231
- if (!running.length) return false;
23232
- for (const t of running) err("\r\x1B[0J" + yellow(` \u2298 ${dx.cancelTask(t.id)}`) + "\n");
23233
- return true;
23234
- } : void 0,
23235
- onCyclePosture: cyclePosture,
23236
- onToggleThinking: toggleReasoning,
23237
- onToggleVerbose: toggleVerbose,
23238
- onPickModel: async () => {
23239
- const picked = await pickModel(work.model);
23240
- if (picked) setModel(picked);
23241
- return picked;
23242
- },
23243
- onStash: (text) => {
23244
- inputStash.push(text);
23245
- err(`${green(" \u2713 stashed")} ${dim(`#${inputStash.length}: ${text.slice(0, 50)}${text.length > 50 ? "\u2026" : ""}`)}
23213
+ const result = await readMultiline((cont) => {
23214
+ dispatchPending = false;
23215
+ return editor.readLine({
23216
+ prompt: cont ? contPrompt : livePrompt,
23217
+ suggest,
23218
+ history,
23219
+ classifyPaste,
23220
+ onEmptyPaste: grabClipboardAttachment,
23221
+ onSubmit: () => {
23222
+ dispatchPending = true;
23223
+ },
23224
+ // claim keys buffered behind the Enter (turn isn't active yet)
23225
+ initial: cont ? void 0 : initial,
23226
+ status: computeFooter,
23227
+ vimMode: cfg.editorMode === "vim",
23228
+ statusTickMs: dx ? 1e3 : void 0,
23229
+ // duplex: animate the running-task footer while idle at the prompt
23230
+ // Esc at the idle prompt with workers running → cancel them (CC-style: Esc stops the work).
23231
+ onEscapeIdle: dx ? () => {
23232
+ const running = [...dx.tasks.values()].filter((t) => t.status === "running");
23233
+ if (!running.length) return false;
23234
+ for (const t of running) err("\r\x1B[0J" + yellow(` \u2298 ${dx.cancelTask(t.id)}`) + "\n");
23235
+ return true;
23236
+ } : void 0,
23237
+ onCyclePosture: cyclePosture,
23238
+ onToggleThinking: toggleReasoning,
23239
+ onToggleVerbose: toggleVerbose,
23240
+ onPickModel: async () => {
23241
+ const picked = await pickModel(work.model);
23242
+ if (picked) setModel(picked);
23243
+ return picked;
23244
+ },
23245
+ onStash: (text) => {
23246
+ inputStash.push(text);
23247
+ err(`${green(" \u2713 stashed")} ${dim(`#${inputStash.length}: ${text.slice(0, 50)}${text.length > 50 ? "\u2026" : ""}`)}
23246
23248
  `);
23247
- },
23248
- onUnstash: () => {
23249
- if (!inputStash.length) return void 0;
23250
- const t = inputStash.pop();
23251
- err(dim(` \u2191 unstashed${inputStash.length ? ` (${inputStash.length} left)` : ""}
23249
+ },
23250
+ onUnstash: () => {
23251
+ if (!inputStash.length) return void 0;
23252
+ const t = inputStash.pop();
23253
+ err(dim(` \u2191 unstashed${inputStash.length ? ` (${inputStash.length} left)` : ""}
23252
23254
  `));
23253
- return t;
23254
- }
23255
- }));
23255
+ return t;
23256
+ }
23257
+ });
23258
+ });
23256
23259
  if (result === null) break;
23257
23260
  if (result === REWIND) {
23258
23261
  prefill = await rewindToMessage();