open-agents-ai 0.138.22 → 0.138.24
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 +31 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51600,7 +51600,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
51600
51600
|
buildMetricsLine() {
|
|
51601
51601
|
const m = this.metrics;
|
|
51602
51602
|
const termWidth = getTermWidth();
|
|
51603
|
-
const pastel2 = (code, s) =>
|
|
51603
|
+
const pastel2 = (code, s) => `${PANEL_BG_SEQ}\x1B[38;5;${code}m${s}\x1B[0m${PANEL_BG_SEQ}`;
|
|
51604
51604
|
const pipe = pastel2(60, " \u2502 ");
|
|
51605
51605
|
const pipeW = 3;
|
|
51606
51606
|
const sections = [];
|
|
@@ -51876,7 +51876,7 @@ ${CONTENT_BG_SEQ}`);
|
|
|
51876
51876
|
first = false;
|
|
51877
51877
|
result += isCompact[idx] ? sections[idx].compact : sections[idx].expanded;
|
|
51878
51878
|
}
|
|
51879
|
-
return result;
|
|
51879
|
+
return result.replace(/\x1B\[0m/g, `\x1B[0m${PANEL_BG_SEQ}`);
|
|
51880
51880
|
}
|
|
51881
51881
|
// -------------------------------------------------------------------------
|
|
51882
51882
|
// Private
|
|
@@ -52169,12 +52169,37 @@ ${CONTENT_BG_SEQ}`);
|
|
|
52169
52169
|
return;
|
|
52170
52170
|
const self = this;
|
|
52171
52171
|
const origTtyWrite = rl._ttyWrite.bind(rl);
|
|
52172
|
+
let arrowBurst = 0;
|
|
52173
|
+
let arrowBurstDir = "";
|
|
52174
|
+
let arrowBurstTimer = null;
|
|
52172
52175
|
rl._ttyWrite = function(s, key) {
|
|
52173
52176
|
if (!self.active)
|
|
52174
52177
|
return origTtyWrite(s, key);
|
|
52175
52178
|
if (s && (/\x1B\[</.test(s) || /^\d+;\d+;\d*[Mm]/.test(s) || /^;\d+[Mm]/.test(s) || /\[<\d/.test(s))) {
|
|
52176
52179
|
return;
|
|
52177
52180
|
}
|
|
52181
|
+
if (key?.name === "up" || key?.name === "down") {
|
|
52182
|
+
const dir = key.name;
|
|
52183
|
+
if (dir === arrowBurstDir) {
|
|
52184
|
+
arrowBurst++;
|
|
52185
|
+
} else {
|
|
52186
|
+
arrowBurst = 1;
|
|
52187
|
+
arrowBurstDir = dir;
|
|
52188
|
+
}
|
|
52189
|
+
if (arrowBurstTimer)
|
|
52190
|
+
clearTimeout(arrowBurstTimer);
|
|
52191
|
+
arrowBurstTimer = setTimeout(() => {
|
|
52192
|
+
arrowBurst = 0;
|
|
52193
|
+
arrowBurstDir = "";
|
|
52194
|
+
}, 80);
|
|
52195
|
+
if (arrowBurst >= 3) {
|
|
52196
|
+
if (dir === "up")
|
|
52197
|
+
self.scrollContentUp(1);
|
|
52198
|
+
else
|
|
52199
|
+
self.scrollContentDown(1);
|
|
52200
|
+
return;
|
|
52201
|
+
}
|
|
52202
|
+
}
|
|
52178
52203
|
if (key?.name === "pageup" || s === "\x1B[5~") {
|
|
52179
52204
|
self.pageUpContent();
|
|
52180
52205
|
return;
|
|
@@ -53812,9 +53837,10 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
53812
53837
|
let restoredSessionContext = null;
|
|
53813
53838
|
let sessionSudoPassword = null;
|
|
53814
53839
|
let sudoPromptPending = false;
|
|
53815
|
-
const
|
|
53816
|
-
const
|
|
53817
|
-
const
|
|
53840
|
+
const panelBg = "\x1B[48;5;234m";
|
|
53841
|
+
const idlePrompt = `${panelBg}${c2.bold(c2.white("\u276F "))}${panelBg}`;
|
|
53842
|
+
const activePrompt = `${panelBg}${c2.bold(c2.white("+ "))}${panelBg}`;
|
|
53843
|
+
const pausedPrompt = `${panelBg}${c2.bold(c2.yellow("| "))}${panelBg}`;
|
|
53818
53844
|
const BUILTIN_COMMANDS = [
|
|
53819
53845
|
"/help",
|
|
53820
53846
|
"/quit",
|
package/package.json
CHANGED