open-agents-ai 0.138.17 → 0.138.19
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 +45 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44425,49 +44425,60 @@ var init_carousel = __esm({
|
|
|
44425
44425
|
function createDefaultBanner(version = "0.120.0") {
|
|
44426
44426
|
const width = process.stdout.columns ?? 80;
|
|
44427
44427
|
const rows = 3;
|
|
44428
|
-
const grid = [];
|
|
44429
44428
|
const yellow = 178;
|
|
44430
|
-
const
|
|
44431
|
-
const
|
|
44432
|
-
|
|
44433
|
-
const
|
|
44434
|
-
|
|
44435
|
-
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
|
|
44439
|
-
|
|
44440
|
-
|
|
44441
|
-
|
|
44442
|
-
|
|
44429
|
+
const bgDark = 234;
|
|
44430
|
+
const particles = [" ", "\u2801", "\u2802", "\u2840", "\u2804", "\u2880", "\u2812", "\u28C0", "\u2824", "\u28C4", "\xB7", "\u2591", "\u28E4", "\u2592", "\u28F6", "\u2593", "\u28FF", "\u2588"];
|
|
44431
|
+
const hash = (r, c3, frame) => {
|
|
44432
|
+
const x = r * 7 + c3 * 13 + frame * 3 + 37;
|
|
44433
|
+
return (x * x * 31 + x * 17 + 59) % 97 / 97;
|
|
44434
|
+
};
|
|
44435
|
+
const frameCount = 12;
|
|
44436
|
+
const frames = [];
|
|
44437
|
+
for (let f = 0; f < frameCount; f++) {
|
|
44438
|
+
const grid = [];
|
|
44439
|
+
for (let r = 0; r < rows; r++) {
|
|
44440
|
+
const row = [];
|
|
44441
|
+
for (let c3 = 0; c3 < width; c3++) {
|
|
44442
|
+
const fadeStart = Math.floor(width * 0.45);
|
|
44443
|
+
const solidStart = Math.floor(width * 0.85);
|
|
44444
|
+
if (c3 >= fadeStart) {
|
|
44445
|
+
const progress = Math.min(1, (c3 - fadeStart) / Math.max(1, solidStart - fadeStart));
|
|
44446
|
+
const wave = Math.sin(c3 * 0.15 + f * 0.5 + r * 1.2) * 0.15;
|
|
44447
|
+
const density = progress * progress + wave;
|
|
44448
|
+
const noise = hash(r, c3, f);
|
|
44449
|
+
if (noise < density) {
|
|
44450
|
+
const charIdx = Math.min(particles.length - 1, Math.floor(Math.max(0, density) * particles.length));
|
|
44451
|
+
row.push({ char: particles[charIdx], fg: yellow, bg: bgDark, bold: false });
|
|
44452
|
+
} else {
|
|
44453
|
+
row.push({ char: " ", fg: 0, bg: bgDark, bold: false });
|
|
44454
|
+
}
|
|
44443
44455
|
} else {
|
|
44444
|
-
row.push({ char: " ", fg: 0, bg:
|
|
44456
|
+
row.push({ char: " ", fg: 0, bg: bgDark, bold: false });
|
|
44445
44457
|
}
|
|
44446
|
-
} else {
|
|
44447
|
-
row.push({ char: " ", fg: 0, bg: 0, bold: false });
|
|
44448
44458
|
}
|
|
44459
|
+
grid.push(row);
|
|
44449
44460
|
}
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
44464
|
-
|
|
44461
|
+
const versionText = ` OA v${version}`;
|
|
44462
|
+
for (let i = 0; i < versionText.length && i < width; i++) {
|
|
44463
|
+
grid[0][i] = { char: versionText[i], fg: yellow, bg: bgDark, bold: true };
|
|
44464
|
+
}
|
|
44465
|
+
const cwd4 = process.cwd();
|
|
44466
|
+
const shortCwd = cwd4.length > 40 ? "..." + cwd4.slice(-37) : cwd4;
|
|
44467
|
+
const infoText = ` ${shortCwd}`;
|
|
44468
|
+
for (let i = 0; i < infoText.length && i < Math.floor(width * 0.44); i++) {
|
|
44469
|
+
grid[1][i] = { char: infoText[i], fg: 245, bg: bgDark, bold: false };
|
|
44470
|
+
}
|
|
44471
|
+
const hints = " /help /voice /cohere /model";
|
|
44472
|
+
for (let i = 0; i < hints.length && i < Math.floor(width * 0.44); i++) {
|
|
44473
|
+
grid[2][i] = { char: hints[i], fg: 240, bg: bgDark, bold: false };
|
|
44474
|
+
}
|
|
44475
|
+
frames.push({ grid, durationMs: 200 });
|
|
44465
44476
|
}
|
|
44466
44477
|
return {
|
|
44467
44478
|
id: "default-header",
|
|
44468
44479
|
name: "OA Default Header",
|
|
44469
44480
|
type: "default",
|
|
44470
|
-
frames
|
|
44481
|
+
frames,
|
|
44471
44482
|
alignment: ["left", "center", "left"],
|
|
44472
44483
|
flowSpeed: [0, 0, 0],
|
|
44473
44484
|
author: "system",
|
|
@@ -53431,7 +53442,7 @@ async function startInteractive(config, repoPath) {
|
|
|
53431
53442
|
initOaDirectory(repoRoot);
|
|
53432
53443
|
const savedSettings = resolveSettings(repoRoot);
|
|
53433
53444
|
if (process.stdout.isTTY) {
|
|
53434
|
-
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l
|
|
53445
|
+
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?1049h\x1B[2J\x1B[3J\x1B[H\x1B[?25l");
|
|
53435
53446
|
const restoreScreen = () => {
|
|
53436
53447
|
process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?1015l\x1B[?25h\x1B[?1049l");
|
|
53437
53448
|
};
|
package/package.json
CHANGED