mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 22:51:00 -07:00
36 lines
949 B
TypeScript
36 lines
949 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 STREAM_DEBOUNCE_MS = 100;
|
|
|
|
export const SHELL_COMMAND_NAME = 'Shell Command';
|
|
|
|
export const SHELL_NAME = 'Shell';
|
|
|
|
// 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;
|
|
|
|
// Tool status symbols used in ToolMessage component
|
|
export const TOOL_STATUS = {
|
|
SUCCESS: '✓',
|
|
PENDING: 'o',
|
|
EXECUTING: '⊷',
|
|
CONFIRMING: '?',
|
|
CANCELED: '-',
|
|
ERROR: 'x',
|
|
} as const;
|