@livx.cc/agentx 0.99.138 → 0.99.139

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
@@ -18773,6 +18773,7 @@ function createLineEditor(out, input = keyInput) {
18773
18773
  return {
18774
18774
  readLine,
18775
18775
  redrawNow: () => activeRedraw?.(),
18776
+ isReading: () => !!activeRedraw,
18776
18777
  suspend: () => {
18777
18778
  if (suspended) return;
18778
18779
  suspended = true;
@@ -22765,8 +22766,9 @@ ${task}`;
22765
22766
  keyInput.on("keypress", (_s, key) => {
22766
22767
  if (isMenuActive()) return;
22767
22768
  if (!activeTurn && !dispatchPending) return;
22769
+ const editorOwnsKeys = editor.isReading();
22768
22770
  if (key?.ctrl && key?.name === "o") {
22769
- toggleVerbose();
22771
+ if (!editorOwnsKeys) toggleVerbose();
22770
22772
  return;
22771
22773
  }
22772
22774
  const k = key?.name;
@@ -22788,6 +22790,7 @@ ${task}`;
22788
22790
  }
22789
22791
  return;
22790
22792
  }
22793
+ if (editorOwnsKeys) return;
22791
22794
  const action = applyKey2(sEd, key ?? {}, _s);
22792
22795
  if (action === "submit") {
22793
22796
  const text = sEd.expand().trim();