open-agents-ai 0.187.63 → 0.187.65
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 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -278286,10 +278286,10 @@ var init_status_bar = __esm({
|
|
|
278286
278286
|
const leftArrow = hasMultiple ? `\x1B]8;;oa-cmd:header-prev\x07\x1B[38;5;${TEXT_DIM}m${this._headerPanelIndex > 0 ? "\u25C0" : " "}\x1B]8;;\x07` : " ";
|
|
278287
278287
|
const rightArrow = hasMultiple ? `\x1B]8;;oa-cmd:header-next\x07\x1B[38;5;${TEXT_DIM}m${this._headerPanelIndex < this._headerPanels.length - 1 ? "\u25B6" : " "}\x1B]8;;\x07` : " ";
|
|
278288
278288
|
let buf = "\x1B7";
|
|
278289
|
-
buf += `\x1B[2;1H\x1B[
|
|
278290
|
-
buf += `${BOX_FG}\u2502${RESET}
|
|
278289
|
+
buf += `\x1B[2;1H${PANEL_BG_SEQ}\x1B[2K`;
|
|
278290
|
+
buf += `${BOX_FG}\u2502${RESET}${PANEL_BG_SEQ}`;
|
|
278291
278291
|
buf += leftArrow;
|
|
278292
|
-
buf += `\x1B[38;5;${TEXT_PRIMARY}m
|
|
278292
|
+
buf += `\x1B[38;5;${TEXT_PRIMARY}m${PANEL_BG_SEQ}`;
|
|
278293
278293
|
buf += content;
|
|
278294
278294
|
buf += `\x1B[2;${w - 1}H`;
|
|
278295
278295
|
buf += rightArrow;
|
|
@@ -280478,8 +280478,10 @@ ${CONTENT_BG_SEQ}`);
|
|
|
280478
280478
|
return;
|
|
280479
280479
|
}
|
|
280480
280480
|
if (key?.name === "return" || key?.name === "enter") {
|
|
280481
|
-
|
|
280482
|
-
|
|
280481
|
+
const currentLine = rl.line ?? "";
|
|
280482
|
+
rl.line = "";
|
|
280483
|
+
rl.cursor = 0;
|
|
280484
|
+
rl.emit("line", currentLine);
|
|
280483
280485
|
self2.updateFooterHeight();
|
|
280484
280486
|
self2.renderFooterAndPositionInput();
|
|
280485
280487
|
return;
|
|
@@ -284479,11 +284481,11 @@ async function startNeovimMode(opts) {
|
|
|
284479
284481
|
if (!isTTY5)
|
|
284480
284482
|
return;
|
|
284481
284483
|
let buf = "\x1B7";
|
|
284482
|
-
buf += `\x1B[2;1H\x1B[
|
|
284484
|
+
buf += `\x1B[2;1H\x1B[49m\x1B[2K`;
|
|
284483
284485
|
for (const btn of toolbarBtns) {
|
|
284484
284486
|
buf += `\x1B[2;${btn.startCol}H`;
|
|
284485
284487
|
buf += `\x1B]8;;oa-cmd:${btn.action}\x07`;
|
|
284486
|
-
buf += `\x1B[38;5;245m\x1B[
|
|
284488
|
+
buf += `\x1B[38;5;245m\x1B[49m${btn.label}`;
|
|
284487
284489
|
buf += `\x1B]8;;\x07`;
|
|
284488
284490
|
}
|
|
284489
284491
|
buf += "\x1B[0m\x1B8";
|
|
@@ -293926,7 +293928,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
293926
293928
|
const contentHeight = Math.max(5, contentBottom - contentTop + 1);
|
|
293927
293929
|
let buf = "\x1B[?2026h\x1B7\x1B[?25l";
|
|
293928
293930
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
293929
|
-
buf += `\x1B[${r2};1H\x1B[
|
|
293931
|
+
buf += `\x1B[${r2};1H\x1B[49m\x1B[2K`;
|
|
293930
293932
|
}
|
|
293931
293933
|
const centerRow = contentTop + Math.floor(contentHeight / 2);
|
|
293932
293934
|
const centerCol = Math.floor(cols / 2);
|
|
@@ -293999,7 +294001,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
293999
294001
|
const contentBottom = rows - 5;
|
|
294000
294002
|
let buf = "\x1B7";
|
|
294001
294003
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
294002
|
-
buf += `\x1B[${r2};1H\x1B[
|
|
294004
|
+
buf += `\x1B[${r2};1H\x1B[49m\x1B[2K`;
|
|
294003
294005
|
}
|
|
294004
294006
|
buf += "\x1B8";
|
|
294005
294007
|
process.stdout.write(buf);
|
|
@@ -296609,7 +296611,7 @@ var init_banner = __esm({
|
|
|
296609
296611
|
this.width = process.stdout.columns ?? 80;
|
|
296610
296612
|
let buf = "\x1B[?2026h";
|
|
296611
296613
|
for (let r2 = 0; r2 < this.rows; r2++) {
|
|
296612
|
-
buf += `\x1B[${r2 + 1};1H\x1B[2K`;
|
|
296614
|
+
buf += `\x1B[${r2 + 1};1H${tuiBg() >= 0 ? `\x1B[48;5;${tuiBg()}m` : "\x1B[49m"}\x1B[2K`;
|
|
296613
296615
|
const row = frame.grid[r2];
|
|
296614
296616
|
if (!row)
|
|
296615
296617
|
continue;
|
|
@@ -297150,14 +297152,14 @@ var init_stream_renderer = __esm({
|
|
|
297150
297152
|
this.lineStarted = false;
|
|
297151
297153
|
}
|
|
297152
297154
|
if (this.thinkingTokenCount % 50 === 0) {
|
|
297153
|
-
this.writeRaw(`\x1B[1A\x1B[
|
|
297155
|
+
this.writeRaw(`\x1B[1A\x1B[49m\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thinking... (${this.thinkingTokenCount} tokens)`)}
|
|
297154
297156
|
`);
|
|
297155
297157
|
}
|
|
297156
297158
|
return;
|
|
297157
297159
|
}
|
|
297158
297160
|
if (this.thinkingIndicatorShown && kind === "content") {
|
|
297159
297161
|
this.thinkingIndicatorShown = false;
|
|
297160
|
-
this.writeRaw(`\x1B[1A\x1B[
|
|
297162
|
+
this.writeRaw(`\x1B[1A\x1B[49m\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thought for ${this.thinkingTokenCount} tokens`)}
|
|
297161
297163
|
`);
|
|
297162
297164
|
this.thinkingTokenCount = 0;
|
|
297163
297165
|
this.lineStarted = false;
|
|
@@ -308515,7 +308517,9 @@ async function startInteractive(config, repoPath) {
|
|
|
308515
308517
|
let restoredSessionContext = null;
|
|
308516
308518
|
if (process.stdout.isTTY) {
|
|
308517
308519
|
process.stdout.write("\x1B[2J\x1B[3J\x1B]50;ClearScrollback\x07\x1B[H");
|
|
308518
|
-
process.stdout.write(
|
|
308520
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h" + // enter alternate screen buffer
|
|
308521
|
+
tuiBgSeq() + // theme bg for content area
|
|
308522
|
+
`\x1B[2J\x1B[3J\x1B[H\x1B[1;${process.stdout.rows ?? 24}r\x1B[?25l`);
|
|
308519
308523
|
const restoreScreen = () => {
|
|
308520
308524
|
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?25h\x1B[?1049l");
|
|
308521
308525
|
};
|
|
@@ -309123,7 +309127,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
309123
309127
|
const RECALL_WINDOW_MS = 1500;
|
|
309124
309128
|
let sessionSudoPassword = null;
|
|
309125
309129
|
let sudoPromptPending = false;
|
|
309126
|
-
const panelBg =
|
|
309130
|
+
const panelBg = tuiBgSeq();
|
|
309127
309131
|
const idlePrompt = `${panelBg}${c3.bold(c3.white("\u276F "))}${panelBg}`;
|
|
309128
309132
|
const activePrompt = `${panelBg}${c3.bold(c3.white("+ "))}${panelBg}`;
|
|
309129
309133
|
const pausedPrompt = `${panelBg}${c3.bold(c3.yellow("| "))}${panelBg}`;
|
|
@@ -312303,6 +312307,7 @@ var init_interactive = __esm({
|
|
|
312303
312307
|
init_stream_renderer();
|
|
312304
312308
|
init_tui_select();
|
|
312305
312309
|
init_edit_history();
|
|
312310
|
+
init_theme();
|
|
312306
312311
|
init_dream_engine();
|
|
312307
312312
|
init_bless_engine();
|
|
312308
312313
|
init_dmn_engine();
|
package/package.json
CHANGED