@marizmelo/llm-cli 0.0.2 → 0.0.3
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/LICENSE +202 -0
- package/README.md +27 -11
- package/bundle/gemini.js +317072 -0
- package/package.json +91 -89
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -29
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -107
- package/dist/src/commands/extensions/disable.d.ts +0 -14
- package/dist/src/commands/extensions/disable.js +0 -42
- package/dist/src/commands/extensions/disable.js.map +0 -1
- package/dist/src/commands/extensions/enable.d.ts +0 -14
- package/dist/src/commands/extensions/enable.js +0 -48
- package/dist/src/commands/extensions/enable.js.map +0 -1
- package/dist/src/commands/extensions/install.d.ts +0 -13
- package/dist/src/commands/extensions/install.js +0 -48
- package/dist/src/commands/extensions/install.js.map +0 -1
- package/dist/src/commands/extensions/install.test.d.ts +0 -6
- package/dist/src/commands/extensions/install.test.js +0 -19
- package/dist/src/commands/extensions/install.test.js.map +0 -1
- package/dist/src/commands/extensions/list.d.ts +0 -8
- package/dist/src/commands/extensions/list.js +0 -32
- package/dist/src/commands/extensions/list.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.d.ts +0 -12
- package/dist/src/commands/extensions/uninstall.js +0 -38
- package/dist/src/commands/extensions/uninstall.js.map +0 -1
- package/dist/src/commands/extensions/uninstall.test.d.ts +0 -6
- package/dist/src/commands/extensions/uninstall.test.js +0 -15
- package/dist/src/commands/extensions/uninstall.test.js.map +0 -1
- package/dist/src/commands/extensions/update.d.ts +0 -13
- package/dist/src/commands/extensions/update.js +0 -60
- package/dist/src/commands/extensions/update.js.map +0 -1
- package/dist/src/commands/extensions.d.ts +0 -7
- package/dist/src/commands/extensions.js +0 -29
- package/dist/src/commands/extensions.js.map +0 -1
- package/dist/src/commands/mcp/add.d.ts +0 -7
- package/dist/src/commands/mcp/add.js +0 -166
- package/dist/src/commands/mcp/add.js.map +0 -1
- package/dist/src/commands/mcp/list.d.ts +0 -8
- package/dist/src/commands/mcp/list.js +0 -110
- 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 -44
- 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 -23
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -51
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/auth.test.d.ts +0 -6
- package/dist/src/config/auth.test.js +0 -59
- package/dist/src/config/auth.test.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -44
- package/dist/src/config/config.js +0 -464
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -62
- package/dist/src/config/extension.js +0 -388
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/extensions/variableSchema.d.ts +0 -28
- package/dist/src/config/extensions/variableSchema.js +0 -18
- package/dist/src/config/extensions/variableSchema.js.map +0 -1
- package/dist/src/config/extensions/variables.d.ts +0 -17
- package/dist/src/config/extensions/variables.js +0 -40
- package/dist/src/config/extensions/variables.js.map +0 -1
- package/dist/src/config/extensions/variables.test.d.ts +0 -6
- package/dist/src/config/extensions/variables.test.js +0 -17
- package/dist/src/config/extensions/variables.test.js.map +0 -1
- package/dist/src/config/keyBindings.d.ts +0 -66
- package/dist/src/config/keyBindings.js +0 -141
- package/dist/src/config/keyBindings.js.map +0 -1
- package/dist/src/config/keyBindings.test.d.ts +0 -6
- package/dist/src/config/keyBindings.test.js +0 -51
- package/dist/src/config/keyBindings.test.js.map +0 -1
- package/dist/src/config/modelDiscovery.d.ts +0 -65
- package/dist/src/config/modelDiscovery.js +0 -290
- package/dist/src/config/modelDiscovery.js.map +0 -1
- package/dist/src/config/providerManager.d.ts +0 -64
- package/dist/src/config/providerManager.js +0 -277
- package/dist/src/config/providerManager.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -73
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -62
- package/dist/src/config/settings.js +0 -583
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/config/settingsSchema.d.ts +0 -795
- package/dist/src/config/settingsSchema.js +0 -768
- package/dist/src/config/settingsSchema.js.map +0 -1
- package/dist/src/config/settingsSchema.test.d.ts +0 -6
- package/dist/src/config/settingsSchema.test.js +0 -193
- package/dist/src/config/settingsSchema.test.js.map +0 -1
- package/dist/src/config/trustedFolders.d.ts +0 -47
- package/dist/src/config/trustedFolders.js +0 -130
- package/dist/src/config/trustedFolders.js.map +0 -1
- package/dist/src/config/trustedFolders.test.d.ts +0 -6
- package/dist/src/config/trustedFolders.test.js +0 -198
- package/dist/src/config/trustedFolders.test.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -11
- package/dist/src/gemini.js +0 -331
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/gemini.test.d.ts +0 -6
- package/dist/src/gemini.test.js +0 -247
- package/dist/src/gemini.test.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/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -92
- package/dist/src/nonInteractiveCli.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 -84
- package/dist/src/services/BuiltinCommandLoader.js.map +0 -1
- package/dist/src/services/BuiltinCommandLoader.test.d.ts +0 -6
- package/dist/src/services/BuiltinCommandLoader.test.js +0 -108
- package/dist/src/services/BuiltinCommandLoader.test.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -55
- package/dist/src/services/CommandService.js +0 -90
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/services/CommandService.test.d.ts +0 -6
- package/dist/src/services/CommandService.test.js +0 -233
- package/dist/src/services/CommandService.test.js.map +0 -1
- package/dist/src/services/FileCommandLoader.d.ts +0 -51
- package/dist/src/services/FileCommandLoader.js +0 -227
- 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 -218
- package/dist/src/services/McpPromptLoader.js.map +0 -1
- package/dist/src/services/McpPromptLoader.test.d.ts +0 -6
- package/dist/src/services/McpPromptLoader.test.js +0 -114
- package/dist/src/services/McpPromptLoader.test.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 -62
- package/dist/src/services/prompt-processors/atFileProcessor.js.map +0 -1
- package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/atFileProcessor.test.js +0 -174
- package/dist/src/services/prompt-processors/atFileProcessor.test.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/injectionParser.test.d.ts +0 -6
- package/dist/src/services/prompt-processors/injectionParser.test.js +0 -189
- package/dist/src/services/prompt-processors/injectionParser.test.js.map +0 -1
- package/dist/src/services/prompt-processors/shellProcessor.d.ts +0 -27
- package/dist/src/services/prompt-processors/shellProcessor.js +0 -121
- 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 -22
- package/dist/src/services/types.js +0 -7
- package/dist/src/services/types.js.map +0 -1
- package/dist/src/test-utils/customMatchers.d.ts +0 -14
- package/dist/src/test-utils/customMatchers.js +0 -40
- 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 -86
- package/dist/src/test-utils/mockCommandContext.js.map +0 -1
- package/dist/src/test-utils/mockCommandContext.test.d.ts +0 -6
- package/dist/src/test-utils/mockCommandContext.test.js +0 -51
- package/dist/src/test-utils/mockCommandContext.test.js.map +0 -1
- package/dist/src/test-utils/render.d.ts +0 -8
- package/dist/src/test-utils/render.js +0 -10
- package/dist/src/test-utils/render.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -15
- package/dist/src/ui/App.js +0 -708
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +0 -16
- package/dist/src/ui/IdeIntegrationNudge.js +0 -47
- package/dist/src/ui/IdeIntegrationNudge.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -54
- 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 -43
- package/dist/src/ui/commands/aboutCommand.js.map +0 -1
- package/dist/src/ui/commands/authCommand.d.ts +0 -7
- package/dist/src/ui/commands/authCommand.js +0 -16
- 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 -71
- package/dist/src/ui/commands/bugCommand.js.map +0 -1
- package/dist/src/ui/commands/chatCommand.d.ts +0 -7
- package/dist/src/ui/commands/chatCommand.js +0 -235
- 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 -27
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/compressCommand.d.ts +0 -7
- package/dist/src/ui/commands/compressCommand.js +0 -66
- 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 -59
- 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 -15
- package/dist/src/ui/commands/corgiCommand.js.map +0 -1
- package/dist/src/ui/commands/directoryCommand.d.ts +0 -8
- package/dist/src/ui/commands/directoryCommand.js +0 -135
- 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 -31
- 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 -16
- package/dist/src/ui/commands/editorCommand.js.map +0 -1
- package/dist/src/ui/commands/extensionsCommand.d.ts +0 -7
- package/dist/src/ui/commands/extensionsCommand.js +0 -31
- package/dist/src/ui/commands/extensionsCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -21
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/ideCommand.d.ts +0 -8
- package/dist/src/ui/commands/ideCommand.js +0 -216
- 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 -76
- 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 -424
- package/dist/src/ui/commands/mcpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -92
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
- package/dist/src/ui/commands/privacyCommand.js +0 -16
- package/dist/src/ui/commands/privacyCommand.js.map +0 -1
- package/dist/src/ui/commands/providerCommand.d.ts +0 -7
- package/dist/src/ui/commands/providerCommand.js +0 -599
- package/dist/src/ui/commands/providerCommand.js.map +0 -1
- package/dist/src/ui/commands/quitCommand.d.ts +0 -7
- package/dist/src/ui/commands/quitCommand.js +0 -34
- 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 -124
- package/dist/src/ui/commands/restoreCommand.js.map +0 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +0 -7
- package/dist/src/ui/commands/settingsCommand.js +0 -16
- package/dist/src/ui/commands/settingsCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.d.ts +0 -9
- package/dist/src/ui/commands/setupGithubCommand.js +0 -154
- package/dist/src/ui/commands/setupGithubCommand.js.map +0 -1
- package/dist/src/ui/commands/setupGithubCommand.test.d.ts +0 -6
- package/dist/src/ui/commands/setupGithubCommand.test.js +0 -167
- package/dist/src/ui/commands/setupGithubCommand.test.js.map +0 -1
- package/dist/src/ui/commands/statsCommand.d.ts +0 -7
- package/dist/src/ui/commands/statsCommand.js +0 -54
- package/dist/src/ui/commands/statsCommand.js.map +0 -1
- package/dist/src/ui/commands/terminalSetupCommand.d.ts +0 -13
- package/dist/src/ui/commands/terminalSetupCommand.js +0 -41
- 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 -16
- 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 -56
- package/dist/src/ui/commands/toolsCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -148
- package/dist/src/ui/commands/types.js +0 -13
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/commands/vimCommand.d.ts +0 -7
- package/dist/src/ui/commands/vimCommand.js +0 -23
- package/dist/src/ui/commands/vimCommand.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -17
- package/dist/src/ui/components/AboutBox.js +0 -6
- package/dist/src/ui/components/AboutBox.js.map +0 -1
- package/dist/src/ui/components/AsciiArt.d.ts +0 -8
- package/dist/src/ui/components/AsciiArt.js +0 -33
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.d.ts +0 -16
- package/dist/src/ui/components/AuthDialog.js +0 -104
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
- package/dist/src/ui/components/AuthDialog.test.js +0 -276
- package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/components/AuthInProgress.js +0 -23
- package/dist/src/ui/components/AuthInProgress.js.map +0 -1
- package/dist/src/ui/components/AutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/components/AutoAcceptIndicator.js +0 -26
- package/dist/src/ui/components/AutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js +0 -11
- package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextSummaryDisplay.d.ts +0 -20
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -66
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +0 -9
- package/dist/src/ui/components/ContextUsageDisplay.js +0 -14
- package/dist/src/ui/components/ContextUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/DebugProfiler.d.ts +0 -6
- package/dist/src/ui/components/DebugProfiler.js +0 -27
- package/dist/src/ui/components/DebugProfiler.js.map +0 -1
- package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +0 -14
- package/dist/src/ui/components/DetailedMessagesDisplay.js +0 -34
- package/dist/src/ui/components/DetailedMessagesDisplay.js.map +0 -1
- package/dist/src/ui/components/EditorSettingsDialog.d.ts +0 -16
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -71
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.d.ts +0 -17
- package/dist/src/ui/components/FolderTrustDialog.js +0 -47
- package/dist/src/ui/components/FolderTrustDialog.js.map +0 -1
- package/dist/src/ui/components/FolderTrustDialog.test.d.ts +0 -6
- package/dist/src/ui/components/FolderTrustDialog.test.js +0 -78
- package/dist/src/ui/components/FolderTrustDialog.test.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -23
- package/dist/src/ui/components/Footer.js +0 -25
- package/dist/src/ui/components/Footer.js.map +0 -1
- package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +0 -17
- package/dist/src/ui/components/GeminiRespondingSpinner.js +0 -18
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -13
- package/dist/src/ui/components/Header.js +0 -28
- package/dist/src/ui/components/Header.js.map +0 -1
- package/dist/src/ui/components/Header.test.d.ts +0 -6
- package/dist/src/ui/components/Header.test.js +0 -37
- package/dist/src/ui/components/Header.test.js.map +0 -1
- package/dist/src/ui/components/Help.d.ts +0 -12
- package/dist/src/ui/components/Help.js +0 -10
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -20
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -18
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
- package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -93
- package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -28
- package/dist/src/ui/components/InputPrompt.js +0 -562
- package/dist/src/ui/components/InputPrompt.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.d.ts +0 -15
- package/dist/src/ui/components/LoadingIndicator.js +0 -25
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/components/LoadingIndicator.test.js +0 -190
- package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -22
- package/dist/src/ui/components/MemoryUsageDisplay.js.map +0 -1
- package/dist/src/ui/components/ModelStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ModelStatsDisplay.js +0 -33
- package/dist/src/ui/components/ModelStatsDisplay.js.map +0 -1
- package/dist/src/ui/components/PrepareLabel.d.ts +0 -15
- package/dist/src/ui/components/PrepareLabel.js +0 -16
- package/dist/src/ui/components/PrepareLabel.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.d.ts +0 -13
- package/dist/src/ui/components/ProQuotaDialog.js +0 -21
- package/dist/src/ui/components/ProQuotaDialog.js.map +0 -1
- package/dist/src/ui/components/ProQuotaDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ProQuotaDialog.test.js +0 -56
- package/dist/src/ui/components/ProQuotaDialog.test.js.map +0 -1
- package/dist/src/ui/components/SessionSummaryDisplay.d.ts +0 -11
- package/dist/src/ui/components/SessionSummaryDisplay.js +0 -4
- package/dist/src/ui/components/SessionSummaryDisplay.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +0 -15
- package/dist/src/ui/components/SettingsDialog.js +0 -550
- package/dist/src/ui/components/SettingsDialog.js.map +0 -1
- package/dist/src/ui/components/SettingsDialog.test.d.ts +0 -6
- package/dist/src/ui/components/SettingsDialog.test.js +0 -646
- package/dist/src/ui/components/SettingsDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.d.ts +0 -15
- package/dist/src/ui/components/ShellConfirmationDialog.js +0 -46
- package/dist/src/ui/components/ShellConfirmationDialog.js.map +0 -1
- package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +0 -6
- package/dist/src/ui/components/ShellConfirmationDialog.test.js +0 -40
- package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +0 -1
- package/dist/src/ui/components/ShellModeIndicator.d.ts +0 -7
- package/dist/src/ui/components/ShellModeIndicator.js +0 -5
- package/dist/src/ui/components/ShellModeIndicator.js.map +0 -1
- package/dist/src/ui/components/ShowMoreLines.d.ts +0 -10
- package/dist/src/ui/components/ShowMoreLines.js +0 -24
- package/dist/src/ui/components/ShowMoreLines.js.map +0 -1
- package/dist/src/ui/components/StatsDisplay.d.ts +0 -12
- package/dist/src/ui/components/StatsDisplay.js +0 -43
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -22
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -40
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -20
- package/dist/src/ui/components/ThemeDialog.js +0 -138
- package/dist/src/ui/components/ThemeDialog.js.map +0 -1
- package/dist/src/ui/components/Tips.d.ts +0 -12
- package/dist/src/ui/components/Tips.js +0 -9
- package/dist/src/ui/components/Tips.js.map +0 -1
- package/dist/src/ui/components/ToolStatsDisplay.d.ts +0 -7
- package/dist/src/ui/components/ToolStatsDisplay.js +0 -41
- 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 -10
- package/dist/src/ui/components/UpdateNotification.js.map +0 -1
- package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +0 -11
- package/dist/src/ui/components/WorkspaceMigrationDialog.js +0 -42
- package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +0 -1
- package/dist/src/ui/components/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -17
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -16
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -226
- package/dist/src/ui/components/messages/DiffRenderer.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
- package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
- package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
- package/dist/src/ui/components/messages/ErrorMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/ErrorMessage.js +0 -9
- package/dist/src/ui/components/messages/ErrorMessage.js.map +0 -1
- package/dist/src/ui/components/messages/GeminiMessage.d.ts +0 -14
- package/dist/src/ui/components/messages/GeminiMessage.js +0 -11
- 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 -15
- package/dist/src/ui/components/messages/GeminiMessageContent.js.map +0 -1
- package/dist/src/ui/components/messages/InfoMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/InfoMessage.js +0 -10
- package/dist/src/ui/components/messages/InfoMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +0 -162
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -114
- package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -50
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js +0 -259
- package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolMessage.js +0 -62
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
- package/dist/src/ui/components/messages/ToolMessage.test.js +0 -118
- package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -14
- package/dist/src/ui/components/messages/UserMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserShellMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserShellMessage.js +0 -9
- package/dist/src/ui/components/messages/UserShellMessage.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.d.ts +0 -61
- package/dist/src/ui/components/shared/MaxSizedBox.js +0 -451
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
- package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -154
- package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -46
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -116
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +0 -6
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js +0 -111
- package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -467
- package/dist/src/ui/components/shared/text-buffer.js +0 -1489
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +0 -72
- package/dist/src/ui/components/shared/vim-buffer-actions.js +0 -552
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -17
- package/dist/src/ui/constants.js +0 -22
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.d.ts +0 -31
- package/dist/src/ui/contexts/KeypressContext.js +0 -318
- package/dist/src/ui/contexts/KeypressContext.js.map +0 -1
- package/dist/src/ui/contexts/KeypressContext.test.d.ts +0 -6
- package/dist/src/ui/contexts/KeypressContext.test.js +0 -385
- package/dist/src/ui/contexts/KeypressContext.test.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -38
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -39
- package/dist/src/ui/contexts/SessionContext.js +0 -55
- package/dist/src/ui/contexts/SessionContext.js.map +0 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +0 -9
- package/dist/src/ui/contexts/SettingsContext.js +0 -15
- package/dist/src/ui/contexts/SettingsContext.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/VimModeContext.d.ts +0 -19
- package/dist/src/ui/contexts/VimModeContext.js +0 -48
- package/dist/src/ui/contexts/VimModeContext.js.map +0 -1
- package/dist/src/ui/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -47
- package/dist/src/ui/editors/editorSettingsManager.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.d.ts +0 -31
- package/dist/src/ui/hooks/atCommandProcessor.js +0 -364
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/atCommandProcessor.test.js +0 -832
- package/dist/src/ui/hooks/atCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -17
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -234
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +0 -6
- package/dist/src/ui/hooks/shellCommandProcessor.test.js +0 -325
- package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -29
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -443
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAtCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/useAtCompletion.js +0 -179
- package/dist/src/ui/hooks/useAtCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useAuthCommand.js +0 -66
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -12
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -46
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +0 -311
- package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useBracketedPaste.d.ts +0 -12
- package/dist/src/ui/hooks/useBracketedPaste.js +0 -32
- package/dist/src/ui/hooks/useBracketedPaste.js.map +0 -1
- package/dist/src/ui/hooks/useCommandCompletion.d.ts +0 -32
- package/dist/src/ui/hooks/useCommandCompletion.js +0 -186
- package/dist/src/ui/hooks/useCommandCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useCompletion.d.ts +0 -24
- package/dist/src/ui/hooks/useCompletion.js +0 -88
- package/dist/src/ui/hooks/useCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useConsoleMessages.d.ts +0 -12
- package/dist/src/ui/hooks/useConsoleMessages.js +0 -76
- 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 -43
- package/dist/src/ui/hooks/useEditorSettings.js.map +0 -1
- package/dist/src/ui/hooks/useEditorSettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/useEditorSettings.test.js +0 -164
- package/dist/src/ui/hooks/useEditorSettings.test.js.map +0 -1
- package/dist/src/ui/hooks/useFocus.d.ts +0 -10
- package/dist/src/ui/hooks/useFocus.js +0 -41
- package/dist/src/ui/hooks/useFocus.js.map +0 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +0 -13
- package/dist/src/ui/hooks/useFolderTrust.js +0 -68
- package/dist/src/ui/hooks/useFolderTrust.js.map +0 -1
- package/dist/src/ui/hooks/useGeminiStream.d.ts +0 -25
- package/dist/src/ui/hooks/useGeminiStream.js +0 -648
- 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 -61
- package/dist/src/ui/hooks/useGitBranchName.js.map +0 -1
- package/dist/src/ui/hooks/useGitBranchName.test.d.ts +0 -6
- package/dist/src/ui/hooks/useGitBranchName.test.js +0 -175
- package/dist/src/ui/hooks/useGitBranchName.test.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.d.ts +0 -22
- package/dist/src/ui/hooks/useHistoryManager.js +0 -72
- package/dist/src/ui/hooks/useHistoryManager.js.map +0 -1
- package/dist/src/ui/hooks/useHistoryManager.test.d.ts +0 -6
- package/dist/src/ui/hooks/useHistoryManager.test.js +0 -171
- package/dist/src/ui/hooks/useHistoryManager.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistory.js +0 -84
- package/dist/src/ui/hooks/useInputHistory.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistory.test.js +0 -207
- package/dist/src/ui/hooks/useInputHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.d.ts +0 -19
- package/dist/src/ui/hooks/useInputHistoryStore.js +0 -81
- package/dist/src/ui/hooks/useInputHistoryStore.js.map +0 -1
- package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +0 -6
- package/dist/src/ui/hooks/useInputHistoryStore.test.js +0 -234
- package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +0 -1
- package/dist/src/ui/hooks/useKeypress.d.ts +0 -17
- package/dist/src/ui/hooks/useKeypress.js +0 -27
- package/dist/src/ui/hooks/useKeypress.js.map +0 -1
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +0 -15
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +0 -20
- package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useLoadingIndicator.js +0 -44
- package/dist/src/ui/hooks/useLoadingIndicator.js.map +0 -1
- package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +0 -6
- package/dist/src/ui/hooks/useLoadingIndicator.test.js +0 -91
- package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +0 -1
- package/dist/src/ui/hooks/useLogger.d.ts +0 -11
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.d.ts +0 -22
- package/dist/src/ui/hooks/useMessageQueue.js +0 -49
- package/dist/src/ui/hooks/useMessageQueue.js.map +0 -1
- package/dist/src/ui/hooks/useMessageQueue.test.d.ts +0 -6
- package/dist/src/ui/hooks/useMessageQueue.test.js +0 -158
- package/dist/src/ui/hooks/useMessageQueue.test.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -187
- 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 -119
- package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
- package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +0 -6
- package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -154
- package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
- package/dist/src/ui/hooks/usePromptCompletion.d.ts +0 -23
- package/dist/src/ui/hooks/usePromptCompletion.js +0 -177
- package/dist/src/ui/hooks/usePromptCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +0 -33
- package/dist/src/ui/hooks/useReactToolScheduler.js +0 -186
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +0 -1
- package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +0 -6
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js +0 -7
- package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +0 -19
- package/dist/src/ui/hooks/useReverseSearchCompletion.js +0 -56
- package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +0 -6
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +0 -163
- package/dist/src/ui/hooks/useReverseSearchCompletion.test.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/useShellHistory.d.ts +0 -14
- package/dist/src/ui/hooks/useShellHistory.js +0 -111
- package/dist/src/ui/hooks/useShellHistory.js.map +0 -1
- package/dist/src/ui/hooks/useShellHistory.test.d.ts +0 -6
- package/dist/src/ui/hooks/useShellHistory.test.js +0 -187
- package/dist/src/ui/hooks/useShellHistory.test.js.map +0 -1
- package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +0 -9
- package/dist/src/ui/hooks/useShowMemoryCommand.js +0 -58
- package/dist/src/ui/hooks/useShowMemoryCommand.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.d.ts +0 -20
- package/dist/src/ui/hooks/useSlashCompletion.js +0 -331
- package/dist/src/ui/hooks/useSlashCompletion.js.map +0 -1
- package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +0 -9
- package/dist/src/ui/hooks/useSlashCompletion.test.js +0 -665
- package/dist/src/ui/hooks/useSlashCompletion.test.js.map +0 -1
- package/dist/src/ui/hooks/useStateAndRef.d.ts +0 -7
- package/dist/src/ui/hooks/useStateAndRef.js +0 -26
- package/dist/src/ui/hooks/useStateAndRef.js.map +0 -1
- package/dist/src/ui/hooks/useTerminalSize.d.ts +0 -9
- package/dist/src/ui/hooks/useTerminalSize.js +0 -27
- package/dist/src/ui/hooks/useTerminalSize.js.map +0 -1
- package/dist/src/ui/hooks/useThemeCommand.d.ts +0 -15
- package/dist/src/ui/hooks/useThemeCommand.js +0 -79
- package/dist/src/ui/hooks/useThemeCommand.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/useTimer.test.d.ts +0 -6
- package/dist/src/ui/hooks/useTimer.test.js +0 -90
- package/dist/src/ui/hooks/useTimer.test.js.map +0 -1
- package/dist/src/ui/hooks/useToolScheduler.test.d.ts +0 -6
- package/dist/src/ui/hooks/useToolScheduler.test.js +0 -846
- package/dist/src/ui/hooks/useToolScheduler.test.js.map +0 -1
- package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +0 -13
- package/dist/src/ui/hooks/useWorkspaceMigration.js +0 -53
- package/dist/src/ui/hooks/useWorkspaceMigration.js.map +0 -1
- package/dist/src/ui/hooks/vim.d.ts +0 -28
- package/dist/src/ui/hooks/vim.js +0 -639
- package/dist/src/ui/hooks/vim.js.map +0 -1
- package/dist/src/ui/keyMatchers.d.ts +0 -27
- package/dist/src/ui/keyMatchers.js +0 -68
- package/dist/src/ui/keyMatchers.js.map +0 -1
- package/dist/src/ui/keyMatchers.test.d.ts +0 -6
- package/dist/src/ui/keyMatchers.test.js +0 -276
- package/dist/src/ui/keyMatchers.test.js.map +0 -1
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -41
- 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 -18
- 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 -18
- 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 -25
- 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/textConstants.d.ts +0 -9
- package/dist/src/ui/textConstants.js +0 -10
- package/dist/src/ui/textConstants.js.map +0 -1
- package/dist/src/ui/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -142
- package/dist/src/ui/themes/ansi-light.js.map +0 -1
- package/dist/src/ui/themes/ansi.d.ts +0 -7
- package/dist/src/ui/themes/ansi.js +0 -152
- package/dist/src/ui/themes/ansi.js.map +0 -1
- package/dist/src/ui/themes/atom-one-dark.d.ts +0 -7
- package/dist/src/ui/themes/atom-one-dark.js +0 -138
- package/dist/src/ui/themes/atom-one-dark.js.map +0 -1
- package/dist/src/ui/themes/ayu-light.d.ts +0 -7
- package/dist/src/ui/themes/ayu-light.js +0 -130
- package/dist/src/ui/themes/ayu-light.js.map +0 -1
- package/dist/src/ui/themes/ayu.d.ts +0 -7
- package/dist/src/ui/themes/ayu.js +0 -104
- package/dist/src/ui/themes/ayu.js.map +0 -1
- package/dist/src/ui/themes/color-utils.d.ts +0 -21
- package/dist/src/ui/themes/color-utils.js +0 -221
- package/dist/src/ui/themes/color-utils.js.map +0 -1
- package/dist/src/ui/themes/color-utils.test.d.ts +0 -6
- package/dist/src/ui/themes/color-utils.test.js +0 -197
- package/dist/src/ui/themes/color-utils.test.js.map +0 -1
- package/dist/src/ui/themes/default-light.d.ts +0 -7
- package/dist/src/ui/themes/default-light.js +0 -100
- package/dist/src/ui/themes/default-light.js.map +0 -1
- package/dist/src/ui/themes/default.d.ts +0 -7
- package/dist/src/ui/themes/default.js +0 -143
- package/dist/src/ui/themes/default.js.map +0 -1
- package/dist/src/ui/themes/dracula.d.ts +0 -7
- package/dist/src/ui/themes/dracula.js +0 -115
- package/dist/src/ui/themes/dracula.js.map +0 -1
- package/dist/src/ui/themes/github-dark.d.ts +0 -7
- package/dist/src/ui/themes/github-dark.js +0 -138
- package/dist/src/ui/themes/github-dark.js.map +0 -1
- package/dist/src/ui/themes/github-light.d.ts +0 -7
- package/dist/src/ui/themes/github-light.js +0 -140
- package/dist/src/ui/themes/github-light.js.map +0 -1
- package/dist/src/ui/themes/googlecode.d.ts +0 -7
- package/dist/src/ui/themes/googlecode.js +0 -137
- package/dist/src/ui/themes/googlecode.js.map +0 -1
- package/dist/src/ui/themes/no-color.d.ts +0 -7
- package/dist/src/ui/themes/no-color.js +0 -115
- package/dist/src/ui/themes/no-color.js.map +0 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +0 -37
- package/dist/src/ui/themes/semantic-tokens.js +0 -94
- package/dist/src/ui/themes/semantic-tokens.js.map +0 -1
- package/dist/src/ui/themes/shades-of-purple.d.ts +0 -11
- package/dist/src/ui/themes/shades-of-purple.js +0 -304
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -66
- package/dist/src/ui/themes/theme-manager.js +0 -262
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.test.d.ts +0 -6
- package/dist/src/ui/themes/theme-manager.test.js +0 -142
- package/dist/src/ui/themes/theme-manager.test.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -130
- package/dist/src/ui/themes/theme.js +0 -379
- package/dist/src/ui/themes/theme.js.map +0 -1
- package/dist/src/ui/themes/xcode.d.ts +0 -7
- package/dist/src/ui/themes/xcode.js +0 -145
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -193
- package/dist/src/ui/types.js +0 -44
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -17
- package/dist/src/ui/utils/CodeColorizer.js +0 -110
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +0 -25
- package/dist/src/ui/utils/ConsolePatcher.js +0 -52
- package/dist/src/ui/utils/ConsolePatcher.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -111
- package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.d.ts +0 -14
- package/dist/src/ui/utils/MarkdownDisplay.js +0 -208
- package/dist/src/ui/utils/MarkdownDisplay.js.map +0 -1
- package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
- package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -152
- package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
- package/dist/src/ui/utils/TableRenderer.d.ts +0 -17
- package/dist/src/ui/utils/TableRenderer.js +0 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.d.ts +0 -22
- package/dist/src/ui/utils/clipboardUtils.js +0 -127
- package/dist/src/ui/utils/clipboardUtils.js.map +0 -1
- package/dist/src/ui/utils/clipboardUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/clipboardUtils.test.js +0 -65
- package/dist/src/ui/utils/clipboardUtils.test.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -24
- package/dist/src/ui/utils/commandUtils.js +0 -131
- package/dist/src/ui/utils/commandUtils.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/commandUtils.test.js +0 -349
- package/dist/src/ui/utils/commandUtils.test.js.map +0 -1
- package/dist/src/ui/utils/computeStats.d.ts +0 -10
- package/dist/src/ui/utils/computeStats.js +0 -57
- package/dist/src/ui/utils/computeStats.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.d.ts +0 -17
- package/dist/src/ui/utils/displayUtils.js +0 -24
- package/dist/src/ui/utils/displayUtils.js.map +0 -1
- package/dist/src/ui/utils/displayUtils.test.d.ts +0 -6
- package/dist/src/ui/utils/displayUtils.test.js +0 -42
- package/dist/src/ui/utils/displayUtils.test.js.map +0 -1
- package/dist/src/ui/utils/formatters.d.ts +0 -13
- package/dist/src/ui/utils/formatters.js +0 -56
- package/dist/src/ui/utils/formatters.js.map +0 -1
- package/dist/src/ui/utils/formatters.test.d.ts +0 -6
- package/dist/src/ui/utils/formatters.test.js +0 -56
- package/dist/src/ui/utils/formatters.test.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/kittyProtocolDetector.d.ts +0 -13
- package/dist/src/ui/utils/kittyProtocolDetector.js +0 -88
- package/dist/src/ui/utils/kittyProtocolDetector.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/markdownUtilities.test.d.ts +0 -6
- package/dist/src/ui/utils/markdownUtilities.test.js +0 -42
- package/dist/src/ui/utils/markdownUtilities.test.js.map +0 -1
- package/dist/src/ui/utils/platformConstants.d.ts +0 -52
- package/dist/src/ui/utils/platformConstants.js +0 -53
- package/dist/src/ui/utils/platformConstants.js.map +0 -1
- package/dist/src/ui/utils/terminalSetup.d.ts +0 -30
- package/dist/src/ui/utils/terminalSetup.js +0 -281
- package/dist/src/ui/utils/terminalSetup.js.map +0 -1
- package/dist/src/ui/utils/textUtils.d.ts +0 -32
- package/dist/src/ui/utils/textUtils.js +0 -80
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -12
- package/dist/src/ui/utils/updateCheck.js +0 -78
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.test.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.test.js +0 -145
- package/dist/src/ui/utils/updateCheck.test.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -19
- package/dist/src/utils/checks.js +0 -24
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -8
- package/dist/src/utils/cleanup.js +0 -35
- package/dist/src/utils/cleanup.js.map +0 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +0 -32
- package/dist/src/utils/dialogScopeUtils.js +0 -48
- package/dist/src/utils/dialogScopeUtils.js.map +0 -1
- package/dist/src/utils/envVarResolver.d.ts +0 -39
- package/dist/src/utils/envVarResolver.js +0 -97
- package/dist/src/utils/envVarResolver.js.map +0 -1
- package/dist/src/utils/envVarResolver.test.d.ts +0 -6
- package/dist/src/utils/envVarResolver.test.js +0 -221
- package/dist/src/utils/envVarResolver.test.js.map +0 -1
- package/dist/src/utils/errors.d.ts +0 -6
- package/dist/src/utils/errors.js +0 -12
- package/dist/src/utils/errors.js.map +0 -1
- package/dist/src/utils/events.d.ts +0 -11
- package/dist/src/utils/events.js +0 -13
- package/dist/src/utils/events.js.map +0 -1
- package/dist/src/utils/gitUtils.d.ts +0 -30
- package/dist/src/utils/gitUtils.js +0 -89
- package/dist/src/utils/gitUtils.js.map +0 -1
- package/dist/src/utils/gitUtils.test.d.ts +0 -6
- package/dist/src/utils/gitUtils.test.js +0 -113
- package/dist/src/utils/gitUtils.test.js.map +0 -1
- package/dist/src/utils/handleAutoUpdate.d.ts +0 -11
- package/dist/src/utils/handleAutoUpdate.js +0 -102
- package/dist/src/utils/handleAutoUpdate.js.map +0 -1
- package/dist/src/utils/installationInfo.d.ts +0 -23
- package/dist/src/utils/installationInfo.js +0 -154
- package/dist/src/utils/installationInfo.js.map +0 -1
- package/dist/src/utils/installationInfo.test.d.ts +0 -6
- package/dist/src/utils/installationInfo.test.js +0 -242
- package/dist/src/utils/installationInfo.test.js.map +0 -1
- package/dist/src/utils/package.d.ts +0 -12
- package/dist/src/utils/package.js +0 -24
- package/dist/src/utils/package.js.map +0 -1
- package/dist/src/utils/readStdin.d.ts +0 -6
- package/dist/src/utils/readStdin.js +0 -59
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/readStdin.test.d.ts +0 -6
- package/dist/src/utils/readStdin.test.js +0 -88
- package/dist/src/utils/readStdin.test.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 -724
- package/dist/src/utils/sandbox.js.map +0 -1
- package/dist/src/utils/settingsUtils.d.ts +0 -134
- package/dist/src/utils/settingsUtils.js +0 -330
- package/dist/src/utils/settingsUtils.js.map +0 -1
- package/dist/src/utils/settingsUtils.test.d.ts +0 -6
- package/dist/src/utils/settingsUtils.test.js +0 -511
- package/dist/src/utils/settingsUtils.test.js.map +0 -1
- package/dist/src/utils/spawnWrapper.d.ts +0 -7
- 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/updateEventEmitter.d.ts +0 -11
- 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 -6
- package/dist/src/utils/userStartupWarnings.js +0 -54
- package/dist/src/utils/userStartupWarnings.js.map +0 -1
- package/dist/src/utils/userStartupWarnings.test.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.test.js +0 -67
- package/dist/src/utils/userStartupWarnings.test.js.map +0 -1
- package/dist/src/utils/version.d.ts +0 -6
- package/dist/src/utils/version.js +0 -11
- package/dist/src/utils/version.js.map +0 -1
- package/dist/src/validateNonInterActiveAuth.d.ts +0 -8
- package/dist/src/validateNonInterActiveAuth.js +0 -37
- package/dist/src/validateNonInterActiveAuth.js.map +0 -1
- package/dist/src/zed-integration/acp.d.ts +0 -63
- package/dist/src/zed-integration/acp.js +0 -226
- package/dist/src/zed-integration/acp.js.map +0 -1
- package/dist/src/zed-integration/fileSystemService.d.ts +0 -19
- package/dist/src/zed-integration/fileSystemService.js +0 -43
- package/dist/src/zed-integration/fileSystemService.js.map +0 -1
- package/dist/src/zed-integration/schema.d.ts +0 -11782
- package/dist/src/zed-integration/schema.js +0 -311
- package/dist/src/zed-integration/schema.js.map +0 -1
- package/dist/src/zed-integration/zedIntegration.d.ts +0 -10
- package/dist/src/zed-integration/zedIntegration.js +0 -740
- package/dist/src/zed-integration/zedIntegration.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-open.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +0 -0
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Command enum for all available keyboard shortcuts
|
|
8
|
-
*/
|
|
9
|
-
export declare enum Command {
|
|
10
|
-
RETURN = "return",
|
|
11
|
-
ESCAPE = "escape",
|
|
12
|
-
HOME = "home",
|
|
13
|
-
END = "end",
|
|
14
|
-
KILL_LINE_RIGHT = "killLineRight",
|
|
15
|
-
KILL_LINE_LEFT = "killLineLeft",
|
|
16
|
-
CLEAR_INPUT = "clearInput",
|
|
17
|
-
CLEAR_SCREEN = "clearScreen",
|
|
18
|
-
HISTORY_UP = "historyUp",
|
|
19
|
-
HISTORY_DOWN = "historyDown",
|
|
20
|
-
NAVIGATION_UP = "navigationUp",
|
|
21
|
-
NAVIGATION_DOWN = "navigationDown",
|
|
22
|
-
ACCEPT_SUGGESTION = "acceptSuggestion",
|
|
23
|
-
COMPLETION_UP = "completionUp",
|
|
24
|
-
COMPLETION_DOWN = "completionDown",
|
|
25
|
-
SUBMIT = "submit",
|
|
26
|
-
NEWLINE = "newline",
|
|
27
|
-
OPEN_EXTERNAL_EDITOR = "openExternalEditor",
|
|
28
|
-
PASTE_CLIPBOARD_IMAGE = "pasteClipboardImage",
|
|
29
|
-
SHOW_ERROR_DETAILS = "showErrorDetails",
|
|
30
|
-
TOGGLE_TOOL_DESCRIPTIONS = "toggleToolDescriptions",
|
|
31
|
-
TOGGLE_IDE_CONTEXT_DETAIL = "toggleIDEContextDetail",
|
|
32
|
-
QUIT = "quit",
|
|
33
|
-
EXIT = "exit",
|
|
34
|
-
SHOW_MORE_LINES = "showMoreLines",
|
|
35
|
-
REVERSE_SEARCH = "reverseSearch",
|
|
36
|
-
SUBMIT_REVERSE_SEARCH = "submitReverseSearch",
|
|
37
|
-
ACCEPT_SUGGESTION_REVERSE_SEARCH = "acceptSuggestionReverseSearch"
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Data-driven key binding structure for user configuration
|
|
41
|
-
*/
|
|
42
|
-
export interface KeyBinding {
|
|
43
|
-
/** The key name (e.g., 'a', 'return', 'tab', 'escape') */
|
|
44
|
-
key?: string;
|
|
45
|
-
/** The key sequence (e.g., '\x18' for Ctrl+X) - alternative to key name */
|
|
46
|
-
sequence?: string;
|
|
47
|
-
/** Control key requirement: true=must be pressed, false=must not be pressed, undefined=ignore */
|
|
48
|
-
ctrl?: boolean;
|
|
49
|
-
/** Shift key requirement: true=must be pressed, false=must not be pressed, undefined=ignore */
|
|
50
|
-
shift?: boolean;
|
|
51
|
-
/** Command/meta key requirement: true=must be pressed, false=must not be pressed, undefined=ignore */
|
|
52
|
-
command?: boolean;
|
|
53
|
-
/** Paste operation requirement: true=must be paste, false=must not be paste, undefined=ignore */
|
|
54
|
-
paste?: boolean;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Configuration type mapping commands to their key bindings
|
|
58
|
-
*/
|
|
59
|
-
export type KeyBindingConfig = {
|
|
60
|
-
readonly [C in Command]: readonly KeyBinding[];
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Default key binding configuration
|
|
64
|
-
* Matches the original hard-coded logic exactly
|
|
65
|
-
*/
|
|
66
|
-
export declare const defaultKeyBindings: KeyBindingConfig;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Command enum for all available keyboard shortcuts
|
|
8
|
-
*/
|
|
9
|
-
export var Command;
|
|
10
|
-
(function (Command) {
|
|
11
|
-
// Basic bindings
|
|
12
|
-
Command["RETURN"] = "return";
|
|
13
|
-
Command["ESCAPE"] = "escape";
|
|
14
|
-
// Cursor movement
|
|
15
|
-
Command["HOME"] = "home";
|
|
16
|
-
Command["END"] = "end";
|
|
17
|
-
// Text deletion
|
|
18
|
-
Command["KILL_LINE_RIGHT"] = "killLineRight";
|
|
19
|
-
Command["KILL_LINE_LEFT"] = "killLineLeft";
|
|
20
|
-
Command["CLEAR_INPUT"] = "clearInput";
|
|
21
|
-
// Screen control
|
|
22
|
-
Command["CLEAR_SCREEN"] = "clearScreen";
|
|
23
|
-
// History navigation
|
|
24
|
-
Command["HISTORY_UP"] = "historyUp";
|
|
25
|
-
Command["HISTORY_DOWN"] = "historyDown";
|
|
26
|
-
Command["NAVIGATION_UP"] = "navigationUp";
|
|
27
|
-
Command["NAVIGATION_DOWN"] = "navigationDown";
|
|
28
|
-
// Auto-completion
|
|
29
|
-
Command["ACCEPT_SUGGESTION"] = "acceptSuggestion";
|
|
30
|
-
Command["COMPLETION_UP"] = "completionUp";
|
|
31
|
-
Command["COMPLETION_DOWN"] = "completionDown";
|
|
32
|
-
// Text input
|
|
33
|
-
Command["SUBMIT"] = "submit";
|
|
34
|
-
Command["NEWLINE"] = "newline";
|
|
35
|
-
// External tools
|
|
36
|
-
Command["OPEN_EXTERNAL_EDITOR"] = "openExternalEditor";
|
|
37
|
-
Command["PASTE_CLIPBOARD_IMAGE"] = "pasteClipboardImage";
|
|
38
|
-
// App level bindings
|
|
39
|
-
Command["SHOW_ERROR_DETAILS"] = "showErrorDetails";
|
|
40
|
-
Command["TOGGLE_TOOL_DESCRIPTIONS"] = "toggleToolDescriptions";
|
|
41
|
-
Command["TOGGLE_IDE_CONTEXT_DETAIL"] = "toggleIDEContextDetail";
|
|
42
|
-
Command["QUIT"] = "quit";
|
|
43
|
-
Command["EXIT"] = "exit";
|
|
44
|
-
Command["SHOW_MORE_LINES"] = "showMoreLines";
|
|
45
|
-
// Shell commands
|
|
46
|
-
Command["REVERSE_SEARCH"] = "reverseSearch";
|
|
47
|
-
Command["SUBMIT_REVERSE_SEARCH"] = "submitReverseSearch";
|
|
48
|
-
Command["ACCEPT_SUGGESTION_REVERSE_SEARCH"] = "acceptSuggestionReverseSearch";
|
|
49
|
-
})(Command || (Command = {}));
|
|
50
|
-
/**
|
|
51
|
-
* Default key binding configuration
|
|
52
|
-
* Matches the original hard-coded logic exactly
|
|
53
|
-
*/
|
|
54
|
-
export const defaultKeyBindings = {
|
|
55
|
-
// Basic bindings
|
|
56
|
-
[Command.RETURN]: [{ key: 'return' }],
|
|
57
|
-
// Original: key.name === 'escape'
|
|
58
|
-
[Command.ESCAPE]: [{ key: 'escape' }],
|
|
59
|
-
// Cursor movement
|
|
60
|
-
// Original: key.ctrl && key.name === 'a'
|
|
61
|
-
[Command.HOME]: [{ key: 'a', ctrl: true }],
|
|
62
|
-
// Original: key.ctrl && key.name === 'e'
|
|
63
|
-
[Command.END]: [{ key: 'e', ctrl: true }],
|
|
64
|
-
// Text deletion
|
|
65
|
-
// Original: key.ctrl && key.name === 'k'
|
|
66
|
-
[Command.KILL_LINE_RIGHT]: [{ key: 'k', ctrl: true }],
|
|
67
|
-
// Original: key.ctrl && key.name === 'u'
|
|
68
|
-
[Command.KILL_LINE_LEFT]: [{ key: 'u', ctrl: true }],
|
|
69
|
-
// Original: key.ctrl && key.name === 'c'
|
|
70
|
-
[Command.CLEAR_INPUT]: [{ key: 'c', ctrl: true }],
|
|
71
|
-
// Screen control
|
|
72
|
-
// Original: key.ctrl && key.name === 'l'
|
|
73
|
-
[Command.CLEAR_SCREEN]: [{ key: 'l', ctrl: true }],
|
|
74
|
-
// History navigation
|
|
75
|
-
// Original: key.ctrl && key.name === 'p'
|
|
76
|
-
[Command.HISTORY_UP]: [{ key: 'p', ctrl: true }],
|
|
77
|
-
// Original: key.ctrl && key.name === 'n'
|
|
78
|
-
[Command.HISTORY_DOWN]: [{ key: 'n', ctrl: true }],
|
|
79
|
-
// Original: key.name === 'up'
|
|
80
|
-
[Command.NAVIGATION_UP]: [{ key: 'up' }],
|
|
81
|
-
// Original: key.name === 'down'
|
|
82
|
-
[Command.NAVIGATION_DOWN]: [{ key: 'down' }],
|
|
83
|
-
// Auto-completion
|
|
84
|
-
// Original: key.name === 'tab' || (key.name === 'return' && !key.ctrl)
|
|
85
|
-
[Command.ACCEPT_SUGGESTION]: [{ key: 'tab' }, { key: 'return', ctrl: false }],
|
|
86
|
-
// Completion navigation (arrow or Ctrl+P/N)
|
|
87
|
-
[Command.COMPLETION_UP]: [{ key: 'up' }, { key: 'p', ctrl: true }],
|
|
88
|
-
[Command.COMPLETION_DOWN]: [{ key: 'down' }, { key: 'n', ctrl: true }],
|
|
89
|
-
// Text input
|
|
90
|
-
// Original: key.name === 'return' && !key.ctrl && !key.meta && !key.paste
|
|
91
|
-
// Must also exclude shift to allow shift+enter for newline
|
|
92
|
-
[Command.SUBMIT]: [
|
|
93
|
-
{
|
|
94
|
-
key: 'return',
|
|
95
|
-
ctrl: false,
|
|
96
|
-
command: false,
|
|
97
|
-
paste: false,
|
|
98
|
-
shift: false,
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
// Original: key.name === 'return' && (key.ctrl || key.meta || key.paste)
|
|
102
|
-
// Split into multiple data-driven bindings
|
|
103
|
-
// Now also includes shift+enter for multi-line input
|
|
104
|
-
[Command.NEWLINE]: [
|
|
105
|
-
{ key: 'return', ctrl: true },
|
|
106
|
-
{ key: 'return', command: true },
|
|
107
|
-
{ key: 'return', paste: true },
|
|
108
|
-
{ key: 'return', shift: true },
|
|
109
|
-
{ key: 'j', ctrl: true },
|
|
110
|
-
],
|
|
111
|
-
// External tools
|
|
112
|
-
// Original: key.ctrl && (key.name === 'x' || key.sequence === '\x18')
|
|
113
|
-
[Command.OPEN_EXTERNAL_EDITOR]: [
|
|
114
|
-
{ key: 'x', ctrl: true },
|
|
115
|
-
{ sequence: '\x18', ctrl: true },
|
|
116
|
-
],
|
|
117
|
-
// Original: key.ctrl && key.name === 'v'
|
|
118
|
-
[Command.PASTE_CLIPBOARD_IMAGE]: [{ key: 'v', ctrl: true }],
|
|
119
|
-
// App level bindings
|
|
120
|
-
// Original: key.ctrl && key.name === 'o'
|
|
121
|
-
[Command.SHOW_ERROR_DETAILS]: [{ key: 'o', ctrl: true }],
|
|
122
|
-
// Original: key.ctrl && key.name === 't'
|
|
123
|
-
[Command.TOGGLE_TOOL_DESCRIPTIONS]: [{ key: 't', ctrl: true }],
|
|
124
|
-
// Original: key.ctrl && key.name === 'g'
|
|
125
|
-
[Command.TOGGLE_IDE_CONTEXT_DETAIL]: [{ key: 'g', ctrl: true }],
|
|
126
|
-
// Original: key.ctrl && (key.name === 'c' || key.name === 'C')
|
|
127
|
-
[Command.QUIT]: [{ key: 'c', ctrl: true }],
|
|
128
|
-
// Original: key.ctrl && (key.name === 'd' || key.name === 'D')
|
|
129
|
-
[Command.EXIT]: [{ key: 'd', ctrl: true }],
|
|
130
|
-
// Original: key.ctrl && key.name === 's'
|
|
131
|
-
[Command.SHOW_MORE_LINES]: [{ key: 's', ctrl: true }],
|
|
132
|
-
// Shell commands
|
|
133
|
-
// Original: key.ctrl && key.name === 'r'
|
|
134
|
-
[Command.REVERSE_SEARCH]: [{ key: 'r', ctrl: true }],
|
|
135
|
-
// Original: key.name === 'return' && !key.ctrl
|
|
136
|
-
// Note: original logic ONLY checked ctrl=false, ignored meta/shift/paste
|
|
137
|
-
[Command.SUBMIT_REVERSE_SEARCH]: [{ key: 'return', ctrl: false }],
|
|
138
|
-
// Original: key.name === 'tab'
|
|
139
|
-
[Command.ACCEPT_SUGGESTION_REVERSE_SEARCH]: [{ key: 'tab' }],
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=keyBindings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyBindings.js","sourceRoot":"","sources":["../../../src/config/keyBindings.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,OAgDX;AAhDD,WAAY,OAAO;IACjB,iBAAiB;IACjB,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IAEjB,kBAAkB;IAClB,wBAAa,CAAA;IACb,sBAAW,CAAA;IAEX,gBAAgB;IAChB,4CAAiC,CAAA;IACjC,0CAA+B,CAAA;IAC/B,qCAA0B,CAAA;IAE1B,iBAAiB;IACjB,uCAA4B,CAAA;IAE5B,qBAAqB;IACrB,mCAAwB,CAAA;IACxB,uCAA4B,CAAA;IAC5B,yCAA8B,CAAA;IAC9B,6CAAkC,CAAA;IAElC,kBAAkB;IAClB,iDAAsC,CAAA;IACtC,yCAA8B,CAAA;IAC9B,6CAAkC,CAAA;IAElC,aAAa;IACb,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IAEnB,iBAAiB;IACjB,sDAA2C,CAAA;IAC3C,wDAA6C,CAAA;IAE7C,qBAAqB;IACrB,kDAAuC,CAAA;IACvC,8DAAmD,CAAA;IACnD,+D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,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC1C,yCAAyC;IACzC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAErD,iBAAiB;IACjB,yCAAyC;IACzC,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACpD,+CAA+C;IAC/C,yEAAyE;IACzE,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IACjE,+BAA+B;IAC/B,CAAC,OAAO,CAAC,gCAAgC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;CAC7D,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { describe, it, expect } from 'vitest';
|
|
7
|
-
import { Command, defaultKeyBindings } from './keyBindings.js';
|
|
8
|
-
describe('keyBindings config', () => {
|
|
9
|
-
describe('defaultKeyBindings', () => {
|
|
10
|
-
it('should have bindings for all commands', () => {
|
|
11
|
-
const commands = Object.values(Command);
|
|
12
|
-
for (const command of commands) {
|
|
13
|
-
expect(defaultKeyBindings[command]).toBeDefined();
|
|
14
|
-
expect(Array.isArray(defaultKeyBindings[command])).toBe(true);
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
it('should have valid key binding structures', () => {
|
|
18
|
-
for (const [_, bindings] of Object.entries(defaultKeyBindings)) {
|
|
19
|
-
for (const binding of bindings) {
|
|
20
|
-
// Each binding should have either key or sequence, but not both
|
|
21
|
-
const hasKey = binding.key !== undefined;
|
|
22
|
-
const hasSequence = binding.sequence !== undefined;
|
|
23
|
-
expect(hasKey || hasSequence).toBe(true);
|
|
24
|
-
expect(hasKey && hasSequence).toBe(false);
|
|
25
|
-
// Modifier properties should be boolean or undefined
|
|
26
|
-
if (binding.ctrl !== undefined) {
|
|
27
|
-
expect(typeof binding.ctrl).toBe('boolean');
|
|
28
|
-
}
|
|
29
|
-
if (binding.shift !== undefined) {
|
|
30
|
-
expect(typeof binding.shift).toBe('boolean');
|
|
31
|
-
}
|
|
32
|
-
if (binding.command !== undefined) {
|
|
33
|
-
expect(typeof binding.command).toBe('boolean');
|
|
34
|
-
}
|
|
35
|
-
if (binding.paste !== undefined) {
|
|
36
|
-
expect(typeof binding.paste).toBe('boolean');
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
it('should export all required types', () => {
|
|
42
|
-
// Basic type checks
|
|
43
|
-
expect(typeof Command.HOME).toBe('string');
|
|
44
|
-
expect(typeof Command.END).toBe('string');
|
|
45
|
-
// Config should be readonly
|
|
46
|
-
const config = defaultKeyBindings;
|
|
47
|
-
expect(config[Command.HOME]).toBeDefined();
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=keyBindings.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyBindings.test.js","sourceRoot":"","sources":["../../../src/config/keyBindings.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;YAC/C,MAAM,QAA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C,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;oBACjD,CAAC;oBACD,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;wBAChC,MAAM,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;oBAC/C,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC1C,oBAAoB;YACpB,MAAM,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC3C,MAAM,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAE1C,4BAA4B;YAC5B,MAAM,MAAM,GAAqB,kBAAkB,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC7C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export interface ModelInfo {
|
|
7
|
-
id: string;
|
|
8
|
-
name?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
deprecated?: boolean;
|
|
11
|
-
created?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface ModelDiscoveryResult {
|
|
14
|
-
success: boolean;
|
|
15
|
-
models: string[];
|
|
16
|
-
error?: string;
|
|
17
|
-
lastUpdated: number;
|
|
18
|
-
}
|
|
19
|
-
export declare class ModelDiscovery {
|
|
20
|
-
private static readonly CACHE_DURATION;
|
|
21
|
-
private static readonly CACHE_FILE;
|
|
22
|
-
/**
|
|
23
|
-
* Discovers available models for a provider by calling their API
|
|
24
|
-
*/
|
|
25
|
-
static discoverModels(provider: string, apiKey?: string): Promise<ModelDiscoveryResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Discovers OpenAI models via their API
|
|
28
|
-
*/
|
|
29
|
-
private static discoverOpenAIModels;
|
|
30
|
-
/**
|
|
31
|
-
* Discovers Anthropic models via their API
|
|
32
|
-
*/
|
|
33
|
-
private static discoverAnthropicModels;
|
|
34
|
-
/**
|
|
35
|
-
* Discovers Google models via their API
|
|
36
|
-
*/
|
|
37
|
-
private static discoverGoogleModels;
|
|
38
|
-
/**
|
|
39
|
-
* Discovers Ollama models via local API
|
|
40
|
-
*/
|
|
41
|
-
private static discoverOllamaModels;
|
|
42
|
-
/**
|
|
43
|
-
* Gets cached models for a provider
|
|
44
|
-
*/
|
|
45
|
-
private static getCachedModels;
|
|
46
|
-
/**
|
|
47
|
-
* Caches models for a provider
|
|
48
|
-
*/
|
|
49
|
-
private static cacheModels;
|
|
50
|
-
/**
|
|
51
|
-
* Updates provider configuration with discovered models
|
|
52
|
-
*/
|
|
53
|
-
static updateProviderConfig(provider: string, apiKey?: string): Promise<boolean>;
|
|
54
|
-
/**
|
|
55
|
-
* Checks if models need updating (cache expired)
|
|
56
|
-
*/
|
|
57
|
-
static shouldUpdateModels(provider: string): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Gets model update status for all providers
|
|
60
|
-
*/
|
|
61
|
-
static getUpdateStatus(): Record<string, {
|
|
62
|
-
needsUpdate: boolean;
|
|
63
|
-
lastUpdated?: number;
|
|
64
|
-
}>;
|
|
65
|
-
}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import * as fs from 'node:fs';
|
|
7
|
-
import * as path from 'node:path';
|
|
8
|
-
export class ModelDiscovery {
|
|
9
|
-
static CACHE_DURATION = 24 * 60 * 60 * 1000; // 24 hours
|
|
10
|
-
static CACHE_FILE = path.join(process.cwd(), '.gemini', 'model-cache.json');
|
|
11
|
-
/**
|
|
12
|
-
* Discovers available models for a provider by calling their API
|
|
13
|
-
*/
|
|
14
|
-
static async discoverModels(provider, apiKey) {
|
|
15
|
-
try {
|
|
16
|
-
// Check cache first
|
|
17
|
-
const cached = this.getCachedModels(provider);
|
|
18
|
-
if (cached && Date.now() - cached.lastUpdated < this.CACHE_DURATION) {
|
|
19
|
-
return cached;
|
|
20
|
-
}
|
|
21
|
-
// Fetch fresh models based on provider
|
|
22
|
-
let models = [];
|
|
23
|
-
switch (provider) {
|
|
24
|
-
case 'openai':
|
|
25
|
-
models = await this.discoverOpenAIModels(apiKey);
|
|
26
|
-
break;
|
|
27
|
-
case 'anthropic':
|
|
28
|
-
models = await this.discoverAnthropicModels(apiKey);
|
|
29
|
-
break;
|
|
30
|
-
case 'google':
|
|
31
|
-
models = await this.discoverGoogleModels(apiKey);
|
|
32
|
-
break;
|
|
33
|
-
case 'ollama':
|
|
34
|
-
models = await this.discoverOllamaModels();
|
|
35
|
-
break;
|
|
36
|
-
default:
|
|
37
|
-
return {
|
|
38
|
-
success: false,
|
|
39
|
-
models: [],
|
|
40
|
-
error: `Unknown provider: ${provider}`,
|
|
41
|
-
lastUpdated: Date.now()
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
const result = {
|
|
45
|
-
success: true,
|
|
46
|
-
models,
|
|
47
|
-
lastUpdated: Date.now()
|
|
48
|
-
};
|
|
49
|
-
// Cache the result
|
|
50
|
-
this.cacheModels(provider, result);
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
return {
|
|
55
|
-
success: false,
|
|
56
|
-
models: [],
|
|
57
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
58
|
-
lastUpdated: Date.now()
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Discovers OpenAI models via their API
|
|
64
|
-
*/
|
|
65
|
-
static async discoverOpenAIModels(apiKey) {
|
|
66
|
-
const key = apiKey || process.env['OPENAI_API_KEY'];
|
|
67
|
-
if (!key) {
|
|
68
|
-
throw new Error('OpenAI API key not found');
|
|
69
|
-
}
|
|
70
|
-
const baseUrl = process.env['OPENAI_BASE_URL'] || 'https://api.openai.com/v1';
|
|
71
|
-
const response = await fetch(`${baseUrl}/models`, {
|
|
72
|
-
headers: {
|
|
73
|
-
'Authorization': `Bearer ${key}`,
|
|
74
|
-
'Content-Type': 'application/json'
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
if (!response.ok) {
|
|
78
|
-
throw new Error(`OpenAI API error: ${response.status} ${response.statusText}`);
|
|
79
|
-
}
|
|
80
|
-
const data = await response.json();
|
|
81
|
-
const models = data.data
|
|
82
|
-
.filter((model) => model.id.startsWith('gpt-') ||
|
|
83
|
-
model.id.startsWith('text-') ||
|
|
84
|
-
model.id.includes('embedding'))
|
|
85
|
-
.map((model) => model.id)
|
|
86
|
-
.sort();
|
|
87
|
-
return models;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Discovers Anthropic models via their API
|
|
91
|
-
*/
|
|
92
|
-
static async discoverAnthropicModels(apiKey) {
|
|
93
|
-
const key = apiKey || process.env['ANTHROPIC_API_KEY'];
|
|
94
|
-
if (!key) {
|
|
95
|
-
throw new Error('Anthropic API key not found');
|
|
96
|
-
}
|
|
97
|
-
const baseUrl = process.env['ANTHROPIC_BASE_URL'] || 'https://api.anthropic.com';
|
|
98
|
-
const response = await fetch(`${baseUrl}/v1/models`, {
|
|
99
|
-
headers: {
|
|
100
|
-
'x-api-key': key,
|
|
101
|
-
'anthropic-version': '2023-06-01',
|
|
102
|
-
'Content-Type': 'application/json'
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
if (!response.ok) {
|
|
106
|
-
throw new Error(`Anthropic API error: ${response.status} ${response.statusText}`);
|
|
107
|
-
}
|
|
108
|
-
const data = await response.json();
|
|
109
|
-
const models = data.data
|
|
110
|
-
.filter((model) => model.id.startsWith('claude-'))
|
|
111
|
-
.map((model) => model.id)
|
|
112
|
-
.sort();
|
|
113
|
-
return models;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Discovers Google models via their API
|
|
117
|
-
*/
|
|
118
|
-
static async discoverGoogleModels(apiKey) {
|
|
119
|
-
const key = apiKey || process.env['GEMINI_API_KEY'];
|
|
120
|
-
if (!key) {
|
|
121
|
-
throw new Error('Google API key not found');
|
|
122
|
-
}
|
|
123
|
-
// Google's model list is relatively stable, so we can use a curated list
|
|
124
|
-
// with periodic updates from their documentation
|
|
125
|
-
const models = [
|
|
126
|
-
'gemini-1.5-pro-latest',
|
|
127
|
-
'gemini-1.5-pro',
|
|
128
|
-
'gemini-1.5-flash-latest',
|
|
129
|
-
'gemini-1.5-flash',
|
|
130
|
-
'gemini-2.0-flash-exp',
|
|
131
|
-
'gemini-2.0-flash',
|
|
132
|
-
'gemini-pro',
|
|
133
|
-
'gemini-pro-vision',
|
|
134
|
-
'embedding-001',
|
|
135
|
-
'text-embedding-004'
|
|
136
|
-
];
|
|
137
|
-
return models.sort();
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Discovers Ollama models via local API
|
|
141
|
-
*/
|
|
142
|
-
static async discoverOllamaModels() {
|
|
143
|
-
const baseUrl = process.env['OLLAMA_BASE_URL'] || 'http://localhost:11434';
|
|
144
|
-
try {
|
|
145
|
-
const response = await fetch(`${baseUrl}/api/tags`, {
|
|
146
|
-
method: 'GET',
|
|
147
|
-
headers: {
|
|
148
|
-
'Content-Type': 'application/json'
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
if (!response.ok) {
|
|
152
|
-
throw new Error(`Ollama API error: ${response.status} ${response.statusText}`);
|
|
153
|
-
}
|
|
154
|
-
const data = await response.json();
|
|
155
|
-
const models = data.models
|
|
156
|
-
.map((model) => model.name)
|
|
157
|
-
.sort();
|
|
158
|
-
return models;
|
|
159
|
-
}
|
|
160
|
-
catch (_error) {
|
|
161
|
-
// If Ollama is not running, return common models
|
|
162
|
-
return [
|
|
163
|
-
'llama2',
|
|
164
|
-
'llama3',
|
|
165
|
-
'mistral',
|
|
166
|
-
'codellama',
|
|
167
|
-
'phi3',
|
|
168
|
-
'gemma2',
|
|
169
|
-
'qwen2',
|
|
170
|
-
'yi',
|
|
171
|
-
'deepseek'
|
|
172
|
-
];
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Gets cached models for a provider
|
|
177
|
-
*/
|
|
178
|
-
static getCachedModels(provider) {
|
|
179
|
-
try {
|
|
180
|
-
if (!fs.existsSync(this.CACHE_FILE)) {
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
const cache = JSON.parse(fs.readFileSync(this.CACHE_FILE, 'utf-8'));
|
|
184
|
-
return cache[provider] || null;
|
|
185
|
-
}
|
|
186
|
-
catch (_error) {
|
|
187
|
-
return null;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Caches models for a provider
|
|
192
|
-
*/
|
|
193
|
-
static cacheModels(provider, result) {
|
|
194
|
-
try {
|
|
195
|
-
const cacheDir = path.dirname(this.CACHE_FILE);
|
|
196
|
-
if (!fs.existsSync(cacheDir)) {
|
|
197
|
-
fs.mkdirSync(cacheDir, { recursive: true });
|
|
198
|
-
}
|
|
199
|
-
let cache = {};
|
|
200
|
-
if (fs.existsSync(this.CACHE_FILE)) {
|
|
201
|
-
cache = JSON.parse(fs.readFileSync(this.CACHE_FILE, 'utf-8'));
|
|
202
|
-
}
|
|
203
|
-
cache[provider] = result;
|
|
204
|
-
fs.writeFileSync(this.CACHE_FILE, JSON.stringify(cache, null, 2));
|
|
205
|
-
}
|
|
206
|
-
catch (_error) {
|
|
207
|
-
console.error('Failed to cache models:', _error);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Updates provider configuration with discovered models
|
|
212
|
-
*/
|
|
213
|
-
static async updateProviderConfig(provider, apiKey) {
|
|
214
|
-
try {
|
|
215
|
-
const discovery = await this.discoverModels(provider, apiKey);
|
|
216
|
-
if (!discovery.success) {
|
|
217
|
-
console.error(`Failed to discover models for ${provider}:`, discovery.error);
|
|
218
|
-
return false;
|
|
219
|
-
}
|
|
220
|
-
// Load current provider config
|
|
221
|
-
const configPath = path.join(process.cwd(), '.gemini', 'providers.json');
|
|
222
|
-
if (!fs.existsSync(configPath)) {
|
|
223
|
-
console.error('Provider configuration file not found');
|
|
224
|
-
return false;
|
|
225
|
-
}
|
|
226
|
-
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
227
|
-
if (!config.providers[provider]) {
|
|
228
|
-
console.error(`Provider ${provider} not found in configuration`);
|
|
229
|
-
return false;
|
|
230
|
-
}
|
|
231
|
-
// Update models list
|
|
232
|
-
const oldModels = config.providers[provider].models || [];
|
|
233
|
-
const newModels = discovery.models;
|
|
234
|
-
// Check for new models
|
|
235
|
-
const addedModels = newModels.filter((model) => !oldModels.includes(model));
|
|
236
|
-
const removedModels = oldModels.filter((model) => !newModels.includes(model));
|
|
237
|
-
if (addedModels.length > 0 || removedModels.length > 0) {
|
|
238
|
-
config.providers[provider].models = newModels;
|
|
239
|
-
config.providers[provider].lastUpdated = Date.now();
|
|
240
|
-
// Backup old config
|
|
241
|
-
const backupPath = `${configPath}.backup.${Date.now()}`;
|
|
242
|
-
fs.writeFileSync(backupPath, JSON.stringify(config, null, 2));
|
|
243
|
-
// Write updated config
|
|
244
|
-
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
|
|
245
|
-
console.log(`✅ Updated ${provider} models:`);
|
|
246
|
-
if (addedModels.length > 0) {
|
|
247
|
-
console.log(` Added: ${addedModels.join(', ')}`);
|
|
248
|
-
}
|
|
249
|
-
if (removedModels.length > 0) {
|
|
250
|
-
console.log(` Removed: ${removedModels.join(', ')}`);
|
|
251
|
-
}
|
|
252
|
-
return true;
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
console.log(`✅ ${provider} models are up to date`);
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
catch (error) {
|
|
260
|
-
console.error(`Failed to update provider config for ${provider}:`, error);
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Checks if models need updating (cache expired)
|
|
266
|
-
*/
|
|
267
|
-
static shouldUpdateModels(provider) {
|
|
268
|
-
const cached = this.getCachedModels(provider);
|
|
269
|
-
if (!cached) {
|
|
270
|
-
return true;
|
|
271
|
-
}
|
|
272
|
-
return Date.now() - cached.lastUpdated > this.CACHE_DURATION;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Gets model update status for all providers
|
|
276
|
-
*/
|
|
277
|
-
static getUpdateStatus() {
|
|
278
|
-
const status = {};
|
|
279
|
-
const providers = ['openai', 'anthropic', 'google', 'ollama'];
|
|
280
|
-
for (const provider of providers) {
|
|
281
|
-
const cached = this.getCachedModels(provider);
|
|
282
|
-
status[provider] = {
|
|
283
|
-
needsUpdate: !cached || Date.now() - cached.lastUpdated > this.CACHE_DURATION,
|
|
284
|
-
lastUpdated: cached?.lastUpdated
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
return status;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
//# sourceMappingURL=modelDiscovery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modelDiscovery.js","sourceRoot":"","sources":["../../../src/config/modelDiscovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAiBlC,MAAM,OAAO,cAAc;IACjB,MAAM,CAA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