open-agents-ai 0.138.16 → 0.138.18
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 +48 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44425,31 +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
|
|
44429
|
-
const
|
|
44430
|
-
const
|
|
44431
|
-
|
|
44432
|
-
const
|
|
44433
|
-
|
|
44434
|
-
|
|
44435
|
-
|
|
44436
|
-
|
|
44428
|
+
const yellow = 178;
|
|
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
|
+
}
|
|
44455
|
+
} else {
|
|
44456
|
+
row.push({ char: " ", fg: 0, bg: bgDark, bold: false });
|
|
44457
|
+
}
|
|
44458
|
+
}
|
|
44459
|
+
grid.push(row);
|
|
44437
44460
|
}
|
|
44438
|
-
|
|
44439
|
-
|
|
44440
|
-
|
|
44441
|
-
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
}
|
|
44445
|
-
|
|
44446
|
-
|
|
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 });
|
|
44447
44476
|
}
|
|
44448
44477
|
return {
|
|
44449
44478
|
id: "default-header",
|
|
44450
44479
|
name: "OA Default Header",
|
|
44451
44480
|
type: "default",
|
|
44452
|
-
frames
|
|
44481
|
+
frames,
|
|
44453
44482
|
alignment: ["left", "center", "left"],
|
|
44454
44483
|
flowSpeed: [0, 0, 0],
|
|
44455
44484
|
author: "system",
|
package/package.json
CHANGED