open-agents-ai 0.187.287 → 0.187.289

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 +36 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -285392,6 +285392,7 @@ var init_status_bar = __esm({
285392
285392
  _streamStartTime = 0;
285393
285393
  /** Current package version (shown in metrics row, rightmost) */
285394
285394
  _version = "";
285395
+ _updateLatest = null;
285395
285396
  // ── Voice & Nexus status (for header panel display) ─────────────────
285396
285397
  _voiceActive = false;
285397
285398
  _voiceModelId = "";
@@ -285445,7 +285446,9 @@ var init_status_bar = __esm({
285445
285446
  }
285446
285447
  return `\x1B]8;;${cmdPrefix}\x07\x1B[38;5;${fg2}m${label}\x1B]8;;\x07`;
285447
285448
  };
285448
- const verText = ` OA v${this._version}`;
285449
+ const verBase = ` OA v${this._version}`;
285450
+ const verArrow = this._updateLatest ? " ↑" : "";
285451
+ const verText = verBase + verArrow;
285449
285452
  const menuBtns = [
285450
285453
  { cmd: "help", label: " help ", w: 6 },
285451
285454
  { cmd: "voice", label: " voice ", w: 7 },
@@ -285474,7 +285477,11 @@ var init_status_bar = __esm({
285474
285477
  let out = "";
285475
285478
  let usedW = 0;
285476
285479
  if (isFirstPage) {
285477
- out += `\x1B[1;38;5;${TEXT_PRIMARY}m${verText}\x1B[0m`;
285480
+ if (this._updateLatest) {
285481
+ out += `\x1B]8;;oa-cmd:/update\x07\x1B[1;38;5;${TEXT_PRIMARY}m${verText}\x1B]8;;\x07\x1B[0m`;
285482
+ } else {
285483
+ out += `\x1B[1;38;5;${TEXT_PRIMARY}m${verText}\x1B[0m`;
285484
+ }
285478
285485
  usedW += verW;
285479
285486
  }
285480
285487
  let btnTotalW = 0;
@@ -285725,6 +285732,11 @@ var init_status_bar = __esm({
285725
285732
  this._version = version4;
285726
285733
  if (this.active) this.renderFooterPreserveCursor();
285727
285734
  }
285735
+ /** Mark that a newer version is available (renders clickable ↑ next to version) */
285736
+ setUpdateAvailable(latestVersion) {
285737
+ this._updateLatest = latestVersion;
285738
+ if (this.active) this.renderHeaderButtons();
285739
+ }
285728
285740
  /** Human expert speed ratio tracker */
285729
285741
  _speedTracker = new HumanSpeedTracker();
285730
285742
  /** Record a tool call for speed ratio tracking */
@@ -286460,6 +286472,19 @@ var init_status_bar = __esm({
286460
286472
  if (viewId) this.switchToView(viewId);
286461
286473
  return;
286462
286474
  }
286475
+ const L = layout();
286476
+ const inContent = row >= this.scrollRegionTop && row <= L.contentBottom;
286477
+ if (inContent) {
286478
+ if (type === "press") {
286479
+ this._mouseSelecting = true;
286480
+ this._autoScroll = false;
286481
+ return;
286482
+ }
286483
+ if (type === "release") {
286484
+ this._mouseSelecting = false;
286485
+ return;
286486
+ }
286487
+ }
286463
286488
  }
286464
286489
  /** Copy current selection to clipboard. Returns true if copied. */
286465
286490
  copySelection() {
@@ -286913,7 +286938,7 @@ ${CONTENT_BG_SEQ}`);
286913
286938
  );
286914
286939
  }
286915
286940
  }
286916
- if (this._autoScroll) this._contentScrollOffset = 0;
286941
+ if (this._autoScroll && !this._mouseSelecting) this._contentScrollOffset = 0;
286917
286942
  }
286918
286943
  /**
286919
286944
  * Remove the last N lines from the content scrollback buffer and repaint.
@@ -331529,6 +331554,10 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
331529
331554
  checkForUpdate(version4).then((updateInfo) => {
331530
331555
  if (updateInfo) {
331531
331556
  banner.setUpdateAvailable(updateInfo.latestVersion);
331557
+ try {
331558
+ statusBar.setUpdateAvailable(updateInfo.latestVersion);
331559
+ } catch {
331560
+ }
331532
331561
  const vTextLen = ` OA v${version4}`.length;
331533
331562
  const { setUpdateBadgeRegion: setUpdateBadgeRegion2 } = (init_text_selection(), __toCommonJS(text_selection_exports));
331534
331563
  setUpdateBadgeRegion2(true, vTextLen + 1, " UPDATE ".length);
@@ -331555,6 +331584,10 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
331555
331584
  checkForUpdate(version4).then((updateInfo) => {
331556
331585
  if (updateInfo && statusBar?.isActive && !updateNotified) {
331557
331586
  updateNotified = true;
331587
+ try {
331588
+ statusBar.setUpdateAvailable(updateInfo.latestVersion);
331589
+ } catch {
331590
+ }
331558
331591
  if (!statusBar.isStreaming) {
331559
331592
  statusBar.beginContentWrite();
331560
331593
  renderInfo2(`Update available: v${version4} → v${updateInfo.latestVersion}. Run /update to install.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.287",
3
+ "version": "0.187.289",
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",