open-agents-ai 0.138.17 → 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.
Files changed (2) hide show
  1. package/dist/index.js +44 -33
  2. 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 blockChars = [" ", "\xB7", "\u2591", "\u2592", "\u2593", "\u2588"];
44431
- const hash = (r, c3) => (r * 7 + c3 * 13 + 37) % 17 / 17;
44432
- for (let r = 0; r < rows; r++) {
44433
- const row = [];
44434
- for (let c3 = 0; c3 < width; c3++) {
44435
- const midpoint = Math.floor(width * 0.5);
44436
- if (c3 >= midpoint) {
44437
- const progress = (c3 - midpoint) / (width - midpoint - 1);
44438
- const density = progress * progress;
44439
- const noise = hash(r, c3);
44440
- if (noise < density) {
44441
- const charIdx = Math.min(blockChars.length - 1, Math.floor(density * blockChars.length));
44442
- row.push({ char: blockChars[charIdx], fg: yellow, bg: 0, bold: false });
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: 0, bold: false });
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
- grid.push(row);
44451
- }
44452
- const versionText = ` OA v${version}`;
44453
- for (let i = 0; i < versionText.length && i < width; i++) {
44454
- grid[0][i] = { char: versionText[i], fg: yellow, bg: 0, bold: true };
44455
- }
44456
- const cwd4 = process.cwd();
44457
- const shortCwd = cwd4.length > 40 ? "..." + cwd4.slice(-37) : cwd4;
44458
- const infoText = ` ${shortCwd}`;
44459
- for (let i = 0; i < infoText.length && i < Math.floor(width * 0.5); i++) {
44460
- grid[1][i] = { char: infoText[i], fg: 245, bg: 0, bold: false };
44461
- }
44462
- const hints = " /help /voice /cohere /model";
44463
- for (let i = 0; i < hints.length && i < Math.floor(width * 0.5); i++) {
44464
- grid[2][i] = { char: hints[i], fg: 240, bg: 0, bold: false };
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: [{ grid, durationMs: 0 }],
44481
+ frames,
44471
44482
  alignment: ["left", "center", "left"],
44472
44483
  flowSpeed: [0, 0, 0],
44473
44484
  author: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.17",
3
+ "version": "0.138.18",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",