2025-04-18 17:44:24 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2025-04-15 21:41:08 -07:00
|
|
|
const EstimatedArtWidth = 59;
|
|
|
|
|
const BoxBorderWidth = 1;
|
|
|
|
|
export const BOX_PADDING_X = 1;
|
|
|
|
|
|
|
|
|
|
// Calculate width based on art, padding, and border
|
2025-04-17 18:06:21 -04:00
|
|
|
export const UI_WIDTH =
|
|
|
|
|
EstimatedArtWidth + BOX_PADDING_X * 2 + BoxBorderWidth * 2; // ~63
|
2025-04-15 21:41:08 -07:00
|
|
|
|
2025-04-17 18:06:21 -04:00
|
|
|
export const STREAM_DEBOUNCE_MS = 100;
|
2025-07-18 17:30:28 -07:00
|
|
|
|
|
|
|
|
export const SHELL_COMMAND_NAME = 'Shell Command';
|
2025-08-21 22:29:15 +00:00
|
|
|
|
2025-09-18 13:35:55 -07:00
|
|
|
export const SHELL_NAME = 'Shell';
|
|
|
|
|
|
2025-11-11 07:50:11 -08:00
|
|
|
// Limit Gemini messages to a very high number of lines to mitigate performance
|
|
|
|
|
// issues in the worst case if we somehow get an enormous response from Gemini.
|
|
|
|
|
// This threshold is arbitrary but should be high enough to never impact normal
|
|
|
|
|
// usage.
|
|
|
|
|
export const MAX_GEMINI_MESSAGE_LINES = 65536;
|
|
|
|
|
|
2025-08-27 07:54:32 -07:00
|
|
|
// Tool status symbols used in ToolMessage component
|
|
|
|
|
export const TOOL_STATUS = {
|
|
|
|
|
SUCCESS: '✓',
|
|
|
|
|
PENDING: 'o',
|
|
|
|
|
EXECUTING: '⊷',
|
|
|
|
|
CONFIRMING: '?',
|
|
|
|
|
CANCELED: '-',
|
|
|
|
|
ERROR: 'x',
|
|
|
|
|
} as const;
|