@google/gemini-cli 0.1.18 → 0.1.19
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/README.md +199 -132
- package/dist/google-gemini-cli-0.1.18.tgz +0 -0
- package/dist/package.json +4 -2
- package/dist/src/acp/acpPeer.js +72 -64
- package/dist/src/acp/acpPeer.js.map +1 -1
- package/dist/src/commands/mcp/add.d.ts +7 -0
- package/dist/src/commands/mcp/add.js +155 -0
- package/dist/src/commands/mcp/add.js.map +1 -0
- package/dist/src/commands/mcp/list.d.ts +8 -0
- package/dist/src/commands/mcp/list.js +110 -0
- package/dist/src/commands/mcp/list.js.map +1 -0
- package/dist/src/commands/mcp/remove.d.ts +7 -0
- package/dist/src/commands/mcp/remove.js +44 -0
- package/dist/src/commands/mcp/remove.js.map +1 -0
- package/dist/src/commands/mcp.d.ts +7 -0
- package/dist/src/commands/mcp.js +23 -0
- package/dist/src/commands/mcp.js.map +1 -0
- package/dist/src/config/config.d.ts +0 -1
- package/dist/src/config/config.js +68 -46
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/keyBindings.d.ts +66 -0
- package/dist/src/config/keyBindings.js +136 -0
- package/dist/src/config/keyBindings.js.map +1 -0
- package/dist/src/config/settings.d.ts +3 -50
- package/dist/src/config/settings.js +17 -1
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/config/settingsSchema.d.ts +497 -0
- package/dist/src/config/settingsSchema.js +470 -0
- package/dist/src/config/settingsSchema.js.map +1 -0
- package/dist/src/gemini.js +9 -28
- package/dist/src/gemini.js.map +1 -1
- package/dist/src/generated/git-commit.d.ts +1 -1
- package/dist/src/generated/git-commit.js +1 -1
- package/dist/src/nonInteractiveCli.js +0 -1
- package/dist/src/nonInteractiveCli.js.map +1 -1
- package/dist/src/services/BuiltinCommandLoader.js +3 -2
- package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
- package/dist/src/ui/App.js +103 -36
- package/dist/src/ui/App.js.map +1 -1
- package/dist/src/ui/IdeIntegrationNudge.d.ts +12 -0
- package/dist/src/ui/IdeIntegrationNudge.js +31 -0
- package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
- package/dist/src/ui/commands/chatCommand.js +15 -0
- package/dist/src/ui/commands/chatCommand.js.map +1 -1
- package/dist/src/ui/commands/ideCommand.js +57 -3
- package/dist/src/ui/commands/ideCommand.js.map +1 -1
- package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
- package/dist/src/ui/commands/settingsCommand.js +16 -0
- package/dist/src/ui/commands/settingsCommand.js.map +1 -0
- package/dist/src/ui/commands/setupGithubCommand.js +86 -19
- package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
- package/dist/src/ui/commands/types.d.ts +13 -2
- package/dist/src/ui/commands/types.js.map +1 -1
- package/dist/src/ui/components/AsciiArt.d.ts +1 -0
- package/dist/src/ui/components/AsciiArt.js +10 -0
- package/dist/src/ui/components/AsciiArt.js.map +1 -1
- package/dist/src/ui/components/AuthInProgress.js +3 -3
- package/dist/src/ui/components/AuthInProgress.js.map +1 -1
- package/dist/src/ui/components/ContextSummaryDisplay.js +21 -24
- package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
- package/dist/src/ui/components/ContextUsageDisplay.d.ts +9 -0
- package/dist/src/ui/components/ContextUsageDisplay.js +14 -0
- package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
- package/dist/src/ui/components/FolderTrustDialog.d.ts +16 -0
- package/dist/src/ui/components/FolderTrustDialog.js +38 -0
- package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
- package/dist/src/ui/components/Footer.js +14 -5
- package/dist/src/ui/components/Footer.js.map +1 -1
- package/dist/src/ui/components/Header.d.ts +0 -1
- package/dist/src/ui/components/Header.js +13 -5
- package/dist/src/ui/components/Header.js.map +1 -1
- package/dist/src/ui/components/InputPrompt.d.ts +1 -0
- package/dist/src/ui/components/InputPrompt.js +90 -34
- package/dist/src/ui/components/InputPrompt.js.map +1 -1
- package/dist/src/ui/components/LoadingIndicator.js +10 -5
- package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/src/ui/components/SettingsDialog.d.ts +14 -0
- package/dist/src/ui/components/SettingsDialog.js +247 -0
- package/dist/src/ui/components/SettingsDialog.js.map +1 -0
- package/dist/src/ui/components/SuggestionsDisplay.js +1 -1
- package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
- package/dist/src/ui/components/ThemeDialog.js +4 -15
- package/dist/src/ui/components/ThemeDialog.js.map +1 -1
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js +31 -11
- package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
- package/dist/src/ui/components/shared/text-buffer.d.ts +17 -4
- package/dist/src/ui/components/shared/text-buffer.js +224 -70
- package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
- package/dist/src/ui/components/shared/vim-buffer-actions.js +137 -151
- package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -1
- package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
- package/dist/src/ui/contexts/SettingsContext.js +15 -0
- package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
- package/dist/src/ui/hooks/atCommandProcessor.js +7 -4
- package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/slashCommandProcessor.d.ts +6 -2
- package/dist/src/ui/hooks/slashCommandProcessor.js +34 -3
- package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
- package/dist/src/ui/hooks/useAtCompletion.js +4 -1
- package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
- package/dist/src/ui/hooks/useFolderTrust.d.ts +11 -0
- package/dist/src/ui/hooks/useFolderTrust.js +22 -0
- package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
- package/dist/src/ui/hooks/useGeminiStream.d.ts +2 -1
- package/dist/src/ui/hooks/useGeminiStream.js +30 -16
- package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
- package/dist/src/ui/hooks/usePhraseCycler.js +2 -2
- package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.d.ts +1 -1
- package/dist/src/ui/hooks/useReactToolScheduler.js +15 -15
- package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
- package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
- package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
- package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
- package/dist/src/ui/keyMatchers.d.ts +26 -0
- package/dist/src/ui/keyMatchers.js +68 -0
- package/dist/src/ui/keyMatchers.js.map +1 -0
- package/dist/src/ui/semantic-colors.d.ts +7 -0
- package/dist/src/ui/semantic-colors.js +24 -0
- package/dist/src/ui/semantic-colors.js.map +1 -0
- package/dist/src/ui/themes/ansi-light.js +2 -1
- package/dist/src/ui/themes/ansi-light.js.map +1 -1
- package/dist/src/ui/themes/ansi.js +2 -1
- package/dist/src/ui/themes/ansi.js.map +1 -1
- package/dist/src/ui/themes/atom-one-dark.js +2 -1
- package/dist/src/ui/themes/atom-one-dark.js.map +1 -1
- package/dist/src/ui/themes/ayu-light.js +2 -1
- package/dist/src/ui/themes/ayu-light.js.map +1 -1
- package/dist/src/ui/themes/ayu.js +2 -1
- package/dist/src/ui/themes/ayu.js.map +1 -1
- package/dist/src/ui/themes/default-light.js +2 -1
- package/dist/src/ui/themes/default-light.js.map +1 -1
- package/dist/src/ui/themes/default.js +2 -1
- package/dist/src/ui/themes/default.js.map +1 -1
- package/dist/src/ui/themes/dracula.js +2 -1
- package/dist/src/ui/themes/dracula.js.map +1 -1
- package/dist/src/ui/themes/github-dark.js +2 -1
- package/dist/src/ui/themes/github-dark.js.map +1 -1
- package/dist/src/ui/themes/github-light.js +2 -1
- package/dist/src/ui/themes/github-light.js.map +1 -1
- package/dist/src/ui/themes/googlecode.js +2 -1
- package/dist/src/ui/themes/googlecode.js.map +1 -1
- package/dist/src/ui/themes/no-color.js +30 -1
- package/dist/src/ui/themes/no-color.js.map +1 -1
- package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
- package/dist/src/ui/themes/semantic-tokens.js +94 -0
- package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
- package/dist/src/ui/themes/shades-of-purple.js +2 -1
- package/dist/src/ui/themes/shades-of-purple.js.map +1 -1
- package/dist/src/ui/themes/theme-manager.d.ts +6 -0
- package/dist/src/ui/themes/theme-manager.js +7 -0
- package/dist/src/ui/themes/theme-manager.js.map +1 -1
- package/dist/src/ui/themes/theme.d.ts +45 -2
- package/dist/src/ui/themes/theme.js +92 -107
- package/dist/src/ui/themes/theme.js.map +1 -1
- package/dist/src/ui/themes/xcode.js +2 -1
- package/dist/src/ui/themes/xcode.js.map +1 -1
- package/dist/src/ui/types.d.ts +1 -1
- package/dist/src/ui/utils/CodeColorizer.d.ts +2 -1
- package/dist/src/ui/utils/CodeColorizer.js +4 -3
- package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
- package/dist/src/ui/utils/ConsolePatcher.d.ts +1 -0
- package/dist/src/ui/utils/ConsolePatcher.js +3 -0
- package/dist/src/ui/utils/ConsolePatcher.js.map +1 -1
- package/dist/src/ui/utils/MarkdownDisplay.js +4 -2
- package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
- package/dist/src/ui/utils/commandUtils.d.ts +1 -0
- package/dist/src/ui/utils/commandUtils.js +22 -1
- package/dist/src/ui/utils/commandUtils.js.map +1 -1
- package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
- package/dist/src/ui/utils/isNarrowWidth.js +9 -0
- package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
- package/dist/src/utils/cleanup.d.ts +2 -2
- package/dist/src/utils/cleanup.js +2 -2
- package/dist/src/utils/cleanup.js.map +1 -1
- package/dist/src/utils/dialogScopeUtils.d.ts +31 -0
- package/dist/src/utils/dialogScopeUtils.js +48 -0
- package/dist/src/utils/dialogScopeUtils.js.map +1 -0
- package/dist/src/utils/gitUtils.d.ts +21 -1
- package/dist/src/utils/gitUtils.js +68 -3
- package/dist/src/utils/gitUtils.js.map +1 -1
- package/dist/src/utils/sandbox.js +426 -405
- package/dist/src/utils/sandbox.js.map +1 -1
- package/dist/src/utils/settingsUtils.d.ts +126 -0
- package/dist/src/utils/settingsUtils.js +327 -0
- package/dist/src/utils/settingsUtils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/dist/google-gemini-cli-0.1.17.tgz +0 -0
- package/dist/src/ui/components/IDEContextDetailDisplay.d.ts +0 -12
- package/dist/src/ui/components/IDEContextDetailDisplay.js +0 -12
- package/dist/src/ui/components/IDEContextDetailDisplay.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { lightTheme, darkTheme, ansiTheme } from './theme.js';
|
|
7
|
+
export const lightSemanticColors = {
|
|
8
|
+
text: {
|
|
9
|
+
primary: lightTheme.Foreground,
|
|
10
|
+
secondary: lightTheme.Gray,
|
|
11
|
+
link: lightTheme.AccentBlue,
|
|
12
|
+
accent: lightTheme.AccentPurple,
|
|
13
|
+
},
|
|
14
|
+
background: {
|
|
15
|
+
primary: lightTheme.Background,
|
|
16
|
+
diff: {
|
|
17
|
+
added: lightTheme.DiffAdded,
|
|
18
|
+
removed: lightTheme.DiffRemoved,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
border: {
|
|
22
|
+
default: lightTheme.Gray,
|
|
23
|
+
focused: lightTheme.AccentBlue,
|
|
24
|
+
},
|
|
25
|
+
ui: {
|
|
26
|
+
comment: lightTheme.Comment,
|
|
27
|
+
symbol: lightTheme.Gray,
|
|
28
|
+
gradient: lightTheme.GradientColors,
|
|
29
|
+
},
|
|
30
|
+
status: {
|
|
31
|
+
error: lightTheme.AccentRed,
|
|
32
|
+
success: lightTheme.AccentGreen,
|
|
33
|
+
warning: lightTheme.AccentYellow,
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export const darkSemanticColors = {
|
|
37
|
+
text: {
|
|
38
|
+
primary: darkTheme.Foreground,
|
|
39
|
+
secondary: darkTheme.Gray,
|
|
40
|
+
link: darkTheme.AccentBlue,
|
|
41
|
+
accent: darkTheme.AccentPurple,
|
|
42
|
+
},
|
|
43
|
+
background: {
|
|
44
|
+
primary: darkTheme.Background,
|
|
45
|
+
diff: {
|
|
46
|
+
added: darkTheme.DiffAdded,
|
|
47
|
+
removed: darkTheme.DiffRemoved,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
border: {
|
|
51
|
+
default: darkTheme.Gray,
|
|
52
|
+
focused: darkTheme.AccentBlue,
|
|
53
|
+
},
|
|
54
|
+
ui: {
|
|
55
|
+
comment: darkTheme.Comment,
|
|
56
|
+
symbol: darkTheme.Gray,
|
|
57
|
+
gradient: darkTheme.GradientColors,
|
|
58
|
+
},
|
|
59
|
+
status: {
|
|
60
|
+
error: darkTheme.AccentRed,
|
|
61
|
+
success: darkTheme.AccentGreen,
|
|
62
|
+
warning: darkTheme.AccentYellow,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const ansiSemanticColors = {
|
|
66
|
+
text: {
|
|
67
|
+
primary: ansiTheme.Foreground,
|
|
68
|
+
secondary: ansiTheme.Gray,
|
|
69
|
+
link: ansiTheme.AccentBlue,
|
|
70
|
+
accent: ansiTheme.AccentPurple,
|
|
71
|
+
},
|
|
72
|
+
background: {
|
|
73
|
+
primary: ansiTheme.Background,
|
|
74
|
+
diff: {
|
|
75
|
+
added: ansiTheme.DiffAdded,
|
|
76
|
+
removed: ansiTheme.DiffRemoved,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
border: {
|
|
80
|
+
default: ansiTheme.Gray,
|
|
81
|
+
focused: ansiTheme.AccentBlue,
|
|
82
|
+
},
|
|
83
|
+
ui: {
|
|
84
|
+
comment: ansiTheme.Comment,
|
|
85
|
+
symbol: ansiTheme.Gray,
|
|
86
|
+
gradient: ansiTheme.GradientColors,
|
|
87
|
+
},
|
|
88
|
+
status: {
|
|
89
|
+
error: ansiTheme.AccentRed,
|
|
90
|
+
success: ansiTheme.AccentGreen,
|
|
91
|
+
warning: ansiTheme.AccentYellow,
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=semantic-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic-tokens.js","sourceRoot":"","sources":["../../../../src/ui/themes/semantic-tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAgC9D,MAAM,CAAC,MAAM,mBAAmB,GAAmB;IACjD,IAAI,EAAE;QACJ,OAAO,EAAE,UAAU,CAAC,UAAU;QAC9B,SAAS,EAAE,UAAU,CAAC,IAAI;QAC1B,IAAI,EAAE,UAAU,CAAC,UAAU;QAC3B,MAAM,EAAE,UAAU,CAAC,YAAY;KAChC;IACD,UAAU,EAAE;QACV,OAAO,EAAE,UAAU,CAAC,UAAU;QAC9B,IAAI,EAAE;YACJ,KAAK,EAAE,UAAU,CAAC,SAAS;YAC3B,OAAO,EAAE,UAAU,CAAC,WAAW;SAChC;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE,UAAU,CAAC,IAAI;QACxB,OAAO,EAAE,UAAU,CAAC,UAAU;KAC/B;IACD,EAAE,EAAE;QACF,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,MAAM,EAAE,UAAU,CAAC,IAAI;QACvB,QAAQ,EAAE,UAAU,CAAC,cAAc;KACpC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,UAAU,CAAC,SAAS;QAC3B,OAAO,EAAE,UAAU,CAAC,WAAW;QAC/B,OAAO,EAAE,UAAU,CAAC,YAAY;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AE;QACF,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,MAAM,EAAE,SAAS,CAAC,IAAI;QACtB,QAAQ,EAAE,SAAS,CAAC,cAAc;KACnC;IACD,MAAM,EAAE;QACN,KAAK,EAAE,SAAS,CAAC,SAAS;QAC1B,OAAO,EAAE,SAAS,CAAC,WAAW;QAC9B,OAAO,EAAE,SAAS,CAAC,YAAY;KAChC;CACF,CAAC"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @author Ahmad Awais <https://twitter.com/mrahmadawais/>
|
|
9
9
|
*/
|
|
10
10
|
import { Theme } from './theme.js';
|
|
11
|
+
import { darkSemanticColors } from './semantic-tokens.js';
|
|
11
12
|
const shadesOfPurpleColors = {
|
|
12
13
|
type: 'dark',
|
|
13
14
|
// Required colors for ColorsTheme interface
|
|
@@ -300,5 +301,5 @@ export const ShadesOfPurple = new Theme('Shades Of Purple', 'dark', {
|
|
|
300
301
|
display: 'block',
|
|
301
302
|
width: '100%',
|
|
302
303
|
},
|
|
303
|
-
}, shadesOfPurpleColors);
|
|
304
|
+
}, shadesOfPurpleColors, darkSemanticColors);
|
|
304
305
|
//# sourceMappingURL=shades-of-purple.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shades-of-purple.js","sourceRoot":"","sources":["../../../../src/ui/themes/shades-of-purple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,OAAO,EAAoB,KAAK,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"shades-of-purple.js","sourceRoot":"","sources":["../../../../src/ui/themes/shades-of-purple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,OAAO,EAAoB,KAAK,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,oBAAoB,GAAgB;IACxC,IAAI,EAAE,MAAM;IACZ,4CAA4C;IAC5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E,OAAO,EAAE,OAAO;QAChB,KAAK,EAAE,MAAM;KACd;CACF,EACD,oBAAoB,EACpB,kBAAkB,CACnB,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { Theme, ThemeType, CustomTheme } from './theme.js';
|
|
7
|
+
import { SemanticColors } from './semantic-tokens.js';
|
|
7
8
|
export interface ThemeDisplay {
|
|
8
9
|
name: string;
|
|
9
10
|
type: ThemeType;
|
|
@@ -31,6 +32,11 @@ declare class ThemeManager {
|
|
|
31
32
|
* @returns The active theme.
|
|
32
33
|
*/
|
|
33
34
|
getActiveTheme(): Theme;
|
|
35
|
+
/**
|
|
36
|
+
* Gets the semantic colors for the active theme.
|
|
37
|
+
* @returns The semantic colors.
|
|
38
|
+
*/
|
|
39
|
+
getSemanticColors(): SemanticColors;
|
|
34
40
|
/**
|
|
35
41
|
* Gets a list of custom theme names.
|
|
36
42
|
* @returns Array of custom theme names.
|
|
@@ -109,6 +109,13 @@ class ThemeManager {
|
|
|
109
109
|
}
|
|
110
110
|
return this.activeTheme;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Gets the semantic colors for the active theme.
|
|
114
|
+
* @returns The semantic colors.
|
|
115
|
+
*/
|
|
116
|
+
getSemanticColors() {
|
|
117
|
+
return this.getActiveTheme().semanticColors;
|
|
118
|
+
}
|
|
112
119
|
/**
|
|
113
120
|
* Gets a list of custom theme names.
|
|
114
121
|
* @returns Array of custom theme names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-manager.js","sourceRoot":"","sources":["../../../../src/ui/themes/theme-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CA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ic-tokens.js';
|
|
7
8
|
export type ThemeType = 'light' | 'dark' | 'ansi' | 'custom';
|
|
8
9
|
export interface ColorsTheme {
|
|
9
10
|
type: ThemeType;
|
|
@@ -22,9 +23,50 @@ export interface ColorsTheme {
|
|
|
22
23
|
Gray: string;
|
|
23
24
|
GradientColors?: string[];
|
|
24
25
|
}
|
|
25
|
-
export interface CustomTheme
|
|
26
|
+
export interface CustomTheme {
|
|
26
27
|
type: 'custom';
|
|
27
28
|
name: string;
|
|
29
|
+
text?: {
|
|
30
|
+
primary?: string;
|
|
31
|
+
secondary?: string;
|
|
32
|
+
link?: string;
|
|
33
|
+
accent?: string;
|
|
34
|
+
};
|
|
35
|
+
background?: {
|
|
36
|
+
primary?: string;
|
|
37
|
+
diff?: {
|
|
38
|
+
added?: string;
|
|
39
|
+
removed?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
border?: {
|
|
43
|
+
default?: string;
|
|
44
|
+
focused?: string;
|
|
45
|
+
};
|
|
46
|
+
ui?: {
|
|
47
|
+
comment?: string;
|
|
48
|
+
symbol?: string;
|
|
49
|
+
gradient?: string[];
|
|
50
|
+
};
|
|
51
|
+
status?: {
|
|
52
|
+
error?: string;
|
|
53
|
+
success?: string;
|
|
54
|
+
warning?: string;
|
|
55
|
+
};
|
|
56
|
+
Background?: string;
|
|
57
|
+
Foreground?: string;
|
|
58
|
+
LightBlue?: string;
|
|
59
|
+
AccentBlue?: string;
|
|
60
|
+
AccentPurple?: string;
|
|
61
|
+
AccentCyan?: string;
|
|
62
|
+
AccentGreen?: string;
|
|
63
|
+
AccentYellow?: string;
|
|
64
|
+
AccentRed?: string;
|
|
65
|
+
DiffAdded?: string;
|
|
66
|
+
DiffRemoved?: string;
|
|
67
|
+
Comment?: string;
|
|
68
|
+
Gray?: string;
|
|
69
|
+
GradientColors?: string[];
|
|
28
70
|
}
|
|
29
71
|
export declare const lightTheme: ColorsTheme;
|
|
30
72
|
export declare const darkTheme: ColorsTheme;
|
|
@@ -33,6 +75,7 @@ export declare class Theme {
|
|
|
33
75
|
readonly name: string;
|
|
34
76
|
readonly type: ThemeType;
|
|
35
77
|
readonly colors: ColorsTheme;
|
|
78
|
+
readonly semanticColors: SemanticColors;
|
|
36
79
|
/**
|
|
37
80
|
* The default foreground color for text when no specific highlight rule applies.
|
|
38
81
|
* This is an Ink-compatible color string (hex or name).
|
|
@@ -48,7 +91,7 @@ export declare class Theme {
|
|
|
48
91
|
* @param name The name of the theme.
|
|
49
92
|
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
50
93
|
*/
|
|
51
|
-
constructor(name: string, type: ThemeType, rawMappings: Record<string, CSSProperties>, colors: ColorsTheme);
|
|
94
|
+
constructor(name: string, type: ThemeType, rawMappings: Record<string, CSSProperties>, colors: ColorsTheme, semanticColors: SemanticColors);
|
|
52
95
|
/**
|
|
53
96
|
* Gets the Ink-compatible color string for a given highlight.js class name.
|
|
54
97
|
* @param hljsClass The highlight.js class name (e.g., 'hljs-keyword', 'hljs-string').
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { resolveColor } from './color-utils.js';
|
|
7
7
|
export const lightTheme = {
|
|
8
8
|
type: 'light',
|
|
9
9
|
Background: '#FAFAFA',
|
|
@@ -58,6 +58,7 @@ export class Theme {
|
|
|
58
58
|
name;
|
|
59
59
|
type;
|
|
60
60
|
colors;
|
|
61
|
+
semanticColors;
|
|
61
62
|
/**
|
|
62
63
|
* The default foreground color for text when no specific highlight rule applies.
|
|
63
64
|
* This is an Ink-compatible color string (hex or name).
|
|
@@ -73,10 +74,11 @@ export class Theme {
|
|
|
73
74
|
* @param name The name of the theme.
|
|
74
75
|
* @param rawMappings The raw CSSProperties mappings from a react-syntax-highlighter theme object.
|
|
75
76
|
*/
|
|
76
|
-
constructor(name, type, rawMappings, colors) {
|
|
77
|
+
constructor(name, type, rawMappings, colors, semanticColors) {
|
|
77
78
|
this.name = name;
|
|
78
79
|
this.type = type;
|
|
79
80
|
this.colors = colors;
|
|
81
|
+
this.semanticColors = semanticColors;
|
|
80
82
|
this._colorMap = Object.freeze(this._buildColorMap(rawMappings)); // Build and freeze the map
|
|
81
83
|
// Determine the default foreground color
|
|
82
84
|
const rawDefaultColor = rawMappings['hljs']?.color;
|
|
@@ -135,107 +137,124 @@ export class Theme {
|
|
|
135
137
|
* @returns A new Theme instance.
|
|
136
138
|
*/
|
|
137
139
|
export function createCustomTheme(customTheme) {
|
|
140
|
+
const colors = {
|
|
141
|
+
type: 'custom',
|
|
142
|
+
Background: customTheme.background?.primary ?? customTheme.Background ?? '',
|
|
143
|
+
Foreground: customTheme.text?.primary ?? customTheme.Foreground ?? '',
|
|
144
|
+
LightBlue: customTheme.text?.link ?? customTheme.LightBlue ?? '',
|
|
145
|
+
AccentBlue: customTheme.text?.link ?? customTheme.AccentBlue ?? '',
|
|
146
|
+
AccentPurple: customTheme.text?.accent ?? customTheme.AccentPurple ?? '',
|
|
147
|
+
AccentCyan: customTheme.text?.link ?? customTheme.AccentCyan ?? '',
|
|
148
|
+
AccentGreen: customTheme.status?.success ?? customTheme.AccentGreen ?? '',
|
|
149
|
+
AccentYellow: customTheme.status?.warning ?? customTheme.AccentYellow ?? '',
|
|
150
|
+
AccentRed: customTheme.status?.error ?? customTheme.AccentRed ?? '',
|
|
151
|
+
DiffAdded: customTheme.background?.diff?.added ?? customTheme.DiffAdded ?? '',
|
|
152
|
+
DiffRemoved: customTheme.background?.diff?.removed ?? customTheme.DiffRemoved ?? '',
|
|
153
|
+
Comment: customTheme.ui?.comment ?? customTheme.Comment ?? '',
|
|
154
|
+
Gray: customTheme.text?.secondary ?? customTheme.Gray ?? '',
|
|
155
|
+
GradientColors: customTheme.ui?.gradient ?? customTheme.GradientColors,
|
|
156
|
+
};
|
|
138
157
|
// Generate CSS properties mappings based on the custom theme colors
|
|
139
158
|
const rawMappings = {
|
|
140
159
|
hljs: {
|
|
141
160
|
display: 'block',
|
|
142
161
|
overflowX: 'auto',
|
|
143
162
|
padding: '0.5em',
|
|
144
|
-
background:
|
|
145
|
-
color:
|
|
163
|
+
background: colors.Background,
|
|
164
|
+
color: colors.Foreground,
|
|
146
165
|
},
|
|
147
166
|
'hljs-keyword': {
|
|
148
|
-
color:
|
|
167
|
+
color: colors.AccentBlue,
|
|
149
168
|
},
|
|
150
169
|
'hljs-literal': {
|
|
151
|
-
color:
|
|
170
|
+
color: colors.AccentBlue,
|
|
152
171
|
},
|
|
153
172
|
'hljs-symbol': {
|
|
154
|
-
color:
|
|
173
|
+
color: colors.AccentBlue,
|
|
155
174
|
},
|
|
156
175
|
'hljs-name': {
|
|
157
|
-
color:
|
|
176
|
+
color: colors.AccentBlue,
|
|
158
177
|
},
|
|
159
178
|
'hljs-link': {
|
|
160
|
-
color:
|
|
179
|
+
color: colors.AccentBlue,
|
|
161
180
|
textDecoration: 'underline',
|
|
162
181
|
},
|
|
163
182
|
'hljs-built_in': {
|
|
164
|
-
color:
|
|
183
|
+
color: colors.AccentCyan,
|
|
165
184
|
},
|
|
166
185
|
'hljs-type': {
|
|
167
|
-
color:
|
|
186
|
+
color: colors.AccentCyan,
|
|
168
187
|
},
|
|
169
188
|
'hljs-number': {
|
|
170
|
-
color:
|
|
189
|
+
color: colors.AccentGreen,
|
|
171
190
|
},
|
|
172
191
|
'hljs-class': {
|
|
173
|
-
color:
|
|
192
|
+
color: colors.AccentGreen,
|
|
174
193
|
},
|
|
175
194
|
'hljs-string': {
|
|
176
|
-
color:
|
|
195
|
+
color: colors.AccentYellow,
|
|
177
196
|
},
|
|
178
197
|
'hljs-meta-string': {
|
|
179
|
-
color:
|
|
198
|
+
color: colors.AccentYellow,
|
|
180
199
|
},
|
|
181
200
|
'hljs-regexp': {
|
|
182
|
-
color:
|
|
201
|
+
color: colors.AccentRed,
|
|
183
202
|
},
|
|
184
203
|
'hljs-template-tag': {
|
|
185
|
-
color:
|
|
204
|
+
color: colors.AccentRed,
|
|
186
205
|
},
|
|
187
206
|
'hljs-subst': {
|
|
188
|
-
color:
|
|
207
|
+
color: colors.Foreground,
|
|
189
208
|
},
|
|
190
209
|
'hljs-function': {
|
|
191
|
-
color:
|
|
210
|
+
color: colors.Foreground,
|
|
192
211
|
},
|
|
193
212
|
'hljs-title': {
|
|
194
|
-
color:
|
|
213
|
+
color: colors.Foreground,
|
|
195
214
|
},
|
|
196
215
|
'hljs-params': {
|
|
197
|
-
color:
|
|
216
|
+
color: colors.Foreground,
|
|
198
217
|
},
|
|
199
218
|
'hljs-formula': {
|
|
200
|
-
color:
|
|
219
|
+
color: colors.Foreground,
|
|
201
220
|
},
|
|
202
221
|
'hljs-comment': {
|
|
203
|
-
color:
|
|
222
|
+
color: colors.Comment,
|
|
204
223
|
fontStyle: 'italic',
|
|
205
224
|
},
|
|
206
225
|
'hljs-quote': {
|
|
207
|
-
color:
|
|
226
|
+
color: colors.Comment,
|
|
208
227
|
fontStyle: 'italic',
|
|
209
228
|
},
|
|
210
229
|
'hljs-doctag': {
|
|
211
|
-
color:
|
|
230
|
+
color: colors.Comment,
|
|
212
231
|
},
|
|
213
232
|
'hljs-meta': {
|
|
214
|
-
color:
|
|
233
|
+
color: colors.Gray,
|
|
215
234
|
},
|
|
216
235
|
'hljs-meta-keyword': {
|
|
217
|
-
color:
|
|
236
|
+
color: colors.Gray,
|
|
218
237
|
},
|
|
219
238
|
'hljs-tag': {
|
|
220
|
-
color:
|
|
239
|
+
color: colors.Gray,
|
|
221
240
|
},
|
|
222
241
|
'hljs-variable': {
|
|
223
|
-
color:
|
|
242
|
+
color: colors.AccentPurple,
|
|
224
243
|
},
|
|
225
244
|
'hljs-template-variable': {
|
|
226
|
-
color:
|
|
245
|
+
color: colors.AccentPurple,
|
|
227
246
|
},
|
|
228
247
|
'hljs-attr': {
|
|
229
|
-
color:
|
|
248
|
+
color: colors.LightBlue,
|
|
230
249
|
},
|
|
231
250
|
'hljs-attribute': {
|
|
232
|
-
color:
|
|
251
|
+
color: colors.LightBlue,
|
|
233
252
|
},
|
|
234
253
|
'hljs-builtin-name': {
|
|
235
|
-
color:
|
|
254
|
+
color: colors.LightBlue,
|
|
236
255
|
},
|
|
237
256
|
'hljs-section': {
|
|
238
|
-
color:
|
|
257
|
+
color: colors.AccentYellow,
|
|
239
258
|
},
|
|
240
259
|
'hljs-emphasis': {
|
|
241
260
|
fontStyle: 'italic',
|
|
@@ -244,35 +263,64 @@ export function createCustomTheme(customTheme) {
|
|
|
244
263
|
fontWeight: 'bold',
|
|
245
264
|
},
|
|
246
265
|
'hljs-bullet': {
|
|
247
|
-
color:
|
|
266
|
+
color: colors.AccentYellow,
|
|
248
267
|
},
|
|
249
268
|
'hljs-selector-tag': {
|
|
250
|
-
color:
|
|
269
|
+
color: colors.AccentYellow,
|
|
251
270
|
},
|
|
252
271
|
'hljs-selector-id': {
|
|
253
|
-
color:
|
|
272
|
+
color: colors.AccentYellow,
|
|
254
273
|
},
|
|
255
274
|
'hljs-selector-class': {
|
|
256
|
-
color:
|
|
275
|
+
color: colors.AccentYellow,
|
|
257
276
|
},
|
|
258
277
|
'hljs-selector-attr': {
|
|
259
|
-
color:
|
|
278
|
+
color: colors.AccentYellow,
|
|
260
279
|
},
|
|
261
280
|
'hljs-selector-pseudo': {
|
|
262
|
-
color:
|
|
281
|
+
color: colors.AccentYellow,
|
|
263
282
|
},
|
|
264
283
|
'hljs-addition': {
|
|
265
|
-
backgroundColor:
|
|
284
|
+
backgroundColor: colors.AccentGreen,
|
|
266
285
|
display: 'inline-block',
|
|
267
286
|
width: '100%',
|
|
268
287
|
},
|
|
269
288
|
'hljs-deletion': {
|
|
270
|
-
backgroundColor:
|
|
289
|
+
backgroundColor: colors.AccentRed,
|
|
271
290
|
display: 'inline-block',
|
|
272
291
|
width: '100%',
|
|
273
292
|
},
|
|
274
293
|
};
|
|
275
|
-
|
|
294
|
+
const semanticColors = {
|
|
295
|
+
text: {
|
|
296
|
+
primary: colors.Foreground,
|
|
297
|
+
secondary: colors.Gray,
|
|
298
|
+
link: colors.AccentBlue,
|
|
299
|
+
accent: colors.AccentPurple,
|
|
300
|
+
},
|
|
301
|
+
background: {
|
|
302
|
+
primary: colors.Background,
|
|
303
|
+
diff: {
|
|
304
|
+
added: colors.DiffAdded,
|
|
305
|
+
removed: colors.DiffRemoved,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
border: {
|
|
309
|
+
default: colors.Gray,
|
|
310
|
+
focused: colors.AccentBlue,
|
|
311
|
+
},
|
|
312
|
+
ui: {
|
|
313
|
+
comment: colors.Comment,
|
|
314
|
+
symbol: colors.Gray,
|
|
315
|
+
gradient: colors.GradientColors,
|
|
316
|
+
},
|
|
317
|
+
status: {
|
|
318
|
+
error: colors.AccentRed,
|
|
319
|
+
success: colors.AccentGreen,
|
|
320
|
+
warning: colors.AccentYellow,
|
|
321
|
+
},
|
|
322
|
+
};
|
|
323
|
+
return new Theme(customTheme.name, 'custom', rawMappings, colors, semanticColors);
|
|
276
324
|
}
|
|
277
325
|
/**
|
|
278
326
|
* Validates a custom theme configuration.
|
|
@@ -280,67 +328,7 @@ export function createCustomTheme(customTheme) {
|
|
|
280
328
|
* @returns An object with isValid boolean and error message if invalid.
|
|
281
329
|
*/
|
|
282
330
|
export function validateCustomTheme(customTheme) {
|
|
283
|
-
//
|
|
284
|
-
const requiredFields = [
|
|
285
|
-
'name',
|
|
286
|
-
'Background',
|
|
287
|
-
'Foreground',
|
|
288
|
-
'LightBlue',
|
|
289
|
-
'AccentBlue',
|
|
290
|
-
'AccentPurple',
|
|
291
|
-
'AccentCyan',
|
|
292
|
-
'AccentGreen',
|
|
293
|
-
'AccentYellow',
|
|
294
|
-
'AccentRed',
|
|
295
|
-
// 'DiffAdded' and 'DiffRemoved' are not required as they were added after
|
|
296
|
-
// the theme format was defined.
|
|
297
|
-
'Comment',
|
|
298
|
-
'Gray',
|
|
299
|
-
];
|
|
300
|
-
const recommendedFields = [
|
|
301
|
-
'DiffAdded',
|
|
302
|
-
'DiffRemoved',
|
|
303
|
-
];
|
|
304
|
-
for (const field of requiredFields) {
|
|
305
|
-
if (!customTheme[field]) {
|
|
306
|
-
return {
|
|
307
|
-
isValid: false,
|
|
308
|
-
error: `Missing required field: ${field}`,
|
|
309
|
-
};
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
const missingFields = [];
|
|
313
|
-
for (const field of recommendedFields) {
|
|
314
|
-
if (!customTheme[field]) {
|
|
315
|
-
missingFields.push(field);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
// Validate color format (basic hex validation)
|
|
319
|
-
const colorFields = [
|
|
320
|
-
'Background',
|
|
321
|
-
'Foreground',
|
|
322
|
-
'LightBlue',
|
|
323
|
-
'AccentBlue',
|
|
324
|
-
'AccentPurple',
|
|
325
|
-
'AccentCyan',
|
|
326
|
-
'AccentGreen',
|
|
327
|
-
'AccentYellow',
|
|
328
|
-
'AccentRed',
|
|
329
|
-
'DiffAdded',
|
|
330
|
-
'DiffRemoved',
|
|
331
|
-
'Comment',
|
|
332
|
-
'Gray',
|
|
333
|
-
];
|
|
334
|
-
for (const field of colorFields) {
|
|
335
|
-
const color = customTheme[field];
|
|
336
|
-
if (color !== undefined && !isValidColor(color)) {
|
|
337
|
-
return {
|
|
338
|
-
isValid: false,
|
|
339
|
-
error: `Invalid color format for ${field}: ${color}`,
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
// Validate theme name
|
|
331
|
+
// Since all fields are optional, we only need to validate the name.
|
|
344
332
|
if (customTheme.name && !isValidThemeName(customTheme.name)) {
|
|
345
333
|
return {
|
|
346
334
|
isValid: false,
|
|
@@ -349,9 +337,6 @@ export function validateCustomTheme(customTheme) {
|
|
|
349
337
|
}
|
|
350
338
|
return {
|
|
351
339
|
isValid: true,
|
|
352
|
-
warning: missingFields.length > 0
|
|
353
|
-
? `Missing field(s) ${missingFields.join(', ')}`
|
|
354
|
-
: undefined,
|
|
355
340
|
};
|
|
356
341
|
}
|
|
357
342
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/ui/themes/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/ui/themes/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAuEhD,MAAM,CAAC,MAAM,UAAU,GAAgB;IACrC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,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,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CAClD,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAgB;IACpC,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,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,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,SAAS;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,SAAS;IACf,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CAClD,CAAC;AAE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