diff --git a/packages/tui/src/util/presentation.ts b/packages/tui/src/util/presentation.ts index 5ee23984c456..54cb4fb0c526 100644 --- a/packages/tui/src/util/presentation.ts +++ b/packages/tui/src/util/presentation.ts @@ -1,7 +1,6 @@ -const logo = { - left: [" ", "█▀▀█ █▀▀█ █▀▀█ █▀▀▄", "█__█ █__█ █^^^ █__█", "▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀~~▀"], - right: [" ▄ ", "█▀▀▀ █▀▀█ █▀▀█ █▀▀█", "█___ █__█ █__█ █^^^", "▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀"], -} +import { logo } from "../shuv-logo" + +export const presentationLogo = logo const reset = "\x1b[0m" const bold = "\x1b[1m" @@ -19,9 +18,9 @@ function wordmark(pad = "") { }) .join("") - return logo.left.map((line, index) => { + return presentationLogo.left.map((line, index) => { const left = draw(line, dim, "\x1b[38;5;235m", "\x1b[48;5;235m") - const right = draw(logo.right[index] ?? "", reset, "\x1b[38;5;238m", "\x1b[48;5;238m") + const right = draw(presentationLogo.right[index] ?? "", reset, "\x1b[38;5;238m", "\x1b[48;5;238m") return `${pad}${left} ${right}` }) } diff --git a/packages/tui/test/util/presentation.test.ts b/packages/tui/test/util/presentation.test.ts index a64f0047edac..e7b1f5355d70 100644 --- a/packages/tui/test/util/presentation.test.ts +++ b/packages/tui/test/util/presentation.test.ts @@ -1,5 +1,10 @@ import { expect, test } from "bun:test" -import { sessionEpilogue } from "../../src/util/presentation" +import { logo } from "../../src/shuv-logo" +import { presentationLogo, sessionEpilogue } from "../../src/util/presentation" + +test("uses the canonical shuvcode wordmark", () => { + expect(presentationLogo).toEqual(logo) +}) test("formats session continuation summary", () => { const epilogue = sessionEpilogue({ title: "A session", sessionID: "ses_123" })