open-agents-ai 0.187.287 → 0.187.288

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 +22 -2
  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 */
@@ -331529,6 +331541,10 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
331529
331541
  checkForUpdate(version4).then((updateInfo) => {
331530
331542
  if (updateInfo) {
331531
331543
  banner.setUpdateAvailable(updateInfo.latestVersion);
331544
+ try {
331545
+ statusBar.setUpdateAvailable(updateInfo.latestVersion);
331546
+ } catch {
331547
+ }
331532
331548
  const vTextLen = ` OA v${version4}`.length;
331533
331549
  const { setUpdateBadgeRegion: setUpdateBadgeRegion2 } = (init_text_selection(), __toCommonJS(text_selection_exports));
331534
331550
  setUpdateBadgeRegion2(true, vTextLen + 1, " UPDATE ".length);
@@ -331555,6 +331571,10 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
331555
331571
  checkForUpdate(version4).then((updateInfo) => {
331556
331572
  if (updateInfo && statusBar?.isActive && !updateNotified) {
331557
331573
  updateNotified = true;
331574
+ try {
331575
+ statusBar.setUpdateAvailable(updateInfo.latestVersion);
331576
+ } catch {
331577
+ }
331558
331578
  if (!statusBar.isStreaming) {
331559
331579
  statusBar.beginContentWrite();
331560
331580
  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.288",
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",