open-agents-ai 0.187.402 → 0.187.403

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
@@ -531664,6 +531664,7 @@ __export(tui_tasks_renderer_exports, {
531664
531664
  refreshTuiTasks: () => refreshTuiTasks,
531665
531665
  refreshTuiTasksSync: () => refreshTuiTasksSync,
531666
531666
  refreshTuiTasksThemeVars: () => refreshTuiTasksThemeVars,
531667
+ setTasksRendererWriter: () => setTasksRendererWriter,
531667
531668
  setTuiTasksEnabled: () => setTuiTasksEnabled,
531668
531669
  setTuiTasksScope: () => setTuiTasksScope,
531669
531670
  setTuiTasksSession: () => setTuiTasksSession,
@@ -531672,6 +531673,9 @@ __export(tui_tasks_renderer_exports, {
531672
531673
  import { existsSync as existsSync58, readFileSync as readFileSync45, watch as fsWatch2 } from "node:fs";
531673
531674
  import { join as join76 } from "node:path";
531674
531675
  import { homedir as homedir26 } from "node:os";
531676
+ function setTasksRendererWriter(writer) {
531677
+ chromeWrite = writer;
531678
+ }
531675
531679
  function panelEffectivelyVisible() {
531676
531680
  return _enabled && !_scopeOverlayActive && !_scopeNeovimActive && !_scopePagerActive && _scopeMainViewActive;
531677
531681
  }
@@ -531946,7 +531950,7 @@ function render() {
531946
531950
  }
531947
531951
  out += RESTORE + SHOW;
531948
531952
  try {
531949
- process.stdout.write(out);
531953
+ chromeWrite(out);
531950
531954
  } catch {
531951
531955
  }
531952
531956
  _lastPaintedTop = newTop;
@@ -531964,18 +531968,21 @@ function clearLastPaintedRows() {
531964
531968
  }
531965
531969
  out += RESTORE + SHOW;
531966
531970
  try {
531967
- process.stdout.write(out);
531971
+ chromeWrite(out);
531968
531972
  } catch {
531969
531973
  }
531970
531974
  _lastPaintedTop = -1;
531971
531975
  _lastPaintedBottom = -1;
531972
531976
  }
531973
- var _activeSessionId, _watcher, _lastTodos, _enabled, _redrawScheduled, _onResizeChange, _scopeOverlayActive, _scopeMainViewActive, _scopeNeovimActive, _scopePagerActive, _lastPaintedTop, _lastPaintedBottom, MAX_VISIBLE_ROWS, SAVE, RESTORE, HIDE, SHOW, CLEAR_LINE, RESET, BG, DIM_LABEL, ACCENT, DONE2, PENDING, BLOCKED;
531977
+ var chromeWrite, _activeSessionId, _watcher, _lastTodos, _enabled, _redrawScheduled, _onResizeChange, _scopeOverlayActive, _scopeMainViewActive, _scopeNeovimActive, _scopePagerActive, _lastPaintedTop, _lastPaintedBottom, MAX_VISIBLE_ROWS, SAVE, RESTORE, HIDE, SHOW, CLEAR_LINE, RESET, BG, DIM_LABEL, ACCENT, DONE2, PENDING, BLOCKED;
531974
531978
  var init_tui_tasks_renderer = __esm({
531975
531979
  "packages/cli/src/tui/tui-tasks-renderer.ts"() {
531976
531980
  "use strict";
531977
531981
  init_layout2();
531978
531982
  init_theme();
531983
+ chromeWrite = ((data) => {
531984
+ process.stdout.write(data);
531985
+ });
531979
531986
  _activeSessionId = null;
531980
531987
  _watcher = null;
531981
531988
  _lastTodos = [];
@@ -532525,8 +532532,10 @@ var init_status_bar = __esm({
532525
532532
  };
532526
532533
  const decorateMenuButton = (cmd, label) => {
532527
532534
  const fg3 = buttonFg(cmd);
532528
- const body = `▏ ${label} ▕`;
532529
- return linkify(cmd, `\x1B[53m\x1B[38;5;${fg3}m${body}\x1B[55m`);
532535
+ const themeBg = tuiBg();
532536
+ const textFg2 = themeBg < 0 ? "\x1B[39m" : `\x1B[38;5;${themeBg}m`;
532537
+ const body = ` ${label} `;
532538
+ return linkify(cmd, `\x1B[48;5;${fg3}m${textFg2}${body}\x1B[0m${PANEL_BG_SEQ}`);
532530
532539
  };
532531
532540
  const renderBtn = (cmd, label) => {
532532
532541
  const fg3 = buttonFg(cmd);
@@ -532559,18 +532568,19 @@ var init_status_bar = __esm({
532559
532568
  const btns = menuPages[pi];
532560
532569
  const isFirstPage = pi === 0;
532561
532570
  this.registerHeaderPanel(`main-${pi}`, (innerW) => {
532571
+ const liveIdentity = this.buildHeaderIdentityRender();
532562
532572
  let out = "";
532563
532573
  let usedW = 0;
532564
532574
  if (isFirstPage) {
532565
- out += identity3.text;
532566
- usedW += verW;
532575
+ out += liveIdentity.text;
532576
+ usedW += liveIdentity.width;
532567
532577
  }
532568
532578
  let btnTotalW = 0;
532569
532579
  for (const btn of btns) btnTotalW += btn.w + 1;
532570
532580
  const gap = Math.max(1, innerW - usedW - btnTotalW);
532571
- out += `\x1B[38;5;${TEXT_DIM}m${" ".repeat(gap)}`;
532581
+ out += `${PANEL_BG_SEQ}\x1B[38;5;${TEXT_DIM}m${" ".repeat(gap)}`;
532572
532582
  for (const btn of btns) {
532573
- out += decorateMenuButton(btn.cmd, btn.label) + " ";
532583
+ out += decorateMenuButton(btn.cmd, btn.label) + `${PANEL_BG_SEQ} `;
532574
532584
  }
532575
532585
  return out;
532576
532586
  }, {
@@ -557817,6 +557827,9 @@ var init_project_context = __esm({
557817
557827
  });
557818
557828
 
557819
557829
  // packages/cli/src/tui/carousel.ts
557830
+ function setCarouselWriter(writer) {
557831
+ chromeWrite2 = writer;
557832
+ }
557820
557833
  function fg2(code8, text) {
557821
557834
  return isTTY6 ? `\x1B[38;5;${code8}m${text}\x1B[0m` : text;
557822
557835
  }
@@ -557856,12 +557869,15 @@ function createRow(phraseIndices, speed, direction, bank) {
557856
557869
  const phrases = phraseIndices.map((i2) => bank[i2 % bank.length]);
557857
557870
  return { phrases, offset: 0, speed, direction, renderedPlain: "" };
557858
557871
  }
557859
- var isTTY6, PHRASES, Carousel;
557872
+ var isTTY6, chromeWrite2, PHRASES, Carousel;
557860
557873
  var init_carousel = __esm({
557861
557874
  "packages/cli/src/tui/carousel.ts"() {
557862
557875
  "use strict";
557863
557876
  init_layout2();
557864
557877
  isTTY6 = process.stdout.isTTY ?? false;
557878
+ chromeWrite2 = ((data) => {
557879
+ process.stdout.write(data);
557880
+ });
557865
557881
  PHRASES = [
557866
557882
  // English
557867
557883
  { text: "freedom of information", color: 39 },
@@ -557974,12 +557990,12 @@ var init_carousel = __esm({
557974
557990
  this.started = true;
557975
557991
  setHeaderHeight(this.reservedRows);
557976
557992
  const L = layout();
557977
- process.stdout.write(`\x1B[${L.headerTop};1H`);
557993
+ chromeWrite2(`\x1B[${L.headerTop};1H`);
557978
557994
  for (let i2 = 0; i2 < this.reservedRows; i2++) {
557979
- process.stdout.write("\x1B[2K\n");
557995
+ chromeWrite2("\x1B[2K\n");
557980
557996
  }
557981
- process.stdout.write(`\x1B[${L.contentTop};${L.rows}r`);
557982
- process.stdout.write(`\x1B[${L.contentTop};1H`);
557997
+ chromeWrite2(`\x1B[${L.contentTop};${L.rows}r`);
557998
+ chromeWrite2(`\x1B[${L.contentTop};1H`);
557983
557999
  this.resizeHandler = () => {
557984
558000
  this.width = termCols();
557985
558001
  this.rebuildRibbons();
@@ -558013,7 +558029,7 @@ var init_carousel = __esm({
558013
558029
  buf += `\x1B[${L.headerBottom};1H\x1B[2K`;
558014
558030
  buf += "\x1B[?7h";
558015
558031
  buf += "\x1B8";
558016
- process.stdout.write(buf);
558032
+ chromeWrite2(buf);
558017
558033
  }
558018
558034
  /**
558019
558035
  * Extract a terminal-width colored window from a scrolling ribbon.
@@ -558088,7 +558104,7 @@ var init_carousel = __esm({
558088
558104
  setHeaderHeight(HEADER_ROWS);
558089
558105
  buf += "\x1B[r";
558090
558106
  buf += "\x1B8";
558091
- process.stdout.write(buf);
558107
+ chromeWrite2(buf);
558092
558108
  this.started = false;
558093
558109
  }
558094
558110
  get isRunning() {
@@ -558119,7 +558135,7 @@ __export(banner_exports, {
558119
558135
  import { existsSync as existsSync71, readFileSync as readFileSync56, writeFileSync as writeFileSync38, mkdirSync as mkdirSync41 } from "node:fs";
558120
558136
  import { join as join88 } from "node:path";
558121
558137
  function setBannerWriter(writer) {
558122
- chromeWrite = writer;
558138
+ chromeWrite3 = writer;
558123
558139
  }
558124
558140
  function generateMnemonic(seed) {
558125
558141
  let h = 2166136261;
@@ -558315,14 +558331,14 @@ function createAnimatedBanner(id, name10, frameBuilders, frameDurationMs, author
558315
558331
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
558316
558332
  };
558317
558333
  }
558318
- var isTTY7, chromeWrite, MNEMONIC_ADJECTIVES, MNEMONIC_NOUNS, BannerRenderer;
558334
+ var isTTY7, chromeWrite3, MNEMONIC_ADJECTIVES, MNEMONIC_NOUNS, BannerRenderer;
558319
558335
  var init_banner = __esm({
558320
558336
  "packages/cli/src/tui/banner.ts"() {
558321
558337
  "use strict";
558322
558338
  init_theme();
558323
558339
  init_layout2();
558324
558340
  isTTY7 = process.stdout.isTTY ?? false;
558325
- chromeWrite = ((data) => {
558341
+ chromeWrite3 = ((data) => {
558326
558342
  process.stdout.write(data);
558327
558343
  });
558328
558344
  MNEMONIC_ADJECTIVES = [
@@ -558496,7 +558512,7 @@ var init_banner = __esm({
558496
558512
  this.currentDesign = createCohereBanner();
558497
558513
  }
558498
558514
  const L = layout();
558499
- chromeWrite(`\x1B[${L.contentTop};${L.rows}r`);
558515
+ chromeWrite3(`\x1B[${L.contentTop};${L.rows}r`);
558500
558516
  this.renderCurrentFrame();
558501
558517
  }
558502
558518
  };
@@ -558559,7 +558575,7 @@ var init_banner = __esm({
558559
558575
  }
558560
558576
  buf += "\x1B[0m";
558561
558577
  try {
558562
- chromeWrite(buf);
558578
+ chromeWrite3(buf);
558563
558579
  } catch (err) {
558564
558580
  if (err?.code === "EIO" || err?.code === "EPIPE" || err?.code === "ERR_STREAM_DESTROYED") {
558565
558581
  this.stop();
@@ -558569,7 +558585,7 @@ var init_banner = __esm({
558569
558585
  if (this.onAfterRender) this.onAfterRender();
558570
558586
  const Lp = layout();
558571
558587
  try {
558572
- chromeWrite(`\x1B[${Lp.footerInput};1H\x1B[?2026l`);
558588
+ chromeWrite3(`\x1B[${Lp.footerInput};1H\x1B[?2026l`);
558573
558589
  } catch {
558574
558590
  }
558575
558591
  }
@@ -581792,6 +581808,8 @@ async function startInteractive(config, repoPath) {
581792
581808
  const statusBar = new StatusBar();
581793
581809
  statusBar.setVersion(version4);
581794
581810
  setBannerWriter((data) => statusBar.writeChrome(data));
581811
+ setCarouselWriter((data) => statusBar.writeChrome(data));
581812
+ setTasksRendererWriter((data) => statusBar.writeChrome(data));
581795
581813
  onTuiTasksHeightChange((nextHeight) => {
581796
581814
  try {
581797
581815
  statusBar.reapplyScrollRegion();
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.402",
3
+ "version": "0.187.403",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.402",
9
+ "version": "0.187.403",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
@@ -2944,9 +2944,9 @@
2944
2944
  "license": "MIT"
2945
2945
  },
2946
2946
  "node_modules/baseline-browser-mapping": {
2947
- "version": "2.10.19",
2948
- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.19.tgz",
2949
- "integrity": "sha512-qCkNLi2sfBOn8XhZQ0FXsT1Ki/Yo5P90hrkRamVFRS7/KV9hpfA4HkoWNU152+8w0zPjnxo5psx5NL3PSGgv5g==",
2947
+ "version": "2.10.20",
2948
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.20.tgz",
2949
+ "integrity": "sha512-1AaXxEPfXT+GvTBJFuy4yXVHWJBXa4OdbIebGN/wX5DlsIkU0+wzGnd2lOzokSk51d5LUmqjgBLRLlypLUqInQ==",
2950
2950
  "license": "Apache-2.0",
2951
2951
  "peer": true,
2952
2952
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.402",
3
+ "version": "0.187.403",
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",