open-agents-ai 0.138.85 → 0.138.87

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 +13 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -52342,7 +52342,9 @@ function renderHeaderButtons(termWidth) {
52342
52342
  fg2 = BTN_HOVER_FG;
52343
52343
  }
52344
52344
  out += `\x1B[${btn.row};${btn.startCol}H`;
52345
+ out += `\x1B]8;;oa-cmd:${btn.command}\x07`;
52345
52346
  out += `\x1B[38;5;${fg2}m\x1B[48;5;${bg}m${btn.label}\x1B[0m`;
52347
+ out += `\x1B]8;;\x07`;
52346
52348
  }
52347
52349
  return out;
52348
52350
  }
@@ -53439,27 +53441,19 @@ var init_status_bar = __esm({
53439
53441
  const cmd = hitTestHeaderButton(row, col, w);
53440
53442
  if (type === "press" && cmd) {
53441
53443
  setPressedButton(cmd);
53444
+ setHoveredButton(null);
53442
53445
  this.renderHeaderButtons();
53446
+ if (this._headerButtonHandler)
53447
+ this._headerButtonHandler(cmd);
53443
53448
  setTimeout(() => {
53444
53449
  setPressedButton(null);
53445
53450
  this.renderHeaderButtons();
53446
- if (this._headerButtonHandler)
53447
- this._headerButtonHandler(cmd);
53448
- }, 100);
53449
- return;
53450
- }
53451
- if (type === "drag") {
53452
- const prev = globalThis.__oaHoveredBtn;
53453
- setHoveredButton(cmd);
53454
- if (cmd !== prev) {
53455
- globalThis.__oaHoveredBtn = cmd;
53456
- this.renderHeaderButtons();
53457
- }
53451
+ }, 150);
53458
53452
  return;
53459
53453
  }
53460
53454
  if (type === "release") {
53455
+ setPressedButton(null);
53461
53456
  setHoveredButton(null);
53462
- globalThis.__oaHoveredBtn = null;
53463
53457
  this.renderHeaderButtons();
53464
53458
  return;
53465
53459
  }
@@ -56477,18 +56471,19 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
56477
56471
  }
56478
56472
  });
56479
56473
  let commandCtxRef = null;
56474
+ let headerBtnActive = null;
56480
56475
  statusBar.setHeaderButtonHandler((command) => {
56481
56476
  if (!commandCtxRef)
56482
56477
  return;
56478
+ if (headerBtnActive)
56479
+ return;
56480
+ headerBtnActive = command;
56483
56481
  (async () => {
56484
56482
  try {
56485
- if (statusBar.isActive)
56486
- statusBar.beginContentWrite();
56487
- await handleSlashCommand(command, commandCtxRef);
56488
- if (statusBar.isActive)
56489
- statusBar.endContentWrite();
56483
+ await writeContentAsync(() => handleSlashCommand(command, commandCtxRef));
56490
56484
  } catch {
56491
56485
  }
56486
+ headerBtnActive = null;
56492
56487
  })();
56493
56488
  });
56494
56489
  rl.output = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.85",
3
+ "version": "0.138.87",
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",