2025-04-18 17:44:24 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
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-11-21 12:19:34 -05:00
|
|
|
export const SHELL_FOCUS_HINT_DELAY_MS = 5000;
|
|
|
|
|
|
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;
|
2025-12-23 14:39:35 -05:00
|
|
|
|
|
|
|
|
// Maximum number of MCP resources to display per server before truncating
|
|
|
|
|
export const MAX_MCP_RESOURCES_TO_SHOW = 10;
|
2026-01-06 15:52:12 -05:00
|
|
|
|
2026-01-28 14:57:27 -08:00
|
|
|
export const WARNING_PROMPT_DURATION_MS = 3000;
|
2026-01-06 15:52:12 -05:00
|
|
|
export const QUEUE_ERROR_DISPLAY_DURATION_MS = 3000;
|
2026-01-12 17:18:14 -08:00
|
|
|
export const SHELL_ACTION_REQUIRED_TITLE_DELAY_MS = 30000;
|
2026-01-21 14:31:24 -08:00
|
|
|
export const SHELL_SILENT_WORKING_TITLE_DELAY_MS = 120000;
|
2026-01-17 18:54:36 +05:00
|
|
|
|
2026-02-10 09:36:20 -08:00
|
|
|
export const DEFAULT_BACKGROUND_OPACITY = 0.16;
|
|
|
|
|
export const DEFAULT_INPUT_BACKGROUND_OPACITY = 0.24;
|
|
|
|
|
export const DEFAULT_BORDER_OPACITY = 0.2;
|
2026-01-26 15:23:54 -08:00
|
|
|
|
2026-01-17 18:54:36 +05:00
|
|
|
export const KEYBOARD_SHORTCUTS_URL =
|
|
|
|
|
'https://geminicli.com/docs/cli/keyboard-shortcuts/';
|
2026-01-16 09:33:13 -08:00
|
|
|
export const LRU_BUFFER_PERF_CACHE_LIMIT = 20000;
|
2026-02-08 00:09:48 -08:00
|
|
|
|
|
|
|
|
// Max lines to show for active shell output when not focused
|
|
|
|
|
export const ACTIVE_SHELL_MAX_LINES = 15;
|
|
|
|
|
|
|
|
|
|
// Max lines to preserve in history for completed shell commands
|
|
|
|
|
export const COMPLETED_SHELL_MAX_LINES = 15;
|