open-agents-ai 0.138.22 → 0.138.23

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 +27 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51600,7 +51600,7 @@ ${CONTENT_BG_SEQ}`);
51600
51600
  buildMetricsLine() {
51601
51601
  const m = this.metrics;
51602
51602
  const termWidth = getTermWidth();
51603
- const pastel2 = (code, s) => `\x1B[38;5;${code}m${s}\x1B[0m`;
51603
+ const pastel2 = (code, s) => `${PANEL_BG_SEQ}\x1B[38;5;${code}m${s}\x1B[0m${PANEL_BG_SEQ}`;
51604
51604
  const pipe = pastel2(60, " \u2502 ");
51605
51605
  const pipeW = 3;
51606
51606
  const sections = [];
@@ -51876,7 +51876,7 @@ ${CONTENT_BG_SEQ}`);
51876
51876
  first = false;
51877
51877
  result += isCompact[idx] ? sections[idx].compact : sections[idx].expanded;
51878
51878
  }
51879
- return result;
51879
+ return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
51880
51880
  }
51881
51881
  // -------------------------------------------------------------------------
51882
51882
  // Private
@@ -52169,12 +52169,37 @@ ${CONTENT_BG_SEQ}`);
52169
52169
  return;
52170
52170
  const self = this;
52171
52171
  const origTtyWrite = rl._ttyWrite.bind(rl);
52172
+ let arrowBurst = 0;
52173
+ let arrowBurstDir = "";
52174
+ let arrowBurstTimer = null;
52172
52175
  rl._ttyWrite = function(s, key) {
52173
52176
  if (!self.active)
52174
52177
  return origTtyWrite(s, key);
52175
52178
  if (s && (/\x1B\[</.test(s) || /^\d+;\d+;\d*[Mm]/.test(s) || /^;\d+[Mm]/.test(s) || /\[<\d/.test(s))) {
52176
52179
  return;
52177
52180
  }
52181
+ if (key?.name === "up" || key?.name === "down") {
52182
+ const dir = key.name;
52183
+ if (dir === arrowBurstDir) {
52184
+ arrowBurst++;
52185
+ } else {
52186
+ arrowBurst = 1;
52187
+ arrowBurstDir = dir;
52188
+ }
52189
+ if (arrowBurstTimer)
52190
+ clearTimeout(arrowBurstTimer);
52191
+ arrowBurstTimer = setTimeout(() => {
52192
+ arrowBurst = 0;
52193
+ arrowBurstDir = "";
52194
+ }, 80);
52195
+ if (arrowBurst >= 3) {
52196
+ if (dir === "up")
52197
+ self.scrollContentUp(1);
52198
+ else
52199
+ self.scrollContentDown(1);
52200
+ return;
52201
+ }
52202
+ }
52178
52203
  if (key?.name === "pageup" || s === "\x1B[5~") {
52179
52204
  self.pageUpContent();
52180
52205
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.22",
3
+ "version": "0.138.23",
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",