open-agents-ai 0.187.241 → 0.187.243

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 +9 -44
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -291195,38 +291195,6 @@ var init_status_bar = __esm({
291195
291195
  if (viewId) this.switchToView(viewId);
291196
291196
  return;
291197
291197
  }
291198
- const fh = this._currentFooterHeight;
291199
- const footerStart = termRows() - fh + 1;
291200
- if (row >= footerStart) return;
291201
- if (type === "press") {
291202
- this._textSelection.onMousePress(row, col);
291203
- this.repaintContent();
291204
- } else if (type === "drag") {
291205
- this._textSelection.onMouseDrag(row, col);
291206
- this.repaintContent();
291207
- } else if (type === "release") {
291208
- this._textSelection.onMouseRelease(row, col);
291209
- this.repaintContent();
291210
- if (this._textSelection.hasSelection) {
291211
- try {
291212
- const ok2 = this._textSelection.copyToClipboard();
291213
- if (ok2) {
291214
- const pos2 = this.rowPositions(termRows());
291215
- if (pos2.metricsRow > 0) {
291216
- const origWrite = this._origWrite ?? process.stdout.write.bind(process.stdout);
291217
- origWrite(`\x1B[${pos2.metricsRow};1H\x1B[2K\x1B[38;5;${TEXT_PRIMARY}m ✓ Copied to clipboard\x1B[0m`);
291218
- setTimeout(() => {
291219
- try {
291220
- this.renderFooterAndPositionInput();
291221
- } catch {
291222
- }
291223
- }, 1200);
291224
- }
291225
- }
291226
- } catch {
291227
- }
291228
- }
291229
- }
291230
291198
  }
291231
291199
  /** Copy current selection to clipboard. Returns true if copied. */
291232
291200
  copySelection() {
@@ -291708,7 +291676,6 @@ ${CONTENT_BG_SEQ}`);
291708
291676
  /** Scroll up through content history */
291709
291677
  scrollContentUp(lines = 1) {
291710
291678
  if (!this.active) return;
291711
- this._textSelection.clear();
291712
291679
  this.cancelMouseIdle();
291713
291680
  this.enableMouseTracking();
291714
291681
  this._autoScroll = false;
@@ -291721,7 +291688,6 @@ ${CONTENT_BG_SEQ}`);
291721
291688
  /** Scroll down through content history */
291722
291689
  scrollContentDown(lines = 1) {
291723
291690
  if (!this.active) return;
291724
- this._textSelection.clear();
291725
291691
  this.cancelMouseIdle();
291726
291692
  this.enableMouseTracking();
291727
291693
  this._contentScrollOffset = Math.max(0, this._contentScrollOffset - lines);
@@ -291776,19 +291742,12 @@ ${CONTENT_BG_SEQ}`);
291776
291742
  let buf = "\x1B[?2026h";
291777
291743
  buf += "\x1B7";
291778
291744
  buf += "\x1B[?25l";
291779
- const selRanges = this._textSelection.hasSelection ? this._textSelection.getSelectedRanges() : [];
291780
- const selByBufferIdx = /* @__PURE__ */ new Map();
291781
- for (const r2 of selRanges) selByBufferIdx.set(r2.bufferIdx, { startCol: r2.startCol, endCol: r2.endCol });
291782
291745
  for (let row = 0; row < h; row++) {
291783
291746
  const lineIdx = startIdx + row;
291784
291747
  let line = lineIdx < totalLines ? this._contentLines[lineIdx] : "";
291785
291748
  const screenRow = this.scrollRegionTop + row;
291786
291749
  if (screenRow < headerSafeFloor) continue;
291787
291750
  line = line.replace(/\x1B\[0m/g, `\x1B[0m${CONTENT_BG_SEQ}`);
291788
- const sel = selByBufferIdx.get(lineIdx);
291789
- if (sel) {
291790
- line = TextSelection.applyHighlight(line, sel.startCol, sel.endCol);
291791
- }
291792
291751
  buf += `\x1B[${screenRow};1H${CONTENT_BG_SEQ}\x1B[2K${line}`;
291793
291752
  }
291794
291753
  const L = layout();
@@ -314933,9 +314892,15 @@ var init_mouse_filter = __esm({
314933
314892
  if ((btn === 64 || btn === 96) && this.onScroll) this.onScroll("up", 3, row);
314934
314893
  else if ((btn === 65 || btn === 97) && this.onScroll) this.onScroll("down", 3, row);
314935
314894
  else if (this.onPointer) {
314936
- if ((btn === 0 || btn === 1 || btn === 2) && suffix === "M") this.onPointer("press", col, row);
314937
- else if (btn >= 32 && btn <= 35 && suffix === "M") this.onPointer("drag", col, row);
314938
- else if (suffix === "m") this.onPointer("release", col, row);
314895
+ const hasShift = (btn & 4) !== 0 && btn < 32;
314896
+ if (btn === 2 || hasShift) {
314897
+ } else if ((btn === 0 || btn === 1) && suffix === "M") {
314898
+ this.onPointer("press", col, row);
314899
+ } else if (btn >= 32 && btn <= 35 && suffix === "M") {
314900
+ this.onPointer("drag", col, row);
314901
+ } else if (suffix === "m") {
314902
+ this.onPointer("release", col, row);
314903
+ }
314939
314904
  }
314940
314905
  if (this.onActivity) this.onActivity();
314941
314906
  i2 += mouseMatch[0].length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.241",
3
+ "version": "0.187.243",
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",