34 lines
972 B
TypeScript
34 lines
972 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
const EstimatedArtWidth = 59;
|
|
const BoxBorderWidth = 1;
|
|
export const BOX_PADDING_X = 1;
|
|
|
|
// Calculate width based on art, padding, and border
|
|
export const UI_WIDTH =
|
|
EstimatedArtWidth + BOX_PADDING_X * 2 + BoxBorderWidth * 2; // ~63
|
|
|
|
export const WITTY_LOADING_PHRASES = [
|
|
'Consulting the digital spirits...',
|
|
'Reticulating splines...',
|
|
'Warming up the AI hamsters...',
|
|
'Asking the magic conch shell...',
|
|
'Generating witty retort...',
|
|
'Polishing the algorithms...',
|
|
"Don't rush perfection (or my code)...",
|
|
'Brewing fresh bytes...',
|
|
'Counting electrons...',
|
|
'Engaging cognitive processors...',
|
|
'Checking for syntax errors in the universe...',
|
|
'One moment, optimizing humor...',
|
|
'Shuffling punchlines...',
|
|
'Untangling neural nets...',
|
|
'Compiling brilliance...',
|
|
];
|
|
export const PHRASE_CHANGE_INTERVAL_MS = 15000;
|
|
export const STREAM_DEBOUNCE_MS = 100;
|