@google/gemini-cli 0.1.0-development.2 → 0.1.1
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 +1 -1
- package/README.md +16 -38
- package/bundle/gemini.js +257368 -0
- package/{dist/src/utils → bundle}/sandbox-macos-permissive-proxied.sb +1 -1
- package/{dist/src/utils → bundle}/sandbox-macos-restrictive-proxied.sb +1 -1
- package/bundle/shell.json +18 -0
- package/bundle/shell.md +16 -0
- package/package.json +72 -67
- package/dist/.last_build +0 -0
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- package/dist/package.json +0 -80
- package/dist/src/config/auth.d.ts +0 -6
- package/dist/src/config/auth.js +0 -33
- package/dist/src/config/auth.js.map +0 -1
- package/dist/src/config/config.d.ts +0 -13
- package/dist/src/config/config.js +0 -211
- package/dist/src/config/config.js.map +0 -1
- package/dist/src/config/extension.d.ts +0 -20
- package/dist/src/config/extension.js +0 -81
- package/dist/src/config/extension.js.map +0 -1
- package/dist/src/config/sandboxConfig.d.ts +0 -13
- package/dist/src/config/sandboxConfig.js +0 -75
- package/dist/src/config/sandboxConfig.js.map +0 -1
- package/dist/src/config/settings.d.ts +0 -72
- package/dist/src/config/settings.js +0 -227
- package/dist/src/config/settings.js.map +0 -1
- package/dist/src/gemini.d.ts +0 -6
- package/dist/src/gemini.js +0 -216
- package/dist/src/gemini.js.map +0 -1
- package/dist/src/generated/git-commit.d.ts +0 -6
- package/dist/src/generated/git-commit.js +0 -9
- package/dist/src/generated/git-commit.js.map +0 -1
- package/dist/src/nonInteractiveCli.d.ts +0 -7
- package/dist/src/nonInteractiveCli.js +0 -115
- package/dist/src/nonInteractiveCli.js.map +0 -1
- package/dist/src/services/CommandService.d.ts +0 -13
- package/dist/src/services/CommandService.js +0 -30
- package/dist/src/services/CommandService.js.map +0 -1
- package/dist/src/ui/App.d.ts +0 -14
- package/dist/src/ui/App.js +0 -391
- package/dist/src/ui/App.js.map +0 -1
- package/dist/src/ui/colors.d.ts +0 -7
- package/dist/src/ui/colors.js +0 -48
- package/dist/src/ui/colors.js.map +0 -1
- package/dist/src/ui/commands/clearCommand.d.ts +0 -7
- package/dist/src/ui/commands/clearCommand.js +0 -15
- package/dist/src/ui/commands/clearCommand.js.map +0 -1
- package/dist/src/ui/commands/helpCommand.d.ts +0 -7
- package/dist/src/ui/commands/helpCommand.js +0 -18
- package/dist/src/ui/commands/helpCommand.js.map +0 -1
- package/dist/src/ui/commands/memoryCommand.d.ts +0 -7
- package/dist/src/ui/commands/memoryCommand.js +0 -81
- package/dist/src/ui/commands/memoryCommand.js.map +0 -1
- package/dist/src/ui/commands/types.d.ts +0 -63
- package/dist/src/ui/commands/types.js +0 -7
- package/dist/src/ui/commands/types.js.map +0 -1
- package/dist/src/ui/components/AboutBox.d.ts +0 -16
- 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 -7
- package/dist/src/ui/components/AsciiArt.js +0 -26
- package/dist/src/ui/components/AsciiArt.js.map +0 -1
- package/dist/src/ui/components/AuthDialog.d.ts +0 -15
- package/dist/src/ui/components/AuthDialog.js +0 -66
- package/dist/src/ui/components/AuthDialog.js.map +0 -1
- package/dist/src/ui/components/AuthInProgress.d.ts +0 -11
- package/dist/src/ui/components/AuthInProgress.js +0 -27
- 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/ConsolePatcher.d.ts +0 -12
- package/dist/src/ui/components/ConsolePatcher.js +0 -40
- package/dist/src/ui/components/ConsolePatcher.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 -15
- package/dist/src/ui/components/ContextSummaryDisplay.js +0 -41
- package/dist/src/ui/components/ContextSummaryDisplay.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 -15
- package/dist/src/ui/components/EditorSettingsDialog.js +0 -73
- package/dist/src/ui/components/EditorSettingsDialog.js.map +0 -1
- package/dist/src/ui/components/Footer.d.ts +0 -20
- package/dist/src/ui/components/Footer.js +0 -13
- 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 -16
- package/dist/src/ui/components/GeminiRespondingSpinner.js.map +0 -1
- package/dist/src/ui/components/Header.d.ts +0 -12
- package/dist/src/ui/components/Header.js +0 -20
- 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 -10
- package/dist/src/ui/components/Help.js.map +0 -1
- package/dist/src/ui/components/HistoryItemDisplay.d.ts +0 -18
- package/dist/src/ui/components/HistoryItemDisplay.js +0 -17
- package/dist/src/ui/components/HistoryItemDisplay.js.map +0 -1
- package/dist/src/ui/components/InputPrompt.d.ts +0 -25
- package/dist/src/ui/components/InputPrompt.js +0 -280
- 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 -19
- package/dist/src/ui/components/LoadingIndicator.js.map +0 -1
- package/dist/src/ui/components/MemoryUsageDisplay.d.ts +0 -7
- package/dist/src/ui/components/MemoryUsageDisplay.js +0 -27
- 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/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/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 -42
- package/dist/src/ui/components/StatsDisplay.js.map +0 -1
- package/dist/src/ui/components/SuggestionsDisplay.d.ts +0 -21
- package/dist/src/ui/components/SuggestionsDisplay.js +0 -32
- package/dist/src/ui/components/SuggestionsDisplay.js.map +0 -1
- package/dist/src/ui/components/ThemeDialog.d.ts +0 -19
- package/dist/src/ui/components/ThemeDialog.js +0 -126
- 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 -8
- 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/messages/CompressionMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/CompressionMessage.js +0 -16
- package/dist/src/ui/components/messages/CompressionMessage.js.map +0 -1
- package/dist/src/ui/components/messages/DiffRenderer.d.ts +0 -15
- package/dist/src/ui/components/messages/DiffRenderer.js +0 -212
- 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 -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 -10
- 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 -9
- 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 -111
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +0 -18
- package/dist/src/ui/components/messages/ToolGroupMessage.js +0 -53
- package/dist/src/ui/components/messages/ToolGroupMessage.js.map +0 -1
- package/dist/src/ui/components/messages/ToolMessage.d.ts +0 -15
- package/dist/src/ui/components/messages/ToolMessage.js +0 -61
- package/dist/src/ui/components/messages/ToolMessage.js.map +0 -1
- package/dist/src/ui/components/messages/UserMessage.d.ts +0 -11
- package/dist/src/ui/components/messages/UserMessage.js +0 -9
- 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 -384
- package/dist/src/ui/components/shared/MaxSizedBox.js.map +0 -1
- package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +0 -41
- package/dist/src/ui/components/shared/RadioButtonSelect.js +0 -52
- package/dist/src/ui/components/shared/RadioButtonSelect.js.map +0 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +0 -184
- package/dist/src/ui/components/shared/text-buffer.js +0 -1010
- package/dist/src/ui/components/shared/text-buffer.js.map +0 -1
- package/dist/src/ui/constants.d.ts +0 -8
- package/dist/src/ui/constants.js +0 -12
- package/dist/src/ui/constants.js.map +0 -1
- package/dist/src/ui/contexts/OverflowContext.d.ts +0 -19
- package/dist/src/ui/contexts/OverflowContext.js +0 -43
- package/dist/src/ui/contexts/OverflowContext.js.map +0 -1
- package/dist/src/ui/contexts/SessionContext.d.ts +0 -33
- package/dist/src/ui/contexts/SessionContext.js +0 -49
- package/dist/src/ui/contexts/SessionContext.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/editors/editorSettingsManager.d.ts +0 -19
- package/dist/src/ui/editors/editorSettingsManager.js +0 -54
- 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 -310
- package/dist/src/ui/hooks/atCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/shellCommandProcessor.d.ts +0 -16
- package/dist/src/ui/hooks/shellCommandProcessor.js +0 -261
- package/dist/src/ui/hooks/shellCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +0 -27
- package/dist/src/ui/hooks/slashCommandProcessor.js +0 -1050
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +0 -1
- package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
- package/dist/src/ui/hooks/useAuthCommand.js +0 -54
- package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
- package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +0 -10
- package/dist/src/ui/hooks/useAutoAcceptIndicator.js +0 -37
- package/dist/src/ui/hooks/useAutoAcceptIndicator.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/useCompletion.d.ts +0 -21
- package/dist/src/ui/hooks/useCompletion.js +0 -372
- 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 -60
- 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/useGeminiStream.d.ts +0 -23
- package/dist/src/ui/hooks/useGeminiStream.js +0 -518
- 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/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/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/useKeypress.d.ts +0 -29
- package/dist/src/ui/hooks/useKeypress.js +0 -86
- package/dist/src/ui/hooks/useKeypress.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/useLogger.d.ts +0 -10
- package/dist/src/ui/hooks/useLogger.js +0 -29
- package/dist/src/ui/hooks/useLogger.js.map +0 -1
- package/dist/src/ui/hooks/usePhraseCycler.d.ts +0 -14
- package/dist/src/ui/hooks/usePhraseCycler.js +0 -189
- 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 -115
- package/dist/src/ui/hooks/usePrivacySettings.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/useShellHistory.d.ts +0 -11
- package/dist/src/ui/hooks/useShellHistory.js +0 -89
- package/dist/src/ui/hooks/useShellHistory.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/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 -78
- 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/privacy/CloudFreePrivacyNotice.d.ts +0 -12
- package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
- 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 -17
- 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 -17
- 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/themes/ansi-light.d.ts +0 -7
- package/dist/src/ui/themes/ansi-light.js +0 -139
- 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 -149
- 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 -136
- 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 -128
- 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 -102
- package/dist/src/ui/themes/ayu.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 -113
- 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 -136
- 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 -138
- 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 -135
- 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 -84
- package/dist/src/ui/themes/no-color.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 -302
- package/dist/src/ui/themes/shades-of-purple.js.map +0 -1
- package/dist/src/ui/themes/theme-manager.d.ts +0 -33
- package/dist/src/ui/themes/theme-manager.js +0 -109
- package/dist/src/ui/themes/theme-manager.js.map +0 -1
- package/dist/src/ui/themes/theme.d.ts +0 -67
- package/dist/src/ui/themes/theme.js +0 -304
- 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 -143
- package/dist/src/ui/themes/xcode.js.map +0 -1
- package/dist/src/ui/types.d.ts +0 -172
- package/dist/src/ui/types.js +0 -43
- package/dist/src/ui/types.js.map +0 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +0 -14
- package/dist/src/ui/utils/CodeColorizer.js +0 -97
- package/dist/src/ui/utils/CodeColorizer.js.map +0 -1
- package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +0 -16
- package/dist/src/ui/utils/InlineMarkdownRenderer.js +0 -104
- 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 -197
- 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 -84
- package/dist/src/ui/utils/TableRenderer.js.map +0 -1
- package/dist/src/ui/utils/commandUtils.d.ts +0 -22
- package/dist/src/ui/utils/commandUtils.js +0 -25
- 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 -55
- 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/errorParsing.d.ts +0 -15
- package/dist/src/ui/utils/errorParsing.js +0 -79
- package/dist/src/ui/utils/errorParsing.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/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/textUtils.d.ts +0 -22
- package/dist/src/ui/utils/textUtils.js +0 -58
- package/dist/src/ui/utils/textUtils.js.map +0 -1
- package/dist/src/ui/utils/updateCheck.d.ts +0 -6
- package/dist/src/ui/utils/updateCheck.js +0 -36
- package/dist/src/ui/utils/updateCheck.js.map +0 -1
- package/dist/src/utils/cleanup.d.ts +0 -6
- package/dist/src/utils/cleanup.js +0 -19
- package/dist/src/utils/cleanup.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 -34
- package/dist/src/utils/readStdin.js.map +0 -1
- package/dist/src/utils/sandbox.d.ts +0 -7
- package/dist/src/utils/sandbox.js +0 -680
- package/dist/src/utils/sandbox.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/userStartupWarnings.d.ts +0 -6
- package/dist/src/utils/userStartupWarnings.js +0 -33
- package/dist/src/utils/userStartupWarnings.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/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-restrictive-closed.sb +0 -0
- /package/{dist/src/utils → bundle}/sandbox-macos-restrictive-open.sb +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { AyuDark } from './ayu.js';
|
|
7
|
-
import { AyuLight } from './ayu-light.js';
|
|
8
|
-
import { AtomOneDark } from './atom-one-dark.js';
|
|
9
|
-
import { Dracula } from './dracula.js';
|
|
10
|
-
import { GitHubDark } from './github-dark.js';
|
|
11
|
-
import { GitHubLight } from './github-light.js';
|
|
12
|
-
import { GoogleCode } from './googlecode.js';
|
|
13
|
-
import { DefaultLight } from './default-light.js';
|
|
14
|
-
import { DefaultDark } from './default.js';
|
|
15
|
-
import { ShadesOfPurple } from './shades-of-purple.js';
|
|
16
|
-
import { XCode } from './xcode.js';
|
|
17
|
-
import { ANSI } from './ansi.js';
|
|
18
|
-
import { ANSILight } from './ansi-light.js';
|
|
19
|
-
import { NoColorTheme } from './no-color.js';
|
|
20
|
-
import process from 'node:process';
|
|
21
|
-
export const DEFAULT_THEME = DefaultDark;
|
|
22
|
-
class ThemeManager {
|
|
23
|
-
availableThemes;
|
|
24
|
-
activeTheme;
|
|
25
|
-
constructor() {
|
|
26
|
-
this.availableThemes = [
|
|
27
|
-
AyuDark,
|
|
28
|
-
AyuLight,
|
|
29
|
-
AtomOneDark,
|
|
30
|
-
Dracula,
|
|
31
|
-
DefaultLight,
|
|
32
|
-
DefaultDark,
|
|
33
|
-
GitHubDark,
|
|
34
|
-
GitHubLight,
|
|
35
|
-
GoogleCode,
|
|
36
|
-
ShadesOfPurple,
|
|
37
|
-
XCode,
|
|
38
|
-
ANSI,
|
|
39
|
-
ANSILight,
|
|
40
|
-
];
|
|
41
|
-
this.activeTheme = DEFAULT_THEME;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Returns a list of available theme names.
|
|
45
|
-
*/
|
|
46
|
-
getAvailableThemes() {
|
|
47
|
-
const sortedThemes = [...this.availableThemes].sort((a, b) => {
|
|
48
|
-
const typeOrder = (type) => {
|
|
49
|
-
switch (type) {
|
|
50
|
-
case 'dark':
|
|
51
|
-
return 1;
|
|
52
|
-
case 'light':
|
|
53
|
-
return 2;
|
|
54
|
-
default:
|
|
55
|
-
return 3;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const typeComparison = typeOrder(a.type) - typeOrder(b.type);
|
|
59
|
-
if (typeComparison !== 0) {
|
|
60
|
-
return typeComparison;
|
|
61
|
-
}
|
|
62
|
-
return a.name.localeCompare(b.name);
|
|
63
|
-
});
|
|
64
|
-
return sortedThemes.map((theme) => ({
|
|
65
|
-
name: theme.name,
|
|
66
|
-
type: theme.type,
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Sets the active theme.
|
|
71
|
-
* @param themeName The name of the theme to activate.
|
|
72
|
-
* @returns True if the theme was successfully set, false otherwise.
|
|
73
|
-
*/
|
|
74
|
-
setActiveTheme(themeName) {
|
|
75
|
-
const foundTheme = this.findThemeByName(themeName);
|
|
76
|
-
if (foundTheme) {
|
|
77
|
-
this.activeTheme = foundTheme;
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
// If themeName is undefined, it means we want to set the default theme.
|
|
82
|
-
// If findThemeByName returns undefined (e.g. default theme is also not found for some reason)
|
|
83
|
-
// then this will return false.
|
|
84
|
-
if (themeName === undefined) {
|
|
85
|
-
this.activeTheme = DEFAULT_THEME;
|
|
86
|
-
return true;
|
|
87
|
-
}
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
findThemeByName(themeName) {
|
|
92
|
-
if (!themeName) {
|
|
93
|
-
return DEFAULT_THEME;
|
|
94
|
-
}
|
|
95
|
-
return this.availableThemes.find((theme) => theme.name === themeName);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Returns the currently active theme object.
|
|
99
|
-
*/
|
|
100
|
-
getActiveTheme() {
|
|
101
|
-
if (process.env.NO_COLOR) {
|
|
102
|
-
return NoColorTheme;
|
|
103
|
-
}
|
|
104
|
-
return this.activeTheme;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// Export an instance of the ThemeManager
|
|
108
|
-
export const themeManager = new ThemeManager();
|
|
109
|
-
//# sourceMappingURL=theme-manager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-manager.js","sourceRoot":"","sources":["../../../../src/ui/themes/theme-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,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AAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,cAAc;QACZ,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;YACzB,OAAO,YAAY,CAAC;QACtB,CAAC;QACD,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;CACF;AAED,yCAAyC;AACzC,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { CSSProperties } from 'react';
|
|
7
|
-
export type ThemeType = 'light' | 'dark' | 'ansi';
|
|
8
|
-
export interface ColorsTheme {
|
|
9
|
-
type: ThemeType;
|
|
10
|
-
Background: string;
|
|
11
|
-
Foreground: string;
|
|
12
|
-
LightBlue: string;
|
|
13
|
-
AccentBlue: string;
|
|
14
|
-
AccentPurple: string;
|
|
15
|
-
AccentCyan: string;
|
|
16
|
-
AccentGreen: string;
|
|
17
|
-
AccentYellow: string;
|
|
18
|
-
AccentRed: string;
|
|
19
|
-
Comment: string;
|
|
20
|
-
Gray: string;
|
|
21
|
-
GradientColors?: string[];
|
|
22
|
-
}
|
|
23
|
-
export declare const lightTheme: ColorsTheme;
|
|
24
|
-
export declare const darkTheme: ColorsTheme;
|
|
25
|
-
export declare const ansiTheme: ColorsTheme;
|
|
26
|
-
export declare class Theme {
|
|
27
|
-
readonly name: string;
|
|
28
|
-
readonly type: ThemeType;
|
|
29
|
-
readonly colors: ColorsTheme;
|
|
30
|
-
/**
|
|
31
|
-
* The default foreground color for text when no specific highlight rule applies.
|
|
32
|
-
* This is an Ink-compatible color string (hex or name).
|
|
33
|
-
*/
|
|
34
|
-
readonly defaultColor: string;
|
|
35
|
-
/**
|
|
36
|
-
* Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
|
|
37
|
-
* to Ink-compatible color strings (hex or name).
|
|
38
|
-
*/
|
|
39
|
-
protected readonly _colorMap: Readonly<Record<string, string>>;
|
|
40
|
-
private static readonly cssNameToHexMap;
|
|
41
|
-
private static readonly inkSupportedNames;
|
|
42
|
-
/**
|
|
43
|
-
* Creates a new Theme instance.
|
|
44
|
-
* @param name The name of the theme.
|
|
45
|
-
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
46
|
-
*/
|
|
47
|
-
constructor(name: string, type: ThemeType, rawMappings: Record<string, CSSProperties>, colors: ColorsTheme);
|
|
48
|
-
/**
|
|
49
|
-
* Gets the Ink-compatible color string for a given highlight.js class name.
|
|
50
|
-
* @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
|
|
51
|
-
* @returns The corresponding Ink color string (hex or name) if it exists.
|
|
52
|
-
*/
|
|
53
|
-
getInkColor(hljsClass: string): string | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Resolves a CSS color value (name or hex) into an Ink-compatible color string.
|
|
56
|
-
* @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
|
|
57
|
-
* @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
|
|
58
|
-
*/
|
|
59
|
-
private static _resolveColor;
|
|
60
|
-
/**
|
|
61
|
-
* Builds the internal map from highlight.js class names to Ink-compatible color strings.
|
|
62
|
-
* This method is protected and primarily intended for use by the constructor.
|
|
63
|
-
* @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
64
|
-
* @returns An Ink-compatible theme map (Record<string, string>).
|
|
65
|
-
*/
|
|
66
|
-
protected _buildColorMap(hljsTheme: Record<string, CSSProperties>): Record<string, string>;
|
|
67
|
-
}
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
export const lightTheme = {
|
|
7
|
-
type: 'light',
|
|
8
|
-
Background: '#FAFAFA',
|
|
9
|
-
Foreground: '#3C3C43',
|
|
10
|
-
LightBlue: '#89BDCD',
|
|
11
|
-
AccentBlue: '#3B82F6',
|
|
12
|
-
AccentPurple: '#8B5CF6',
|
|
13
|
-
AccentCyan: '#06B6D4',
|
|
14
|
-
AccentGreen: '#3CA84B',
|
|
15
|
-
AccentYellow: '#D5A40A',
|
|
16
|
-
AccentRed: '#DD4C4C',
|
|
17
|
-
Comment: '#008000',
|
|
18
|
-
Gray: '#B7BECC',
|
|
19
|
-
GradientColors: ['#4796E4', '#847ACE', '#C3677F'],
|
|
20
|
-
};
|
|
21
|
-
export const darkTheme = {
|
|
22
|
-
type: 'dark',
|
|
23
|
-
Background: '#1E1E2E',
|
|
24
|
-
Foreground: '#CDD6F4',
|
|
25
|
-
LightBlue: '#ADD8E6',
|
|
26
|
-
AccentBlue: '#89B4FA',
|
|
27
|
-
AccentPurple: '#CBA6F7',
|
|
28
|
-
AccentCyan: '#89DCEB',
|
|
29
|
-
AccentGreen: '#A6E3A1',
|
|
30
|
-
AccentYellow: '#F9E2AF',
|
|
31
|
-
AccentRed: '#F38BA8',
|
|
32
|
-
Comment: '#6C7086',
|
|
33
|
-
Gray: '#6C7086',
|
|
34
|
-
GradientColors: ['#4796E4', '#847ACE', '#C3677F'],
|
|
35
|
-
};
|
|
36
|
-
export const ansiTheme = {
|
|
37
|
-
type: 'ansi',
|
|
38
|
-
Background: 'black',
|
|
39
|
-
Foreground: 'white',
|
|
40
|
-
LightBlue: 'blue',
|
|
41
|
-
AccentBlue: 'blue',
|
|
42
|
-
AccentPurple: 'magenta',
|
|
43
|
-
AccentCyan: 'cyan',
|
|
44
|
-
AccentGreen: 'green',
|
|
45
|
-
AccentYellow: 'yellow',
|
|
46
|
-
AccentRed: 'red',
|
|
47
|
-
Comment: 'gray',
|
|
48
|
-
Gray: 'gray',
|
|
49
|
-
};
|
|
50
|
-
export class Theme {
|
|
51
|
-
name;
|
|
52
|
-
type;
|
|
53
|
-
colors;
|
|
54
|
-
/**
|
|
55
|
-
* The default foreground color for text when no specific highlight rule applies.
|
|
56
|
-
* This is an Ink-compatible color string (hex or name).
|
|
57
|
-
*/
|
|
58
|
-
defaultColor;
|
|
59
|
-
/**
|
|
60
|
-
* Stores the mapping from highlight.js class names (e.g., 'hljs-keyword')
|
|
61
|
-
* to Ink-compatible color strings (hex or name).
|
|
62
|
-
*/
|
|
63
|
-
_colorMap;
|
|
64
|
-
// --- Static Helper Data ---
|
|
65
|
-
// Mapping from common CSS color names (lowercase) to hex codes (lowercase)
|
|
66
|
-
// Excludes names directly supported by Ink
|
|
67
|
-
static cssNameToHexMap = {
|
|
68
|
-
aliceblue: '#f0f8ff',
|
|
69
|
-
antiquewhite: '#faebd7',
|
|
70
|
-
aqua: '#00ffff',
|
|
71
|
-
aquamarine: '#7fffd4',
|
|
72
|
-
azure: '#f0ffff',
|
|
73
|
-
beige: '#f5f5dc',
|
|
74
|
-
bisque: '#ffe4c4',
|
|
75
|
-
blanchedalmond: '#ffebcd',
|
|
76
|
-
blueviolet: '#8a2be2',
|
|
77
|
-
brown: '#a52a2a',
|
|
78
|
-
burlywood: '#deb887',
|
|
79
|
-
cadetblue: '#5f9ea0',
|
|
80
|
-
chartreuse: '#7fff00',
|
|
81
|
-
chocolate: '#d2691e',
|
|
82
|
-
coral: '#ff7f50',
|
|
83
|
-
cornflowerblue: '#6495ed',
|
|
84
|
-
cornsilk: '#fff8dc',
|
|
85
|
-
crimson: '#dc143c',
|
|
86
|
-
darkblue: '#00008b',
|
|
87
|
-
darkcyan: '#008b8b',
|
|
88
|
-
darkgoldenrod: '#b8860b',
|
|
89
|
-
darkgray: '#a9a9a9',
|
|
90
|
-
darkgrey: '#a9a9a9',
|
|
91
|
-
darkgreen: '#006400',
|
|
92
|
-
darkkhaki: '#bdb76b',
|
|
93
|
-
darkmagenta: '#8b008b',
|
|
94
|
-
darkolivegreen: '#556b2f',
|
|
95
|
-
darkorange: '#ff8c00',
|
|
96
|
-
darkorchid: '#9932cc',
|
|
97
|
-
darkred: '#8b0000',
|
|
98
|
-
darksalmon: '#e9967a',
|
|
99
|
-
darkseagreen: '#8fbc8f',
|
|
100
|
-
darkslateblue: '#483d8b',
|
|
101
|
-
darkslategray: '#2f4f4f',
|
|
102
|
-
darkslategrey: '#2f4f4f',
|
|
103
|
-
darkturquoise: '#00ced1',
|
|
104
|
-
darkviolet: '#9400d3',
|
|
105
|
-
deeppink: '#ff1493',
|
|
106
|
-
deepskyblue: '#00bfff',
|
|
107
|
-
dimgray: '#696969',
|
|
108
|
-
dimgrey: '#696969',
|
|
109
|
-
dodgerblue: '#1e90ff',
|
|
110
|
-
firebrick: '#b22222',
|
|
111
|
-
floralwhite: '#fffaf0',
|
|
112
|
-
forestgreen: '#228b22',
|
|
113
|
-
fuchsia: '#ff00ff',
|
|
114
|
-
gainsboro: '#dcdcdc',
|
|
115
|
-
ghostwhite: '#f8f8ff',
|
|
116
|
-
gold: '#ffd700',
|
|
117
|
-
goldenrod: '#daa520',
|
|
118
|
-
greenyellow: '#adff2f',
|
|
119
|
-
honeydew: '#f0fff0',
|
|
120
|
-
hotpink: '#ff69b4',
|
|
121
|
-
indianred: '#cd5c5c',
|
|
122
|
-
indigo: '#4b0082',
|
|
123
|
-
ivory: '#fffff0',
|
|
124
|
-
khaki: '#f0e68c',
|
|
125
|
-
lavender: '#e6e6fa',
|
|
126
|
-
lavenderblush: '#fff0f5',
|
|
127
|
-
lawngreen: '#7cfc00',
|
|
128
|
-
lemonchiffon: '#fffacd',
|
|
129
|
-
lightblue: '#add8e6',
|
|
130
|
-
lightcoral: '#f08080',
|
|
131
|
-
lightcyan: '#e0ffff',
|
|
132
|
-
lightgoldenrodyellow: '#fafad2',
|
|
133
|
-
lightgray: '#d3d3d3',
|
|
134
|
-
lightgrey: '#d3d3d3',
|
|
135
|
-
lightgreen: '#90ee90',
|
|
136
|
-
lightpink: '#ffb6c1',
|
|
137
|
-
lightsalmon: '#ffa07a',
|
|
138
|
-
lightseagreen: '#20b2aa',
|
|
139
|
-
lightskyblue: '#87cefa',
|
|
140
|
-
lightslategray: '#778899',
|
|
141
|
-
lightslategrey: '#778899',
|
|
142
|
-
lightsteelblue: '#b0c4de',
|
|
143
|
-
lightyellow: '#ffffe0',
|
|
144
|
-
lime: '#00ff00',
|
|
145
|
-
limegreen: '#32cd32',
|
|
146
|
-
linen: '#faf0e6',
|
|
147
|
-
maroon: '#800000',
|
|
148
|
-
mediumaquamarine: '#66cdaa',
|
|
149
|
-
mediumblue: '#0000cd',
|
|
150
|
-
mediumorchid: '#ba55d3',
|
|
151
|
-
mediumpurple: '#9370db',
|
|
152
|
-
mediumseagreen: '#3cb371',
|
|
153
|
-
mediumslateblue: '#7b68ee',
|
|
154
|
-
mediumspringgreen: '#00fa9a',
|
|
155
|
-
mediumturquoise: '#48d1cc',
|
|
156
|
-
mediumvioletred: '#c71585',
|
|
157
|
-
midnightblue: '#191970',
|
|
158
|
-
mintcream: '#f5fffa',
|
|
159
|
-
mistyrose: '#ffe4e1',
|
|
160
|
-
moccasin: '#ffe4b5',
|
|
161
|
-
navajowhite: '#ffdead',
|
|
162
|
-
navy: '#000080',
|
|
163
|
-
oldlace: '#fdf5e6',
|
|
164
|
-
olive: '#808000',
|
|
165
|
-
olivedrab: '#6b8e23',
|
|
166
|
-
orange: '#ffa500',
|
|
167
|
-
orangered: '#ff4500',
|
|
168
|
-
orchid: '#da70d6',
|
|
169
|
-
palegoldenrod: '#eee8aa',
|
|
170
|
-
palegreen: '#98fb98',
|
|
171
|
-
paleturquoise: '#afeeee',
|
|
172
|
-
palevioletred: '#db7093',
|
|
173
|
-
papayawhip: '#ffefd5',
|
|
174
|
-
peachpuff: '#ffdab9',
|
|
175
|
-
peru: '#cd853f',
|
|
176
|
-
pink: '#ffc0cb',
|
|
177
|
-
plum: '#dda0dd',
|
|
178
|
-
powderblue: '#b0e0e6',
|
|
179
|
-
purple: '#800080',
|
|
180
|
-
rebeccapurple: '#663399',
|
|
181
|
-
rosybrown: '#bc8f8f',
|
|
182
|
-
royalblue: '#4169e1',
|
|
183
|
-
saddlebrown: '#8b4513',
|
|
184
|
-
salmon: '#fa8072',
|
|
185
|
-
sandybrown: '#f4a460',
|
|
186
|
-
seagreen: '#2e8b57',
|
|
187
|
-
seashell: '#fff5ee',
|
|
188
|
-
sienna: '#a0522d',
|
|
189
|
-
silver: '#c0c0c0',
|
|
190
|
-
skyblue: '#87ceeb',
|
|
191
|
-
slateblue: '#6a5acd',
|
|
192
|
-
slategray: '#708090',
|
|
193
|
-
slategrey: '#708090',
|
|
194
|
-
snow: '#fffafa',
|
|
195
|
-
springgreen: '#00ff7f',
|
|
196
|
-
steelblue: '#4682b4',
|
|
197
|
-
tan: '#d2b48c',
|
|
198
|
-
teal: '#008080',
|
|
199
|
-
thistle: '#d8bfd8',
|
|
200
|
-
tomato: '#ff6347',
|
|
201
|
-
turquoise: '#40e0d0',
|
|
202
|
-
violet: '#ee82ee',
|
|
203
|
-
wheat: '#f5deb3',
|
|
204
|
-
whitesmoke: '#f5f5f5',
|
|
205
|
-
yellowgreen: '#9acd32',
|
|
206
|
-
};
|
|
207
|
-
// Define the set of Ink's named colors for quick lookup
|
|
208
|
-
static inkSupportedNames = new Set([
|
|
209
|
-
'black',
|
|
210
|
-
'red',
|
|
211
|
-
'green',
|
|
212
|
-
'yellow',
|
|
213
|
-
'blue',
|
|
214
|
-
'cyan',
|
|
215
|
-
'magenta',
|
|
216
|
-
'white',
|
|
217
|
-
'gray',
|
|
218
|
-
'grey',
|
|
219
|
-
'blackbright',
|
|
220
|
-
'redbright',
|
|
221
|
-
'greenbright',
|
|
222
|
-
'yellowbright',
|
|
223
|
-
'bluebright',
|
|
224
|
-
'cyanbright',
|
|
225
|
-
'magentabright',
|
|
226
|
-
'whitebright',
|
|
227
|
-
]);
|
|
228
|
-
/**
|
|
229
|
-
* Creates a new Theme instance.
|
|
230
|
-
* @param name The name of the theme.
|
|
231
|
-
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
232
|
-
*/
|
|
233
|
-
constructor(name, type, rawMappings, colors) {
|
|
234
|
-
this.name = name;
|
|
235
|
-
this.type = type;
|
|
236
|
-
this.colors = colors;
|
|
237
|
-
this._colorMap = Object.freeze(this._buildColorMap(rawMappings)); // Build and freeze the map
|
|
238
|
-
// Determine the default foreground color
|
|
239
|
-
const rawDefaultColor = rawMappings['hljs']?.color;
|
|
240
|
-
this.defaultColor =
|
|
241
|
-
(rawDefaultColor ? Theme._resolveColor(rawDefaultColor) : undefined) ??
|
|
242
|
-
''; // Default to empty string if not found or resolvable
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* Gets the Ink-compatible color string for a given highlight.js class name.
|
|
246
|
-
* @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
|
|
247
|
-
* @returns The corresponding Ink color string (hex or name) if it exists.
|
|
248
|
-
*/
|
|
249
|
-
getInkColor(hljsClass) {
|
|
250
|
-
return this._colorMap[hljsClass];
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Resolves a CSS color value (name or hex) into an Ink-compatible color string.
|
|
254
|
-
* @param colorValue The raw color string (e.g., 'blue', '#ff0000', 'darkkhaki').
|
|
255
|
-
* @returns An Ink-compatible color string (hex or name), or undefined if not resolvable.
|
|
256
|
-
*/
|
|
257
|
-
static _resolveColor(colorValue) {
|
|
258
|
-
const lowerColor = colorValue.toLowerCase();
|
|
259
|
-
// 1. Check if it's already a hex code
|
|
260
|
-
if (lowerColor.startsWith('#')) {
|
|
261
|
-
return lowerColor; // Use hex directly
|
|
262
|
-
}
|
|
263
|
-
// 2. Check if it's an Ink supported name (lowercase)
|
|
264
|
-
else if (Theme.inkSupportedNames.has(lowerColor)) {
|
|
265
|
-
return lowerColor; // Use Ink name directly
|
|
266
|
-
}
|
|
267
|
-
// 3. Check if it's a known CSS name we can map to hex
|
|
268
|
-
else if (Theme.cssNameToHexMap[lowerColor]) {
|
|
269
|
-
return Theme.cssNameToHexMap[lowerColor]; // Use mapped hex
|
|
270
|
-
}
|
|
271
|
-
// 4. Could not resolve
|
|
272
|
-
console.warn(`[Theme] Could not resolve color "${colorValue}" to an Ink-compatible format.`);
|
|
273
|
-
return undefined;
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Builds the internal map from highlight.js class names to Ink-compatible color strings.
|
|
277
|
-
* This method is protected and primarily intended for use by the constructor.
|
|
278
|
-
* @param hljsTheme The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
279
|
-
* @returns An Ink-compatible theme map (Record<string, string>).
|
|
280
|
-
*/
|
|
281
|
-
_buildColorMap(hljsTheme) {
|
|
282
|
-
const inkTheme = {};
|
|
283
|
-
for (const key in hljsTheme) {
|
|
284
|
-
// Ensure the key starts with 'hljs-' or is 'hljs' for the base style
|
|
285
|
-
if (!key.startsWith('hljs-') && key !== 'hljs') {
|
|
286
|
-
continue; // Skip keys not related to highlighting classes
|
|
287
|
-
}
|
|
288
|
-
const style = hljsTheme[key];
|
|
289
|
-
if (style?.color) {
|
|
290
|
-
const resolvedColor = Theme._resolveColor(style.color);
|
|
291
|
-
if (resolvedColor !== undefined) {
|
|
292
|
-
// Use the original key from the hljsTheme (e.g., 'hljs-keyword')
|
|
293
|
-
inkTheme[key] = resolvedColor;
|
|
294
|
-
}
|
|
295
|
-
// If color is not resolvable, it's omitted from the map,
|
|
296
|
-
// allowing fallback to the default foreground color.
|
|
297
|
-
}
|
|
298
|
-
// We currently only care about the 'color' property for Ink rendering.
|
|
299
|
-
// Other properties like background, fontStyle, etc., are ignored.
|
|
300
|
-
}
|
|
301
|
-
return inkTheme;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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,UAAU,CAAC,CAAC,CAAC,iBAAiB;QAC7D,CAAC;QAED,uBAAuB;QACvB,OAAO,CAAC,IAAI,CACV,oCAAoC,UAAU,gCAAgC,CAC/E,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACO,cAAc,CACtB,SAAwC;QAExC,MAAM,QAAQ,GAA2B,EAAE,CAAC;QAC5C,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;YAC5B,qEAAqE;YACrE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC;gBAC/C,SAAS,CAAC,gDAAgD;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;gBACjB,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACvD,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;oBAChC,iEAAiE;oBACjE,QAAQ,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;gBAChC,CAAC;gBACD,yDAAyD;gBACzD,qDAAqD;YACvD,CAAC;YACD,uEAAuE;YACvE,kEAAkE;QACpE,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { Theme } from './theme.js';
|
|
7
|
-
const xcodeColors = {
|
|
8
|
-
type: 'light',
|
|
9
|
-
Background: '#fff',
|
|
10
|
-
Foreground: 'black',
|
|
11
|
-
LightBlue: '#0E0EFF',
|
|
12
|
-
AccentBlue: '#1c00cf',
|
|
13
|
-
AccentPurple: '#aa0d91',
|
|
14
|
-
AccentCyan: '#3F6E74',
|
|
15
|
-
AccentGreen: '#007400',
|
|
16
|
-
AccentYellow: '#836C28',
|
|
17
|
-
AccentRed: '#c41a16',
|
|
18
|
-
Comment: '#007400',
|
|
19
|
-
Gray: '#c0c0c0',
|
|
20
|
-
GradientColors: ['#1c00cf', '#007400'],
|
|
21
|
-
};
|
|
22
|
-
export const XCode = new Theme('Xcode', 'light', {
|
|
23
|
-
hljs: {
|
|
24
|
-
display: 'block',
|
|
25
|
-
overflowX: 'auto',
|
|
26
|
-
padding: '0.5em',
|
|
27
|
-
background: xcodeColors.Background,
|
|
28
|
-
color: xcodeColors.Foreground,
|
|
29
|
-
},
|
|
30
|
-
'xml .hljs-meta': {
|
|
31
|
-
color: xcodeColors.Gray,
|
|
32
|
-
},
|
|
33
|
-
'hljs-comment': {
|
|
34
|
-
color: xcodeColors.Comment,
|
|
35
|
-
},
|
|
36
|
-
'hljs-quote': {
|
|
37
|
-
color: xcodeColors.Comment,
|
|
38
|
-
},
|
|
39
|
-
'hljs-tag': {
|
|
40
|
-
color: xcodeColors.AccentPurple,
|
|
41
|
-
},
|
|
42
|
-
'hljs-attribute': {
|
|
43
|
-
color: xcodeColors.AccentPurple,
|
|
44
|
-
},
|
|
45
|
-
'hljs-keyword': {
|
|
46
|
-
color: xcodeColors.AccentPurple,
|
|
47
|
-
},
|
|
48
|
-
'hljs-selector-tag': {
|
|
49
|
-
color: xcodeColors.AccentPurple,
|
|
50
|
-
},
|
|
51
|
-
'hljs-literal': {
|
|
52
|
-
color: xcodeColors.AccentPurple,
|
|
53
|
-
},
|
|
54
|
-
'hljs-name': {
|
|
55
|
-
color: xcodeColors.AccentPurple,
|
|
56
|
-
},
|
|
57
|
-
'hljs-variable': {
|
|
58
|
-
color: xcodeColors.AccentCyan,
|
|
59
|
-
},
|
|
60
|
-
'hljs-template-variable': {
|
|
61
|
-
color: xcodeColors.AccentCyan,
|
|
62
|
-
},
|
|
63
|
-
'hljs-code': {
|
|
64
|
-
color: xcodeColors.AccentRed,
|
|
65
|
-
},
|
|
66
|
-
'hljs-string': {
|
|
67
|
-
color: xcodeColors.AccentRed,
|
|
68
|
-
},
|
|
69
|
-
'hljs-meta-string': {
|
|
70
|
-
color: xcodeColors.AccentRed,
|
|
71
|
-
},
|
|
72
|
-
'hljs-regexp': {
|
|
73
|
-
color: xcodeColors.LightBlue,
|
|
74
|
-
},
|
|
75
|
-
'hljs-link': {
|
|
76
|
-
color: xcodeColors.LightBlue,
|
|
77
|
-
},
|
|
78
|
-
'hljs-title': {
|
|
79
|
-
color: xcodeColors.AccentBlue,
|
|
80
|
-
},
|
|
81
|
-
'hljs-symbol': {
|
|
82
|
-
color: xcodeColors.AccentBlue,
|
|
83
|
-
},
|
|
84
|
-
'hljs-bullet': {
|
|
85
|
-
color: xcodeColors.AccentBlue,
|
|
86
|
-
},
|
|
87
|
-
'hljs-number': {
|
|
88
|
-
color: xcodeColors.AccentBlue,
|
|
89
|
-
},
|
|
90
|
-
'hljs-section': {
|
|
91
|
-
color: xcodeColors.AccentYellow,
|
|
92
|
-
},
|
|
93
|
-
'hljs-meta': {
|
|
94
|
-
color: xcodeColors.AccentYellow,
|
|
95
|
-
},
|
|
96
|
-
'hljs-class .hljs-title': {
|
|
97
|
-
color: xcodeColors.AccentPurple,
|
|
98
|
-
},
|
|
99
|
-
'hljs-type': {
|
|
100
|
-
color: xcodeColors.AccentPurple,
|
|
101
|
-
},
|
|
102
|
-
'hljs-built_in': {
|
|
103
|
-
color: xcodeColors.AccentPurple,
|
|
104
|
-
},
|
|
105
|
-
'hljs-builtin-name': {
|
|
106
|
-
color: xcodeColors.AccentPurple,
|
|
107
|
-
},
|
|
108
|
-
'hljs-params': {
|
|
109
|
-
color: xcodeColors.AccentPurple,
|
|
110
|
-
},
|
|
111
|
-
'hljs-attr': {
|
|
112
|
-
color: xcodeColors.AccentYellow,
|
|
113
|
-
},
|
|
114
|
-
'hljs-subst': {
|
|
115
|
-
color: xcodeColors.Foreground,
|
|
116
|
-
},
|
|
117
|
-
'hljs-formula': {
|
|
118
|
-
backgroundColor: '#eee',
|
|
119
|
-
fontStyle: 'italic',
|
|
120
|
-
},
|
|
121
|
-
'hljs-addition': {
|
|
122
|
-
backgroundColor: '#baeeba',
|
|
123
|
-
},
|
|
124
|
-
'hljs-deletion': {
|
|
125
|
-
backgroundColor: '#ffc8bd',
|
|
126
|
-
},
|
|
127
|
-
'hljs-selector-id': {
|
|
128
|
-
color: xcodeColors.AccentYellow,
|
|
129
|
-
},
|
|
130
|
-
'hljs-selector-class': {
|
|
131
|
-
color: xcodeColors.AccentYellow,
|
|
132
|
-
},
|
|
133
|
-
'hljs-doctag': {
|
|
134
|
-
fontWeight: 'bold',
|
|
135
|
-
},
|
|
136
|
-
'hljs-strong': {
|
|
137
|
-
fontWeight: 'bold',
|
|
138
|
-
},
|
|
139
|
-
'hljs-emphasis': {
|
|
140
|
-
fontStyle: 'italic',
|
|
141
|
-
},
|
|
142
|
-
}, xcodeColors);
|
|
143
|
-
//# sourceMappingURL=xcode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xcode.js","sourceRoot":"","sources":["../../../../src/ui/themes/xcode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAoB,KAAK,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,WAAW,GAAgB;IAC/B,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE,SAAS;IACpB,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,SAAS;IACrB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,SAAS,EAAE,SAAS;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU,IAAI,KAAK,CACnC,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