open-agents-ai 0.187.37 → 0.187.38
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 +28 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -276850,7 +276850,7 @@ function tuiSelect(opts) {
|
|
|
276850
276850
|
const hasCrumbs = opts.breadcrumbs && opts.breadcrumbs.length > 0;
|
|
276851
276851
|
const selectChrome = (hasCrumbs ? 11 : 10) + 3;
|
|
276852
276852
|
const contentArea = opts.availableRows ? opts.availableRows + reservedTopBottom : process.stdout.rows ?? 24;
|
|
276853
|
-
|
|
276853
|
+
let maxVisible = opts.maxVisible ?? Math.max(3, contentArea - selectChrome);
|
|
276854
276854
|
let scrollOffset = 0;
|
|
276855
276855
|
let lastRenderedLines = 0;
|
|
276856
276856
|
return new Promise((resolve39) => {
|
|
@@ -276872,7 +276872,7 @@ function tuiSelect(opts) {
|
|
|
276872
276872
|
}
|
|
276873
276873
|
stdin.resume();
|
|
276874
276874
|
enterOverlay();
|
|
276875
|
-
overlayWrite("\x1B[?1049h\x1B[48;5;
|
|
276875
|
+
overlayWrite("\x1B[?1049h\x1B[48;5;0m\x1B[2J\x1B[H\x1B[?25l\x1B[?1003h\x1B[?1006h");
|
|
276876
276876
|
let listRowOffset = 0;
|
|
276877
276877
|
function clampScroll(displayList) {
|
|
276878
276878
|
const cursorPos = displayList.indexOf(cursor);
|
|
@@ -276888,7 +276888,11 @@ function tuiSelect(opts) {
|
|
|
276888
276888
|
}
|
|
276889
276889
|
const hasBreadcrumbs = opts.breadcrumbs && opts.breadcrumbs.length > 0;
|
|
276890
276890
|
function render() {
|
|
276891
|
-
|
|
276891
|
+
const currentRows = process.stdout.rows ?? 24;
|
|
276892
|
+
if (!opts.maxVisible) {
|
|
276893
|
+
maxVisible = Math.max(3, currentRows - selectChrome);
|
|
276894
|
+
}
|
|
276895
|
+
overlayWrite("\x1B[48;5;0m\x1B[H\x1B[2J");
|
|
276892
276896
|
const lines = [];
|
|
276893
276897
|
lines.push("", "", "");
|
|
276894
276898
|
if (hasBreadcrumbs) {
|
|
@@ -276970,8 +276974,8 @@ function tuiSelect(opts) {
|
|
|
276970
276974
|
lines.push(` ${selectColors.dim("\u2191/\u2193 navigate Enter/Click select" + actionHint + deleteHint + customHint + " Esc " + escLabel + " Type to filter")}`);
|
|
276971
276975
|
}
|
|
276972
276976
|
lines.push("");
|
|
276973
|
-
let output = lines.join("\n").replace(/\x1B\[0m/g, "\x1B[0m\x1B[48;5;
|
|
276974
|
-
overlayWrite("\x1B[48;5;
|
|
276977
|
+
let output = lines.join("\n").replace(/\x1B\[0m/g, "\x1B[0m\x1B[48;5;0m").replace(/\n/g, "\x1B[K\n\x1B[48;5;0m");
|
|
276978
|
+
overlayWrite("\x1B[48;5;0m" + output + "\x1B[K");
|
|
276975
276979
|
lastRenderedLines = lines.length;
|
|
276976
276980
|
}
|
|
276977
276981
|
function cleanup() {
|
|
@@ -277427,8 +277431,8 @@ var init_daemon_registry = __esm({
|
|
|
277427
277431
|
*/
|
|
277428
277432
|
renderBar(width) {
|
|
277429
277433
|
this.refresh();
|
|
277430
|
-
const PANEL_BG2 = "\x1B[48;5;
|
|
277431
|
-
const BTN_BG = "\x1B[48;5;
|
|
277434
|
+
const PANEL_BG2 = "\x1B[48;5;0m";
|
|
277435
|
+
const BTN_BG = "\x1B[48;5;0m";
|
|
277432
277436
|
let bar = "";
|
|
277433
277437
|
for (const [, d2] of this.daemons) {
|
|
277434
277438
|
const dotColor = d2.status === "running" ? "32" : (
|
|
@@ -280633,7 +280637,7 @@ async function startNeovimMode(opts) {
|
|
|
280633
280637
|
const bottomBound = Math.min(termRows, topOffset + ptyRows);
|
|
280634
280638
|
process.stdout.write(`\x1B[${topOffset + 1};${bottomBound}r\x1B[${topOffset + 1};1H`);
|
|
280635
280639
|
}
|
|
280636
|
-
const initVimCmd = "let g:loaded_netrwPlugin=1 | let g:loaded_netrw=1 | set mouse=a autoread updatetime=300 signcolumn=no noswapfile | hi WinSeparator guifg=#
|
|
280640
|
+
const initVimCmd = "let g:loaded_netrwPlugin=1 | let g:loaded_netrw=1 | set mouse=a autoread updatetime=300 signcolumn=no noswapfile | hi WinSeparator guifg=#000000 guibg=#000000 ctermfg=0 ctermbg=0 | hi VertSplit guifg=#000000 guibg=#000000 ctermfg=0 ctermbg=0 | hi StatusLine guifg=#bcbcbc guibg=#000000 ctermfg=250 ctermbg=0 | hi StatusLineNC guifg=#585858 guibg=#000000 ctermfg=240 ctermbg=0 | hi NeoTreeWinSeparator guifg=#000000 guibg=#000000 ctermfg=0 ctermbg=0";
|
|
280637
280641
|
const luaBootstrap = "lua " + [
|
|
280638
280642
|
'local lp = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"',
|
|
280639
280643
|
'if not vim.loop.fs_stat(lp) then pcall(vim.fn.system, {"git", "clone", "--filter=blob:none", "--depth=1", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lp}) end',
|
|
@@ -280694,11 +280698,11 @@ async function startNeovimMode(opts) {
|
|
|
280694
280698
|
if (!isTTY5)
|
|
280695
280699
|
return;
|
|
280696
280700
|
let buf = "\x1B7";
|
|
280697
|
-
buf += `\x1B[2;1H\x1B[48;5;
|
|
280701
|
+
buf += `\x1B[2;1H\x1B[48;5;0m\x1B[2K`;
|
|
280698
280702
|
for (const btn of toolbarBtns) {
|
|
280699
280703
|
buf += `\x1B[2;${btn.startCol}H`;
|
|
280700
280704
|
buf += `\x1B]8;;oa-cmd:${btn.action}\x07`;
|
|
280701
|
-
buf += `\x1B[38;5;245m\x1B[48;5;
|
|
280705
|
+
buf += `\x1B[38;5;245m\x1B[48;5;0m${btn.label}`;
|
|
280702
280706
|
buf += `\x1B]8;;\x07`;
|
|
280703
280707
|
}
|
|
280704
280708
|
buf += "\x1B[0m\x1B8";
|
|
@@ -290052,7 +290056,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
290052
290056
|
function renderInstallFrame(version4, frame, statusLine) {
|
|
290053
290057
|
const cols = process.stdout.columns ?? 80;
|
|
290054
290058
|
const rows = process.stdout.rows ?? 24;
|
|
290055
|
-
const bgDark =
|
|
290059
|
+
const bgDark = 0;
|
|
290056
290060
|
const yellow = 178;
|
|
290057
290061
|
const contentTop = 4;
|
|
290058
290062
|
const contentBottom = rows - 3;
|
|
@@ -290136,7 +290140,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
290136
290140
|
const contentBottom = rows - 3;
|
|
290137
290141
|
let buf = "\x1B7";
|
|
290138
290142
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
290139
|
-
buf += `\x1B[${r2};1H\x1B[48;5;
|
|
290143
|
+
buf += `\x1B[${r2};1H\x1B[48;5;0m\x1B[2K`;
|
|
290140
290144
|
}
|
|
290141
290145
|
buf += "\x1B8";
|
|
290142
290146
|
process.stdout.write(buf);
|
|
@@ -292408,7 +292412,7 @@ function createCohereBanner() {
|
|
|
292408
292412
|
const width = process.stdout.columns ?? 80;
|
|
292409
292413
|
const rows = 3;
|
|
292410
292414
|
const grid = [];
|
|
292411
|
-
const bgColor =
|
|
292415
|
+
const bgColor = 0;
|
|
292412
292416
|
const fgColor = 226;
|
|
292413
292417
|
const halftone = ["\u2588", "\u2593", "\u2592", "\u2591", " "];
|
|
292414
292418
|
for (let r2 = 0; r2 < rows; r2++) {
|
|
@@ -292778,7 +292782,7 @@ var init_banner = __esm({
|
|
|
292778
292782
|
];
|
|
292779
292783
|
for (let r2 = 0; r2 < this.rows; r2++) {
|
|
292780
292784
|
const ch = FOCUS[(this.frameTick + r2 * 3) % FOCUS.length];
|
|
292781
|
-
buf += `\x1B[${r2 + 1};1H\x1B[38;5;178m\x1B[48;5;
|
|
292785
|
+
buf += `\x1B[${r2 + 1};1H\x1B[38;5;178m\x1B[48;5;0m${ch}\x1B[0m`;
|
|
292782
292786
|
}
|
|
292783
292787
|
}
|
|
292784
292788
|
if (this._updateAvailable && this.currentDesign?.type === "default") {
|
|
@@ -292804,7 +292808,7 @@ var init_banner = __esm({
|
|
|
292804
292808
|
const badgeStart = vStart + vLen;
|
|
292805
292809
|
if (badgeStart + badge.length < this.width) {
|
|
292806
292810
|
buf += `\x1B]8;;oa-cmd:/update\x07`;
|
|
292807
|
-
buf += `\x1B[1;${badgeStart}H\x1B[1;38;5;${updateFg}m\x1B[48;5;
|
|
292811
|
+
buf += `\x1B[1;${badgeStart}H\x1B[1;38;5;${updateFg}m\x1B[48;5;0m${badge}`;
|
|
292808
292812
|
buf += `\x1B]8;;\x07`;
|
|
292809
292813
|
const mnemonicStartCol = badgeStart + badge.length;
|
|
292810
292814
|
const gridRow = frame.grid[0];
|
|
@@ -293340,14 +293344,14 @@ var init_stream_renderer = __esm({
|
|
|
293340
293344
|
this.lineStarted = false;
|
|
293341
293345
|
}
|
|
293342
293346
|
if (this.thinkingTokenCount % 50 === 0) {
|
|
293343
|
-
this.writeRaw(`\x1B[1A\x1B[48;5;
|
|
293347
|
+
this.writeRaw(`\x1B[1A\x1B[48;5;0m\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thinking... (${this.thinkingTokenCount} tokens)`)}
|
|
293344
293348
|
`);
|
|
293345
293349
|
}
|
|
293346
293350
|
return;
|
|
293347
293351
|
}
|
|
293348
293352
|
if (this.thinkingIndicatorShown && kind === "content") {
|
|
293349
293353
|
this.thinkingIndicatorShown = false;
|
|
293350
|
-
this.writeRaw(`\x1B[1A\x1B[48;5;
|
|
293354
|
+
this.writeRaw(`\x1B[1A\x1B[48;5;0m\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thought for ${this.thinkingTokenCount} tokens`)}
|
|
293351
293355
|
`);
|
|
293352
293356
|
this.thinkingTokenCount = 0;
|
|
293353
293357
|
this.lineStarted = false;
|
|
@@ -299326,12 +299330,12 @@ var init_text_selection = __esm({
|
|
|
299326
299330
|
_clipboardAutoInstallAttempted = false;
|
|
299327
299331
|
_hoveredButtonCmd = null;
|
|
299328
299332
|
_pressedButtonCmd = null;
|
|
299329
|
-
BTN_REST_BG =
|
|
299333
|
+
BTN_REST_BG = 0;
|
|
299330
299334
|
BTN_REST_FG = 245;
|
|
299331
|
-
BTN_HOVER_BG =
|
|
299335
|
+
BTN_HOVER_BG = 235;
|
|
299332
299336
|
BTN_HOVER_FG = 252;
|
|
299333
299337
|
BTN_PRESS_BG = 249;
|
|
299334
|
-
BTN_PRESS_FG =
|
|
299338
|
+
BTN_PRESS_FG = 0;
|
|
299335
299339
|
_updateBadgeActive = false;
|
|
299336
299340
|
_updateBadgeCol = 0;
|
|
299337
299341
|
_updateBadgeLen = 0;
|
|
@@ -300635,7 +300639,7 @@ var init_status_bar = __esm({
|
|
|
300635
300639
|
)
|
|
300636
300640
|
);
|
|
300637
300641
|
const label = ` ${view.label} ${icon} `;
|
|
300638
|
-
const bg = isActive ?
|
|
300642
|
+
const bg = isActive ? 235 : 0;
|
|
300639
300643
|
const fg2 = isActive ? 252 : 245;
|
|
300640
300644
|
buf += `\x1B[${pos.tabBarRow};${col}H`;
|
|
300641
300645
|
buf += `\x1B]8;;oa-view:${view.id}\x07`;
|
|
@@ -301489,7 +301493,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
301489
301493
|
const row = pos.suggestStartRow + si;
|
|
301490
301494
|
const cmd = this._suggestions[si];
|
|
301491
301495
|
const isHighlighted = si === this._suggestIndex;
|
|
301492
|
-
const bg = isHighlighted ? `\x1B[48;5;
|
|
301496
|
+
const bg = isHighlighted ? `\x1B[48;5;235m` : PANEL_BG_SEQ;
|
|
301493
301497
|
const fg2 = isHighlighted ? `\x1B[1;38;5;${TEXT_PRIMARY}m` : `\x1B[38;5;${TEXT_PRIMARY}m`;
|
|
301494
301498
|
const slash = isHighlighted ? `\x1B[38;5;245m` : `\x1B[38;5;${TEXT_DIM}m`;
|
|
301495
301499
|
const marker = isHighlighted ? `\x1B[38;5;${TEXT_PRIMARY}m\u203A ` : " ";
|
|
@@ -308147,7 +308151,7 @@ async function startInteractive(config, repoPath) {
|
|
|
308147
308151
|
let restoredSessionContext = null;
|
|
308148
308152
|
if (process.stdout.isTTY) {
|
|
308149
308153
|
process.stdout.write("\x1B[2J\x1B[3J\x1B]50;ClearScrollback\x07\x1B[H");
|
|
308150
|
-
process.stdout.write(`\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[48;5;
|
|
308154
|
+
process.stdout.write(`\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[48;5;0m\x1B[2J\x1B[3J\x1B[H\x1B[1;${process.stdout.rows ?? 24}r\x1B[?25l`);
|
|
308151
308155
|
const restoreScreen = () => {
|
|
308152
308156
|
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?25h\x1B[?1049l");
|
|
308153
308157
|
};
|
|
@@ -308746,7 +308750,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
308746
308750
|
const RECALL_WINDOW_MS = 1500;
|
|
308747
308751
|
let sessionSudoPassword = null;
|
|
308748
308752
|
let sudoPromptPending = false;
|
|
308749
|
-
const panelBg = "\x1B[48;5;
|
|
308753
|
+
const panelBg = "\x1B[48;5;0m";
|
|
308750
308754
|
const idlePrompt = `${panelBg}${c3.bold(c3.white("\u276F "))}${panelBg}`;
|
|
308751
308755
|
const activePrompt = `${panelBg}${c3.bold(c3.white("+ "))}${panelBg}`;
|
|
308752
308756
|
const pausedPrompt = `${panelBg}${c3.bold(c3.yellow("| "))}${panelBg}`;
|
package/package.json
CHANGED