@quantum-ai/gemini-cli 0.45.8 → 0.45.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acp/acpCommandHandler.js +105 -0
- package/dist/acp/acpErrors.js +37 -0
- package/dist/acp/acpFileSystemService.js +80 -0
- package/dist/acp/acpRpcDispatcher.js +174 -0
- package/dist/acp/acpSession.js +1167 -0
- package/dist/acp/acpSessionManager.js +200 -0
- package/dist/acp/acpStdioTransport.js +22 -0
- package/dist/acp/acpUtils.js +287 -0
- package/dist/acp/commands/about.js +52 -0
- package/dist/acp/commands/commandRegistry.js +25 -0
- package/dist/acp/commands/extensions.js +330 -0
- package/dist/acp/commands/help.js +34 -0
- package/dist/acp/commands/init.js +46 -0
- package/dist/acp/commands/memory.js +95 -0
- package/dist/acp/commands/restore.js +140 -0
- package/dist/acp/commands/types.js +6 -0
- package/dist/commands/extensions/configure.js +63 -0
- package/dist/commands/extensions/disable.js +68 -0
- package/dist/commands/extensions/enable.js +84 -0
- package/dist/commands/extensions/install.js +171 -0
- package/dist/commands/extensions/link.js +65 -0
- package/dist/commands/extensions/list.js +62 -0
- package/dist/commands/extensions/new.js +87 -0
- package/dist/commands/extensions/uninstall.js +88 -0
- package/dist/commands/extensions/update.js +113 -0
- package/dist/commands/extensions/utils.js +122 -0
- package/dist/commands/extensions/validate.js +84 -0
- package/dist/commands/extensions.js +43 -0
- package/dist/commands/gemma/constants.js +34 -0
- package/dist/commands/gemma/logs.js +153 -0
- package/dist/commands/gemma/platform.js +219 -0
- package/dist/commands/gemma/setup.js +391 -0
- package/dist/commands/gemma/start.js +86 -0
- package/dist/commands/gemma/status.js +109 -0
- package/dist/commands/gemma/stop.js +109 -0
- package/dist/commands/gemma.js +29 -0
- package/dist/commands/hooks/migrate.js +214 -0
- package/dist/commands/hooks.js +24 -0
- package/dist/commands/mcp/add.js +194 -0
- package/dist/commands/mcp/enableDisable.js +105 -0
- package/dist/commands/mcp/list.js +206 -0
- package/dist/commands/mcp/remove.js +48 -0
- package/dist/commands/mcp.js +31 -0
- package/dist/commands/skills/disable.js +47 -0
- package/dist/commands/skills/enable.js +35 -0
- package/dist/commands/skills/install.js +78 -0
- package/dist/commands/skills/link.js +66 -0
- package/dist/commands/skills/list.js +59 -0
- package/dist/commands/skills/uninstall.js +56 -0
- package/dist/commands/skills.js +35 -0
- package/dist/commands/utils.js +10 -0
- package/dist/config/auth.js +43 -0
- package/dist/config/config.js +938 -0
- package/dist/config/extension-manager-themes.spec.js +202 -0
- package/dist/config/extension-manager.js +887 -0
- package/dist/config/extension.js +20 -0
- package/dist/config/extensionRegistryClient.js +93 -0
- package/dist/config/extensions/consent.js +195 -0
- package/dist/config/extensions/extensionEnablement.js +192 -0
- package/dist/config/extensions/extensionSettings.js +247 -0
- package/dist/config/extensions/github.js +425 -0
- package/dist/config/extensions/github_fetch.js +47 -0
- package/dist/config/extensions/storage.js +31 -0
- package/dist/config/extensions/update.js +143 -0
- package/dist/config/extensions/variableSchema.js +21 -0
- package/dist/config/extensions/variables.js +61 -0
- package/dist/config/footerItems.js +133 -0
- package/dist/config/mcp/index.js +6 -0
- package/dist/config/mcp/mcpServerEnablement.js +278 -0
- package/dist/config/policy.js +96 -0
- package/dist/config/sandboxConfig.js +116 -0
- package/dist/config/settingPaths.js +10 -0
- package/dist/config/settings-validation.js +272 -0
- package/dist/config/settings.js +942 -0
- package/dist/config/settingsSchema.js +3288 -0
- package/dist/config/trustedFolders.js +25 -0
- package/dist/core/auth.js +53 -0
- package/dist/core/initializer.js +41 -0
- package/dist/core/theme.js +18 -0
- package/dist/deferred.js +56 -0
- package/dist/gemini.js +699 -0
- package/dist/generated/git-commit.js +9 -0
- package/dist/index.js +5 -200
- package/dist/index.mjs +8 -0
- package/dist/interactiveCli.js +181 -0
- package/dist/nonInteractiveCli.js +458 -0
- package/dist/nonInteractiveCliAgentSession.js +527 -0
- package/dist/nonInteractiveCliCommands.js +82 -0
- package/dist/patches/http-proxy-agent.js +7 -0
- package/dist/patches/https-proxy-agent.js +7 -0
- package/dist/patches/is-in-ci.js +14 -0
- package/dist/services/BuiltinCommandLoader.js +207 -0
- package/dist/services/CommandService.js +99 -0
- package/dist/services/FileCommandLoader.js +298 -0
- package/dist/services/McpPromptLoader.js +254 -0
- package/dist/services/SkillCommandLoader.js +52 -0
- package/dist/services/SlashCommandConflictHandler.js +127 -0
- package/dist/services/SlashCommandResolver.js +155 -0
- package/dist/services/liteRtServerManager.js +42 -0
- package/dist/services/prompt-processors/argumentProcessor.js +20 -0
- package/dist/services/prompt-processors/atFileProcessor.js +62 -0
- package/dist/services/prompt-processors/injectionParser.js +59 -0
- package/dist/services/prompt-processors/shellProcessor.js +129 -0
- package/dist/services/prompt-processors/types.js +19 -0
- package/dist/test-utils/AppRig.js +582 -0
- package/dist/test-utils/MockShellExecutionService.js +87 -0
- package/dist/test-utils/async.js +34 -0
- package/dist/test-utils/createExtension.js +30 -0
- package/dist/test-utils/customMatchers.js +85 -0
- package/dist/test-utils/mockCommandContext.js +102 -0
- package/dist/test-utils/mockConfig.js +202 -0
- package/dist/test-utils/mockDebugLogger.js +67 -0
- package/dist/test-utils/mockSpinner.js +20 -0
- package/dist/test-utils/persistentStateFake.js +38 -0
- package/dist/test-utils/render.js +606 -0
- package/dist/test-utils/settings.js +33 -0
- package/dist/test-utils/svg.js +181 -0
- package/dist/ui/App.js +29 -0
- package/dist/ui/AppContainer.js +2100 -0
- package/dist/ui/IdeIntegrationNudge.js +52 -0
- package/dist/ui/auth/ApiAuthDialog.js +62 -0
- package/dist/ui/auth/AuthDialog.js +141 -0
- package/dist/ui/auth/AuthInProgress.js +23 -0
- package/dist/ui/auth/BannedAccountDialog.js +66 -0
- package/dist/ui/auth/LoginRestartDialog.js +33 -0
- package/dist/ui/auth/useAuth.js +132 -0
- package/dist/ui/colors.js +62 -0
- package/dist/ui/commands/aboutCommand.js +58 -0
- package/dist/ui/commands/agentsCommand.js +327 -0
- package/dist/ui/commands/authCommand.js +45 -0
- package/dist/ui/commands/bugCommand.js +146 -0
- package/dist/ui/commands/bugMemoryCommand.js +61 -0
- package/dist/ui/commands/chatCommand.js +361 -0
- package/dist/ui/commands/clearCommand.js +67 -0
- package/dist/ui/commands/commandsCommand.js +103 -0
- package/dist/ui/commands/compressCommand.js +66 -0
- package/dist/ui/commands/copyCommand.js +61 -0
- package/dist/ui/commands/corgiCommand.js +16 -0
- package/dist/ui/commands/directoryCommand.js +222 -0
- package/dist/ui/commands/docsCommand.js +31 -0
- package/dist/ui/commands/editorCommand.js +16 -0
- package/dist/ui/commands/exportSessionCommand.js +73 -0
- package/dist/ui/commands/extensionsCommand.js +738 -0
- package/dist/ui/commands/footerCommand.js +19 -0
- package/dist/ui/commands/gemmaStatusCommand.js +33 -0
- package/dist/ui/commands/helpCommand.js +40 -0
- package/dist/ui/commands/hooksCommand.js +336 -0
- package/dist/ui/commands/ideCommand.js +232 -0
- package/dist/ui/commands/initCommand.js +37 -0
- package/dist/ui/commands/mcpCommand.js +446 -0
- package/dist/ui/commands/memoryCommand.js +124 -0
- package/dist/ui/commands/modelCommand.js +58 -0
- package/dist/ui/commands/oncallCommand.js +90 -0
- package/dist/ui/commands/permissionsCommand.js +74 -0
- package/dist/ui/commands/planCommand.js +82 -0
- package/dist/ui/commands/policiesCommand.js +82 -0
- package/dist/ui/commands/privacyCommand.js +16 -0
- package/dist/ui/commands/profileCommand.js +23 -0
- package/dist/ui/commands/quitCommand.js +36 -0
- package/dist/ui/commands/restoreCommand.js +131 -0
- package/dist/ui/commands/resumeCommand.js +18 -0
- package/dist/ui/commands/rewindCommand.js +136 -0
- package/dist/ui/commands/settingsCommand.js +16 -0
- package/dist/ui/commands/setupGithubCommand.js +195 -0
- package/dist/ui/commands/shortcutsCommand.js +16 -0
- package/dist/ui/commands/skillsCommand.js +296 -0
- package/dist/ui/commands/statsCommand.js +117 -0
- package/dist/ui/commands/tasksCommand.js +16 -0
- package/dist/ui/commands/terminalSetupCommand.js +41 -0
- package/dist/ui/commands/themeCommand.js +16 -0
- package/dist/ui/commands/toolsCommand.js +58 -0
- package/dist/ui/commands/types.js +15 -0
- package/dist/ui/commands/upgradeCommand.js +57 -0
- package/dist/ui/commands/vimCommand.js +24 -0
- package/dist/ui/commands/voiceCommand.js +28 -0
- package/dist/ui/components/AboutBox.js +16 -0
- package/dist/ui/components/AdminSettingsChangedDialog.js +26 -0
- package/dist/ui/components/AgentConfigDialog.js +297 -0
- package/dist/ui/components/AlternateBufferQuittingDisplay.js +29 -0
- package/dist/ui/components/AnsiOutput.js +23 -0
- package/dist/ui/components/AppHeader.js +73 -0
- package/dist/ui/components/ApprovalModeIndicator.js +40 -0
- package/dist/ui/components/AsciiArt.js +53 -0
- package/dist/ui/components/AskUserDialog.js +738 -0
- package/dist/ui/components/BackgroundTaskDisplay.js +251 -0
- package/dist/ui/components/Banner.js +28 -0
- package/dist/ui/components/Checklist.js +31 -0
- package/dist/ui/components/ChecklistItem.js +39 -0
- package/dist/ui/components/CliSpinner.js +27 -0
- package/dist/ui/components/ColorsDisplay.js +119 -0
- package/dist/ui/components/Composer.js +87 -0
- package/dist/ui/components/ConfigExtensionDialog.js +155 -0
- package/dist/ui/components/ConfigInitDisplay.js +54 -0
- package/dist/ui/components/ConsentPrompt.js +19 -0
- package/dist/ui/components/ConsoleSummaryDisplay.js +11 -0
- package/dist/ui/components/ContextSummaryDisplay.js +70 -0
- package/dist/ui/components/ContextUsageDisplay.js +28 -0
- package/dist/ui/components/CopyModeWarning.js +9 -0
- package/dist/ui/components/DebugProfiler.js +189 -0
- package/dist/ui/components/DetailedMessagesDisplay.js +59 -0
- package/dist/ui/components/DialogManager.js +162 -0
- package/dist/ui/components/EditorSettingsDialog.js +88 -0
- package/dist/ui/components/EmptyWalletDialog.js +33 -0
- package/dist/ui/components/ExitPlanModeDialog.js +179 -0
- package/dist/ui/components/ExitWarning.js +9 -0
- package/dist/ui/components/FolderTrustDialog.js +118 -0
- package/dist/ui/components/Footer.js +270 -0
- package/dist/ui/components/FooterConfigDialog.js +213 -0
- package/dist/ui/components/GeminiRespondingSpinner.js +22 -0
- package/dist/ui/components/GeminiSpinner.js +35 -0
- package/dist/ui/components/Header.js +29 -0
- package/dist/ui/components/Help.js +17 -0
- package/dist/ui/components/HistoryItemDisplay.js +52 -0
- package/dist/ui/components/HookStatusDisplay.js +26 -0
- package/dist/ui/components/HooksDialog.js +83 -0
- package/dist/ui/components/IdeTrustChangeDialog.js +35 -0
- package/dist/ui/components/InboxDialog.js +756 -0
- package/dist/ui/components/InputPrompt.js +1324 -0
- package/dist/ui/components/ListeningIndicator.js +30 -0
- package/dist/ui/components/LoadingIndicator.js +48 -0
- package/dist/ui/components/LogoutConfirmationDialog.js +39 -0
- package/dist/ui/components/LoopDetectionConfirmation.js +39 -0
- package/dist/ui/components/MainContent.js +176 -0
- package/dist/ui/components/MemoryUsageDisplay.js +25 -0
- package/dist/ui/components/ModelDialog.js +268 -0
- package/dist/ui/components/ModelQuotaDisplay.js +104 -0
- package/dist/ui/components/ModelStatsDisplay.js +157 -0
- package/dist/ui/components/MultiFolderTrustDialog.js +95 -0
- package/dist/ui/components/NewAgentsNotification.js +50 -0
- package/dist/ui/components/Notifications.js +107 -0
- package/dist/ui/components/OverageMenuDialog.js +32 -0
- package/dist/ui/components/PermissionsModifyTrustDialog.js +61 -0
- package/dist/ui/components/PolicyUpdateDialog.js +61 -0
- package/dist/ui/components/ProQuotaDialog.js +84 -0
- package/dist/ui/components/ProgressBar.js +17 -0
- package/dist/ui/components/QueuedMessageDisplay.js +20 -0
- package/dist/ui/components/QuittingDisplay.js +20 -0
- package/dist/ui/components/QuotaDisplay.js +36 -0
- package/dist/ui/components/QuotaStatsInfo.js +23 -0
- package/dist/ui/components/RawMarkdownIndicator.js +10 -0
- package/dist/ui/components/RewindConfirmation.js +73 -0
- package/dist/ui/components/RewindViewer.js +154 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserEmpty.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserError.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserLoading.js +8 -0
- package/dist/ui/components/SessionBrowser/SessionBrowserNav.js +17 -0
- package/dist/ui/components/SessionBrowser/SessionListHeader.js +8 -0
- package/dist/ui/components/SessionBrowser/utils.js +99 -0
- package/dist/ui/components/SessionBrowser.js +370 -0
- package/dist/ui/components/SessionSummaryDisplay.js +24 -0
- package/dist/ui/components/SettingsDialog.js +283 -0
- package/dist/ui/components/ShellInputPrompt.js +64 -0
- package/dist/ui/components/ShellModeIndicator.js +5 -0
- package/dist/ui/components/ShortcutsHelp.js +58 -0
- package/dist/ui/components/ShowMoreLines.js +26 -0
- package/dist/ui/components/StatsDisplay.js +93 -0
- package/dist/ui/components/StatusDisplay.js +20 -0
- package/dist/ui/components/StatusRow.js +181 -0
- package/dist/ui/components/StickyHeader.js +5 -0
- package/dist/ui/components/SuggestionsDisplay.js +50 -0
- package/dist/ui/components/Table.js +7 -0
- package/dist/ui/components/ThemeDialog.constants.js +26 -0
- package/dist/ui/components/ThemeDialog.js +165 -0
- package/dist/ui/components/ThemedGradient.js +16 -0
- package/dist/ui/components/Tips.js +8 -0
- package/dist/ui/components/ToastDisplay.js +50 -0
- package/dist/ui/components/ToolConfirmationQueue.js +63 -0
- package/dist/ui/components/ToolStatsDisplay.js +41 -0
- package/dist/ui/components/UpdateNotification.js +10 -0
- package/dist/ui/components/UserIdentity.js +26 -0
- package/dist/ui/components/ValidationDialog.js +91 -0
- package/dist/ui/components/VoiceModelDialog.js +123 -0
- package/dist/ui/components/messages/CompressionMessage.js +48 -0
- package/dist/ui/components/messages/DenseToolMessage.js +257 -0
- package/dist/ui/components/messages/DiffRenderer.js +270 -0
- package/dist/ui/components/messages/ErrorMessage.js +9 -0
- package/dist/ui/components/messages/ExportSessionMessage.js +15 -0
- package/dist/ui/components/messages/GeminiMessage.js +15 -0
- package/dist/ui/components/messages/GeminiMessageContent.js +19 -0
- package/dist/ui/components/messages/HintMessage.js +15 -0
- package/dist/ui/components/messages/InfoMessage.js +11 -0
- package/dist/ui/components/messages/ModelMessage.js +6 -0
- package/dist/ui/components/messages/ShellToolMessage.js +84 -0
- package/dist/ui/components/messages/SubagentGroupDisplay.js +139 -0
- package/dist/ui/components/messages/SubagentHistoryMessage.js +4 -0
- package/dist/ui/components/messages/SubagentProgressDisplay.js +80 -0
- package/dist/ui/components/messages/ThinkingMessage.js +38 -0
- package/dist/ui/components/messages/Todo.js +40 -0
- package/dist/ui/components/messages/ToolConfirmationMessage.js +577 -0
- package/dist/ui/components/messages/ToolGroupDisplay.js +78 -0
- package/dist/ui/components/messages/ToolGroupMessage.js +268 -0
- package/dist/ui/components/messages/ToolMessage.js +25 -0
- package/dist/ui/components/messages/ToolResultDisplay.js +146 -0
- package/dist/ui/components/messages/ToolShared.js +125 -0
- package/dist/ui/components/messages/TopicMessage.js +56 -0
- package/dist/ui/components/messages/UserMessage.js +34 -0
- package/dist/ui/components/messages/UserShellMessage.js +14 -0
- package/dist/ui/components/messages/WarningMessage.js +10 -0
- package/dist/ui/components/shared/BaseSelectionList.js +97 -0
- package/dist/ui/components/shared/BaseSettingsDialog.js +281 -0
- package/dist/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
- package/dist/ui/components/shared/DialogFooter.js +17 -0
- package/dist/ui/components/shared/EnumSelector.js +39 -0
- package/dist/ui/components/shared/ExpandableText.js +87 -0
- package/dist/ui/components/shared/HalfLinePaddedBox.js +37 -0
- package/dist/ui/components/shared/HorizontalLine.js +5 -0
- package/dist/ui/components/shared/MaxSizedBox.js +81 -0
- package/dist/ui/components/shared/RadioButtonSelect.js +22 -0
- package/dist/ui/components/shared/ScopeSelector.js +14 -0
- package/dist/ui/components/shared/Scrollable.js +167 -0
- package/dist/ui/components/shared/ScrollableList.js +167 -0
- package/dist/ui/components/shared/SearchableList.js +86 -0
- package/dist/ui/components/shared/SectionHeader.js +5 -0
- package/dist/ui/components/shared/SlicingMaxSizedBox.js +74 -0
- package/dist/ui/components/shared/TabHeader.js +42 -0
- package/dist/ui/components/shared/TextInput.js +51 -0
- package/dist/ui/components/shared/VirtualizedList.js +473 -0
- package/dist/ui/components/shared/text-buffer.js +2770 -0
- package/dist/ui/components/shared/vim-buffer-actions.js +1306 -0
- package/dist/ui/components/triage/TriageDuplicates.js +624 -0
- package/dist/ui/components/triage/TriageIssues.js +380 -0
- package/dist/ui/components/views/AgentsStatus.js +23 -0
- package/dist/ui/components/views/ChatList.js +17 -0
- package/dist/ui/components/views/ExtensionDetails.js +85 -0
- package/dist/ui/components/views/ExtensionRegistryView.js +97 -0
- package/dist/ui/components/views/ExtensionsList.js +46 -0
- package/dist/ui/components/views/GemmaStatus.js +11 -0
- package/dist/ui/components/views/McpStatus.js +109 -0
- package/dist/ui/components/views/SkillsList.js +17 -0
- package/dist/ui/components/views/ToolsList.js +6 -0
- package/dist/ui/constants/tips.js +163 -0
- package/dist/ui/constants/wittyPhrases.js +137 -0
- package/dist/ui/constants.js +60 -0
- package/dist/ui/contexts/AppContext.js +14 -0
- package/dist/ui/contexts/AskUserActionsContext.js +24 -0
- package/dist/ui/contexts/ConfigContext.js +14 -0
- package/dist/ui/contexts/InputContext.js +14 -0
- package/dist/ui/contexts/KeypressContext.js +780 -0
- package/dist/ui/contexts/MouseContext.js +130 -0
- package/dist/ui/contexts/OverflowContext.js +66 -0
- package/dist/ui/contexts/QuotaContext.js +14 -0
- package/dist/ui/contexts/ScrollProvider.js +312 -0
- package/dist/ui/contexts/SessionContext.js +167 -0
- package/dist/ui/contexts/SettingsContext.js +47 -0
- package/dist/ui/contexts/ShellFocusContext.js +8 -0
- package/dist/ui/contexts/StreamingContext.js +14 -0
- package/dist/ui/contexts/TerminalContext.js +70 -0
- package/dist/ui/contexts/ToolActionsContext.js +96 -0
- package/dist/ui/contexts/UIActionsContext.js +14 -0
- package/dist/ui/contexts/UIStateContext.js +14 -0
- package/dist/ui/contexts/VimModeContext.js +38 -0
- package/dist/ui/debug.js +10 -0
- package/dist/ui/editors/editorSettingsManager.js +37 -0
- package/dist/ui/hooks/atCommandProcessor.js +557 -0
- package/dist/ui/hooks/creditsFlowHandler.js +157 -0
- package/dist/ui/hooks/shell-completions/gitProvider.js +72 -0
- package/dist/ui/hooks/shell-completions/index.js +15 -0
- package/dist/ui/hooks/shell-completions/npmProvider.js +66 -0
- package/dist/ui/hooks/shell-completions/types.js +6 -0
- package/dist/ui/hooks/shellReducer.js +124 -0
- package/dist/ui/hooks/slashCommandProcessor.js +556 -0
- package/dist/ui/hooks/toolMapping.js +103 -0
- package/dist/ui/hooks/useAgentStream.js +407 -0
- package/dist/ui/hooks/useAlternateBuffer.js +17 -0
- package/dist/ui/hooks/useAnimatedScrollbar.js +100 -0
- package/dist/ui/hooks/useApprovalModeIndicator.js +83 -0
- package/dist/ui/hooks/useAtCompletion.js +347 -0
- package/dist/ui/hooks/useBackgroundTaskManager.js +56 -0
- package/dist/ui/hooks/useBanner.js +55 -0
- package/dist/ui/hooks/useBatchedScroll.js +26 -0
- package/dist/ui/hooks/useCommandCompletion.js +343 -0
- package/dist/ui/hooks/useCompletion.js +83 -0
- package/dist/ui/hooks/useComposerStatus.js +79 -0
- package/dist/ui/hooks/useConfirmingTool.js +18 -0
- package/dist/ui/hooks/useConsoleMessages.js +139 -0
- package/dist/ui/hooks/useEditorSettings.js +45 -0
- package/dist/ui/hooks/useExecutionLifecycle.js +529 -0
- package/dist/ui/hooks/useExtensionRegistry.js +69 -0
- package/dist/ui/hooks/useExtensionUpdates.js +172 -0
- package/dist/ui/hooks/useFlickerDetector.js +37 -0
- package/dist/ui/hooks/useFocus.js +57 -0
- package/dist/ui/hooks/useFolderTrust.js +104 -0
- package/dist/ui/hooks/useGeminiStream.js +1422 -0
- package/dist/ui/hooks/useGitBranchName.js +77 -0
- package/dist/ui/hooks/useHistoryManager.js +113 -0
- package/dist/ui/hooks/useHookDisplayState.js +82 -0
- package/dist/ui/hooks/useIdeTrustListener.js +66 -0
- package/dist/ui/hooks/useInactivityTimer.js +29 -0
- package/dist/ui/hooks/useIncludeDirsTrust.js +109 -0
- package/dist/ui/hooks/useInlineEditBuffer.js +112 -0
- package/dist/ui/hooks/useInputHistory.js +90 -0
- package/dist/ui/hooks/useInputHistoryStore.js +81 -0
- package/dist/ui/hooks/useKeyMatchers.js +12 -0
- package/dist/ui/hooks/useKeypress.js +27 -0
- package/dist/ui/hooks/useKittyKeyboardProtocol.js +18 -0
- package/dist/ui/hooks/useLoadingIndicator.js +54 -0
- package/dist/ui/hooks/useLogger.js +26 -0
- package/dist/ui/hooks/useMcpStatus.js +33 -0
- package/dist/ui/hooks/useMemoryMonitor.js +27 -0
- package/dist/ui/hooks/useMessageQueue.js +69 -0
- package/dist/ui/hooks/useModelCommand.js +20 -0
- package/dist/ui/hooks/useMouse.js +26 -0
- package/dist/ui/hooks/useMouseClick.js +35 -0
- package/dist/ui/hooks/usePermissionsModifyTrust.js +113 -0
- package/dist/ui/hooks/usePhraseCycler.js +141 -0
- package/dist/ui/hooks/usePrivacySettings.js +109 -0
- package/dist/ui/hooks/usePromptCompletion.js +168 -0
- package/dist/ui/hooks/useQuotaAndFallback.js +220 -0
- package/dist/ui/hooks/useRegistrySearch.js +34 -0
- package/dist/ui/hooks/useRepeatedKeyPress.js +49 -0
- package/dist/ui/hooks/useReverseSearchCompletion.js +101 -0
- package/dist/ui/hooks/useRewind.js +30 -0
- package/dist/ui/hooks/useRunEventNotifications.js +94 -0
- package/dist/ui/hooks/useSearchBuffer.js +23 -0
- package/dist/ui/hooks/useSelectionList.js +317 -0
- package/dist/ui/hooks/useSessionBrowser.js +74 -0
- package/dist/ui/hooks/useSessionResume.js +74 -0
- package/dist/ui/hooks/useSettingsCommand.js +20 -0
- package/dist/ui/hooks/useSettingsNavigation.js +71 -0
- package/dist/ui/hooks/useShellCompletion.js +501 -0
- package/dist/ui/hooks/useShellHistory.js +113 -0
- package/dist/ui/hooks/useShellInactivityStatus.js +44 -0
- package/dist/ui/hooks/useSlashCompletion.js +434 -0
- package/dist/ui/hooks/useSnowfall.js +125 -0
- package/dist/ui/hooks/useStateAndRef.js +26 -0
- package/dist/ui/hooks/useSuspend.js +101 -0
- package/dist/ui/hooks/useTabbedNavigation.js +159 -0
- package/dist/ui/hooks/useTerminalSize.js +25 -0
- package/dist/ui/hooks/useTerminalTheme.js +78 -0
- package/dist/ui/hooks/useThemeCommand.js +79 -0
- package/dist/ui/hooks/useTimedMessage.js +31 -0
- package/dist/ui/hooks/useTimer.js +57 -0
- package/dist/ui/hooks/useTips.js +17 -0
- package/dist/ui/hooks/useToolScheduler.js +212 -0
- package/dist/ui/hooks/useTurnActivityMonitor.js +47 -0
- package/dist/ui/hooks/useVisibilityToggle.js +59 -0
- package/dist/ui/hooks/useVoiceMode.js +338 -0
- package/dist/ui/hooks/useVoiceModelCommand.js +20 -0
- package/dist/ui/hooks/vim.js +1311 -0
- package/dist/ui/key/keyBindings.js +703 -0
- package/dist/ui/key/keyMatchers.js +42 -0
- package/dist/ui/key/keyToAnsi.js +44 -0
- package/dist/ui/key/keybindingUtils.js +85 -0
- package/dist/ui/layouts/DefaultAppLayout.js +29 -0
- package/dist/ui/layouts/ScreenReaderAppLayout.js +17 -0
- package/dist/ui/noninteractive/nonInteractiveUi.js +46 -0
- package/dist/ui/privacy/CloudFreePrivacyNotice.js +44 -0
- package/dist/ui/privacy/CloudPaidPrivacyNotice.js +20 -0
- package/dist/ui/privacy/GeminiPrivacyNotice.js +20 -0
- package/dist/ui/privacy/PrivacyNotice.js +25 -0
- package/dist/ui/semantic-colors.js +23 -0
- package/dist/ui/state/extensions.js +96 -0
- package/dist/ui/textConstants.js +14 -0
- package/dist/ui/themes/builtin/dark/ansi-dark.js +153 -0
- package/dist/ui/themes/builtin/dark/atom-one-dark.js +139 -0
- package/dist/ui/themes/builtin/dark/ayu-dark.js +105 -0
- package/dist/ui/themes/builtin/dark/default-dark.js +142 -0
- package/dist/ui/themes/builtin/dark/dracula-dark.js +116 -0
- package/dist/ui/themes/builtin/dark/github-dark-colorblind.js +139 -0
- package/dist/ui/themes/builtin/dark/github-dark.js +139 -0
- package/dist/ui/themes/builtin/dark/holiday-dark.js +162 -0
- package/dist/ui/themes/builtin/dark/shades-of-purple-dark.js +305 -0
- package/dist/ui/themes/builtin/dark/solarized-dark.js +196 -0
- package/dist/ui/themes/builtin/dark/tokyonight-dark.js +146 -0
- package/dist/ui/themes/builtin/light/ansi-light.js +142 -0
- package/dist/ui/themes/builtin/light/ayu-light.js +131 -0
- package/dist/ui/themes/builtin/light/default-light.js +99 -0
- package/dist/ui/themes/builtin/light/github-light-colorblind.js +139 -0
- package/dist/ui/themes/builtin/light/github-light.js +142 -0
- package/dist/ui/themes/builtin/light/googlecode-light.js +138 -0
- package/dist/ui/themes/builtin/light/solarized-light.js +196 -0
- package/dist/ui/themes/builtin/light/xcode-light.js +147 -0
- package/dist/ui/themes/builtin/no-color.js +124 -0
- package/dist/ui/themes/color-utils.js +105 -0
- package/dist/ui/themes/semantic-tokens.js +76 -0
- package/dist/ui/themes/theme-manager.js +513 -0
- package/dist/ui/themes/theme.js +563 -0
- package/dist/ui/types.js +100 -0
- package/dist/ui/utils/CodeColorizer.js +130 -0
- package/dist/ui/utils/ConsolePatcher.js +56 -0
- package/dist/ui/utils/InlineMarkdownRenderer.js +17 -0
- package/dist/ui/utils/MarkdownDisplay.js +243 -0
- package/dist/ui/utils/TableRenderer.js +161 -0
- package/dist/ui/utils/antigravityUtils.js +40 -0
- package/dist/ui/utils/borderStyles.js +82 -0
- package/dist/ui/utils/clipboardUtils.js +484 -0
- package/dist/ui/utils/commandUtils.js +259 -0
- package/dist/ui/utils/computeStats.js +61 -0
- package/dist/ui/utils/confirmingTool.js +25 -0
- package/dist/ui/utils/contextUsage.js +19 -0
- package/dist/ui/utils/directoryUtils.js +124 -0
- package/dist/ui/utils/displayUtils.js +42 -0
- package/dist/ui/utils/editorUtils.js +150 -0
- package/dist/ui/utils/fileUtils.js +16 -0
- package/dist/ui/utils/formatters.js +126 -0
- package/dist/ui/utils/highlight.js +116 -0
- package/dist/ui/utils/historyExportUtils.js +58 -0
- package/dist/ui/utils/historyUtils.js +69 -0
- package/dist/ui/utils/inlineThinkingMode.js +8 -0
- package/dist/ui/utils/input.js +50 -0
- package/dist/ui/utils/isNarrowWidth.js +8 -0
- package/dist/ui/utils/latexToUnicode.js +537 -0
- package/dist/ui/utils/markdownParsingUtils.js +184 -0
- package/dist/ui/utils/markdownUtilities.js +109 -0
- package/dist/ui/utils/memorySnapshot.js +27 -0
- package/dist/ui/utils/mouse.js +182 -0
- package/dist/ui/utils/pendingAttentionNotification.js +97 -0
- package/dist/ui/utils/rewindFileOps.js +190 -0
- package/dist/ui/utils/shortcutsHelp.js +11 -0
- package/dist/ui/utils/terminalCapabilityManager.js +259 -0
- package/dist/ui/utils/terminalSetup.js +418 -0
- package/dist/ui/utils/terminalUtils.js +37 -0
- package/dist/ui/utils/textOutput.js +52 -0
- package/dist/ui/utils/textUtils.js +235 -0
- package/dist/ui/utils/toolLayoutUtils.js +79 -0
- package/dist/ui/utils/ui-sizing.js +12 -0
- package/dist/ui/utils/updateCheck.js +95 -0
- package/dist/ui/utils/urlSecurityUtils.js +70 -0
- package/dist/utils/activityLogger.js +795 -0
- package/dist/utils/agentSettings.js +44 -0
- package/dist/utils/agentUtils.js +49 -0
- package/dist/utils/autoMemory.js +14 -0
- package/dist/utils/cleanup.js +170 -0
- package/dist/utils/commands.js +66 -0
- package/dist/utils/commentJson.js +136 -0
- package/dist/utils/deepMerge.js +64 -0
- package/dist/utils/devtoolsService.js +185 -0
- package/dist/utils/dialogScopeUtils.js +49 -0
- package/dist/utils/envVarResolver.js +120 -0
- package/dist/utils/errors.js +179 -0
- package/dist/utils/events.js +22 -0
- package/dist/utils/featureToggleUtils.js +94 -0
- package/dist/utils/gitUtils.js +109 -0
- package/dist/utils/handleAutoUpdate.js +178 -0
- package/dist/utils/hookSettings.js +113 -0
- package/dist/utils/hookUtils.js +50 -0
- package/dist/utils/installationInfo.js +186 -0
- package/dist/utils/jsonoutput.js +41 -0
- package/dist/utils/logCleanup.js +57 -0
- package/dist/utils/math.js +13 -0
- package/dist/utils/persistentState.js +65 -0
- package/dist/utils/processUtils.js +98 -0
- package/dist/utils/readStdin.js +86 -0
- package/dist/utils/relaunch.js +60 -0
- package/dist/utils/resize-observer-polyfill.js +6 -0
- package/dist/utils/resolvePath.js +20 -0
- package/dist/utils/sandbox.js +926 -0
- package/dist/utils/sandboxUtils.js +125 -0
- package/dist/utils/sessionCleanup.js +480 -0
- package/dist/utils/sessionUtils.js +464 -0
- package/dist/utils/sessions.js +66 -0
- package/dist/utils/settingsUtils.js +283 -0
- package/dist/utils/skillSettings.js +51 -0
- package/dist/utils/skillUtils.js +231 -0
- package/dist/utils/spawnWrapper.js +7 -0
- package/dist/utils/startupWarnings.js +39 -0
- package/dist/utils/terminalNotifications.js +130 -0
- package/dist/utils/terminalTheme.js +49 -0
- package/dist/utils/tierUtils.js +14 -0
- package/dist/utils/updateEventEmitter.js +11 -0
- package/dist/utils/userStartupWarnings.js +102 -0
- package/dist/utils/windowTitle.js +83 -0
- package/dist/utils/worktreeSetup.js +31 -0
- package/dist/validateNonInterActiveAuth.js +44 -0
- package/package.json +86 -36
- package/LICENSE +0 -202
- package/dist/index.d.ts +0 -7
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -106
- package/dist/src/acp/acpCommandHandler.d.ts +0 -26
- package/dist/src/acp/acpCommandHandler.js +0 -106
- package/dist/src/acp/acpCommandHandler.js.map +0 -1
- package/dist/src/acp/acpErrors.d.ts +0 -11
- package/dist/src/acp/acpErrors.js +0 -38
- package/dist/src/acp/acpErrors.js.map +0 -1
- package/dist/src/acp/acpFileSystemService.d.ts +0 -23
- package/dist/src/acp/acpFileSystemService.js +0 -81
- package/dist/src/acp/acpFileSystemService.js.map +0 -1
- package/dist/src/acp/acpRpcDispatcher.d.ts +0 -28
- package/dist/src/acp/acpRpcDispatcher.js +0 -175
- package/dist/src/acp/acpRpcDispatcher.js.map +0 -1
- package/dist/src/acp/acpSession.d.ts +0 -36
- package/dist/src/acp/acpSession.js +0 -1168
- package/dist/src/acp/acpSession.js.map +0 -1
- package/dist/src/acp/acpSessionManager.d.ts +0 -30
- package/dist/src/acp/acpSessionManager.js +0 -201
- package/dist/src/acp/acpSessionManager.js.map +0 -1
- package/dist/src/acp/acpStdioTransport.d.ts +0 -9
- package/dist/src/acp/acpStdioTransport.js +0 -23
- package/dist/src/acp/acpStdioTransport.js.map +0 -1
- package/dist/src/acp/acpUtils.d.ts +0 -56
- package/dist/src/acp/acpUtils.js +0 -288
- package/dist/src/acp/acpUtils.js.map +0 -1
- package/dist/src/acp/commands/about.d.ts +0 -11
- package/dist/src/acp/commands/about.js +0 -53
- package/dist/src/acp/commands/about.js.map +0 -1
- package/dist/src/acp/commands/commandRegistry.d.ts +0 -12
- package/dist/src/acp/commands/commandRegistry.js +0 -26
- package/dist/src/acp/commands/commandRegistry.js.map +0 -1
- package/dist/src/acp/commands/extensions.d.ts +0 -57
- package/dist/src/acp/commands/extensions.js +0 -331
- package/dist/src/acp/commands/extensions.js.map +0 -1
- package/dist/src/acp/commands/help.d.ts +0 -14
- package/dist/src/acp/commands/help.js +0 -35
- package/dist/src/acp/commands/help.js.map +0 -1
- package/dist/src/acp/commands/init.d.ts +0 -12
- package/dist/src/acp/commands/init.js +0 -47
- package/dist/src/acp/commands/init.js.map +0 -1
- package/dist/src/acp/commands/memory.d.ts +0 -34
- package/dist/src/acp/commands/memory.js +0 -96
- package/dist/src/acp/commands/memory.js.map +0 -1
- package/dist/src/acp/commands/restore.d.ts +0 -18
- package/dist/src/acp/commands/restore.js +0 -141
- package/dist/src/acp/commands/restore.js.map +0 -1
- package/dist/src/acp/commands/types.d.ts +0 -31
- package/dist/src/acp/commands/types.js +0 -7
- package/dist/src/acp/commands/types.js.map +0 -1
- package/dist/src/commands/extensions/configure.d.ts +0 -13
- package/dist/src/commands/extensions/configure.js +0 -64
- package/dist/src/commands/extensions/configure.js.map +0 -1
- package/dist/src/commands/extensions/disable.d.ts +0 -13
- package/dist/src/commands/extensions/disable.js +0 -70
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -13
- package/dist/src/commands/extensions/enable.js +0 -86
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/install.d.ts +0 -17
- package/dist/src/commands/extensions/install.js +0 -172
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/link.d.ts +0 -13
- package/dist/src/commands/extensions/link.js +0 -66
- package/dist/src/commands/extensions/link.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -10
- package/dist/src/commands/extensions/list.js +0 -63
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/new.d.ts +0 -7
- package/dist/src/commands/extensions/new.js +0 -88
- package/dist/src/commands/extensions/new.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -13
- package/dist/src/commands/extensions/uninstall.js +0 -89
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -13
- package/dist/src/commands/extensions/update.js +0 -114
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions/utils.d.ts +0 -26
- package/dist/src/commands/extensions/utils.js +0 -123
- package/dist/src/commands/extensions/utils.js.map +0 -1
- package/dist/src/commands/extensions/validate.d.ts +0 -12
- package/dist/src/commands/extensions/validate.js +0 -85
- package/dist/src/commands/extensions/validate.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -44
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/gemma/constants.d.ts +0 -17
- package/dist/src/commands/gemma/constants.js +0 -35
- package/dist/src/commands/gemma/constants.js.map +0 -1
- package/dist/src/commands/gemma/logs.d.ts +0 -13
- package/dist/src/commands/gemma/logs.js +0 -154
- package/dist/src/commands/gemma/logs.js.map +0 -1
- package/dist/src/commands/gemma/platform.d.ts +0 -38
- package/dist/src/commands/gemma/platform.js +0 -220
- package/dist/src/commands/gemma/platform.js.map +0 -1
- package/dist/src/commands/gemma/setup.d.ts +0 -9
- package/dist/src/commands/gemma/setup.js +0 -392
- package/dist/src/commands/gemma/setup.js.map +0 -1
- package/dist/src/commands/gemma/start.d.ts +0 -8
- package/dist/src/commands/gemma/start.js +0 -87
- package/dist/src/commands/gemma/start.js.map +0 -1
- package/dist/src/commands/gemma/status.d.ts +0 -19
- package/dist/src/commands/gemma/status.js +0 -110
- package/dist/src/commands/gemma/status.js.map +0 -1
- package/dist/src/commands/gemma/stop.d.ts +0 -9
- package/dist/src/commands/gemma/stop.js +0 -110
- package/dist/src/commands/gemma/stop.js.map +0 -1
- package/dist/src/commands/gemma.d.ts +0 -7
- package/dist/src/commands/gemma.js +0 -30
- package/dist/src/commands/gemma.js.map +0 -1
- package/dist/src/commands/hooks/migrate.d.ts +0 -11
- package/dist/src/commands/hooks/migrate.js +0 -215
- package/dist/src/commands/hooks/migrate.js.map +0 -1
- package/dist/src/commands/hooks.d.ts +0 -7
- package/dist/src/commands/hooks.js +0 -25
- package/dist/src/commands/hooks.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -195
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/enableDisable.d.ts +0 -13
- package/dist/src/commands/mcp/enableDisable.js +0 -106
- package/dist/src/commands/mcp/enableDisable.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -18
- package/dist/src/commands/mcp/list.js +0 -207
- package/dist/src/commands/mcp/list.js.map +0 -1
- package/dist/src/commands/mcp/remove.d.ts +0 -7
- package/dist/src/commands/mcp/remove.js +0 -49
- package/dist/src/commands/mcp/remove.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -7
- package/dist/src/commands/mcp.js +0 -32
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/commands/skills/disable.d.ts +0 -14
- package/dist/src/commands/skills/disable.js +0 -48
- package/dist/src/commands/skills/disable.js.map +0 -1
- package/dist/src/commands/skills/enable.d.ts +0 -12
- package/dist/src/commands/skills/enable.js +0 -36
- package/dist/src/commands/skills/enable.js.map +0 -1
- package/dist/src/commands/skills/install.d.ts +0 -15
- package/dist/src/commands/skills/install.js +0 -79
- package/dist/src/commands/skills/install.js.map +0 -1
- package/dist/src/commands/skills/link.d.ts +0 -14
- package/dist/src/commands/skills/link.js +0 -67
- package/dist/src/commands/skills/link.js.map +0 -1
- package/dist/src/commands/skills/list.d.ts +0 -10
- package/dist/src/commands/skills/list.js +0 -60
- package/dist/src/commands/skills/list.js.map +0 -1
- package/dist/src/commands/skills/uninstall.d.ts +0 -13
- package/dist/src/commands/skills/uninstall.js +0 -57
- package/dist/src/commands/skills/uninstall.js.map +0 -1
- package/dist/src/commands/skills.d.ts +0 -7
- package/dist/src/commands/skills.js +0 -36
- package/dist/src/commands/skills.js.map +0 -1
- package/dist/src/commands/utils.d.ts +0 -6
- package/dist/src/commands/utils.js +0 -11
- package/dist/src/commands/utils.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -44
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -69
- package/dist/src/config/config.js +0 -928
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension-manager-themes.spec.js +0 -203
- package/dist/src/config/extension-manager-themes.spec.js.map +0 -1
- package/dist/src/config/extension-manager.d.ts +0 -87
- package/dist/src/config/extension-manager.js +0 -888
- package/dist/src/config/extension-manager.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -46
- package/dist/src/config/extension.js +0 -21
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/extensionRegistryClient.d.ts +0 -41
- package/dist/src/config/extensionRegistryClient.js +0 -95
- package/dist/src/config/extensionRegistryClient.js.map +0 -1
- package/dist/src/config/extensions/consent.d.ts +0 -54
- package/dist/src/config/extensions/consent.js +0 -196
- package/dist/src/config/extensions/consent.js.map +0 -1
- package/dist/src/config/extensions/extensionEnablement.d.ts +0 -47
- package/dist/src/config/extensions/extensionEnablement.js +0 -193
- package/dist/src/config/extensions/extensionEnablement.js.map +0 -1
- package/dist/src/config/extensions/extensionSettings.d.ts +0 -23
- package/dist/src/config/extensions/extensionSettings.js +0 -248
- package/dist/src/config/extensions/extensionSettings.js.map +0 -1
- package/dist/src/config/extensions/github.d.ts +0 -50
- package/dist/src/config/extensions/github.js +0 -426
- package/dist/src/config/extensions/github.js.map +0 -1
- package/dist/src/config/extensions/github_fetch.d.ts +0 -7
- package/dist/src/config/extensions/github_fetch.js +0 -48
- package/dist/src/config/extensions/github_fetch.js.map +0 -1
- package/dist/src/config/extensions/storage.d.ts +0 -14
- package/dist/src/config/extensions/storage.js +0 -32
- package/dist/src/config/extensions/storage.js.map +0 -1
- package/dist/src/config/extensions/update.d.ts +0 -20
- package/dist/src/config/extensions/update.js +0 -144
- package/dist/src/config/extensions/update.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -32
- package/dist/src/config/extensions/variableSchema.js +0 -22
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -21
- package/dist/src/config/extensions/variables.js +0 -62
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/footerItems.d.ts +0 -66
- package/dist/src/config/footerItems.js +0 -134
- package/dist/src/config/footerItems.js.map +0 -1
- package/dist/src/config/mcp/index.d.ts +0 -6
- package/dist/src/config/mcp/index.js +0 -7
- package/dist/src/config/mcp/index.js.map +0 -1
- package/dist/src/config/mcp/mcpServerEnablement.d.ts +0 -150
- package/dist/src/config/mcp/mcpServerEnablement.js +0 -280
- package/dist/src/config/mcp/mcpServerEnablement.js.map +0 -1
- package/dist/src/config/policy.d.ts +0 -41
- package/dist/src/config/policy.js +0 -98
- package/dist/src/config/policy.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -12
- package/dist/src/config/sandboxConfig.js +0 -117
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settingPaths.d.ts +0 -10
- package/dist/src/config/settingPaths.js +0 -11
- package/dist/src/config/settingPaths.js.map +0 -1
- package/dist/src/config/settings-validation.d.ts +0 -23
- package/dist/src/config/settings-validation.js +0 -273
- package/dist/src/config/settings-validation.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -155
- package/dist/src/config/settings.js +0 -943
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -2891
- package/dist/src/config/settingsSchema.js +0 -3289
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -19
- package/dist/src/config/trustedFolders.js +0 -26
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/core/auth.d.ts +0 -18
- package/dist/src/core/auth.js +0 -54
- package/dist/src/core/auth.js.map +0 -1
- package/dist/src/core/initializer.d.ts +0 -23
- package/dist/src/core/initializer.js +0 -43
- package/dist/src/core/initializer.js.map +0 -1
- package/dist/src/core/theme.d.ts +0 -12
- package/dist/src/core/theme.js +0 -20
- package/dist/src/core/theme.js.map +0 -1
- package/dist/src/deferred.d.ts +0 -19
- package/dist/src/deferred.js +0 -57
- package/dist/src/deferred.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -18
- package/dist/src/gemini.js +0 -695
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -7
- package/dist/src/generated/git-commit.js +0 -10
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/index.d.ts +0 -9
- package/dist/src/index.js +0 -13
- package/dist/src/index.js.map +0 -1
- package/dist/src/interactiveCli.d.ts +0 -9
- package/dist/src/interactiveCli.js +0 -189
- package/dist/src/interactiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -23
- package/dist/src/nonInteractiveCli.js +0 -459
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/nonInteractiveCliAgentSession.d.ts +0 -23
- package/dist/src/nonInteractiveCliAgentSession.js +0 -528
- package/dist/src/nonInteractiveCliAgentSession.js.map +0 -1
- package/dist/src/nonInteractiveCliCommands.d.ts +0 -17
- package/dist/src/nonInteractiveCliCommands.js +0 -83
- package/dist/src/nonInteractiveCliCommands.js.map +0 -1
- package/dist/src/patches/http-proxy-agent.d.ts +0 -6
- package/dist/src/patches/http-proxy-agent.js +0 -8
- package/dist/src/patches/http-proxy-agent.js.map +0 -1
- package/dist/src/patches/https-proxy-agent.d.ts +0 -6
- package/dist/src/patches/https-proxy-agent.js +0 -8
- package/dist/src/patches/https-proxy-agent.js.map +0 -1
- package/dist/src/patches/is-in-ci.d.ts +0 -7
- package/dist/src/patches/is-in-ci.js +0 -15
- package/dist/src/patches/is-in-ci.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.d.ts +0 -24
- package/dist/src/services/BuiltinCommandLoader.js +0 -208
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -62
- package/dist/src/services/CommandService.js +0 -100
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -73
- package/dist/src/services/FileCommandLoader.js +0 -299
- package/dist/src/services/FileCommandLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.d.ts +0 -35
- package/dist/src/services/McpPromptLoader.js +0 -255
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/SkillCommandLoader.d.ts +0 -23
- package/dist/src/services/SkillCommandLoader.js +0 -54
- package/dist/src/services/SkillCommandLoader.js.map +0 -1
- package/dist/src/services/SlashCommandConflictHandler.d.ts +0 -35
- package/dist/src/services/SlashCommandConflictHandler.js +0 -128
- package/dist/src/services/SlashCommandConflictHandler.js.map +0 -1
- package/dist/src/services/SlashCommandResolver.d.ts +0 -53
- package/dist/src/services/SlashCommandResolver.js +0 -156
- package/dist/src/services/SlashCommandResolver.js.map +0 -1
- package/dist/src/services/liteRtServerManager.d.ts +0 -9
- package/dist/src/services/liteRtServerManager.js +0 -43
- package/dist/src/services/liteRtServerManager.js.map +0 -1
- package/dist/src/services/prompt-processors/argumentProcessor.d.ts +0 -16
- package/dist/src/services/prompt-processors/argumentProcessor.js +0 -21
- package/dist/src/services/prompt-processors/argumentProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.d.ts +0 -12
- package/dist/src/services/prompt-processors/atFileProcessor.js +0 -63
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/injectionParser.d.ts +0 -29
- package/dist/src/services/prompt-processors/injectionParser.js +0 -60
- package/dist/src/services/prompt-processors/injectionParser.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -130
- package/dist/src/services/prompt-processors/shellProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/types.d.ts +0 -45
- package/dist/src/services/prompt-processors/types.js +0 -20
- package/dist/src/services/prompt-processors/types.js.map +0 -1
- package/dist/src/services/types.d.ts +0 -30
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/AppRig.d.ts +0 -83
- package/dist/src/test-utils/AppRig.js +0 -583
- package/dist/src/test-utils/AppRig.js.map +0 -1
- package/dist/src/test-utils/MockShellExecutionService.d.ts +0 -37
- package/dist/src/test-utils/MockShellExecutionService.js +0 -89
- package/dist/src/test-utils/MockShellExecutionService.js.map +0 -1
- package/dist/src/test-utils/async.d.ts +0 -9
- package/dist/src/test-utils/async.js +0 -35
- package/dist/src/test-utils/async.js.map +0 -1
- package/dist/src/test-utils/createExtension.d.ts +0 -17
- package/dist/src/test-utils/createExtension.js +0 -32
- package/dist/src/test-utils/createExtension.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -34
- package/dist/src/test-utils/customMatchers.js +0 -86
- package/dist/src/test-utils/customMatchers.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.d.ts +0 -18
- package/dist/src/test-utils/mockCommandContext.js +0 -103
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockConfig.d.ts +0 -15
- package/dist/src/test-utils/mockConfig.js +0 -203
- package/dist/src/test-utils/mockConfig.js.map +0 -1
- package/dist/src/test-utils/mockDebugLogger.d.ts +0 -35
- package/dist/src/test-utils/mockDebugLogger.js +0 -68
- package/dist/src/test-utils/mockDebugLogger.js.map +0 -1
- package/dist/src/test-utils/mockSpinner.d.ts +0 -6
- package/dist/src/test-utils/mockSpinner.js +0 -21
- package/dist/src/test-utils/mockSpinner.js.map +0 -1
- package/dist/src/test-utils/persistentStateFake.d.ts +0 -26
- package/dist/src/test-utils/persistentStateFake.js +0 -39
- package/dist/src/test-utils/persistentStateFake.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -163
- package/dist/src/test-utils/render.js +0 -609
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/test-utils/settings.d.ts +0 -31
- package/dist/src/test-utils/settings.js +0 -34
- package/dist/src/test-utils/settings.js.map +0 -1
- package/dist/src/test-utils/svg.d.ts +0 -7
- package/dist/src/test-utils/svg.js +0 -182
- package/dist/src/test-utils/svg.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -6
- package/dist/src/ui/App.js +0 -30
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/AppContainer.d.ts +0 -16
- package/dist/src/ui/AppContainer.js +0 -2106
- package/dist/src/ui/AppContainer.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -53
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/auth/ApiAuthDialog.d.ts +0 -14
- package/dist/src/ui/auth/ApiAuthDialog.js +0 -63
- package/dist/src/ui/auth/ApiAuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthDialog.d.ts +0 -21
- package/dist/src/ui/auth/AuthDialog.js +0 -142
- package/dist/src/ui/auth/AuthDialog.js.map +0 -1
- package/dist/src/ui/auth/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/auth/AuthInProgress.js +0 -24
- package/dist/src/ui/auth/AuthInProgress.js.map +0 -1
- package/dist/src/ui/auth/BannedAccountDialog.d.ts +0 -14
- package/dist/src/ui/auth/BannedAccountDialog.js +0 -67
- package/dist/src/ui/auth/BannedAccountDialog.js.map +0 -1
- package/dist/src/ui/auth/LoginRestartDialog.d.ts +0 -13
- package/dist/src/ui/auth/LoginRestartDialog.js +0 -40
- package/dist/src/ui/auth/LoginRestartDialog.js.map +0 -1
- package/dist/src/ui/auth/useAuth.d.ts +0 -21
- package/dist/src/ui/auth/useAuth.js +0 -133
- package/dist/src/ui/auth/useAuth.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -63
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/aboutCommand.d.ts +0 -7
- package/dist/src/ui/commands/aboutCommand.js +0 -59
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/agentsCommand.d.ts +0 -7
- package/dist/src/ui/commands/agentsCommand.js +0 -328
- package/dist/src/ui/commands/agentsCommand.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -46
- package/dist/src/ui/commands/authCommand.js.map +0 -1
- package/dist/src/ui/commands/bugCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugCommand.js +0 -147
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/bugMemoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/bugMemoryCommand.js +0 -62
- package/dist/src/ui/commands/bugMemoryCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -10
- package/dist/src/ui/commands/chatCommand.js +0 -362
- package/dist/src/ui/commands/chatCommand.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -68
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/commandsCommand.d.ts +0 -7
- package/dist/src/ui/commands/commandsCommand.js +0 -104
- package/dist/src/ui/commands/commandsCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -67
- package/dist/src/ui/commands/compressCommand.js.map +0 -1
- package/dist/src/ui/commands/copyCommand.d.ts +0 -7
- package/dist/src/ui/commands/copyCommand.js +0 -62
- package/dist/src/ui/commands/copyCommand.js.map +0 -1
- package/dist/src/ui/commands/corgiCommand.d.ts +0 -7
- package/dist/src/ui/commands/corgiCommand.js +0 -17
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/directoryCommand.js +0 -224
- package/dist/src/ui/commands/directoryCommand.js.map +0 -1
- package/dist/src/ui/commands/docsCommand.d.ts +0 -7
- package/dist/src/ui/commands/docsCommand.js +0 -32
- package/dist/src/ui/commands/docsCommand.js.map +0 -1
- package/dist/src/ui/commands/editorCommand.d.ts +0 -7
- package/dist/src/ui/commands/editorCommand.js +0 -17
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/exportSessionCommand.d.ts +0 -7
- package/dist/src/ui/commands/exportSessionCommand.js +0 -74
- package/dist/src/ui/commands/exportSessionCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -12
- package/dist/src/ui/commands/extensionsCommand.js +0 -740
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/footerCommand.d.ts +0 -7
- package/dist/src/ui/commands/footerCommand.js +0 -20
- package/dist/src/ui/commands/footerCommand.js.map +0 -1
- package/dist/src/ui/commands/gemmaStatusCommand.d.ts +0 -7
- package/dist/src/ui/commands/gemmaStatusCommand.js +0 -34
- package/dist/src/ui/commands/gemmaStatusCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -41
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/hooksCommand.d.ts +0 -7
- package/dist/src/ui/commands/hooksCommand.js +0 -337
- package/dist/src/ui/commands/hooksCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -7
- package/dist/src/ui/commands/ideCommand.js +0 -233
- package/dist/src/ui/commands/ideCommand.js.map +0 -1
- package/dist/src/ui/commands/initCommand.d.ts +0 -7
- package/dist/src/ui/commands/initCommand.js +0 -38
- package/dist/src/ui/commands/initCommand.js.map +0 -1
- package/dist/src/ui/commands/mcpCommand.d.ts +0 -7
- package/dist/src/ui/commands/mcpCommand.js +0 -447
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/memoryCommand.js +0 -125
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/modelCommand.d.ts +0 -7
- package/dist/src/ui/commands/modelCommand.js +0 -59
- package/dist/src/ui/commands/modelCommand.js.map +0 -1
- package/dist/src/ui/commands/oncallCommand.d.ts +0 -7
- package/dist/src/ui/commands/oncallCommand.js +0 -91
- package/dist/src/ui/commands/oncallCommand.js.map +0 -1
- package/dist/src/ui/commands/permissionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/permissionsCommand.js +0 -75
- package/dist/src/ui/commands/permissionsCommand.js.map +0 -1
- package/dist/src/ui/commands/planCommand.d.ts +0 -7
- package/dist/src/ui/commands/planCommand.js +0 -83
- package/dist/src/ui/commands/planCommand.js.map +0 -1
- package/dist/src/ui/commands/policiesCommand.d.ts +0 -7
- package/dist/src/ui/commands/policiesCommand.js +0 -83
- package/dist/src/ui/commands/policiesCommand.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
- package/dist/src/ui/commands/privacyCommand.js +0 -17
- package/dist/src/ui/commands/privacyCommand.js.map +0 -1
- package/dist/src/ui/commands/profileCommand.d.ts +0 -7
- package/dist/src/ui/commands/profileCommand.js +0 -24
- package/dist/src/ui/commands/profileCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -7
- package/dist/src/ui/commands/quitCommand.js +0 -37
- package/dist/src/ui/commands/quitCommand.js.map +0 -1
- package/dist/src/ui/commands/restoreCommand.d.ts +0 -8
- package/dist/src/ui/commands/restoreCommand.js +0 -132
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/resumeCommand.d.ts +0 -7
- package/dist/src/ui/commands/resumeCommand.js +0 -19
- package/dist/src/ui/commands/resumeCommand.js.map +0 -1
- package/dist/src/ui/commands/rewindCommand.d.ts +0 -7
- package/dist/src/ui/commands/rewindCommand.js +0 -138
- package/dist/src/ui/commands/rewindCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -17
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -10
- package/dist/src/ui/commands/setupGithubCommand.js +0 -196
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/shortcutsCommand.d.ts +0 -7
- package/dist/src/ui/commands/shortcutsCommand.js +0 -17
- package/dist/src/ui/commands/shortcutsCommand.js.map +0 -1
- package/dist/src/ui/commands/skillsCommand.d.ts +0 -7
- package/dist/src/ui/commands/skillsCommand.js +0 -297
- package/dist/src/ui/commands/skillsCommand.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -118
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/tasksCommand.d.ts +0 -7
- package/dist/src/ui/commands/tasksCommand.js +0 -17
- package/dist/src/ui/commands/tasksCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -43
- package/dist/src/ui/commands/terminalSetupCommand.js.map +0 -1
- package/dist/src/ui/commands/themeCommand.d.ts +0 -7
- package/dist/src/ui/commands/themeCommand.js +0 -17
- package/dist/src/ui/commands/themeCommand.js.map +0 -1
- package/dist/src/ui/commands/toolsCommand.d.ts +0 -7
- package/dist/src/ui/commands/toolsCommand.js +0 -59
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -179
- package/dist/src/ui/commands/types.js +0 -16
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/upgradeCommand.d.ts +0 -11
- package/dist/src/ui/commands/upgradeCommand.js +0 -58
- package/dist/src/ui/commands/upgradeCommand.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -25
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/commands/voiceCommand.d.ts +0 -7
- package/dist/src/ui/commands/voiceCommand.js +0 -29
- package/dist/src/ui/commands/voiceCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -19
- package/dist/src/ui/components/AboutBox.js +0 -17
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AdminSettingsChangedDialog.d.ts +0 -6
- package/dist/src/ui/components/AdminSettingsChangedDialog.js +0 -27
- package/dist/src/ui/components/AdminSettingsChangedDialog.js.map +0 -1
- package/dist/src/ui/components/AgentConfigDialog.d.ts +0 -20
- package/dist/src/ui/components/AgentConfigDialog.js +0 -298
- package/dist/src/ui/components/AgentConfigDialog.js.map +0 -1
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +0 -30
- package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/AnsiOutput.d.ts +0 -19
- package/dist/src/ui/components/AnsiOutput.js +0 -24
- package/dist/src/ui/components/AnsiOutput.js.map +0 -1
- package/dist/src/ui/components/AppHeader.d.ts +0 -11
- package/dist/src/ui/components/AppHeader.js +0 -74
- package/dist/src/ui/components/AppHeader.js.map +0 -1
- package/dist/src/ui/components/ApprovalModeIndicator.d.ts +0 -13
- package/dist/src/ui/components/ApprovalModeIndicator.js +0 -41
- package/dist/src/ui/components/ApprovalModeIndicator.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -11
- package/dist/src/ui/components/AsciiArt.js +0 -54
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AskUserDialog.d.ts +0 -46
- package/dist/src/ui/components/AskUserDialog.js +0 -739
- package/dist/src/ui/components/AskUserDialog.js.map +0 -1
- package/dist/src/ui/components/BackgroundTaskDisplay.d.ts +0 -16
- package/dist/src/ui/components/BackgroundTaskDisplay.js +0 -253
- package/dist/src/ui/components/BackgroundTaskDisplay.js.map +0 -1
- package/dist/src/ui/components/Banner.d.ts +0 -14
- package/dist/src/ui/components/Banner.js +0 -29
- package/dist/src/ui/components/Banner.js.map +0 -1
- package/dist/src/ui/components/Checklist.d.ts +0 -14
- package/dist/src/ui/components/Checklist.js +0 -32
- package/dist/src/ui/components/Checklist.js.map +0 -1
- package/dist/src/ui/components/ChecklistItem.d.ts +0 -17
- package/dist/src/ui/components/ChecklistItem.js +0 -40
- package/dist/src/ui/components/ChecklistItem.js.map +0 -1
- package/dist/src/ui/components/CliSpinner.d.ts +0 -9
- package/dist/src/ui/components/CliSpinner.js +0 -28
- package/dist/src/ui/components/CliSpinner.js.map +0 -1
- package/dist/src/ui/components/ColorsDisplay.d.ts +0 -12
- package/dist/src/ui/components/ColorsDisplay.js +0 -120
- package/dist/src/ui/components/ColorsDisplay.js.map +0 -1
- package/dist/src/ui/components/Composer.d.ts +0 -8
- package/dist/src/ui/components/Composer.js +0 -88
- package/dist/src/ui/components/Composer.js.map +0 -1
- package/dist/src/ui/components/ConfigExtensionDialog.d.ts +0 -19
- package/dist/src/ui/components/ConfigExtensionDialog.js +0 -156
- package/dist/src/ui/components/ConfigExtensionDialog.js.map +0 -1
- package/dist/src/ui/components/ConfigInitDisplay.d.ts +0 -8
- package/dist/src/ui/components/ConfigInitDisplay.js +0 -55
- package/dist/src/ui/components/ConfigInitDisplay.js.map +0 -1
- package/dist/src/ui/components/ConsentPrompt.d.ts +0 -13
- package/dist/src/ui/components/ConsentPrompt.js +0 -21
- package/dist/src/ui/components/ConsentPrompt.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -12
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -21
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -72
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -10
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -29
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/CopyModeWarning.d.ts +0 -7
- package/dist/src/ui/components/CopyModeWarning.js +0 -10
- package/dist/src/ui/components/CopyModeWarning.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -25
- package/dist/src/ui/components/DebugProfiler.js +0 -190
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -13
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -60
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/DialogManager.d.ts +0 -12
- package/dist/src/ui/components/DialogManager.js +0 -164
- package/dist/src/ui/components/DialogManager.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -89
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/EmptyWalletDialog.d.ts +0 -22
- package/dist/src/ui/components/EmptyWalletDialog.js +0 -34
- package/dist/src/ui/components/EmptyWalletDialog.js.map +0 -1
- package/dist/src/ui/components/ExitPlanModeDialog.d.ts +0 -17
- package/dist/src/ui/components/ExitPlanModeDialog.js +0 -180
- package/dist/src/ui/components/ExitPlanModeDialog.js.map +0 -1
- package/dist/src/ui/components/ExitWarning.d.ts +0 -7
- package/dist/src/ui/components/ExitWarning.js +0 -10
- package/dist/src/ui/components/ExitWarning.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -19
- package/dist/src/ui/components/FolderTrustDialog.js +0 -119
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -20
- package/dist/src/ui/components/Footer.js +0 -271
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/FooterConfigDialog.d.ts +0 -11
- package/dist/src/ui/components/FooterConfigDialog.js +0 -214
- package/dist/src/ui/components/FooterConfigDialog.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -23
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/GeminiSpinner.d.ts +0 -13
- package/dist/src/ui/components/GeminiSpinner.js +0 -36
- package/dist/src/ui/components/GeminiSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -30
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -18
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -22
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -53
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HookStatusDisplay.d.ts +0 -12
- package/dist/src/ui/components/HookStatusDisplay.js +0 -28
- package/dist/src/ui/components/HookStatusDisplay.js.map +0 -1
- package/dist/src/ui/components/HooksDialog.d.ts +0 -36
- package/dist/src/ui/components/HooksDialog.js +0 -84
- package/dist/src/ui/components/HooksDialog.js.map +0 -1
- package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +0 -11
- package/dist/src/ui/components/IdeTrustChangeDialog.js +0 -37
- package/dist/src/ui/components/IdeTrustChangeDialog.js.map +0 -1
- package/dist/src/ui/components/InboxDialog.d.ts +0 -15
- package/dist/src/ui/components/InboxDialog.js +0 -757
- package/dist/src/ui/components/InboxDialog.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -66
- package/dist/src/ui/components/InputPrompt.js +0 -1325
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/ListeningIndicator.d.ts +0 -10
- package/dist/src/ui/components/ListeningIndicator.js +0 -31
- package/dist/src/ui/components/ListeningIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -25
- package/dist/src/ui/components/LoadingIndicator.js +0 -49
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LogoutConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/LogoutConfirmationDialog.js +0 -40
- package/dist/src/ui/components/LogoutConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +0 -13
- package/dist/src/ui/components/LoopDetectionConfirmation.js +0 -40
- package/dist/src/ui/components/LoopDetectionConfirmation.js.map +0 -1
- package/dist/src/ui/components/MainContent.d.ts +0 -6
- package/dist/src/ui/components/MainContent.js +0 -177
- package/dist/src/ui/components/MainContent.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -10
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -26
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelDialog.d.ts +0 -11
- package/dist/src/ui/components/ModelDialog.js +0 -269
- package/dist/src/ui/components/ModelDialog.js.map +0 -1
- package/dist/src/ui/components/ModelQuotaDisplay.d.ts +0 -18
- package/dist/src/ui/components/ModelQuotaDisplay.js +0 -105
- package/dist/src/ui/components/ModelQuotaDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -16
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -158
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +0 -23
- package/dist/src/ui/components/MultiFolderTrustDialog.js +0 -97
- package/dist/src/ui/components/MultiFolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/NewAgentsNotification.d.ts +0 -16
- package/dist/src/ui/components/NewAgentsNotification.js +0 -52
- package/dist/src/ui/components/NewAgentsNotification.js.map +0 -1
- package/dist/src/ui/components/Notifications.d.ts +0 -6
- package/dist/src/ui/components/Notifications.js +0 -108
- package/dist/src/ui/components/Notifications.js.map +0 -1
- package/dist/src/ui/components/OverageMenuDialog.d.ts +0 -22
- package/dist/src/ui/components/OverageMenuDialog.js +0 -33
- package/dist/src/ui/components/OverageMenuDialog.js.map +0 -1
- package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +0 -16
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js +0 -63
- package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +0 -1
- package/dist/src/ui/components/PolicyUpdateDialog.d.ts +0 -18
- package/dist/src/ui/components/PolicyUpdateDialog.js +0 -62
- package/dist/src/ui/components/PolicyUpdateDialog.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -19
- package/dist/src/ui/components/ProQuotaDialog.js +0 -85
- package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
- package/dist/src/ui/components/ProgressBar.d.ts +0 -13
- package/dist/src/ui/components/ProgressBar.js +0 -18
- package/dist/src/ui/components/ProgressBar.js.map +0 -1
- package/dist/src/ui/components/QueuedMessageDisplay.d.ts +0 -9
- package/dist/src/ui/components/QueuedMessageDisplay.js +0 -21
- package/dist/src/ui/components/QueuedMessageDisplay.js.map +0 -1
- package/dist/src/ui/components/QuittingDisplay.d.ts +0 -6
- package/dist/src/ui/components/QuittingDisplay.js +0 -21
- package/dist/src/ui/components/QuittingDisplay.js.map +0 -1
- package/dist/src/ui/components/QuotaDisplay.d.ts +0 -16
- package/dist/src/ui/components/QuotaDisplay.js +0 -37
- package/dist/src/ui/components/QuotaDisplay.js.map +0 -1
- package/dist/src/ui/components/QuotaStatsInfo.d.ts +0 -14
- package/dist/src/ui/components/QuotaStatsInfo.js +0 -24
- package/dist/src/ui/components/QuotaStatsInfo.js.map +0 -1
- package/dist/src/ui/components/RawMarkdownIndicator.d.ts +0 -7
- package/dist/src/ui/components/RawMarkdownIndicator.js +0 -11
- package/dist/src/ui/components/RawMarkdownIndicator.js.map +0 -1
- package/dist/src/ui/components/RewindConfirmation.d.ts +0 -21
- package/dist/src/ui/components/RewindConfirmation.js +0 -74
- package/dist/src/ui/components/RewindConfirmation.js.map +0 -1
- package/dist/src/ui/components/RewindViewer.d.ts +0 -15
- package/dist/src/ui/components/RewindViewer.js +0 -155
- package/dist/src/ui/components/RewindViewer.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.d.ts +0 -10
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserEmpty.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.d.ts +0 -13
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserError.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.d.ts +0 -10
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionBrowserLoading.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.d.ts +0 -23
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js +0 -18
- package/dist/src/ui/components/SessionBrowser/SessionBrowserNav.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.d.ts +0 -13
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js +0 -9
- package/dist/src/ui/components/SessionBrowser/SessionListHeader.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser/utils.d.ts +0 -33
- package/dist/src/ui/components/SessionBrowser/utils.js +0 -100
- package/dist/src/ui/components/SessionBrowser/utils.js.map +0 -1
- package/dist/src/ui/components/SessionBrowser.d.ts +0 -98
- package/dist/src/ui/components/SessionBrowser.js +0 -371
- package/dist/src/ui/components/SessionBrowser.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -25
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -14
- package/dist/src/ui/components/SettingsDialog.js +0 -285
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/ShellInputPrompt.d.ts +0 -12
- package/dist/src/ui/components/ShellInputPrompt.js +0 -65
- package/dist/src/ui/components/ShellInputPrompt.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -6
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShortcutsHelp.d.ts +0 -7
- package/dist/src/ui/components/ShortcutsHelp.js +0 -59
- package/dist/src/ui/components/ShortcutsHelp.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -11
- package/dist/src/ui/components/ShowMoreLines.js +0 -27
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -20
- package/dist/src/ui/components/StatsDisplay.js +0 -94
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/StatusDisplay.d.ts +0 -10
- package/dist/src/ui/components/StatusDisplay.js +0 -21
- package/dist/src/ui/components/StatusDisplay.js.map +0 -1
- package/dist/src/ui/components/StatusRow.d.ts +0 -32
- package/dist/src/ui/components/StatusRow.js +0 -183
- package/dist/src/ui/components/StatusRow.js.map +0 -1
- package/dist/src/ui/components/StickyHeader.d.ts +0 -16
- package/dist/src/ui/components/StickyHeader.js +0 -6
- package/dist/src/ui/components/StickyHeader.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -30
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -51
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/Table.d.ts +0 -21
- package/dist/src/ui/components/Table.js +0 -8
- package/dist/src/ui/components/Table.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.constants.d.ts +0 -26
- package/dist/src/ui/components/ThemeDialog.constants.js +0 -27
- package/dist/src/ui/components/ThemeDialog.constants.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -21
- package/dist/src/ui/components/ThemeDialog.js +0 -166
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/ThemedGradient.d.ts +0 -8
- package/dist/src/ui/components/ThemedGradient.js +0 -17
- package/dist/src/ui/components/ThemedGradient.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -10
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToastDisplay.d.ts +0 -10
- package/dist/src/ui/components/ToastDisplay.js +0 -51
- package/dist/src/ui/components/ToastDisplay.js.map +0 -1
- package/dist/src/ui/components/ToolConfirmationQueue.d.ts +0 -12
- package/dist/src/ui/components/ToolConfirmationQueue.js +0 -64
- package/dist/src/ui/components/ToolConfirmationQueue.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -42
- package/dist/src/ui/components/ToolStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/UpdateNotification.d.ts +0 -10
- package/dist/src/ui/components/UpdateNotification.js +0 -11
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/UserIdentity.d.ts +0 -12
- package/dist/src/ui/components/UserIdentity.js +0 -27
- package/dist/src/ui/components/UserIdentity.js.map +0 -1
- package/dist/src/ui/components/ValidationDialog.d.ts +0 -15
- package/dist/src/ui/components/ValidationDialog.js +0 -92
- package/dist/src/ui/components/ValidationDialog.js.map +0 -1
- package/dist/src/ui/components/VoiceModelDialog.d.ts +0 -11
- package/dist/src/ui/components/VoiceModelDialog.js +0 -124
- package/dist/src/ui/components/VoiceModelDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -49
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DenseToolMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/DenseToolMessage.js +0 -258
- package/dist/src/ui/components/messages/DenseToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -35
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -271
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -10
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ExportSessionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ExportSessionMessage.js +0 -16
- package/dist/src/ui/components/messages/ExportSessionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -16
- package/dist/src/ui/components/messages/GeminiMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessageContent.js +0 -20
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/HintMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/HintMessage.js +0 -16
- package/dist/src/ui/components/messages/HintMessage.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -16
- package/dist/src/ui/components/messages/InfoMessage.js +0 -12
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ModelMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ModelMessage.js +0 -7
- package/dist/src/ui/components/messages/ModelMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ShellToolMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/ShellToolMessage.js +0 -85
- package/dist/src/ui/components/messages/ShellToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentGroupDisplay.d.ts +0 -17
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js +0 -140
- package/dist/src/ui/components/messages/SubagentGroupDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentHistoryMessage.d.ts +0 -13
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js +0 -5
- package/dist/src/ui/components/messages/SubagentHistoryMessage.js.map +0 -1
- package/dist/src/ui/components/messages/SubagentProgressDisplay.d.ts +0 -14
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js +0 -81
- package/dist/src/ui/components/messages/SubagentProgressDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ThinkingMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ThinkingMessage.js +0 -39
- package/dist/src/ui/components/messages/ThinkingMessage.js.map +0 -1
- package/dist/src/ui/components/messages/Todo.d.ts +0 -7
- package/dist/src/ui/components/messages/Todo.js +0 -42
- package/dist/src/ui/components/messages/Todo.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -578
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupDisplay.d.ts +0 -13
- package/dist/src/ui/components/messages/ToolGroupDisplay.js +0 -79
- package/dist/src/ui/components/messages/ToolGroupDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -21
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -269
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -24
- package/dist/src/ui/components/messages/ToolMessage.js +0 -26
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolResultDisplay.d.ts +0 -16
- package/dist/src/ui/components/messages/ToolResultDisplay.js +0 -147
- package/dist/src/ui/components/messages/ToolResultDisplay.js.map +0 -1
- package/dist/src/ui/components/messages/ToolShared.d.ts +0 -59
- package/dist/src/ui/components/messages/ToolShared.js +0 -126
- package/dist/src/ui/components/messages/ToolShared.js.map +0 -1
- package/dist/src/ui/components/messages/TopicMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/TopicMessage.js +0 -57
- package/dist/src/ui/components/messages/TopicMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -12
- package/dist/src/ui/components/messages/UserMessage.js +0 -35
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -12
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -15
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/messages/WarningMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js +0 -11
- package/dist/src/ui/components/messages/WarningMessage.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSelectionList.d.ts +0 -42
- package/dist/src/ui/components/shared/BaseSelectionList.js +0 -98
- package/dist/src/ui/components/shared/BaseSelectionList.js.map +0 -1
- package/dist/src/ui/components/shared/BaseSettingsDialog.d.ts +0 -90
- package/dist/src/ui/components/shared/BaseSettingsDialog.js +0 -282
- package/dist/src/ui/components/shared/BaseSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +0 -35
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +0 -14
- package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/DialogFooter.d.ts +0 -21
- package/dist/src/ui/components/shared/DialogFooter.js +0 -18
- package/dist/src/ui/components/shared/DialogFooter.js.map +0 -1
- package/dist/src/ui/components/shared/EnumSelector.d.ts +0 -18
- package/dist/src/ui/components/shared/EnumSelector.js +0 -40
- package/dist/src/ui/components/shared/EnumSelector.js.map +0 -1
- package/dist/src/ui/components/shared/ExpandableText.d.ts +0 -17
- package/dist/src/ui/components/shared/ExpandableText.js +0 -88
- package/dist/src/ui/components/shared/ExpandableText.js.map +0 -1
- package/dist/src/ui/components/shared/HalfLinePaddedBox.d.ts +0 -26
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js +0 -38
- package/dist/src/ui/components/shared/HalfLinePaddedBox.js.map +0 -1
- package/dist/src/ui/components/shared/HorizontalLine.d.ts +0 -12
- package/dist/src/ui/components/shared/HorizontalLine.js +0 -6
- package/dist/src/ui/components/shared/HorizontalLine.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -25
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -82
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -51
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -23
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/ScopeSelector.d.ts +0 -19
- package/dist/src/ui/components/shared/ScopeSelector.js +0 -15
- package/dist/src/ui/components/shared/ScopeSelector.js.map +0 -1
- package/dist/src/ui/components/shared/Scrollable.d.ts +0 -22
- package/dist/src/ui/components/shared/Scrollable.js +0 -168
- package/dist/src/ui/components/shared/Scrollable.js.map +0 -1
- package/dist/src/ui/components/shared/ScrollableList.d.ts +0 -24
- package/dist/src/ui/components/shared/ScrollableList.js +0 -168
- package/dist/src/ui/components/shared/ScrollableList.js.map +0 -1
- package/dist/src/ui/components/shared/SearchableList.d.ts +0 -61
- package/dist/src/ui/components/shared/SearchableList.js +0 -87
- package/dist/src/ui/components/shared/SearchableList.js.map +0 -1
- package/dist/src/ui/components/shared/SectionHeader.d.ts +0 -10
- package/dist/src/ui/components/shared/SectionHeader.js +0 -6
- package/dist/src/ui/components/shared/SectionHeader.js.map +0 -1
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.d.ts +0 -19
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js +0 -75
- package/dist/src/ui/components/shared/SlicingMaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/TabHeader.d.ts +0 -51
- package/dist/src/ui/components/shared/TabHeader.js +0 -43
- package/dist/src/ui/components/shared/TabHeader.js.map +0 -1
- package/dist/src/ui/components/shared/TextInput.d.ts +0 -15
- package/dist/src/ui/components/shared/TextInput.js +0 -52
- package/dist/src/ui/components/shared/TextInput.js.map +0 -1
- package/dist/src/ui/components/shared/VirtualizedList.d.ts +0 -56
- package/dist/src/ui/components/shared/VirtualizedList.js +0 -474
- package/dist/src/ui/components/shared/VirtualizedList.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -868
- package/dist/src/ui/components/shared/text-buffer.js +0 -2771
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -132
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -1307
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/components/triage/TriageDuplicates.d.ts +0 -11
- package/dist/src/ui/components/triage/TriageDuplicates.js +0 -625
- package/dist/src/ui/components/triage/TriageDuplicates.js.map +0 -1
- package/dist/src/ui/components/triage/TriageIssues.d.ts +0 -12
- package/dist/src/ui/components/triage/TriageIssues.js +0 -381
- package/dist/src/ui/components/triage/TriageIssues.js.map +0 -1
- package/dist/src/ui/components/views/AgentsStatus.d.ts +0 -13
- package/dist/src/ui/components/views/AgentsStatus.js +0 -24
- package/dist/src/ui/components/views/AgentsStatus.js.map +0 -1
- package/dist/src/ui/components/views/ChatList.d.ts +0 -12
- package/dist/src/ui/components/views/ChatList.js +0 -18
- package/dist/src/ui/components/views/ChatList.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionDetails.d.ts +0 -18
- package/dist/src/ui/components/views/ExtensionDetails.js +0 -86
- package/dist/src/ui/components/views/ExtensionDetails.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionRegistryView.d.ts +0 -15
- package/dist/src/ui/components/views/ExtensionRegistryView.js +0 -98
- package/dist/src/ui/components/views/ExtensionRegistryView.js.map +0 -1
- package/dist/src/ui/components/views/ExtensionsList.d.ts +0 -12
- package/dist/src/ui/components/views/ExtensionsList.js +0 -47
- package/dist/src/ui/components/views/ExtensionsList.js.map +0 -1
- package/dist/src/ui/components/views/GemmaStatus.d.ts +0 -10
- package/dist/src/ui/components/views/GemmaStatus.js +0 -12
- package/dist/src/ui/components/views/GemmaStatus.js.map +0 -1
- package/dist/src/ui/components/views/McpStatus.d.ts +0 -28
- package/dist/src/ui/components/views/McpStatus.js +0 -110
- package/dist/src/ui/components/views/McpStatus.js.map +0 -1
- package/dist/src/ui/components/views/SkillsList.d.ts +0 -13
- package/dist/src/ui/components/views/SkillsList.js +0 -19
- package/dist/src/ui/components/views/SkillsList.js.map +0 -1
- package/dist/src/ui/components/views/ToolsList.d.ts +0 -14
- package/dist/src/ui/components/views/ToolsList.js +0 -8
- package/dist/src/ui/components/views/ToolsList.js.map +0 -1
- package/dist/src/ui/constants/tips.d.ts +0 -6
- package/dist/src/ui/constants/tips.js +0 -164
- package/dist/src/ui/constants/tips.js.map +0 -1
- package/dist/src/ui/constants/wittyPhrases.d.ts +0 -6
- package/dist/src/ui/constants/wittyPhrases.js +0 -138
- package/dist/src/ui/constants/wittyPhrases.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -42
- package/dist/src/ui/constants.js +0 -61
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/AppContext.d.ts +0 -13
- package/dist/src/ui/contexts/AppContext.js +0 -15
- package/dist/src/ui/contexts/AppContext.js.map +0 -1
- package/dist/src/ui/contexts/AskUserActionsContext.d.ts +0 -42
- package/dist/src/ui/contexts/AskUserActionsContext.js +0 -25
- package/dist/src/ui/contexts/AskUserActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/ConfigContext.d.ts +0 -9
- package/dist/src/ui/contexts/ConfigContext.js +0 -16
- package/dist/src/ui/contexts/ConfigContext.js.map +0 -1
- package/dist/src/ui/contexts/InputContext.d.ts +0 -18
- package/dist/src/ui/contexts/InputContext.js +0 -15
- package/dist/src/ui/contexts/InputContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -37
- package/dist/src/ui/contexts/KeypressContext.js +0 -781
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/MouseContext.d.ts +0 -20
- package/dist/src/ui/contexts/MouseContext.js +0 -131
- package/dist/src/ui/contexts/MouseContext.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -67
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/QuotaContext.d.ts +0 -19
- package/dist/src/ui/contexts/QuotaContext.js +0 -15
- package/dist/src/ui/contexts/QuotaContext.js.map +0 -1
- package/dist/src/ui/contexts/ScrollProvider.d.ts +0 -25
- package/dist/src/ui/contexts/ScrollProvider.js +0 -313
- package/dist/src/ui/contexts/ScrollProvider.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -47
- package/dist/src/ui/contexts/SessionContext.js +0 -168
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -17
- package/dist/src/ui/contexts/SettingsContext.js +0 -48
- package/dist/src/ui/contexts/SettingsContext.js.map +0 -1
- package/dist/src/ui/contexts/ShellFocusContext.d.ts +0 -8
- package/dist/src/ui/contexts/ShellFocusContext.js +0 -9
- package/dist/src/ui/contexts/ShellFocusContext.js.map +0 -1
- package/dist/src/ui/contexts/StreamingContext.d.ts +0 -9
- package/dist/src/ui/contexts/StreamingContext.js +0 -15
- package/dist/src/ui/contexts/StreamingContext.js.map +0 -1
- package/dist/src/ui/contexts/TerminalContext.d.ts +0 -17
- package/dist/src/ui/contexts/TerminalContext.js +0 -71
- package/dist/src/ui/contexts/TerminalContext.js.map +0 -1
- package/dist/src/ui/contexts/ToolActionsContext.d.ts +0 -27
- package/dist/src/ui/contexts/ToolActionsContext.js +0 -97
- package/dist/src/ui/contexts/ToolActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIActionsContext.d.ts +0 -83
- package/dist/src/ui/contexts/UIActionsContext.js +0 -22
- package/dist/src/ui/contexts/UIActionsContext.js.map +0 -1
- package/dist/src/ui/contexts/UIStateContext.d.ts +0 -184
- package/dist/src/ui/contexts/UIStateContext.js +0 -18
- package/dist/src/ui/contexts/UIStateContext.js.map +0 -1
- package/dist/src/ui/contexts/VimModeContext.d.ts +0 -17
- package/dist/src/ui/contexts/VimModeContext.js +0 -39
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/debug.d.ts +0 -8
- package/dist/src/ui/debug.js +0 -11
- package/dist/src/ui/debug.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -18
- package/dist/src/ui/editors/editorSettingsManager.js +0 -38
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -56
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -558
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/creditsFlowHandler.d.ts +0 -36
- package/dist/src/ui/hooks/creditsFlowHandler.js +0 -158
- package/dist/src/ui/hooks/creditsFlowHandler.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/gitProvider.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/gitProvider.js +0 -73
- package/dist/src/ui/hooks/shell-completions/gitProvider.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/index.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/index.js +0 -16
- package/dist/src/ui/hooks/shell-completions/index.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/npmProvider.d.ts +0 -7
- package/dist/src/ui/hooks/shell-completions/npmProvider.js +0 -67
- package/dist/src/ui/hooks/shell-completions/npmProvider.js.map +0 -1
- package/dist/src/ui/hooks/shell-completions/types.d.ts +0 -16
- package/dist/src/ui/hooks/shell-completions/types.js +0 -7
- package/dist/src/ui/hooks/shell-completions/types.js.map +0 -1
- package/dist/src/ui/hooks/shellReducer.d.ts +0 -55
- package/dist/src/ui/hooks/shellReducer.js +0 -125
- package/dist/src/ui/hooks/shellReducer.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -50
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -560
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/toolMapping.d.ts +0 -18
- package/dist/src/ui/hooks/toolMapping.js +0 -105
- package/dist/src/ui/hooks/toolMapping.js.map +0 -1
- package/dist/src/ui/hooks/useAgentStream.d.ts +0 -44
- package/dist/src/ui/hooks/useAgentStream.js +0 -410
- package/dist/src/ui/hooks/useAgentStream.js.map +0 -1
- package/dist/src/ui/hooks/useAlternateBuffer.d.ts +0 -8
- package/dist/src/ui/hooks/useAlternateBuffer.js +0 -18
- package/dist/src/ui/hooks/useAlternateBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useAnimatedScrollbar.d.ts +0 -10
- package/dist/src/ui/hooks/useAnimatedScrollbar.js +0 -101
- package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +0 -1
- package/dist/src/ui/hooks/useApprovalModeIndicator.d.ts +0 -15
- package/dist/src/ui/hooks/useApprovalModeIndicator.js +0 -84
- package/dist/src/ui/hooks/useApprovalModeIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -348
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useBackgroundTaskManager.d.ts +0 -23
- package/dist/src/ui/hooks/useBackgroundTaskManager.js +0 -58
- package/dist/src/ui/hooks/useBackgroundTaskManager.js.map +0 -1
- package/dist/src/ui/hooks/useBanner.d.ts +0 -14
- package/dist/src/ui/hooks/useBanner.js +0 -56
- package/dist/src/ui/hooks/useBanner.js.map +0 -1
- package/dist/src/ui/hooks/useBatchedScroll.d.ts +0 -14
- package/dist/src/ui/hooks/useBatchedScroll.js +0 -27
- package/dist/src/ui/hooks/useBatchedScroll.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -56
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -344
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useCompletion.js +0 -84
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useComposerStatus.d.ts +0 -21
- package/dist/src/ui/hooks/useComposerStatus.js +0 -80
- package/dist/src/ui/hooks/useComposerStatus.js.map +0 -1
- package/dist/src/ui/hooks/useConfirmingTool.d.ts +0 -12
- package/dist/src/ui/hooks/useConfirmingTool.js +0 -19
- package/dist/src/ui/hooks/useConfirmingTool.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -27
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -140
- package/dist/src/ui/hooks/useConsoleMessages.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.d.ts +0 -16
- package/dist/src/ui/hooks/useEditorSettings.js +0 -46
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useExecutionLifecycle.d.ts +0 -28
- package/dist/src/ui/hooks/useExecutionLifecycle.js +0 -532
- package/dist/src/ui/hooks/useExecutionLifecycle.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionRegistry.d.ts +0 -13
- package/dist/src/ui/hooks/useExtensionRegistry.js +0 -70
- package/dist/src/ui/hooks/useExtensionRegistry.js.map +0 -1
- package/dist/src/ui/hooks/useExtensionUpdates.d.ts +0 -32
- package/dist/src/ui/hooks/useExtensionUpdates.js +0 -174
- package/dist/src/ui/hooks/useExtensionUpdates.js.map +0 -1
- package/dist/src/ui/hooks/useFlickerDetector.d.ts +0 -15
- package/dist/src/ui/hooks/useFlickerDetector.js +0 -38
- package/dist/src/ui/hooks/useFlickerDetector.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -13
- package/dist/src/ui/hooks/useFocus.js +0 -58
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -16
- package/dist/src/ui/hooks/useFolderTrust.js +0 -105
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -43
- package/dist/src/ui/hooks/useGeminiStream.js +0 -1423
- package/dist/src/ui/hooks/useGeminiStream.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.js +0 -78
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -26
- package/dist/src/ui/hooks/useHistoryManager.js +0 -114
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHookDisplayState.d.ts +0 -7
- package/dist/src/ui/hooks/useHookDisplayState.js +0 -84
- package/dist/src/ui/hooks/useHookDisplayState.js.map +0 -1
- package/dist/src/ui/hooks/useIdeTrustListener.d.ts +0 -16
- package/dist/src/ui/hooks/useIdeTrustListener.js +0 -67
- package/dist/src/ui/hooks/useIdeTrustListener.js.map +0 -1
- package/dist/src/ui/hooks/useInactivityTimer.d.ts +0 -14
- package/dist/src/ui/hooks/useInactivityTimer.js +0 -30
- package/dist/src/ui/hooks/useInactivityTimer.js.map +0 -1
- package/dist/src/ui/hooks/useIncludeDirsTrust.d.ts +0 -9
- package/dist/src/ui/hooks/useIncludeDirsTrust.js +0 -111
- package/dist/src/ui/hooks/useIncludeDirsTrust.js.map +0 -1
- package/dist/src/ui/hooks/useInlineEditBuffer.d.ts +0 -44
- package/dist/src/ui/hooks/useInlineEditBuffer.js +0 -113
- package/dist/src/ui/hooks/useInlineEditBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -20
- package/dist/src/ui/hooks/useInputHistory.js +0 -91
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistoryStore.js +0 -82
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
- package/dist/src/ui/hooks/useKeyMatchers.d.ts +0 -17
- package/dist/src/ui/hooks/useKeyMatchers.js +0 -13
- package/dist/src/ui/hooks/useKeyMatchers.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -19
- package/dist/src/ui/hooks/useKeypress.js +0 -28
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -14
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -19
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -23
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -55
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -27
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMcpStatus.d.ts +0 -11
- package/dist/src/ui/hooks/useMcpStatus.js +0 -34
- package/dist/src/ui/hooks/useMcpStatus.js.map +0 -1
- package/dist/src/ui/hooks/useMemoryMonitor.d.ts +0 -13
- package/dist/src/ui/hooks/useMemoryMonitor.js +0 -28
- package/dist/src/ui/hooks/useMemoryMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -26
- package/dist/src/ui/hooks/useMessageQueue.js +0 -70
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useModelCommand.d.ts +0 -12
- package/dist/src/ui/hooks/useModelCommand.js +0 -21
- package/dist/src/ui/hooks/useModelCommand.js.map +0 -1
- package/dist/src/ui/hooks/useMouse.d.ts +0 -17
- package/dist/src/ui/hooks/useMouse.js +0 -27
- package/dist/src/ui/hooks/useMouse.js.map +0 -1
- package/dist/src/ui/hooks/useMouseClick.d.ts +0 -13
- package/dist/src/ui/hooks/useMouseClick.js +0 -36
- package/dist/src/ui/hooks/useMouseClick.js.map +0 -1
- package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +0 -17
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js +0 -115
- package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -23
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -142
- package/dist/src/ui/hooks/usePhraseCycler.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
- package/dist/src/ui/hooks/usePrivacySettings.js +0 -110
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -22
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -169
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +0 -30
- package/dist/src/ui/hooks/useQuotaAndFallback.js +0 -223
- package/dist/src/ui/hooks/useQuotaAndFallback.js.map +0 -1
- package/dist/src/ui/hooks/useRegistrySearch.d.ts +0 -19
- package/dist/src/ui/hooks/useRegistrySearch.js +0 -35
- package/dist/src/ui/hooks/useRegistrySearch.js.map +0 -1
- package/dist/src/ui/hooks/useRepeatedKeyPress.d.ts +0 -15
- package/dist/src/ui/hooks/useRepeatedKeyPress.js +0 -50
- package/dist/src/ui/hooks/useRepeatedKeyPress.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -102
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useRewind.d.ts +0 -14
- package/dist/src/ui/hooks/useRewind.js +0 -31
- package/dist/src/ui/hooks/useRewind.js.map +0 -1
- package/dist/src/ui/hooks/useRunEventNotifications.d.ts +0 -24
- package/dist/src/ui/hooks/useRunEventNotifications.js +0 -95
- package/dist/src/ui/hooks/useRunEventNotifications.js.map +0 -1
- package/dist/src/ui/hooks/useSearchBuffer.d.ts +0 -11
- package/dist/src/ui/hooks/useSearchBuffer.js +0 -24
- package/dist/src/ui/hooks/useSearchBuffer.js.map +0 -1
- package/dist/src/ui/hooks/useSelectionList.d.ts +0 -38
- package/dist/src/ui/hooks/useSelectionList.js +0 -318
- package/dist/src/ui/hooks/useSelectionList.js.map +0 -1
- package/dist/src/ui/hooks/useSessionBrowser.d.ts +0 -26
- package/dist/src/ui/hooks/useSessionBrowser.js +0 -75
- package/dist/src/ui/hooks/useSessionBrowser.js.map +0 -1
- package/dist/src/ui/hooks/useSessionResume.d.ts +0 -31
- package/dist/src/ui/hooks/useSessionResume.js +0 -75
- package/dist/src/ui/hooks/useSessionResume.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +0 -10
- package/dist/src/ui/hooks/useSettingsCommand.js +0 -21
- package/dist/src/ui/hooks/useSettingsCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSettingsNavigation.d.ts +0 -18
- package/dist/src/ui/hooks/useSettingsNavigation.js +0 -72
- package/dist/src/ui/hooks/useSettingsNavigation.js.map +0 -1
- package/dist/src/ui/hooks/useShellCompletion.d.ts +0 -50
- package/dist/src/ui/hooks/useShellCompletion.js +0 -502
- package/dist/src/ui/hooks/useShellCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.d.ts +0 -14
- package/dist/src/ui/hooks/useShellHistory.js +0 -114
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellInactivityStatus.d.ts +0 -26
- package/dist/src/ui/hooks/useShellInactivityStatus.js +0 -45
- package/dist/src/ui/hooks/useShellInactivityStatus.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -435
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSnowfall.d.ts +0 -6
- package/dist/src/ui/hooks/useSnowfall.js +0 -126
- package/dist/src/ui/hooks/useSnowfall.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -27
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useSuspend.d.ts +0 -14
- package/dist/src/ui/hooks/useSuspend.js +0 -102
- package/dist/src/ui/hooks/useSuspend.js.map +0 -1
- package/dist/src/ui/hooks/useTabbedNavigation.d.ts +0 -53
- package/dist/src/ui/hooks/useTabbedNavigation.js +0 -160
- package/dist/src/ui/hooks/useTabbedNavigation.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -26
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalTheme.d.ts +0 -8
- package/dist/src/ui/hooks/useTerminalTheme.js +0 -79
- package/dist/src/ui/hooks/useTerminalTheme.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -16
- package/dist/src/ui/hooks/useThemeCommand.js +0 -80
- package/dist/src/ui/hooks/useThemeCommand.js.map +0 -1
- package/dist/src/ui/hooks/useTimedMessage.d.ts +0 -10
- package/dist/src/ui/hooks/useTimedMessage.js +0 -32
- package/dist/src/ui/hooks/useTimedMessage.js.map +0 -1
- package/dist/src/ui/hooks/useTimer.d.ts +0 -12
- package/dist/src/ui/hooks/useTimer.js +0 -58
- package/dist/src/ui/hooks/useTimer.js.map +0 -1
- package/dist/src/ui/hooks/useTips.d.ts +0 -10
- package/dist/src/ui/hooks/useTips.js +0 -18
- package/dist/src/ui/hooks/useTips.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.d.ts +0 -48
- package/dist/src/ui/hooks/useToolScheduler.js +0 -213
- package/dist/src/ui/hooks/useToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useTurnActivityMonitor.d.ts +0 -20
- package/dist/src/ui/hooks/useTurnActivityMonitor.js +0 -48
- package/dist/src/ui/hooks/useTurnActivityMonitor.js.map +0 -1
- package/dist/src/ui/hooks/useVisibilityToggle.d.ts +0 -12
- package/dist/src/ui/hooks/useVisibilityToggle.js +0 -60
- package/dist/src/ui/hooks/useVisibilityToggle.js.map +0 -1
- package/dist/src/ui/hooks/useVoiceMode.d.ts +0 -28
- package/dist/src/ui/hooks/useVoiceMode.js +0 -339
- package/dist/src/ui/hooks/useVoiceMode.js.map +0 -1
- package/dist/src/ui/hooks/useVoiceModelCommand.d.ts +0 -12
- package/dist/src/ui/hooks/useVoiceModelCommand.js +0 -21
- package/dist/src/ui/hooks/useVoiceModelCommand.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -1312
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/key/keyBindings.d.ts +0 -137
- package/dist/src/ui/key/keyBindings.js +0 -705
- package/dist/src/ui/key/keyBindings.js.map +0 -1
- package/dist/src/ui/key/keyMatchers.d.ts +0 -34
- package/dist/src/ui/key/keyMatchers.js +0 -43
- package/dist/src/ui/key/keyMatchers.js.map +0 -1
- package/dist/src/ui/key/keyToAnsi.d.ts +0 -15
- package/dist/src/ui/key/keyToAnsi.js +0 -45
- package/dist/src/ui/key/keyToAnsi.js.map +0 -1
- package/dist/src/ui/key/keybindingUtils.d.ts +0 -14
- package/dist/src/ui/key/keybindingUtils.js +0 -86
- package/dist/src/ui/key/keybindingUtils.js.map +0 -1
- package/dist/src/ui/layouts/DefaultAppLayout.d.ts +0 -7
- package/dist/src/ui/layouts/DefaultAppLayout.js +0 -30
- package/dist/src/ui/layouts/DefaultAppLayout.js.map +0 -1
- package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +0 -7
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js +0 -18
- package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +0 -1
- package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +0 -12
- package/dist/src/ui/noninteractive/nonInteractiveUi.js +0 -47
- package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -45
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -21
- package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -21
- package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
- package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/PrivacyNotice.js +0 -26
- package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
- package/dist/src/ui/semantic-colors.d.ts +0 -7
- package/dist/src/ui/semantic-colors.js +0 -24
- package/dist/src/ui/semantic-colors.js.map +0 -1
- package/dist/src/ui/state/extensions.d.ts +0 -67
- package/dist/src/ui/state/extensions.js +0 -97
- package/dist/src/ui/state/extensions.js.map +0 -1
- package/dist/src/ui/textConstants.d.ts +0 -14
- package/dist/src/ui/textConstants.js +0 -15
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/ansi-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/ansi-dark.js +0 -154
- package/dist/src/ui/themes/builtin/dark/ansi-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.js +0 -140
- package/dist/src/ui/themes/builtin/dark/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/ayu-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/ayu-dark.js +0 -106
- package/dist/src/ui/themes/builtin/dark/ayu-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/default-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/default-dark.js +0 -143
- package/dist/src/ui/themes/builtin/dark/default-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/dracula-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/dracula-dark.js +0 -117
- package/dist/src/ui/themes/builtin/dark/dracula-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.js +0 -140
- package/dist/src/ui/themes/builtin/dark/github-dark-colorblind.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/github-dark.js +0 -140
- package/dist/src/ui/themes/builtin/dark/github-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/holiday-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/holiday-dark.js +0 -163
- package/dist/src/ui/themes/builtin/dark/holiday-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.d.ts +0 -11
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.js +0 -306
- package/dist/src/ui/themes/builtin/dark/shades-of-purple-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/solarized-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js +0 -198
- package/dist/src/ui/themes/builtin/dark/solarized-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.d.ts +0 -7
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js +0 -147
- package/dist/src/ui/themes/builtin/dark/tokyonight-dark.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/ansi-light.js +0 -143
- package/dist/src/ui/themes/builtin/light/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/ayu-light.js +0 -132
- package/dist/src/ui/themes/builtin/light/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/default-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/default-light.js +0 -100
- package/dist/src/ui/themes/builtin/light/default-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.js +0 -140
- package/dist/src/ui/themes/builtin/light/github-light-colorblind.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/github-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/github-light.js +0 -143
- package/dist/src/ui/themes/builtin/light/github-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/googlecode-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/googlecode-light.js +0 -139
- package/dist/src/ui/themes/builtin/light/googlecode-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/solarized-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/solarized-light.js +0 -198
- package/dist/src/ui/themes/builtin/light/solarized-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/light/xcode-light.d.ts +0 -7
- package/dist/src/ui/themes/builtin/light/xcode-light.js +0 -148
- package/dist/src/ui/themes/builtin/light/xcode-light.js.map +0 -1
- package/dist/src/ui/themes/builtin/no-color.d.ts +0 -7
- package/dist/src/ui/themes/builtin/no-color.js +0 -125
- package/dist/src/ui/themes/builtin/no-color.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -45
- package/dist/src/ui/themes/color-utils.js +0 -106
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -42
- package/dist/src/ui/themes/semantic-tokens.js +0 -77
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -134
- package/dist/src/ui/themes/theme-manager.js +0 -514
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -125
- package/dist/src/ui/themes/theme.js +0 -564
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -422
- package/dist/src/ui/types.js +0 -102
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -33
- package/dist/src/ui/utils/CodeColorizer.js +0 -131
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -26
- package/dist/src/ui/utils/ConsolePatcher.js +0 -57
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -12
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -18
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -15
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -244
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -162
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/antigravityUtils.d.ts +0 -14
- package/dist/src/ui/utils/antigravityUtils.js +0 -41
- package/dist/src/ui/utils/antigravityUtils.js.map +0 -1
- package/dist/src/ui/utils/borderStyles.d.ts +0 -18
- package/dist/src/ui/utils/borderStyles.js +0 -83
- package/dist/src/ui/utils/borderStyles.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -58
- package/dist/src/ui/utils/clipboardUtils.js +0 -485
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -41
- package/dist/src/ui/utils/commandUtils.js +0 -260
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -62
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/confirmingTool.d.ts +0 -15
- package/dist/src/ui/utils/confirmingTool.js +0 -27
- package/dist/src/ui/utils/confirmingTool.js.map +0 -1
- package/dist/src/ui/utils/contextUsage.d.ts +0 -7
- package/dist/src/ui/utils/contextUsage.js +0 -20
- package/dist/src/ui/utils/contextUsage.js.map +0 -1
- package/dist/src/ui/utils/directoryUtils.d.ts +0 -24
- package/dist/src/ui/utils/directoryUtils.js +0 -125
- package/dist/src/ui/utils/directoryUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -29
- package/dist/src/ui/utils/displayUtils.js +0 -43
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/editorUtils.d.ts +0 -19
- package/dist/src/ui/utils/editorUtils.js +0 -151
- package/dist/src/ui/utils/editorUtils.js.map +0 -1
- package/dist/src/ui/utils/fileUtils.d.ts +0 -10
- package/dist/src/ui/utils/fileUtils.js +0 -17
- package/dist/src/ui/utils/fileUtils.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -23
- package/dist/src/ui/utils/formatters.js +0 -127
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/highlight.d.ts +0 -12
- package/dist/src/ui/utils/highlight.js +0 -117
- package/dist/src/ui/utils/highlight.js.map +0 -1
- package/dist/src/ui/utils/historyExportUtils.d.ts +0 -21
- package/dist/src/ui/utils/historyExportUtils.js +0 -59
- package/dist/src/ui/utils/historyExportUtils.js.map +0 -1
- package/dist/src/ui/utils/historyUtils.d.ts +0 -15
- package/dist/src/ui/utils/historyUtils.js +0 -71
- package/dist/src/ui/utils/historyUtils.js.map +0 -1
- package/dist/src/ui/utils/inlineThinkingMode.d.ts +0 -8
- package/dist/src/ui/utils/inlineThinkingMode.js +0 -9
- package/dist/src/ui/utils/inlineThinkingMode.js.map +0 -1
- package/dist/src/ui/utils/input.d.ts +0 -17
- package/dist/src/ui/utils/input.js +0 -51
- package/dist/src/ui/utils/input.js.map +0 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +0 -6
- package/dist/src/ui/utils/isNarrowWidth.js +0 -9
- package/dist/src/ui/utils/isNarrowWidth.js.map +0 -1
- package/dist/src/ui/utils/latexToUnicode.d.ts +0 -21
- package/dist/src/ui/utils/latexToUnicode.js +0 -538
- package/dist/src/ui/utils/latexToUnicode.js.map +0 -1
- package/dist/src/ui/utils/markdownParsingUtils.d.ts +0 -6
- package/dist/src/ui/utils/markdownParsingUtils.js +0 -185
- package/dist/src/ui/utils/markdownParsingUtils.js.map +0 -1
- package/dist/src/ui/utils/markdownUtilities.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.js +0 -110
- package/dist/src/ui/utils/markdownUtilities.js.map +0 -1
- package/dist/src/ui/utils/memorySnapshot.d.ts +0 -19
- package/dist/src/ui/utils/memorySnapshot.js +0 -28
- package/dist/src/ui/utils/memorySnapshot.js.map +0 -1
- package/dist/src/ui/utils/mouse.d.ts +0 -34
- package/dist/src/ui/utils/mouse.js +0 -183
- package/dist/src/ui/utils/mouse.js.map +0 -1
- package/dist/src/ui/utils/pendingAttentionNotification.d.ts +0 -12
- package/dist/src/ui/utils/pendingAttentionNotification.js +0 -101
- package/dist/src/ui/utils/pendingAttentionNotification.js.map +0 -1
- package/dist/src/ui/utils/rewindFileOps.d.ts +0 -47
- package/dist/src/ui/utils/rewindFileOps.js +0 -191
- package/dist/src/ui/utils/rewindFileOps.js.map +0 -1
- package/dist/src/ui/utils/shortcutsHelp.d.ts +0 -7
- package/dist/src/ui/utils/shortcutsHelp.js +0 -12
- package/dist/src/ui/utils/shortcutsHelp.js.map +0 -1
- package/dist/src/ui/utils/terminalCapabilityManager.d.ts +0 -59
- package/dist/src/ui/utils/terminalCapabilityManager.js +0 -261
- package/dist/src/ui/utils/terminalCapabilityManager.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -58
- package/dist/src/ui/utils/terminalSetup.js +0 -419
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/terminalUtils.d.ts +0 -23
- package/dist/src/ui/utils/terminalUtils.js +0 -38
- package/dist/src/ui/utils/terminalUtils.js.map +0 -1
- package/dist/src/ui/utils/textOutput.d.ts +0 -28
- package/dist/src/ui/utils/textOutput.js +0 -53
- package/dist/src/ui/utils/textOutput.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -68
- package/dist/src/ui/utils/textUtils.js +0 -236
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/toolLayoutUtils.d.ts +0 -49
- package/dist/src/ui/utils/toolLayoutUtils.js +0 -80
- package/dist/src/ui/utils/toolLayoutUtils.js.map +0 -1
- package/dist/src/ui/utils/ui-sizing.d.ts +0 -7
- package/dist/src/ui/utils/ui-sizing.js +0 -13
- package/dist/src/ui/utils/ui-sizing.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -20
- package/dist/src/ui/utils/updateCheck.js +0 -96
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/urlSecurityUtils.d.ts +0 -32
- package/dist/src/ui/utils/urlSecurityUtils.js +0 -71
- package/dist/src/ui/utils/urlSecurityUtils.js.map +0 -1
- package/dist/src/utils/activityLogger.d.ts +0 -99
- package/dist/src/utils/activityLogger.js +0 -796
- package/dist/src/utils/activityLogger.js.map +0 -1
- package/dist/src/utils/agentSettings.d.ts +0 -24
- package/dist/src/utils/agentSettings.js +0 -45
- package/dist/src/utils/agentSettings.js.map +0 -1
- package/dist/src/utils/agentUtils.d.ts +0 -15
- package/dist/src/utils/agentUtils.js +0 -50
- package/dist/src/utils/agentUtils.js.map +0 -1
- package/dist/src/utils/autoMemory.d.ts +0 -7
- package/dist/src/utils/autoMemory.js +0 -15
- package/dist/src/utils/autoMemory.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -25
- package/dist/src/utils/cleanup.js +0 -171
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/commands.d.ts +0 -20
- package/dist/src/utils/commands.js +0 -68
- package/dist/src/utils/commands.js.map +0 -1
- package/dist/src/utils/commentJson.d.ts +0 -9
- package/dist/src/utils/commentJson.js +0 -137
- package/dist/src/utils/commentJson.js.map +0 -1
- package/dist/src/utils/deepMerge.d.ts +0 -9
- package/dist/src/utils/deepMerge.js +0 -65
- package/dist/src/utils/deepMerge.js.map +0 -1
- package/dist/src/utils/devtoolsService.d.ts +0 -30
- package/dist/src/utils/devtoolsService.js +0 -186
- package/dist/src/utils/devtoolsService.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -29
- package/dist/src/utils/dialogScopeUtils.js +0 -50
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/envVarResolver.d.ts +0 -42
- package/dist/src/utils/envVarResolver.js +0 -121
- package/dist/src/utils/envVarResolver.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -32
- package/dist/src/utils/errors.js +0 -180
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -34
- package/dist/src/utils/events.js +0 -23
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/featureToggleUtils.d.ts +0 -55
- package/dist/src/utils/featureToggleUtils.js +0 -95
- package/dist/src/utils/featureToggleUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -110
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -19
- package/dist/src/utils/handleAutoUpdate.js +0 -179
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/hookSettings.d.ts +0 -30
- package/dist/src/utils/hookSettings.js +0 -114
- package/dist/src/utils/hookSettings.js.map +0 -1
- package/dist/src/utils/hookUtils.d.ts +0 -12
- package/dist/src/utils/hookUtils.js +0 -51
- package/dist/src/utils/hookUtils.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -26
- package/dist/src/utils/installationInfo.js +0 -187
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/jsonoutput.d.ts +0 -7
- package/dist/src/utils/jsonoutput.js +0 -42
- package/dist/src/utils/jsonoutput.js.map +0 -1
- package/dist/src/utils/logCleanup.d.ts +0 -12
- package/dist/src/utils/logCleanup.js +0 -58
- package/dist/src/utils/logCleanup.js.map +0 -1
- package/dist/src/utils/math.d.ts +0 -13
- package/dist/src/utils/math.js +0 -14
- package/dist/src/utils/math.js.map +0 -1
- package/dist/src/utils/persistentState.d.ts +0 -24
- package/dist/src/utils/persistentState.js +0 -66
- package/dist/src/utils/persistentState.js.map +0 -1
- package/dist/src/utils/processUtils.d.ts +0 -41
- package/dist/src/utils/processUtils.js +0 -99
- package/dist/src/utils/processUtils.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -87
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/relaunch.d.ts +0 -8
- package/dist/src/utils/relaunch.js +0 -61
- package/dist/src/utils/relaunch.js.map +0 -1
- package/dist/src/utils/resize-observer-polyfill.d.ts +0 -2
- package/dist/src/utils/resize-observer-polyfill.js +0 -7
- package/dist/src/utils/resize-observer-polyfill.js.map +0 -1
- package/dist/src/utils/resolvePath.d.ts +0 -6
- package/dist/src/utils/resolvePath.js +0 -21
- package/dist/src/utils/resolvePath.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -927
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/sandboxUtils.d.ts +0 -14
- package/dist/src/utils/sandboxUtils.js +0 -126
- package/dist/src/utils/sandboxUtils.js.map +0 -1
- package/dist/src/utils/sessionCleanup.d.ts +0 -41
- package/dist/src/utils/sessionCleanup.js +0 -481
- package/dist/src/utils/sessionCleanup.js.map +0 -1
- package/dist/src/utils/sessionUtils.d.ts +0 -174
- package/dist/src/utils/sessionUtils.js +0 -465
- package/dist/src/utils/sessionUtils.js.map +0 -1
- package/dist/src/utils/sessions.d.ts +0 -8
- package/dist/src/utils/sessions.js +0 -67
- package/dist/src/utils/sessions.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -78
- package/dist/src/utils/settingsUtils.js +0 -284
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/skillSettings.d.ts +0 -23
- package/dist/src/utils/skillSettings.js +0 -52
- package/dist/src/utils/skillSettings.js.map +0 -1
- package/dist/src/utils/skillUtils.d.ts +0 -37
- package/dist/src/utils/skillUtils.js +0 -232
- package/dist/src/utils/skillUtils.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -8
- package/dist/src/utils/spawnWrapper.js +0 -8
- package/dist/src/utils/spawnWrapper.js.map +0 -1
- package/dist/src/utils/startupWarnings.d.ts +0 -6
- package/dist/src/utils/startupWarnings.js +0 -40
- package/dist/src/utils/startupWarnings.js.map +0 -1
- package/dist/src/utils/terminalNotifications.d.ts +0 -32
- package/dist/src/utils/terminalNotifications.js +0 -131
- package/dist/src/utils/terminalNotifications.js.map +0 -1
- package/dist/src/utils/terminalTheme.d.ts +0 -15
- package/dist/src/utils/terminalTheme.js +0 -50
- package/dist/src/utils/terminalTheme.js.map +0 -1
- package/dist/src/utils/tierUtils.d.ts +0 -12
- package/dist/src/utils/tierUtils.js +0 -15
- package/dist/src/utils/tierUtils.js.map +0 -1
- package/dist/src/utils/updateEventEmitter.d.ts +0 -12
- package/dist/src/utils/updateEventEmitter.js +0 -12
- package/dist/src/utils/updateEventEmitter.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.d.ts +0 -10
- package/dist/src/utils/userStartupWarnings.js +0 -103
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/windowTitle.d.ts +0 -22
- package/dist/src/utils/windowTitle.js +0 -84
- package/dist/src/utils/windowTitle.js.map +0 -1
- package/dist/src/utils/worktreeSetup.d.ts +0 -14
- package/dist/src/utils/worktreeSetup.js +0 -32
- package/dist/src/utils/worktreeSetup.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -8
- package/dist/src/validateNonInterActiveAuth.js +0 -45
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/{src/commands → commands}/extensions/examples/custom-commands/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/exclude-tools/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/hooks/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/hooks/hooks/hooks.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/mcp-server/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/mcp-server/package.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/policies/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/skills/gemini-extension.json +0 -0
- /package/dist/{src/commands → commands}/extensions/examples/themes-example/gemini-extension.json +0 -0
- /package/dist/{src/config/extension-manager-themes.spec.d.ts → services/types.js} +0 -0
|
@@ -0,0 +1,1306 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { getLineRangeOffsets, getPositionFromOffsets, replaceRangeInternal, pushUndo, detachExpandedPaste, isCombiningMark, findNextWordAcrossLines, findPrevWordAcrossLines, findNextBigWordAcrossLines, findPrevBigWordAcrossLines, findWordEndInLine, findBigWordEndInLine, } from './text-buffer.js';
|
|
7
|
+
import { cpLen, toCodePoints } from '../../utils/textUtils.js';
|
|
8
|
+
import { assumeExhaustive } from '@google/gemini-cli-core';
|
|
9
|
+
/**
|
|
10
|
+
* Find the Nth occurrence of `char` in `codePoints`, starting at `start` and
|
|
11
|
+
* stepping by `direction` (+1 forward, -1 backward). Returns the index or -1.
|
|
12
|
+
*/
|
|
13
|
+
function findCharInLine(codePoints, char, count, start, direction) {
|
|
14
|
+
let found = -1;
|
|
15
|
+
let hits = 0;
|
|
16
|
+
for (let i = start; direction === 1 ? i < codePoints.length : i >= 0; i += direction) {
|
|
17
|
+
if (codePoints[i] === char) {
|
|
18
|
+
hits++;
|
|
19
|
+
if (hits >= count) {
|
|
20
|
+
found = i;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return found;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* In NORMAL mode the cursor can never rest past the last character of a line.
|
|
29
|
+
* Call this after any delete action that stays in NORMAL mode to enforce that
|
|
30
|
+
* invariant. Change actions must NOT use this — they immediately enter INSERT
|
|
31
|
+
* mode where the cursor is allowed to sit at the end of the line.
|
|
32
|
+
*/
|
|
33
|
+
function clampNormalCursor(state) {
|
|
34
|
+
const line = state.lines[state.cursorRow] || '';
|
|
35
|
+
const len = cpLen(line);
|
|
36
|
+
const maxCol = Math.max(0, len - 1);
|
|
37
|
+
if (state.cursorCol <= maxCol)
|
|
38
|
+
return state;
|
|
39
|
+
return { ...state, cursorCol: maxCol };
|
|
40
|
+
}
|
|
41
|
+
/** Extract the text that will be removed by a delete/yank operation. */
|
|
42
|
+
function extractRange(lines, startRow, startCol, endRow, endCol) {
|
|
43
|
+
if (startRow === endRow) {
|
|
44
|
+
return toCodePoints(lines[startRow] || '')
|
|
45
|
+
.slice(startCol, endCol)
|
|
46
|
+
.join('');
|
|
47
|
+
}
|
|
48
|
+
const parts = [];
|
|
49
|
+
parts.push(toCodePoints(lines[startRow] || '')
|
|
50
|
+
.slice(startCol)
|
|
51
|
+
.join(''));
|
|
52
|
+
for (let r = startRow + 1; r < endRow; r++) {
|
|
53
|
+
parts.push(lines[r] || '');
|
|
54
|
+
}
|
|
55
|
+
parts.push(toCodePoints(lines[endRow] || '')
|
|
56
|
+
.slice(0, endCol)
|
|
57
|
+
.join(''));
|
|
58
|
+
return parts.join('\n');
|
|
59
|
+
}
|
|
60
|
+
export function handleVimAction(state, action) {
|
|
61
|
+
const { lines, cursorRow, cursorCol } = state;
|
|
62
|
+
switch (action.type) {
|
|
63
|
+
case 'vim_delete_word_forward':
|
|
64
|
+
case 'vim_change_word_forward': {
|
|
65
|
+
const { count } = action.payload;
|
|
66
|
+
let endRow = cursorRow;
|
|
67
|
+
let endCol = cursorCol;
|
|
68
|
+
for (let i = 0; i < count; i++) {
|
|
69
|
+
const nextWord = findNextWordAcrossLines(lines, endRow, endCol, true);
|
|
70
|
+
if (nextWord) {
|
|
71
|
+
endRow = nextWord.row;
|
|
72
|
+
endCol = nextWord.col;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
// No more words. Check if we can delete to the end of the current word.
|
|
76
|
+
const currentLine = lines[endRow] || '';
|
|
77
|
+
const wordEnd = findWordEndInLine(currentLine, endCol);
|
|
78
|
+
if (wordEnd !== null) {
|
|
79
|
+
// Found word end, delete up to (and including) it
|
|
80
|
+
endCol = wordEnd + 1;
|
|
81
|
+
}
|
|
82
|
+
// If wordEnd is null, we are likely on trailing whitespace, so do nothing.
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
87
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
88
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
89
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, endRow, endCol, '');
|
|
90
|
+
if (action.type === 'vim_delete_word_forward') {
|
|
91
|
+
return {
|
|
92
|
+
...clampNormalCursor(newState),
|
|
93
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return newState;
|
|
97
|
+
}
|
|
98
|
+
return state;
|
|
99
|
+
}
|
|
100
|
+
case 'vim_delete_big_word_forward':
|
|
101
|
+
case 'vim_change_big_word_forward': {
|
|
102
|
+
const { count } = action.payload;
|
|
103
|
+
let endRow = cursorRow;
|
|
104
|
+
let endCol = cursorCol;
|
|
105
|
+
for (let i = 0; i < count; i++) {
|
|
106
|
+
const nextWord = findNextBigWordAcrossLines(lines, endRow, endCol, true);
|
|
107
|
+
if (nextWord) {
|
|
108
|
+
endRow = nextWord.row;
|
|
109
|
+
endCol = nextWord.col;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
// No more words. Check if we can delete to the end of the current big word.
|
|
113
|
+
const currentLine = lines[endRow] || '';
|
|
114
|
+
const wordEnd = findBigWordEndInLine(currentLine, endCol);
|
|
115
|
+
if (wordEnd !== null) {
|
|
116
|
+
endCol = wordEnd + 1;
|
|
117
|
+
}
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
122
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
123
|
+
const nextState = pushUndo(state);
|
|
124
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, endRow, endCol, '');
|
|
125
|
+
if (action.type === 'vim_delete_big_word_forward') {
|
|
126
|
+
return {
|
|
127
|
+
...clampNormalCursor(newState),
|
|
128
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return newState;
|
|
132
|
+
}
|
|
133
|
+
return state;
|
|
134
|
+
}
|
|
135
|
+
case 'vim_delete_word_backward':
|
|
136
|
+
case 'vim_change_word_backward': {
|
|
137
|
+
const { count } = action.payload;
|
|
138
|
+
let startRow = cursorRow;
|
|
139
|
+
let startCol = cursorCol;
|
|
140
|
+
for (let i = 0; i < count; i++) {
|
|
141
|
+
const prevWord = findPrevWordAcrossLines(lines, startRow, startCol);
|
|
142
|
+
if (prevWord) {
|
|
143
|
+
startRow = prevWord.row;
|
|
144
|
+
startCol = prevWord.col;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (startRow !== cursorRow || startCol !== cursorCol) {
|
|
151
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
152
|
+
return replaceRangeInternal(nextState, startRow, startCol, cursorRow, cursorCol, '');
|
|
153
|
+
}
|
|
154
|
+
return state;
|
|
155
|
+
}
|
|
156
|
+
case 'vim_delete_big_word_backward':
|
|
157
|
+
case 'vim_change_big_word_backward': {
|
|
158
|
+
const { count } = action.payload;
|
|
159
|
+
let startRow = cursorRow;
|
|
160
|
+
let startCol = cursorCol;
|
|
161
|
+
for (let i = 0; i < count; i++) {
|
|
162
|
+
const prevWord = findPrevBigWordAcrossLines(lines, startRow, startCol);
|
|
163
|
+
if (prevWord) {
|
|
164
|
+
startRow = prevWord.row;
|
|
165
|
+
startCol = prevWord.col;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (startRow !== cursorRow || startCol !== cursorCol) {
|
|
172
|
+
const nextState = pushUndo(state);
|
|
173
|
+
return replaceRangeInternal(nextState, startRow, startCol, cursorRow, cursorCol, '');
|
|
174
|
+
}
|
|
175
|
+
return state;
|
|
176
|
+
}
|
|
177
|
+
case 'vim_delete_word_end':
|
|
178
|
+
case 'vim_change_word_end': {
|
|
179
|
+
const { count } = action.payload;
|
|
180
|
+
let row = cursorRow;
|
|
181
|
+
let col = cursorCol;
|
|
182
|
+
let endRow = cursorRow;
|
|
183
|
+
let endCol = cursorCol;
|
|
184
|
+
for (let i = 0; i < count; i++) {
|
|
185
|
+
const wordEnd = findNextWordAcrossLines(lines, row, col, false);
|
|
186
|
+
if (wordEnd) {
|
|
187
|
+
endRow = wordEnd.row;
|
|
188
|
+
endCol = wordEnd.col + 1; // Include the character at word end
|
|
189
|
+
// For next iteration, move to start of next word
|
|
190
|
+
if (i < count - 1) {
|
|
191
|
+
const nextWord = findNextWordAcrossLines(lines, wordEnd.row, wordEnd.col + 1, true);
|
|
192
|
+
if (nextWord) {
|
|
193
|
+
row = nextWord.row;
|
|
194
|
+
col = nextWord.col;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
break; // No more words
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
// Ensure we don't go past the end of the last line
|
|
206
|
+
if (endRow < lines.length) {
|
|
207
|
+
const lineLen = cpLen(lines[endRow] || '');
|
|
208
|
+
endCol = Math.min(endCol, lineLen);
|
|
209
|
+
}
|
|
210
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
211
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
212
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
213
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, endRow, endCol, '');
|
|
214
|
+
if (action.type === 'vim_delete_word_end') {
|
|
215
|
+
return {
|
|
216
|
+
...clampNormalCursor(newState),
|
|
217
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
return newState;
|
|
221
|
+
}
|
|
222
|
+
return state;
|
|
223
|
+
}
|
|
224
|
+
case 'vim_delete_big_word_end':
|
|
225
|
+
case 'vim_change_big_word_end': {
|
|
226
|
+
const { count } = action.payload;
|
|
227
|
+
let row = cursorRow;
|
|
228
|
+
let col = cursorCol;
|
|
229
|
+
let endRow = cursorRow;
|
|
230
|
+
let endCol = cursorCol;
|
|
231
|
+
for (let i = 0; i < count; i++) {
|
|
232
|
+
const wordEnd = findNextBigWordAcrossLines(lines, row, col, false);
|
|
233
|
+
if (wordEnd) {
|
|
234
|
+
endRow = wordEnd.row;
|
|
235
|
+
endCol = wordEnd.col + 1; // Include the character at word end
|
|
236
|
+
// For next iteration, move to start of next word
|
|
237
|
+
if (i < count - 1) {
|
|
238
|
+
const nextWord = findNextBigWordAcrossLines(lines, wordEnd.row, wordEnd.col + 1, true);
|
|
239
|
+
if (nextWord) {
|
|
240
|
+
row = nextWord.row;
|
|
241
|
+
col = nextWord.col;
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
break; // No more words
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// Ensure we don't go past the end of the last line
|
|
253
|
+
if (endRow < lines.length) {
|
|
254
|
+
const lineLen = cpLen(lines[endRow] || '');
|
|
255
|
+
endCol = Math.min(endCol, lineLen);
|
|
256
|
+
}
|
|
257
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
258
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
259
|
+
const nextState = pushUndo(state);
|
|
260
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, endRow, endCol, '');
|
|
261
|
+
if (action.type === 'vim_delete_big_word_end') {
|
|
262
|
+
return {
|
|
263
|
+
...clampNormalCursor(newState),
|
|
264
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
return newState;
|
|
268
|
+
}
|
|
269
|
+
return state;
|
|
270
|
+
}
|
|
271
|
+
case 'vim_delete_line': {
|
|
272
|
+
const { count } = action.payload;
|
|
273
|
+
if (lines.length === 0)
|
|
274
|
+
return state;
|
|
275
|
+
const linesToDelete = Math.min(count, lines.length - cursorRow);
|
|
276
|
+
const totalLines = lines.length;
|
|
277
|
+
const yankedText = lines
|
|
278
|
+
.slice(cursorRow, cursorRow + linesToDelete)
|
|
279
|
+
.join('\n');
|
|
280
|
+
if (totalLines === 1 || linesToDelete >= totalLines) {
|
|
281
|
+
// If there's only one line, or we're deleting all remaining lines,
|
|
282
|
+
// clear the content but keep one empty line (text editors should never be completely empty)
|
|
283
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
284
|
+
return {
|
|
285
|
+
...nextState,
|
|
286
|
+
lines: [''],
|
|
287
|
+
cursorRow: 0,
|
|
288
|
+
cursorCol: 0,
|
|
289
|
+
preferredCol: null,
|
|
290
|
+
yankRegister: { text: yankedText, linewise: true },
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
294
|
+
const newLines = [...nextState.lines];
|
|
295
|
+
newLines.splice(cursorRow, linesToDelete);
|
|
296
|
+
// Adjust cursor position
|
|
297
|
+
const newCursorRow = Math.min(cursorRow, newLines.length - 1);
|
|
298
|
+
const newCursorCol = 0; // Vim places cursor at beginning of line after dd
|
|
299
|
+
return {
|
|
300
|
+
...nextState,
|
|
301
|
+
lines: newLines,
|
|
302
|
+
cursorRow: newCursorRow,
|
|
303
|
+
cursorCol: newCursorCol,
|
|
304
|
+
preferredCol: null,
|
|
305
|
+
yankRegister: { text: yankedText, linewise: true },
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
case 'vim_change_line': {
|
|
309
|
+
const { count } = action.payload;
|
|
310
|
+
if (lines.length === 0)
|
|
311
|
+
return state;
|
|
312
|
+
const linesToChange = Math.min(count, lines.length - cursorRow);
|
|
313
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
314
|
+
const { startOffset, endOffset } = getLineRangeOffsets(cursorRow, linesToChange, nextState.lines);
|
|
315
|
+
const { startRow, startCol, endRow, endCol } = getPositionFromOffsets(startOffset, endOffset, nextState.lines);
|
|
316
|
+
return replaceRangeInternal(nextState, startRow, startCol, endRow, endCol, '');
|
|
317
|
+
}
|
|
318
|
+
case 'vim_delete_to_end_of_line':
|
|
319
|
+
case 'vim_change_to_end_of_line': {
|
|
320
|
+
const { count } = action.payload;
|
|
321
|
+
const currentLine = lines[cursorRow] || '';
|
|
322
|
+
const totalLines = lines.length;
|
|
323
|
+
const isDelete = action.type === 'vim_delete_to_end_of_line';
|
|
324
|
+
if (count === 1) {
|
|
325
|
+
// Single line: delete from cursor to end of current line
|
|
326
|
+
if (cursorCol < cpLen(currentLine)) {
|
|
327
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, cursorRow, cpLen(currentLine));
|
|
328
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
329
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, cpLen(currentLine), '');
|
|
330
|
+
if (isDelete) {
|
|
331
|
+
return {
|
|
332
|
+
...clampNormalCursor(newState),
|
|
333
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
return newState;
|
|
337
|
+
}
|
|
338
|
+
return state;
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
// Multi-line: delete from cursor to end of current line, plus (count-1) entire lines below
|
|
342
|
+
// For example, 2D = delete to EOL + delete next line entirely
|
|
343
|
+
const linesToDelete = Math.min(count - 1, totalLines - cursorRow - 1);
|
|
344
|
+
const endRow = cursorRow + linesToDelete;
|
|
345
|
+
if (endRow === cursorRow) {
|
|
346
|
+
// No additional lines to delete, just delete to EOL
|
|
347
|
+
if (cursorCol < cpLen(currentLine)) {
|
|
348
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, cursorRow, cpLen(currentLine));
|
|
349
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
350
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, cpLen(currentLine), '');
|
|
351
|
+
if (isDelete) {
|
|
352
|
+
return {
|
|
353
|
+
...clampNormalCursor(newState),
|
|
354
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
return newState;
|
|
358
|
+
}
|
|
359
|
+
return state;
|
|
360
|
+
}
|
|
361
|
+
// Delete from cursor position to end of endRow (including newlines)
|
|
362
|
+
const endLine = lines[endRow] || '';
|
|
363
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, cpLen(endLine));
|
|
364
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
365
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, endRow, cpLen(endLine), '');
|
|
366
|
+
if (isDelete) {
|
|
367
|
+
return {
|
|
368
|
+
...clampNormalCursor(newState),
|
|
369
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
return newState;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
case 'vim_delete_to_start_of_line': {
|
|
376
|
+
if (cursorCol > 0) {
|
|
377
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
378
|
+
return replaceRangeInternal(nextState, cursorRow, 0, cursorRow, cursorCol, '');
|
|
379
|
+
}
|
|
380
|
+
return state;
|
|
381
|
+
}
|
|
382
|
+
case 'vim_delete_to_first_nonwhitespace': {
|
|
383
|
+
// Delete from cursor to first non-whitespace character (vim 'd^')
|
|
384
|
+
const currentLine = lines[cursorRow] || '';
|
|
385
|
+
const lineCodePoints = toCodePoints(currentLine);
|
|
386
|
+
let firstNonWs = 0;
|
|
387
|
+
while (firstNonWs < lineCodePoints.length &&
|
|
388
|
+
/\s/.test(lineCodePoints[firstNonWs])) {
|
|
389
|
+
firstNonWs++;
|
|
390
|
+
}
|
|
391
|
+
// If line is all whitespace, firstNonWs would be lineCodePoints.length
|
|
392
|
+
// In VIM, ^ on whitespace-only line goes to column 0
|
|
393
|
+
if (firstNonWs >= lineCodePoints.length) {
|
|
394
|
+
firstNonWs = 0;
|
|
395
|
+
}
|
|
396
|
+
// Delete between cursor and first non-whitespace (whichever direction)
|
|
397
|
+
if (cursorCol !== firstNonWs) {
|
|
398
|
+
const startCol = Math.min(cursorCol, firstNonWs);
|
|
399
|
+
const endCol = Math.max(cursorCol, firstNonWs);
|
|
400
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
401
|
+
return replaceRangeInternal(nextState, cursorRow, startCol, cursorRow, endCol, '');
|
|
402
|
+
}
|
|
403
|
+
return state;
|
|
404
|
+
}
|
|
405
|
+
case 'vim_change_to_start_of_line': {
|
|
406
|
+
// Change from cursor to start of line (vim 'c0')
|
|
407
|
+
if (cursorCol > 0) {
|
|
408
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
409
|
+
return replaceRangeInternal(nextState, cursorRow, 0, cursorRow, cursorCol, '');
|
|
410
|
+
}
|
|
411
|
+
return state;
|
|
412
|
+
}
|
|
413
|
+
case 'vim_change_to_first_nonwhitespace': {
|
|
414
|
+
// Change from cursor to first non-whitespace character (vim 'c^')
|
|
415
|
+
const currentLine = lines[cursorRow] || '';
|
|
416
|
+
const lineCodePoints = toCodePoints(currentLine);
|
|
417
|
+
let firstNonWs = 0;
|
|
418
|
+
while (firstNonWs < lineCodePoints.length &&
|
|
419
|
+
/\s/.test(lineCodePoints[firstNonWs])) {
|
|
420
|
+
firstNonWs++;
|
|
421
|
+
}
|
|
422
|
+
// If line is all whitespace, firstNonWs would be lineCodePoints.length
|
|
423
|
+
// In VIM, ^ on whitespace-only line goes to column 0
|
|
424
|
+
if (firstNonWs >= lineCodePoints.length) {
|
|
425
|
+
firstNonWs = 0;
|
|
426
|
+
}
|
|
427
|
+
// Change between cursor and first non-whitespace (whichever direction)
|
|
428
|
+
if (cursorCol !== firstNonWs) {
|
|
429
|
+
const startCol = Math.min(cursorCol, firstNonWs);
|
|
430
|
+
const endCol = Math.max(cursorCol, firstNonWs);
|
|
431
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
432
|
+
return replaceRangeInternal(nextState, cursorRow, startCol, cursorRow, endCol, '');
|
|
433
|
+
}
|
|
434
|
+
return state;
|
|
435
|
+
}
|
|
436
|
+
case 'vim_delete_to_first_line': {
|
|
437
|
+
// Delete from first line (or line N if count given) to current line (vim 'dgg' or 'd5gg')
|
|
438
|
+
// count is the target line number (1-based), or 0 for first line
|
|
439
|
+
const { count } = action.payload;
|
|
440
|
+
const totalLines = lines.length;
|
|
441
|
+
// Determine target row (0-based)
|
|
442
|
+
// count=0 means go to first line, count=N means go to line N (1-based)
|
|
443
|
+
let targetRow;
|
|
444
|
+
if (count > 0) {
|
|
445
|
+
targetRow = Math.min(count - 1, totalLines - 1);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
targetRow = 0;
|
|
449
|
+
}
|
|
450
|
+
// Determine the range to delete (from min to max row, inclusive)
|
|
451
|
+
const startRow = Math.min(cursorRow, targetRow);
|
|
452
|
+
const endRow = Math.max(cursorRow, targetRow);
|
|
453
|
+
const linesToDelete = endRow - startRow + 1;
|
|
454
|
+
if (linesToDelete >= totalLines) {
|
|
455
|
+
// Deleting all lines - keep one empty line
|
|
456
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
457
|
+
return {
|
|
458
|
+
...nextState,
|
|
459
|
+
lines: [''],
|
|
460
|
+
cursorRow: 0,
|
|
461
|
+
cursorCol: 0,
|
|
462
|
+
preferredCol: null,
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
466
|
+
const newLines = [...nextState.lines];
|
|
467
|
+
newLines.splice(startRow, linesToDelete);
|
|
468
|
+
// Cursor goes to start of the deleted range, clamped to valid bounds
|
|
469
|
+
const newCursorRow = Math.min(startRow, newLines.length - 1);
|
|
470
|
+
return {
|
|
471
|
+
...nextState,
|
|
472
|
+
lines: newLines,
|
|
473
|
+
cursorRow: newCursorRow,
|
|
474
|
+
cursorCol: 0,
|
|
475
|
+
preferredCol: null,
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
case 'vim_delete_to_last_line': {
|
|
479
|
+
// Delete from current line to last line (vim 'dG') or to line N (vim 'd5G')
|
|
480
|
+
// count is the target line number (1-based), or 0 for last line
|
|
481
|
+
const { count } = action.payload;
|
|
482
|
+
const totalLines = lines.length;
|
|
483
|
+
// Determine target row (0-based)
|
|
484
|
+
// count=0 means go to last line, count=N means go to line N (1-based)
|
|
485
|
+
let targetRow;
|
|
486
|
+
if (count > 0) {
|
|
487
|
+
targetRow = Math.min(count - 1, totalLines - 1);
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
targetRow = totalLines - 1;
|
|
491
|
+
}
|
|
492
|
+
// Determine the range to delete (from min to max row, inclusive)
|
|
493
|
+
const startRow = Math.min(cursorRow, targetRow);
|
|
494
|
+
const endRow = Math.max(cursorRow, targetRow);
|
|
495
|
+
const linesToDelete = endRow - startRow + 1;
|
|
496
|
+
if (linesToDelete >= totalLines) {
|
|
497
|
+
// Deleting all lines - keep one empty line
|
|
498
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
499
|
+
return {
|
|
500
|
+
...nextState,
|
|
501
|
+
lines: [''],
|
|
502
|
+
cursorRow: 0,
|
|
503
|
+
cursorCol: 0,
|
|
504
|
+
preferredCol: null,
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
508
|
+
const newLines = [...nextState.lines];
|
|
509
|
+
newLines.splice(startRow, linesToDelete);
|
|
510
|
+
// Move cursor to the start of the deleted range (or last line if needed)
|
|
511
|
+
const newCursorRow = Math.min(startRow, newLines.length - 1);
|
|
512
|
+
return {
|
|
513
|
+
...nextState,
|
|
514
|
+
lines: newLines,
|
|
515
|
+
cursorRow: newCursorRow,
|
|
516
|
+
cursorCol: 0,
|
|
517
|
+
preferredCol: null,
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
case 'vim_change_movement': {
|
|
521
|
+
const { movement, count } = action.payload;
|
|
522
|
+
const totalLines = lines.length;
|
|
523
|
+
switch (movement) {
|
|
524
|
+
case 'h': {
|
|
525
|
+
// Left
|
|
526
|
+
// Change N characters to the left
|
|
527
|
+
const startCol = Math.max(0, cursorCol - count);
|
|
528
|
+
return replaceRangeInternal(detachExpandedPaste(pushUndo(state)), cursorRow, startCol, cursorRow, cursorCol, '');
|
|
529
|
+
}
|
|
530
|
+
case 'j': {
|
|
531
|
+
// Down - delete/change current line + count lines below
|
|
532
|
+
const linesToChange = Math.min(count + 1, totalLines - cursorRow);
|
|
533
|
+
if (linesToChange > 0) {
|
|
534
|
+
if (linesToChange >= totalLines) {
|
|
535
|
+
// Deleting all lines - keep one empty line
|
|
536
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
537
|
+
return {
|
|
538
|
+
...nextState,
|
|
539
|
+
lines: [''],
|
|
540
|
+
cursorRow: 0,
|
|
541
|
+
cursorCol: 0,
|
|
542
|
+
preferredCol: null,
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
546
|
+
const newLines = [...nextState.lines];
|
|
547
|
+
newLines.splice(cursorRow, linesToChange);
|
|
548
|
+
return {
|
|
549
|
+
...nextState,
|
|
550
|
+
lines: newLines,
|
|
551
|
+
cursorRow: Math.min(cursorRow, newLines.length - 1),
|
|
552
|
+
cursorCol: 0,
|
|
553
|
+
preferredCol: null,
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
return state;
|
|
557
|
+
}
|
|
558
|
+
case 'k': {
|
|
559
|
+
// Up - delete/change current line + count lines above
|
|
560
|
+
const startRow = Math.max(0, cursorRow - count);
|
|
561
|
+
const linesToChange = cursorRow - startRow + 1;
|
|
562
|
+
if (linesToChange > 0) {
|
|
563
|
+
if (linesToChange >= totalLines) {
|
|
564
|
+
// Deleting all lines - keep one empty line
|
|
565
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
566
|
+
return {
|
|
567
|
+
...nextState,
|
|
568
|
+
lines: [''],
|
|
569
|
+
cursorRow: 0,
|
|
570
|
+
cursorCol: 0,
|
|
571
|
+
preferredCol: null,
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
575
|
+
const newLines = [...nextState.lines];
|
|
576
|
+
newLines.splice(startRow, linesToChange);
|
|
577
|
+
return {
|
|
578
|
+
...nextState,
|
|
579
|
+
lines: newLines,
|
|
580
|
+
cursorRow: Math.min(startRow, newLines.length - 1),
|
|
581
|
+
cursorCol: 0,
|
|
582
|
+
preferredCol: null,
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
return state;
|
|
586
|
+
}
|
|
587
|
+
case 'l': {
|
|
588
|
+
// Right
|
|
589
|
+
// Change N characters to the right
|
|
590
|
+
return replaceRangeInternal(detachExpandedPaste(pushUndo(state)), cursorRow, cursorCol, cursorRow, Math.min(cpLen(lines[cursorRow] || ''), cursorCol + count), '');
|
|
591
|
+
}
|
|
592
|
+
default:
|
|
593
|
+
return state;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
case 'vim_move_left': {
|
|
597
|
+
const { count } = action.payload;
|
|
598
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
599
|
+
let newRow = cursorRow;
|
|
600
|
+
let newCol = cursorCol;
|
|
601
|
+
for (let i = 0; i < count; i++) {
|
|
602
|
+
if (newCol > 0) {
|
|
603
|
+
newCol--;
|
|
604
|
+
}
|
|
605
|
+
else if (newRow > 0) {
|
|
606
|
+
// Move to end of previous line
|
|
607
|
+
newRow--;
|
|
608
|
+
const prevLine = lines[newRow] || '';
|
|
609
|
+
const prevLineLength = cpLen(prevLine);
|
|
610
|
+
// Position on last character, or column 0 for empty lines
|
|
611
|
+
newCol = prevLineLength === 0 ? 0 : prevLineLength - 1;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return {
|
|
615
|
+
...state,
|
|
616
|
+
cursorRow: newRow,
|
|
617
|
+
cursorCol: newCol,
|
|
618
|
+
preferredCol: null,
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
case 'vim_move_right': {
|
|
622
|
+
const { count } = action.payload;
|
|
623
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
624
|
+
let newRow = cursorRow;
|
|
625
|
+
let newCol = cursorCol;
|
|
626
|
+
for (let i = 0; i < count; i++) {
|
|
627
|
+
const currentLine = lines[newRow] || '';
|
|
628
|
+
const lineLength = cpLen(currentLine);
|
|
629
|
+
// Don't move past the last character of the line
|
|
630
|
+
// For empty lines, stay at column 0; for non-empty lines, don't go past last character
|
|
631
|
+
if (lineLength === 0) {
|
|
632
|
+
// Empty line - try to move to next line
|
|
633
|
+
if (newRow < lines.length - 1) {
|
|
634
|
+
newRow++;
|
|
635
|
+
newCol = 0;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
else if (newCol < lineLength - 1) {
|
|
639
|
+
newCol++;
|
|
640
|
+
// Skip over combining marks - don't let cursor land on them
|
|
641
|
+
const currentLinePoints = toCodePoints(currentLine);
|
|
642
|
+
while (newCol < currentLinePoints.length &&
|
|
643
|
+
isCombiningMark(currentLinePoints[newCol]) &&
|
|
644
|
+
newCol < lineLength - 1) {
|
|
645
|
+
newCol++;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
else if (newRow < lines.length - 1) {
|
|
649
|
+
// At end of line - move to beginning of next line
|
|
650
|
+
newRow++;
|
|
651
|
+
newCol = 0;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return {
|
|
655
|
+
...state,
|
|
656
|
+
cursorRow: newRow,
|
|
657
|
+
cursorCol: newCol,
|
|
658
|
+
preferredCol: null,
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
case 'vim_move_up': {
|
|
662
|
+
const { count } = action.payload;
|
|
663
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
664
|
+
const newRow = Math.max(0, cursorRow - count);
|
|
665
|
+
const targetLine = lines[newRow] || '';
|
|
666
|
+
const targetLineLength = cpLen(targetLine);
|
|
667
|
+
const newCol = Math.min(cursorCol, targetLineLength > 0 ? targetLineLength - 1 : 0);
|
|
668
|
+
return {
|
|
669
|
+
...state,
|
|
670
|
+
cursorRow: newRow,
|
|
671
|
+
cursorCol: newCol,
|
|
672
|
+
preferredCol: null,
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
case 'vim_move_down': {
|
|
676
|
+
const { count } = action.payload;
|
|
677
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
678
|
+
const newRow = Math.min(lines.length - 1, cursorRow + count);
|
|
679
|
+
const targetLine = lines[newRow] || '';
|
|
680
|
+
const targetLineLength = cpLen(targetLine);
|
|
681
|
+
const newCol = Math.min(cursorCol, targetLineLength > 0 ? targetLineLength - 1 : 0);
|
|
682
|
+
return {
|
|
683
|
+
...state,
|
|
684
|
+
cursorRow: newRow,
|
|
685
|
+
cursorCol: newCol,
|
|
686
|
+
preferredCol: null,
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
case 'vim_move_word_forward': {
|
|
690
|
+
const { count } = action.payload;
|
|
691
|
+
let row = cursorRow;
|
|
692
|
+
let col = cursorCol;
|
|
693
|
+
for (let i = 0; i < count; i++) {
|
|
694
|
+
const nextWord = findNextWordAcrossLines(lines, row, col, true);
|
|
695
|
+
if (nextWord) {
|
|
696
|
+
row = nextWord.row;
|
|
697
|
+
col = nextWord.col;
|
|
698
|
+
}
|
|
699
|
+
else {
|
|
700
|
+
// No more words to move to
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
return {
|
|
705
|
+
...state,
|
|
706
|
+
cursorRow: row,
|
|
707
|
+
cursorCol: col,
|
|
708
|
+
preferredCol: null,
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
case 'vim_move_big_word_forward': {
|
|
712
|
+
const { count } = action.payload;
|
|
713
|
+
let row = cursorRow;
|
|
714
|
+
let col = cursorCol;
|
|
715
|
+
for (let i = 0; i < count; i++) {
|
|
716
|
+
const nextWord = findNextBigWordAcrossLines(lines, row, col, true);
|
|
717
|
+
if (nextWord) {
|
|
718
|
+
row = nextWord.row;
|
|
719
|
+
col = nextWord.col;
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
// No more words to move to
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
return {
|
|
727
|
+
...state,
|
|
728
|
+
cursorRow: row,
|
|
729
|
+
cursorCol: col,
|
|
730
|
+
preferredCol: null,
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
case 'vim_move_word_backward': {
|
|
734
|
+
const { count } = action.payload;
|
|
735
|
+
let row = cursorRow;
|
|
736
|
+
let col = cursorCol;
|
|
737
|
+
for (let i = 0; i < count; i++) {
|
|
738
|
+
const prevWord = findPrevWordAcrossLines(lines, row, col);
|
|
739
|
+
if (prevWord) {
|
|
740
|
+
row = prevWord.row;
|
|
741
|
+
col = prevWord.col;
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return {
|
|
748
|
+
...state,
|
|
749
|
+
cursorRow: row,
|
|
750
|
+
cursorCol: col,
|
|
751
|
+
preferredCol: null,
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
case 'vim_move_big_word_backward': {
|
|
755
|
+
const { count } = action.payload;
|
|
756
|
+
let row = cursorRow;
|
|
757
|
+
let col = cursorCol;
|
|
758
|
+
for (let i = 0; i < count; i++) {
|
|
759
|
+
const prevWord = findPrevBigWordAcrossLines(lines, row, col);
|
|
760
|
+
if (prevWord) {
|
|
761
|
+
row = prevWord.row;
|
|
762
|
+
col = prevWord.col;
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
break;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
return {
|
|
769
|
+
...state,
|
|
770
|
+
cursorRow: row,
|
|
771
|
+
cursorCol: col,
|
|
772
|
+
preferredCol: null,
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
case 'vim_move_word_end': {
|
|
776
|
+
const { count } = action.payload;
|
|
777
|
+
let row = cursorRow;
|
|
778
|
+
let col = cursorCol;
|
|
779
|
+
for (let i = 0; i < count; i++) {
|
|
780
|
+
const wordEnd = findNextWordAcrossLines(lines, row, col, false);
|
|
781
|
+
if (wordEnd) {
|
|
782
|
+
row = wordEnd.row;
|
|
783
|
+
col = wordEnd.col;
|
|
784
|
+
}
|
|
785
|
+
else {
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
return {
|
|
790
|
+
...state,
|
|
791
|
+
cursorRow: row,
|
|
792
|
+
cursorCol: col,
|
|
793
|
+
preferredCol: null,
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
case 'vim_move_big_word_end': {
|
|
797
|
+
const { count } = action.payload;
|
|
798
|
+
let row = cursorRow;
|
|
799
|
+
let col = cursorCol;
|
|
800
|
+
for (let i = 0; i < count; i++) {
|
|
801
|
+
const wordEnd = findNextBigWordAcrossLines(lines, row, col, false);
|
|
802
|
+
if (wordEnd) {
|
|
803
|
+
row = wordEnd.row;
|
|
804
|
+
col = wordEnd.col;
|
|
805
|
+
}
|
|
806
|
+
else {
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
return {
|
|
811
|
+
...state,
|
|
812
|
+
cursorRow: row,
|
|
813
|
+
cursorCol: col,
|
|
814
|
+
preferredCol: null,
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
case 'vim_delete_char': {
|
|
818
|
+
const { count } = action.payload;
|
|
819
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
820
|
+
const currentLine = lines[cursorRow] || '';
|
|
821
|
+
const lineLength = cpLen(currentLine);
|
|
822
|
+
if (cursorCol < lineLength) {
|
|
823
|
+
const deleteCount = Math.min(count, lineLength - cursorCol);
|
|
824
|
+
const deletedText = toCodePoints(currentLine)
|
|
825
|
+
.slice(cursorCol, cursorCol + deleteCount)
|
|
826
|
+
.join('');
|
|
827
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
828
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, cursorCol + deleteCount, '');
|
|
829
|
+
return {
|
|
830
|
+
...clampNormalCursor(newState),
|
|
831
|
+
yankRegister: { text: deletedText, linewise: false },
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
return state;
|
|
835
|
+
}
|
|
836
|
+
case 'vim_insert_at_cursor': {
|
|
837
|
+
// Just return state - mode change is handled elsewhere
|
|
838
|
+
return state;
|
|
839
|
+
}
|
|
840
|
+
case 'vim_append_at_cursor': {
|
|
841
|
+
const { cursorRow, cursorCol, lines } = state;
|
|
842
|
+
const currentLine = lines[cursorRow] || '';
|
|
843
|
+
const newCol = cursorCol < cpLen(currentLine) ? cursorCol + 1 : cursorCol;
|
|
844
|
+
return {
|
|
845
|
+
...state,
|
|
846
|
+
cursorCol: newCol,
|
|
847
|
+
preferredCol: null,
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
case 'vim_open_line_below': {
|
|
851
|
+
const { cursorRow, lines } = state;
|
|
852
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
853
|
+
// Insert newline at end of current line
|
|
854
|
+
const endOfLine = cpLen(lines[cursorRow] || '');
|
|
855
|
+
return replaceRangeInternal(nextState, cursorRow, endOfLine, cursorRow, endOfLine, '\n');
|
|
856
|
+
}
|
|
857
|
+
case 'vim_open_line_above': {
|
|
858
|
+
const { cursorRow } = state;
|
|
859
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
860
|
+
// Insert newline at beginning of current line
|
|
861
|
+
const resultState = replaceRangeInternal(nextState, cursorRow, 0, cursorRow, 0, '\n');
|
|
862
|
+
// Move cursor to the new line above
|
|
863
|
+
return {
|
|
864
|
+
...resultState,
|
|
865
|
+
cursorRow,
|
|
866
|
+
cursorCol: 0,
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
case 'vim_append_at_line_end': {
|
|
870
|
+
const { cursorRow, lines } = state;
|
|
871
|
+
const lineLength = cpLen(lines[cursorRow] || '');
|
|
872
|
+
return {
|
|
873
|
+
...state,
|
|
874
|
+
cursorCol: lineLength,
|
|
875
|
+
preferredCol: null,
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
case 'vim_insert_at_line_start': {
|
|
879
|
+
const { cursorRow, lines } = state;
|
|
880
|
+
const currentLine = lines[cursorRow] || '';
|
|
881
|
+
let col = 0;
|
|
882
|
+
// Find first non-whitespace character using proper Unicode handling
|
|
883
|
+
const lineCodePoints = toCodePoints(currentLine);
|
|
884
|
+
while (col < lineCodePoints.length && /\s/.test(lineCodePoints[col])) {
|
|
885
|
+
col++;
|
|
886
|
+
}
|
|
887
|
+
return {
|
|
888
|
+
...state,
|
|
889
|
+
cursorCol: col,
|
|
890
|
+
preferredCol: null,
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
case 'vim_move_to_line_start': {
|
|
894
|
+
return {
|
|
895
|
+
...state,
|
|
896
|
+
cursorCol: 0,
|
|
897
|
+
preferredCol: null,
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
case 'vim_move_to_line_end': {
|
|
901
|
+
const { cursorRow, lines } = state;
|
|
902
|
+
const lineLength = cpLen(lines[cursorRow] || '');
|
|
903
|
+
return {
|
|
904
|
+
...state,
|
|
905
|
+
cursorCol: lineLength > 0 ? lineLength - 1 : 0,
|
|
906
|
+
preferredCol: null,
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
case 'vim_move_to_first_nonwhitespace': {
|
|
910
|
+
const { cursorRow, lines } = state;
|
|
911
|
+
const currentLine = lines[cursorRow] || '';
|
|
912
|
+
let col = 0;
|
|
913
|
+
// Find first non-whitespace character using proper Unicode handling
|
|
914
|
+
const lineCodePoints = toCodePoints(currentLine);
|
|
915
|
+
while (col < lineCodePoints.length && /\s/.test(lineCodePoints[col])) {
|
|
916
|
+
col++;
|
|
917
|
+
}
|
|
918
|
+
// If line is all whitespace or empty, ^ goes to column 0 (standard Vim behavior)
|
|
919
|
+
if (col >= lineCodePoints.length) {
|
|
920
|
+
col = 0;
|
|
921
|
+
}
|
|
922
|
+
return {
|
|
923
|
+
...state,
|
|
924
|
+
cursorCol: col,
|
|
925
|
+
preferredCol: null,
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
case 'vim_move_to_first_line': {
|
|
929
|
+
return {
|
|
930
|
+
...state,
|
|
931
|
+
cursorRow: 0,
|
|
932
|
+
cursorCol: 0,
|
|
933
|
+
preferredCol: null,
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
case 'vim_move_to_last_line': {
|
|
937
|
+
const { lines } = state;
|
|
938
|
+
const lastRow = lines.length - 1;
|
|
939
|
+
return {
|
|
940
|
+
...state,
|
|
941
|
+
cursorRow: lastRow,
|
|
942
|
+
cursorCol: 0,
|
|
943
|
+
preferredCol: null,
|
|
944
|
+
};
|
|
945
|
+
}
|
|
946
|
+
case 'vim_move_to_line': {
|
|
947
|
+
const { lineNumber } = action.payload;
|
|
948
|
+
const { lines } = state;
|
|
949
|
+
const targetRow = Math.min(Math.max(0, lineNumber - 1), lines.length - 1);
|
|
950
|
+
return {
|
|
951
|
+
...state,
|
|
952
|
+
cursorRow: targetRow,
|
|
953
|
+
cursorCol: 0,
|
|
954
|
+
preferredCol: null,
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
case 'vim_escape_insert_mode': {
|
|
958
|
+
// Move cursor left if not at beginning of line (vim behavior when exiting insert mode)
|
|
959
|
+
const { cursorCol } = state;
|
|
960
|
+
const newCol = cursorCol > 0 ? cursorCol - 1 : 0;
|
|
961
|
+
return {
|
|
962
|
+
...state,
|
|
963
|
+
cursorCol: newCol,
|
|
964
|
+
preferredCol: null,
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
case 'vim_delete_char_before': {
|
|
968
|
+
const { count } = action.payload;
|
|
969
|
+
if (cursorCol > 0) {
|
|
970
|
+
const deleteStart = Math.max(0, cursorCol - count);
|
|
971
|
+
const deletedText = toCodePoints(lines[cursorRow] || '')
|
|
972
|
+
.slice(deleteStart, cursorCol)
|
|
973
|
+
.join('');
|
|
974
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
975
|
+
const newState = replaceRangeInternal(nextState, cursorRow, deleteStart, cursorRow, cursorCol, '');
|
|
976
|
+
return {
|
|
977
|
+
...newState,
|
|
978
|
+
yankRegister: { text: deletedText, linewise: false },
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
return state;
|
|
982
|
+
}
|
|
983
|
+
case 'vim_toggle_case': {
|
|
984
|
+
const { count } = action.payload;
|
|
985
|
+
const currentLine = lines[cursorRow] || '';
|
|
986
|
+
const lineLen = cpLen(currentLine);
|
|
987
|
+
if (cursorCol >= lineLen)
|
|
988
|
+
return state;
|
|
989
|
+
const end = Math.min(cursorCol + count, lineLen);
|
|
990
|
+
const codePoints = toCodePoints(currentLine);
|
|
991
|
+
for (let i = cursorCol; i < end; i++) {
|
|
992
|
+
const ch = codePoints[i];
|
|
993
|
+
const upper = ch.toUpperCase();
|
|
994
|
+
const lower = ch.toLowerCase();
|
|
995
|
+
codePoints[i] = ch === upper ? lower : upper;
|
|
996
|
+
}
|
|
997
|
+
const newLine = codePoints.join('');
|
|
998
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
999
|
+
const newLines = [...nextState.lines];
|
|
1000
|
+
newLines[cursorRow] = newLine;
|
|
1001
|
+
const newCol = Math.min(end, lineLen > 0 ? lineLen - 1 : 0);
|
|
1002
|
+
return {
|
|
1003
|
+
...nextState,
|
|
1004
|
+
lines: newLines,
|
|
1005
|
+
cursorCol: newCol,
|
|
1006
|
+
preferredCol: null,
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
case 'vim_replace_char': {
|
|
1010
|
+
const { char, count } = action.payload;
|
|
1011
|
+
const currentLine = lines[cursorRow] || '';
|
|
1012
|
+
const lineLen = cpLen(currentLine);
|
|
1013
|
+
if (cursorCol >= lineLen)
|
|
1014
|
+
return state;
|
|
1015
|
+
const replaceCount = Math.min(count, lineLen - cursorCol);
|
|
1016
|
+
const replacement = char.repeat(replaceCount);
|
|
1017
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
1018
|
+
const resultState = replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, cursorCol + replaceCount, replacement);
|
|
1019
|
+
return {
|
|
1020
|
+
...resultState,
|
|
1021
|
+
cursorCol: cursorCol + replaceCount - 1,
|
|
1022
|
+
preferredCol: null,
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
case 'vim_delete_to_char_forward': {
|
|
1026
|
+
const { char, count, till } = action.payload;
|
|
1027
|
+
const lineCodePoints = toCodePoints(lines[cursorRow] || '');
|
|
1028
|
+
const found = findCharInLine(lineCodePoints, char, count, cursorCol + 1, 1);
|
|
1029
|
+
if (found === -1)
|
|
1030
|
+
return state;
|
|
1031
|
+
const endCol = till ? found : found + 1;
|
|
1032
|
+
const yankedText = lineCodePoints.slice(cursorCol, endCol).join('');
|
|
1033
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
1034
|
+
return {
|
|
1035
|
+
...clampNormalCursor(replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, endCol, '')),
|
|
1036
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
case 'vim_delete_to_char_backward': {
|
|
1040
|
+
const { char, count, till } = action.payload;
|
|
1041
|
+
const lineCodePoints = toCodePoints(lines[cursorRow] || '');
|
|
1042
|
+
const found = findCharInLine(lineCodePoints, char, count, cursorCol - 1, -1);
|
|
1043
|
+
if (found === -1)
|
|
1044
|
+
return state;
|
|
1045
|
+
const startCol = till ? found + 1 : found;
|
|
1046
|
+
const endCol = cursorCol + 1; // inclusive: cursor char is part of the deletion
|
|
1047
|
+
if (startCol >= endCol)
|
|
1048
|
+
return state;
|
|
1049
|
+
const yankedText = lineCodePoints.slice(startCol, endCol).join('');
|
|
1050
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
1051
|
+
const resultState = replaceRangeInternal(nextState, cursorRow, startCol, cursorRow, endCol, '');
|
|
1052
|
+
return {
|
|
1053
|
+
...clampNormalCursor({
|
|
1054
|
+
...resultState,
|
|
1055
|
+
cursorCol: startCol,
|
|
1056
|
+
preferredCol: null,
|
|
1057
|
+
}),
|
|
1058
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
case 'vim_find_char_forward': {
|
|
1062
|
+
const { char, count, till } = action.payload;
|
|
1063
|
+
const lineCodePoints = toCodePoints(lines[cursorRow] || '');
|
|
1064
|
+
const found = findCharInLine(lineCodePoints, char, count, cursorCol + 1, 1);
|
|
1065
|
+
if (found === -1)
|
|
1066
|
+
return state;
|
|
1067
|
+
const newCol = till ? Math.max(cursorCol, found - 1) : found;
|
|
1068
|
+
return { ...state, cursorCol: newCol, preferredCol: null };
|
|
1069
|
+
}
|
|
1070
|
+
case 'vim_find_char_backward': {
|
|
1071
|
+
const { char, count, till } = action.payload;
|
|
1072
|
+
const lineCodePoints = toCodePoints(lines[cursorRow] || '');
|
|
1073
|
+
const found = findCharInLine(lineCodePoints, char, count, cursorCol - 1, -1);
|
|
1074
|
+
if (found === -1)
|
|
1075
|
+
return state;
|
|
1076
|
+
const newCol = till ? Math.min(cursorCol, found + 1) : found;
|
|
1077
|
+
return { ...state, cursorCol: newCol, preferredCol: null };
|
|
1078
|
+
}
|
|
1079
|
+
case 'vim_yank_line': {
|
|
1080
|
+
const { count } = action.payload;
|
|
1081
|
+
const linesToYank = Math.min(count, lines.length - cursorRow);
|
|
1082
|
+
const text = lines.slice(cursorRow, cursorRow + linesToYank).join('\n');
|
|
1083
|
+
return { ...state, yankRegister: { text, linewise: true } };
|
|
1084
|
+
}
|
|
1085
|
+
case 'vim_yank_word_forward': {
|
|
1086
|
+
const { count } = action.payload;
|
|
1087
|
+
let endRow = cursorRow;
|
|
1088
|
+
let endCol = cursorCol;
|
|
1089
|
+
for (let i = 0; i < count; i++) {
|
|
1090
|
+
const nextWord = findNextWordAcrossLines(lines, endRow, endCol, true);
|
|
1091
|
+
if (nextWord) {
|
|
1092
|
+
endRow = nextWord.row;
|
|
1093
|
+
endCol = nextWord.col;
|
|
1094
|
+
}
|
|
1095
|
+
else {
|
|
1096
|
+
const currentLine = lines[endRow] || '';
|
|
1097
|
+
const wordEnd = findWordEndInLine(currentLine, endCol);
|
|
1098
|
+
if (wordEnd !== null) {
|
|
1099
|
+
endCol = wordEnd + 1;
|
|
1100
|
+
}
|
|
1101
|
+
break;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
1105
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
1106
|
+
return {
|
|
1107
|
+
...state,
|
|
1108
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
return state;
|
|
1112
|
+
}
|
|
1113
|
+
case 'vim_yank_big_word_forward': {
|
|
1114
|
+
const { count } = action.payload;
|
|
1115
|
+
let endRow = cursorRow;
|
|
1116
|
+
let endCol = cursorCol;
|
|
1117
|
+
for (let i = 0; i < count; i++) {
|
|
1118
|
+
const nextWord = findNextBigWordAcrossLines(lines, endRow, endCol, true);
|
|
1119
|
+
if (nextWord) {
|
|
1120
|
+
endRow = nextWord.row;
|
|
1121
|
+
endCol = nextWord.col;
|
|
1122
|
+
}
|
|
1123
|
+
else {
|
|
1124
|
+
const currentLine = lines[endRow] || '';
|
|
1125
|
+
const wordEnd = findBigWordEndInLine(currentLine, endCol);
|
|
1126
|
+
if (wordEnd !== null) {
|
|
1127
|
+
endCol = wordEnd + 1;
|
|
1128
|
+
}
|
|
1129
|
+
break;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
1133
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
1134
|
+
return {
|
|
1135
|
+
...state,
|
|
1136
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
return state;
|
|
1140
|
+
}
|
|
1141
|
+
case 'vim_yank_word_end': {
|
|
1142
|
+
const { count } = action.payload;
|
|
1143
|
+
let row = cursorRow;
|
|
1144
|
+
let col = cursorCol;
|
|
1145
|
+
let endRow = cursorRow;
|
|
1146
|
+
let endCol = cursorCol;
|
|
1147
|
+
for (let i = 0; i < count; i++) {
|
|
1148
|
+
const wordEnd = findNextWordAcrossLines(lines, row, col, false);
|
|
1149
|
+
if (wordEnd) {
|
|
1150
|
+
endRow = wordEnd.row;
|
|
1151
|
+
endCol = wordEnd.col + 1;
|
|
1152
|
+
if (i < count - 1) {
|
|
1153
|
+
const nextWord = findNextWordAcrossLines(lines, wordEnd.row, wordEnd.col + 1, true);
|
|
1154
|
+
if (nextWord) {
|
|
1155
|
+
row = nextWord.row;
|
|
1156
|
+
col = nextWord.col;
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
break;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
break;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
if (endRow < lines.length) {
|
|
1168
|
+
endCol = Math.min(endCol, cpLen(lines[endRow] || ''));
|
|
1169
|
+
}
|
|
1170
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
1171
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
1172
|
+
return {
|
|
1173
|
+
...state,
|
|
1174
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
return state;
|
|
1178
|
+
}
|
|
1179
|
+
case 'vim_yank_big_word_end': {
|
|
1180
|
+
const { count } = action.payload;
|
|
1181
|
+
let row = cursorRow;
|
|
1182
|
+
let col = cursorCol;
|
|
1183
|
+
let endRow = cursorRow;
|
|
1184
|
+
let endCol = cursorCol;
|
|
1185
|
+
for (let i = 0; i < count; i++) {
|
|
1186
|
+
const wordEnd = findNextBigWordAcrossLines(lines, row, col, false);
|
|
1187
|
+
if (wordEnd) {
|
|
1188
|
+
endRow = wordEnd.row;
|
|
1189
|
+
endCol = wordEnd.col + 1;
|
|
1190
|
+
if (i < count - 1) {
|
|
1191
|
+
const nextWord = findNextBigWordAcrossLines(lines, wordEnd.row, wordEnd.col + 1, true);
|
|
1192
|
+
if (nextWord) {
|
|
1193
|
+
row = nextWord.row;
|
|
1194
|
+
col = nextWord.col;
|
|
1195
|
+
}
|
|
1196
|
+
else {
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
else {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
if (endRow < lines.length) {
|
|
1206
|
+
endCol = Math.min(endCol, cpLen(lines[endRow] || ''));
|
|
1207
|
+
}
|
|
1208
|
+
if (endRow !== cursorRow || endCol !== cursorCol) {
|
|
1209
|
+
const yankedText = extractRange(lines, cursorRow, cursorCol, endRow, endCol);
|
|
1210
|
+
return {
|
|
1211
|
+
...state,
|
|
1212
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1213
|
+
};
|
|
1214
|
+
}
|
|
1215
|
+
return state;
|
|
1216
|
+
}
|
|
1217
|
+
case 'vim_yank_to_end_of_line': {
|
|
1218
|
+
const currentLine = lines[cursorRow] || '';
|
|
1219
|
+
const lineLen = cpLen(currentLine);
|
|
1220
|
+
if (cursorCol < lineLen) {
|
|
1221
|
+
const yankedText = toCodePoints(currentLine).slice(cursorCol).join('');
|
|
1222
|
+
return {
|
|
1223
|
+
...state,
|
|
1224
|
+
yankRegister: { text: yankedText, linewise: false },
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
return state;
|
|
1228
|
+
}
|
|
1229
|
+
case 'vim_paste_after': {
|
|
1230
|
+
const { count } = action.payload;
|
|
1231
|
+
const reg = state.yankRegister;
|
|
1232
|
+
if (!reg)
|
|
1233
|
+
return state;
|
|
1234
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
1235
|
+
if (reg.linewise) {
|
|
1236
|
+
// Insert lines BELOW cursorRow
|
|
1237
|
+
const pasteText = (reg.text + '\n').repeat(count).slice(0, -1); // N copies, no trailing newline
|
|
1238
|
+
const pasteLines = pasteText.split('\n');
|
|
1239
|
+
const newLines = [...nextState.lines];
|
|
1240
|
+
newLines.splice(cursorRow + 1, 0, ...pasteLines);
|
|
1241
|
+
return {
|
|
1242
|
+
...nextState,
|
|
1243
|
+
lines: newLines,
|
|
1244
|
+
cursorRow: cursorRow + 1,
|
|
1245
|
+
cursorCol: 0,
|
|
1246
|
+
preferredCol: null,
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
else {
|
|
1250
|
+
// Insert after cursor (at cursorCol + 1)
|
|
1251
|
+
const currentLine = nextState.lines[cursorRow] || '';
|
|
1252
|
+
const lineLen = cpLen(currentLine);
|
|
1253
|
+
const insertCol = Math.min(cursorCol + 1, lineLen);
|
|
1254
|
+
const pasteText = reg.text.repeat(count);
|
|
1255
|
+
const newState = replaceRangeInternal(nextState, cursorRow, insertCol, cursorRow, insertCol, pasteText);
|
|
1256
|
+
// replaceRangeInternal leaves cursorCol one past the last inserted char;
|
|
1257
|
+
// step back by 1 to land on the last pasted character.
|
|
1258
|
+
const pasteLength = pasteText.length;
|
|
1259
|
+
return clampNormalCursor({
|
|
1260
|
+
...newState,
|
|
1261
|
+
cursorCol: Math.max(0, newState.cursorCol - (pasteLength > 0 ? 1 : 0)),
|
|
1262
|
+
preferredCol: null,
|
|
1263
|
+
});
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
case 'vim_paste_before': {
|
|
1267
|
+
const { count } = action.payload;
|
|
1268
|
+
const reg = state.yankRegister;
|
|
1269
|
+
if (!reg)
|
|
1270
|
+
return state;
|
|
1271
|
+
const nextState = detachExpandedPaste(pushUndo(state));
|
|
1272
|
+
if (reg.linewise) {
|
|
1273
|
+
// Insert lines ABOVE cursorRow
|
|
1274
|
+
const pasteText = (reg.text + '\n').repeat(count).slice(0, -1);
|
|
1275
|
+
const pasteLines = pasteText.split('\n');
|
|
1276
|
+
const newLines = [...nextState.lines];
|
|
1277
|
+
newLines.splice(cursorRow, 0, ...pasteLines);
|
|
1278
|
+
return {
|
|
1279
|
+
...nextState,
|
|
1280
|
+
lines: newLines,
|
|
1281
|
+
cursorRow,
|
|
1282
|
+
cursorCol: 0,
|
|
1283
|
+
preferredCol: null,
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1286
|
+
else {
|
|
1287
|
+
// Insert at cursorCol (not +1)
|
|
1288
|
+
const pasteText = reg.text.repeat(count);
|
|
1289
|
+
const newState = replaceRangeInternal(nextState, cursorRow, cursorCol, cursorRow, cursorCol, pasteText);
|
|
1290
|
+
// replaceRangeInternal leaves cursorCol one past the last inserted char;
|
|
1291
|
+
// step back by 1 to land on the last pasted character.
|
|
1292
|
+
const pasteLength = pasteText.length;
|
|
1293
|
+
return clampNormalCursor({
|
|
1294
|
+
...newState,
|
|
1295
|
+
cursorCol: Math.max(0, newState.cursorCol - (pasteLength > 0 ? 1 : 0)),
|
|
1296
|
+
preferredCol: null,
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
default: {
|
|
1301
|
+
// This should never happen if TypeScript is working correctly
|
|
1302
|
+
assumeExhaustive(action);
|
|
1303
|
+
return state;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|