@quantum-ai/gemini-cli 0.45.8 → 0.45.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp/acpCommandHandler.js +105 -0
- package/dist/acp/acpErrors.js +37 -0
- package/dist/acp/acpFileSystemService.js +80 -0
- package/dist/acp/acpRpcDispatcher.js +174 -0
- package/dist/acp/acpSession.js +1167 -0
- package/dist/acp/acpSessionManager.js +200 -0
- package/dist/acp/acpStdioTransport.js +22 -0
- package/dist/acp/acpUtils.js +287 -0
- package/dist/acp/commands/about.js +52 -0
- package/dist/acp/commands/commandRegistry.js +25 -0
- package/dist/acp/commands/extensions.js +330 -0
- package/dist/acp/commands/help.js +34 -0
- package/dist/acp/commands/init.js +46 -0
- package/dist/acp/commands/memory.js +95 -0
- package/dist/acp/commands/restore.js +140 -0
- package/dist/acp/commands/types.js +6 -0
- package/dist/commands/extensions/configure.js +63 -0
- package/dist/commands/extensions/disable.js +68 -0
- package/dist/commands/extensions/enable.js +84 -0
- package/dist/commands/extensions/install.js +171 -0
- package/dist/commands/extensions/link.js +65 -0
- package/dist/commands/extensions/list.js +62 -0
- package/dist/commands/extensions/new.js +87 -0
- package/dist/commands/extensions/uninstall.js +88 -0
- package/dist/commands/extensions/update.js +113 -0
- package/dist/commands/extensions/utils.js +122 -0
- package/dist/commands/extensions/validate.js +84 -0
- package/dist/commands/extensions.js +43 -0
- package/dist/commands/gemma/constants.js +34 -0
- package/dist/commands/gemma/logs.js +153 -0
- package/dist/commands/gemma/platform.js +219 -0
- package/dist/commands/gemma/setup.js +391 -0
- package/dist/commands/gemma/start.js +86 -0
- package/dist/commands/gemma/status.js +109 -0
- package/dist/commands/gemma/stop.js +109 -0
- package/dist/commands/gemma.js +29 -0
- package/dist/commands/hooks/migrate.js +214 -0
- package/dist/commands/hooks.js +24 -0
- package/dist/commands/mcp/add.js +194 -0
- package/dist/commands/mcp/enableDisable.js +105 -0
- package/dist/commands/mcp/list.js +206 -0
- package/dist/commands/mcp/remove.js +48 -0
- package/dist/commands/mcp.js +31 -0
- package/dist/commands/skills/disable.js +47 -0
- package/dist/commands/skills/enable.js +35 -0
- package/dist/commands/skills/install.js +78 -0
- package/dist/commands/skills/link.js +66 -0
- package/dist/commands/skills/list.js +59 -0
- package/dist/commands/skills/uninstall.js +56 -0
- package/dist/commands/skills.js +35 -0
- package/dist/commands/utils.js +10 -0
- package/dist/config/auth.js +43 -0
- package/dist/config/config.js +938 -0
- package/dist/config/extension-manager-themes.spec.js +202 -0
- package/dist/config/extension-manager.js +887 -0
- package/dist/config/extension.js +20 -0
- package/dist/config/extensionRegistryClient.js +93 -0
- package/dist/config/extensions/consent.js +195 -0
- package/dist/config/extensions/extensionEnablement.js +192 -0
- package/dist/config/extensions/extensionSettings.js +247 -0
- package/dist/config/extensions/github.js +425 -0
- package/dist/config/extensions/github_fetch.js +47 -0
- package/dist/config/extensions/storage.js +31 -0
- package/dist/config/extensions/update.js +143 -0
- package/dist/config/extensions/variableSchema.js +21 -0
- package/dist/config/extensions/variables.js +61 -0
- package/dist/config/footerItems.js +133 -0
- package/dist/config/mcp/index.js +6 -0
- package/dist/config/mcp/mcpServerEnablement.js +278 -0
- package/dist/config/policy.js +96 -0
- package/dist/config/sandboxConfig.js +116 -0
- package/dist/config/settingPaths.js +10 -0
- package/dist/config/settings-validation.js +272 -0
- package/dist/config/settings.js +942 -0
- package/dist/config/settingsSchema.js +3288 -0
- package/dist/config/trustedFolders.js +25 -0
- package/dist/core/auth.js +53 -0
- package/dist/core/initializer.js +41 -0
- package/dist/core/theme.js +18 -0
- package/dist/deferred.js +56 -0
- package/dist/gemini.js +699 -0
- package/dist/generated/git-commit.js +9 -0
- package/dist/index.js +5 -200
- package/dist/index.mjs +8 -0
- package/dist/interactiveCli.js +181 -0
- package/dist/nonInteractiveCli.js +458 -0
- package/dist/nonInteractiveCliAgentSession.js +527 -0
- package/dist/nonInteractiveCliCommands.js +82 -0
- package/dist/patches/http-proxy-agent.js +7 -0
- package/dist/patches/https-proxy-agent.js +7 -0
- package/dist/patches/is-in-ci.js +14 -0
- package/dist/services/BuiltinCommandLoader.js +207 -0
- package/dist/services/CommandService.js +99 -0
- package/dist/services/FileCommandLoader.js +298 -0
- package/dist/services/McpPromptLoader.js +254 -0
- package/dist/services/SkillCommandLoader.js +52 -0
- package/dist/services/SlashCommandConflictHandler.js +127 -0
- package/dist/services/SlashCommandResolver.js +155 -0
- package/dist/services/liteRtServerManager.js +42 -0
- package/dist/services/prompt-processors/argumentProcessor.js +20 -0
- package/dist/services/prompt-processors/atFileProcessor.js +62 -0
- package/dist/services/prompt-processors/injectionParser.js +59 -0
- package/dist/services/prompt-processors/shellProcessor.js +129 -0
- package/dist/services/prompt-processors/types.js +19 -0
- package/dist/test-utils/AppRig.js +582 -0
- package/dist/test-utils/MockShellExecutionService.js +87 -0
- package/dist/test-utils/async.js +34 -0
- package/dist/test-utils/createExtension.js +30 -0
- package/dist/test-utils/customMatchers.js +85 -0
- package/dist/test-utils/mockCommandContext.js +102 -0
- package/dist/test-utils/mockConfig.js +202 -0
- package/dist/test-utils/mockDebugLogger.js +67 -0
- package/dist/test-utils/mockSpinner.js +20 -0
- package/dist/test-utils/persistentStateFake.js +38 -0
- package/dist/test-utils/render.js +606 -0
- package/dist/test-utils/settings.js +33 -0
- package/dist/test-utils/svg.js +181 -0
- package/dist/ui/App.js +29 -0
- package/dist/ui/AppContainer.js +2100 -0
- package/dist/ui/IdeIntegrationNudge.js +52 -0
- package/dist/ui/auth/ApiAuthDialog.js +62 -0
- package/dist/ui/auth/AuthDialog.js +141 -0
- package/dist/ui/auth/AuthInProgress.js +23 -0
- package/dist/ui/auth/BannedAccountDialog.js +66 -0
- package/dist/ui/auth/LoginRestartDialog.js +33 -0
- package/dist/ui/auth/useAuth.js +132 -0
- package/dist/ui/colors.js +62 -0
- package/dist/ui/commands/aboutCommand.js +58 -0
- package/dist/ui/commands/agentsCommand.js +327 -0
- package/dist/ui/commands/authCommand.js +45 -0
- package/dist/ui/commands/bugCommand.js +146 -0
- package/dist/ui/commands/bugMemoryCommand.js +61 -0
- package/dist/ui/commands/chatCommand.js +361 -0
- package/dist/ui/commands/clearCommand.js +67 -0
- package/dist/ui/commands/commandsCommand.js +103 -0
- package/dist/ui/commands/compressCommand.js +66 -0
- package/dist/ui/commands/copyCommand.js +61 -0
- package/dist/ui/commands/corgiCommand.js +16 -0
- package/dist/ui/commands/directoryCommand.js +222 -0
- package/dist/ui/commands/docsCommand.js +31 -0
- package/dist/ui/commands/editorCommand.js +16 -0
- package/dist/ui/commands/exportSessionCommand.js +73 -0
- package/dist/ui/commands/extensionsCommand.js +738 -0
- package/dist/ui/commands/footerCommand.js +19 -0
- package/dist/ui/commands/gemmaStatusCommand.js +33 -0
- package/dist/ui/commands/helpCommand.js +40 -0
- package/dist/ui/commands/hooksCommand.js +336 -0
- package/dist/ui/commands/ideCommand.js +232 -0
- package/dist/ui/commands/initCommand.js +37 -0
- package/dist/ui/commands/mcpCommand.js +446 -0
- package/dist/ui/commands/memoryCommand.js +124 -0
- package/dist/ui/commands/modelCommand.js +58 -0
- package/dist/ui/commands/oncallCommand.js +90 -0
- package/dist/ui/commands/permissionsCommand.js +74 -0
- package/dist/ui/commands/planCommand.js +82 -0
- package/dist/ui/commands/policiesCommand.js +82 -0
- package/dist/ui/commands/privacyCommand.js +16 -0
- package/dist/ui/commands/profileCommand.js +23 -0
- package/dist/ui/commands/quitCommand.js +36 -0
- package/dist/ui/commands/restoreCommand.js +131 -0
- package/dist/ui/commands/resumeCommand.js +18 -0
- package/dist/ui/commands/rewindCommand.js +136 -0
- package/dist/ui/commands/settingsCommand.js +16 -0
- package/dist/ui/commands/setupGithubCommand.js +195 -0
- package/dist/ui/commands/shortcutsCommand.js +16 -0
- package/dist/ui/commands/skillsCommand.js +296 -0
- package/dist/ui/commands/statsCommand.js +117 -0
- package/dist/ui/commands/tasksCommand.js +16 -0
- package/dist/ui/commands/terminalSetupCommand.js +41 -0
- package/dist/ui/commands/themeCommand.js +16 -0
- package/dist/ui/commands/toolsCommand.js +58 -0
- package/dist/ui/commands/types.js +15 -0
- package/dist/ui/commands/upgradeCommand.js +57 -0
- package/dist/ui/commands/vimCommand.js +24 -0
- package/dist/ui/commands/voiceCommand.js +28 -0
- package/dist/ui/components/AboutBox.js +16 -0
- package/dist/ui/components/AdminSettingsChangedDialog.js +26 -0
- package/dist/ui/components/AgentConfigDialog.js +297 -0
- package/dist/ui/components/AlternateBufferQuittingDisplay.js +29 -0
- package/dist/ui/components/AnsiOutput.js +23 -0
- package/dist/ui/components/AppHeader.js +73 -0
- package/dist/ui/components/ApprovalModeIndicator.js +40 -0
- package/dist/ui/components/AsciiArt.js +53 -0
- package/dist/ui/components/AskUserDialog.js +738 -0
- package/dist/ui/components/BackgroundTaskDisplay.js +251 -0
- package/dist/ui/components/Banner.js +28 -0
- package/dist/ui/components/Checklist.js +31 -0
- package/dist/ui/components/ChecklistItem.js +39 -0
- package/dist/ui/components/CliSpinner.js +27 -0
- package/dist/ui/components/ColorsDisplay.js +119 -0
- package/dist/ui/components/Composer.js +87 -0
- package/dist/ui/components/ConfigExtensionDialog.js +155 -0
- package/dist/ui/components/ConfigInitDisplay.js +54 -0
- package/dist/ui/components/ConsentPrompt.js +19 -0
- package/dist/ui/components/ConsoleSummaryDisplay.js +11 -0
- package/dist/ui/components/ContextSummaryDisplay.js +70 -0
- package/dist/ui/components/ContextUsageDisplay.js +28 -0
- package/dist/ui/components/CopyModeWarning.js +9 -0
- package/dist/ui/components/DebugProfiler.js +189 -0
- package/dist/ui/components/DetailedMessagesDisplay.js +59 -0
- package/dist/ui/components/DialogManager.js +162 -0
- package/dist/ui/components/EditorSettingsDialog.js +88 -0
- package/dist/ui/components/EmptyWalletDialog.js +33 -0
- package/dist/ui/components/ExitPlanModeDialog.js +179 -0
- package/dist/ui/components/ExitWarning.js +9 -0
- package/dist/ui/components/FolderTrustDialog.js +118 -0
- package/dist/ui/components/Footer.js +270 -0
- package/dist/ui/components/FooterConfigDialog.js +213 -0
- package/dist/ui/components/GeminiRespondingSpinner.js +22 -0
- package/dist/ui/components/GeminiSpinner.js +35 -0
- package/dist/ui/components/Header.js +29 -0
- package/dist/ui/components/Help.js +17 -0
- package/dist/ui/components/HistoryItemDisplay.js +52 -0
- package/dist/ui/components/HookStatusDisplay.js +26 -0
- package/dist/ui/components/HooksDialog.js +83 -0
- package/dist/ui/components/IdeTrustChangeDialog.js +35 -0
- package/dist/ui/components/InboxDialog.js +756 -0
- package/dist/ui/components/InputPrompt.js +1324 -0
- package/dist/ui/components/ListeningIndicator.js +30 -0
- package/dist/ui/components/LoadingIndicator.js +48 -0
- package/dist/ui/components/LogoutConfirmationDialog.js +39 -0
- package/dist/ui/components/LoopDetectionConfirmation.js +39 -0
- package/dist/ui/components/MainContent.js +176 -0
- package/dist/ui/components/MemoryUsageDisplay.js +25 -0
- package/dist/ui/components/ModelDialog.js +268 -0
- package/dist/ui/components/ModelQuotaDisplay.js +104 -0
- package/dist/ui/components/ModelStatsDisplay.js +157 -0
- package/dist/ui/components/MultiFolderTrustDialog.js +95 -0
- package/dist/ui/components/NewAgentsNotification.js +50 -0
- package/dist/ui/components/Notifications.js +107 -0
- package/dist/ui/components/OverageMenuDialog.js +32 -0
- package/dist/ui/components/PermissionsModifyTrustDialog.js +61 -0
- package/dist/ui/components/PolicyUpdateDialog.js +61 -0
- package/dist/ui/components/ProQuotaDialog.js +84 -0
- package/dist/ui/components/ProgressBar.js +17 -0
- package/dist/ui/components/QueuedMessageDisplay.js +20 -0
- package/dist/ui/components/QuittingDisplay.js +20 -0
- package/dist/ui/components/QuotaDisplay.js +36 -0
- package/dist/ui/components/QuotaStatsInfo.js +23 -0
- package/dist/ui/components/RawMarkdownIndicator.js +10 -0
- package/dist/ui/components/RewindConfirmation.js +73 -0
- package/dist/ui/components/RewindViewer.js +154 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserEmpty.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserError.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserLoading.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserNav.js +17 -0
- package/dist/ui/components/SessionBrowser/SessionListHeader.js +8 -0
- package/dist/ui/components/SessionBrowser/utils.js +99 -0
- package/dist/ui/components/SessionBrowser.js +370 -0
- package/dist/ui/components/SessionSummaryDisplay.js +24 -0
- package/dist/ui/components/SettingsDialog.js +283 -0
- package/dist/ui/components/ShellInputPrompt.js +64 -0
- package/dist/ui/components/ShellModeIndicator.js +5 -0
- package/dist/ui/components/ShortcutsHelp.js +58 -0
- package/dist/ui/components/ShowMoreLines.js +26 -0
- package/dist/ui/components/StatsDisplay.js +93 -0
- package/dist/ui/components/StatusDisplay.js +20 -0
- package/dist/ui/components/StatusRow.js +181 -0
- package/dist/ui/components/StickyHeader.js +5 -0
- package/dist/ui/components/SuggestionsDisplay.js +50 -0
- package/dist/ui/components/Table.js +7 -0
- package/dist/ui/components/ThemeDialog.constants.js +26 -0
- package/dist/ui/components/ThemeDialog.js +165 -0
- package/dist/ui/components/ThemedGradient.js +16 -0
- package/dist/ui/components/Tips.js +8 -0
- package/dist/ui/components/ToastDisplay.js +50 -0
- package/dist/ui/components/ToolConfirmationQueue.js +63 -0
- package/dist/ui/components/ToolStatsDisplay.js +41 -0
- package/dist/ui/components/UpdateNotification.js +10 -0
- package/dist/ui/components/UserIdentity.js +26 -0
- package/dist/ui/components/ValidationDialog.js +91 -0
- package/dist/ui/components/VoiceModelDialog.js +123 -0
- package/dist/ui/components/messages/CompressionMessage.js +48 -0
- package/dist/ui/components/messages/DenseToolMessage.js +257 -0
- package/dist/ui/components/messages/DiffRenderer.js +270 -0
- package/dist/ui/components/messages/ErrorMessage.js +9 -0
- package/dist/ui/components/messages/ExportSessionMessage.js +15 -0
- package/dist/ui/components/messages/GeminiMessage.js +15 -0
- package/dist/ui/components/messages/GeminiMessageContent.js +19 -0
- package/dist/ui/components/messages/HintMessage.js +15 -0
- package/dist/ui/components/messages/InfoMessage.js +11 -0
- package/dist/ui/components/messages/ModelMessage.js +6 -0
- package/dist/ui/components/messages/ShellToolMessage.js +84 -0
- package/dist/ui/components/messages/SubagentGroupDisplay.js +139 -0
- package/dist/ui/components/messages/SubagentHistoryMessage.js +4 -0
- package/dist/ui/components/messages/SubagentProgressDisplay.js +80 -0
- package/dist/ui/components/messages/ThinkingMessage.js +38 -0
- package/dist/ui/components/messages/Todo.js +40 -0
- package/dist/ui/components/messages/ToolConfirmationMessage.js +577 -0
- package/dist/ui/components/messages/ToolGroupDisplay.js +78 -0
- package/dist/ui/components/messages/ToolGroupMessage.js +268 -0
- package/dist/ui/components/messages/ToolMessage.js +25 -0
- package/dist/ui/components/messages/ToolResultDisplay.js +146 -0
- package/dist/ui/components/messages/ToolShared.js +125 -0
- package/dist/ui/components/messages/TopicMessage.js +56 -0
- package/dist/ui/components/messages/UserMessage.js +34 -0
- package/dist/ui/components/messages/UserShellMessage.js +14 -0
- package/dist/ui/components/messages/WarningMessage.js +10 -0
- package/dist/ui/components/shared/BaseSelectionList.js +97 -0
- package/dist/ui/components/shared/BaseSettingsDialog.js +281 -0
- package/dist/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
- package/dist/ui/components/shared/DialogFooter.js +17 -0
- package/dist/ui/components/shared/EnumSelector.js +39 -0
- package/dist/ui/components/shared/ExpandableText.js +87 -0
- package/dist/ui/components/shared/HalfLinePaddedBox.js +37 -0
- package/dist/ui/components/shared/HorizontalLine.js +5 -0
- package/dist/ui/components/shared/MaxSizedBox.js +81 -0
- package/dist/ui/components/shared/RadioButtonSelect.js +22 -0
- package/dist/ui/components/shared/ScopeSelector.js +14 -0
- package/dist/ui/components/shared/Scrollable.js +167 -0
- package/dist/ui/components/shared/ScrollableList.js +167 -0
- package/dist/ui/components/shared/SearchableList.js +86 -0
- package/dist/ui/components/shared/SectionHeader.js +5 -0
- package/dist/ui/components/shared/SlicingMaxSizedBox.js +74 -0
- package/dist/ui/components/shared/TabHeader.js +42 -0
- package/dist/ui/components/shared/TextInput.js +51 -0
- package/dist/ui/components/shared/VirtualizedList.js +473 -0
- package/dist/ui/components/shared/text-buffer.js +2770 -0
- package/dist/ui/components/shared/vim-buffer-actions.js +1306 -0
- package/dist/ui/components/triage/TriageDuplicates.js +624 -0
- package/dist/ui/components/triage/TriageIssues.js +380 -0
- package/dist/ui/components/views/AgentsStatus.js +23 -0
- package/dist/ui/components/views/ChatList.js +17 -0
- package/dist/ui/components/views/ExtensionDetails.js +85 -0
- package/dist/ui/components/views/ExtensionRegistryView.js +97 -0
- package/dist/ui/components/views/ExtensionsList.js +46 -0
- package/dist/ui/components/views/GemmaStatus.js +11 -0
- package/dist/ui/components/views/McpStatus.js +109 -0
- package/dist/ui/components/views/SkillsList.js +17 -0
- package/dist/ui/components/views/ToolsList.js +6 -0
- package/dist/ui/constants/tips.js +163 -0
- package/dist/ui/constants/wittyPhrases.js +137 -0
- package/dist/ui/constants.js +60 -0
- package/dist/ui/contexts/AppContext.js +14 -0
- package/dist/ui/contexts/AskUserActionsContext.js +24 -0
- package/dist/ui/contexts/ConfigContext.js +14 -0
- package/dist/ui/contexts/InputContext.js +14 -0
- package/dist/ui/contexts/KeypressContext.js +780 -0
- package/dist/ui/contexts/MouseContext.js +130 -0
- package/dist/ui/contexts/OverflowContext.js +66 -0
- package/dist/ui/contexts/QuotaContext.js +14 -0
- package/dist/ui/contexts/ScrollProvider.js +312 -0
- package/dist/ui/contexts/SessionContext.js +167 -0
- package/dist/ui/contexts/SettingsContext.js +47 -0
- package/dist/ui/contexts/ShellFocusContext.js +8 -0
- package/dist/ui/contexts/StreamingContext.js +14 -0
- package/dist/ui/contexts/TerminalContext.js +70 -0
- package/dist/ui/contexts/ToolActionsContext.js +96 -0
- package/dist/ui/contexts/UIActionsContext.js +14 -0
- package/dist/ui/contexts/UIStateContext.js +14 -0
- package/dist/ui/contexts/VimModeContext.js +38 -0
- package/dist/ui/debug.js +10 -0
- package/dist/ui/editors/editorSettingsManager.js +37 -0
- package/dist/ui/hooks/atCommandProcessor.js +557 -0
- package/dist/ui/hooks/creditsFlowHandler.js +157 -0
- package/dist/ui/hooks/shell-completions/gitProvider.js +72 -0
- package/dist/ui/hooks/shell-completions/index.js +15 -0
- package/dist/ui/hooks/shell-completions/npmProvider.js +66 -0
- package/dist/ui/hooks/shell-completions/types.js +6 -0
- package/dist/ui/hooks/shellReducer.js +124 -0
- package/dist/ui/hooks/slashCommandProcessor.js +556 -0
- package/dist/ui/hooks/toolMapping.js +103 -0
- package/dist/ui/hooks/useAgentStream.js +407 -0
- package/dist/ui/hooks/useAlternateBuffer.js +17 -0
- package/dist/ui/hooks/useAnimatedScrollbar.js +100 -0
- package/dist/ui/hooks/useApprovalModeIndicator.js +83 -0
- package/dist/ui/hooks/useAtCompletion.js +347 -0
- package/dist/ui/hooks/useBackgroundTaskManager.js +56 -0
- package/dist/ui/hooks/useBanner.js +55 -0
- package/dist/ui/hooks/useBatchedScroll.js +26 -0
- package/dist/ui/hooks/useCommandCompletion.js +343 -0
- package/dist/ui/hooks/useCompletion.js +83 -0
- package/dist/ui/hooks/useComposerStatus.js +79 -0
- package/dist/ui/hooks/useConfirmingTool.js +18 -0
- package/dist/ui/hooks/useConsoleMessages.js +139 -0
- package/dist/ui/hooks/useEditorSettings.js +45 -0
- package/dist/ui/hooks/useExecutionLifecycle.js +529 -0
- package/dist/ui/hooks/useExtensionRegistry.js +69 -0
- package/dist/ui/hooks/useExtensionUpdates.js +172 -0
- package/dist/ui/hooks/useFlickerDetector.js +37 -0
- package/dist/ui/hooks/useFocus.js +57 -0
- package/dist/ui/hooks/useFolderTrust.js +104 -0
- package/dist/ui/hooks/useGeminiStream.js +1422 -0
- package/dist/ui/hooks/useGitBranchName.js +77 -0
- package/dist/ui/hooks/useHistoryManager.js +113 -0
- package/dist/ui/hooks/useHookDisplayState.js +82 -0
- package/dist/ui/hooks/useIdeTrustListener.js +66 -0
- package/dist/ui/hooks/useInactivityTimer.js +29 -0
- package/dist/ui/hooks/useIncludeDirsTrust.js +109 -0
- package/dist/ui/hooks/useInlineEditBuffer.js +112 -0
- package/dist/ui/hooks/useInputHistory.js +90 -0
- package/dist/ui/hooks/useInputHistoryStore.js +81 -0
- package/dist/ui/hooks/useKeyMatchers.js +12 -0
- package/dist/ui/hooks/useKeypress.js +27 -0
- package/dist/ui/hooks/useKittyKeyboardProtocol.js +18 -0
- package/dist/ui/hooks/useLoadingIndicator.js +54 -0
- package/dist/ui/hooks/useLogger.js +26 -0
- package/dist/ui/hooks/useMcpStatus.js +33 -0
- package/dist/ui/hooks/useMemoryMonitor.js +27 -0
- package/dist/ui/hooks/useMessageQueue.js +69 -0
- package/dist/ui/hooks/useModelCommand.js +20 -0
- package/dist/ui/hooks/useMouse.js +26 -0
- package/dist/ui/hooks/useMouseClick.js +35 -0
- package/dist/ui/hooks/usePermissionsModifyTrust.js +113 -0
- package/dist/ui/hooks/usePhraseCycler.js +141 -0
- package/dist/ui/hooks/usePrivacySettings.js +109 -0
- package/dist/ui/hooks/usePromptCompletion.js +168 -0
- package/dist/ui/hooks/useQuotaAndFallback.js +220 -0
- package/dist/ui/hooks/useRegistrySearch.js +34 -0
- package/dist/ui/hooks/useRepeatedKeyPress.js +49 -0
- package/dist/ui/hooks/useReverseSearchCompletion.js +101 -0
- package/dist/ui/hooks/useRewind.js +30 -0
- package/dist/ui/hooks/useRunEventNotifications.js +94 -0
- package/dist/ui/hooks/useSearchBuffer.js +23 -0
- package/dist/ui/hooks/useSelectionList.js +317 -0
- package/dist/ui/hooks/useSessionBrowser.js +74 -0
- package/dist/ui/hooks/useSessionResume.js +74 -0
- package/dist/ui/hooks/useSettingsCommand.js +20 -0
- package/dist/ui/hooks/useSettingsNavigation.js +71 -0
- package/dist/ui/hooks/useShellCompletion.js +501 -0
- package/dist/ui/hooks/useShellHistory.js +113 -0
- package/dist/ui/hooks/useShellInactivityStatus.js +44 -0
- package/dist/ui/hooks/useSlashCompletion.js +434 -0
- package/dist/ui/hooks/useSnowfall.js +125 -0
- package/dist/ui/hooks/useStateAndRef.js +26 -0
- package/dist/ui/hooks/useSuspend.js +101 -0
- package/dist/ui/hooks/useTabbedNavigation.js +159 -0
- package/dist/ui/hooks/useTerminalSize.js +25 -0
- package/dist/ui/hooks/useTerminalTheme.js +78 -0
- package/dist/ui/hooks/useThemeCommand.js +79 -0
- package/dist/ui/hooks/useTimedMessage.js +31 -0
- package/dist/ui/hooks/useTimer.js +57 -0
- package/dist/ui/hooks/useTips.js +17 -0
- package/dist/ui/hooks/useToolScheduler.js +212 -0
- package/dist/ui/hooks/useTurnActivityMonitor.js +47 -0
- package/dist/ui/hooks/useVisibilityToggle.js +59 -0
- package/dist/ui/hooks/useVoiceMode.js +338 -0
- package/dist/ui/hooks/useVoiceModelCommand.js +20 -0
- package/dist/ui/hooks/vim.js +1311 -0
- package/dist/ui/key/keyBindings.js +703 -0
- package/dist/ui/key/keyMatchers.js +42 -0
- package/dist/ui/key/keyToAnsi.js +44 -0
- package/dist/ui/key/keybindingUtils.js +85 -0
- package/dist/ui/layouts/DefaultAppLayout.js +29 -0
- package/dist/ui/layouts/ScreenReaderAppLayout.js +17 -0
- package/dist/ui/noninteractive/nonInteractiveUi.js +46 -0
- package/dist/ui/privacy/CloudFreePrivacyNotice.js +44 -0
- package/dist/ui/privacy/CloudPaidPrivacyNotice.js +20 -0
- package/dist/ui/privacy/GeminiPrivacyNotice.js +20 -0
- package/dist/ui/privacy/PrivacyNotice.js +25 -0
- package/dist/ui/semantic-colors.js +23 -0
- package/dist/ui/state/extensions.js +96 -0
- package/dist/ui/textConstants.js +14 -0
- package/dist/ui/themes/builtin/dark/ansi-dark.js +153 -0
- package/dist/ui/themes/builtin/dark/atom-one-dark.js +139 -0
- package/dist/ui/themes/builtin/dark/ayu-dark.js +105 -0
- package/dist/ui/themes/builtin/dark/default-dark.js +142 -0
- package/dist/ui/themes/builtin/dark/dracula-dark.js +116 -0
- package/dist/ui/themes/builtin/dark/github-dark-colorblind.js +139 -0
- package/dist/ui/themes/builtin/dark/github-dark.js +139 -0
- package/dist/ui/themes/builtin/dark/holiday-dark.js +162 -0
- package/dist/ui/themes/builtin/dark/shades-of-purple-dark.js +305 -0
- package/dist/ui/themes/builtin/dark/solarized-dark.js +196 -0
- package/dist/ui/themes/builtin/dark/tokyonight-dark.js +146 -0
- package/dist/ui/themes/builtin/light/ansi-light.js +142 -0
- package/dist/ui/themes/builtin/light/ayu-light.js +131 -0
- package/dist/ui/themes/builtin/light/default-light.js +99 -0
- package/dist/ui/themes/builtin/light/github-light-colorblind.js +139 -0
- package/dist/ui/themes/builtin/light/github-light.js +142 -0
- package/dist/ui/themes/builtin/light/googlecode-light.js +138 -0
- package/dist/ui/themes/builtin/light/solarized-light.js +196 -0
- package/dist/ui/themes/builtin/light/xcode-light.js +147 -0
- package/dist/ui/themes/builtin/no-color.js +124 -0
- package/dist/ui/themes/color-utils.js +105 -0
- package/dist/ui/themes/semantic-tokens.js +76 -0
- package/dist/ui/themes/theme-manager.js +513 -0
- package/dist/ui/themes/theme.js +563 -0
- package/dist/ui/types.js +100 -0
- package/dist/ui/utils/CodeColorizer.js +130 -0
- package/dist/ui/utils/ConsolePatcher.js +56 -0
- package/dist/ui/utils/InlineMarkdownRenderer.js +17 -0
- package/dist/ui/utils/MarkdownDisplay.js +243 -0
- package/dist/ui/utils/TableRenderer.js +161 -0
- package/dist/ui/utils/antigravityUtils.js +40 -0
- package/dist/ui/utils/borderStyles.js +82 -0
- package/dist/ui/utils/clipboardUtils.js +484 -0
- package/dist/ui/utils/commandUtils.js +259 -0
- package/dist/ui/utils/computeStats.js +61 -0
- package/dist/ui/utils/confirmingTool.js +25 -0
- package/dist/ui/utils/contextUsage.js +19 -0
- package/dist/ui/utils/directoryUtils.js +124 -0
- package/dist/ui/utils/displayUtils.js +42 -0
- package/dist/ui/utils/editorUtils.js +150 -0
- package/dist/ui/utils/fileUtils.js +16 -0
- package/dist/ui/utils/formatters.js +126 -0
- package/dist/ui/utils/highlight.js +116 -0
- package/dist/ui/utils/historyExportUtils.js +58 -0
- package/dist/ui/utils/historyUtils.js +69 -0
- package/dist/ui/utils/inlineThinkingMode.js +8 -0
- package/dist/ui/utils/input.js +50 -0
- package/dist/ui/utils/isNarrowWidth.js +8 -0
- package/dist/ui/utils/latexToUnicode.js +537 -0
- package/dist/ui/utils/markdownParsingUtils.js +184 -0
- package/dist/ui/utils/markdownUtilities.js +109 -0
- package/dist/ui/utils/memorySnapshot.js +27 -0
- package/dist/ui/utils/mouse.js +182 -0
- package/dist/ui/utils/pendingAttentionNotification.js +97 -0
- package/dist/ui/utils/rewindFileOps.js +190 -0
- package/dist/ui/utils/shortcutsHelp.js +11 -0
- package/dist/ui/utils/terminalCapabilityManager.js +259 -0
- package/dist/ui/utils/terminalSetup.js +418 -0
- package/dist/ui/utils/terminalUtils.js +37 -0
- package/dist/ui/utils/textOutput.js +52 -0
- package/dist/ui/utils/textUtils.js +235 -0
- package/dist/ui/utils/toolLayoutUtils.js +79 -0
- package/dist/ui/utils/ui-sizing.js +12 -0
- package/dist/ui/utils/updateCheck.js +95 -0
- package/dist/ui/utils/urlSecurityUtils.js +70 -0
- package/dist/utils/activityLogger.js +795 -0
- package/dist/utils/agentSettings.js +44 -0
- package/dist/utils/agentUtils.js +49 -0
- package/dist/utils/autoMemory.js +14 -0
- package/dist/utils/cleanup.js +170 -0
- package/dist/utils/commands.js +66 -0
- package/dist/utils/commentJson.js +136 -0
- package/dist/utils/deepMerge.js +64 -0
- package/dist/utils/devtoolsService.js +185 -0
- package/dist/utils/dialogScopeUtils.js +49 -0
- package/dist/utils/envVarResolver.js +120 -0
- package/dist/utils/errors.js +179 -0
- package/dist/utils/events.js +22 -0
- package/dist/utils/featureToggleUtils.js +94 -0
- package/dist/utils/gitUtils.js +109 -0
- package/dist/utils/handleAutoUpdate.js +178 -0
- package/dist/utils/hookSettings.js +113 -0
- package/dist/utils/hookUtils.js +50 -0
- package/dist/utils/installationInfo.js +186 -0
- package/dist/utils/jsonoutput.js +41 -0
- package/dist/utils/logCleanup.js +57 -0
- package/dist/utils/math.js +13 -0
- package/dist/utils/persistentState.js +65 -0
- package/dist/utils/processUtils.js +98 -0
- package/dist/utils/readStdin.js +86 -0
- package/dist/utils/relaunch.js +60 -0
- package/dist/utils/resize-observer-polyfill.js +6 -0
- package/dist/utils/resolvePath.js +20 -0
- package/dist/utils/sandbox.js +926 -0
- package/dist/utils/sandboxUtils.js +125 -0
- package/dist/utils/sessionCleanup.js +480 -0
- package/dist/utils/sessionUtils.js +464 -0
- package/dist/utils/sessions.js +66 -0
- package/dist/utils/settingsUtils.js +283 -0
- package/dist/utils/skillSettings.js +51 -0
- package/dist/utils/skillUtils.js +231 -0
- package/dist/utils/spawnWrapper.js +7 -0
- package/dist/utils/startupWarnings.js +39 -0
- package/dist/utils/terminalNotifications.js +130 -0
- package/dist/utils/terminalTheme.js +49 -0
- package/dist/utils/tierUtils.js +14 -0
- package/dist/utils/updateEventEmitter.js +11 -0
- package/dist/utils/userStartupWarnings.js +102 -0
- package/dist/utils/windowTitle.js +83 -0
- package/dist/utils/worktreeSetup.js +31 -0
- package/dist/validateNonInterActiveAuth.js +44 -0
- package/package.json +86 -36
- package/LICENSE +0 -202
- package/dist/index.d.ts +0 -7
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -106
- package/dist/src/acp/acpCommandHandler.d.ts +0 -26
- package/dist/src/acp/acpCommandHandler.js +0 -106
- package/dist/src/acp/acpCommandHandler.js.map +0 -1
- package/dist/src/acp/acpErrors.d.ts +0 -11
- package/dist/src/acp/acpErrors.js +0 -38
- package/dist/src/acp/acpErrors.js.map +0 -1
- package/dist/src/acp/acpFileSystemService.d.ts +0 -23
- package/dist/src/acp/acpFileSystemService.js +0 -81
- package/dist/src/acp/acpFileSystemService.js.map +0 -1
- package/dist/src/acp/acpRpcDispatcher.d.ts +0 -28
- package/dist/src/acp/acpRpcDispatcher.js +0 -175
- package/dist/src/acp/acpRpcDispatcher.js.map +0 -1
- package/dist/src/acp/acpSession.d.ts +0 -36
- package/dist/src/acp/acpSession.js +0 -1168
- package/dist/src/acp/acpSession.js.map +0 -1
- package/dist/src/acp/acpSessionManager.d.ts +0 -30
- package/dist/src/acp/acpSessionManager.js +0 -201
- package/dist/src/acp/acpSessionManager.js.map +0 -1
- package/dist/src/acp/acpStdioTransport.d.ts +0 -9
- package/dist/src/acp/acpStdioTransport.js +0 -23
- package/dist/src/acp/acpStdioTransport.js.map +0 -1
- package/dist/src/acp/acpUtils.d.ts +0 -56
- package/dist/src/acp/acpUtils.js +0 -288
- package/dist/src/acp/acpUtils.js.map +0 -1
- package/dist/src/acp/commands/about.d.ts +0 -11
- package/dist/src/acp/commands/about.js +0 -53
- package/dist/src/acp/commands/about.js.map +0 -1
- package/dist/src/acp/commands/commandRegistry.d.ts +0 -12
- package/dist/src/acp/commands/commandRegistry.js +0 -26
- package/dist/src/acp/commands/commandRegistry.js.map +0 -1
- package/dist/src/acp/commands/extensions.d.ts +0 -57
- package/dist/src/acp/commands/extensions.js +0 -331
- package/dist/src/acp/commands/extensions.js.map +0 -1
- package/dist/src/acp/commands/help.d.ts +0 -14
- package/dist/src/acp/commands/help.js +0 -35
- package/dist/src/acp/commands/help.js.map +0 -1
- package/dist/src/acp/commands/init.d.ts +0 -12
- package/dist/src/acp/commands/init.js +0 -47
- package/dist/src/acp/commands/init.js.map +0 -1
- package/dist/src/acp/commands/memory.d.ts +0 -34
- package/dist/src/acp/commands/memory.js +0 -96
- package/dist/src/acp/commands/memory.js.map +0 -1
- package/dist/src/acp/commands/restore.d.ts +0 -18
- package/dist/src/acp/commands/restore.js +0 -141
- package/dist/src/acp/commands/restore.js.map +0 -1
- package/dist/src/acp/commands/types.d.ts +0 -31
- package/dist/src/acp/commands/types.js +0 -7
- package/dist/src/acp/commands/types.js.map +0 -1
- package/dist/src/commands/extensions/configure.d.ts +0 -13
- package/dist/src/commands/extensions/configure.js +0 -64
- package/dist/src/commands/extensions/configure.js.map +0 -1
- package/dist/src/commands/extensions/disable.d.ts +0 -13
- package/dist/src/commands/extensions/disable.js +0 -70
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -13
- package/dist/src/commands/extensions/enable.js +0 -86
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/install.d.ts +0 -17
- package/dist/src/commands/extensions/install.js +0 -172
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/link.d.ts +0 -13
- package/dist/src/commands/extensions/link.js +0 -66
- package/dist/src/commands/extensions/link.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -10
- package/dist/src/commands/extensions/list.js +0 -63
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/new.d.ts +0 -7
- package/dist/src/commands/extensions/new.js +0 -88
- package/dist/src/commands/extensions/new.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -13
- package/dist/src/commands/extensions/uninstall.js +0 -89
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -13
- package/dist/src/commands/extensions/update.js +0 -114
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions/utils.d.ts +0 -26
- package/dist/src/commands/extensions/utils.js +0 -123
- package/dist/src/commands/extensions/utils.js.map +0 -1
- package/dist/src/commands/extensions/validate.d.ts +0 -12
- package/dist/src/commands/extensions/validate.js +0 -85
- package/dist/src/commands/extensions/validate.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -44
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/gemma/constants.d.ts +0 -17
- package/dist/src/commands/gemma/constants.js +0 -35
- package/dist/src/commands/gemma/constants.js.map +0 -1
- package/dist/src/commands/gemma/logs.d.ts +0 -13
- package/dist/src/commands/gemma/logs.js +0 -154
- package/dist/src/commands/gemma/logs.js.map +0 -1
- package/dist/src/commands/gemma/platform.d.ts +0 -38
- package/dist/src/commands/gemma/platform.js +0 -220
- package/dist/src/commands/gemma/platform.js.map +0 -1
- package/dist/src/commands/gemma/setup.d.ts +0 -9
- package/dist/src/commands/gemma/setup.js +0 -392
- package/dist/src/commands/gemma/setup.js.map +0 -1
- package/dist/src/commands/gemma/start.d.ts +0 -8
- package/dist/src/commands/gemma/start.js +0 -87
- package/dist/src/commands/gemma/start.js.map +0 -1
- package/dist/src/commands/gemma/status.d.ts +0 -19
- package/dist/src/commands/gemma/status.js +0 -110
- package/dist/src/commands/gemma/status.js.map +0 -1
- package/dist/src/commands/gemma/stop.d.ts +0 -9
- package/dist/src/commands/gemma/stop.js +0 -110
- package/dist/src/commands/gemma/stop.js.map +0 -1
- package/dist/src/commands/gemma.d.ts +0 -7
- package/dist/src/commands/gemma.js +0 -30
- package/dist/src/commands/gemma.js.map +0 -1
- package/dist/src/commands/hooks/migrate.d.ts +0 -11
- package/dist/src/commands/hooks/migrate.js +0 -215
- package/dist/src/commands/hooks/migrate.js.map +0 -1
- package/dist/src/commands/hooks.d.ts +0 -7
- package/dist/src/commands/hooks.js +0 -25
- package/dist/src/commands/hooks.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -195
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/enableDisable.d.ts +0 -13
- package/dist/src/commands/mcp/enableDisable.js +0 -106
- package/dist/src/commands/mcp/enableDisable.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -18
- package/dist/src/commands/mcp/list.js +0 -207
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -49
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -32
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/commands/skills/disable.d.ts +0 -14
- package/dist/src/commands/skills/disable.js +0 -48
- package/dist/src/commands/skills/disable.js.map +0 -1
- package/dist/src/commands/skills/enable.d.ts +0 -12
- package/dist/src/commands/skills/enable.js +0 -36
- package/dist/src/commands/skills/enable.js.map +0 -1
- package/dist/src/commands/skills/install.d.ts +0 -15
- package/dist/src/commands/skills/install.js +0 -79
- package/dist/src/commands/skills/install.js.map +0 -1
- package/dist/src/commands/skills/link.d.ts +0 -14
- package/dist/src/commands/skills/link.js +0 -67
- package/dist/src/commands/skills/link.js.map +0 -1
- package/dist/src/commands/skills/list.d.ts +0 -10
- package/dist/src/commands/skills/list.js +0 -60
- package/dist/src/commands/skills/list.js.map +0 -1
- package/dist/src/commands/skills/uninstall.d.ts +0 -13
- package/dist/src/commands/skills/uninstall.js +0 -57
- package/dist/src/commands/skills/uninstall.js.map +0 -1
- package/dist/src/commands/skills.d.ts +0 -7
- package/dist/src/commands/skills.js +0 -36
- package/dist/src/commands/skills.js.map +0 -1
- package/dist/src/commands/utils.d.ts +0 -6
- package/dist/src/commands/utils.js +0 -11
- package/dist/src/commands/utils.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -44
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -69
- package/dist/src/config/config.js +0 -928
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension-manager-themes.spec.js +0 -203
- package/dist/src/config/extension-manager-themes.spec.js.map +0 -1
- package/dist/src/config/extension-manager.d.ts +0 -87
- package/dist/src/config/extension-manager.js +0 -888
- package/dist/src/config/extension-manager.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -46
- package/dist/src/config/extension.js +0 -21
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/extensionRegistryClient.d.ts +0 -41
- package/dist/src/config/extensionRegistryClient.js +0 -95
- package/dist/src/config/extensionRegistryClient.js.map +0 -1
- package/dist/src/config/extensions/consent.d.ts +0 -54
- package/dist/src/config/extensions/consent.js +0 -196
- package/dist/src/config/extensions/consent.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +0 -47
- package/dist/src/config/extensions/extensionEnablement.js +0 -193
- package/dist/src/config/extensions/extensionEnablement.js.map +0 -1
- package/dist/src/config/extensions/extensionSettings.d.ts +0 -23
- package/dist/src/config/extensions/extensionSettings.js +0 -248
- package/dist/src/config/extensions/extensionSettings.js.map +0 -1
- package/dist/src/config/extensions/github.d.ts +0 -50
- package/dist/src/config/extensions/github.js +0 -426
- package/dist/src/config/extensions/github.js.map +0 -1
- package/dist/src/config/extensions/github_fetch.d.ts +0 -7
- package/dist/src/config/extensions/github_fetch.js +0 -48
- package/dist/src/config/extensions/github_fetch.js.map +0 -1
- package/dist/src/config/extensions/storage.d.ts +0 -14
- package/dist/src/config/extensions/storage.js +0 -32
- package/dist/src/config/extensions/storage.js.map +0 -1
- package/dist/src/config/extensions/update.d.ts +0 -20
- package/dist/src/config/extensions/update.js +0 -144
- package/dist/src/config/extensions/update.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -32
- package/dist/src/config/extensions/variableSchema.js +0 -22
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -21
- package/dist/src/config/extensions/variables.js +0 -62
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/footerItems.d.ts +0 -66
- package/dist/src/config/footerItems.js +0 -134
- package/dist/src/config/footerItems.js.map +0 -1
- package/dist/src/config/mcp/index.d.ts +0 -6
- package/dist/src/config/mcp/index.js +0 -7
- package/dist/src/config/mcp/index.js.map +0 -1
- package/dist/src/config/mcp/mcpServerEnablement.d.ts +0 -150
- package/dist/src/config/mcp/mcpServerEnablement.js +0 -280
- package/dist/src/config/mcp/mcpServerEnablement.js.map +0 -1
- package/dist/src/config/policy.d.ts +0 -41
- package/dist/src/config/policy.js +0 -98
- package/dist/src/config/policy.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -12
- package/dist/src/config/sandboxConfig.js +0 -117
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settingPaths.d.ts +0 -10
- package/dist/src/config/settingPaths.js +0 -11
- package/dist/src/config/settingPaths.js.map +0 -1
- package/dist/src/config/settings-validation.d.ts +0 -23
- package/dist/src/config/settings-validation.js +0 -273
- package/dist/src/config/settings-validation.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -155
- package/dist/src/config/settings.js +0 -943
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -2891
- package/dist/src/config/settingsSchema.js +0 -3289
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -19
- package/dist/src/config/trustedFolders.js +0 -26
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/core/auth.d.ts +0 -18
- package/dist/src/core/auth.js +0 -54
- package/dist/src/core/auth.js.map +0 -1
- package/dist/src/core/initializer.d.ts +0 -23
- package/dist/src/core/initializer.js +0 -43
- package/dist/src/core/initializer.js.map +0 -1
- package/dist/src/core/theme.d.ts +0 -12
- package/dist/src/core/theme.js +0 -20
- package/dist/src/core/theme.js.map +0 -1
- package/dist/src/deferred.d.ts +0 -19
- package/dist/src/deferred.js +0 -57
- package/dist/src/deferred.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -18
- package/dist/src/gemini.js +0 -695
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -7
- package/dist/src/generated/git-commit.js +0 -10
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/index.d.ts +0 -9
- package/dist/src/index.js +0 -13
- package/dist/src/index.js.map +0 -1
- package/dist/src/interactiveCli.d.ts +0 -9
- package/dist/src/interactiveCli.js +0 -189
- package/dist/src/interactiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -23
- package/dist/src/nonInteractiveCli.js +0 -459
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCliAgentSession.d.ts +0 -23
- package/dist/src/nonInteractiveCliAgentSession.js +0 -528
- package/dist/src/nonInteractiveCliAgentSession.js.map +0 -1
- package/dist/src/nonInteractiveCliCommands.d.ts +0 -17
- package/dist/src/nonInteractiveCliCommands.js +0 -83
- package/dist/src/nonInteractiveCliCommands.js.map +0 -1
- package/dist/src/patches/http-proxy-agent.d.ts +0 -6
- package/dist/src/patches/http-proxy-agent.js +0 -8
- package/dist/src/patches/http-proxy-agent.js.map +0 -1
- package/dist/src/patches/https-proxy-agent.d.ts +0 -6
- package/dist/src/patches/https-proxy-agent.js +0 -8
- package/dist/src/patches/https-proxy-agent.js.map +0 -1
- package/dist/src/patches/is-in-ci.d.ts +0 -7
- package/dist/src/patches/is-in-ci.js +0 -15
- package/dist/src/patches/is-in-ci.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -208
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -62
- package/dist/src/services/CommandService.js +0 -100
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -73
- package/dist/src/services/FileCommandLoader.js +0 -299
- package/dist/src/services/FileCommandLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.d.ts +0 -35
- package/dist/src/services/McpPromptLoader.js +0 -255
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/SkillCommandLoader.d.ts +0 -23
- package/dist/src/services/SkillCommandLoader.js +0 -54
- package/dist/src/services/SkillCommandLoader.js.map +0 -1
- package/dist/src/services/SlashCommandConflictHandler.d.ts +0 -35
- package/dist/src/services/SlashCommandConflictHandler.js +0 -128
- package/dist/src/services/SlashCommandConflictHandler.js.map +0 -1
- package/dist/src/services/SlashCommandResolver.d.ts +0 -53
- package/dist/src/services/SlashCommandResolver.js +0 -156
- package/dist/src/services/SlashCommandResolver.js.map +0 -1
- package/dist/src/services/liteRtServerManager.d.ts +0 -9
- package/dist/src/services/liteRtServerManager.js +0 -43
- package/dist/src/services/liteRtServerManager.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
- package/dist/src/services/prompt-processors/argumentProcessor.js +0 -21
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
- package/dist/src/services/prompt-processors/atFileProcessor.js +0 -63
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
- package/dist/src/services/prompt-processors/injectionParser.js +0 -60
- package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -130
- package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/types.d.ts +0 -45
- package/dist/src/services/prompt-processors/types.js +0 -20
- package/dist/src/services/prompt-processors/types.js.map +0 -1
- package/dist/src/services/types.d.ts +0 -30
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/AppRig.d.ts +0 -83
- package/dist/src/test-utils/AppRig.js +0 -583
- package/dist/src/test-utils/AppRig.js.map +0 -1
- package/dist/src/test-utils/MockShellExecutionService.d.ts +0 -37
- package/dist/src/test-utils/MockShellExecutionService.js +0 -89
- package/dist/src/test-utils/MockShellExecutionService.js.map +0 -1
- package/dist/src/test-utils/async.d.ts +0 -9
- package/dist/src/test-utils/async.js +0 -35
- package/dist/src/test-utils/async.js.map +0 -1
- package/dist/src/test-utils/createExtension.d.ts +0 -17
- package/dist/src/test-utils/createExtension.js +0 -32
- package/dist/src/test-utils/createExtension.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -34
- package/dist/src/test-utils/customMatchers.js +0 -86
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -103
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockConfig.d.ts +0 -15
- package/dist/src/test-utils/mockConfig.js +0 -203
- package/dist/src/test-utils/mockConfig.js.map +0 -1
- package/dist/src/test-utils/mockDebugLogger.d.ts +0 -35
- package/dist/src/test-utils/mockDebugLogger.js +0 -68
- package/dist/src/test-utils/mockDebugLogger.js.map +0 -1
- package/dist/src/test-utils/mockSpinner.d.ts +0 -6
- package/dist/src/test-utils/mockSpinner.js +0 -21
- package/dist/src/test-utils/mockSpinner.js.map +0 -1
- package/dist/src/test-utils/persistentStateFake.d.ts +0 -26
- package/dist/src/test-utils/persistentStateFake.js +0 -39
- package/dist/src/test-utils/persistentStateFake.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -163
- package/dist/src/test-utils/render.js +0 -609
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/test-utils/settings.d.ts +0 -31
- package/dist/src/test-utils/settings.js +0 -34
- package/dist/src/test-utils/settings.js.map +0 -1
- package/dist/src/test-utils/svg.d.ts +0 -7
- package/dist/src/test-utils/svg.js +0 -182
- package/dist/src/test-utils/svg.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -6
- package/dist/src/ui/App.js +0 -30
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/AppContainer.d.ts +0 -16
- package/dist/src/ui/AppContainer.js +0 -2106
- package/dist/src/ui/AppContainer.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -53
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/auth/ApiAuthDialog.d.ts +0 -14
- package/dist/src/ui/auth/ApiAuthDialog.js +0 -63
- package/dist/src/ui/auth/ApiAuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +0 -21
- package/dist/src/ui/auth/AuthDialog.js +0 -142
- package/dist/src/ui/auth/AuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/auth/AuthInProgress.js +0 -24
- package/dist/src/ui/auth/AuthInProgress.js.map +0 -1
- package/dist/src/ui/auth/BannedAccountDialog.d.ts +0 -14
- package/dist/src/ui/auth/BannedAccountDialog.js +0 -67
- package/dist/src/ui/auth/BannedAccountDialog.js.map +0 -1
- package/dist/src/ui/auth/LoginRestartDialog.d.ts +0 -13
- package/dist/src/ui/auth/LoginRestartDialog.js +0 -40
- package/dist/src/ui/auth/LoginRestartDialog.js.map +0 -1
- package/dist/src/ui/auth/useAuth.d.ts +0 -21
- package/dist/src/ui/auth/useAuth.js +0 -133
- package/dist/src/ui/auth/useAuth.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -63
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
- package/dist/src/ui/commands/aboutCommand.js +0 -59
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.d.ts +0 -7
- package/dist/src/ui/commands/agentsCommand.js +0 -328
- package/dist/src/ui/commands/agentsCommand.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -46
- package/dist/src/ui/commands/authCommand.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugCommand.js +0 -147
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/bugMemoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugMemoryCommand.js +0 -62
- package/dist/src/ui/commands/bugMemoryCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -10
- package/dist/src/ui/commands/chatCommand.js +0 -362
- package/dist/src/ui/commands/chatCommand.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -68
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/commandsCommand.d.ts +0 -7
- package/dist/src/ui/commands/commandsCommand.js +0 -104
- package/dist/src/ui/commands/commandsCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -67
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -62
- package/dist/src/ui/commands/copyCommand.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
- package/dist/src/ui/commands/corgiCommand.js +0 -17
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/directoryCommand.js +0 -224
- package/dist/src/ui/commands/directoryCommand.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.d.ts +0 -7
- package/dist/src/ui/commands/docsCommand.js +0 -32
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -17
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/exportSessionCommand.d.ts +0 -7
- package/dist/src/ui/commands/exportSessionCommand.js +0 -74
- package/dist/src/ui/commands/exportSessionCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -12
- package/dist/src/ui/commands/extensionsCommand.js +0 -740
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/footerCommand.d.ts +0 -7
- package/dist/src/ui/commands/footerCommand.js +0 -20
- package/dist/src/ui/commands/footerCommand.js.map +0 -1
- package/dist/src/ui/commands/gemmaStatusCommand.d.ts +0 -7
- package/dist/src/ui/commands/gemmaStatusCommand.js +0 -34
- package/dist/src/ui/commands/gemmaStatusCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -41
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/hooksCommand.d.ts +0 -7
- package/dist/src/ui/commands/hooksCommand.js +0 -337
- package/dist/src/ui/commands/hooksCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -7
- package/dist/src/ui/commands/ideCommand.js +0 -233
- package/dist/src/ui/commands/ideCommand.js.map +0 -1
- package/dist/src/ui/commands/initCommand.d.ts +0 -7
- package/dist/src/ui/commands/initCommand.js +0 -38
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -447
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/memoryCommand.js +0 -125
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.d.ts +0 -7
- package/dist/src/ui/commands/modelCommand.js +0 -59
- package/dist/src/ui/commands/modelCommand.js.map +0 -1
- package/dist/src/ui/commands/oncallCommand.d.ts +0 -7
- package/dist/src/ui/commands/oncallCommand.js +0 -91
- package/dist/src/ui/commands/oncallCommand.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/permissionsCommand.js +0 -75
- package/dist/src/ui/commands/permissionsCommand.js.map +0 -1
- package/dist/src/ui/commands/planCommand.d.ts +0 -7
- package/dist/src/ui/commands/planCommand.js +0 -83
- package/dist/src/ui/commands/planCommand.js.map +0 -1
- package/dist/src/ui/commands/policiesCommand.d.ts +0 -7
- package/dist/src/ui/commands/policiesCommand.js +0 -83
- package/dist/src/ui/commands/policiesCommand.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
- package/dist/src/ui/commands/privacyCommand.js +0 -17
- package/dist/src/ui/commands/privacyCommand.js.map +0 -1
- package/dist/src/ui/commands/profileCommand.d.ts +0 -7
- package/dist/src/ui/commands/profileCommand.js +0 -24
- package/dist/src/ui/commands/profileCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -7
- package/dist/src/ui/commands/quitCommand.js +0 -37
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
- package/dist/src/ui/commands/restoreCommand.js +0 -132
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/resumeCommand.d.ts +0 -7
- package/dist/src/ui/commands/resumeCommand.js +0 -19
- package/dist/src/ui/commands/resumeCommand.js.map +0 -1
- package/dist/src/ui/commands/rewindCommand.d.ts +0 -7
- package/dist/src/ui/commands/rewindCommand.js +0 -138
- package/dist/src/ui/commands/rewindCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -17
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -10
- package/dist/src/ui/commands/setupGithubCommand.js +0 -196
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/shortcutsCommand.d.ts +0 -7
- package/dist/src/ui/commands/shortcutsCommand.js +0 -17
- package/dist/src/ui/commands/shortcutsCommand.js.map +0 -1
- package/dist/src/ui/commands/skillsCommand.d.ts +0 -7
- package/dist/src/ui/commands/skillsCommand.js +0 -297
- package/dist/src/ui/commands/skillsCommand.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -118
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/tasksCommand.d.ts +0 -7
- package/dist/src/ui/commands/tasksCommand.js +0 -17
- package/dist/src/ui/commands/tasksCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -43
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.d.ts +0 -7
- package/dist/src/ui/commands/themeCommand.js +0 -17
- package/dist/src/ui/commands/themeCommand.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
- package/dist/src/ui/commands/toolsCommand.js +0 -59
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -179
- package/dist/src/ui/commands/types.js +0 -16
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/upgradeCommand.d.ts +0 -11
- package/dist/src/ui/commands/upgradeCommand.js +0 -58
- package/dist/src/ui/commands/upgradeCommand.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -25
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/commands/voiceCommand.d.ts +0 -7
- package/dist/src/ui/commands/voiceCommand.js +0 -29
- package/dist/src/ui/commands/voiceCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -19
- package/dist/src/ui/components/AboutBox.js +0 -17
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.d.ts +0 -6
- package/dist/src/ui/components/AdminSettingsChangedDialog.js +0 -27
- package/dist/src/ui/components/AdminSettingsChangedDialog.js.map +0 -1
- package/dist/src/ui/components/AgentConfigDialog.d.ts +0 -20
- package/dist/src/ui/components/AgentConfigDialog.js +0 -298
- package/dist/src/ui/components/AgentConfigDialog.js.map +0 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +0 -30
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +0 -19
- package/dist/src/ui/components/AnsiOutput.js +0 -24
- package/dist/src/ui/components/AnsiOutput.js.map +0 -1
- package/dist/src/ui/components/AppHeader.d.ts +0 -11
- package/dist/src/ui/components/AppHeader.js +0 -74
- package/dist/src/ui/components/AppHeader.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeIndicator.d.ts +0 -13
- package/dist/src/ui/components/ApprovalModeIndicator.js +0 -41
- package/dist/src/ui/components/ApprovalModeIndicator.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -11
- package/dist/src/ui/components/AsciiArt.js +0 -54
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AskUserDialog.d.ts +0 -46
- package/dist/src/ui/components/AskUserDialog.js +0 -739
- package/dist/src/ui/components/AskUserDialog.js.map +0 -1
- package/dist/src/ui/components/BackgroundTaskDisplay.d.ts +0 -16
- package/dist/src/ui/components/BackgroundTaskDisplay.js +0 -253
- package/dist/src/ui/components/BackgroundTaskDisplay.js.map +0 -1
- package/dist/src/ui/components/Banner.d.ts +0 -14
- package/dist/src/ui/components/Banner.js +0 -29
- package/dist/src/ui/components/Banner.js.map +0 -1
- package/dist/src/ui/components/Checklist.d.ts +0 -14
- package/dist/src/ui/components/Checklist.js +0 -32
- package/dist/src/ui/components/Checklist.js.map +0 -1
- package/dist/src/ui/components/ChecklistItem.d.ts +0 -17
- package/dist/src/ui/components/ChecklistItem.js +0 -40
- package/dist/src/ui/components/ChecklistItem.js.map +0 -1
- package/dist/src/ui/components/CliSpinner.d.ts +0 -9
- package/dist/src/ui/components/CliSpinner.js +0 -28
- package/dist/src/ui/components/CliSpinner.js.map +0 -1
- package/dist/src/ui/components/ColorsDisplay.d.ts +0 -12
- package/dist/src/ui/components/ColorsDisplay.js +0 -120
- package/dist/src/ui/components/ColorsDisplay.js.map +0 -1
- package/dist/src/ui/components/Composer.d.ts +0 -8
- package/dist/src/ui/components/Composer.js +0 -88
- package/dist/src/ui/components/Composer.js.map +0 -1
- package/dist/src/ui/components/ConfigExtensionDialog.d.ts +0 -19
- package/dist/src/ui/components/ConfigExtensionDialog.js +0 -156
- package/dist/src/ui/components/ConfigExtensionDialog.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +0 -8
- package/dist/src/ui/components/ConfigInitDisplay.js +0 -55
- package/dist/src/ui/components/ConfigInitDisplay.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.d.ts +0 -13
- package/dist/src/ui/components/ConsentPrompt.js +0 -21
- package/dist/src/ui/components/ConsentPrompt.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -12
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -21
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -72
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -10
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -29
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/CopyModeWarning.d.ts +0 -7
- package/dist/src/ui/components/CopyModeWarning.js +0 -10
- package/dist/src/ui/components/CopyModeWarning.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -25
- package/dist/src/ui/components/DebugProfiler.js +0 -190
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -13
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -60
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/DialogManager.d.ts +0 -12
- package/dist/src/ui/components/DialogManager.js +0 -164
- package/dist/src/ui/components/DialogManager.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -89
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/EmptyWalletDialog.d.ts +0 -22
- package/dist/src/ui/components/EmptyWalletDialog.js +0 -34
- package/dist/src/ui/components/EmptyWalletDialog.js.map +0 -1
- package/dist/src/ui/components/ExitPlanModeDialog.d.ts +0 -17
- package/dist/src/ui/components/ExitPlanModeDialog.js +0 -180
- package/dist/src/ui/components/ExitPlanModeDialog.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.d.ts +0 -7
- package/dist/src/ui/components/ExitWarning.js +0 -10
- package/dist/src/ui/components/ExitWarning.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -19
- package/dist/src/ui/components/FolderTrustDialog.js +0 -119
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -20
- package/dist/src/ui/components/Footer.js +0 -271
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/FooterConfigDialog.d.ts +0 -11
- package/dist/src/ui/components/FooterConfigDialog.js +0 -214
- package/dist/src/ui/components/FooterConfigDialog.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/GeminiSpinner.d.ts +0 -13
- package/dist/src/ui/components/GeminiSpinner.js +0 -36
- package/dist/src/ui/components/GeminiSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -30
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -18
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -22
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -53
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HookStatusDisplay.d.ts +0 -12
- package/dist/src/ui/components/HookStatusDisplay.js +0 -28
- package/dist/src/ui/components/HookStatusDisplay.js.map +0 -1
- package/dist/src/ui/components/HooksDialog.d.ts +0 -36
- package/dist/src/ui/components/HooksDialog.js +0 -84
- package/dist/src/ui/components/HooksDialog.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +0 -11
- package/dist/src/ui/components/IdeTrustChangeDialog.js +0 -37
- package/dist/src/ui/components/IdeTrustChangeDialog.js.map +0 -1
- package/dist/src/ui/components/InboxDialog.d.ts +0 -15
- package/dist/src/ui/components/InboxDialog.js +0 -757
- package/dist/src/ui/components/InboxDialog.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -66
- package/dist/src/ui/components/InputPrompt.js +0 -1325
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/ListeningIndicator.d.ts +0 -10
- package/dist/src/ui/components/ListeningIndicator.js +0 -31
- package/dist/src/ui/components/ListeningIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -25
- package/dist/src/ui/components/LoadingIndicator.js +0 -49
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/LogoutConfirmationDialog.js +0 -40
- package/dist/src/ui/components/LogoutConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +0 -13
- package/dist/src/ui/components/LoopDetectionConfirmation.js +0 -40
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +0 -1
- package/dist/src/ui/components/MainContent.d.ts +0 -6
- package/dist/src/ui/components/MainContent.js +0 -177
- package/dist/src/ui/components/MainContent.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -10
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -26
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.d.ts +0 -11
- package/dist/src/ui/components/ModelDialog.js +0 -269
- package/dist/src/ui/components/ModelDialog.js.map +0 -1
- package/dist/src/ui/components/ModelQuotaDisplay.d.ts +0 -18
- package/dist/src/ui/components/ModelQuotaDisplay.js +0 -105
- package/dist/src/ui/components/ModelQuotaDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -16
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -158
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +0 -23
- package/dist/src/ui/components/MultiFolderTrustDialog.js +0 -97
- package/dist/src/ui/components/MultiFolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/NewAgentsNotification.d.ts +0 -16
- package/dist/src/ui/components/NewAgentsNotification.js +0 -52
- package/dist/src/ui/components/NewAgentsNotification.js.map +0 -1
- package/dist/src/ui/components/Notifications.d.ts +0 -6
- package/dist/src/ui/components/Notifications.js +0 -108
- package/dist/src/ui/components/Notifications.js.map +0 -1
- package/dist/src/ui/components/OverageMenuDialog.d.ts +0 -22
- package/dist/src/ui/components/OverageMenuDialog.js +0 -33
- package/dist/src/ui/components/OverageMenuDialog.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +0 -16
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +0 -63
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +0 -1
- package/dist/src/ui/components/PolicyUpdateDialog.d.ts +0 -18
- package/dist/src/ui/components/PolicyUpdateDialog.js +0 -62
- package/dist/src/ui/components/PolicyUpdateDialog.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -19
- package/dist/src/ui/components/ProQuotaDialog.js +0 -85
- package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
- package/dist/src/ui/components/ProgressBar.d.ts +0 -13
- package/dist/src/ui/components/ProgressBar.js +0 -18
- package/dist/src/ui/components/ProgressBar.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +0 -9
- package/dist/src/ui/components/QueuedMessageDisplay.js +0 -21
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.js +0 -21
- package/dist/src/ui/components/QuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/QuotaDisplay.d.ts +0 -16
- package/dist/src/ui/components/QuotaDisplay.js +0 -37
- package/dist/src/ui/components/QuotaDisplay.js.map +0 -1
- package/dist/src/ui/components/QuotaStatsInfo.d.ts +0 -14
- package/dist/src/ui/components/QuotaStatsInfo.js +0 -24
- package/dist/src/ui/components/QuotaStatsInfo.js.map +0 -1
- package/dist/src/ui/components/RawMarkdownIndicator.d.ts +0 -7
- package/dist/src/ui/components/RawMarkdownIndicator.js +0 -11
- package/dist/src/ui/components/RawMarkdownIndicator.js.map +0 -1
- package/dist/src/ui/components/RewindConfirmation.d.ts +0 -21
- package/dist/src/ui/components/RewindConfirmation.js +0 -74
- package/dist/src/ui/components/RewindConfirmation.js.map +0 -1
- package/dist/src/ui/components/RewindViewer.d.ts +0 -15
- package/dist/src/ui/components/RewindViewer.js +0 -155
- package/dist/src/ui/components/RewindViewer.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.d.ts +0 -10
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.d.ts +0 -13
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.d.ts +0 -10
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.d.ts +0 -23
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js +0 -18
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.d.ts +0 -13
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/utils.d.ts +0 -33
- package/dist/src/ui/components/SessionBrowser/utils.js +0 -100
- package/dist/src/ui/components/SessionBrowser/utils.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser.d.ts +0 -98
- package/dist/src/ui/components/SessionBrowser.js +0 -371
- package/dist/src/ui/components/SessionBrowser.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -25
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -14
- package/dist/src/ui/components/SettingsDialog.js +0 -285
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.d.ts +0 -12
- package/dist/src/ui/components/ShellInputPrompt.js +0 -65
- package/dist/src/ui/components/ShellInputPrompt.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -6
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShortcutsHelp.d.ts +0 -7
- package/dist/src/ui/components/ShortcutsHelp.js +0 -59
- package/dist/src/ui/components/ShortcutsHelp.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -11
- package/dist/src/ui/components/ShowMoreLines.js +0 -27
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -20
- package/dist/src/ui/components/StatsDisplay.js +0 -94
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/StatusDisplay.d.ts +0 -10
- package/dist/src/ui/components/StatusDisplay.js +0 -21
- package/dist/src/ui/components/StatusDisplay.js.map +0 -1
- package/dist/src/ui/components/StatusRow.d.ts +0 -32
- package/dist/src/ui/components/StatusRow.js +0 -183
- package/dist/src/ui/components/StatusRow.js.map +0 -1
- package/dist/src/ui/components/StickyHeader.d.ts +0 -16
- package/dist/src/ui/components/StickyHeader.js +0 -6
- package/dist/src/ui/components/StickyHeader.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -30
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -51
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/Table.d.ts +0 -21
- package/dist/src/ui/components/Table.js +0 -8
- package/dist/src/ui/components/Table.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.constants.d.ts +0 -26
- package/dist/src/ui/components/ThemeDialog.constants.js +0 -27
- package/dist/src/ui/components/ThemeDialog.constants.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -21
- package/dist/src/ui/components/ThemeDialog.js +0 -166
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/ThemedGradient.d.ts +0 -8
- package/dist/src/ui/components/ThemedGradient.js +0 -17
- package/dist/src/ui/components/ThemedGradient.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -10
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToastDisplay.d.ts +0 -10
- package/dist/src/ui/components/ToastDisplay.js +0 -51
- package/dist/src/ui/components/ToastDisplay.js.map +0 -1
- package/dist/src/ui/components/ToolConfirmationQueue.d.ts +0 -12
- package/dist/src/ui/components/ToolConfirmationQueue.js +0 -64
- package/dist/src/ui/components/ToolConfirmationQueue.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -42
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -11
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/UserIdentity.d.ts +0 -12
- package/dist/src/ui/components/UserIdentity.js +0 -27
- package/dist/src/ui/components/UserIdentity.js.map +0 -1
- package/dist/src/ui/components/ValidationDialog.d.ts +0 -15
- package/dist/src/ui/components/ValidationDialog.js +0 -92
- package/dist/src/ui/components/ValidationDialog.js.map +0 -1
- package/dist/src/ui/components/VoiceModelDialog.d.ts +0 -11
- package/dist/src/ui/components/VoiceModelDialog.js +0 -124
- package/dist/src/ui/components/VoiceModelDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -49
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DenseToolMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/DenseToolMessage.js +0 -258
- package/dist/src/ui/components/messages/DenseToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -35
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -271
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -10
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ExportSessionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ExportSessionMessage.js +0 -16
- package/dist/src/ui/components/messages/ExportSessionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -16
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -20
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/HintMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/HintMessage.js +0 -16
- package/dist/src/ui/components/messages/HintMessage.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -16
- package/dist/src/ui/components/messages/InfoMessage.js +0 -12
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ModelMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ModelMessage.js +0 -7
- package/dist/src/ui/components/messages/ModelMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ShellToolMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/ShellToolMessage.js +0 -85
- package/dist/src/ui/components/messages/ShellToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentGroupDisplay.d.ts +0 -17
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js +0 -140
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentHistoryMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js +0 -5
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentProgressDisplay.d.ts +0 -14
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js +0 -81
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ThinkingMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ThinkingMessage.js +0 -39
- package/dist/src/ui/components/messages/ThinkingMessage.js.map +0 -1
- package/dist/src/ui/components/messages/Todo.d.ts +0 -7
- package/dist/src/ui/components/messages/Todo.js +0 -42
- package/dist/src/ui/components/messages/Todo.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -578
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupDisplay.d.ts +0 -13
- package/dist/src/ui/components/messages/ToolGroupDisplay.js +0 -79
- package/dist/src/ui/components/messages/ToolGroupDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -21
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -269
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -24
- package/dist/src/ui/components/messages/ToolMessage.js +0 -26
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.d.ts +0 -16
- package/dist/src/ui/components/messages/ToolResultDisplay.js +0 -147
- package/dist/src/ui/components/messages/ToolResultDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ToolShared.d.ts +0 -59
- package/dist/src/ui/components/messages/ToolShared.js +0 -126
- package/dist/src/ui/components/messages/ToolShared.js.map +0 -1
- package/dist/src/ui/components/messages/TopicMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/TopicMessage.js +0 -57
- package/dist/src/ui/components/messages/TopicMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -12
- package/dist/src/ui/components/messages/UserMessage.js +0 -35
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -12
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -15
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +0 -42
- package/dist/src/ui/components/shared/BaseSelectionList.js +0 -98
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.d.ts +0 -90
- package/dist/src/ui/components/shared/BaseSettingsDialog.js +0 -282
- package/dist/src/ui/components/shared/BaseSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +0 -35
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +0 -14
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/DialogFooter.d.ts +0 -21
- package/dist/src/ui/components/shared/DialogFooter.js +0 -18
- package/dist/src/ui/components/shared/DialogFooter.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.d.ts +0 -18
- package/dist/src/ui/components/shared/EnumSelector.js +0 -40
- package/dist/src/ui/components/shared/EnumSelector.js.map +0 -1
- package/dist/src/ui/components/shared/ExpandableText.d.ts +0 -17
- package/dist/src/ui/components/shared/ExpandableText.js +0 -88
- package/dist/src/ui/components/shared/ExpandableText.js.map +0 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.d.ts +0 -26
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js +0 -38
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js.map +0 -1
- package/dist/src/ui/components/shared/HorizontalLine.d.ts +0 -12
- package/dist/src/ui/components/shared/HorizontalLine.js +0 -6
- package/dist/src/ui/components/shared/HorizontalLine.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -25
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -82
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -51
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -23
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +0 -19
- package/dist/src/ui/components/shared/ScopeSelector.js +0 -15
- package/dist/src/ui/components/shared/ScopeSelector.js.map +0 -1
- package/dist/src/ui/components/shared/Scrollable.d.ts +0 -22
- package/dist/src/ui/components/shared/Scrollable.js +0 -168
- package/dist/src/ui/components/shared/Scrollable.js.map +0 -1
- package/dist/src/ui/components/shared/ScrollableList.d.ts +0 -24
- package/dist/src/ui/components/shared/ScrollableList.js +0 -168
- package/dist/src/ui/components/shared/ScrollableList.js.map +0 -1
- package/dist/src/ui/components/shared/SearchableList.d.ts +0 -61
- package/dist/src/ui/components/shared/SearchableList.js +0 -87
- package/dist/src/ui/components/shared/SearchableList.js.map +0 -1
- package/dist/src/ui/components/shared/SectionHeader.d.ts +0 -10
- package/dist/src/ui/components/shared/SectionHeader.js +0 -6
- package/dist/src/ui/components/shared/SectionHeader.js.map +0 -1
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.d.ts +0 -19
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js +0 -75
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/TabHeader.d.ts +0 -51
- package/dist/src/ui/components/shared/TabHeader.js +0 -43
- package/dist/src/ui/components/shared/TabHeader.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +0 -15
- package/dist/src/ui/components/shared/TextInput.js +0 -52
- package/dist/src/ui/components/shared/TextInput.js.map +0 -1
- package/dist/src/ui/components/shared/VirtualizedList.d.ts +0 -56
- package/dist/src/ui/components/shared/VirtualizedList.js +0 -474
- package/dist/src/ui/components/shared/VirtualizedList.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -868
- package/dist/src/ui/components/shared/text-buffer.js +0 -2771
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -132
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -1307
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/components/triage/TriageDuplicates.d.ts +0 -11
- package/dist/src/ui/components/triage/TriageDuplicates.js +0 -625
- package/dist/src/ui/components/triage/TriageDuplicates.js.map +0 -1
- package/dist/src/ui/components/triage/TriageIssues.d.ts +0 -12
- package/dist/src/ui/components/triage/TriageIssues.js +0 -381
- package/dist/src/ui/components/triage/TriageIssues.js.map +0 -1
- package/dist/src/ui/components/views/AgentsStatus.d.ts +0 -13
- package/dist/src/ui/components/views/AgentsStatus.js +0 -24
- package/dist/src/ui/components/views/AgentsStatus.js.map +0 -1
- package/dist/src/ui/components/views/ChatList.d.ts +0 -12
- package/dist/src/ui/components/views/ChatList.js +0 -18
- package/dist/src/ui/components/views/ChatList.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionDetails.d.ts +0 -18
- package/dist/src/ui/components/views/ExtensionDetails.js +0 -86
- package/dist/src/ui/components/views/ExtensionDetails.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionRegistryView.d.ts +0 -15
- package/dist/src/ui/components/views/ExtensionRegistryView.js +0 -98
- package/dist/src/ui/components/views/ExtensionRegistryView.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +0 -12
- package/dist/src/ui/components/views/ExtensionsList.js +0 -47
- package/dist/src/ui/components/views/ExtensionsList.js.map +0 -1
- package/dist/src/ui/components/views/GemmaStatus.d.ts +0 -10
- package/dist/src/ui/components/views/GemmaStatus.js +0 -12
- package/dist/src/ui/components/views/GemmaStatus.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +0 -28
- package/dist/src/ui/components/views/McpStatus.js +0 -110
- package/dist/src/ui/components/views/McpStatus.js.map +0 -1
- package/dist/src/ui/components/views/SkillsList.d.ts +0 -13
- package/dist/src/ui/components/views/SkillsList.js +0 -19
- package/dist/src/ui/components/views/SkillsList.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.d.ts +0 -14
- package/dist/src/ui/components/views/ToolsList.js +0 -8
- package/dist/src/ui/components/views/ToolsList.js.map +0 -1
- package/dist/src/ui/constants/tips.d.ts +0 -6
- package/dist/src/ui/constants/tips.js +0 -164
- package/dist/src/ui/constants/tips.js.map +0 -1
- package/dist/src/ui/constants/wittyPhrases.d.ts +0 -6
- package/dist/src/ui/constants/wittyPhrases.js +0 -138
- package/dist/src/ui/constants/wittyPhrases.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -42
- package/dist/src/ui/constants.js +0 -61
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/AppContext.d.ts +0 -13
- package/dist/src/ui/contexts/AppContext.js +0 -15
- package/dist/src/ui/contexts/AppContext.js.map +0 -1
- package/dist/src/ui/contexts/AskUserActionsContext.d.ts +0 -42
- package/dist/src/ui/contexts/AskUserActionsContext.js +0 -25
- package/dist/src/ui/contexts/AskUserActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/ConfigContext.d.ts +0 -9
- package/dist/src/ui/contexts/ConfigContext.js +0 -16
- package/dist/src/ui/contexts/ConfigContext.js.map +0 -1
- package/dist/src/ui/contexts/InputContext.d.ts +0 -18
- package/dist/src/ui/contexts/InputContext.js +0 -15
- package/dist/src/ui/contexts/InputContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -37
- package/dist/src/ui/contexts/KeypressContext.js +0 -781
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/MouseContext.d.ts +0 -20
- package/dist/src/ui/contexts/MouseContext.js +0 -131
- package/dist/src/ui/contexts/MouseContext.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -67
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/QuotaContext.d.ts +0 -19
- package/dist/src/ui/contexts/QuotaContext.js +0 -15
- package/dist/src/ui/contexts/QuotaContext.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.d.ts +0 -25
- package/dist/src/ui/contexts/ScrollProvider.js +0 -313
- package/dist/src/ui/contexts/ScrollProvider.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -47
- package/dist/src/ui/contexts/SessionContext.js +0 -168
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -17
- package/dist/src/ui/contexts/SettingsContext.js +0 -48
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/contexts/ShellFocusContext.d.ts +0 -8
- package/dist/src/ui/contexts/ShellFocusContext.js +0 -9
- package/dist/src/ui/contexts/ShellFocusContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/contexts/TerminalContext.d.ts +0 -17
- package/dist/src/ui/contexts/TerminalContext.js +0 -71
- package/dist/src/ui/contexts/TerminalContext.js.map +0 -1
- package/dist/src/ui/contexts/ToolActionsContext.d.ts +0 -27
- package/dist/src/ui/contexts/ToolActionsContext.js +0 -97
- package/dist/src/ui/contexts/ToolActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +0 -83
- package/dist/src/ui/contexts/UIActionsContext.js +0 -22
- package/dist/src/ui/contexts/UIActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +0 -184
- package/dist/src/ui/contexts/UIStateContext.js +0 -18
- package/dist/src/ui/contexts/UIStateContext.js.map +0 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +0 -17
- package/dist/src/ui/contexts/VimModeContext.js +0 -39
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/debug.d.ts +0 -8
- package/dist/src/ui/debug.js +0 -11
- package/dist/src/ui/debug.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -18
- package/dist/src/ui/editors/editorSettingsManager.js +0 -38
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -56
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -558
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/creditsFlowHandler.d.ts +0 -36
- package/dist/src/ui/hooks/creditsFlowHandler.js +0 -158
- package/dist/src/ui/hooks/creditsFlowHandler.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/gitProvider.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/gitProvider.js +0 -73
- package/dist/src/ui/hooks/shell-completions/gitProvider.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/index.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/index.js +0 -16
- package/dist/src/ui/hooks/shell-completions/index.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/npmProvider.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/npmProvider.js +0 -67
- package/dist/src/ui/hooks/shell-completions/npmProvider.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/types.d.ts +0 -16
- package/dist/src/ui/hooks/shell-completions/types.js +0 -7
- package/dist/src/ui/hooks/shell-completions/types.js.map +0 -1
- package/dist/src/ui/hooks/shellReducer.d.ts +0 -55
- package/dist/src/ui/hooks/shellReducer.js +0 -125
- package/dist/src/ui/hooks/shellReducer.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -50
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -560
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/toolMapping.d.ts +0 -18
- package/dist/src/ui/hooks/toolMapping.js +0 -105
- package/dist/src/ui/hooks/toolMapping.js.map +0 -1
- package/dist/src/ui/hooks/useAgentStream.d.ts +0 -44
- package/dist/src/ui/hooks/useAgentStream.js +0 -410
- package/dist/src/ui/hooks/useAgentStream.js.map +0 -1
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +0 -8
- package/dist/src/ui/hooks/useAlternateBuffer.js +0 -18
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.d.ts +0 -10
- package/dist/src/ui/hooks/useAnimatedScrollbar.js +0 -101
- package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.d.ts +0 -15
- package/dist/src/ui/hooks/useApprovalModeIndicator.js +0 -84
- package/dist/src/ui/hooks/useApprovalModeIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -348
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useBackgroundTaskManager.d.ts +0 -23
- package/dist/src/ui/hooks/useBackgroundTaskManager.js +0 -58
- package/dist/src/ui/hooks/useBackgroundTaskManager.js.map +0 -1
- package/dist/src/ui/hooks/useBanner.d.ts +0 -14
- package/dist/src/ui/hooks/useBanner.js +0 -56
- package/dist/src/ui/hooks/useBanner.js.map +0 -1
- package/dist/src/ui/hooks/useBatchedScroll.d.ts +0 -14
- package/dist/src/ui/hooks/useBatchedScroll.js +0 -27
- package/dist/src/ui/hooks/useBatchedScroll.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -56
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -344
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useCompletion.js +0 -84
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useComposerStatus.d.ts +0 -21
- package/dist/src/ui/hooks/useComposerStatus.js +0 -80
- package/dist/src/ui/hooks/useComposerStatus.js.map +0 -1
- package/dist/src/ui/hooks/useConfirmingTool.d.ts +0 -12
- package/dist/src/ui/hooks/useConfirmingTool.js +0 -19
- package/dist/src/ui/hooks/useConfirmingTool.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -27
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -140
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -46
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useExecutionLifecycle.d.ts +0 -28
- package/dist/src/ui/hooks/useExecutionLifecycle.js +0 -532
- package/dist/src/ui/hooks/useExecutionLifecycle.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionRegistry.d.ts +0 -13
- package/dist/src/ui/hooks/useExtensionRegistry.js +0 -70
- package/dist/src/ui/hooks/useExtensionRegistry.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +0 -32
- package/dist/src/ui/hooks/useExtensionUpdates.js +0 -174
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +0 -1
- package/dist/src/ui/hooks/useFlickerDetector.d.ts +0 -15
- package/dist/src/ui/hooks/useFlickerDetector.js +0 -38
- package/dist/src/ui/hooks/useFlickerDetector.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -13
- package/dist/src/ui/hooks/useFocus.js +0 -58
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -16
- package/dist/src/ui/hooks/useFolderTrust.js +0 -105
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -43
- package/dist/src/ui/hooks/useGeminiStream.js +0 -1423
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -78
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -26
- package/dist/src/ui/hooks/useHistoryManager.js +0 -114
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHookDisplayState.d.ts +0 -7
- package/dist/src/ui/hooks/useHookDisplayState.js +0 -84
- package/dist/src/ui/hooks/useHookDisplayState.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +0 -16
- package/dist/src/ui/hooks/useIdeTrustListener.js +0 -67
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +0 -1
- package/dist/src/ui/hooks/useInactivityTimer.d.ts +0 -14
- package/dist/src/ui/hooks/useInactivityTimer.js +0 -30
- package/dist/src/ui/hooks/useInactivityTimer.js.map +0 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.d.ts +0 -9
- package/dist/src/ui/hooks/useIncludeDirsTrust.js +0 -111
- package/dist/src/ui/hooks/useIncludeDirsTrust.js.map +0 -1
- package/dist/src/ui/hooks/useInlineEditBuffer.d.ts +0 -44
- package/dist/src/ui/hooks/useInlineEditBuffer.js +0 -113
- package/dist/src/ui/hooks/useInlineEditBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -20
- package/dist/src/ui/hooks/useInputHistory.js +0 -91
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistoryStore.js +0 -82
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
- package/dist/src/ui/hooks/useKeyMatchers.d.ts +0 -17
- package/dist/src/ui/hooks/useKeyMatchers.js +0 -13
- package/dist/src/ui/hooks/useKeyMatchers.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -19
- package/dist/src/ui/hooks/useKeypress.js +0 -28
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -14
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -19
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -23
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -55
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -27
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMcpStatus.d.ts +0 -11
- package/dist/src/ui/hooks/useMcpStatus.js +0 -34
- package/dist/src/ui/hooks/useMcpStatus.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +0 -13
- package/dist/src/ui/hooks/useMemoryMonitor.js +0 -28
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -26
- package/dist/src/ui/hooks/useMessageQueue.js +0 -70
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.d.ts +0 -12
- package/dist/src/ui/hooks/useModelCommand.js +0 -21
- package/dist/src/ui/hooks/useModelCommand.js.map +0 -1
- package/dist/src/ui/hooks/useMouse.d.ts +0 -17
- package/dist/src/ui/hooks/useMouse.js +0 -27
- package/dist/src/ui/hooks/useMouse.js.map +0 -1
- package/dist/src/ui/hooks/useMouseClick.d.ts +0 -13
- package/dist/src/ui/hooks/useMouseClick.js +0 -36
- package/dist/src/ui/hooks/useMouseClick.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +0 -17
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +0 -115
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -23
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -142
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -110
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -22
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -169
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +0 -30
- package/dist/src/ui/hooks/useQuotaAndFallback.js +0 -223
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +0 -1
- package/dist/src/ui/hooks/useRegistrySearch.d.ts +0 -19
- package/dist/src/ui/hooks/useRegistrySearch.js +0 -35
- package/dist/src/ui/hooks/useRegistrySearch.js.map +0 -1
- package/dist/src/ui/hooks/useRepeatedKeyPress.d.ts +0 -15
- package/dist/src/ui/hooks/useRepeatedKeyPress.js +0 -50
- package/dist/src/ui/hooks/useRepeatedKeyPress.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -102
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useRewind.d.ts +0 -14
- package/dist/src/ui/hooks/useRewind.js +0 -31
- package/dist/src/ui/hooks/useRewind.js.map +0 -1
- package/dist/src/ui/hooks/useRunEventNotifications.d.ts +0 -24
- package/dist/src/ui/hooks/useRunEventNotifications.js +0 -95
- package/dist/src/ui/hooks/useRunEventNotifications.js.map +0 -1
- package/dist/src/ui/hooks/useSearchBuffer.d.ts +0 -11
- package/dist/src/ui/hooks/useSearchBuffer.js +0 -24
- package/dist/src/ui/hooks/useSearchBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.d.ts +0 -38
- package/dist/src/ui/hooks/useSelectionList.js +0 -318
- package/dist/src/ui/hooks/useSelectionList.js.map +0 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +0 -26
- package/dist/src/ui/hooks/useSessionBrowser.js +0 -75
- package/dist/src/ui/hooks/useSessionBrowser.js.map +0 -1
- package/dist/src/ui/hooks/useSessionResume.d.ts +0 -31
- package/dist/src/ui/hooks/useSessionResume.js +0 -75
- package/dist/src/ui/hooks/useSessionResume.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsNavigation.d.ts +0 -18
- package/dist/src/ui/hooks/useSettingsNavigation.js +0 -72
- package/dist/src/ui/hooks/useSettingsNavigation.js.map +0 -1
- package/dist/src/ui/hooks/useShellCompletion.d.ts +0 -50
- package/dist/src/ui/hooks/useShellCompletion.js +0 -502
- package/dist/src/ui/hooks/useShellCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -14
- package/dist/src/ui/hooks/useShellHistory.js +0 -114
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.d.ts +0 -26
- package/dist/src/ui/hooks/useShellInactivityStatus.js +0 -45
- package/dist/src/ui/hooks/useShellInactivityStatus.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -435
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSnowfall.d.ts +0 -6
- package/dist/src/ui/hooks/useSnowfall.js +0 -126
- package/dist/src/ui/hooks/useSnowfall.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -27
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useSuspend.d.ts +0 -14
- package/dist/src/ui/hooks/useSuspend.js +0 -102
- package/dist/src/ui/hooks/useSuspend.js.map +0 -1
- package/dist/src/ui/hooks/useTabbedNavigation.d.ts +0 -53
- package/dist/src/ui/hooks/useTabbedNavigation.js +0 -160
- package/dist/src/ui/hooks/useTabbedNavigation.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -26
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalTheme.d.ts +0 -8
- package/dist/src/ui/hooks/useTerminalTheme.js +0 -79
- package/dist/src/ui/hooks/useTerminalTheme.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -16
- package/dist/src/ui/hooks/useThemeCommand.js +0 -80
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimedMessage.d.ts +0 -10
- package/dist/src/ui/hooks/useTimedMessage.js +0 -32
- package/dist/src/ui/hooks/useTimedMessage.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/hooks/useTips.d.ts +0 -10
- package/dist/src/ui/hooks/useTips.js +0 -18
- package/dist/src/ui/hooks/useTips.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.d.ts +0 -48
- package/dist/src/ui/hooks/useToolScheduler.js +0 -213
- package/dist/src/ui/hooks/useToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.d.ts +0 -20
- package/dist/src/ui/hooks/useTurnActivityMonitor.js +0 -48
- package/dist/src/ui/hooks/useTurnActivityMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useVisibilityToggle.d.ts +0 -12
- package/dist/src/ui/hooks/useVisibilityToggle.js +0 -60
- package/dist/src/ui/hooks/useVisibilityToggle.js.map +0 -1
- package/dist/src/ui/hooks/useVoiceMode.d.ts +0 -28
- package/dist/src/ui/hooks/useVoiceMode.js +0 -339
- package/dist/src/ui/hooks/useVoiceMode.js.map +0 -1
- package/dist/src/ui/hooks/useVoiceModelCommand.d.ts +0 -12
- package/dist/src/ui/hooks/useVoiceModelCommand.js +0 -21
- package/dist/src/ui/hooks/useVoiceModelCommand.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -1312
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/key/keyBindings.d.ts +0 -137
- package/dist/src/ui/key/keyBindings.js +0 -705
- package/dist/src/ui/key/keyBindings.js.map +0 -1
- package/dist/src/ui/key/keyMatchers.d.ts +0 -34
- package/dist/src/ui/key/keyMatchers.js +0 -43
- package/dist/src/ui/key/keyMatchers.js.map +0 -1
- package/dist/src/ui/key/keyToAnsi.d.ts +0 -15
- package/dist/src/ui/key/keyToAnsi.js +0 -45
- package/dist/src/ui/key/keyToAnsi.js.map +0 -1
- package/dist/src/ui/key/keybindingUtils.d.ts +0 -14
- package/dist/src/ui/key/keybindingUtils.js +0 -86
- package/dist/src/ui/key/keybindingUtils.js.map +0 -1
- package/dist/src/ui/layouts/DefaultAppLayout.d.ts +0 -7
- package/dist/src/ui/layouts/DefaultAppLayout.js +0 -30
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +0 -1
- package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +0 -7
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js +0 -18
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +0 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +0 -12
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +0 -47
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -45
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -21
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -21
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -26
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/state/extensions.d.ts +0 -67
- package/dist/src/ui/state/extensions.js +0 -97
- package/dist/src/ui/state/extensions.js.map +0 -1
- package/dist/src/ui/textConstants.d.ts +0 -14
- package/dist/src/ui/textConstants.js +0 -15
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/ansi-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/ansi-dark.js +0 -154
- package/dist/src/ui/themes/builtin/dark/ansi-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.js +0 -140
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/ayu-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/ayu-dark.js +0 -106
- package/dist/src/ui/themes/builtin/dark/ayu-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/default-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/default-dark.js +0 -143
- package/dist/src/ui/themes/builtin/dark/default-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/dracula-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/dracula-dark.js +0 -117
- package/dist/src/ui/themes/builtin/dark/dracula-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.js +0 -140
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/github-dark.js +0 -140
- package/dist/src/ui/themes/builtin/dark/github-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/holiday-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/holiday-dark.js +0 -163
- package/dist/src/ui/themes/builtin/dark/holiday-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.d.ts +0 -11
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.js +0 -306
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/solarized-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js +0 -198
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js +0 -147
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/ansi-light.js +0 -143
- package/dist/src/ui/themes/builtin/light/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/ayu-light.js +0 -132
- package/dist/src/ui/themes/builtin/light/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/default-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/default-light.js +0 -100
- package/dist/src/ui/themes/builtin/light/default-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.js +0 -140
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/github-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/github-light.js +0 -143
- package/dist/src/ui/themes/builtin/light/github-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/googlecode-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/googlecode-light.js +0 -139
- package/dist/src/ui/themes/builtin/light/googlecode-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/solarized-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/solarized-light.js +0 -198
- package/dist/src/ui/themes/builtin/light/solarized-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/xcode-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/xcode-light.js +0 -148
- package/dist/src/ui/themes/builtin/light/xcode-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/no-color.d.ts +0 -7
- package/dist/src/ui/themes/builtin/no-color.js +0 -125
- package/dist/src/ui/themes/builtin/no-color.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -45
- package/dist/src/ui/themes/color-utils.js +0 -106
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -42
- package/dist/src/ui/themes/semantic-tokens.js +0 -77
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -134
- package/dist/src/ui/themes/theme-manager.js +0 -514
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -125
- package/dist/src/ui/themes/theme.js +0 -564
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -422
- package/dist/src/ui/types.js +0 -102
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -33
- package/dist/src/ui/utils/CodeColorizer.js +0 -131
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -26
- package/dist/src/ui/utils/ConsolePatcher.js +0 -57
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -12
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -18
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -15
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -244
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -162
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/antigravityUtils.d.ts +0 -14
- package/dist/src/ui/utils/antigravityUtils.js +0 -41
- package/dist/src/ui/utils/antigravityUtils.js.map +0 -1
- package/dist/src/ui/utils/borderStyles.d.ts +0 -18
- package/dist/src/ui/utils/borderStyles.js +0 -83
- package/dist/src/ui/utils/borderStyles.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -58
- package/dist/src/ui/utils/clipboardUtils.js +0 -485
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -41
- package/dist/src/ui/utils/commandUtils.js +0 -260
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -62
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/confirmingTool.d.ts +0 -15
- package/dist/src/ui/utils/confirmingTool.js +0 -27
- package/dist/src/ui/utils/confirmingTool.js.map +0 -1
- package/dist/src/ui/utils/contextUsage.d.ts +0 -7
- package/dist/src/ui/utils/contextUsage.js +0 -20
- package/dist/src/ui/utils/contextUsage.js.map +0 -1
- package/dist/src/ui/utils/directoryUtils.d.ts +0 -24
- package/dist/src/ui/utils/directoryUtils.js +0 -125
- package/dist/src/ui/utils/directoryUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -29
- package/dist/src/ui/utils/displayUtils.js +0 -43
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/editorUtils.d.ts +0 -19
- package/dist/src/ui/utils/editorUtils.js +0 -151
- package/dist/src/ui/utils/editorUtils.js.map +0 -1
- package/dist/src/ui/utils/fileUtils.d.ts +0 -10
- package/dist/src/ui/utils/fileUtils.js +0 -17
- package/dist/src/ui/utils/fileUtils.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -23
- package/dist/src/ui/utils/formatters.js +0 -127
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/highlight.d.ts +0 -12
- package/dist/src/ui/utils/highlight.js +0 -117
- package/dist/src/ui/utils/highlight.js.map +0 -1
- package/dist/src/ui/utils/historyExportUtils.d.ts +0 -21
- package/dist/src/ui/utils/historyExportUtils.js +0 -59
- package/dist/src/ui/utils/historyExportUtils.js.map +0 -1
- package/dist/src/ui/utils/historyUtils.d.ts +0 -15
- package/dist/src/ui/utils/historyUtils.js +0 -71
- package/dist/src/ui/utils/historyUtils.js.map +0 -1
- package/dist/src/ui/utils/inlineThinkingMode.d.ts +0 -8
- package/dist/src/ui/utils/inlineThinkingMode.js +0 -9
- package/dist/src/ui/utils/inlineThinkingMode.js.map +0 -1
- package/dist/src/ui/utils/input.d.ts +0 -17
- package/dist/src/ui/utils/input.js +0 -51
- package/dist/src/ui/utils/input.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/latexToUnicode.d.ts +0 -21
- package/dist/src/ui/utils/latexToUnicode.js +0 -538
- package/dist/src/ui/utils/latexToUnicode.js.map +0 -1
- package/dist/src/ui/utils/markdownParsingUtils.d.ts +0 -6
- package/dist/src/ui/utils/markdownParsingUtils.js +0 -185
- package/dist/src/ui/utils/markdownParsingUtils.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/memorySnapshot.d.ts +0 -19
- package/dist/src/ui/utils/memorySnapshot.js +0 -28
- package/dist/src/ui/utils/memorySnapshot.js.map +0 -1
- package/dist/src/ui/utils/mouse.d.ts +0 -34
- package/dist/src/ui/utils/mouse.js +0 -183
- package/dist/src/ui/utils/mouse.js.map +0 -1
- package/dist/src/ui/utils/pendingAttentionNotification.d.ts +0 -12
- package/dist/src/ui/utils/pendingAttentionNotification.js +0 -101
- package/dist/src/ui/utils/pendingAttentionNotification.js.map +0 -1
- package/dist/src/ui/utils/rewindFileOps.d.ts +0 -47
- package/dist/src/ui/utils/rewindFileOps.js +0 -191
- package/dist/src/ui/utils/rewindFileOps.js.map +0 -1
- package/dist/src/ui/utils/shortcutsHelp.d.ts +0 -7
- package/dist/src/ui/utils/shortcutsHelp.js +0 -12
- package/dist/src/ui/utils/shortcutsHelp.js.map +0 -1
- package/dist/src/ui/utils/terminalCapabilityManager.d.ts +0 -59
- package/dist/src/ui/utils/terminalCapabilityManager.js +0 -261
- package/dist/src/ui/utils/terminalCapabilityManager.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -58
- package/dist/src/ui/utils/terminalSetup.js +0 -419
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/terminalUtils.d.ts +0 -23
- package/dist/src/ui/utils/terminalUtils.js +0 -38
- package/dist/src/ui/utils/terminalUtils.js.map +0 -1
- package/dist/src/ui/utils/textOutput.d.ts +0 -28
- package/dist/src/ui/utils/textOutput.js +0 -53
- package/dist/src/ui/utils/textOutput.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -68
- package/dist/src/ui/utils/textUtils.js +0 -236
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/toolLayoutUtils.d.ts +0 -49
- package/dist/src/ui/utils/toolLayoutUtils.js +0 -80
- package/dist/src/ui/utils/toolLayoutUtils.js.map +0 -1
- package/dist/src/ui/utils/ui-sizing.d.ts +0 -7
- package/dist/src/ui/utils/ui-sizing.js +0 -13
- package/dist/src/ui/utils/ui-sizing.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -20
- package/dist/src/ui/utils/updateCheck.js +0 -96
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/urlSecurityUtils.d.ts +0 -32
- package/dist/src/ui/utils/urlSecurityUtils.js +0 -71
- package/dist/src/ui/utils/urlSecurityUtils.js.map +0 -1
- package/dist/src/utils/activityLogger.d.ts +0 -99
- package/dist/src/utils/activityLogger.js +0 -796
- package/dist/src/utils/activityLogger.js.map +0 -1
- package/dist/src/utils/agentSettings.d.ts +0 -24
- package/dist/src/utils/agentSettings.js +0 -45
- package/dist/src/utils/agentSettings.js.map +0 -1
- package/dist/src/utils/agentUtils.d.ts +0 -15
- package/dist/src/utils/agentUtils.js +0 -50
- package/dist/src/utils/agentUtils.js.map +0 -1
- package/dist/src/utils/autoMemory.d.ts +0 -7
- package/dist/src/utils/autoMemory.js +0 -15
- package/dist/src/utils/autoMemory.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -25
- package/dist/src/utils/cleanup.js +0 -171
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/commands.d.ts +0 -20
- package/dist/src/utils/commands.js +0 -68
- package/dist/src/utils/commands.js.map +0 -1
- package/dist/src/utils/commentJson.d.ts +0 -9
- package/dist/src/utils/commentJson.js +0 -137
- package/dist/src/utils/commentJson.js.map +0 -1
- package/dist/src/utils/deepMerge.d.ts +0 -9
- package/dist/src/utils/deepMerge.js +0 -65
- package/dist/src/utils/deepMerge.js.map +0 -1
- package/dist/src/utils/devtoolsService.d.ts +0 -30
- package/dist/src/utils/devtoolsService.js +0 -186
- package/dist/src/utils/devtoolsService.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -29
- package/dist/src/utils/dialogScopeUtils.js +0 -50
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/envVarResolver.d.ts +0 -42
- package/dist/src/utils/envVarResolver.js +0 -121
- package/dist/src/utils/envVarResolver.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -32
- package/dist/src/utils/errors.js +0 -180
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -34
- package/dist/src/utils/events.js +0 -23
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/featureToggleUtils.d.ts +0 -55
- package/dist/src/utils/featureToggleUtils.js +0 -95
- package/dist/src/utils/featureToggleUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -110
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -19
- package/dist/src/utils/handleAutoUpdate.js +0 -179
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/hookSettings.d.ts +0 -30
- package/dist/src/utils/hookSettings.js +0 -114
- package/dist/src/utils/hookSettings.js.map +0 -1
- package/dist/src/utils/hookUtils.d.ts +0 -12
- package/dist/src/utils/hookUtils.js +0 -51
- package/dist/src/utils/hookUtils.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -26
- package/dist/src/utils/installationInfo.js +0 -187
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/jsonoutput.d.ts +0 -7
- package/dist/src/utils/jsonoutput.js +0 -42
- package/dist/src/utils/jsonoutput.js.map +0 -1
- package/dist/src/utils/logCleanup.d.ts +0 -12
- package/dist/src/utils/logCleanup.js +0 -58
- package/dist/src/utils/logCleanup.js.map +0 -1
- package/dist/src/utils/math.d.ts +0 -13
- package/dist/src/utils/math.js +0 -14
- package/dist/src/utils/math.js.map +0 -1
- package/dist/src/utils/persistentState.d.ts +0 -24
- package/dist/src/utils/persistentState.js +0 -66
- package/dist/src/utils/persistentState.js.map +0 -1
- package/dist/src/utils/processUtils.d.ts +0 -41
- package/dist/src/utils/processUtils.js +0 -99
- package/dist/src/utils/processUtils.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -87
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/relaunch.d.ts +0 -8
- package/dist/src/utils/relaunch.js +0 -61
- package/dist/src/utils/relaunch.js.map +0 -1
- package/dist/src/utils/resize-observer-polyfill.d.ts +0 -2
- package/dist/src/utils/resize-observer-polyfill.js +0 -7
- package/dist/src/utils/resize-observer-polyfill.js.map +0 -1
- package/dist/src/utils/resolvePath.d.ts +0 -6
- package/dist/src/utils/resolvePath.js +0 -21
- package/dist/src/utils/resolvePath.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -927
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/sandboxUtils.d.ts +0 -14
- package/dist/src/utils/sandboxUtils.js +0 -126
- package/dist/src/utils/sandboxUtils.js.map +0 -1
- package/dist/src/utils/sessionCleanup.d.ts +0 -41
- package/dist/src/utils/sessionCleanup.js +0 -481
- package/dist/src/utils/sessionCleanup.js.map +0 -1
- package/dist/src/utils/sessionUtils.d.ts +0 -174
- package/dist/src/utils/sessionUtils.js +0 -465
- package/dist/src/utils/sessionUtils.js.map +0 -1
- package/dist/src/utils/sessions.d.ts +0 -8
- package/dist/src/utils/sessions.js +0 -67
- package/dist/src/utils/sessions.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -78
- package/dist/src/utils/settingsUtils.js +0 -284
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/skillSettings.d.ts +0 -23
- package/dist/src/utils/skillSettings.js +0 -52
- package/dist/src/utils/skillSettings.js.map +0 -1
- package/dist/src/utils/skillUtils.d.ts +0 -37
- package/dist/src/utils/skillUtils.js +0 -232
- package/dist/src/utils/skillUtils.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -8
- package/dist/src/utils/spawnWrapper.js +0 -8
- package/dist/src/utils/spawnWrapper.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/terminalNotifications.d.ts +0 -32
- package/dist/src/utils/terminalNotifications.js +0 -131
- package/dist/src/utils/terminalNotifications.js.map +0 -1
- package/dist/src/utils/terminalTheme.d.ts +0 -15
- package/dist/src/utils/terminalTheme.js +0 -50
- package/dist/src/utils/terminalTheme.js.map +0 -1
- package/dist/src/utils/tierUtils.d.ts +0 -12
- package/dist/src/utils/tierUtils.js +0 -15
- package/dist/src/utils/tierUtils.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.d.ts +0 -12
- package/dist/src/utils/updateEventEmitter.js +0 -12
- package/dist/src/utils/updateEventEmitter.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -10
- package/dist/src/utils/userStartupWarnings.js +0 -103
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/windowTitle.d.ts +0 -22
- package/dist/src/utils/windowTitle.js +0 -84
- package/dist/src/utils/windowTitle.js.map +0 -1
- package/dist/src/utils/worktreeSetup.d.ts +0 -14
- package/dist/src/utils/worktreeSetup.js +0 -32
- package/dist/src/utils/worktreeSetup.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -8
- package/dist/src/validateNonInterActiveAuth.js +0 -45
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{src/commands → commands}/extensions/examples/custom-commands/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/exclude-tools/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/hooks/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/hooks/hooks/hooks.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/mcp-server/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/mcp-server/package.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/policies/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/skills/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/themes-example/gemini-extension.json +0 -0
- /package/dist/{src/config/extension-manager-themes.spec.d.ts → services/types.js} +0 -0
|
@@ -0,0 +1,2100 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2026 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { useMemo, useState, useCallback, useEffect, useRef, useLayoutEffect, } from 'react';
|
|
8
|
+
import { useApp, useStdout, useStdin } from 'ink';
|
|
9
|
+
;
|
|
10
|
+
import ResizeObserver from 'resize-observer-polyfill';
|
|
11
|
+
import { App } from './App.js';
|
|
12
|
+
import { AppContext } from './contexts/AppContext.js';
|
|
13
|
+
import { UIStateContext } from './contexts/UIStateContext.js';
|
|
14
|
+
import { QuotaContext } from './contexts/QuotaContext.js';
|
|
15
|
+
import { UIActionsContext, } from './contexts/UIActionsContext.js';
|
|
16
|
+
import { ConfigContext } from './contexts/ConfigContext.js';
|
|
17
|
+
import { AuthState, MessageType, StreamingState, } from './types.js';
|
|
18
|
+
import { checkPermissions } from './hooks/atCommandProcessor.js';
|
|
19
|
+
import { ToolActionsProvider } from './contexts/ToolActionsContext.js';
|
|
20
|
+
import { MouseProvider } from './contexts/MouseContext.js';
|
|
21
|
+
import { ScrollProvider } from './contexts/ScrollProvider.js';
|
|
22
|
+
import { IdeClient, ideContextStore, getErrorMessage, getAllGeminiMdFilenames, AuthType, clearCachedCredentialFile, recordExitFail, ShellExecutionService, saveApiKey, debugLogger, isValidEditorType, coreEvents, CoreEvent, flattenMemory, writeToStdout, disableMouseEvents, enterAlternateScreen, enableMouseEvents, disableLineWrapping, shouldEnterAlternateScreen, startupProfiler, SessionStartSource, SessionEndReason, generateSummary, ChangeAuthRequestedError, ProjectIdRequiredError, buildUserSteeringHintPrompt, logBillingEvent, ApiKeyUpdatedEvent, LegacyAgentProtocol, } from '@google/gemini-cli-core';
|
|
23
|
+
import { validateAuthMethod } from '../config/auth.js';
|
|
24
|
+
import process from 'node:process';
|
|
25
|
+
import { useHistory } from './hooks/useHistoryManager.js';
|
|
26
|
+
import { useMemoryMonitor } from './hooks/useMemoryMonitor.js';
|
|
27
|
+
import { useThemeCommand } from './hooks/useThemeCommand.js';
|
|
28
|
+
import { useAuthCommand } from './auth/useAuth.js';
|
|
29
|
+
import { useQuotaAndFallback } from './hooks/useQuotaAndFallback.js';
|
|
30
|
+
import { useEditorSettings } from './hooks/useEditorSettings.js';
|
|
31
|
+
import { useSettingsCommand } from './hooks/useSettingsCommand.js';
|
|
32
|
+
import { useModelCommand } from './hooks/useModelCommand.js';
|
|
33
|
+
import { useVoiceModelCommand } from './hooks/useVoiceModelCommand.js';
|
|
34
|
+
import { useSlashCommandProcessor } from './hooks/slashCommandProcessor.js';
|
|
35
|
+
import { useVimMode } from './contexts/VimModeContext.js';
|
|
36
|
+
import { useOverflowActions, useOverflowState, } from './contexts/OverflowContext.js';
|
|
37
|
+
import { useErrorCount } from './hooks/useConsoleMessages.js';
|
|
38
|
+
import { useTerminalSize } from './hooks/useTerminalSize.js';
|
|
39
|
+
import { calculatePromptWidths } from './components/InputPrompt.js';
|
|
40
|
+
import { calculateMainAreaWidth } from './utils/ui-sizing.js';
|
|
41
|
+
import ansiEscapes from 'ansi-escapes';
|
|
42
|
+
import { basename } from 'node:path';
|
|
43
|
+
import { computeTerminalTitle } from '../utils/windowTitle.js';
|
|
44
|
+
import { useTextBuffer } from './components/shared/text-buffer.js';
|
|
45
|
+
import { useLogger } from './hooks/useLogger.js';
|
|
46
|
+
import { useGeminiStream } from './hooks/useGeminiStream.js';
|
|
47
|
+
import { useAgentStream } from './hooks/useAgentStream.js';
|
|
48
|
+
import { useVim } from './hooks/vim.js';
|
|
49
|
+
import { SettingScope } from '../config/settings.js';
|
|
50
|
+
import { startAutoMemoryIfEnabled } from '../utils/autoMemory.js';
|
|
51
|
+
import { useFocus } from './hooks/useFocus.js';
|
|
52
|
+
import { useKeypress } from './hooks/useKeypress.js';
|
|
53
|
+
import { KeypressPriority } from './contexts/KeypressContext.js';
|
|
54
|
+
import { Command } from './key/keyMatchers.js';
|
|
55
|
+
import { useLoadingIndicator } from './hooks/useLoadingIndicator.js';
|
|
56
|
+
import { useShellInactivityStatus } from './hooks/useShellInactivityStatus.js';
|
|
57
|
+
import { useFolderTrust } from './hooks/useFolderTrust.js';
|
|
58
|
+
import { useIdeTrustListener } from './hooks/useIdeTrustListener.js';
|
|
59
|
+
import { appEvents, AppEvent, TransientMessageType } from '../utils/events.js';
|
|
60
|
+
import { setUpdateHandler } from '../utils/handleAutoUpdate.js';
|
|
61
|
+
import { registerCleanup, removeCleanup, runExitCleanup, } from '../utils/cleanup.js';
|
|
62
|
+
import { relaunchApp } from '../utils/processUtils.js';
|
|
63
|
+
import { useMessageQueue } from './hooks/useMessageQueue.js';
|
|
64
|
+
import { useMcpStatus } from './hooks/useMcpStatus.js';
|
|
65
|
+
import { useApprovalModeIndicator } from './hooks/useApprovalModeIndicator.js';
|
|
66
|
+
import { useSessionStats } from './contexts/SessionContext.js';
|
|
67
|
+
import { useGitBranchName } from './hooks/useGitBranchName.js';
|
|
68
|
+
import { useConfirmUpdateRequests, useExtensionUpdates, } from './hooks/useExtensionUpdates.js';
|
|
69
|
+
import { ShellFocusContext } from './contexts/ShellFocusContext.js';
|
|
70
|
+
import { requestConsentInteractive } from '../config/extensions/consent.js';
|
|
71
|
+
import { useSessionBrowser } from './hooks/useSessionBrowser.js';
|
|
72
|
+
import { useSessionResume } from './hooks/useSessionResume.js';
|
|
73
|
+
import { useIncludeDirsTrust } from './hooks/useIncludeDirsTrust.js';
|
|
74
|
+
import { isWorkspaceTrusted } from '../config/trustedFolders.js';
|
|
75
|
+
import { useSettings } from './contexts/SettingsContext.js';
|
|
76
|
+
import { terminalCapabilityManager } from './utils/terminalCapabilityManager.js';
|
|
77
|
+
import { useInputHistoryStore } from './hooks/useInputHistoryStore.js';
|
|
78
|
+
import { useBanner } from './hooks/useBanner.js';
|
|
79
|
+
import { useTerminalSetupPrompt } from './utils/terminalSetup.js';
|
|
80
|
+
import { useHookDisplayState } from './hooks/useHookDisplayState.js';
|
|
81
|
+
import { useBackgroundTaskManager } from './hooks/useBackgroundTaskManager.js';
|
|
82
|
+
import { WARNING_PROMPT_DURATION_MS, QUEUE_ERROR_DISPLAY_DURATION_MS, EXPAND_HINT_DURATION_MS, } from './constants.js';
|
|
83
|
+
import { NewAgentsChoice } from './components/NewAgentsNotification.js';
|
|
84
|
+
import { isSlashCommand } from './utils/commandUtils.js';
|
|
85
|
+
import { parseSlashCommand } from '../utils/commands.js';
|
|
86
|
+
import { useTerminalTheme } from './hooks/useTerminalTheme.js';
|
|
87
|
+
import { useTimedMessage } from './hooks/useTimedMessage.js';
|
|
88
|
+
import { useIsHelpDismissKey } from './utils/shortcutsHelp.js';
|
|
89
|
+
import { useSuspend } from './hooks/useSuspend.js';
|
|
90
|
+
import { useRunEventNotifications } from './hooks/useRunEventNotifications.js';
|
|
91
|
+
import { isNotificationsEnabled, getNotificationMethod, } from '../utils/terminalNotifications.js';
|
|
92
|
+
import { getLastTurnToolCallIds, isToolExecuting, isToolAwaitingConfirmation, getAllToolCalls, } from './utils/historyUtils.js';
|
|
93
|
+
import { useRepeatedKeyPress } from './hooks/useRepeatedKeyPress.js';
|
|
94
|
+
import { useVisibilityToggle, APPROVAL_MODE_REVEAL_DURATION_MS, } from './hooks/useVisibilityToggle.js';
|
|
95
|
+
import { useKeyMatchers } from './hooks/useKeyMatchers.js';
|
|
96
|
+
import { InputContext } from './contexts/InputContext.js';
|
|
97
|
+
/**
|
|
98
|
+
* The fraction of the terminal width to allocate to the shell.
|
|
99
|
+
* This provides horizontal padding.
|
|
100
|
+
*/
|
|
101
|
+
const SHELL_WIDTH_FRACTION = 0.89;
|
|
102
|
+
/**
|
|
103
|
+
* The number of lines to subtract from the available terminal height
|
|
104
|
+
* for the shell. This provides vertical padding and space for other UI elements.
|
|
105
|
+
*/
|
|
106
|
+
const SHELL_HEIGHT_PADDING = 10;
|
|
107
|
+
export const AppContainer = (props) => {
|
|
108
|
+
const isHelpDismissKey = useIsHelpDismissKey();
|
|
109
|
+
const keyMatchers = useKeyMatchers();
|
|
110
|
+
const { config, initializationResult, resumedSessionData } = props;
|
|
111
|
+
const settings = useSettings();
|
|
112
|
+
const { reset } = useOverflowActions();
|
|
113
|
+
const notificationsEnabled = isNotificationsEnabled(settings);
|
|
114
|
+
const notificationMethod = getNotificationMethod(settings);
|
|
115
|
+
const recordingFilenameRef = useRef(null);
|
|
116
|
+
// Stubs for Ink v4 compatibility (recording/dump features removed in ink v4)
|
|
117
|
+
const dumpCurrentFrame = () => { };
|
|
118
|
+
const startRecording = () => { };
|
|
119
|
+
const stopRecording = () => { };
|
|
120
|
+
const historyManager = useHistory({
|
|
121
|
+
chatRecordingService: config.getGeminiClient()?.getChatRecordingService(),
|
|
122
|
+
});
|
|
123
|
+
useMemoryMonitor(historyManager);
|
|
124
|
+
const isAlternateBuffer = config.getUseAlternateBuffer();
|
|
125
|
+
const [mouseMode, setMouseMode] = useState(() => config.getUseAlternateBuffer());
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
if (mouseMode) {
|
|
128
|
+
enableMouseEvents();
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
disableMouseEvents();
|
|
132
|
+
}
|
|
133
|
+
}, [mouseMode]);
|
|
134
|
+
const [corgiMode, setCorgiMode] = useState(false);
|
|
135
|
+
const [debugMessage, setDebugMessage] = useState('');
|
|
136
|
+
const [quittingMessages, setQuittingMessages] = useState(null);
|
|
137
|
+
const [showPrivacyNotice, setShowPrivacyNotice] = useState(false);
|
|
138
|
+
const [themeError, setThemeError] = useState(initializationResult.themeError);
|
|
139
|
+
const [isProcessing, setIsProcessing] = useState(false);
|
|
140
|
+
const [embeddedShellFocused, setEmbeddedShellFocused] = useState(false);
|
|
141
|
+
const [showDebugProfiler, setShowDebugProfiler] = useState(false);
|
|
142
|
+
const [customDialog, setCustomDialog] = useState(null);
|
|
143
|
+
const [copyModeEnabled, setCopyModeEnabled] = useState(false);
|
|
144
|
+
const [pendingRestorePrompt, setPendingRestorePrompt] = useState(false);
|
|
145
|
+
const toggleBackgroundTasksRef = useRef(() => { });
|
|
146
|
+
const isBackgroundTaskVisibleRef = useRef(false);
|
|
147
|
+
const backgroundTasksRef = useRef(new Map());
|
|
148
|
+
const [adminSettingsChanged, setAdminSettingsChanged] = useState(false);
|
|
149
|
+
const [expandedTools, setExpandedTools] = useState(new Set());
|
|
150
|
+
const toggleExpansion = useCallback((callId) => {
|
|
151
|
+
setExpandedTools((prev) => {
|
|
152
|
+
const next = new Set(prev);
|
|
153
|
+
if (next.has(callId)) {
|
|
154
|
+
next.delete(callId);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
next.add(callId);
|
|
158
|
+
}
|
|
159
|
+
return next;
|
|
160
|
+
});
|
|
161
|
+
}, []);
|
|
162
|
+
const toggleAllExpansion = useCallback((callIds) => {
|
|
163
|
+
setExpandedTools((prev) => {
|
|
164
|
+
const next = new Set(prev);
|
|
165
|
+
const anyCollapsed = callIds.some((id) => !next.has(id));
|
|
166
|
+
if (anyCollapsed) {
|
|
167
|
+
callIds.forEach((id) => next.add(id));
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
callIds.forEach((id) => next.delete(id));
|
|
171
|
+
}
|
|
172
|
+
return next;
|
|
173
|
+
});
|
|
174
|
+
}, []);
|
|
175
|
+
const isExpanded = useCallback((callId) => expandedTools.has(callId), [expandedTools]);
|
|
176
|
+
const [shellModeActive, setShellModeActive] = useState(false);
|
|
177
|
+
const [isVoiceModeEnabled, setVoiceModeEnabled] = useState(false);
|
|
178
|
+
const [modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError] = useState(false);
|
|
179
|
+
const [historyRemountKey, setHistoryRemountKey] = useState(0);
|
|
180
|
+
const [settingsNonce, setSettingsNonce] = useState(0);
|
|
181
|
+
const activeHooks = useHookDisplayState();
|
|
182
|
+
const [updateInfo, setUpdateInfo] = useState(null);
|
|
183
|
+
const [isTrustedFolder, setIsTrustedFolder] = useState(() => isWorkspaceTrusted(settings.merged).isTrusted);
|
|
184
|
+
const [queueErrorMessage, setQueueErrorMessage] = useTimedMessage(QUEUE_ERROR_DISPLAY_DURATION_MS);
|
|
185
|
+
const [newAgents, setNewAgents] = useState(null);
|
|
186
|
+
const [constrainHeight, setConstrainHeight] = useState(true);
|
|
187
|
+
const [expandHintTrigger, triggerExpandHint] = useTimedMessage(EXPAND_HINT_DURATION_MS);
|
|
188
|
+
const showIsExpandableHint = Boolean(expandHintTrigger);
|
|
189
|
+
const overflowState = useOverflowState();
|
|
190
|
+
const overflowingIdsSize = overflowState?.overflowingIds.size ?? 0;
|
|
191
|
+
const hasOverflowState = overflowingIdsSize > 0 || !constrainHeight;
|
|
192
|
+
/**
|
|
193
|
+
* Manages the visibility and x-second timer for the expansion hint.
|
|
194
|
+
*
|
|
195
|
+
* This effect triggers the timer countdown whenever an overflow is detected
|
|
196
|
+
* or the user manually toggles the expansion state with Ctrl+O.
|
|
197
|
+
* By depending on overflowingIdsSize, the timer resets when *new* views
|
|
198
|
+
* overflow, but avoids infinitely resetting during single-view streaming.
|
|
199
|
+
*
|
|
200
|
+
* In alternate buffer mode, we don't trigger the hint automatically on overflow
|
|
201
|
+
* to avoid noise, but the user can still trigger it manually with Ctrl+O.
|
|
202
|
+
*/
|
|
203
|
+
useEffect(() => {
|
|
204
|
+
if (hasOverflowState) {
|
|
205
|
+
triggerExpandHint(true);
|
|
206
|
+
}
|
|
207
|
+
}, [hasOverflowState, overflowingIdsSize, triggerExpandHint]);
|
|
208
|
+
const [defaultBannerText, setDefaultBannerText] = useState('');
|
|
209
|
+
const [warningBannerText, setWarningBannerText] = useState('');
|
|
210
|
+
const [bannerVisible, setBannerVisible] = useState(true);
|
|
211
|
+
const bannerData = useMemo(() => ({
|
|
212
|
+
defaultText: defaultBannerText,
|
|
213
|
+
warningText: warningBannerText,
|
|
214
|
+
}), [defaultBannerText, warningBannerText]);
|
|
215
|
+
const { bannerText } = useBanner(bannerData);
|
|
216
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
|
217
|
+
const extensionManager = config.getExtensionLoader();
|
|
218
|
+
// We are in the interactive CLI, update how we request consent and settings.
|
|
219
|
+
extensionManager.setRequestConsent((description) => requestConsentInteractive(description, addConfirmUpdateExtensionRequest));
|
|
220
|
+
extensionManager.setRequestSetting();
|
|
221
|
+
const { addConfirmUpdateExtensionRequest, confirmUpdateExtensionRequests } = useConfirmUpdateRequests();
|
|
222
|
+
const { extensionsUpdateState, extensionsUpdateStateInternal, dispatchExtensionStateUpdate, } = useExtensionUpdates(extensionManager, historyManager.addItem, config.getEnableExtensionReloading());
|
|
223
|
+
const [isPermissionsDialogOpen, setPermissionsDialogOpen] = useState(false);
|
|
224
|
+
const [permissionsDialogProps, setPermissionsDialogProps] = useState(null);
|
|
225
|
+
const openPermissionsDialog = useCallback((props) => {
|
|
226
|
+
setPermissionsDialogOpen(true);
|
|
227
|
+
setPermissionsDialogProps(props ?? null);
|
|
228
|
+
}, []);
|
|
229
|
+
const closePermissionsDialog = useCallback(() => {
|
|
230
|
+
setPermissionsDialogOpen(false);
|
|
231
|
+
setPermissionsDialogProps(null);
|
|
232
|
+
}, []);
|
|
233
|
+
const [isAgentConfigDialogOpen, setIsAgentConfigDialogOpen] = useState(false);
|
|
234
|
+
const [selectedAgentName, setSelectedAgentName] = useState();
|
|
235
|
+
const [selectedAgentDisplayName, setSelectedAgentDisplayName] = useState();
|
|
236
|
+
const [selectedAgentDefinition, setSelectedAgentDefinition] = useState();
|
|
237
|
+
const openAgentConfigDialog = useCallback((name, displayName, definition) => {
|
|
238
|
+
setSelectedAgentName(name);
|
|
239
|
+
setSelectedAgentDisplayName(displayName);
|
|
240
|
+
setSelectedAgentDefinition(definition);
|
|
241
|
+
setIsAgentConfigDialogOpen(true);
|
|
242
|
+
}, []);
|
|
243
|
+
const closeAgentConfigDialog = useCallback(() => {
|
|
244
|
+
setIsAgentConfigDialogOpen(false);
|
|
245
|
+
setSelectedAgentName(undefined);
|
|
246
|
+
setSelectedAgentDisplayName(undefined);
|
|
247
|
+
setSelectedAgentDefinition(undefined);
|
|
248
|
+
}, []);
|
|
249
|
+
const toggleDebugProfiler = useCallback(() => setShowDebugProfiler((prev) => !prev), []);
|
|
250
|
+
const [currentModel, setCurrentModel] = useState(config.getModel());
|
|
251
|
+
const [userTier, setUserTier] = useState(undefined);
|
|
252
|
+
const [quotaStats, setQuotaStats] = useState(() => {
|
|
253
|
+
const remaining = config.getQuotaRemaining();
|
|
254
|
+
const limit = config.getQuotaLimit();
|
|
255
|
+
const resetTime = config.getQuotaResetTime();
|
|
256
|
+
return remaining !== undefined ||
|
|
257
|
+
limit !== undefined ||
|
|
258
|
+
resetTime !== undefined
|
|
259
|
+
? { remaining, limit, resetTime }
|
|
260
|
+
: undefined;
|
|
261
|
+
});
|
|
262
|
+
const [paidTier, setPaidTier] = useState(undefined);
|
|
263
|
+
const [isConfigInitialized, setConfigInitialized] = useState(false);
|
|
264
|
+
const logger = useLogger(config);
|
|
265
|
+
const { inputHistory, addInput, initializeFromLogger } = useInputHistoryStore();
|
|
266
|
+
// Terminal and layout hooks
|
|
267
|
+
const { columns: terminalWidth, rows: terminalHeight } = useTerminalSize();
|
|
268
|
+
const { stdin, setRawMode } = useStdin();
|
|
269
|
+
const { stdout } = useStdout();
|
|
270
|
+
const app = useApp();
|
|
271
|
+
// Additional hooks moved from App.tsx
|
|
272
|
+
const { stats: sessionStats } = useSessionStats();
|
|
273
|
+
const branchName = useGitBranchName(config.getTargetDir());
|
|
274
|
+
// Layout measurements
|
|
275
|
+
// For performance profiling only
|
|
276
|
+
const rootUiRef = useRef(null);
|
|
277
|
+
const lastTitleRef = useRef(null);
|
|
278
|
+
const staticExtraHeight = 3;
|
|
279
|
+
useEffect(() => {
|
|
280
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
281
|
+
(async () => {
|
|
282
|
+
// Note: the program will not work if this fails so let errors be
|
|
283
|
+
// handled by the global catch.
|
|
284
|
+
if (!config.isInitialized()) {
|
|
285
|
+
await config.initialize();
|
|
286
|
+
}
|
|
287
|
+
setConfigInitialized(true);
|
|
288
|
+
startupProfiler.flush(config);
|
|
289
|
+
startAutoMemoryIfEnabled(config);
|
|
290
|
+
const sessionStartSource = resumedSessionData
|
|
291
|
+
? SessionStartSource.Resume
|
|
292
|
+
: SessionStartSource.Startup;
|
|
293
|
+
const result = await config
|
|
294
|
+
.getHookSystem()
|
|
295
|
+
?.fireSessionStartEvent(sessionStartSource);
|
|
296
|
+
if (result) {
|
|
297
|
+
const additionalContext = result.getAdditionalContext();
|
|
298
|
+
const geminiClient = config.getGeminiClient();
|
|
299
|
+
if (additionalContext && geminiClient) {
|
|
300
|
+
await geminiClient.addHistory({
|
|
301
|
+
role: 'user',
|
|
302
|
+
parts: [
|
|
303
|
+
{ text: `<hook_context>${additionalContext}</hook_context>` },
|
|
304
|
+
],
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
// Fire-and-forget: generate summary for previous session in background
|
|
309
|
+
generateSummary(config).catch((e) => {
|
|
310
|
+
debugLogger.warn('Background summary generation failed:', e);
|
|
311
|
+
});
|
|
312
|
+
})();
|
|
313
|
+
const cleanupFn = async () => {
|
|
314
|
+
// Turn off mouse scroll.
|
|
315
|
+
disableMouseEvents();
|
|
316
|
+
// Kill all background shells
|
|
317
|
+
await Promise.all(Array.from(backgroundTasksRef.current.keys()).map((pid) => ShellExecutionService.kill(pid)));
|
|
318
|
+
const ideClient = await IdeClient.getInstance();
|
|
319
|
+
await ideClient.disconnect();
|
|
320
|
+
// Fire SessionEnd hook on cleanup (only if hooks are enabled)
|
|
321
|
+
await config?.getHookSystem()?.fireSessionEndEvent(SessionEndReason.Exit);
|
|
322
|
+
};
|
|
323
|
+
registerCleanup(cleanupFn);
|
|
324
|
+
return () => {
|
|
325
|
+
removeCleanup(cleanupFn);
|
|
326
|
+
cleanupFn().catch((e) => debugLogger.error('Error during cleanup:', e));
|
|
327
|
+
};
|
|
328
|
+
}, [config, resumedSessionData]);
|
|
329
|
+
useEffect(() => setUpdateHandler(historyManager.addItem, setUpdateInfo), [historyManager.addItem]);
|
|
330
|
+
// Subscribe to fallback mode and model changes from core
|
|
331
|
+
useEffect(() => {
|
|
332
|
+
const handleModelChanged = () => {
|
|
333
|
+
setCurrentModel(config.getModel());
|
|
334
|
+
};
|
|
335
|
+
const handleQuotaChanged = (payload) => {
|
|
336
|
+
setQuotaStats({
|
|
337
|
+
remaining: payload.remaining,
|
|
338
|
+
limit: payload.limit,
|
|
339
|
+
resetTime: payload.resetTime,
|
|
340
|
+
});
|
|
341
|
+
};
|
|
342
|
+
coreEvents.on(CoreEvent.ModelChanged, handleModelChanged);
|
|
343
|
+
coreEvents.on(CoreEvent.QuotaChanged, handleQuotaChanged);
|
|
344
|
+
return () => {
|
|
345
|
+
coreEvents.off(CoreEvent.ModelChanged, handleModelChanged);
|
|
346
|
+
coreEvents.off(CoreEvent.QuotaChanged, handleQuotaChanged);
|
|
347
|
+
};
|
|
348
|
+
}, [config]);
|
|
349
|
+
useEffect(() => {
|
|
350
|
+
const handleSettingsChanged = () => {
|
|
351
|
+
setSettingsNonce((prev) => prev + 1);
|
|
352
|
+
};
|
|
353
|
+
const handleAdminSettingsChanged = () => {
|
|
354
|
+
setAdminSettingsChanged(true);
|
|
355
|
+
};
|
|
356
|
+
const handleAgentsDiscovered = (payload) => {
|
|
357
|
+
setNewAgents(payload.agents);
|
|
358
|
+
};
|
|
359
|
+
coreEvents.on(CoreEvent.SettingsChanged, handleSettingsChanged);
|
|
360
|
+
coreEvents.on(CoreEvent.AdminSettingsChanged, handleAdminSettingsChanged);
|
|
361
|
+
coreEvents.on(CoreEvent.AgentsDiscovered, handleAgentsDiscovered);
|
|
362
|
+
return () => {
|
|
363
|
+
coreEvents.off(CoreEvent.SettingsChanged, handleSettingsChanged);
|
|
364
|
+
coreEvents.off(CoreEvent.AdminSettingsChanged, handleAdminSettingsChanged);
|
|
365
|
+
coreEvents.off(CoreEvent.AgentsDiscovered, handleAgentsDiscovered);
|
|
366
|
+
};
|
|
367
|
+
}, [settings]);
|
|
368
|
+
const { errorCount, clearErrorCount } = useErrorCount();
|
|
369
|
+
const mainAreaWidth = calculateMainAreaWidth(terminalWidth, config);
|
|
370
|
+
// Derive widths for InputPrompt using shared helper
|
|
371
|
+
const { inputWidth, suggestionsWidth } = useMemo(() => {
|
|
372
|
+
const { inputWidth, suggestionsWidth } = calculatePromptWidths(mainAreaWidth);
|
|
373
|
+
return { inputWidth, suggestionsWidth };
|
|
374
|
+
}, [mainAreaWidth]);
|
|
375
|
+
const staticAreaMaxItemHeight = Math.max(terminalHeight * 4, 100);
|
|
376
|
+
const getPreferredEditor = useCallback(() => {
|
|
377
|
+
const val = settings.merged.general.preferredEditor;
|
|
378
|
+
return isValidEditorType(val) ? val : undefined;
|
|
379
|
+
}, [settings.merged.general.preferredEditor]);
|
|
380
|
+
const buffer = useTextBuffer({
|
|
381
|
+
initialText: '',
|
|
382
|
+
viewport: { height: 10, width: inputWidth },
|
|
383
|
+
stdin,
|
|
384
|
+
setRawMode,
|
|
385
|
+
escapePastedPaths: true,
|
|
386
|
+
shellModeActive,
|
|
387
|
+
getPreferredEditor,
|
|
388
|
+
});
|
|
389
|
+
const bufferRef = useRef(buffer);
|
|
390
|
+
useEffect(() => {
|
|
391
|
+
bufferRef.current = buffer;
|
|
392
|
+
}, [buffer]);
|
|
393
|
+
const stableSetText = useCallback((text) => {
|
|
394
|
+
bufferRef.current.setText(text);
|
|
395
|
+
}, []);
|
|
396
|
+
// Initialize input history from logger (past sessions)
|
|
397
|
+
useEffect(() => {
|
|
398
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
399
|
+
initializeFromLogger(logger);
|
|
400
|
+
}, [logger, initializeFromLogger]);
|
|
401
|
+
// One-time prompt to suggest running /terminal-setup when it would help.
|
|
402
|
+
useTerminalSetupPrompt({
|
|
403
|
+
addConfirmUpdateExtensionRequest,
|
|
404
|
+
addItem: historyManager.addItem,
|
|
405
|
+
});
|
|
406
|
+
const refreshStatic = useCallback(() => {
|
|
407
|
+
if (!isAlternateBuffer && !config.getUseTerminalBuffer()) {
|
|
408
|
+
stdout.write(ansiEscapes.clearTerminal);
|
|
409
|
+
setHistoryRemountKey((prev) => prev + 1);
|
|
410
|
+
}
|
|
411
|
+
}, [setHistoryRemountKey, isAlternateBuffer, stdout, config]);
|
|
412
|
+
const shouldUseAlternateScreen = shouldEnterAlternateScreen(isAlternateBuffer, config.getScreenReader());
|
|
413
|
+
const handleEditorClose = useCallback(() => {
|
|
414
|
+
if (shouldUseAlternateScreen) {
|
|
415
|
+
// The editor may have exited alternate buffer mode so we need to
|
|
416
|
+
// enter it again to be safe.
|
|
417
|
+
enterAlternateScreen();
|
|
418
|
+
enableMouseEvents();
|
|
419
|
+
disableLineWrapping();
|
|
420
|
+
app.rerender();
|
|
421
|
+
}
|
|
422
|
+
terminalCapabilityManager.enableSupportedModes();
|
|
423
|
+
refreshStatic();
|
|
424
|
+
}, [refreshStatic, shouldUseAlternateScreen, app]);
|
|
425
|
+
const [editorError, setEditorError] = useState(null);
|
|
426
|
+
const { isEditorDialogOpen, openEditorDialog, handleEditorSelect, exitEditorDialog, } = useEditorSettings(settings, setEditorError, historyManager.addItem);
|
|
427
|
+
useEffect(() => {
|
|
428
|
+
coreEvents.on(CoreEvent.ExternalEditorClosed, handleEditorClose);
|
|
429
|
+
coreEvents.on(CoreEvent.RequestEditorSelection, openEditorDialog);
|
|
430
|
+
return () => {
|
|
431
|
+
coreEvents.off(CoreEvent.ExternalEditorClosed, handleEditorClose);
|
|
432
|
+
coreEvents.off(CoreEvent.RequestEditorSelection, openEditorDialog);
|
|
433
|
+
};
|
|
434
|
+
}, [handleEditorClose, openEditorDialog]);
|
|
435
|
+
useEffect(() => {
|
|
436
|
+
if (!(settings.merged.ui.hideBanner || config.getScreenReader()) &&
|
|
437
|
+
bannerVisible &&
|
|
438
|
+
bannerText) {
|
|
439
|
+
// The header should show a banner but the Header is rendered in static
|
|
440
|
+
// so we must trigger a static refresh for it to be visible.
|
|
441
|
+
refreshStatic();
|
|
442
|
+
}
|
|
443
|
+
}, [bannerVisible, bannerText, settings, config, refreshStatic]);
|
|
444
|
+
const { isSettingsDialogOpen, openSettingsDialog, closeSettingsDialog } = useSettingsCommand();
|
|
445
|
+
const { isThemeDialogOpen, openThemeDialog, closeThemeDialog, handleThemeSelect, handleThemeHighlight, } = useThemeCommand(settings, setThemeError, historyManager.addItem, initializationResult.themeError, refreshStatic);
|
|
446
|
+
// Poll for terminal background color changes to auto-switch theme
|
|
447
|
+
useTerminalTheme(handleThemeSelect, config, refreshStatic);
|
|
448
|
+
const { authState, setAuthState, authError, onAuthError, apiKeyDefaultValue, reloadApiKey, accountSuspensionInfo, setAccountSuspensionInfo, } = useAuthCommand(settings, config, initializationResult.authError, initializationResult.accountSuspensionInfo);
|
|
449
|
+
const [authContext, setAuthContext] = useState({});
|
|
450
|
+
useEffect(() => {
|
|
451
|
+
if (authState === AuthState.Authenticated && authContext.requiresRestart) {
|
|
452
|
+
setAuthState(AuthState.AwaitingLoginRestart);
|
|
453
|
+
setAuthContext({});
|
|
454
|
+
}
|
|
455
|
+
}, [authState, authContext, setAuthState]);
|
|
456
|
+
const { proQuotaRequest, handleProQuotaChoice, validationRequest, handleValidationChoice,
|
|
457
|
+
// G1 AI Credits
|
|
458
|
+
overageMenuRequest, handleOverageMenuChoice, emptyWalletRequest, handleEmptyWalletChoice, } = useQuotaAndFallback({
|
|
459
|
+
config,
|
|
460
|
+
historyManager,
|
|
461
|
+
userTier,
|
|
462
|
+
paidTier,
|
|
463
|
+
settings,
|
|
464
|
+
setModelSwitchedFromQuotaError,
|
|
465
|
+
onShowAuthSelection: () => setAuthState(AuthState.Updating),
|
|
466
|
+
errorVerbosity: settings.merged.ui.errorVerbosity,
|
|
467
|
+
});
|
|
468
|
+
// Derive auth state variables for backward compatibility with UIStateContext
|
|
469
|
+
const isAuthDialogOpen = authState === AuthState.Updating;
|
|
470
|
+
// TODO: Consider handling other auth types that should also skip the blocking screen
|
|
471
|
+
const isAuthenticating = authState === AuthState.Unauthenticated &&
|
|
472
|
+
settings.merged.security.auth.selectedType !== AuthType.USE_GEMINI;
|
|
473
|
+
// Session browser and resume functionality
|
|
474
|
+
const isGeminiClientInitialized = config.getGeminiClient()?.isInitialized();
|
|
475
|
+
const { loadHistoryForResume, isResuming } = useSessionResume({
|
|
476
|
+
config,
|
|
477
|
+
historyManager,
|
|
478
|
+
refreshStatic,
|
|
479
|
+
isGeminiClientInitialized,
|
|
480
|
+
setQuittingMessages,
|
|
481
|
+
resumedSessionData,
|
|
482
|
+
isAuthenticating,
|
|
483
|
+
});
|
|
484
|
+
const { isSessionBrowserOpen, openSessionBrowser, closeSessionBrowser, handleResumeSession, handleDeleteSession: handleDeleteSessionSync, } = useSessionBrowser(config, loadHistoryForResume);
|
|
485
|
+
// Wrap handleDeleteSession to return a Promise for UIActions interface
|
|
486
|
+
const handleDeleteSession = useCallback(async (session) => {
|
|
487
|
+
await handleDeleteSessionSync(session);
|
|
488
|
+
}, [handleDeleteSessionSync]);
|
|
489
|
+
// Create handleAuthSelect wrapper for backward compatibility
|
|
490
|
+
const handleAuthSelect = useCallback(async (authType, scope) => {
|
|
491
|
+
if (authType) {
|
|
492
|
+
const previousAuthType = config.getContentGeneratorConfig()?.authType ?? 'unknown';
|
|
493
|
+
if (authType === AuthType.LOGIN_WITH_GOOGLE) {
|
|
494
|
+
setAuthContext({ requiresRestart: true });
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
setAuthContext({});
|
|
498
|
+
}
|
|
499
|
+
await clearCachedCredentialFile();
|
|
500
|
+
settings.setValue(scope, 'security.auth.selectedType', authType);
|
|
501
|
+
try {
|
|
502
|
+
config.setRemoteAdminSettings(undefined);
|
|
503
|
+
await config.refreshAuth(authType);
|
|
504
|
+
setAuthState(AuthState.Authenticated);
|
|
505
|
+
logBillingEvent(config, new ApiKeyUpdatedEvent(previousAuthType, authType));
|
|
506
|
+
}
|
|
507
|
+
catch (e) {
|
|
508
|
+
if (e instanceof ChangeAuthRequestedError) {
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
if (e instanceof ProjectIdRequiredError) {
|
|
512
|
+
// OAuth succeeded but account setup requires project ID
|
|
513
|
+
// Show the error message directly without "Failed to authenticate" prefix
|
|
514
|
+
onAuthError(getErrorMessage(e));
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
onAuthError(`Failed to authenticate: ${e instanceof Error ? e.message : String(e)}`);
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
if (authType === AuthType.LOGIN_WITH_GOOGLE &&
|
|
521
|
+
config.isBrowserLaunchSuppressed()) {
|
|
522
|
+
writeToStdout(`
|
|
523
|
+
----------------------------------------------------------------
|
|
524
|
+
Logging in with Google... Restarting Gemini CLI to continue.
|
|
525
|
+
----------------------------------------------------------------
|
|
526
|
+
`);
|
|
527
|
+
await relaunchApp();
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
setAuthState(AuthState.Authenticated);
|
|
531
|
+
}, [settings, config, setAuthState, onAuthError, setAuthContext]);
|
|
532
|
+
const handleApiKeySubmit = useCallback(async (apiKey) => {
|
|
533
|
+
try {
|
|
534
|
+
onAuthError(null);
|
|
535
|
+
if (!apiKey.trim()) {
|
|
536
|
+
onAuthError('API key cannot be empty or whitespace only.');
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
await saveApiKey(apiKey);
|
|
540
|
+
await reloadApiKey();
|
|
541
|
+
await config.refreshAuth(AuthType.USE_GEMINI);
|
|
542
|
+
setAuthState(AuthState.Authenticated);
|
|
543
|
+
}
|
|
544
|
+
catch (e) {
|
|
545
|
+
onAuthError(`Failed to save API key: ${e instanceof Error ? e.message : String(e)}`);
|
|
546
|
+
}
|
|
547
|
+
}, [setAuthState, onAuthError, reloadApiKey, config]);
|
|
548
|
+
const handleApiKeyCancel = useCallback(() => {
|
|
549
|
+
// Go back to auth method selection
|
|
550
|
+
setAuthState(AuthState.Updating);
|
|
551
|
+
}, [setAuthState]);
|
|
552
|
+
// Sync user tier from config when authentication changes
|
|
553
|
+
useEffect(() => {
|
|
554
|
+
// Only sync when not currently authenticating
|
|
555
|
+
if (authState === AuthState.Authenticated) {
|
|
556
|
+
setUserTier(config.getUserTier());
|
|
557
|
+
setPaidTier(config.getUserPaidTier());
|
|
558
|
+
}
|
|
559
|
+
}, [config, authState]);
|
|
560
|
+
// Check for enforced auth type mismatch
|
|
561
|
+
useEffect(() => {
|
|
562
|
+
if (settings.merged.security.auth.enforcedType &&
|
|
563
|
+
settings.merged.security.auth.selectedType &&
|
|
564
|
+
settings.merged.security.auth.enforcedType !==
|
|
565
|
+
settings.merged.security.auth.selectedType) {
|
|
566
|
+
onAuthError(`Authentication is enforced to be ${settings.merged.security.auth.enforcedType}, but you are currently using ${settings.merged.security.auth.selectedType}.`);
|
|
567
|
+
}
|
|
568
|
+
else if (settings.merged.security.auth.selectedType &&
|
|
569
|
+
!settings.merged.security.auth.useExternal) {
|
|
570
|
+
// We skip validation for Gemini API key here because it might be stored
|
|
571
|
+
// in the keychain, which we can't check synchronously.
|
|
572
|
+
// The useAuth hook handles validation for this case.
|
|
573
|
+
if (settings.merged.security.auth.selectedType === AuthType.USE_GEMINI) {
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
const authMethod = settings.merged.security.auth.selectedType;
|
|
577
|
+
void (async () => {
|
|
578
|
+
try {
|
|
579
|
+
const error = await validateAuthMethod(authMethod);
|
|
580
|
+
if (error &&
|
|
581
|
+
authMethod === settings.merged.security.auth.selectedType) {
|
|
582
|
+
onAuthError(error);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
catch (e) {
|
|
586
|
+
if (authMethod === settings.merged.security.auth.selectedType) {
|
|
587
|
+
onAuthError(getErrorMessage(e));
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
})();
|
|
591
|
+
}
|
|
592
|
+
}, [
|
|
593
|
+
settings.merged.security.auth.selectedType,
|
|
594
|
+
settings.merged.security.auth.enforcedType,
|
|
595
|
+
settings.merged.security.auth.useExternal,
|
|
596
|
+
onAuthError,
|
|
597
|
+
]);
|
|
598
|
+
const { isModelDialogOpen, openModelDialog, closeModelDialog } = useModelCommand();
|
|
599
|
+
const { isVoiceModelDialogOpen, openVoiceModelDialog, closeVoiceModelDialog, } = useVoiceModelCommand();
|
|
600
|
+
const { toggleVimEnabled } = useVimMode();
|
|
601
|
+
const setIsBackgroundTaskListOpenRef = useRef(() => { });
|
|
602
|
+
const [shortcutsHelpVisible, setShortcutsHelpVisible] = useState(false);
|
|
603
|
+
const { cleanUiDetailsVisible, setCleanUiDetailsVisible, toggleCleanUiDetailsVisible, revealCleanUiDetailsTemporarily, } = useVisibilityToggle();
|
|
604
|
+
const slashCommandActions = useMemo(() => ({
|
|
605
|
+
openAuthDialog: () => setAuthState(AuthState.Updating),
|
|
606
|
+
openThemeDialog,
|
|
607
|
+
openEditorDialog,
|
|
608
|
+
openPrivacyNotice: () => setShowPrivacyNotice(true),
|
|
609
|
+
openSettingsDialog,
|
|
610
|
+
openSessionBrowser,
|
|
611
|
+
openModelDialog,
|
|
612
|
+
openVoiceModelDialog,
|
|
613
|
+
openAgentConfigDialog,
|
|
614
|
+
openPermissionsDialog,
|
|
615
|
+
quit: (messages) => {
|
|
616
|
+
closeThemeDialog();
|
|
617
|
+
setQuittingMessages(messages);
|
|
618
|
+
setTimeout(async () => {
|
|
619
|
+
await runExitCleanup();
|
|
620
|
+
process.exit(0);
|
|
621
|
+
}, 100);
|
|
622
|
+
},
|
|
623
|
+
setDebugMessage,
|
|
624
|
+
toggleCorgiMode: () => setCorgiMode((prev) => !prev),
|
|
625
|
+
toggleVoiceMode: () => setVoiceModeEnabled((prev) => !prev),
|
|
626
|
+
toggleDebugProfiler,
|
|
627
|
+
dispatchExtensionStateUpdate,
|
|
628
|
+
addConfirmUpdateExtensionRequest,
|
|
629
|
+
toggleBackgroundTasks: () => {
|
|
630
|
+
toggleBackgroundTasksRef.current();
|
|
631
|
+
if (!isBackgroundTaskVisibleRef.current) {
|
|
632
|
+
setEmbeddedShellFocused(true);
|
|
633
|
+
if (backgroundTasksRef.current.size > 1) {
|
|
634
|
+
setIsBackgroundTaskListOpenRef.current(true);
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
setIsBackgroundTaskListOpenRef.current(false);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
toggleShortcutsHelp: () => setShortcutsHelpVisible((visible) => !visible),
|
|
642
|
+
setText: stableSetText,
|
|
643
|
+
}), [
|
|
644
|
+
setAuthState,
|
|
645
|
+
openThemeDialog,
|
|
646
|
+
closeThemeDialog,
|
|
647
|
+
openEditorDialog,
|
|
648
|
+
openSettingsDialog,
|
|
649
|
+
openSessionBrowser,
|
|
650
|
+
openModelDialog,
|
|
651
|
+
openVoiceModelDialog,
|
|
652
|
+
openAgentConfigDialog,
|
|
653
|
+
setQuittingMessages,
|
|
654
|
+
setDebugMessage,
|
|
655
|
+
setShowPrivacyNotice,
|
|
656
|
+
setCorgiMode,
|
|
657
|
+
dispatchExtensionStateUpdate,
|
|
658
|
+
openPermissionsDialog,
|
|
659
|
+
addConfirmUpdateExtensionRequest,
|
|
660
|
+
toggleDebugProfiler,
|
|
661
|
+
setShortcutsHelpVisible,
|
|
662
|
+
stableSetText,
|
|
663
|
+
]);
|
|
664
|
+
const { handleSlashCommand, slashCommands, pendingHistoryItems: pendingSlashCommandHistoryItems, commandContext, confirmationRequest: commandConfirmationRequest, } = useSlashCommandProcessor(config, settings, historyManager.addItem, historyManager.clearItems, historyManager.loadHistory, refreshStatic, toggleVimEnabled, setIsProcessing, slashCommandActions, extensionsUpdateStateInternal, isConfigInitialized, setBannerVisible, setCustomDialog);
|
|
665
|
+
const [authConsentRequest, setAuthConsentRequest] = useState(null);
|
|
666
|
+
const [permissionConfirmationRequest, setPermissionConfirmationRequest] = useState(null);
|
|
667
|
+
useEffect(() => {
|
|
668
|
+
const handleConsentRequest = (payload) => {
|
|
669
|
+
setAuthConsentRequest({
|
|
670
|
+
prompt: payload.prompt,
|
|
671
|
+
onConfirm: (confirmed) => {
|
|
672
|
+
setAuthConsentRequest(null);
|
|
673
|
+
payload.onConfirm(confirmed);
|
|
674
|
+
},
|
|
675
|
+
});
|
|
676
|
+
};
|
|
677
|
+
coreEvents.on(CoreEvent.ConsentRequest, handleConsentRequest);
|
|
678
|
+
return () => {
|
|
679
|
+
coreEvents.off(CoreEvent.ConsentRequest, handleConsentRequest);
|
|
680
|
+
};
|
|
681
|
+
}, []);
|
|
682
|
+
const performMemoryRefresh = useCallback(async () => {
|
|
683
|
+
historyManager.addItem({
|
|
684
|
+
type: MessageType.INFO,
|
|
685
|
+
text: 'Refreshing hierarchical memory (GEMINI.md or other context files)...',
|
|
686
|
+
}, Date.now());
|
|
687
|
+
try {
|
|
688
|
+
await config.getMemoryContextManager()?.refresh();
|
|
689
|
+
config.updateSystemInstructionIfInitialized();
|
|
690
|
+
const flattenedMemory = flattenMemory(config.getUserMemory());
|
|
691
|
+
const fileCount = config.getGeminiMdFileCount();
|
|
692
|
+
historyManager.addItem({
|
|
693
|
+
type: MessageType.INFO,
|
|
694
|
+
text: `Memory reloaded successfully. ${flattenedMemory.length > 0
|
|
695
|
+
? `Loaded ${flattenedMemory.length} characters from ${fileCount} file(s)`
|
|
696
|
+
: 'No memory content found'}`,
|
|
697
|
+
}, Date.now());
|
|
698
|
+
if (config.getDebugMode()) {
|
|
699
|
+
debugLogger.log(`[DEBUG] Refreshed memory content in config: ${flattenedMemory.substring(0, 200)}...`);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
catch (error) {
|
|
703
|
+
const errorMessage = getErrorMessage(error);
|
|
704
|
+
historyManager.addItem({
|
|
705
|
+
type: MessageType.ERROR,
|
|
706
|
+
text: `Error refreshing memory: ${errorMessage}`,
|
|
707
|
+
}, Date.now());
|
|
708
|
+
debugLogger.warn('Error refreshing memory:', error);
|
|
709
|
+
}
|
|
710
|
+
}, [config, historyManager]);
|
|
711
|
+
const cancelHandlerRef = useRef(() => { });
|
|
712
|
+
const onCancelSubmit = useCallback((shouldRestorePrompt, clearBuffer = false) => {
|
|
713
|
+
if (shouldRestorePrompt) {
|
|
714
|
+
setPendingRestorePrompt(true);
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
setPendingRestorePrompt(false);
|
|
718
|
+
cancelHandlerRef.current(false, clearBuffer);
|
|
719
|
+
}
|
|
720
|
+
}, []);
|
|
721
|
+
useEffect(() => {
|
|
722
|
+
if (pendingRestorePrompt) {
|
|
723
|
+
const lastHistoryUserMsg = historyManager.history.findLast((h) => h.type === 'user');
|
|
724
|
+
const lastUserMsg = inputHistory.at(-1);
|
|
725
|
+
if (!lastHistoryUserMsg ||
|
|
726
|
+
(typeof lastHistoryUserMsg.text === 'string' &&
|
|
727
|
+
lastHistoryUserMsg.text === lastUserMsg)) {
|
|
728
|
+
cancelHandlerRef.current(true);
|
|
729
|
+
setPendingRestorePrompt(false);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}, [pendingRestorePrompt, inputHistory, historyManager.history]);
|
|
733
|
+
const pendingHintsRef = useRef([]);
|
|
734
|
+
const [pendingHintCount, setPendingHintCount] = useState(0);
|
|
735
|
+
const consumePendingHints = useCallback(() => {
|
|
736
|
+
if (pendingHintsRef.current.length === 0) {
|
|
737
|
+
return null;
|
|
738
|
+
}
|
|
739
|
+
const hint = pendingHintsRef.current.join('\n');
|
|
740
|
+
pendingHintsRef.current = [];
|
|
741
|
+
setPendingHintCount(0);
|
|
742
|
+
return hint;
|
|
743
|
+
}, []);
|
|
744
|
+
useEffect(() => {
|
|
745
|
+
const hintListener = (text, source) => {
|
|
746
|
+
if (source !== 'user_steering' && source !== 'background_completion') {
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
pendingHintsRef.current.push(text);
|
|
750
|
+
setPendingHintCount((prev) => prev + 1);
|
|
751
|
+
};
|
|
752
|
+
config.injectionService.onInjection(hintListener);
|
|
753
|
+
return () => {
|
|
754
|
+
config.injectionService.offInjection(hintListener);
|
|
755
|
+
};
|
|
756
|
+
}, [config]);
|
|
757
|
+
const streamAgent = useMemo(() => config?.getAgentSessionInteractiveEnabled()
|
|
758
|
+
? new LegacyAgentProtocol({ config, getPreferredEditor })
|
|
759
|
+
: undefined, [config, getPreferredEditor]);
|
|
760
|
+
const activeStream = streamAgent
|
|
761
|
+
? // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
762
|
+
useAgentStream({
|
|
763
|
+
agent: streamAgent,
|
|
764
|
+
addItem: historyManager.addItem,
|
|
765
|
+
onCancelSubmit,
|
|
766
|
+
isShellFocused: embeddedShellFocused,
|
|
767
|
+
logger,
|
|
768
|
+
})
|
|
769
|
+
: // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
770
|
+
useGeminiStream(config.getGeminiClient(), historyManager.history, historyManager.addItem, config, settings, setDebugMessage, handleSlashCommand, shellModeActive, getPreferredEditor, onAuthError, performMemoryRefresh, modelSwitchedFromQuotaError, setModelSwitchedFromQuotaError, onCancelSubmit, setEmbeddedShellFocused, terminalWidth, terminalHeight, embeddedShellFocused, consumePendingHints);
|
|
771
|
+
const { streamingState, submitQuery, initError, pendingHistoryItems: pendingGeminiHistoryItems, thought, cancelOngoingRequest, pendingToolCalls, handleApprovalModeChange, activePtyId, loopDetectionConfirmationRequest, lastOutputTime, backgroundTaskCount, isBackgroundTaskVisible, toggleBackgroundTasks, backgroundCurrentExecution, backgroundTasks, dismissBackgroundTask, retryStatus, } = activeStream;
|
|
772
|
+
const pendingHistoryItems = useMemo(() => [...pendingSlashCommandHistoryItems, ...pendingGeminiHistoryItems], [pendingSlashCommandHistoryItems, pendingGeminiHistoryItems]);
|
|
773
|
+
toggleBackgroundTasksRef.current = toggleBackgroundTasks;
|
|
774
|
+
isBackgroundTaskVisibleRef.current = isBackgroundTaskVisible;
|
|
775
|
+
backgroundTasksRef.current = backgroundTasks;
|
|
776
|
+
const { activeBackgroundTaskPid, setIsBackgroundTaskListOpen, isBackgroundTaskListOpen, setActiveBackgroundTaskPid, backgroundTaskHeight, } = useBackgroundTaskManager({
|
|
777
|
+
backgroundTasks,
|
|
778
|
+
backgroundTaskCount,
|
|
779
|
+
isBackgroundTaskVisible,
|
|
780
|
+
activePtyId,
|
|
781
|
+
embeddedShellFocused,
|
|
782
|
+
setEmbeddedShellFocused,
|
|
783
|
+
terminalHeight,
|
|
784
|
+
});
|
|
785
|
+
setIsBackgroundTaskListOpenRef.current = setIsBackgroundTaskListOpen;
|
|
786
|
+
const lastOutputTimeRef = useRef(0);
|
|
787
|
+
useEffect(() => {
|
|
788
|
+
lastOutputTimeRef.current = lastOutputTime;
|
|
789
|
+
}, [lastOutputTime]);
|
|
790
|
+
const { shouldShowFocusHint, inactivityStatus } = useShellInactivityStatus({
|
|
791
|
+
activePtyId,
|
|
792
|
+
lastOutputTime,
|
|
793
|
+
streamingState,
|
|
794
|
+
pendingToolCalls,
|
|
795
|
+
embeddedShellFocused,
|
|
796
|
+
isInteractiveShellEnabled: config.isInteractiveShellEnabled(),
|
|
797
|
+
});
|
|
798
|
+
const shouldShowActionRequiredTitle = inactivityStatus === 'action_required';
|
|
799
|
+
const shouldShowSilentWorkingTitle = inactivityStatus === 'silent_working';
|
|
800
|
+
const handleApprovalModeChangeWithUiReveal = useCallback((mode) => {
|
|
801
|
+
void handleApprovalModeChange(mode);
|
|
802
|
+
if (!cleanUiDetailsVisible) {
|
|
803
|
+
revealCleanUiDetailsTemporarily(APPROVAL_MODE_REVEAL_DURATION_MS);
|
|
804
|
+
}
|
|
805
|
+
}, [
|
|
806
|
+
handleApprovalModeChange,
|
|
807
|
+
cleanUiDetailsVisible,
|
|
808
|
+
revealCleanUiDetailsTemporarily,
|
|
809
|
+
]);
|
|
810
|
+
const { isMcpReady } = useMcpStatus(config);
|
|
811
|
+
const isCompressing = useMemo(() => pendingHistoryItems.some((item) => item.type === MessageType.COMPRESSION && item.compression.isPending), [pendingHistoryItems]);
|
|
812
|
+
const { messageQueue, addMessage, clearQueue, getQueuedMessagesText, popAllMessages, } = useMessageQueue({
|
|
813
|
+
isConfigInitialized,
|
|
814
|
+
streamingState,
|
|
815
|
+
submitQuery,
|
|
816
|
+
isMcpReady,
|
|
817
|
+
isCompressing,
|
|
818
|
+
});
|
|
819
|
+
cancelHandlerRef.current = useCallback((shouldRestorePrompt = true, clearBuffer = false) => {
|
|
820
|
+
if (!clearBuffer && isToolAwaitingConfirmation(pendingHistoryItems)) {
|
|
821
|
+
return; // Don't clear - user may be composing a follow-up message
|
|
822
|
+
}
|
|
823
|
+
// If cancelling (shouldRestorePrompt=false):
|
|
824
|
+
if (!shouldRestorePrompt) {
|
|
825
|
+
// Clear the buffer if explicitly requested (e.g., Ctrl+C)
|
|
826
|
+
if (clearBuffer) {
|
|
827
|
+
buffer.setText('');
|
|
828
|
+
}
|
|
829
|
+
// Otherwise (e.g., Escape), user is in control - preserve whatever text they typed
|
|
830
|
+
return;
|
|
831
|
+
}
|
|
832
|
+
// Restore the last message when shouldRestorePrompt=true
|
|
833
|
+
const lastUserMessage = inputHistory.at(-1);
|
|
834
|
+
let textToSet = lastUserMessage || '';
|
|
835
|
+
const queuedText = getQueuedMessagesText();
|
|
836
|
+
if (queuedText) {
|
|
837
|
+
textToSet = textToSet ? `${textToSet}\n\n${queuedText}` : queuedText;
|
|
838
|
+
clearQueue();
|
|
839
|
+
}
|
|
840
|
+
if (textToSet) {
|
|
841
|
+
buffer.setText(textToSet);
|
|
842
|
+
}
|
|
843
|
+
}, [
|
|
844
|
+
buffer,
|
|
845
|
+
inputHistory,
|
|
846
|
+
getQueuedMessagesText,
|
|
847
|
+
clearQueue,
|
|
848
|
+
pendingHistoryItems,
|
|
849
|
+
]);
|
|
850
|
+
const handleHintSubmit = useCallback((hint) => {
|
|
851
|
+
const trimmed = hint.trim();
|
|
852
|
+
if (!trimmed) {
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
config.injectionService.addInjection(trimmed, 'user_steering');
|
|
856
|
+
// Render hints with a distinct style.
|
|
857
|
+
historyManager.addItem({
|
|
858
|
+
type: 'hint',
|
|
859
|
+
text: trimmed,
|
|
860
|
+
});
|
|
861
|
+
}, [config, historyManager]);
|
|
862
|
+
const handleFinalSubmit = useCallback(async (submittedValue) => {
|
|
863
|
+
reset();
|
|
864
|
+
// Explicitly hide the expansion hint and clear its x-second timer when a new turn begins.
|
|
865
|
+
triggerExpandHint(null);
|
|
866
|
+
if (!constrainHeight) {
|
|
867
|
+
setConstrainHeight(true);
|
|
868
|
+
if (!isAlternateBuffer) {
|
|
869
|
+
refreshStatic();
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
const isSlash = isSlashCommand(submittedValue.trim());
|
|
873
|
+
const isIdle = streamingState === StreamingState.Idle;
|
|
874
|
+
const isAgentRunning = streamingState === StreamingState.Responding ||
|
|
875
|
+
isToolExecuting(pendingHistoryItems);
|
|
876
|
+
if (isSlash && isAgentRunning) {
|
|
877
|
+
const { commandToExecute } = parseSlashCommand(submittedValue, slashCommands ?? []);
|
|
878
|
+
if (commandToExecute?.isSafeConcurrent) {
|
|
879
|
+
void handleSlashCommand(submittedValue);
|
|
880
|
+
addInput(submittedValue);
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
if (config.isModelSteeringEnabled() && isAgentRunning && !isSlash) {
|
|
885
|
+
handleHintSubmit(submittedValue);
|
|
886
|
+
addInput(submittedValue);
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
889
|
+
const isMcpOrConfigReady = isConfigInitialized && isMcpReady;
|
|
890
|
+
if ((isSlash && isConfigInitialized) ||
|
|
891
|
+
(!isCompressing && isIdle && isMcpOrConfigReady)) {
|
|
892
|
+
if (!isSlash) {
|
|
893
|
+
const permissions = await checkPermissions(submittedValue, config);
|
|
894
|
+
if (permissions.length > 0) {
|
|
895
|
+
setPermissionConfirmationRequest({
|
|
896
|
+
files: permissions,
|
|
897
|
+
onComplete: (result) => {
|
|
898
|
+
setPermissionConfirmationRequest(null);
|
|
899
|
+
if (result.allowed) {
|
|
900
|
+
permissions.forEach((p) => config.getWorkspaceContext().addReadOnlyPath(p));
|
|
901
|
+
}
|
|
902
|
+
void submitQuery(submittedValue);
|
|
903
|
+
},
|
|
904
|
+
});
|
|
905
|
+
addInput(submittedValue);
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
void submitQuery(submittedValue);
|
|
910
|
+
}
|
|
911
|
+
else {
|
|
912
|
+
// Check messageQueue.length === 0 to only notify on the first queued item
|
|
913
|
+
if (isIdle &&
|
|
914
|
+
!isCompressing &&
|
|
915
|
+
!isMcpOrConfigReady &&
|
|
916
|
+
messageQueue.length === 0) {
|
|
917
|
+
coreEvents.emitFeedback('info', !isConfigInitialized
|
|
918
|
+
? 'Initializing... Prompts will be queued.'
|
|
919
|
+
: 'Waiting for MCP servers to initialize... Slash commands are still available and prompts will be queued.');
|
|
920
|
+
}
|
|
921
|
+
addMessage(submittedValue);
|
|
922
|
+
}
|
|
923
|
+
addInput(submittedValue); // Track input for up-arrow history
|
|
924
|
+
}, [
|
|
925
|
+
addMessage,
|
|
926
|
+
addInput,
|
|
927
|
+
submitQuery,
|
|
928
|
+
handleSlashCommand,
|
|
929
|
+
slashCommands,
|
|
930
|
+
isMcpReady,
|
|
931
|
+
streamingState,
|
|
932
|
+
isCompressing,
|
|
933
|
+
messageQueue.length,
|
|
934
|
+
pendingHistoryItems,
|
|
935
|
+
config,
|
|
936
|
+
constrainHeight,
|
|
937
|
+
setConstrainHeight,
|
|
938
|
+
isAlternateBuffer,
|
|
939
|
+
refreshStatic,
|
|
940
|
+
reset,
|
|
941
|
+
handleHintSubmit,
|
|
942
|
+
isConfigInitialized,
|
|
943
|
+
triggerExpandHint,
|
|
944
|
+
]);
|
|
945
|
+
const handleClearScreen = useCallback(() => {
|
|
946
|
+
reset();
|
|
947
|
+
// Explicitly hide the expansion hint and clear its x-second timer when clearing the screen.
|
|
948
|
+
triggerExpandHint(null);
|
|
949
|
+
historyManager.clearItems();
|
|
950
|
+
clearErrorCount();
|
|
951
|
+
refreshStatic();
|
|
952
|
+
}, [
|
|
953
|
+
historyManager,
|
|
954
|
+
clearErrorCount,
|
|
955
|
+
refreshStatic,
|
|
956
|
+
reset,
|
|
957
|
+
triggerExpandHint,
|
|
958
|
+
]);
|
|
959
|
+
const { handleInput: vimHandleInput } = useVim(buffer, handleFinalSubmit);
|
|
960
|
+
/**
|
|
961
|
+
* Determines if the input prompt should be active and accept user input.
|
|
962
|
+
* Input is disabled during:
|
|
963
|
+
* - Initialization errors
|
|
964
|
+
* - Slash command processing
|
|
965
|
+
* - Tool confirmations (WaitingForConfirmation state)
|
|
966
|
+
* - Any future streaming states not explicitly allowed
|
|
967
|
+
*/
|
|
968
|
+
const isInputActive = !initError &&
|
|
969
|
+
!isProcessing &&
|
|
970
|
+
!isResuming &&
|
|
971
|
+
(streamingState === StreamingState.Idle ||
|
|
972
|
+
streamingState === StreamingState.Responding ||
|
|
973
|
+
streamingState === StreamingState.WaitingForConfirmation) &&
|
|
974
|
+
!proQuotaRequest;
|
|
975
|
+
const observerRef = useRef(null);
|
|
976
|
+
useEffect(() => () => {
|
|
977
|
+
observerRef.current?.disconnect();
|
|
978
|
+
}, []);
|
|
979
|
+
const [controlsHeight, setControlsHeight] = useState(0);
|
|
980
|
+
const [lastNonCopyControlsHeight, setLastNonCopyControlsHeight] = useState(0);
|
|
981
|
+
useLayoutEffect(() => {
|
|
982
|
+
if (!copyModeEnabled && controlsHeight > 0) {
|
|
983
|
+
setLastNonCopyControlsHeight(controlsHeight);
|
|
984
|
+
}
|
|
985
|
+
}, [copyModeEnabled, controlsHeight]);
|
|
986
|
+
const stableControlsHeight = copyModeEnabled && lastNonCopyControlsHeight > 0
|
|
987
|
+
? lastNonCopyControlsHeight
|
|
988
|
+
: controlsHeight;
|
|
989
|
+
const mainControlsRef = useCallback((node) => {
|
|
990
|
+
if (observerRef.current) {
|
|
991
|
+
observerRef.current.disconnect();
|
|
992
|
+
observerRef.current = null;
|
|
993
|
+
}
|
|
994
|
+
if (node) {
|
|
995
|
+
const observer = new ResizeObserver((entries) => {
|
|
996
|
+
const entry = entries[0];
|
|
997
|
+
if (entry) {
|
|
998
|
+
const roundedHeight = Math.round(entry.contentRect.height);
|
|
999
|
+
setControlsHeight((prev) => roundedHeight !== prev ? roundedHeight : prev);
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
observer.observe(node);
|
|
1003
|
+
observerRef.current = observer;
|
|
1004
|
+
}
|
|
1005
|
+
}, []);
|
|
1006
|
+
// Compute available terminal height based on stable controls measurement
|
|
1007
|
+
const availableTerminalHeight = Math.max(0, terminalHeight - stableControlsHeight - backgroundTaskHeight - 1);
|
|
1008
|
+
config.setShellExecutionConfig({
|
|
1009
|
+
terminalWidth: Math.floor(terminalWidth * SHELL_WIDTH_FRACTION),
|
|
1010
|
+
terminalHeight: Math.max(Math.floor(availableTerminalHeight - SHELL_HEIGHT_PADDING), 1),
|
|
1011
|
+
pager: settings.merged.tools.shell.pager,
|
|
1012
|
+
showColor: settings.merged.tools.shell.showColor,
|
|
1013
|
+
sanitizationConfig: config.sanitizationConfig,
|
|
1014
|
+
sandboxManager: config.sandboxManager,
|
|
1015
|
+
});
|
|
1016
|
+
const { isFocused, hasReceivedFocusEvent } = useFocus();
|
|
1017
|
+
// Context file names computation
|
|
1018
|
+
const contextFileNames = useMemo(() => {
|
|
1019
|
+
const fromSettings = settings.merged.context.fileName;
|
|
1020
|
+
return fromSettings
|
|
1021
|
+
? Array.isArray(fromSettings)
|
|
1022
|
+
? fromSettings
|
|
1023
|
+
: [fromSettings]
|
|
1024
|
+
: getAllGeminiMdFilenames();
|
|
1025
|
+
}, [settings.merged.context.fileName]);
|
|
1026
|
+
// Initial prompt handling
|
|
1027
|
+
const initialPrompt = useMemo(() => config.getQuestion(), [config]);
|
|
1028
|
+
const initialPromptSubmitted = useRef(false);
|
|
1029
|
+
const geminiClient = config.getGeminiClient();
|
|
1030
|
+
useEffect(() => {
|
|
1031
|
+
if (initialPrompt &&
|
|
1032
|
+
isConfigInitialized &&
|
|
1033
|
+
!initialPromptSubmitted.current &&
|
|
1034
|
+
!isAuthenticating &&
|
|
1035
|
+
!isAuthDialogOpen &&
|
|
1036
|
+
!isThemeDialogOpen &&
|
|
1037
|
+
!isEditorDialogOpen &&
|
|
1038
|
+
!showPrivacyNotice &&
|
|
1039
|
+
geminiClient?.isInitialized?.()) {
|
|
1040
|
+
void handleFinalSubmit(initialPrompt);
|
|
1041
|
+
initialPromptSubmitted.current = true;
|
|
1042
|
+
}
|
|
1043
|
+
}, [
|
|
1044
|
+
initialPrompt,
|
|
1045
|
+
isConfigInitialized,
|
|
1046
|
+
handleFinalSubmit,
|
|
1047
|
+
isAuthenticating,
|
|
1048
|
+
isAuthDialogOpen,
|
|
1049
|
+
isThemeDialogOpen,
|
|
1050
|
+
isEditorDialogOpen,
|
|
1051
|
+
showPrivacyNotice,
|
|
1052
|
+
geminiClient,
|
|
1053
|
+
]);
|
|
1054
|
+
const [idePromptAnswered, setIdePromptAnswered] = useState(false);
|
|
1055
|
+
const [currentIDE, setCurrentIDE] = useState(null);
|
|
1056
|
+
useEffect(() => {
|
|
1057
|
+
const getIde = async () => {
|
|
1058
|
+
const ideClient = await IdeClient.getInstance();
|
|
1059
|
+
const currentIde = ideClient.getCurrentIde();
|
|
1060
|
+
setCurrentIDE(currentIde || null);
|
|
1061
|
+
};
|
|
1062
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1063
|
+
getIde();
|
|
1064
|
+
}, []);
|
|
1065
|
+
const shouldShowIdePrompt = Boolean(currentIDE &&
|
|
1066
|
+
!config.getIdeMode() &&
|
|
1067
|
+
!settings.merged.ide.hasSeenNudge &&
|
|
1068
|
+
!idePromptAnswered);
|
|
1069
|
+
const [showErrorDetails, setShowErrorDetails] = useState(false);
|
|
1070
|
+
const [showFullTodos, setShowFullTodos] = useState(false);
|
|
1071
|
+
const [renderMarkdown, setRenderMarkdown] = useState(true);
|
|
1072
|
+
const handleExitRepeat = useCallback((count) => {
|
|
1073
|
+
if (count > 2) {
|
|
1074
|
+
recordExitFail(config);
|
|
1075
|
+
}
|
|
1076
|
+
if (count > 1) {
|
|
1077
|
+
void handleSlashCommand('/quit', undefined, undefined, false);
|
|
1078
|
+
}
|
|
1079
|
+
}, [config, handleSlashCommand]);
|
|
1080
|
+
const { pressCount: ctrlCPressCount, handlePress: handleCtrlCPress } = useRepeatedKeyPress({
|
|
1081
|
+
windowMs: WARNING_PROMPT_DURATION_MS,
|
|
1082
|
+
onRepeat: handleExitRepeat,
|
|
1083
|
+
});
|
|
1084
|
+
const { pressCount: ctrlDPressCount, handlePress: handleCtrlDPress } = useRepeatedKeyPress({
|
|
1085
|
+
windowMs: WARNING_PROMPT_DURATION_MS,
|
|
1086
|
+
onRepeat: handleExitRepeat,
|
|
1087
|
+
});
|
|
1088
|
+
const [ideContextState, setIdeContextState] = useState();
|
|
1089
|
+
const [showEscapePrompt, setShowEscapePrompt] = useState(false);
|
|
1090
|
+
const [showIdeRestartPrompt, setShowIdeRestartPrompt] = useState(false);
|
|
1091
|
+
const [transientMessage, showTransientMessage] = useTimedMessage(WARNING_PROMPT_DURATION_MS);
|
|
1092
|
+
const { isFolderTrustDialogOpen, discoveryResults: folderDiscoveryResults, handleFolderTrustSelect, isRestarting, } = useFolderTrust(settings, setIsTrustedFolder, historyManager.addItem);
|
|
1093
|
+
const policyUpdateConfirmationRequest = config.getPolicyUpdateConfirmationRequest();
|
|
1094
|
+
const [isPolicyUpdateDialogOpen, setIsPolicyUpdateDialogOpen] = useState(!!policyUpdateConfirmationRequest);
|
|
1095
|
+
const { needsRestart: ideNeedsRestart, restartReason: ideTrustRestartReason, } = useIdeTrustListener();
|
|
1096
|
+
useIncludeDirsTrust(config, isTrustedFolder, historyManager, setCustomDialog);
|
|
1097
|
+
const tabFocusTimeoutRef = useRef(null);
|
|
1098
|
+
useEffect(() => {
|
|
1099
|
+
const handleTransientMessage = (payload) => {
|
|
1100
|
+
showTransientMessage({ text: payload.message, type: payload.type });
|
|
1101
|
+
};
|
|
1102
|
+
const handleSelectionWarning = () => {
|
|
1103
|
+
showTransientMessage({
|
|
1104
|
+
text: 'Press Ctrl-S to enter selection mode to copy text.',
|
|
1105
|
+
type: TransientMessageType.Warning,
|
|
1106
|
+
});
|
|
1107
|
+
};
|
|
1108
|
+
const handlePasteTimeout = () => {
|
|
1109
|
+
showTransientMessage({
|
|
1110
|
+
text: 'Paste Timed out. Possibly due to slow connection.',
|
|
1111
|
+
type: TransientMessageType.Warning,
|
|
1112
|
+
});
|
|
1113
|
+
};
|
|
1114
|
+
appEvents.on(AppEvent.TransientMessage, handleTransientMessage);
|
|
1115
|
+
appEvents.on(AppEvent.SelectionWarning, handleSelectionWarning);
|
|
1116
|
+
appEvents.on(AppEvent.PasteTimeout, handlePasteTimeout);
|
|
1117
|
+
return () => {
|
|
1118
|
+
appEvents.off(AppEvent.TransientMessage, handleTransientMessage);
|
|
1119
|
+
appEvents.off(AppEvent.SelectionWarning, handleSelectionWarning);
|
|
1120
|
+
appEvents.off(AppEvent.PasteTimeout, handlePasteTimeout);
|
|
1121
|
+
if (tabFocusTimeoutRef.current) {
|
|
1122
|
+
clearTimeout(tabFocusTimeoutRef.current);
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
}, [showTransientMessage]);
|
|
1126
|
+
const handleWarning = useCallback((message) => {
|
|
1127
|
+
showTransientMessage({
|
|
1128
|
+
text: message,
|
|
1129
|
+
type: TransientMessageType.Warning,
|
|
1130
|
+
});
|
|
1131
|
+
}, [showTransientMessage]);
|
|
1132
|
+
const { handleSuspend } = useSuspend({
|
|
1133
|
+
handleWarning,
|
|
1134
|
+
setRawMode,
|
|
1135
|
+
shouldUseAlternateScreen,
|
|
1136
|
+
});
|
|
1137
|
+
useEffect(() => {
|
|
1138
|
+
if (ideNeedsRestart) {
|
|
1139
|
+
// IDE trust changed, force a restart.
|
|
1140
|
+
setShowIdeRestartPrompt(true);
|
|
1141
|
+
}
|
|
1142
|
+
}, [ideNeedsRestart]);
|
|
1143
|
+
useEffect(() => {
|
|
1144
|
+
const unsubscribe = ideContextStore.subscribe(setIdeContextState);
|
|
1145
|
+
setIdeContextState(ideContextStore.get());
|
|
1146
|
+
return unsubscribe;
|
|
1147
|
+
}, []);
|
|
1148
|
+
useEffect(() => {
|
|
1149
|
+
const openDebugConsole = () => {
|
|
1150
|
+
setShowErrorDetails(true);
|
|
1151
|
+
setConstrainHeight(false);
|
|
1152
|
+
};
|
|
1153
|
+
appEvents.on(AppEvent.OpenDebugConsole, openDebugConsole);
|
|
1154
|
+
return () => {
|
|
1155
|
+
appEvents.off(AppEvent.OpenDebugConsole, openDebugConsole);
|
|
1156
|
+
};
|
|
1157
|
+
}, [config]);
|
|
1158
|
+
const handleEscapePromptChange = useCallback((showPrompt) => {
|
|
1159
|
+
setShowEscapePrompt(showPrompt);
|
|
1160
|
+
}, []);
|
|
1161
|
+
const handleIdePromptComplete = useCallback((result) => {
|
|
1162
|
+
if (result.userSelection === 'yes') {
|
|
1163
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1164
|
+
handleSlashCommand('/ide install');
|
|
1165
|
+
settings.setValue(SettingScope.User, 'ide.hasSeenNudge', true);
|
|
1166
|
+
}
|
|
1167
|
+
else if (result.userSelection === 'dismiss') {
|
|
1168
|
+
settings.setValue(SettingScope.User, 'ide.hasSeenNudge', true);
|
|
1169
|
+
}
|
|
1170
|
+
setIdePromptAnswered(true);
|
|
1171
|
+
}, [handleSlashCommand, settings]);
|
|
1172
|
+
const handleGlobalKeypress = useCallback((key) => {
|
|
1173
|
+
// Debug log keystrokes if enabled
|
|
1174
|
+
if (settings.merged.general.debugKeystrokeLogging) {
|
|
1175
|
+
debugLogger.log('[DEBUG] Keystroke:', JSON.stringify(key));
|
|
1176
|
+
}
|
|
1177
|
+
if (shortcutsHelpVisible && isHelpDismissKey(key)) {
|
|
1178
|
+
setShortcutsHelpVisible(false);
|
|
1179
|
+
}
|
|
1180
|
+
if (keyMatchers[Command.TOGGLE_MOUSE_MODE](key)) {
|
|
1181
|
+
setMouseMode((prev) => !prev);
|
|
1182
|
+
if (mouseMode && !isAlternateBuffer) {
|
|
1183
|
+
appEvents.emit(AppEvent.ScrollToBottom);
|
|
1184
|
+
}
|
|
1185
|
+
return true;
|
|
1186
|
+
}
|
|
1187
|
+
if (isAlternateBuffer && keyMatchers[Command.TOGGLE_COPY_MODE](key)) {
|
|
1188
|
+
setCopyModeEnabled(true);
|
|
1189
|
+
disableMouseEvents();
|
|
1190
|
+
return true;
|
|
1191
|
+
}
|
|
1192
|
+
if (keyMatchers[Command.QUIT](key)) {
|
|
1193
|
+
// If the user presses Ctrl+C, we want to cancel any ongoing requests.
|
|
1194
|
+
// This should happen regardless of the count.
|
|
1195
|
+
void cancelOngoingRequest?.();
|
|
1196
|
+
handleCtrlCPress();
|
|
1197
|
+
return true;
|
|
1198
|
+
}
|
|
1199
|
+
else if (keyMatchers[Command.EXIT](key)) {
|
|
1200
|
+
// If the input field is non-empty, do not exit.
|
|
1201
|
+
if (bufferRef.current.text.length > 0) {
|
|
1202
|
+
return false;
|
|
1203
|
+
}
|
|
1204
|
+
handleCtrlDPress();
|
|
1205
|
+
return true;
|
|
1206
|
+
}
|
|
1207
|
+
else if (keyMatchers[Command.SUSPEND_APP](key)) {
|
|
1208
|
+
handleSuspend();
|
|
1209
|
+
}
|
|
1210
|
+
else if (keyMatchers[Command.DUMP_FRAME](key)) {
|
|
1211
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
1212
|
+
const filename = `snapshot-${timestamp}.json`;
|
|
1213
|
+
if (dumpCurrentFrame) {
|
|
1214
|
+
dumpCurrentFrame(filename);
|
|
1215
|
+
debugLogger.log(`Dumped frame to: ${filename}`);
|
|
1216
|
+
}
|
|
1217
|
+
return true;
|
|
1218
|
+
}
|
|
1219
|
+
else if (keyMatchers[Command.START_RECORDING](key)) {
|
|
1220
|
+
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
1221
|
+
const filename = `recording-${timestamp}.json`;
|
|
1222
|
+
if (startRecording) {
|
|
1223
|
+
startRecording(filename);
|
|
1224
|
+
recordingFilenameRef.current = filename;
|
|
1225
|
+
debugLogger.log(`Started recording to: ${filename}`);
|
|
1226
|
+
}
|
|
1227
|
+
return true;
|
|
1228
|
+
}
|
|
1229
|
+
else if (keyMatchers[Command.STOP_RECORDING](key)) {
|
|
1230
|
+
if (stopRecording) {
|
|
1231
|
+
stopRecording();
|
|
1232
|
+
debugLogger.log(`Stopped recording, saved to: ${recordingFilenameRef.current ?? 'unknown'}`);
|
|
1233
|
+
recordingFilenameRef.current = null;
|
|
1234
|
+
}
|
|
1235
|
+
return true;
|
|
1236
|
+
}
|
|
1237
|
+
else if (keyMatchers[Command.TOGGLE_COPY_MODE](key) &&
|
|
1238
|
+
!isAlternateBuffer) {
|
|
1239
|
+
showTransientMessage({
|
|
1240
|
+
text: 'Use Ctrl+O to expand and collapse blocks of content.',
|
|
1241
|
+
type: TransientMessageType.Warning,
|
|
1242
|
+
});
|
|
1243
|
+
return true;
|
|
1244
|
+
}
|
|
1245
|
+
const toggleLastTurnTools = () => {
|
|
1246
|
+
triggerExpandHint(true);
|
|
1247
|
+
const targetToolCallIds = getLastTurnToolCallIds(historyManager.history, pendingHistoryItems);
|
|
1248
|
+
if (targetToolCallIds.length > 0) {
|
|
1249
|
+
toggleAllExpansion(targetToolCallIds);
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
let enteringConstrainHeightMode = false;
|
|
1253
|
+
if (!constrainHeight) {
|
|
1254
|
+
enteringConstrainHeightMode = true;
|
|
1255
|
+
setConstrainHeight(true);
|
|
1256
|
+
if (keyMatchers[Command.SHOW_MORE_LINES](key)) {
|
|
1257
|
+
toggleLastTurnTools();
|
|
1258
|
+
}
|
|
1259
|
+
if (!isAlternateBuffer) {
|
|
1260
|
+
refreshStatic();
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
if (keyMatchers[Command.SHOW_ERROR_DETAILS](key)) {
|
|
1264
|
+
if (settings.merged.general.devtools) {
|
|
1265
|
+
void (async () => {
|
|
1266
|
+
const { toggleDevToolsPanel } = await import('../utils/devtoolsService.js');
|
|
1267
|
+
await toggleDevToolsPanel(config, showErrorDetails, () => setShowErrorDetails((prev) => !prev), () => setShowErrorDetails(true));
|
|
1268
|
+
})();
|
|
1269
|
+
}
|
|
1270
|
+
else {
|
|
1271
|
+
setShowErrorDetails((prev) => !prev);
|
|
1272
|
+
}
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1275
|
+
else if (keyMatchers[Command.SHOW_FULL_TODOS](key)) {
|
|
1276
|
+
setShowFullTodos((prev) => !prev);
|
|
1277
|
+
return true;
|
|
1278
|
+
}
|
|
1279
|
+
else if (keyMatchers[Command.TOGGLE_MARKDOWN](key)) {
|
|
1280
|
+
setRenderMarkdown((prev) => {
|
|
1281
|
+
const newValue = !prev;
|
|
1282
|
+
// Force re-render of static content
|
|
1283
|
+
refreshStatic();
|
|
1284
|
+
return newValue;
|
|
1285
|
+
});
|
|
1286
|
+
return true;
|
|
1287
|
+
}
|
|
1288
|
+
else if (keyMatchers[Command.SHOW_IDE_CONTEXT_DETAIL](key) &&
|
|
1289
|
+
config.getIdeMode() &&
|
|
1290
|
+
ideContextState) {
|
|
1291
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1292
|
+
handleSlashCommand('/ide status');
|
|
1293
|
+
return true;
|
|
1294
|
+
}
|
|
1295
|
+
else if (keyMatchers[Command.SHOW_MORE_LINES](key) &&
|
|
1296
|
+
!enteringConstrainHeightMode) {
|
|
1297
|
+
setConstrainHeight(false);
|
|
1298
|
+
toggleLastTurnTools();
|
|
1299
|
+
refreshStatic();
|
|
1300
|
+
return true;
|
|
1301
|
+
}
|
|
1302
|
+
else if ((keyMatchers[Command.FOCUS_SHELL_INPUT](key) ||
|
|
1303
|
+
keyMatchers[Command.UNFOCUS_BACKGROUND_SHELL_LIST](key)) &&
|
|
1304
|
+
(activePtyId || (isBackgroundTaskVisible && backgroundTasks.size > 0))) {
|
|
1305
|
+
if (embeddedShellFocused) {
|
|
1306
|
+
const capturedTime = lastOutputTimeRef.current;
|
|
1307
|
+
if (tabFocusTimeoutRef.current)
|
|
1308
|
+
clearTimeout(tabFocusTimeoutRef.current);
|
|
1309
|
+
tabFocusTimeoutRef.current = setTimeout(() => {
|
|
1310
|
+
if (lastOutputTimeRef.current === capturedTime) {
|
|
1311
|
+
setEmbeddedShellFocused(false);
|
|
1312
|
+
}
|
|
1313
|
+
else {
|
|
1314
|
+
showTransientMessage({
|
|
1315
|
+
text: 'Use Shift+Tab to unfocus',
|
|
1316
|
+
type: TransientMessageType.Warning,
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
}, 150);
|
|
1320
|
+
return false;
|
|
1321
|
+
}
|
|
1322
|
+
const isIdle = Date.now() - lastOutputTimeRef.current >= 100;
|
|
1323
|
+
if (isIdle && !activePtyId && !isBackgroundTaskVisible) {
|
|
1324
|
+
if (tabFocusTimeoutRef.current)
|
|
1325
|
+
clearTimeout(tabFocusTimeoutRef.current);
|
|
1326
|
+
toggleBackgroundTasks();
|
|
1327
|
+
setEmbeddedShellFocused(true);
|
|
1328
|
+
if (backgroundTasks.size > 1)
|
|
1329
|
+
setIsBackgroundTaskListOpen(true);
|
|
1330
|
+
return true;
|
|
1331
|
+
}
|
|
1332
|
+
setEmbeddedShellFocused(true);
|
|
1333
|
+
return true;
|
|
1334
|
+
}
|
|
1335
|
+
else if (keyMatchers[Command.UNFOCUS_SHELL_INPUT](key) ||
|
|
1336
|
+
keyMatchers[Command.UNFOCUS_BACKGROUND_SHELL](key)) {
|
|
1337
|
+
if (embeddedShellFocused) {
|
|
1338
|
+
setEmbeddedShellFocused(false);
|
|
1339
|
+
return true;
|
|
1340
|
+
}
|
|
1341
|
+
return false;
|
|
1342
|
+
}
|
|
1343
|
+
else if (keyMatchers[Command.TOGGLE_BACKGROUND_SHELL](key)) {
|
|
1344
|
+
if (activePtyId) {
|
|
1345
|
+
backgroundCurrentExecution();
|
|
1346
|
+
// After backgrounding, we explicitly do NOT show or focus the background UI.
|
|
1347
|
+
}
|
|
1348
|
+
else {
|
|
1349
|
+
toggleBackgroundTasks();
|
|
1350
|
+
// Toggle focus based on intent: if we were hiding, unfocus; if showing, focus.
|
|
1351
|
+
if (!isBackgroundTaskVisible && backgroundTasks.size > 0) {
|
|
1352
|
+
setEmbeddedShellFocused(true);
|
|
1353
|
+
if (backgroundTasks.size > 1) {
|
|
1354
|
+
setIsBackgroundTaskListOpen(true);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
setEmbeddedShellFocused(false);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
return true;
|
|
1362
|
+
}
|
|
1363
|
+
else if (keyMatchers[Command.TOGGLE_BACKGROUND_SHELL_LIST](key)) {
|
|
1364
|
+
if (backgroundTasks.size > 0 && isBackgroundTaskVisible) {
|
|
1365
|
+
if (!embeddedShellFocused) {
|
|
1366
|
+
setEmbeddedShellFocused(true);
|
|
1367
|
+
}
|
|
1368
|
+
setIsBackgroundTaskListOpen(true);
|
|
1369
|
+
}
|
|
1370
|
+
return true;
|
|
1371
|
+
}
|
|
1372
|
+
return false;
|
|
1373
|
+
}, [
|
|
1374
|
+
constrainHeight,
|
|
1375
|
+
setConstrainHeight,
|
|
1376
|
+
setShowErrorDetails,
|
|
1377
|
+
config,
|
|
1378
|
+
ideContextState,
|
|
1379
|
+
handleCtrlCPress,
|
|
1380
|
+
handleCtrlDPress,
|
|
1381
|
+
handleSlashCommand,
|
|
1382
|
+
cancelOngoingRequest,
|
|
1383
|
+
activePtyId,
|
|
1384
|
+
handleSuspend,
|
|
1385
|
+
embeddedShellFocused,
|
|
1386
|
+
settings.merged.general.debugKeystrokeLogging,
|
|
1387
|
+
refreshStatic,
|
|
1388
|
+
setCopyModeEnabled,
|
|
1389
|
+
tabFocusTimeoutRef,
|
|
1390
|
+
isAlternateBuffer,
|
|
1391
|
+
shortcutsHelpVisible,
|
|
1392
|
+
backgroundCurrentExecution,
|
|
1393
|
+
toggleBackgroundTasks,
|
|
1394
|
+
backgroundTasks,
|
|
1395
|
+
isBackgroundTaskVisible,
|
|
1396
|
+
setIsBackgroundTaskListOpen,
|
|
1397
|
+
lastOutputTimeRef,
|
|
1398
|
+
showTransientMessage,
|
|
1399
|
+
settings.merged.general.devtools,
|
|
1400
|
+
showErrorDetails,
|
|
1401
|
+
triggerExpandHint,
|
|
1402
|
+
keyMatchers,
|
|
1403
|
+
isHelpDismissKey,
|
|
1404
|
+
historyManager.history,
|
|
1405
|
+
pendingHistoryItems,
|
|
1406
|
+
toggleAllExpansion,
|
|
1407
|
+
dumpCurrentFrame,
|
|
1408
|
+
startRecording,
|
|
1409
|
+
stopRecording,
|
|
1410
|
+
mouseMode,
|
|
1411
|
+
]);
|
|
1412
|
+
useKeypress(handleGlobalKeypress, { isActive: true, priority: true });
|
|
1413
|
+
useKeypress((key) => {
|
|
1414
|
+
if (keyMatchers[Command.SCROLL_UP](key) ||
|
|
1415
|
+
keyMatchers[Command.SCROLL_DOWN](key) ||
|
|
1416
|
+
keyMatchers[Command.PAGE_UP](key) ||
|
|
1417
|
+
keyMatchers[Command.PAGE_DOWN](key) ||
|
|
1418
|
+
keyMatchers[Command.SCROLL_HOME](key) ||
|
|
1419
|
+
keyMatchers[Command.SCROLL_END](key)) {
|
|
1420
|
+
return false;
|
|
1421
|
+
}
|
|
1422
|
+
setCopyModeEnabled(false);
|
|
1423
|
+
if (mouseMode) {
|
|
1424
|
+
enableMouseEvents();
|
|
1425
|
+
}
|
|
1426
|
+
return true;
|
|
1427
|
+
}, {
|
|
1428
|
+
isActive: copyModeEnabled,
|
|
1429
|
+
// We need to receive keypresses first so they do not bubble to other
|
|
1430
|
+
// handlers.
|
|
1431
|
+
priority: KeypressPriority.Critical,
|
|
1432
|
+
});
|
|
1433
|
+
useEffect(() => {
|
|
1434
|
+
// Respect hideWindowTitle settings
|
|
1435
|
+
if (settings.merged.ui.hideWindowTitle)
|
|
1436
|
+
return;
|
|
1437
|
+
const paddedTitle = computeTerminalTitle({
|
|
1438
|
+
streamingState,
|
|
1439
|
+
thoughtSubject: thought?.subject,
|
|
1440
|
+
isConfirming: !!commandConfirmationRequest || shouldShowActionRequiredTitle,
|
|
1441
|
+
isSilentWorking: shouldShowSilentWorkingTitle,
|
|
1442
|
+
folderName: basename(config.getTargetDir()),
|
|
1443
|
+
showThoughts: !!settings.merged.ui.showStatusInTitle,
|
|
1444
|
+
useDynamicTitle: settings.merged.ui.dynamicWindowTitle,
|
|
1445
|
+
});
|
|
1446
|
+
// Only update the title if it's different from the last value we set
|
|
1447
|
+
if (lastTitleRef.current !== paddedTitle) {
|
|
1448
|
+
lastTitleRef.current = paddedTitle;
|
|
1449
|
+
stdout.write(`\x1b]0;${paddedTitle}\x07`);
|
|
1450
|
+
}
|
|
1451
|
+
// Note: We don't need to reset the window title on exit because Gemini CLI is already doing that elsewhere
|
|
1452
|
+
}, [
|
|
1453
|
+
streamingState,
|
|
1454
|
+
thought,
|
|
1455
|
+
commandConfirmationRequest,
|
|
1456
|
+
shouldShowActionRequiredTitle,
|
|
1457
|
+
shouldShowSilentWorkingTitle,
|
|
1458
|
+
settings.merged.ui.showStatusInTitle,
|
|
1459
|
+
settings.merged.ui.dynamicWindowTitle,
|
|
1460
|
+
settings.merged.ui.hideWindowTitle,
|
|
1461
|
+
config,
|
|
1462
|
+
stdout,
|
|
1463
|
+
]);
|
|
1464
|
+
useEffect(() => {
|
|
1465
|
+
const handleUserFeedback = (payload) => {
|
|
1466
|
+
let type;
|
|
1467
|
+
switch (payload.severity) {
|
|
1468
|
+
case 'error':
|
|
1469
|
+
type = MessageType.ERROR;
|
|
1470
|
+
break;
|
|
1471
|
+
case 'warning':
|
|
1472
|
+
type = MessageType.WARNING;
|
|
1473
|
+
break;
|
|
1474
|
+
case 'info':
|
|
1475
|
+
type = MessageType.INFO;
|
|
1476
|
+
break;
|
|
1477
|
+
default:
|
|
1478
|
+
throw new Error(`Unexpected severity for user feedback: ${payload.severity}`);
|
|
1479
|
+
}
|
|
1480
|
+
historyManager.addItem({
|
|
1481
|
+
type,
|
|
1482
|
+
text: payload.message,
|
|
1483
|
+
}, Date.now());
|
|
1484
|
+
// If there is an attached error object, log it to the debug drawer.
|
|
1485
|
+
if (payload.error) {
|
|
1486
|
+
debugLogger.warn(`[Feedback Details for "${payload.message}"]`, payload.error);
|
|
1487
|
+
}
|
|
1488
|
+
};
|
|
1489
|
+
const handleHookSystemMessage = (payload) => {
|
|
1490
|
+
historyManager.addItem({
|
|
1491
|
+
type: MessageType.INFO,
|
|
1492
|
+
text: payload.message,
|
|
1493
|
+
source: payload.hookName,
|
|
1494
|
+
}, Date.now());
|
|
1495
|
+
};
|
|
1496
|
+
coreEvents.on(CoreEvent.UserFeedback, handleUserFeedback);
|
|
1497
|
+
coreEvents.on(CoreEvent.HookSystemMessage, handleHookSystemMessage);
|
|
1498
|
+
// Flush any messages that happened during startup before this component
|
|
1499
|
+
// mounted.
|
|
1500
|
+
coreEvents.drainBacklogs();
|
|
1501
|
+
return () => {
|
|
1502
|
+
coreEvents.off(CoreEvent.UserFeedback, handleUserFeedback);
|
|
1503
|
+
coreEvents.off(CoreEvent.HookSystemMessage, handleHookSystemMessage);
|
|
1504
|
+
};
|
|
1505
|
+
}, [historyManager]);
|
|
1506
|
+
const nightly = props.version.includes('nightly');
|
|
1507
|
+
const isAwaitingLoginRestart = authState === AuthState.AwaitingLoginRestart;
|
|
1508
|
+
const loginRestartMessage = settings.merged.security.auth.selectedType === AuthType.USE_VERTEX_AI
|
|
1509
|
+
? 'Authenticating to Vertex AI in Cloud Shell requires a restart to apply project settings.'
|
|
1510
|
+
: undefined;
|
|
1511
|
+
const dialogsVisible = shouldShowIdePrompt ||
|
|
1512
|
+
isFolderTrustDialogOpen ||
|
|
1513
|
+
isPolicyUpdateDialogOpen ||
|
|
1514
|
+
adminSettingsChanged ||
|
|
1515
|
+
!!commandConfirmationRequest ||
|
|
1516
|
+
!!authConsentRequest ||
|
|
1517
|
+
!!permissionConfirmationRequest ||
|
|
1518
|
+
!!customDialog ||
|
|
1519
|
+
confirmUpdateExtensionRequests.length > 0 ||
|
|
1520
|
+
!!loopDetectionConfirmationRequest ||
|
|
1521
|
+
isThemeDialogOpen ||
|
|
1522
|
+
isSettingsDialogOpen ||
|
|
1523
|
+
isModelDialogOpen ||
|
|
1524
|
+
isVoiceModelDialogOpen ||
|
|
1525
|
+
isAgentConfigDialogOpen ||
|
|
1526
|
+
isPermissionsDialogOpen ||
|
|
1527
|
+
isAuthenticating ||
|
|
1528
|
+
isAuthDialogOpen ||
|
|
1529
|
+
isEditorDialogOpen ||
|
|
1530
|
+
showPrivacyNotice ||
|
|
1531
|
+
showIdeRestartPrompt ||
|
|
1532
|
+
!!proQuotaRequest ||
|
|
1533
|
+
!!validationRequest ||
|
|
1534
|
+
!!overageMenuRequest ||
|
|
1535
|
+
!!emptyWalletRequest ||
|
|
1536
|
+
isSessionBrowserOpen ||
|
|
1537
|
+
authState === AuthState.AwaitingApiKeyInput ||
|
|
1538
|
+
isAwaitingLoginRestart ||
|
|
1539
|
+
!!newAgents;
|
|
1540
|
+
const hasPendingToolConfirmation = useMemo(() => isToolAwaitingConfirmation(pendingHistoryItems), [pendingHistoryItems]);
|
|
1541
|
+
const hasConfirmUpdateExtensionRequests = confirmUpdateExtensionRequests.length > 0;
|
|
1542
|
+
const hasLoopDetectionConfirmationRequest = !!loopDetectionConfirmationRequest;
|
|
1543
|
+
const hasPendingActionRequired = hasPendingToolConfirmation ||
|
|
1544
|
+
!!commandConfirmationRequest ||
|
|
1545
|
+
!!authConsentRequest ||
|
|
1546
|
+
hasConfirmUpdateExtensionRequests ||
|
|
1547
|
+
hasLoopDetectionConfirmationRequest ||
|
|
1548
|
+
!!proQuotaRequest ||
|
|
1549
|
+
!!validationRequest ||
|
|
1550
|
+
!!overageMenuRequest ||
|
|
1551
|
+
!!emptyWalletRequest ||
|
|
1552
|
+
!!customDialog;
|
|
1553
|
+
const loadingPhrases = settings.merged.ui.loadingPhrases;
|
|
1554
|
+
const showStatusTips = loadingPhrases === 'tips' || loadingPhrases === 'all';
|
|
1555
|
+
const showStatusWit = loadingPhrases === 'witty' || loadingPhrases === 'all';
|
|
1556
|
+
const showLoadingIndicator = (!embeddedShellFocused || isBackgroundTaskVisible) &&
|
|
1557
|
+
streamingState === StreamingState.Responding &&
|
|
1558
|
+
!hasPendingActionRequired;
|
|
1559
|
+
let estimatedStatusLength = 0;
|
|
1560
|
+
if (activeHooks.length > 0 && settings.merged.hooksConfig.notifications) {
|
|
1561
|
+
const hookLabel = activeHooks.length > 1 ? 'Executing Hooks' : 'Executing Hook';
|
|
1562
|
+
const hookNames = activeHooks
|
|
1563
|
+
.map((h) => h.name +
|
|
1564
|
+
(h.index && h.total && h.total > 1 ? ` (${h.index}/${h.total})` : ''))
|
|
1565
|
+
.join(', ');
|
|
1566
|
+
estimatedStatusLength = hookLabel.length + hookNames.length + 10;
|
|
1567
|
+
}
|
|
1568
|
+
else if (showLoadingIndicator) {
|
|
1569
|
+
const thoughtText = thought?.subject || 'Waiting for model...';
|
|
1570
|
+
estimatedStatusLength = thoughtText.length + 25;
|
|
1571
|
+
}
|
|
1572
|
+
else if (hasPendingActionRequired) {
|
|
1573
|
+
estimatedStatusLength = 35;
|
|
1574
|
+
}
|
|
1575
|
+
const maxLength = terminalWidth - estimatedStatusLength - 5;
|
|
1576
|
+
const { elapsedTime, currentLoadingPhrase, currentTip, currentWittyPhrase } = useLoadingIndicator({
|
|
1577
|
+
streamingState,
|
|
1578
|
+
shouldShowFocusHint,
|
|
1579
|
+
retryStatus,
|
|
1580
|
+
showTips: showStatusTips,
|
|
1581
|
+
showWit: showStatusWit,
|
|
1582
|
+
customWittyPhrases: settings.merged.ui.customWittyPhrases,
|
|
1583
|
+
errorVerbosity: settings.merged.ui.errorVerbosity,
|
|
1584
|
+
maxLength,
|
|
1585
|
+
});
|
|
1586
|
+
const allowPlanMode = config.isPlanEnabled() &&
|
|
1587
|
+
streamingState === StreamingState.Idle &&
|
|
1588
|
+
!hasPendingActionRequired;
|
|
1589
|
+
const showApprovalModeIndicator = useApprovalModeIndicator({
|
|
1590
|
+
config,
|
|
1591
|
+
addItem: historyManager.addItem,
|
|
1592
|
+
onApprovalModeChange: handleApprovalModeChangeWithUiReveal,
|
|
1593
|
+
isActive: !embeddedShellFocused,
|
|
1594
|
+
allowPlanMode,
|
|
1595
|
+
});
|
|
1596
|
+
useRunEventNotifications({
|
|
1597
|
+
notificationsEnabled,
|
|
1598
|
+
notificationMethod,
|
|
1599
|
+
isFocused,
|
|
1600
|
+
hasReceivedFocusEvent,
|
|
1601
|
+
streamingState,
|
|
1602
|
+
hasPendingActionRequired,
|
|
1603
|
+
pendingHistoryItems,
|
|
1604
|
+
commandConfirmationRequest,
|
|
1605
|
+
authConsentRequest,
|
|
1606
|
+
permissionConfirmationRequest,
|
|
1607
|
+
hasConfirmUpdateExtensionRequests,
|
|
1608
|
+
hasLoopDetectionConfirmationRequest,
|
|
1609
|
+
});
|
|
1610
|
+
const isPassiveShortcutsHelpState = isInputActive &&
|
|
1611
|
+
streamingState === StreamingState.Idle &&
|
|
1612
|
+
!hasPendingActionRequired;
|
|
1613
|
+
useEffect(() => {
|
|
1614
|
+
if (shortcutsHelpVisible && !isPassiveShortcutsHelpState) {
|
|
1615
|
+
setShortcutsHelpVisible(false);
|
|
1616
|
+
}
|
|
1617
|
+
}, [
|
|
1618
|
+
shortcutsHelpVisible,
|
|
1619
|
+
isPassiveShortcutsHelpState,
|
|
1620
|
+
setShortcutsHelpVisible,
|
|
1621
|
+
]);
|
|
1622
|
+
useEffect(() => {
|
|
1623
|
+
if (!isConfigInitialized ||
|
|
1624
|
+
!config.isModelSteeringEnabled() ||
|
|
1625
|
+
streamingState !== StreamingState.Idle ||
|
|
1626
|
+
!isMcpReady ||
|
|
1627
|
+
isToolAwaitingConfirmation(pendingHistoryItems)) {
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
const pendingHint = consumePendingHints();
|
|
1631
|
+
if (!pendingHint) {
|
|
1632
|
+
return;
|
|
1633
|
+
}
|
|
1634
|
+
void submitQuery([{ text: buildUserSteeringHintPrompt(pendingHint) }]);
|
|
1635
|
+
}, [
|
|
1636
|
+
config,
|
|
1637
|
+
historyManager,
|
|
1638
|
+
isConfigInitialized,
|
|
1639
|
+
isMcpReady,
|
|
1640
|
+
streamingState,
|
|
1641
|
+
submitQuery,
|
|
1642
|
+
consumePendingHints,
|
|
1643
|
+
pendingHistoryItems,
|
|
1644
|
+
pendingHintCount,
|
|
1645
|
+
]);
|
|
1646
|
+
const allToolCalls = useMemo(() => getAllToolCalls(pendingHistoryItems), [pendingHistoryItems]);
|
|
1647
|
+
const [geminiMdFileCount, setGeminiMdFileCount] = useState(config.getGeminiMdFileCount());
|
|
1648
|
+
useEffect(() => {
|
|
1649
|
+
const handleMemoryChanged = (result) => {
|
|
1650
|
+
setGeminiMdFileCount(result.fileCount);
|
|
1651
|
+
};
|
|
1652
|
+
coreEvents.on(CoreEvent.MemoryChanged, handleMemoryChanged);
|
|
1653
|
+
return () => {
|
|
1654
|
+
coreEvents.off(CoreEvent.MemoryChanged, handleMemoryChanged);
|
|
1655
|
+
};
|
|
1656
|
+
}, []);
|
|
1657
|
+
useEffect(() => {
|
|
1658
|
+
let isMounted = true;
|
|
1659
|
+
const fetchBannerTexts = async () => {
|
|
1660
|
+
const [defaultBanner, warningBanner] = await Promise.all([
|
|
1661
|
+
config.getBannerTextNoCapacityIssues(),
|
|
1662
|
+
config.getBannerTextCapacityIssues(),
|
|
1663
|
+
]);
|
|
1664
|
+
if (isMounted) {
|
|
1665
|
+
setDefaultBannerText(defaultBanner);
|
|
1666
|
+
setWarningBannerText(warningBanner);
|
|
1667
|
+
setBannerVisible(true);
|
|
1668
|
+
}
|
|
1669
|
+
};
|
|
1670
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
1671
|
+
fetchBannerTexts();
|
|
1672
|
+
return () => {
|
|
1673
|
+
isMounted = false;
|
|
1674
|
+
};
|
|
1675
|
+
}, [config, refreshStatic]);
|
|
1676
|
+
const inputState = useMemo(() => ({
|
|
1677
|
+
buffer,
|
|
1678
|
+
userMessages: inputHistory,
|
|
1679
|
+
shellModeActive,
|
|
1680
|
+
showEscapePrompt,
|
|
1681
|
+
copyModeEnabled,
|
|
1682
|
+
inputWidth,
|
|
1683
|
+
suggestionsWidth,
|
|
1684
|
+
}), [
|
|
1685
|
+
buffer,
|
|
1686
|
+
inputHistory,
|
|
1687
|
+
shellModeActive,
|
|
1688
|
+
showEscapePrompt,
|
|
1689
|
+
copyModeEnabled,
|
|
1690
|
+
inputWidth,
|
|
1691
|
+
suggestionsWidth,
|
|
1692
|
+
]);
|
|
1693
|
+
const quotaState = useMemo(() => ({
|
|
1694
|
+
userTier,
|
|
1695
|
+
stats: quotaStats,
|
|
1696
|
+
proQuotaRequest,
|
|
1697
|
+
validationRequest,
|
|
1698
|
+
// G1 AI Credits dialog state
|
|
1699
|
+
overageMenuRequest,
|
|
1700
|
+
emptyWalletRequest,
|
|
1701
|
+
}), [
|
|
1702
|
+
userTier,
|
|
1703
|
+
quotaStats,
|
|
1704
|
+
proQuotaRequest,
|
|
1705
|
+
validationRequest,
|
|
1706
|
+
overageMenuRequest,
|
|
1707
|
+
emptyWalletRequest,
|
|
1708
|
+
]);
|
|
1709
|
+
const uiState = useMemo(() => ({
|
|
1710
|
+
history: historyManager.history,
|
|
1711
|
+
historyManager,
|
|
1712
|
+
isThemeDialogOpen,
|
|
1713
|
+
themeError,
|
|
1714
|
+
isAuthenticating,
|
|
1715
|
+
isConfigInitialized,
|
|
1716
|
+
authError,
|
|
1717
|
+
accountSuspensionInfo,
|
|
1718
|
+
isAuthDialogOpen,
|
|
1719
|
+
isAwaitingApiKeyInput: authState === AuthState.AwaitingApiKeyInput,
|
|
1720
|
+
isAwaitingLoginRestart,
|
|
1721
|
+
loginRestartMessage,
|
|
1722
|
+
apiKeyDefaultValue,
|
|
1723
|
+
editorError,
|
|
1724
|
+
isEditorDialogOpen,
|
|
1725
|
+
showPrivacyNotice,
|
|
1726
|
+
mouseMode,
|
|
1727
|
+
corgiMode,
|
|
1728
|
+
debugMessage,
|
|
1729
|
+
quittingMessages,
|
|
1730
|
+
isSettingsDialogOpen,
|
|
1731
|
+
isSessionBrowserOpen,
|
|
1732
|
+
isModelDialogOpen,
|
|
1733
|
+
isVoiceModelDialogOpen,
|
|
1734
|
+
isAgentConfigDialogOpen,
|
|
1735
|
+
selectedAgentName,
|
|
1736
|
+
selectedAgentDisplayName,
|
|
1737
|
+
selectedAgentDefinition,
|
|
1738
|
+
isPermissionsDialogOpen,
|
|
1739
|
+
permissionsDialogProps,
|
|
1740
|
+
slashCommands,
|
|
1741
|
+
pendingSlashCommandHistoryItems,
|
|
1742
|
+
commandContext,
|
|
1743
|
+
commandConfirmationRequest,
|
|
1744
|
+
authConsentRequest,
|
|
1745
|
+
confirmUpdateExtensionRequests,
|
|
1746
|
+
loopDetectionConfirmationRequest,
|
|
1747
|
+
permissionConfirmationRequest,
|
|
1748
|
+
geminiMdFileCount,
|
|
1749
|
+
streamingState,
|
|
1750
|
+
initError,
|
|
1751
|
+
pendingGeminiHistoryItems,
|
|
1752
|
+
thought,
|
|
1753
|
+
isInputActive,
|
|
1754
|
+
isVoiceModeEnabled,
|
|
1755
|
+
isResuming,
|
|
1756
|
+
shouldShowIdePrompt,
|
|
1757
|
+
isFolderTrustDialogOpen: isFolderTrustDialogOpen ?? false,
|
|
1758
|
+
folderDiscoveryResults,
|
|
1759
|
+
isPolicyUpdateDialogOpen,
|
|
1760
|
+
policyUpdateConfirmationRequest,
|
|
1761
|
+
isTrustedFolder,
|
|
1762
|
+
constrainHeight,
|
|
1763
|
+
showErrorDetails,
|
|
1764
|
+
showFullTodos,
|
|
1765
|
+
ideContextState,
|
|
1766
|
+
renderMarkdown,
|
|
1767
|
+
ctrlCPressedOnce: ctrlCPressCount >= 1,
|
|
1768
|
+
ctrlDPressedOnce: ctrlDPressCount >= 1,
|
|
1769
|
+
shortcutsHelpVisible,
|
|
1770
|
+
cleanUiDetailsVisible,
|
|
1771
|
+
isFocused,
|
|
1772
|
+
elapsedTime,
|
|
1773
|
+
currentLoadingPhrase,
|
|
1774
|
+
currentTip,
|
|
1775
|
+
currentWittyPhrase,
|
|
1776
|
+
historyRemountKey,
|
|
1777
|
+
activeHooks,
|
|
1778
|
+
messageQueue,
|
|
1779
|
+
queueErrorMessage,
|
|
1780
|
+
showApprovalModeIndicator,
|
|
1781
|
+
allowPlanMode,
|
|
1782
|
+
currentModel,
|
|
1783
|
+
contextFileNames,
|
|
1784
|
+
errorCount,
|
|
1785
|
+
availableTerminalHeight,
|
|
1786
|
+
stableControlsHeight,
|
|
1787
|
+
mainAreaWidth,
|
|
1788
|
+
staticAreaMaxItemHeight,
|
|
1789
|
+
staticExtraHeight,
|
|
1790
|
+
dialogsVisible,
|
|
1791
|
+
pendingHistoryItems,
|
|
1792
|
+
nightly,
|
|
1793
|
+
branchName,
|
|
1794
|
+
sessionStats,
|
|
1795
|
+
terminalWidth,
|
|
1796
|
+
terminalHeight,
|
|
1797
|
+
mainControlsRef,
|
|
1798
|
+
rootUiRef,
|
|
1799
|
+
currentIDE,
|
|
1800
|
+
updateInfo,
|
|
1801
|
+
showIdeRestartPrompt,
|
|
1802
|
+
ideTrustRestartReason,
|
|
1803
|
+
isRestarting,
|
|
1804
|
+
extensionsUpdateState,
|
|
1805
|
+
activePtyId,
|
|
1806
|
+
backgroundTaskCount,
|
|
1807
|
+
isBackgroundTaskVisible,
|
|
1808
|
+
embeddedShellFocused,
|
|
1809
|
+
showDebugProfiler,
|
|
1810
|
+
customDialog,
|
|
1811
|
+
transientMessage,
|
|
1812
|
+
bannerData,
|
|
1813
|
+
bannerVisible,
|
|
1814
|
+
terminalBackgroundColor: config.getTerminalBackground(),
|
|
1815
|
+
settingsNonce,
|
|
1816
|
+
backgroundTasks,
|
|
1817
|
+
activeBackgroundTaskPid,
|
|
1818
|
+
backgroundTaskHeight,
|
|
1819
|
+
isBackgroundTaskListOpen,
|
|
1820
|
+
adminSettingsChanged,
|
|
1821
|
+
newAgents,
|
|
1822
|
+
showIsExpandableHint,
|
|
1823
|
+
hintMode: config.isModelSteeringEnabled() && isToolExecuting(pendingHistoryItems),
|
|
1824
|
+
hintBuffer: '',
|
|
1825
|
+
}), [
|
|
1826
|
+
isThemeDialogOpen,
|
|
1827
|
+
themeError,
|
|
1828
|
+
isAuthenticating,
|
|
1829
|
+
isConfigInitialized,
|
|
1830
|
+
authError,
|
|
1831
|
+
accountSuspensionInfo,
|
|
1832
|
+
isAuthDialogOpen,
|
|
1833
|
+
editorError,
|
|
1834
|
+
isEditorDialogOpen,
|
|
1835
|
+
showPrivacyNotice,
|
|
1836
|
+
mouseMode,
|
|
1837
|
+
corgiMode,
|
|
1838
|
+
debugMessage,
|
|
1839
|
+
quittingMessages,
|
|
1840
|
+
isSettingsDialogOpen,
|
|
1841
|
+
isSessionBrowserOpen,
|
|
1842
|
+
isModelDialogOpen,
|
|
1843
|
+
isVoiceModelDialogOpen,
|
|
1844
|
+
isAgentConfigDialogOpen,
|
|
1845
|
+
selectedAgentName,
|
|
1846
|
+
selectedAgentDisplayName,
|
|
1847
|
+
selectedAgentDefinition,
|
|
1848
|
+
isPermissionsDialogOpen,
|
|
1849
|
+
permissionsDialogProps,
|
|
1850
|
+
slashCommands,
|
|
1851
|
+
pendingSlashCommandHistoryItems,
|
|
1852
|
+
commandContext,
|
|
1853
|
+
commandConfirmationRequest,
|
|
1854
|
+
authConsentRequest,
|
|
1855
|
+
confirmUpdateExtensionRequests,
|
|
1856
|
+
loopDetectionConfirmationRequest,
|
|
1857
|
+
permissionConfirmationRequest,
|
|
1858
|
+
geminiMdFileCount,
|
|
1859
|
+
streamingState,
|
|
1860
|
+
initError,
|
|
1861
|
+
pendingGeminiHistoryItems,
|
|
1862
|
+
thought,
|
|
1863
|
+
isInputActive,
|
|
1864
|
+
isVoiceModeEnabled,
|
|
1865
|
+
isResuming,
|
|
1866
|
+
shouldShowIdePrompt,
|
|
1867
|
+
isFolderTrustDialogOpen,
|
|
1868
|
+
folderDiscoveryResults,
|
|
1869
|
+
isPolicyUpdateDialogOpen,
|
|
1870
|
+
policyUpdateConfirmationRequest,
|
|
1871
|
+
isTrustedFolder,
|
|
1872
|
+
constrainHeight,
|
|
1873
|
+
showErrorDetails,
|
|
1874
|
+
showFullTodos,
|
|
1875
|
+
ideContextState,
|
|
1876
|
+
renderMarkdown,
|
|
1877
|
+
ctrlCPressCount,
|
|
1878
|
+
ctrlDPressCount,
|
|
1879
|
+
shortcutsHelpVisible,
|
|
1880
|
+
cleanUiDetailsVisible,
|
|
1881
|
+
isFocused,
|
|
1882
|
+
elapsedTime,
|
|
1883
|
+
currentLoadingPhrase,
|
|
1884
|
+
currentTip,
|
|
1885
|
+
currentWittyPhrase,
|
|
1886
|
+
historyRemountKey,
|
|
1887
|
+
activeHooks,
|
|
1888
|
+
messageQueue,
|
|
1889
|
+
queueErrorMessage,
|
|
1890
|
+
showApprovalModeIndicator,
|
|
1891
|
+
allowPlanMode,
|
|
1892
|
+
contextFileNames,
|
|
1893
|
+
errorCount,
|
|
1894
|
+
availableTerminalHeight,
|
|
1895
|
+
stableControlsHeight,
|
|
1896
|
+
mainAreaWidth,
|
|
1897
|
+
staticAreaMaxItemHeight,
|
|
1898
|
+
staticExtraHeight,
|
|
1899
|
+
dialogsVisible,
|
|
1900
|
+
pendingHistoryItems,
|
|
1901
|
+
nightly,
|
|
1902
|
+
branchName,
|
|
1903
|
+
sessionStats,
|
|
1904
|
+
terminalWidth,
|
|
1905
|
+
terminalHeight,
|
|
1906
|
+
mainControlsRef,
|
|
1907
|
+
rootUiRef,
|
|
1908
|
+
currentIDE,
|
|
1909
|
+
updateInfo,
|
|
1910
|
+
showIdeRestartPrompt,
|
|
1911
|
+
ideTrustRestartReason,
|
|
1912
|
+
isRestarting,
|
|
1913
|
+
currentModel,
|
|
1914
|
+
extensionsUpdateState,
|
|
1915
|
+
activePtyId,
|
|
1916
|
+
backgroundTaskCount,
|
|
1917
|
+
isBackgroundTaskVisible,
|
|
1918
|
+
historyManager,
|
|
1919
|
+
embeddedShellFocused,
|
|
1920
|
+
showDebugProfiler,
|
|
1921
|
+
customDialog,
|
|
1922
|
+
apiKeyDefaultValue,
|
|
1923
|
+
authState,
|
|
1924
|
+
isAwaitingLoginRestart,
|
|
1925
|
+
loginRestartMessage,
|
|
1926
|
+
transientMessage,
|
|
1927
|
+
bannerData,
|
|
1928
|
+
bannerVisible,
|
|
1929
|
+
config,
|
|
1930
|
+
settingsNonce,
|
|
1931
|
+
backgroundTaskHeight,
|
|
1932
|
+
isBackgroundTaskListOpen,
|
|
1933
|
+
activeBackgroundTaskPid,
|
|
1934
|
+
backgroundTasks,
|
|
1935
|
+
adminSettingsChanged,
|
|
1936
|
+
newAgents,
|
|
1937
|
+
showIsExpandableHint,
|
|
1938
|
+
]);
|
|
1939
|
+
const exitPrivacyNotice = useCallback(() => setShowPrivacyNotice(false), [setShowPrivacyNotice]);
|
|
1940
|
+
const uiActions = useMemo(() => ({
|
|
1941
|
+
handleThemeSelect,
|
|
1942
|
+
closeThemeDialog,
|
|
1943
|
+
handleThemeHighlight,
|
|
1944
|
+
handleAuthSelect,
|
|
1945
|
+
setAuthState,
|
|
1946
|
+
onAuthError,
|
|
1947
|
+
handleEditorSelect,
|
|
1948
|
+
exitEditorDialog,
|
|
1949
|
+
exitPrivacyNotice,
|
|
1950
|
+
closeSettingsDialog,
|
|
1951
|
+
closeModelDialog,
|
|
1952
|
+
openVoiceModelDialog,
|
|
1953
|
+
closeVoiceModelDialog,
|
|
1954
|
+
openAgentConfigDialog,
|
|
1955
|
+
closeAgentConfigDialog,
|
|
1956
|
+
openPermissionsDialog,
|
|
1957
|
+
closePermissionsDialog,
|
|
1958
|
+
setShellModeActive,
|
|
1959
|
+
vimHandleInput,
|
|
1960
|
+
handleIdePromptComplete,
|
|
1961
|
+
handleFolderTrustSelect,
|
|
1962
|
+
setIsPolicyUpdateDialogOpen,
|
|
1963
|
+
setConstrainHeight,
|
|
1964
|
+
onEscapePromptChange: handleEscapePromptChange,
|
|
1965
|
+
refreshStatic,
|
|
1966
|
+
handleFinalSubmit,
|
|
1967
|
+
handleClearScreen,
|
|
1968
|
+
handleProQuotaChoice,
|
|
1969
|
+
handleValidationChoice,
|
|
1970
|
+
// G1 AI Credits handlers
|
|
1971
|
+
handleOverageMenuChoice,
|
|
1972
|
+
handleEmptyWalletChoice,
|
|
1973
|
+
openSessionBrowser,
|
|
1974
|
+
closeSessionBrowser,
|
|
1975
|
+
handleResumeSession,
|
|
1976
|
+
handleDeleteSession,
|
|
1977
|
+
setQueueErrorMessage,
|
|
1978
|
+
addMessage,
|
|
1979
|
+
popAllMessages,
|
|
1980
|
+
handleApiKeySubmit,
|
|
1981
|
+
handleApiKeyCancel,
|
|
1982
|
+
setBannerVisible,
|
|
1983
|
+
setShortcutsHelpVisible,
|
|
1984
|
+
setCleanUiDetailsVisible,
|
|
1985
|
+
toggleCleanUiDetailsVisible,
|
|
1986
|
+
revealCleanUiDetailsTemporarily,
|
|
1987
|
+
handleWarning,
|
|
1988
|
+
setEmbeddedShellFocused,
|
|
1989
|
+
dismissBackgroundTask,
|
|
1990
|
+
setActiveBackgroundTaskPid,
|
|
1991
|
+
setIsBackgroundTaskListOpen,
|
|
1992
|
+
setAuthContext,
|
|
1993
|
+
dismissLoginRestart: () => {
|
|
1994
|
+
setAuthContext({});
|
|
1995
|
+
setAuthState(AuthState.Updating);
|
|
1996
|
+
},
|
|
1997
|
+
onHintInput: () => { },
|
|
1998
|
+
onHintBackspace: () => { },
|
|
1999
|
+
onHintClear: () => { },
|
|
2000
|
+
onHintSubmit: () => { },
|
|
2001
|
+
handleRestart: async () => {
|
|
2002
|
+
if (process.send) {
|
|
2003
|
+
const remoteSettings = config.getRemoteAdminSettings();
|
|
2004
|
+
if (remoteSettings) {
|
|
2005
|
+
process.send({
|
|
2006
|
+
type: 'admin-settings-update',
|
|
2007
|
+
settings: remoteSettings,
|
|
2008
|
+
});
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
await relaunchApp();
|
|
2012
|
+
},
|
|
2013
|
+
handleNewAgentsSelect: async (choice) => {
|
|
2014
|
+
if (newAgents && choice === NewAgentsChoice.ACKNOWLEDGE) {
|
|
2015
|
+
const registry = config.getAgentRegistry();
|
|
2016
|
+
try {
|
|
2017
|
+
await Promise.all(newAgents.map((agent) => registry.acknowledgeAgent(agent)));
|
|
2018
|
+
}
|
|
2019
|
+
catch (error) {
|
|
2020
|
+
debugLogger.error('Failed to acknowledge agents:', error);
|
|
2021
|
+
historyManager.addItem({
|
|
2022
|
+
type: MessageType.ERROR,
|
|
2023
|
+
text: `Failed to acknowledge agents: ${getErrorMessage(error)}`,
|
|
2024
|
+
}, Date.now());
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
setNewAgents(null);
|
|
2028
|
+
},
|
|
2029
|
+
getPreferredEditor,
|
|
2030
|
+
clearAccountSuspension: () => {
|
|
2031
|
+
setAccountSuspensionInfo(null);
|
|
2032
|
+
setAuthState(AuthState.Updating);
|
|
2033
|
+
},
|
|
2034
|
+
setVoiceModeEnabled: (value) => {
|
|
2035
|
+
setVoiceModeEnabled(value);
|
|
2036
|
+
},
|
|
2037
|
+
}), [
|
|
2038
|
+
handleThemeSelect,
|
|
2039
|
+
closeThemeDialog,
|
|
2040
|
+
handleThemeHighlight,
|
|
2041
|
+
handleAuthSelect,
|
|
2042
|
+
setAuthState,
|
|
2043
|
+
onAuthError,
|
|
2044
|
+
handleEditorSelect,
|
|
2045
|
+
exitEditorDialog,
|
|
2046
|
+
exitPrivacyNotice,
|
|
2047
|
+
closeSettingsDialog,
|
|
2048
|
+
closeModelDialog,
|
|
2049
|
+
openVoiceModelDialog,
|
|
2050
|
+
closeVoiceModelDialog,
|
|
2051
|
+
openAgentConfigDialog,
|
|
2052
|
+
closeAgentConfigDialog,
|
|
2053
|
+
openPermissionsDialog,
|
|
2054
|
+
closePermissionsDialog,
|
|
2055
|
+
setShellModeActive,
|
|
2056
|
+
vimHandleInput,
|
|
2057
|
+
handleIdePromptComplete,
|
|
2058
|
+
handleFolderTrustSelect,
|
|
2059
|
+
setIsPolicyUpdateDialogOpen,
|
|
2060
|
+
setConstrainHeight,
|
|
2061
|
+
handleEscapePromptChange,
|
|
2062
|
+
refreshStatic,
|
|
2063
|
+
handleFinalSubmit,
|
|
2064
|
+
handleClearScreen,
|
|
2065
|
+
handleProQuotaChoice,
|
|
2066
|
+
handleValidationChoice,
|
|
2067
|
+
handleOverageMenuChoice,
|
|
2068
|
+
handleEmptyWalletChoice,
|
|
2069
|
+
openSessionBrowser,
|
|
2070
|
+
closeSessionBrowser,
|
|
2071
|
+
handleResumeSession,
|
|
2072
|
+
handleDeleteSession,
|
|
2073
|
+
setQueueErrorMessage,
|
|
2074
|
+
addMessage,
|
|
2075
|
+
popAllMessages,
|
|
2076
|
+
handleApiKeySubmit,
|
|
2077
|
+
handleApiKeyCancel,
|
|
2078
|
+
setBannerVisible,
|
|
2079
|
+
setShortcutsHelpVisible,
|
|
2080
|
+
setCleanUiDetailsVisible,
|
|
2081
|
+
toggleCleanUiDetailsVisible,
|
|
2082
|
+
revealCleanUiDetailsTemporarily,
|
|
2083
|
+
handleWarning,
|
|
2084
|
+
setEmbeddedShellFocused,
|
|
2085
|
+
dismissBackgroundTask,
|
|
2086
|
+
setActiveBackgroundTaskPid,
|
|
2087
|
+
setIsBackgroundTaskListOpen,
|
|
2088
|
+
setAuthContext,
|
|
2089
|
+
setAccountSuspensionInfo,
|
|
2090
|
+
newAgents,
|
|
2091
|
+
config,
|
|
2092
|
+
historyManager,
|
|
2093
|
+
getPreferredEditor,
|
|
2094
|
+
setVoiceModeEnabled,
|
|
2095
|
+
]);
|
|
2096
|
+
return (_jsx(UIStateContext.Provider, { value: uiState, children: _jsx(QuotaContext.Provider, { value: quotaState, children: _jsx(InputContext.Provider, { value: inputState, children: _jsx(UIActionsContext.Provider, { value: uiActions, children: _jsx(ConfigContext.Provider, { value: config, children: _jsx(AppContext.Provider, { value: {
|
|
2097
|
+
version: props.version,
|
|
2098
|
+
startupWarnings: props.startupWarnings || [],
|
|
2099
|
+
}, children: _jsx(ToolActionsProvider, { config: config, toolCalls: allToolCalls, isExpanded: isExpanded, toggleExpansion: toggleExpansion, toggleAllExpansion: toggleAllExpansion, children: _jsx(ShellFocusContext.Provider, { value: isFocused, children: _jsx(MouseProvider, { mouseEventsEnabled: mouseMode, children: _jsx(ScrollProvider, { children: _jsx(App, {}) }) }) }) }) }) }) }) }) }) }));
|
|
2100
|
+
};
|