open-agents-ai 0.138.10 → 0.138.12

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -32
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52087,42 +52087,39 @@ var init_status_bar = __esm({
52087
52087
  *
52088
52088
  * Must be called after readline is created.
52089
52089
  */
52090
+ /**
52091
+ * Hook into readline to intercept Page Up/Down before readline uses them
52092
+ * for history navigation. Monkey-patches _ttyWrite — the only reliable
52093
+ * interception point in Node.js readline.
52094
+ *
52095
+ * NO mouse reporting — SGR mouse sequences can't be reliably intercepted
52096
+ * before readline splits them into garbage text. Scroll wheel support
52097
+ * is keyboard-only (Page Up/Down, Shift+Up/Down).
52098
+ */
52090
52099
  hookReadlineScroll(rl) {
52091
52100
  if (!rl || !rl._ttyWrite)
52092
52101
  return;
52093
- const origTtyWrite = rl._ttyWrite.bind(rl);
52094
52102
  const self = this;
52103
+ const origTtyWrite = rl._ttyWrite.bind(rl);
52095
52104
  rl._ttyWrite = function(s, key) {
52096
52105
  if (!self.active)
52097
52106
  return origTtyWrite(s, key);
52098
- const seq = s || "";
52099
- if (seq.includes("[<64;") || seq.includes("\x1B[<64;")) {
52100
- self.scrollContentUp(3);
52101
- return;
52102
- }
52103
- if (seq.includes("[<65;") || seq.includes("\x1B[<65;")) {
52104
- self.scrollContentDown(3);
52105
- return;
52106
- }
52107
- if (key?.name === "pageup" || seq === "\x1B[5~") {
52107
+ if (key?.name === "pageup" || s === "\x1B[5~") {
52108
52108
  self.pageUpContent();
52109
52109
  return;
52110
52110
  }
52111
- if (key?.name === "pagedown" || seq === "\x1B[6~") {
52111
+ if (key?.name === "pagedown" || s === "\x1B[6~") {
52112
52112
  self.pageDownContent();
52113
52113
  return;
52114
52114
  }
52115
- if (key?.shift && key?.name === "up" || seq === "\x1B[1;2A") {
52115
+ if (key?.shift && key?.name === "up" || s === "\x1B[1;2A") {
52116
52116
  self.scrollContentUp(3);
52117
52117
  return;
52118
52118
  }
52119
- if (key?.shift && key?.name === "down" || seq === "\x1B[1;2B") {
52119
+ if (key?.shift && key?.name === "down" || s === "\x1B[1;2B") {
52120
52120
  self.scrollContentDown(3);
52121
52121
  return;
52122
52122
  }
52123
- if (seq.includes("[<")) {
52124
- return;
52125
- }
52126
52123
  return origTtyWrite(s, key);
52127
52124
  };
52128
52125
  }
@@ -53316,9 +53313,9 @@ async function startInteractive(config, repoPath) {
53316
53313
  initOaDirectory(repoRoot);
53317
53314
  const savedSettings = resolveSettings(repoRoot);
53318
53315
  if (process.stdout.isTTY && !isResumed) {
53319
- process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l\x1B[?1002h\x1B[?1006h");
53316
+ process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
53320
53317
  const restoreScreen = () => {
53321
- process.stdout.write("\x1B[?1006l\x1B[?1002l\x1B[?25h\x1B[?1049l");
53318
+ process.stdout.write("\x1B[?25h\x1B[?1049l");
53322
53319
  };
53323
53320
  process.on("exit", restoreScreen);
53324
53321
  process.on("SIGINT", () => {
@@ -53393,9 +53390,9 @@ async function startInteractive(config, repoPath) {
53393
53390
  const version = getVersion3();
53394
53391
  if (isResumed) {
53395
53392
  if (process.stdout.isTTY) {
53396
- process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l\x1B[?1002h\x1B[?1006h");
53393
+ process.stdout.write("\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
53397
53394
  const restoreScreen = () => {
53398
- process.stdout.write("\x1B[?1006l\x1B[?1002l\x1B[?25h\x1B[?1049l");
53395
+ process.stdout.write("\x1B[?25h\x1B[?1049l");
53399
53396
  };
53400
53397
  process.on("exit", restoreScreen);
53401
53398
  process.on("SIGINT", () => {
@@ -54260,17 +54257,6 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54260
54257
  cohereToggle() {
54261
54258
  cohereEnabled = !cohereEnabled;
54262
54259
  statusBar.setCohereActive(cohereEnabled);
54263
- if (cohereEnabled) {
54264
- banner.setDesign(createCohereBanner());
54265
- const reserved = banner.start();
54266
- if (statusBar.isActive && reserved > 0)
54267
- statusBar.setScrollRegionTop(reserved + 1);
54268
- } else {
54269
- banner.setDesign(createDefaultBanner(version));
54270
- const reserved = banner.start();
54271
- if (statusBar.isActive && reserved > 0)
54272
- statusBar.setScrollRegionTop(reserved + 1);
54273
- }
54274
54260
  return cohereEnabled;
54275
54261
  },
54276
54262
  isCohere() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.10",
3
+ "version": "0.138.12",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",