open-agents-ai 0.138.18 → 0.138.20
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 +19 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50531,7 +50531,7 @@ var init_system_metrics = __esm({
|
|
|
50531
50531
|
|
|
50532
50532
|
// packages/cli/dist/tui/status-bar.js
|
|
50533
50533
|
import { readFileSync as readFileSync31 } from "node:fs";
|
|
50534
|
-
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, StatusBar;
|
|
50534
|
+
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, CONTENT_BG, PANEL_BG_SEQ, CONTENT_BG_SEQ, RESET, StatusBar;
|
|
50535
50535
|
var init_status_bar = __esm({
|
|
50536
50536
|
"packages/cli/dist/tui/status-bar.js"() {
|
|
50537
50537
|
"use strict";
|
|
@@ -50695,6 +50695,11 @@ var init_status_bar = __esm({
|
|
|
50695
50695
|
return this.toolCalls > 0;
|
|
50696
50696
|
}
|
|
50697
50697
|
};
|
|
50698
|
+
PANEL_BG = 234;
|
|
50699
|
+
CONTENT_BG = 233;
|
|
50700
|
+
PANEL_BG_SEQ = `\x1B[48;5;${PANEL_BG}m`;
|
|
50701
|
+
CONTENT_BG_SEQ = `\x1B[48;5;${CONTENT_BG}m`;
|
|
50702
|
+
RESET = "\x1B[0m";
|
|
50698
50703
|
StatusBar = class _StatusBar {
|
|
50699
50704
|
metrics = {
|
|
50700
50705
|
promptTokens: 0,
|
|
@@ -51378,7 +51383,6 @@ var init_status_bar = __esm({
|
|
|
51378
51383
|
this._prevTermCols = cols;
|
|
51379
51384
|
const pos = this.rowPositions(rows);
|
|
51380
51385
|
const w = getTermWidth();
|
|
51381
|
-
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
51382
51386
|
const clearStart = Math.max(this.scrollRegionTop + 1, pos.scrollEnd + 1);
|
|
51383
51387
|
if (this.writeDepth > 0) {
|
|
51384
51388
|
const inputWrap = this.wrapInput(w);
|
|
@@ -51386,13 +51390,13 @@ var init_status_bar = __esm({
|
|
|
51386
51390
|
for (let row = clearStart; row <= rows; row++) {
|
|
51387
51391
|
buf += `\x1B[${row};1H\x1B[2K`;
|
|
51388
51392
|
}
|
|
51389
|
-
buf += `\x1B[${pos.bufferRow};1H${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H${
|
|
51393
|
+
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}\x1B[${pos.topSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}`;
|
|
51390
51394
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
|
51391
51395
|
const row = pos.inputStartRow + i;
|
|
51392
51396
|
const prefix = i === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
51393
51397
|
buf += `\x1B[${row};1H${prefix}${inputWrap.lines[i]}`;
|
|
51394
51398
|
}
|
|
51395
|
-
buf += `\x1B[${pos.bottomSepRow};1H${
|
|
51399
|
+
buf += `\x1B[${pos.bottomSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}\x1B[?7h\x1B[${pos.scrollEnd};1H`;
|
|
51396
51400
|
process.stdout.write(buf);
|
|
51397
51401
|
} else {
|
|
51398
51402
|
this.applyScrollRegion();
|
|
@@ -51994,16 +51998,15 @@ var init_status_bar = __esm({
|
|
|
51994
51998
|
process.stdout.write(scrollDown);
|
|
51995
51999
|
}
|
|
51996
52000
|
}
|
|
51997
|
-
const sep = `\x1B[38;5;236m${"\u2500".repeat(w)}\x1B[0m`;
|
|
51998
52001
|
const inputWrap = this.wrapInput(w);
|
|
51999
|
-
let buf = `\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H\x1B[2K${
|
|
52002
|
+
let buf = `\x1B[?7l\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}\x1B[${pos.topSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}`;
|
|
52000
52003
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
|
52001
52004
|
const row = pos.inputStartRow + i;
|
|
52002
52005
|
const prefix = i === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
52003
|
-
buf += `\x1B[${row};1H\x1B[2K${prefix}${inputWrap.lines[i]}`;
|
|
52006
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i]}${RESET}`;
|
|
52004
52007
|
}
|
|
52005
52008
|
const cursorTermRow = pos.inputStartRow + inputWrap.cursorRow;
|
|
52006
|
-
buf += `\x1B[${pos.bottomSepRow};1H\x1B[2K${
|
|
52009
|
+
buf += `\x1B[${pos.bottomSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}\x1B[?7h\x1B[${cursorTermRow};${inputWrap.cursorCol}H\x1B[?25h`;
|
|
52007
52010
|
process.stdout.write(buf);
|
|
52008
52011
|
}
|
|
52009
52012
|
/**
|
|
@@ -52030,8 +52033,7 @@ var init_status_bar = __esm({
|
|
|
52030
52033
|
const rows = process.stdout.rows ?? 24;
|
|
52031
52034
|
const w = getTermWidth();
|
|
52032
52035
|
const pos = this.rowPositions(rows);
|
|
52033
|
-
const
|
|
52034
|
-
const buf = `\x1B7\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${this.buildBufferContent(w)}\x1B[${pos.topSepRow};1H\x1B[2K${sep}\x1B[${pos.bottomSepRow};1H\x1B[2K${sep}\x1B[${pos.metricsRow};1H\x1B[2K${this.buildMetricsLine()}\x1B[?7h\x1B8` + // DEC restore cursor
|
|
52036
|
+
const buf = `\x1B7\x1B[?7l\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}\x1B[${pos.topSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}\x1B[${pos.bottomSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}\x1B[?7h\x1B8` + // DEC restore cursor
|
|
52035
52037
|
(this.writeDepth === 0 ? "\x1B[?25h" : "");
|
|
52036
52038
|
process.stdout.write(buf);
|
|
52037
52039
|
}
|
|
@@ -52066,16 +52068,15 @@ var init_status_bar = __esm({
|
|
|
52066
52068
|
buf += "\x1BM";
|
|
52067
52069
|
}
|
|
52068
52070
|
buf += "\x1B[?7l";
|
|
52069
|
-
|
|
52070
|
-
buf += `\x1B[${pos.
|
|
52071
|
-
buf += `\x1B[${pos.topSepRow};1H\x1B[2K${sep}`;
|
|
52071
|
+
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildBufferContent(w)}${RESET}`;
|
|
52072
|
+
buf += `\x1B[${pos.topSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}`;
|
|
52072
52073
|
for (let i = 0; i < inputWrap.lines.length; i++) {
|
|
52073
52074
|
const row = pos.inputStartRow + i;
|
|
52074
52075
|
const prefix = i === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
52075
|
-
buf += `\x1B[${row};1H\x1B[2K${prefix}${inputWrap.lines[i]}`;
|
|
52076
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i]}${RESET}`;
|
|
52076
52077
|
}
|
|
52077
|
-
buf += `\x1B[${pos.bottomSepRow};1H\x1B[2K${
|
|
52078
|
-
buf += `\x1B[${pos.metricsRow};1H\x1B[2K${this.buildMetricsLine()}`;
|
|
52078
|
+
buf += `\x1B[${pos.bottomSepRow};1H${PANEL_BG_SEQ}\x1B[2K${RESET}`;
|
|
52079
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET}`;
|
|
52079
52080
|
buf += "\x1B[?7h";
|
|
52080
52081
|
buf += "\x1B8";
|
|
52081
52082
|
if (heightDelta > 0) {
|
|
@@ -52116,7 +52117,7 @@ var init_status_bar = __esm({
|
|
|
52116
52117
|
const w = getTermWidth();
|
|
52117
52118
|
const pos = this.rowPositions(rows);
|
|
52118
52119
|
const content = this.buildBufferContent(w);
|
|
52119
|
-
process.stdout.write(`\x1B7\x1B[?7l\x1B[${pos.bufferRow};1H\x1B[2K${content}\x1B[?7h\x1B8`);
|
|
52120
|
+
process.stdout.write(`\x1B7\x1B[?7l\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${content}${RESET}\x1B[?7h\x1B8`);
|
|
52120
52121
|
}
|
|
52121
52122
|
/**
|
|
52122
52123
|
* Hook into process.stdin to redraw footer after every keystroke.
|
|
@@ -53442,7 +53443,7 @@ async function startInteractive(config, repoPath) {
|
|
|
53442
53443
|
initOaDirectory(repoRoot);
|
|
53443
53444
|
const savedSettings = resolveSettings(repoRoot);
|
|
53444
53445
|
if (process.stdout.isTTY) {
|
|
53445
|
-
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l
|
|
53446
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[48;5;233m\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
|
|
53446
53447
|
const restoreScreen = () => {
|
|
53447
53448
|
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?25h\x1B[?1049l");
|
|
53448
53449
|
};
|
package/package.json
CHANGED