Add logging to Gemini

This commit is contained in:
Colin McDonnell
2025-11-21 15:18:14 -08:00
parent 6ba92cb9d8
commit 782902d899
2 changed files with 176 additions and 8 deletions
+5 -1
View File
@@ -79,7 +79,11 @@ function boxString(
}
const maxLineLength = Math.max(...wrappedLines.map((line) => line.length));
const boxWidth = maxLineLength + padding * 2;
const contentBoxWidth = maxLineLength + padding * 2;
// ensure box width is at least as wide as the title line when title exists
const titleLineLength = title ? ` ${title} `.length : 0;
const boxWidth = Math.max(contentBoxWidth, titleLineLength);
let result = "";