open-agents-ai 0.138.3 → 0.138.4
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 +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44568,17 +44568,24 @@ function createCohereBanner() {
|
|
|
44568
44568
|
const width = process.stdout.columns ?? 80;
|
|
44569
44569
|
const rows = 3;
|
|
44570
44570
|
const grid = [];
|
|
44571
|
+
const bgColor = 236;
|
|
44572
|
+
const fgColor = 226;
|
|
44573
|
+
const halftone = ["\u2588", "\u2593", "\u2592", "\u2591", " "];
|
|
44571
44574
|
for (let r = 0; r < rows; r++) {
|
|
44572
44575
|
const row = [];
|
|
44573
44576
|
for (let c3 = 0; c3 < width; c3++) {
|
|
44574
|
-
|
|
44577
|
+
const distFromCenter = Math.abs(c3 - width / 2) / (width / 2);
|
|
44578
|
+
const htIdx = Math.min(halftone.length - 1, Math.floor(distFromCenter * halftone.length));
|
|
44579
|
+
const char = r === 0 || r === 2 ? halftone[htIdx] : " ";
|
|
44580
|
+
const charFg = r === 1 ? fgColor : 238;
|
|
44581
|
+
row.push({ char, fg: charFg, bg: bgColor, bold: false });
|
|
44575
44582
|
}
|
|
44576
44583
|
grid.push(row);
|
|
44577
44584
|
}
|
|
44578
|
-
const text = "COHERE \u2014
|
|
44585
|
+
const text = "COHERE \u2014 Distributed Cognitive Commons";
|
|
44579
44586
|
const startCol = Math.max(0, Math.floor((width - text.length) / 2));
|
|
44580
44587
|
for (let i = 0; i < text.length && startCol + i < width; i++) {
|
|
44581
|
-
grid[1][startCol + i] = { char: text[i], fg:
|
|
44588
|
+
grid[1][startCol + i] = { char: text[i], fg: fgColor, bg: bgColor, bold: true };
|
|
44582
44589
|
}
|
|
44583
44590
|
return {
|
|
44584
44591
|
id: "cohere-default",
|
|
@@ -54319,10 +54326,14 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54319
54326
|
statusBar.setCohereActive(cohereEnabled);
|
|
54320
54327
|
if (cohereEnabled) {
|
|
54321
54328
|
banner.setDesign(createCohereBanner());
|
|
54322
|
-
banner.start();
|
|
54329
|
+
const reserved = banner.start();
|
|
54330
|
+
if (statusBar.isActive && reserved > 0)
|
|
54331
|
+
statusBar.setScrollRegionTop(reserved + 1);
|
|
54323
54332
|
} else {
|
|
54324
54333
|
banner.setDesign(createDefaultBanner(version));
|
|
54325
|
-
banner.start();
|
|
54334
|
+
const reserved = banner.start();
|
|
54335
|
+
if (statusBar.isActive && reserved > 0)
|
|
54336
|
+
statusBar.setScrollRegionTop(reserved + 1);
|
|
54326
54337
|
}
|
|
54327
54338
|
return cohereEnabled;
|
|
54328
54339
|
},
|
package/package.json
CHANGED