open-agents-ai 0.187.110 → 0.187.112

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 +19 -20
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -278745,7 +278745,7 @@ function setTerminalTitle(task, version4) {
278745
278745
  const title = task ? `${task.slice(0, 60)} \xB7 ${ver}` : ver;
278746
278746
  process.stdout.write(`\x1B]2;${title}\x07`);
278747
278747
  }
278748
- var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, PANEL_BG_SEQ, CONTENT_BG_SEQ, BOX_FG, TEXT_PRIMARY, TEXT_DIM, BOX_TL, BOX_TR, BOX_BL, BOX_BR, BOX_H, BOX_V, _globalFooterLock, RESET, _isWindows, StatusBar;
278748
+ var EXPERT_TOOL_BASELINES, CONTEXT_SWITCH_OVERHEAD, TURN_PLANNING_OVERHEAD, DEFAULT_TOOL_BASELINE, CODE_READ_CHARS_PER_SEC, PROSE_READ_CHARS_PER_SEC, MIN_CONTENT_FOR_READING, CODE_CONTENT_TOOLS, PROSE_CONTENT_TOOLS, HumanSpeedTracker, PANEL_BG_SEQ, CONTENT_BG_SEQ, BOX_FG, TEXT_PRIMARY, TEXT_DIM, BOX_TL, BOX_TR, BOX_BL, BOX_BR, BOX_H, BOX_V, _globalFooterLock, RESET, CURSOR_BLINK_BLOCK, _isWindows, StatusBar;
278749
278749
  var init_status_bar = __esm({
278750
278750
  "packages/cli/dist/tui/status-bar.js"() {
278751
278751
  "use strict";
@@ -278927,6 +278927,7 @@ var init_status_bar = __esm({
278927
278927
  BOX_V = "\u2502";
278928
278928
  _globalFooterLock = false;
278929
278929
  RESET = "\x1B[0m";
278930
+ CURSOR_BLINK_BLOCK = "\x1B[1 q";
278930
278931
  _isWindows = process.platform === "win32";
278931
278932
  StatusBar = class _StatusBar {
278932
278933
  metrics = {
@@ -280726,7 +280727,7 @@ ${CONTENT_BG_SEQ}`);
280726
280727
  if (!this.active)
280727
280728
  return;
280728
280729
  const L = layout();
280729
- this.termWrite(`\x1B[${L.footerInput};${this.promptWidth + 2}H\x1B[?25h`);
280730
+ this.termWrite(`\x1B[${L.footerInput};${this.promptWidth + 2}H${CURSOR_BLINK_BLOCK}\x1B[?25h`);
280730
280731
  }
280731
280732
  /** Strip ANSI escape codes to measure visible character width */
280732
280733
  static visWidth(s2) {
@@ -281137,7 +281138,9 @@ ${CONTENT_BG_SEQ}`);
281137
281138
  return {
281138
281139
  lines: [displayLine],
281139
281140
  cursorRow: 0,
281140
- cursorCol: this.promptWidth + cursorPos + 1
281141
+ // Align with bordered input layout: col1 is │, content starts at col2.
281142
+ // Keep this consistent with the wrapped path (+2) and positionAtInput().
281143
+ cursorCol: this.promptWidth + cursorPos + 2
281141
281144
  };
281142
281145
  }
281143
281146
  const rawLines = [];
@@ -281268,7 +281271,7 @@ ${CONTENT_BG_SEQ}`);
281268
281271
  buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}`;
281269
281272
  buf += "\x1B[?7h";
281270
281273
  if (this.writeDepth === 0) {
281271
- buf += `\x1B[${cursorTermRow};${inputWrap.cursorCol}H\x1B[?25h`;
281274
+ buf += `\x1B[${cursorTermRow};${inputWrap.cursorCol}H${CURSOR_BLINK_BLOCK}\x1B[?25h`;
281272
281275
  }
281273
281276
  this.termWrite(buf);
281274
281277
  }
@@ -281317,7 +281320,7 @@ ${CONTENT_BG_SEQ}`);
281317
281320
  buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerR))}${BOX_BR}${RESET}`;
281318
281321
  }
281319
281322
  buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}\x1B[?7h\x1B8` + // DEC restore cursor
281320
- (this.writeDepth === 0 ? "\x1B[?25h" : "");
281323
+ (this.writeDepth === 0 ? `${CURSOR_BLINK_BLOCK}\x1B[?25h` : "");
281321
281324
  this.termWrite(buf);
281322
281325
  if (pos.tabBarRow > 0)
281323
281326
  this.renderAgentTabs();
@@ -310117,18 +310120,18 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
310117
310120
  }
310118
310121
  statusBar.refreshHeaderContent();
310119
310122
  if (isResumed) {
310120
- statusBar.beginContentWrite();
310121
310123
  const { getLastTaskSummary: getLastTaskSummary2 } = (init_oa_directory(), __toCommonJS(oa_directory_exports));
310122
310124
  const taskSummary = hasTaskToResume ? getLastTaskSummary2(repoRoot) : null;
310123
310125
  const resumeMsg = taskSummary ? `v${version4} \u2014 picking up: ${taskSummary}` : `Updated to v${version4}.`;
310124
- renderInfo(resumeMsg);
310125
- const resumePrompt = buildContextRestorePrompt(repoRoot);
310126
- if (resumePrompt) {
310127
- restoredSessionContext = resumePrompt;
310128
- const info = loadSessionContext(repoRoot);
310129
- renderInfo(`Context restored from ${info?.entries.length ?? 0} session(s).`);
310130
- }
310131
- statusBar.endContentWrite();
310126
+ writeContent(() => {
310127
+ renderInfo(resumeMsg);
310128
+ const resumePrompt = buildContextRestorePrompt(repoRoot);
310129
+ if (resumePrompt) {
310130
+ restoredSessionContext = resumePrompt;
310131
+ const info = loadSessionContext(repoRoot);
310132
+ renderInfo(`Context restored from ${info?.entries.length ?? 0} session(s).`);
310133
+ }
310134
+ });
310132
310135
  }
310133
310136
  setContentWriteHook({
310134
310137
  begin: () => statusBar.beginContentWrite(),
@@ -310276,16 +310279,12 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
310276
310279
  voiceEngine.toggle().then((msg) => {
310277
310280
  statusBar.setVoiceStatus(voiceEngine.enabled, voiceEngine.modelId || "");
310278
310281
  if (statusBar?.isActive && !statusBar.isStreaming) {
310279
- statusBar.beginContentWrite();
310280
- renderInfo(msg);
310281
- statusBar.endContentWrite();
310282
+ writeContent(() => renderInfo(msg));
310282
310283
  }
310283
310284
  }).catch((err) => {
310284
310285
  const msg = err instanceof Error ? err.message : String(err);
310285
310286
  if (statusBar?.isActive && !statusBar.isStreaming) {
310286
- statusBar.beginContentWrite();
310287
- renderWarning(`Voice: ${msg.slice(0, 80)}`);
310288
- statusBar.endContentWrite();
310287
+ writeContent(() => renderWarning(`Voice: ${msg.slice(0, 80)}`));
310289
310288
  }
310290
310289
  });
310291
310290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.110",
3
+ "version": "0.187.112",
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",