open-agents-ai 0.187.397 → 0.187.399

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/index.js CHANGED
@@ -532758,8 +532758,8 @@ var init_status_bar = __esm({
532758
532758
  }
532759
532759
  this._sysClickZones = clickZones;
532760
532760
  }
532761
- const leftArrow = chrome.showPrev ? `\x1B]8;;oa-cmd:header-prev\x07\x1B[38;5;${TEXT_DIM}m◀\x1B]8;;\x07` : "";
532762
- const rightArrow = chrome.showNext ? `\x1B]8;;oa-cmd:header-next\x07\x1B[38;5;${TEXT_DIM}m▶\x1B]8;;\x07` : "";
532761
+ const leftArrow = chrome.showPrev ? `\x1B]8;;oa-cmd:header-prev\x07\x1B[38;5;${TEXT_DIM}m🭮\x1B]8;;\x07` : "";
532762
+ const rightArrow = chrome.showNext ? `\x1B]8;;oa-cmd:header-next\x07\x1B[38;5;${TEXT_DIM}m🭬\x1B]8;;\x07` : "";
532763
532763
  const hdrRow = layout().headerContent;
532764
532764
  let buf = "\x1B7";
532765
532765
  buf += `\x1B[${hdrRow};1H${PANEL_BG_SEQ}\x1B[2K`;
@@ -533402,17 +533402,31 @@ var init_status_bar = __esm({
533402
533402
  get hasSuggestions() {
533403
533403
  return this._suggestions.length > 0;
533404
533404
  }
533405
- /** Move suggestion highlight up */
533405
+ /** Move suggestion highlight up. Returns false at the top edge so callers can hand off to history. */
533406
533406
  suggestUp() {
533407
- if (this._suggestions.length === 0) return;
533408
- this._suggestIndex = this._suggestIndex <= 0 ? this._suggestions.length - 1 : this._suggestIndex - 1;
533407
+ if (this._suggestions.length === 0) return false;
533408
+ if (this._suggestIndex < 0) {
533409
+ this._suggestIndex = this._suggestions.length - 1;
533410
+ } else if (this._suggestIndex > 0) {
533411
+ this._suggestIndex -= 1;
533412
+ } else {
533413
+ return false;
533414
+ }
533409
533415
  if (this.active) this.renderFooterPreserveCursor();
533416
+ return true;
533410
533417
  }
533411
- /** Move suggestion highlight down */
533418
+ /** Move suggestion highlight down. Returns false at the bottom edge so callers can hand off to history. */
533412
533419
  suggestDown() {
533413
- if (this._suggestions.length === 0) return;
533414
- this._suggestIndex = this._suggestIndex >= this._suggestions.length - 1 ? 0 : this._suggestIndex + 1;
533420
+ if (this._suggestions.length === 0) return false;
533421
+ if (this._suggestIndex < 0) {
533422
+ this._suggestIndex = 0;
533423
+ } else if (this._suggestIndex < this._suggestions.length - 1) {
533424
+ this._suggestIndex += 1;
533425
+ } else {
533426
+ return false;
533427
+ }
533415
533428
  if (this.active) this.renderFooterPreserveCursor();
533429
+ return true;
533416
533430
  }
533417
533431
  /** Accept the currently highlighted suggestion */
533418
533432
  suggestAccept() {
@@ -535063,6 +535077,10 @@ ${CONTENT_BG_SEQ}`);
535063
535077
  else self2.scrollContentDown(1);
535064
535078
  return;
535065
535079
  }
535080
+ if (self2._suggestions.length > 0) {
535081
+ const handled = key.name === "up" ? self2.suggestUp() : self2.suggestDown();
535082
+ if (handled) return;
535083
+ }
535066
535084
  self2.notifyHistoryNavigation();
535067
535085
  return origTtyWrite(s2, key);
535068
535086
  }
@@ -535141,19 +535159,25 @@ ${CONTENT_BG_SEQ}`);
535141
535159
  di.on("ctrl-shift-b", () => self2.armBlockSelection());
535142
535160
  di.on("up", () => {
535143
535161
  if (self2._suggestions.length > 0) {
535144
- self2.suggestUp();
535162
+ if (self2.suggestUp()) return;
535163
+ self2.notifyHistoryNavigation();
535164
+ di.historyUp();
535145
535165
  } else if (self2.writeDepth > 0 || self2._contentScrollOffset > 0) {
535146
535166
  self2.scrollContentUp(1);
535147
535167
  } else {
535168
+ self2.notifyHistoryNavigation();
535148
535169
  di.historyUp();
535149
535170
  }
535150
535171
  });
535151
535172
  di.on("down", () => {
535152
535173
  if (self2._suggestions.length > 0) {
535153
- self2.suggestDown();
535174
+ if (self2.suggestDown()) return;
535175
+ self2.notifyHistoryNavigation();
535176
+ di.historyDown();
535154
535177
  } else if (self2.writeDepth > 0 || self2._contentScrollOffset > 0) {
535155
535178
  self2.scrollContentDown(1);
535156
535179
  } else {
535180
+ self2.notifyHistoryNavigation();
535157
535181
  di.historyDown();
535158
535182
  }
535159
535183
  });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.397",
3
+ "version": "0.187.399",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.397",
9
+ "version": "0.187.399",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.397",
3
+ "version": "0.187.399",
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",