open-agents-ai 0.187.404 → 0.187.406
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 +21 -21
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -532533,9 +532533,9 @@ var init_status_bar = __esm({
|
|
|
532533
532533
|
const decorateMenuButton = (cmd, label) => {
|
|
532534
532534
|
const fg3 = buttonFg(cmd);
|
|
532535
532535
|
const themeBg = tuiBg();
|
|
532536
|
-
const
|
|
532536
|
+
const textFg = themeBg < 0 ? "\x1B[39m" : `\x1B[38;5;${themeBg}m`;
|
|
532537
532537
|
const body = ` ${label} `;
|
|
532538
|
-
return linkify(cmd, `\x1B[48;5;${fg3}m${
|
|
532538
|
+
return linkify(cmd, `\x1B[48;5;${fg3}m${textFg}${body}\x1B[0m${PANEL_BG_SEQ}`);
|
|
532539
532539
|
};
|
|
532540
532540
|
const renderBtn = (cmd, label) => {
|
|
532541
532541
|
const fg3 = buttonFg(cmd);
|
|
@@ -532784,7 +532784,7 @@ var init_status_bar = __esm({
|
|
|
532784
532784
|
buf += `\x1B[${hdrRow};${w - 1}H`;
|
|
532785
532785
|
buf += rightArrow;
|
|
532786
532786
|
}
|
|
532787
|
-
buf += `\x1B[${hdrRow};${w}H${BOX_FG}│${RESET2}`;
|
|
532787
|
+
buf += `\x1B[${hdrRow};${w}H${BOX_FG}│${RESET2}${PANEL_BG_SEQ}`;
|
|
532788
532788
|
buf += "\x1B8";
|
|
532789
532789
|
this.termWrite(buf);
|
|
532790
532790
|
}
|
|
@@ -533924,11 +533924,11 @@ var init_status_bar = __esm({
|
|
|
533924
533924
|
for (let i2 = 0; i2 < inputWrap.lines.length; i2++) {
|
|
533925
533925
|
const row = pos.inputStartRow + i2;
|
|
533926
533926
|
const prefix = i2 === 0 ? this.promptText : " ".repeat(this.promptWidth);
|
|
533927
|
-
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i2]}${RESET2}`;
|
|
533927
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${prefix}${inputWrap.lines[i2]}${RESET2}${PANEL_BG_SEQ}`;
|
|
533928
533928
|
}
|
|
533929
533929
|
const boxInnerP = w - 2;
|
|
533930
|
-
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerP))}${BOX_BR}${RESET2}`;
|
|
533931
|
-
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}\x1B[?7h\x1B[${pos.inputStartRow};1H`;
|
|
533930
|
+
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerP))}${BOX_BR}${RESET2}${PANEL_BG_SEQ}`;
|
|
533931
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}${PANEL_BG_SEQ}\x1B[?7h\x1B[${pos.inputStartRow};1H`;
|
|
533932
533932
|
this.termWrite(buf);
|
|
533933
533933
|
if (this._bannerRefresh) this._bannerRefresh();
|
|
533934
533934
|
} else {
|
|
@@ -534735,7 +534735,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534735
534735
|
if (fullLine.length <= availWidth) {
|
|
534736
534736
|
let displayLine;
|
|
534737
534737
|
if (ghost) {
|
|
534738
|
-
displayLine = fullLine + `\x1B[7m\x1B[38;5;${TEXT_DIM}m${ghost[0]}\x1B[0m\x1B[2m\x1B[38;5;${TEXT_DIM}m${ghost.slice(1)}\x1B[0m`;
|
|
534738
|
+
displayLine = fullLine + `\x1B[7m\x1B[38;5;${TEXT_DIM}m${ghost[0]}\x1B[0m${PANEL_BG_SEQ}\x1B[2m\x1B[38;5;${TEXT_DIM}m${ghost.slice(1)}\x1B[0m${PANEL_BG_SEQ}`;
|
|
534739
534739
|
} else {
|
|
534740
534740
|
displayLine = _StatusBar.insertVisualCursor(fullLine, cursorPos);
|
|
534741
534741
|
}
|
|
@@ -534831,7 +534831,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534831
534831
|
const inputWrap = this.wrapInput(w);
|
|
534832
534832
|
let buf = "\x1B[?7l";
|
|
534833
534833
|
const boxInner = w - 2;
|
|
534834
|
-
buf += `\x1B[${pos.inputStartRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_TL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_TR}${RESET2}`;
|
|
534834
|
+
buf += `\x1B[${pos.inputStartRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_TL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_TR}${RESET2}${PANEL_BG_SEQ}`;
|
|
534835
534835
|
const Lspacer = layout();
|
|
534836
534836
|
const spacerRow = pos.inputStartRow - 1;
|
|
534837
534837
|
const tasksOccupiesSpacer = Lspacer.tasksHeight > 0 && spacerRow >= Lspacer.tasksTop && spacerRow <= Lspacer.tasksBottom;
|
|
@@ -534845,7 +534845,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534845
534845
|
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
534846
534846
|
buf += `${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}${lineContent}`;
|
|
534847
534847
|
buf += `${PANEL_BG_SEQ}\x1B[K`;
|
|
534848
|
-
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}`;
|
|
534848
|
+
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}`;
|
|
534849
534849
|
}
|
|
534850
534850
|
const cursorTermRow = pos.inputStartRow + 1 + inputWrap.cursorRow;
|
|
534851
534851
|
if (this._suggestions.length > 0 && pos.suggestStartRow > 0) {
|
|
@@ -534857,17 +534857,17 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534857
534857
|
const fg3 = isHighlighted ? `\x1B[1;38;5;${TEXT_PRIMARY}m` : `\x1B[38;5;${TEXT_PRIMARY}m`;
|
|
534858
534858
|
const slash = isHighlighted ? `\x1B[38;5;245m` : `\x1B[38;5;${TEXT_DIM}m`;
|
|
534859
534859
|
const marker = isHighlighted ? `\x1B[38;5;${TEXT_PRIMARY}m› ` : " ";
|
|
534860
|
-
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_V}${RESET2}`;
|
|
534860
|
+
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}`;
|
|
534861
534861
|
buf += `${bg2} ${marker}${slash}/${fg3}${cmd}`;
|
|
534862
534862
|
buf += `${PANEL_BG_SEQ}\x1B[K`;
|
|
534863
|
-
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}`;
|
|
534863
|
+
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}`;
|
|
534864
534864
|
}
|
|
534865
534865
|
const suggestBottomRow = pos.suggestStartRow + this._suggestions.length;
|
|
534866
|
-
buf += `\x1B[${suggestBottomRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_BR}${RESET2}`;
|
|
534866
|
+
buf += `\x1B[${suggestBottomRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_BR}${RESET2}${PANEL_BG_SEQ}`;
|
|
534867
534867
|
} else {
|
|
534868
|
-
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_BR}${RESET2}`;
|
|
534868
|
+
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInner))}${BOX_BR}${RESET2}${PANEL_BG_SEQ}`;
|
|
534869
534869
|
}
|
|
534870
|
-
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}`;
|
|
534870
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}${PANEL_BG_SEQ}`;
|
|
534871
534871
|
buf += "\x1B[?7h";
|
|
534872
534872
|
if (this.writeDepth === 0) {
|
|
534873
534873
|
buf += `\x1B[${cursorTermRow};${inputWrap.cursorCol}H${CURSOR_BLINK_BLOCK}\x1B[?25h`;
|
|
@@ -534917,7 +534917,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534917
534917
|
} else {
|
|
534918
534918
|
buf += `\x1B[${pos.bufferRow};1H${PANEL_BG_SEQ}\x1B[2K${BOX_FG}${BOX_BL}${BOX_H.repeat(Math.max(0, boxInnerR))}${BOX_BR}${RESET2}`;
|
|
534919
534919
|
}
|
|
534920
|
-
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}\x1B[?7h\x1B8` + // DEC restore cursor
|
|
534920
|
+
buf += `\x1B[${pos.metricsRow};1H${PANEL_BG_SEQ}\x1B[2K${this.buildMetricsLine()}${RESET2}${PANEL_BG_SEQ}\x1B[?7h\x1B8` + // DEC restore cursor
|
|
534921
534921
|
(this.writeDepth === 0 ? `${CURSOR_BLINK_BLOCK}\x1B[?25h` : "");
|
|
534922
534922
|
this.termWrite(buf);
|
|
534923
534923
|
if (pos.tabBarRow > 0) this.renderAgentTabs();
|
|
@@ -534979,7 +534979,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
534979
534979
|
buf += `\x1B[${row};1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
534980
534980
|
buf += `${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}${lineContent}`;
|
|
534981
534981
|
buf += `${PANEL_BG_SEQ}\x1B[K`;
|
|
534982
|
-
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}`;
|
|
534982
|
+
buf += `\x1B[${row};${w}H${BOX_FG}${BOX_V}${RESET2}${PANEL_BG_SEQ}`;
|
|
534983
534983
|
}
|
|
534984
534984
|
buf += "\x1B[?7h";
|
|
534985
534985
|
this.termWrite(buf);
|
|
@@ -552511,9 +552511,8 @@ function accentFg() {
|
|
|
552511
552511
|
const a2 = tuiAccent();
|
|
552512
552512
|
return a2 < 0 ? "\x1B[39m" : `\x1B[38;5;${a2}m`;
|
|
552513
552513
|
}
|
|
552514
|
-
function
|
|
552515
|
-
|
|
552516
|
-
return t2 < 0 ? "\x1B[39m" : `\x1B[38;5;${t2}m`;
|
|
552514
|
+
function dimFg() {
|
|
552515
|
+
return `\x1B[38;5;${tuiTextDim()}m`;
|
|
552517
552516
|
}
|
|
552518
552517
|
function ansi4(code8, text) {
|
|
552519
552518
|
return isTTY5 ? `\x1B[${code8}m${text}\x1B[0m` : text;
|
|
@@ -552908,8 +552907,9 @@ ${icon} \x1B[38;5;198m${message2}\x1B[0m
|
|
|
552908
552907
|
}
|
|
552909
552908
|
function renderInfo2(message2) {
|
|
552910
552909
|
const redir = _contentWriteHook?.redirect?.();
|
|
552911
|
-
const
|
|
552912
|
-
const
|
|
552910
|
+
const dim = dimFg();
|
|
552911
|
+
const icon = `${dim}🛈\x1B[0m`;
|
|
552912
|
+
const text = `${icon} ${dim}${message2}\x1B[0m
|
|
552913
552913
|
`;
|
|
552914
552914
|
if (redir) {
|
|
552915
552915
|
redir(text);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.187.
|
|
3
|
+
"version": "0.187.406",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "open-agents-ai",
|
|
9
|
-
"version": "0.187.
|
|
9
|
+
"version": "0.187.406",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "CC-BY-NC-4.0",
|
|
12
12
|
"dependencies": {
|
package/package.json
CHANGED