open-agents-ai 0.138.3 → 0.138.5

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 +19 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -40611,7 +40611,9 @@ async function handleSlashCommand(input, ctx) {
40611
40611
  await handleUpdate(arg, ctx);
40612
40612
  return "handled";
40613
40613
  case "voice": {
40614
- const save = hasLocal ? ctx.saveLocalSettings.bind(ctx) : ctx.saveSettings.bind(ctx);
40614
+ const save = (settings) => {
40615
+ ctx.saveSettings(settings);
40616
+ };
40615
40617
  if (arg) {
40616
40618
  if (arg === "enable" || arg === "on") {
40617
40619
  const msg2 = await ctx.voiceToggle();
@@ -44568,17 +44570,24 @@ function createCohereBanner() {
44568
44570
  const width = process.stdout.columns ?? 80;
44569
44571
  const rows = 3;
44570
44572
  const grid = [];
44573
+ const bgColor = 236;
44574
+ const fgColor = 226;
44575
+ const halftone = ["\u2588", "\u2593", "\u2592", "\u2591", " "];
44571
44576
  for (let r = 0; r < rows; r++) {
44572
44577
  const row = [];
44573
44578
  for (let c3 = 0; c3 < width; c3++) {
44574
- row.push({ char: " ", fg: 226, bg: 0, bold: false });
44579
+ const distFromCenter = Math.abs(c3 - width / 2) / (width / 2);
44580
+ const htIdx = Math.min(halftone.length - 1, Math.floor(distFromCenter * halftone.length));
44581
+ const char = r === 0 || r === 2 ? halftone[htIdx] : " ";
44582
+ const charFg = r === 1 ? fgColor : 238;
44583
+ row.push({ char, fg: charFg, bg: bgColor, bold: false });
44575
44584
  }
44576
44585
  grid.push(row);
44577
44586
  }
44578
- const text = "COHERE \u2014 Participating in distributed cognitive commons";
44587
+ const text = "COHERE \u2014 Distributed Cognitive Commons";
44579
44588
  const startCol = Math.max(0, Math.floor((width - text.length) / 2));
44580
44589
  for (let i = 0; i < text.length && startCol + i < width; i++) {
44581
- grid[1][startCol + i] = { char: text[i], fg: 226, bg: 0, bold: true };
44590
+ grid[1][startCol + i] = { char: text[i], fg: fgColor, bg: bgColor, bold: true };
44582
44591
  }
44583
44592
  return {
44584
44593
  id: "cohere-default",
@@ -54319,10 +54328,14 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
54319
54328
  statusBar.setCohereActive(cohereEnabled);
54320
54329
  if (cohereEnabled) {
54321
54330
  banner.setDesign(createCohereBanner());
54322
- banner.start();
54331
+ const reserved = banner.start();
54332
+ if (statusBar.isActive && reserved > 0)
54333
+ statusBar.setScrollRegionTop(reserved + 1);
54323
54334
  } else {
54324
54335
  banner.setDesign(createDefaultBanner(version));
54325
- banner.start();
54336
+ const reserved = banner.start();
54337
+ if (statusBar.isActive && reserved > 0)
54338
+ statusBar.setScrollRegionTop(reserved + 1);
54326
54339
  }
54327
54340
  return cohereEnabled;
54328
54341
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.138.3",
3
+ "version": "0.138.5",
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",