@quantum-ai/gemini-cli 0.45.8 → 0.45.9
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 +936 -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.mjs +8 -0
- package/dist/interactiveCli.js +187 -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 +77 -36
- package/LICENSE +0 -202
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -203
- 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
package/dist/src/ui/hooks/vim.js
DELETED
|
@@ -1,1312 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { useCallback, useReducer, useEffect, useRef } from 'react';
|
|
7
|
-
import { useVimMode } from '../contexts/VimModeContext.js';
|
|
8
|
-
import { debugLogger } from '@google/gemini-cli-core';
|
|
9
|
-
import { Command } from '../key/keyMatchers.js';
|
|
10
|
-
import { useKeyMatchers } from './useKeyMatchers.js';
|
|
11
|
-
import { toCodePoints } from '../utils/textUtils.js';
|
|
12
|
-
// Constants
|
|
13
|
-
const DIGIT_MULTIPLIER = 10;
|
|
14
|
-
const DEFAULT_COUNT = 1;
|
|
15
|
-
const DIGIT_1_TO_9 = /^[1-9]$/;
|
|
16
|
-
const DOUBLE_ESCAPE_TIMEOUT_MS = 500; // Timeout for double-escape to clear input
|
|
17
|
-
// Command types
|
|
18
|
-
const CMD_TYPES = {
|
|
19
|
-
DELETE_WORD_FORWARD: 'dw',
|
|
20
|
-
DELETE_WORD_BACKWARD: 'db',
|
|
21
|
-
DELETE_WORD_END: 'de',
|
|
22
|
-
DELETE_BIG_WORD_FORWARD: 'dW',
|
|
23
|
-
DELETE_BIG_WORD_BACKWARD: 'dB',
|
|
24
|
-
DELETE_BIG_WORD_END: 'dE',
|
|
25
|
-
CHANGE_WORD_FORWARD: 'cw',
|
|
26
|
-
CHANGE_WORD_BACKWARD: 'cb',
|
|
27
|
-
CHANGE_WORD_END: 'ce',
|
|
28
|
-
CHANGE_BIG_WORD_FORWARD: 'cW',
|
|
29
|
-
CHANGE_BIG_WORD_BACKWARD: 'cB',
|
|
30
|
-
CHANGE_BIG_WORD_END: 'cE',
|
|
31
|
-
DELETE_CHAR: 'x',
|
|
32
|
-
DELETE_CHAR_BEFORE: 'X',
|
|
33
|
-
TOGGLE_CASE: '~',
|
|
34
|
-
REPLACE_CHAR: 'r',
|
|
35
|
-
DELETE_LINE: 'dd',
|
|
36
|
-
CHANGE_LINE: 'cc',
|
|
37
|
-
DELETE_TO_EOL: 'D',
|
|
38
|
-
CHANGE_TO_EOL: 'C',
|
|
39
|
-
CHANGE_MOVEMENT: {
|
|
40
|
-
LEFT: 'ch',
|
|
41
|
-
DOWN: 'cj',
|
|
42
|
-
UP: 'ck',
|
|
43
|
-
RIGHT: 'cl',
|
|
44
|
-
},
|
|
45
|
-
DELETE_MOVEMENT: {
|
|
46
|
-
LEFT: 'dh',
|
|
47
|
-
DOWN: 'dj',
|
|
48
|
-
UP: 'dk',
|
|
49
|
-
RIGHT: 'dl',
|
|
50
|
-
},
|
|
51
|
-
DELETE_TO_SOL: 'd0',
|
|
52
|
-
DELETE_TO_FIRST_NONWS: 'd^',
|
|
53
|
-
CHANGE_TO_SOL: 'c0',
|
|
54
|
-
CHANGE_TO_FIRST_NONWS: 'c^',
|
|
55
|
-
DELETE_TO_FIRST_LINE: 'dgg',
|
|
56
|
-
DELETE_TO_LAST_LINE: 'dG',
|
|
57
|
-
CHANGE_TO_FIRST_LINE: 'cgg',
|
|
58
|
-
CHANGE_TO_LAST_LINE: 'cG',
|
|
59
|
-
YANK_LINE: 'yy',
|
|
60
|
-
YANK_WORD_FORWARD: 'yw',
|
|
61
|
-
YANK_BIG_WORD_FORWARD: 'yW',
|
|
62
|
-
YANK_WORD_END: 'ye',
|
|
63
|
-
YANK_BIG_WORD_END: 'yE',
|
|
64
|
-
YANK_TO_EOL: 'y$',
|
|
65
|
-
PASTE_AFTER: 'p',
|
|
66
|
-
PASTE_BEFORE: 'P',
|
|
67
|
-
};
|
|
68
|
-
const createClearPendingState = () => ({
|
|
69
|
-
count: 0,
|
|
70
|
-
pendingOperator: null,
|
|
71
|
-
pendingFindOp: undefined,
|
|
72
|
-
});
|
|
73
|
-
const initialVimState = {
|
|
74
|
-
mode: 'INSERT',
|
|
75
|
-
count: 0,
|
|
76
|
-
pendingOperator: null,
|
|
77
|
-
pendingFindOp: undefined,
|
|
78
|
-
lastCommand: null,
|
|
79
|
-
lastFind: undefined,
|
|
80
|
-
};
|
|
81
|
-
// Reducer function
|
|
82
|
-
const vimReducer = (state, action) => {
|
|
83
|
-
switch (action.type) {
|
|
84
|
-
case 'SET_MODE':
|
|
85
|
-
return { ...state, mode: action.mode };
|
|
86
|
-
case 'SET_COUNT':
|
|
87
|
-
return { ...state, count: action.count };
|
|
88
|
-
case 'INCREMENT_COUNT':
|
|
89
|
-
return { ...state, count: state.count * DIGIT_MULTIPLIER + action.digit };
|
|
90
|
-
case 'CLEAR_COUNT':
|
|
91
|
-
return { ...state, count: 0 };
|
|
92
|
-
case 'SET_PENDING_OPERATOR':
|
|
93
|
-
return { ...state, pendingOperator: action.operator };
|
|
94
|
-
case 'SET_PENDING_FIND_OP':
|
|
95
|
-
return { ...state, pendingFindOp: action.pendingFindOp };
|
|
96
|
-
case 'SET_LAST_FIND':
|
|
97
|
-
return { ...state, lastFind: action.find };
|
|
98
|
-
case 'SET_LAST_COMMAND':
|
|
99
|
-
return { ...state, lastCommand: action.command };
|
|
100
|
-
case 'CLEAR_PENDING_STATES':
|
|
101
|
-
return {
|
|
102
|
-
...state,
|
|
103
|
-
...createClearPendingState(),
|
|
104
|
-
};
|
|
105
|
-
case 'ESCAPE_TO_NORMAL':
|
|
106
|
-
// Handle escape - clear all pending states (mode is updated via context)
|
|
107
|
-
return {
|
|
108
|
-
...state,
|
|
109
|
-
...createClearPendingState(),
|
|
110
|
-
};
|
|
111
|
-
default:
|
|
112
|
-
return state;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* React hook that provides vim-style editing functionality for text input.
|
|
117
|
-
*
|
|
118
|
-
* Features:
|
|
119
|
-
* - Modal editing (INSERT/NORMAL modes)
|
|
120
|
-
* - Navigation: h,j,k,l,w,b,e,0,$,^,gg,G with count prefixes
|
|
121
|
-
* - Editing: x,a,i,o,O,A,I,d,c,D,C with count prefixes
|
|
122
|
-
* - Complex operations: dd,cc,dw,cw,db,cb,de,ce
|
|
123
|
-
* - Command repetition (.)
|
|
124
|
-
* - Settings persistence
|
|
125
|
-
*
|
|
126
|
-
* @param buffer - TextBuffer instance for text manipulation
|
|
127
|
-
* @param onSubmit - Optional callback for command submission
|
|
128
|
-
* @returns Object with vim state and input handler
|
|
129
|
-
*/
|
|
130
|
-
export function useVim(buffer, onSubmit) {
|
|
131
|
-
const keyMatchers = useKeyMatchers();
|
|
132
|
-
const { vimEnabled, vimMode, setVimMode } = useVimMode();
|
|
133
|
-
const [state, dispatch] = useReducer(vimReducer, initialVimState);
|
|
134
|
-
// Track last escape timestamp for double-escape detection
|
|
135
|
-
const lastEscapeTimestampRef = useRef(0);
|
|
136
|
-
// Sync vim mode from context to local state
|
|
137
|
-
useEffect(() => {
|
|
138
|
-
dispatch({ type: 'SET_MODE', mode: vimMode });
|
|
139
|
-
}, [vimMode]);
|
|
140
|
-
// Helper to update mode in both reducer and context
|
|
141
|
-
const updateMode = useCallback((mode) => {
|
|
142
|
-
setVimMode(mode);
|
|
143
|
-
dispatch({ type: 'SET_MODE', mode });
|
|
144
|
-
}, [setVimMode]);
|
|
145
|
-
// Helper functions using the reducer state
|
|
146
|
-
const getCurrentCount = useCallback(() => state.count || DEFAULT_COUNT, [state.count]);
|
|
147
|
-
// Returns true if two escapes occurred within DOUBLE_ESCAPE_TIMEOUT_MS.
|
|
148
|
-
const checkDoubleEscape = useCallback(() => {
|
|
149
|
-
const now = Date.now();
|
|
150
|
-
const lastEscape = lastEscapeTimestampRef.current;
|
|
151
|
-
lastEscapeTimestampRef.current = now;
|
|
152
|
-
if (now - lastEscape <= DOUBLE_ESCAPE_TIMEOUT_MS) {
|
|
153
|
-
lastEscapeTimestampRef.current = 0;
|
|
154
|
-
return true;
|
|
155
|
-
}
|
|
156
|
-
return false;
|
|
157
|
-
}, []);
|
|
158
|
-
/** Executes common commands to eliminate duplication in dot (.) repeat command */
|
|
159
|
-
const executeCommand = useCallback((cmdType, count, char) => {
|
|
160
|
-
switch (cmdType) {
|
|
161
|
-
case CMD_TYPES.DELETE_WORD_FORWARD: {
|
|
162
|
-
buffer.vimDeleteWordForward(count);
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
case CMD_TYPES.DELETE_WORD_BACKWARD: {
|
|
166
|
-
buffer.vimDeleteWordBackward(count);
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
case CMD_TYPES.DELETE_WORD_END: {
|
|
170
|
-
buffer.vimDeleteWordEnd(count);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case CMD_TYPES.DELETE_BIG_WORD_FORWARD: {
|
|
174
|
-
buffer.vimDeleteBigWordForward(count);
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
case CMD_TYPES.DELETE_BIG_WORD_BACKWARD: {
|
|
178
|
-
buffer.vimDeleteBigWordBackward(count);
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
case CMD_TYPES.DELETE_BIG_WORD_END: {
|
|
182
|
-
buffer.vimDeleteBigWordEnd(count);
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case CMD_TYPES.CHANGE_WORD_FORWARD: {
|
|
186
|
-
buffer.vimChangeWordForward(count);
|
|
187
|
-
updateMode('INSERT');
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
case CMD_TYPES.CHANGE_WORD_BACKWARD: {
|
|
191
|
-
buffer.vimChangeWordBackward(count);
|
|
192
|
-
updateMode('INSERT');
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
case CMD_TYPES.CHANGE_WORD_END: {
|
|
196
|
-
buffer.vimChangeWordEnd(count);
|
|
197
|
-
updateMode('INSERT');
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
case CMD_TYPES.CHANGE_BIG_WORD_FORWARD: {
|
|
201
|
-
buffer.vimChangeBigWordForward(count);
|
|
202
|
-
updateMode('INSERT');
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
case CMD_TYPES.CHANGE_BIG_WORD_BACKWARD: {
|
|
206
|
-
buffer.vimChangeBigWordBackward(count);
|
|
207
|
-
updateMode('INSERT');
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
case CMD_TYPES.CHANGE_BIG_WORD_END: {
|
|
211
|
-
buffer.vimChangeBigWordEnd(count);
|
|
212
|
-
updateMode('INSERT');
|
|
213
|
-
break;
|
|
214
|
-
}
|
|
215
|
-
case CMD_TYPES.DELETE_CHAR: {
|
|
216
|
-
buffer.vimDeleteChar(count);
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
case CMD_TYPES.DELETE_CHAR_BEFORE: {
|
|
220
|
-
buffer.vimDeleteCharBefore(count);
|
|
221
|
-
break;
|
|
222
|
-
}
|
|
223
|
-
case CMD_TYPES.TOGGLE_CASE: {
|
|
224
|
-
buffer.vimToggleCase(count);
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
case CMD_TYPES.REPLACE_CHAR: {
|
|
228
|
-
if (char)
|
|
229
|
-
buffer.vimReplaceChar(char, count);
|
|
230
|
-
break;
|
|
231
|
-
}
|
|
232
|
-
case CMD_TYPES.DELETE_LINE: {
|
|
233
|
-
buffer.vimDeleteLine(count);
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
case CMD_TYPES.CHANGE_LINE: {
|
|
237
|
-
buffer.vimChangeLine(count);
|
|
238
|
-
updateMode('INSERT');
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
case CMD_TYPES.CHANGE_MOVEMENT.LEFT:
|
|
242
|
-
case CMD_TYPES.CHANGE_MOVEMENT.DOWN:
|
|
243
|
-
case CMD_TYPES.CHANGE_MOVEMENT.UP:
|
|
244
|
-
case CMD_TYPES.CHANGE_MOVEMENT.RIGHT: {
|
|
245
|
-
const movementMap = {
|
|
246
|
-
[CMD_TYPES.CHANGE_MOVEMENT.LEFT]: 'h',
|
|
247
|
-
[CMD_TYPES.CHANGE_MOVEMENT.DOWN]: 'j',
|
|
248
|
-
[CMD_TYPES.CHANGE_MOVEMENT.UP]: 'k',
|
|
249
|
-
[CMD_TYPES.CHANGE_MOVEMENT.RIGHT]: 'l',
|
|
250
|
-
};
|
|
251
|
-
const movementType = movementMap[cmdType];
|
|
252
|
-
if (movementType) {
|
|
253
|
-
buffer.vimChangeMovement(movementType, count);
|
|
254
|
-
updateMode('INSERT');
|
|
255
|
-
}
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
case CMD_TYPES.DELETE_TO_EOL: {
|
|
259
|
-
buffer.vimDeleteToEndOfLine(count);
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
case CMD_TYPES.DELETE_TO_SOL: {
|
|
263
|
-
buffer.vimDeleteToStartOfLine();
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
case CMD_TYPES.DELETE_MOVEMENT.LEFT:
|
|
267
|
-
case CMD_TYPES.DELETE_MOVEMENT.DOWN:
|
|
268
|
-
case CMD_TYPES.DELETE_MOVEMENT.UP:
|
|
269
|
-
case CMD_TYPES.DELETE_MOVEMENT.RIGHT: {
|
|
270
|
-
const movementMap = {
|
|
271
|
-
[CMD_TYPES.DELETE_MOVEMENT.LEFT]: 'h',
|
|
272
|
-
[CMD_TYPES.DELETE_MOVEMENT.DOWN]: 'j',
|
|
273
|
-
[CMD_TYPES.DELETE_MOVEMENT.UP]: 'k',
|
|
274
|
-
[CMD_TYPES.DELETE_MOVEMENT.RIGHT]: 'l',
|
|
275
|
-
};
|
|
276
|
-
const movementType = movementMap[cmdType];
|
|
277
|
-
if (movementType) {
|
|
278
|
-
buffer.vimChangeMovement(movementType, count);
|
|
279
|
-
}
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
case CMD_TYPES.CHANGE_TO_EOL: {
|
|
283
|
-
buffer.vimChangeToEndOfLine(count);
|
|
284
|
-
updateMode('INSERT');
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
case CMD_TYPES.DELETE_TO_FIRST_NONWS: {
|
|
288
|
-
buffer.vimDeleteToFirstNonWhitespace();
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
case CMD_TYPES.CHANGE_TO_SOL: {
|
|
292
|
-
buffer.vimChangeToStartOfLine();
|
|
293
|
-
updateMode('INSERT');
|
|
294
|
-
break;
|
|
295
|
-
}
|
|
296
|
-
case CMD_TYPES.CHANGE_TO_FIRST_NONWS: {
|
|
297
|
-
buffer.vimChangeToFirstNonWhitespace();
|
|
298
|
-
updateMode('INSERT');
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
case CMD_TYPES.DELETE_TO_FIRST_LINE: {
|
|
302
|
-
buffer.vimDeleteToFirstLine(count);
|
|
303
|
-
break;
|
|
304
|
-
}
|
|
305
|
-
case CMD_TYPES.DELETE_TO_LAST_LINE: {
|
|
306
|
-
buffer.vimDeleteToLastLine(count);
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
case CMD_TYPES.CHANGE_TO_FIRST_LINE: {
|
|
310
|
-
buffer.vimDeleteToFirstLine(count);
|
|
311
|
-
updateMode('INSERT');
|
|
312
|
-
break;
|
|
313
|
-
}
|
|
314
|
-
case CMD_TYPES.CHANGE_TO_LAST_LINE: {
|
|
315
|
-
buffer.vimDeleteToLastLine(count);
|
|
316
|
-
updateMode('INSERT');
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
case CMD_TYPES.YANK_LINE: {
|
|
320
|
-
buffer.vimYankLine(count);
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
case CMD_TYPES.YANK_WORD_FORWARD: {
|
|
324
|
-
buffer.vimYankWordForward(count);
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
case CMD_TYPES.YANK_BIG_WORD_FORWARD: {
|
|
328
|
-
buffer.vimYankBigWordForward(count);
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
case CMD_TYPES.YANK_WORD_END: {
|
|
332
|
-
buffer.vimYankWordEnd(count);
|
|
333
|
-
break;
|
|
334
|
-
}
|
|
335
|
-
case CMD_TYPES.YANK_BIG_WORD_END: {
|
|
336
|
-
buffer.vimYankBigWordEnd(count);
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
case CMD_TYPES.YANK_TO_EOL: {
|
|
340
|
-
buffer.vimYankToEndOfLine(count);
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
case CMD_TYPES.PASTE_AFTER: {
|
|
344
|
-
buffer.vimPasteAfter(count);
|
|
345
|
-
break;
|
|
346
|
-
}
|
|
347
|
-
case CMD_TYPES.PASTE_BEFORE: {
|
|
348
|
-
buffer.vimPasteBefore(count);
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
default:
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
return true;
|
|
355
|
-
}, [buffer, updateMode]);
|
|
356
|
-
/**
|
|
357
|
-
* Handles key input in INSERT mode
|
|
358
|
-
* @param normalizedKey - The normalized key input
|
|
359
|
-
* @returns boolean indicating if the key was handled
|
|
360
|
-
*/
|
|
361
|
-
const handleInsertModeInput = useCallback((normalizedKey) => {
|
|
362
|
-
if (keyMatchers[Command.ESCAPE](normalizedKey)) {
|
|
363
|
-
// Record for double-escape detection (clearing happens in NORMAL mode)
|
|
364
|
-
checkDoubleEscape();
|
|
365
|
-
buffer.vimEscapeInsertMode();
|
|
366
|
-
dispatch({ type: 'ESCAPE_TO_NORMAL' });
|
|
367
|
-
updateMode('NORMAL');
|
|
368
|
-
return true;
|
|
369
|
-
}
|
|
370
|
-
// In INSERT mode, let InputPrompt handle completion keys and special commands
|
|
371
|
-
if (normalizedKey.name === 'tab' ||
|
|
372
|
-
(normalizedKey.name === 'enter' && !normalizedKey.ctrl) ||
|
|
373
|
-
normalizedKey.name === 'up' ||
|
|
374
|
-
normalizedKey.name === 'down' ||
|
|
375
|
-
(normalizedKey.ctrl && normalizedKey.name === 'r')) {
|
|
376
|
-
return false; // Let InputPrompt handle completion
|
|
377
|
-
}
|
|
378
|
-
// Let InputPrompt handle Ctrl+U (kill line left) and Ctrl+K (kill line right)
|
|
379
|
-
if (normalizedKey.ctrl &&
|
|
380
|
-
(normalizedKey.name === 'u' || normalizedKey.name === 'k')) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
// Let InputPrompt handle Ctrl+V for clipboard image pasting
|
|
384
|
-
if (normalizedKey.ctrl && normalizedKey.name === 'v') {
|
|
385
|
-
return false; // Let InputPrompt handle clipboard functionality
|
|
386
|
-
}
|
|
387
|
-
// Let InputPrompt handle shell commands
|
|
388
|
-
if (normalizedKey.sequence === '!' && buffer.text.length === 0) {
|
|
389
|
-
return false;
|
|
390
|
-
}
|
|
391
|
-
// Special handling for Enter key to allow command submission (lower priority than completion)
|
|
392
|
-
if (normalizedKey.name === 'enter' &&
|
|
393
|
-
!normalizedKey.alt &&
|
|
394
|
-
!normalizedKey.ctrl &&
|
|
395
|
-
!normalizedKey.cmd) {
|
|
396
|
-
if (buffer.text.trim() && onSubmit) {
|
|
397
|
-
// Handle command submission directly
|
|
398
|
-
const submittedValue = buffer.text;
|
|
399
|
-
buffer.setText('');
|
|
400
|
-
onSubmit(submittedValue);
|
|
401
|
-
return true;
|
|
402
|
-
}
|
|
403
|
-
return true; // Handled by vim (even if no onSubmit callback)
|
|
404
|
-
}
|
|
405
|
-
return buffer.handleInput(normalizedKey);
|
|
406
|
-
}, [buffer, dispatch, updateMode, onSubmit, checkDoubleEscape, keyMatchers]);
|
|
407
|
-
/**
|
|
408
|
-
* Normalizes key input to ensure all required properties are present
|
|
409
|
-
* @param key - Raw key input
|
|
410
|
-
* @returns Normalized key with all properties
|
|
411
|
-
*/
|
|
412
|
-
const normalizeKey = useCallback((key) => ({
|
|
413
|
-
name: key.name || '',
|
|
414
|
-
sequence: key.sequence || '',
|
|
415
|
-
shift: key.shift || false,
|
|
416
|
-
alt: key.alt || false,
|
|
417
|
-
ctrl: key.ctrl || false,
|
|
418
|
-
cmd: key.cmd || false,
|
|
419
|
-
insertable: key.insertable || false,
|
|
420
|
-
}), []);
|
|
421
|
-
/**
|
|
422
|
-
* Handles change movement commands (ch, cj, ck, cl)
|
|
423
|
-
* @param movement - The movement direction
|
|
424
|
-
* @returns boolean indicating if command was handled
|
|
425
|
-
*/
|
|
426
|
-
const handleChangeMovement = useCallback((movement) => {
|
|
427
|
-
const count = getCurrentCount();
|
|
428
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
429
|
-
buffer.vimChangeMovement(movement, count);
|
|
430
|
-
updateMode('INSERT');
|
|
431
|
-
const cmdTypeMap = {
|
|
432
|
-
h: CMD_TYPES.CHANGE_MOVEMENT.LEFT,
|
|
433
|
-
j: CMD_TYPES.CHANGE_MOVEMENT.DOWN,
|
|
434
|
-
k: CMD_TYPES.CHANGE_MOVEMENT.UP,
|
|
435
|
-
l: CMD_TYPES.CHANGE_MOVEMENT.RIGHT,
|
|
436
|
-
};
|
|
437
|
-
dispatch({
|
|
438
|
-
type: 'SET_LAST_COMMAND',
|
|
439
|
-
command: { type: cmdTypeMap[movement], count },
|
|
440
|
-
});
|
|
441
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
442
|
-
return true;
|
|
443
|
-
}, [getCurrentCount, dispatch, buffer, updateMode]);
|
|
444
|
-
/**
|
|
445
|
-
* Handles delete movement commands (dh, dj, dk, dl)
|
|
446
|
-
* @param movement - The movement direction
|
|
447
|
-
* @returns boolean indicating if command was handled
|
|
448
|
-
*/
|
|
449
|
-
const handleDeleteMovement = useCallback((movement) => {
|
|
450
|
-
const count = getCurrentCount();
|
|
451
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
452
|
-
// Note: vimChangeMovement performs the same deletion operation as what we need.
|
|
453
|
-
// The only difference between 'change' and 'delete' is that 'change' enters
|
|
454
|
-
// INSERT mode after deletion, which is handled here (we simply don't call updateMode).
|
|
455
|
-
buffer.vimChangeMovement(movement, count);
|
|
456
|
-
const cmdTypeMap = {
|
|
457
|
-
h: CMD_TYPES.DELETE_MOVEMENT.LEFT,
|
|
458
|
-
j: CMD_TYPES.DELETE_MOVEMENT.DOWN,
|
|
459
|
-
k: CMD_TYPES.DELETE_MOVEMENT.UP,
|
|
460
|
-
l: CMD_TYPES.DELETE_MOVEMENT.RIGHT,
|
|
461
|
-
};
|
|
462
|
-
dispatch({
|
|
463
|
-
type: 'SET_LAST_COMMAND',
|
|
464
|
-
command: { type: cmdTypeMap[movement], count },
|
|
465
|
-
});
|
|
466
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
467
|
-
return true;
|
|
468
|
-
}, [getCurrentCount, dispatch, buffer]);
|
|
469
|
-
/**
|
|
470
|
-
* Handles operator-motion commands (dw/cw, db/cb, de/ce)
|
|
471
|
-
* @param operator - The operator type ('d' for delete, 'c' for change)
|
|
472
|
-
* @param motion - The motion type ('w', 'b', 'e')
|
|
473
|
-
* @returns boolean indicating if command was handled
|
|
474
|
-
*/
|
|
475
|
-
const handleOperatorMotion = useCallback((operator, motion) => {
|
|
476
|
-
const count = getCurrentCount();
|
|
477
|
-
const commandMap = {
|
|
478
|
-
d: {
|
|
479
|
-
w: CMD_TYPES.DELETE_WORD_FORWARD,
|
|
480
|
-
b: CMD_TYPES.DELETE_WORD_BACKWARD,
|
|
481
|
-
e: CMD_TYPES.DELETE_WORD_END,
|
|
482
|
-
W: CMD_TYPES.DELETE_BIG_WORD_FORWARD,
|
|
483
|
-
B: CMD_TYPES.DELETE_BIG_WORD_BACKWARD,
|
|
484
|
-
E: CMD_TYPES.DELETE_BIG_WORD_END,
|
|
485
|
-
},
|
|
486
|
-
c: {
|
|
487
|
-
w: CMD_TYPES.CHANGE_WORD_FORWARD,
|
|
488
|
-
b: CMD_TYPES.CHANGE_WORD_BACKWARD,
|
|
489
|
-
e: CMD_TYPES.CHANGE_WORD_END,
|
|
490
|
-
W: CMD_TYPES.CHANGE_BIG_WORD_FORWARD,
|
|
491
|
-
B: CMD_TYPES.CHANGE_BIG_WORD_BACKWARD,
|
|
492
|
-
E: CMD_TYPES.CHANGE_BIG_WORD_END,
|
|
493
|
-
},
|
|
494
|
-
};
|
|
495
|
-
const cmdType = commandMap[operator][motion];
|
|
496
|
-
executeCommand(cmdType, count);
|
|
497
|
-
dispatch({
|
|
498
|
-
type: 'SET_LAST_COMMAND',
|
|
499
|
-
command: { type: cmdType, count },
|
|
500
|
-
});
|
|
501
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
502
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
503
|
-
return true;
|
|
504
|
-
}, [getCurrentCount, executeCommand, dispatch]);
|
|
505
|
-
const handleInput = useCallback((key) => {
|
|
506
|
-
if (!vimEnabled) {
|
|
507
|
-
return false; // Let InputPrompt handle it
|
|
508
|
-
}
|
|
509
|
-
let normalizedKey;
|
|
510
|
-
try {
|
|
511
|
-
normalizedKey = normalizeKey(key);
|
|
512
|
-
}
|
|
513
|
-
catch (error) {
|
|
514
|
-
// Handle malformed key inputs gracefully
|
|
515
|
-
debugLogger.warn('Malformed key input in vim mode:', key, error);
|
|
516
|
-
return false;
|
|
517
|
-
}
|
|
518
|
-
// Let InputPrompt handle Ctrl+C for clearing input (works in all modes)
|
|
519
|
-
if (keyMatchers[Command.CLEAR_INPUT](normalizedKey)) {
|
|
520
|
-
return false;
|
|
521
|
-
}
|
|
522
|
-
// Handle INSERT mode
|
|
523
|
-
if (state.mode === 'INSERT') {
|
|
524
|
-
return handleInsertModeInput(normalizedKey);
|
|
525
|
-
}
|
|
526
|
-
// Handle NORMAL mode
|
|
527
|
-
if (state.mode === 'NORMAL') {
|
|
528
|
-
if (keyMatchers[Command.ESCAPE](normalizedKey)) {
|
|
529
|
-
if (state.pendingOperator || state.pendingFindOp) {
|
|
530
|
-
dispatch({ type: 'CLEAR_PENDING_STATES' });
|
|
531
|
-
lastEscapeTimestampRef.current = 0;
|
|
532
|
-
return true; // Handled by vim
|
|
533
|
-
}
|
|
534
|
-
// Check for double-escape to clear buffer
|
|
535
|
-
if (checkDoubleEscape()) {
|
|
536
|
-
buffer.setText('');
|
|
537
|
-
return true;
|
|
538
|
-
}
|
|
539
|
-
// First escape in NORMAL mode - pass through for UI feedback
|
|
540
|
-
return false;
|
|
541
|
-
}
|
|
542
|
-
// Handle count input (numbers 1-9, and 0 if count > 0)
|
|
543
|
-
if (DIGIT_1_TO_9.test(normalizedKey.sequence) ||
|
|
544
|
-
(normalizedKey.sequence === '0' && state.count > 0)) {
|
|
545
|
-
dispatch({
|
|
546
|
-
type: 'INCREMENT_COUNT',
|
|
547
|
-
digit: parseInt(normalizedKey.sequence, 10),
|
|
548
|
-
});
|
|
549
|
-
return true; // Handled by vim
|
|
550
|
-
}
|
|
551
|
-
const repeatCount = getCurrentCount();
|
|
552
|
-
// Handle pending find/till/replace — consume the next char as the target
|
|
553
|
-
if (state.pendingFindOp !== undefined) {
|
|
554
|
-
const targetChar = normalizedKey.sequence;
|
|
555
|
-
const { op, operator, count: findCount } = state.pendingFindOp;
|
|
556
|
-
dispatch({ type: 'SET_PENDING_FIND_OP', pendingFindOp: undefined });
|
|
557
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
558
|
-
if (targetChar && toCodePoints(targetChar).length === 1) {
|
|
559
|
-
if (op === 'r') {
|
|
560
|
-
buffer.vimReplaceChar(targetChar, findCount);
|
|
561
|
-
dispatch({
|
|
562
|
-
type: 'SET_LAST_COMMAND',
|
|
563
|
-
command: {
|
|
564
|
-
type: CMD_TYPES.REPLACE_CHAR,
|
|
565
|
-
count: findCount,
|
|
566
|
-
char: targetChar,
|
|
567
|
-
},
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
const isBackward = op === 'F' || op === 'T';
|
|
572
|
-
const isTill = op === 't' || op === 'T';
|
|
573
|
-
if (operator === 'd' || operator === 'c') {
|
|
574
|
-
const del = isBackward
|
|
575
|
-
? buffer.vimDeleteToCharBackward
|
|
576
|
-
: buffer.vimDeleteToCharForward;
|
|
577
|
-
del(targetChar, findCount, isTill);
|
|
578
|
-
if (operator === 'c')
|
|
579
|
-
updateMode('INSERT');
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
const find = isBackward
|
|
583
|
-
? buffer.vimFindCharBackward
|
|
584
|
-
: buffer.vimFindCharForward;
|
|
585
|
-
find(targetChar, findCount, isTill);
|
|
586
|
-
dispatch({
|
|
587
|
-
type: 'SET_LAST_FIND',
|
|
588
|
-
find: { op, char: targetChar },
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
return true;
|
|
594
|
-
}
|
|
595
|
-
switch (normalizedKey.sequence) {
|
|
596
|
-
case 'h': {
|
|
597
|
-
// Check if this is part of a delete or change command (dh/ch)
|
|
598
|
-
if (state.pendingOperator === 'd') {
|
|
599
|
-
return handleDeleteMovement('h');
|
|
600
|
-
}
|
|
601
|
-
if (state.pendingOperator === 'c') {
|
|
602
|
-
return handleChangeMovement('h');
|
|
603
|
-
}
|
|
604
|
-
// Normal left movement
|
|
605
|
-
buffer.vimMoveLeft(repeatCount);
|
|
606
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
607
|
-
return true;
|
|
608
|
-
}
|
|
609
|
-
case 'j': {
|
|
610
|
-
// Check if this is part of a delete or change command (dj/cj)
|
|
611
|
-
if (state.pendingOperator === 'd') {
|
|
612
|
-
return handleDeleteMovement('j');
|
|
613
|
-
}
|
|
614
|
-
if (state.pendingOperator === 'c') {
|
|
615
|
-
return handleChangeMovement('j');
|
|
616
|
-
}
|
|
617
|
-
// Normal down movement
|
|
618
|
-
buffer.vimMoveDown(repeatCount);
|
|
619
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
620
|
-
return true;
|
|
621
|
-
}
|
|
622
|
-
case 'k': {
|
|
623
|
-
// Check if this is part of a delete or change command (dk/ck)
|
|
624
|
-
if (state.pendingOperator === 'd') {
|
|
625
|
-
return handleDeleteMovement('k');
|
|
626
|
-
}
|
|
627
|
-
if (state.pendingOperator === 'c') {
|
|
628
|
-
return handleChangeMovement('k');
|
|
629
|
-
}
|
|
630
|
-
// Normal up movement
|
|
631
|
-
buffer.vimMoveUp(repeatCount);
|
|
632
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
633
|
-
return true;
|
|
634
|
-
}
|
|
635
|
-
case 'l': {
|
|
636
|
-
// Check if this is part of a delete or change command (dl/cl)
|
|
637
|
-
if (state.pendingOperator === 'd') {
|
|
638
|
-
return handleDeleteMovement('l');
|
|
639
|
-
}
|
|
640
|
-
if (state.pendingOperator === 'c') {
|
|
641
|
-
return handleChangeMovement('l');
|
|
642
|
-
}
|
|
643
|
-
// Normal right movement
|
|
644
|
-
buffer.vimMoveRight(repeatCount);
|
|
645
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
646
|
-
return true;
|
|
647
|
-
}
|
|
648
|
-
case 'w': {
|
|
649
|
-
// Check if this is part of a delete or change command (dw/cw)
|
|
650
|
-
if (state.pendingOperator === 'd') {
|
|
651
|
-
return handleOperatorMotion('d', 'w');
|
|
652
|
-
}
|
|
653
|
-
if (state.pendingOperator === 'c') {
|
|
654
|
-
return handleOperatorMotion('c', 'w');
|
|
655
|
-
}
|
|
656
|
-
if (state.pendingOperator === 'y') {
|
|
657
|
-
const count = getCurrentCount();
|
|
658
|
-
executeCommand(CMD_TYPES.YANK_WORD_FORWARD, count);
|
|
659
|
-
dispatch({
|
|
660
|
-
type: 'SET_LAST_COMMAND',
|
|
661
|
-
command: { type: CMD_TYPES.YANK_WORD_FORWARD, count },
|
|
662
|
-
});
|
|
663
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
664
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
665
|
-
return true;
|
|
666
|
-
}
|
|
667
|
-
// Normal word movement
|
|
668
|
-
buffer.vimMoveWordForward(repeatCount);
|
|
669
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
670
|
-
return true;
|
|
671
|
-
}
|
|
672
|
-
case 'W': {
|
|
673
|
-
// Check if this is part of a delete or change command (dW/cW)
|
|
674
|
-
if (state.pendingOperator === 'd') {
|
|
675
|
-
return handleOperatorMotion('d', 'W');
|
|
676
|
-
}
|
|
677
|
-
if (state.pendingOperator === 'c') {
|
|
678
|
-
return handleOperatorMotion('c', 'W');
|
|
679
|
-
}
|
|
680
|
-
if (state.pendingOperator === 'y') {
|
|
681
|
-
const count = getCurrentCount();
|
|
682
|
-
executeCommand(CMD_TYPES.YANK_BIG_WORD_FORWARD, count);
|
|
683
|
-
dispatch({
|
|
684
|
-
type: 'SET_LAST_COMMAND',
|
|
685
|
-
command: { type: CMD_TYPES.YANK_BIG_WORD_FORWARD, count },
|
|
686
|
-
});
|
|
687
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
688
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
689
|
-
return true;
|
|
690
|
-
}
|
|
691
|
-
// Normal big word movement
|
|
692
|
-
buffer.vimMoveBigWordForward(repeatCount);
|
|
693
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
694
|
-
return true;
|
|
695
|
-
}
|
|
696
|
-
case 'b': {
|
|
697
|
-
// Check if this is part of a delete or change command (db/cb)
|
|
698
|
-
if (state.pendingOperator === 'd') {
|
|
699
|
-
return handleOperatorMotion('d', 'b');
|
|
700
|
-
}
|
|
701
|
-
if (state.pendingOperator === 'c') {
|
|
702
|
-
return handleOperatorMotion('c', 'b');
|
|
703
|
-
}
|
|
704
|
-
// Normal backward word movement
|
|
705
|
-
buffer.vimMoveWordBackward(repeatCount);
|
|
706
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
707
|
-
return true;
|
|
708
|
-
}
|
|
709
|
-
case 'B': {
|
|
710
|
-
// Check if this is part of a delete or change command (dB/cB)
|
|
711
|
-
if (state.pendingOperator === 'd') {
|
|
712
|
-
return handleOperatorMotion('d', 'B');
|
|
713
|
-
}
|
|
714
|
-
if (state.pendingOperator === 'c') {
|
|
715
|
-
return handleOperatorMotion('c', 'B');
|
|
716
|
-
}
|
|
717
|
-
// Normal backward big word movement
|
|
718
|
-
buffer.vimMoveBigWordBackward(repeatCount);
|
|
719
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
720
|
-
return true;
|
|
721
|
-
}
|
|
722
|
-
case 'e': {
|
|
723
|
-
// Check if this is part of a delete or change command (de/ce)
|
|
724
|
-
if (state.pendingOperator === 'd') {
|
|
725
|
-
return handleOperatorMotion('d', 'e');
|
|
726
|
-
}
|
|
727
|
-
if (state.pendingOperator === 'c') {
|
|
728
|
-
return handleOperatorMotion('c', 'e');
|
|
729
|
-
}
|
|
730
|
-
if (state.pendingOperator === 'y') {
|
|
731
|
-
const count = getCurrentCount();
|
|
732
|
-
executeCommand(CMD_TYPES.YANK_WORD_END, count);
|
|
733
|
-
dispatch({
|
|
734
|
-
type: 'SET_LAST_COMMAND',
|
|
735
|
-
command: { type: CMD_TYPES.YANK_WORD_END, count },
|
|
736
|
-
});
|
|
737
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
738
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
739
|
-
return true;
|
|
740
|
-
}
|
|
741
|
-
// Normal word end movement
|
|
742
|
-
buffer.vimMoveWordEnd(repeatCount);
|
|
743
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
744
|
-
return true;
|
|
745
|
-
}
|
|
746
|
-
case 'E': {
|
|
747
|
-
// Check if this is part of a delete or change command (dE/cE)
|
|
748
|
-
if (state.pendingOperator === 'd') {
|
|
749
|
-
return handleOperatorMotion('d', 'E');
|
|
750
|
-
}
|
|
751
|
-
if (state.pendingOperator === 'c') {
|
|
752
|
-
return handleOperatorMotion('c', 'E');
|
|
753
|
-
}
|
|
754
|
-
if (state.pendingOperator === 'y') {
|
|
755
|
-
const count = getCurrentCount();
|
|
756
|
-
executeCommand(CMD_TYPES.YANK_BIG_WORD_END, count);
|
|
757
|
-
dispatch({
|
|
758
|
-
type: 'SET_LAST_COMMAND',
|
|
759
|
-
command: { type: CMD_TYPES.YANK_BIG_WORD_END, count },
|
|
760
|
-
});
|
|
761
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
762
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
763
|
-
return true;
|
|
764
|
-
}
|
|
765
|
-
// Normal big word end movement
|
|
766
|
-
buffer.vimMoveBigWordEnd(repeatCount);
|
|
767
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
768
|
-
return true;
|
|
769
|
-
}
|
|
770
|
-
case 'x': {
|
|
771
|
-
// Delete character under cursor
|
|
772
|
-
buffer.vimDeleteChar(repeatCount);
|
|
773
|
-
dispatch({
|
|
774
|
-
type: 'SET_LAST_COMMAND',
|
|
775
|
-
command: { type: CMD_TYPES.DELETE_CHAR, count: repeatCount },
|
|
776
|
-
});
|
|
777
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
778
|
-
return true;
|
|
779
|
-
}
|
|
780
|
-
case 'X': {
|
|
781
|
-
buffer.vimDeleteCharBefore(repeatCount);
|
|
782
|
-
dispatch({
|
|
783
|
-
type: 'SET_LAST_COMMAND',
|
|
784
|
-
command: {
|
|
785
|
-
type: CMD_TYPES.DELETE_CHAR_BEFORE,
|
|
786
|
-
count: repeatCount,
|
|
787
|
-
},
|
|
788
|
-
});
|
|
789
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
790
|
-
return true;
|
|
791
|
-
}
|
|
792
|
-
case '~': {
|
|
793
|
-
buffer.vimToggleCase(repeatCount);
|
|
794
|
-
dispatch({
|
|
795
|
-
type: 'SET_LAST_COMMAND',
|
|
796
|
-
command: { type: CMD_TYPES.TOGGLE_CASE, count: repeatCount },
|
|
797
|
-
});
|
|
798
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
799
|
-
return true;
|
|
800
|
-
}
|
|
801
|
-
case 'r': {
|
|
802
|
-
// Replace char: next keypress is the replacement. Not composable with d/c.
|
|
803
|
-
dispatch({ type: 'CLEAR_PENDING_STATES' });
|
|
804
|
-
dispatch({
|
|
805
|
-
type: 'SET_PENDING_FIND_OP',
|
|
806
|
-
pendingFindOp: {
|
|
807
|
-
op: 'r',
|
|
808
|
-
operator: undefined,
|
|
809
|
-
count: repeatCount,
|
|
810
|
-
},
|
|
811
|
-
});
|
|
812
|
-
return true;
|
|
813
|
-
}
|
|
814
|
-
case 'f':
|
|
815
|
-
case 'F':
|
|
816
|
-
case 't':
|
|
817
|
-
case 'T': {
|
|
818
|
-
const op = normalizedKey.sequence;
|
|
819
|
-
const operator = state.pendingOperator === 'd' || state.pendingOperator === 'c'
|
|
820
|
-
? state.pendingOperator
|
|
821
|
-
: undefined;
|
|
822
|
-
dispatch({ type: 'CLEAR_PENDING_STATES' });
|
|
823
|
-
dispatch({
|
|
824
|
-
type: 'SET_PENDING_FIND_OP',
|
|
825
|
-
pendingFindOp: { op, operator, count: repeatCount },
|
|
826
|
-
});
|
|
827
|
-
return true;
|
|
828
|
-
}
|
|
829
|
-
case ';':
|
|
830
|
-
case ',': {
|
|
831
|
-
if (state.lastFind) {
|
|
832
|
-
const { op, char } = state.lastFind;
|
|
833
|
-
const isForward = op === 'f' || op === 't';
|
|
834
|
-
const isTill = op === 't' || op === 'T';
|
|
835
|
-
const reverse = normalizedKey.sequence === ',';
|
|
836
|
-
const shouldMoveForward = reverse ? !isForward : isForward;
|
|
837
|
-
if (shouldMoveForward) {
|
|
838
|
-
buffer.vimFindCharForward(char, repeatCount, isTill);
|
|
839
|
-
}
|
|
840
|
-
else {
|
|
841
|
-
buffer.vimFindCharBackward(char, repeatCount, isTill);
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
845
|
-
return true;
|
|
846
|
-
}
|
|
847
|
-
case 'i': {
|
|
848
|
-
buffer.vimInsertAtCursor();
|
|
849
|
-
updateMode('INSERT');
|
|
850
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
851
|
-
return true;
|
|
852
|
-
}
|
|
853
|
-
case 'a': {
|
|
854
|
-
// Enter INSERT mode after current position
|
|
855
|
-
buffer.vimAppendAtCursor();
|
|
856
|
-
updateMode('INSERT');
|
|
857
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
858
|
-
return true;
|
|
859
|
-
}
|
|
860
|
-
case 'o': {
|
|
861
|
-
// Insert new line after current line and enter INSERT mode
|
|
862
|
-
buffer.vimOpenLineBelow();
|
|
863
|
-
updateMode('INSERT');
|
|
864
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
865
|
-
return true;
|
|
866
|
-
}
|
|
867
|
-
case 'O': {
|
|
868
|
-
// Insert new line before current line and enter INSERT mode
|
|
869
|
-
buffer.vimOpenLineAbove();
|
|
870
|
-
updateMode('INSERT');
|
|
871
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
872
|
-
return true;
|
|
873
|
-
}
|
|
874
|
-
case '0': {
|
|
875
|
-
// Check if this is part of a delete command (d0)
|
|
876
|
-
if (state.pendingOperator === 'd') {
|
|
877
|
-
buffer.vimDeleteToStartOfLine();
|
|
878
|
-
dispatch({
|
|
879
|
-
type: 'SET_LAST_COMMAND',
|
|
880
|
-
command: { type: CMD_TYPES.DELETE_TO_SOL, count: 1 },
|
|
881
|
-
});
|
|
882
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
883
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
884
|
-
return true;
|
|
885
|
-
}
|
|
886
|
-
// Check if this is part of a change command (c0)
|
|
887
|
-
if (state.pendingOperator === 'c') {
|
|
888
|
-
buffer.vimChangeToStartOfLine();
|
|
889
|
-
dispatch({
|
|
890
|
-
type: 'SET_LAST_COMMAND',
|
|
891
|
-
command: { type: CMD_TYPES.CHANGE_TO_SOL, count: 1 },
|
|
892
|
-
});
|
|
893
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
894
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
895
|
-
updateMode('INSERT');
|
|
896
|
-
return true;
|
|
897
|
-
}
|
|
898
|
-
// Move to start of line
|
|
899
|
-
buffer.vimMoveToLineStart();
|
|
900
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
901
|
-
return true;
|
|
902
|
-
}
|
|
903
|
-
case '$': {
|
|
904
|
-
// Check if this is part of a delete command (d$)
|
|
905
|
-
if (state.pendingOperator === 'd') {
|
|
906
|
-
buffer.vimDeleteToEndOfLine(repeatCount);
|
|
907
|
-
dispatch({
|
|
908
|
-
type: 'SET_LAST_COMMAND',
|
|
909
|
-
command: { type: CMD_TYPES.DELETE_TO_EOL, count: repeatCount },
|
|
910
|
-
});
|
|
911
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
912
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
913
|
-
return true;
|
|
914
|
-
}
|
|
915
|
-
// Check if this is part of a change command (c$)
|
|
916
|
-
if (state.pendingOperator === 'c') {
|
|
917
|
-
buffer.vimChangeToEndOfLine(repeatCount);
|
|
918
|
-
dispatch({
|
|
919
|
-
type: 'SET_LAST_COMMAND',
|
|
920
|
-
command: { type: CMD_TYPES.CHANGE_TO_EOL, count: repeatCount },
|
|
921
|
-
});
|
|
922
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
923
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
924
|
-
updateMode('INSERT');
|
|
925
|
-
return true;
|
|
926
|
-
}
|
|
927
|
-
// Check if this is part of a yank command (y$)
|
|
928
|
-
if (state.pendingOperator === 'y') {
|
|
929
|
-
executeCommand(CMD_TYPES.YANK_TO_EOL, repeatCount);
|
|
930
|
-
dispatch({
|
|
931
|
-
type: 'SET_LAST_COMMAND',
|
|
932
|
-
command: { type: CMD_TYPES.YANK_TO_EOL, count: repeatCount },
|
|
933
|
-
});
|
|
934
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
935
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
936
|
-
return true;
|
|
937
|
-
}
|
|
938
|
-
// Move to end of line (with count, move down count-1 lines first)
|
|
939
|
-
if (repeatCount > 1) {
|
|
940
|
-
buffer.vimMoveDown(repeatCount - 1);
|
|
941
|
-
}
|
|
942
|
-
buffer.vimMoveToLineEnd();
|
|
943
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
944
|
-
return true;
|
|
945
|
-
}
|
|
946
|
-
case '^': {
|
|
947
|
-
// Check if this is part of a delete command (d^)
|
|
948
|
-
if (state.pendingOperator === 'd') {
|
|
949
|
-
buffer.vimDeleteToFirstNonWhitespace();
|
|
950
|
-
dispatch({
|
|
951
|
-
type: 'SET_LAST_COMMAND',
|
|
952
|
-
command: { type: CMD_TYPES.DELETE_TO_FIRST_NONWS, count: 1 },
|
|
953
|
-
});
|
|
954
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
955
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
956
|
-
return true;
|
|
957
|
-
}
|
|
958
|
-
// Check if this is part of a change command (c^)
|
|
959
|
-
if (state.pendingOperator === 'c') {
|
|
960
|
-
buffer.vimChangeToFirstNonWhitespace();
|
|
961
|
-
dispatch({
|
|
962
|
-
type: 'SET_LAST_COMMAND',
|
|
963
|
-
command: { type: CMD_TYPES.CHANGE_TO_FIRST_NONWS, count: 1 },
|
|
964
|
-
});
|
|
965
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
966
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
967
|
-
updateMode('INSERT');
|
|
968
|
-
return true;
|
|
969
|
-
}
|
|
970
|
-
// Move to first non-whitespace character
|
|
971
|
-
buffer.vimMoveToFirstNonWhitespace();
|
|
972
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
973
|
-
return true;
|
|
974
|
-
}
|
|
975
|
-
case 'g': {
|
|
976
|
-
if (state.pendingOperator === 'd') {
|
|
977
|
-
// 'dg' - need another 'g' for 'dgg' command
|
|
978
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'dg' });
|
|
979
|
-
return true;
|
|
980
|
-
}
|
|
981
|
-
if (state.pendingOperator === 'c') {
|
|
982
|
-
// 'cg' - need another 'g' for 'cgg' command
|
|
983
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'cg' });
|
|
984
|
-
return true;
|
|
985
|
-
}
|
|
986
|
-
if (state.pendingOperator === 'dg') {
|
|
987
|
-
// 'dgg' command - delete from first line (or line N) to current line
|
|
988
|
-
// Pass state.count directly (0 means first line, N means line N)
|
|
989
|
-
buffer.vimDeleteToFirstLine(state.count);
|
|
990
|
-
dispatch({
|
|
991
|
-
type: 'SET_LAST_COMMAND',
|
|
992
|
-
command: {
|
|
993
|
-
type: CMD_TYPES.DELETE_TO_FIRST_LINE,
|
|
994
|
-
count: state.count,
|
|
995
|
-
},
|
|
996
|
-
});
|
|
997
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
998
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
999
|
-
return true;
|
|
1000
|
-
}
|
|
1001
|
-
if (state.pendingOperator === 'cg') {
|
|
1002
|
-
// 'cgg' command - change from first line (or line N) to current line
|
|
1003
|
-
buffer.vimDeleteToFirstLine(state.count);
|
|
1004
|
-
dispatch({
|
|
1005
|
-
type: 'SET_LAST_COMMAND',
|
|
1006
|
-
command: {
|
|
1007
|
-
type: CMD_TYPES.CHANGE_TO_FIRST_LINE,
|
|
1008
|
-
count: state.count,
|
|
1009
|
-
},
|
|
1010
|
-
});
|
|
1011
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1012
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1013
|
-
updateMode('INSERT');
|
|
1014
|
-
return true;
|
|
1015
|
-
}
|
|
1016
|
-
if (state.pendingOperator === 'g') {
|
|
1017
|
-
// Second 'g' - go to line N (gg command), or first line if no count
|
|
1018
|
-
if (state.count > 0) {
|
|
1019
|
-
buffer.vimMoveToLine(state.count);
|
|
1020
|
-
}
|
|
1021
|
-
else {
|
|
1022
|
-
buffer.vimMoveToFirstLine();
|
|
1023
|
-
}
|
|
1024
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1025
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1026
|
-
}
|
|
1027
|
-
else {
|
|
1028
|
-
// First 'g' - wait for second g (don't clear count yet)
|
|
1029
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'g' });
|
|
1030
|
-
}
|
|
1031
|
-
return true;
|
|
1032
|
-
}
|
|
1033
|
-
case 'G': {
|
|
1034
|
-
// Check if this is part of a delete command (dG)
|
|
1035
|
-
if (state.pendingOperator === 'd') {
|
|
1036
|
-
// Pass state.count directly (0 means last line, N means line N)
|
|
1037
|
-
buffer.vimDeleteToLastLine(state.count);
|
|
1038
|
-
dispatch({
|
|
1039
|
-
type: 'SET_LAST_COMMAND',
|
|
1040
|
-
command: {
|
|
1041
|
-
type: CMD_TYPES.DELETE_TO_LAST_LINE,
|
|
1042
|
-
count: state.count,
|
|
1043
|
-
},
|
|
1044
|
-
});
|
|
1045
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1046
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1047
|
-
return true;
|
|
1048
|
-
}
|
|
1049
|
-
// Check if this is part of a change command (cG)
|
|
1050
|
-
if (state.pendingOperator === 'c') {
|
|
1051
|
-
buffer.vimDeleteToLastLine(state.count);
|
|
1052
|
-
dispatch({
|
|
1053
|
-
type: 'SET_LAST_COMMAND',
|
|
1054
|
-
command: {
|
|
1055
|
-
type: CMD_TYPES.CHANGE_TO_LAST_LINE,
|
|
1056
|
-
count: state.count,
|
|
1057
|
-
},
|
|
1058
|
-
});
|
|
1059
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1060
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1061
|
-
updateMode('INSERT');
|
|
1062
|
-
return true;
|
|
1063
|
-
}
|
|
1064
|
-
if (state.count > 0) {
|
|
1065
|
-
// Go to specific line number (1-based) when a count was provided
|
|
1066
|
-
buffer.vimMoveToLine(state.count);
|
|
1067
|
-
}
|
|
1068
|
-
else {
|
|
1069
|
-
// Go to last line when no count was provided
|
|
1070
|
-
buffer.vimMoveToLastLine();
|
|
1071
|
-
}
|
|
1072
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1073
|
-
return true;
|
|
1074
|
-
}
|
|
1075
|
-
case 'I': {
|
|
1076
|
-
// Enter INSERT mode at start of line (first non-whitespace)
|
|
1077
|
-
buffer.vimInsertAtLineStart();
|
|
1078
|
-
updateMode('INSERT');
|
|
1079
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1080
|
-
return true;
|
|
1081
|
-
}
|
|
1082
|
-
case 'A': {
|
|
1083
|
-
// Enter INSERT mode at end of line
|
|
1084
|
-
buffer.vimAppendAtLineEnd();
|
|
1085
|
-
updateMode('INSERT');
|
|
1086
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1087
|
-
return true;
|
|
1088
|
-
}
|
|
1089
|
-
case 'd': {
|
|
1090
|
-
if (state.pendingOperator === 'd') {
|
|
1091
|
-
// Second 'd' - delete N lines (dd command)
|
|
1092
|
-
const repeatCount = getCurrentCount();
|
|
1093
|
-
executeCommand(CMD_TYPES.DELETE_LINE, repeatCount);
|
|
1094
|
-
dispatch({
|
|
1095
|
-
type: 'SET_LAST_COMMAND',
|
|
1096
|
-
command: { type: CMD_TYPES.DELETE_LINE, count: repeatCount },
|
|
1097
|
-
});
|
|
1098
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1099
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1100
|
-
}
|
|
1101
|
-
else {
|
|
1102
|
-
// First 'd' - wait for movement command
|
|
1103
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'd' });
|
|
1104
|
-
}
|
|
1105
|
-
return true;
|
|
1106
|
-
}
|
|
1107
|
-
case 'c': {
|
|
1108
|
-
if (state.pendingOperator === 'c') {
|
|
1109
|
-
// Second 'c' - change N entire lines (cc command)
|
|
1110
|
-
const repeatCount = getCurrentCount();
|
|
1111
|
-
executeCommand(CMD_TYPES.CHANGE_LINE, repeatCount);
|
|
1112
|
-
dispatch({
|
|
1113
|
-
type: 'SET_LAST_COMMAND',
|
|
1114
|
-
command: { type: CMD_TYPES.CHANGE_LINE, count: repeatCount },
|
|
1115
|
-
});
|
|
1116
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1117
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1118
|
-
}
|
|
1119
|
-
else {
|
|
1120
|
-
// First 'c' - wait for movement command
|
|
1121
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'c' });
|
|
1122
|
-
}
|
|
1123
|
-
return true;
|
|
1124
|
-
}
|
|
1125
|
-
case 'y': {
|
|
1126
|
-
if (state.pendingOperator === 'y') {
|
|
1127
|
-
// Second 'y' - yank N lines (yy command)
|
|
1128
|
-
const repeatCount = getCurrentCount();
|
|
1129
|
-
executeCommand(CMD_TYPES.YANK_LINE, repeatCount);
|
|
1130
|
-
dispatch({
|
|
1131
|
-
type: 'SET_LAST_COMMAND',
|
|
1132
|
-
command: { type: CMD_TYPES.YANK_LINE, count: repeatCount },
|
|
1133
|
-
});
|
|
1134
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1135
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: null });
|
|
1136
|
-
}
|
|
1137
|
-
else if (state.pendingOperator === null) {
|
|
1138
|
-
// First 'y' - wait for motion
|
|
1139
|
-
dispatch({ type: 'SET_PENDING_OPERATOR', operator: 'y' });
|
|
1140
|
-
}
|
|
1141
|
-
else {
|
|
1142
|
-
// Another operator is pending; clear it
|
|
1143
|
-
dispatch({ type: 'CLEAR_PENDING_STATES' });
|
|
1144
|
-
}
|
|
1145
|
-
return true;
|
|
1146
|
-
}
|
|
1147
|
-
case 'Y': {
|
|
1148
|
-
// Y yanks from cursor to end of line (equivalent to y$)
|
|
1149
|
-
const repeatCount = getCurrentCount();
|
|
1150
|
-
executeCommand(CMD_TYPES.YANK_TO_EOL, repeatCount);
|
|
1151
|
-
dispatch({
|
|
1152
|
-
type: 'SET_LAST_COMMAND',
|
|
1153
|
-
command: { type: CMD_TYPES.YANK_TO_EOL, count: repeatCount },
|
|
1154
|
-
});
|
|
1155
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1156
|
-
return true;
|
|
1157
|
-
}
|
|
1158
|
-
case 'p': {
|
|
1159
|
-
executeCommand(CMD_TYPES.PASTE_AFTER, repeatCount);
|
|
1160
|
-
dispatch({
|
|
1161
|
-
type: 'SET_LAST_COMMAND',
|
|
1162
|
-
command: { type: CMD_TYPES.PASTE_AFTER, count: repeatCount },
|
|
1163
|
-
});
|
|
1164
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1165
|
-
return true;
|
|
1166
|
-
}
|
|
1167
|
-
case 'P': {
|
|
1168
|
-
executeCommand(CMD_TYPES.PASTE_BEFORE, repeatCount);
|
|
1169
|
-
dispatch({
|
|
1170
|
-
type: 'SET_LAST_COMMAND',
|
|
1171
|
-
command: { type: CMD_TYPES.PASTE_BEFORE, count: repeatCount },
|
|
1172
|
-
});
|
|
1173
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1174
|
-
return true;
|
|
1175
|
-
}
|
|
1176
|
-
case 'D': {
|
|
1177
|
-
// Delete from cursor to end of line (with count, delete to end of N lines)
|
|
1178
|
-
executeCommand(CMD_TYPES.DELETE_TO_EOL, repeatCount);
|
|
1179
|
-
dispatch({
|
|
1180
|
-
type: 'SET_LAST_COMMAND',
|
|
1181
|
-
command: { type: CMD_TYPES.DELETE_TO_EOL, count: repeatCount },
|
|
1182
|
-
});
|
|
1183
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1184
|
-
return true;
|
|
1185
|
-
}
|
|
1186
|
-
case 'C': {
|
|
1187
|
-
// Change from cursor to end of line (with count, change to end of N lines)
|
|
1188
|
-
executeCommand(CMD_TYPES.CHANGE_TO_EOL, repeatCount);
|
|
1189
|
-
dispatch({
|
|
1190
|
-
type: 'SET_LAST_COMMAND',
|
|
1191
|
-
command: { type: CMD_TYPES.CHANGE_TO_EOL, count: repeatCount },
|
|
1192
|
-
});
|
|
1193
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1194
|
-
return true;
|
|
1195
|
-
}
|
|
1196
|
-
case 'u': {
|
|
1197
|
-
// Undo last change
|
|
1198
|
-
for (let i = 0; i < repeatCount; i++) {
|
|
1199
|
-
buffer.undo();
|
|
1200
|
-
}
|
|
1201
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1202
|
-
return true;
|
|
1203
|
-
}
|
|
1204
|
-
case '.': {
|
|
1205
|
-
// Repeat last command (use current count if provided, otherwise use original count)
|
|
1206
|
-
if (state.lastCommand) {
|
|
1207
|
-
const cmdData = state.lastCommand;
|
|
1208
|
-
const count = state.count > 0 ? state.count : cmdData.count;
|
|
1209
|
-
// All repeatable commands are now handled by executeCommand
|
|
1210
|
-
executeCommand(cmdData.type, count, cmdData.char);
|
|
1211
|
-
}
|
|
1212
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1213
|
-
return true;
|
|
1214
|
-
}
|
|
1215
|
-
default: {
|
|
1216
|
-
// Check for arrow keys (they have different sequences but known names)
|
|
1217
|
-
if (normalizedKey.name === 'left') {
|
|
1218
|
-
// Left arrow - same as 'h'
|
|
1219
|
-
if (state.pendingOperator === 'd') {
|
|
1220
|
-
return handleDeleteMovement('h');
|
|
1221
|
-
}
|
|
1222
|
-
if (state.pendingOperator === 'c') {
|
|
1223
|
-
return handleChangeMovement('h');
|
|
1224
|
-
}
|
|
1225
|
-
// Normal left movement (same as 'h')
|
|
1226
|
-
buffer.vimMoveLeft(repeatCount);
|
|
1227
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1228
|
-
return true;
|
|
1229
|
-
}
|
|
1230
|
-
if (normalizedKey.name === 'down') {
|
|
1231
|
-
// Down arrow - same as 'j'
|
|
1232
|
-
if (state.pendingOperator === 'd') {
|
|
1233
|
-
return handleDeleteMovement('j');
|
|
1234
|
-
}
|
|
1235
|
-
if (state.pendingOperator === 'c') {
|
|
1236
|
-
return handleChangeMovement('j');
|
|
1237
|
-
}
|
|
1238
|
-
// Normal down movement (same as 'j')
|
|
1239
|
-
buffer.vimMoveDown(repeatCount);
|
|
1240
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1241
|
-
return true;
|
|
1242
|
-
}
|
|
1243
|
-
if (normalizedKey.name === 'up') {
|
|
1244
|
-
// Up arrow - same as 'k'
|
|
1245
|
-
if (state.pendingOperator === 'd') {
|
|
1246
|
-
return handleDeleteMovement('k');
|
|
1247
|
-
}
|
|
1248
|
-
if (state.pendingOperator === 'c') {
|
|
1249
|
-
return handleChangeMovement('k');
|
|
1250
|
-
}
|
|
1251
|
-
// Normal up movement (same as 'k')
|
|
1252
|
-
buffer.vimMoveUp(repeatCount);
|
|
1253
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1254
|
-
return true;
|
|
1255
|
-
}
|
|
1256
|
-
if (normalizedKey.name === 'right') {
|
|
1257
|
-
// Right arrow - same as 'l'
|
|
1258
|
-
if (state.pendingOperator === 'd') {
|
|
1259
|
-
return handleDeleteMovement('l');
|
|
1260
|
-
}
|
|
1261
|
-
if (state.pendingOperator === 'c') {
|
|
1262
|
-
return handleChangeMovement('l');
|
|
1263
|
-
}
|
|
1264
|
-
// Normal right movement (same as 'l')
|
|
1265
|
-
buffer.vimMoveRight(repeatCount);
|
|
1266
|
-
dispatch({ type: 'CLEAR_COUNT' });
|
|
1267
|
-
return true;
|
|
1268
|
-
}
|
|
1269
|
-
// Unknown command, clear count and pending states
|
|
1270
|
-
dispatch({ type: 'CLEAR_PENDING_STATES' });
|
|
1271
|
-
// Ignore unmapped Insertable keys in Normal Mode, but let
|
|
1272
|
-
// modifier-key chords (ctrl/alt/cmd) fall through to other handlers.
|
|
1273
|
-
if (normalizedKey.insertable &&
|
|
1274
|
-
!normalizedKey.ctrl &&
|
|
1275
|
-
!normalizedKey.alt &&
|
|
1276
|
-
!normalizedKey.cmd) {
|
|
1277
|
-
return true;
|
|
1278
|
-
}
|
|
1279
|
-
// Not handled by vim so allow other handlers to process it.
|
|
1280
|
-
return false;
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
return false; // Not handled by vim
|
|
1285
|
-
}, [
|
|
1286
|
-
vimEnabled,
|
|
1287
|
-
normalizeKey,
|
|
1288
|
-
handleInsertModeInput,
|
|
1289
|
-
state.mode,
|
|
1290
|
-
state.count,
|
|
1291
|
-
state.pendingOperator,
|
|
1292
|
-
state.pendingFindOp,
|
|
1293
|
-
state.lastCommand,
|
|
1294
|
-
state.lastFind,
|
|
1295
|
-
dispatch,
|
|
1296
|
-
getCurrentCount,
|
|
1297
|
-
handleChangeMovement,
|
|
1298
|
-
handleDeleteMovement,
|
|
1299
|
-
handleOperatorMotion,
|
|
1300
|
-
buffer,
|
|
1301
|
-
executeCommand,
|
|
1302
|
-
updateMode,
|
|
1303
|
-
checkDoubleEscape,
|
|
1304
|
-
keyMatchers,
|
|
1305
|
-
]);
|
|
1306
|
-
return {
|
|
1307
|
-
mode: state.mode,
|
|
1308
|
-
vimModeEnabled: vimEnabled,
|
|
1309
|
-
handleInput, // Expose the input handler for InputPrompt to use
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
|
-
//# sourceMappingURL=vim.js.map
|