@google/gemini-cli 0.1.10-dev.15 → 0.1.11-nightly.250713.4442e893

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.
Files changed (170) hide show
  1. package/README.md +16 -2
  2. package/dist/google-gemini-cli-0.1.11.tgz +0 -0
  3. package/dist/package.json +7 -8
  4. package/dist/src/config/auth.js +6 -5
  5. package/dist/src/config/auth.js.map +1 -1
  6. package/dist/src/config/config.d.ts +23 -2
  7. package/dist/src/config/config.js +78 -54
  8. package/dist/src/config/config.js.map +1 -1
  9. package/dist/src/config/extension.d.ts +1 -0
  10. package/dist/src/config/extension.js +34 -6
  11. package/dist/src/config/extension.js.map +1 -1
  12. package/dist/src/config/sandboxConfig.d.ts +1 -1
  13. package/dist/src/config/sandboxConfig.js +1 -1
  14. package/dist/src/config/sandboxConfig.js.map +1 -1
  15. package/dist/src/config/settings.d.ts +8 -2
  16. package/dist/src/config/settings.js +101 -3
  17. package/dist/src/config/settings.js.map +1 -1
  18. package/dist/src/gemini.js +53 -29
  19. package/dist/src/gemini.js.map +1 -1
  20. package/dist/src/generated/git-commit.d.ts +1 -1
  21. package/dist/src/generated/git-commit.js +1 -1
  22. package/dist/src/nonInteractiveCli.d.ts +1 -1
  23. package/dist/src/nonInteractiveCli.js +12 -3
  24. package/dist/src/nonInteractiveCli.js.map +1 -1
  25. package/dist/src/services/CommandService.d.ts +13 -0
  26. package/dist/src/services/CommandService.js +32 -0
  27. package/dist/src/services/CommandService.js.map +1 -0
  28. package/dist/src/ui/App.d.ts +1 -0
  29. package/dist/src/ui/App.js +138 -26
  30. package/dist/src/ui/App.js.map +1 -1
  31. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  32. package/dist/src/ui/commands/clearCommand.js +15 -0
  33. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  34. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  35. package/dist/src/ui/commands/helpCommand.js +18 -0
  36. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  37. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  38. package/dist/src/ui/commands/memoryCommand.js +81 -0
  39. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  40. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  41. package/dist/src/ui/commands/themeCommand.js +14 -0
  42. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  43. package/dist/src/ui/commands/types.d.ts +63 -0
  44. package/dist/src/{gemini.test.d.ts → ui/commands/types.js} +1 -0
  45. package/dist/src/ui/commands/types.js.map +1 -0
  46. package/dist/src/ui/components/AuthDialog.js +36 -8
  47. package/dist/src/ui/components/AuthDialog.js.map +1 -1
  48. package/dist/src/ui/components/Footer.d.ts +1 -0
  49. package/dist/src/ui/components/Footer.js +3 -2
  50. package/dist/src/ui/components/Footer.js.map +1 -1
  51. package/dist/src/ui/components/Header.d.ts +2 -0
  52. package/dist/src/ui/components/Header.js +3 -3
  53. package/dist/src/ui/components/Header.js.map +1 -1
  54. package/dist/src/ui/components/Help.d.ts +1 -1
  55. package/dist/src/ui/components/Help.js +3 -2
  56. package/dist/src/ui/components/Help.js.map +1 -1
  57. package/dist/src/ui/components/InputPrompt.d.ts +2 -1
  58. package/dist/src/ui/components/InputPrompt.js +153 -155
  59. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  60. package/dist/src/ui/components/LoadingIndicator.js +2 -1
  61. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  62. package/dist/src/ui/components/ThemeDialog.js +18 -17
  63. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  64. package/dist/src/ui/components/messages/CompressionMessage.js +1 -1
  65. package/dist/src/ui/components/shared/MaxSizedBox.js +1 -1
  66. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
  67. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +10 -7
  68. package/dist/src/ui/components/shared/RadioButtonSelect.js +57 -40
  69. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  70. package/dist/src/ui/components/shared/text-buffer.d.ts +2 -1
  71. package/dist/src/ui/components/shared/text-buffer.js +3 -3
  72. package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
  73. package/dist/src/ui/contexts/SessionContext.d.ts +4 -1
  74. package/dist/src/ui/contexts/SessionContext.js +12 -2
  75. package/dist/src/ui/contexts/SessionContext.js.map +1 -1
  76. package/dist/src/ui/hooks/atCommandProcessor.js +5 -7
  77. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  78. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +6 -10
  79. package/dist/src/ui/hooks/slashCommandProcessor.js +221 -129
  80. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  81. package/dist/src/ui/hooks/useAuthCommand.js +12 -2
  82. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -1
  83. package/dist/src/ui/hooks/useCompletion.d.ts +2 -2
  84. package/dist/src/ui/hooks/useCompletion.js +106 -56
  85. package/dist/src/ui/hooks/useCompletion.js.map +1 -1
  86. package/dist/src/ui/hooks/useGeminiStream.d.ts +3 -3
  87. package/dist/src/ui/hooks/useGeminiStream.js +54 -28
  88. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  89. package/dist/src/ui/hooks/useKeypress.js +74 -4
  90. package/dist/src/ui/hooks/useKeypress.js.map +1 -1
  91. package/dist/src/ui/types.d.ts +10 -0
  92. package/dist/src/ui/utils/ConsolePatcher.d.ts +23 -0
  93. package/dist/src/ui/utils/ConsolePatcher.js +42 -0
  94. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  95. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  96. package/dist/src/ui/utils/InlineMarkdownRenderer.js +104 -0
  97. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  98. package/dist/src/ui/utils/MarkdownDisplay.js +30 -101
  99. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  100. package/dist/src/ui/utils/TableRenderer.js +50 -32
  101. package/dist/src/ui/utils/TableRenderer.js.map +1 -1
  102. package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
  103. package/dist/src/ui/utils/clipboardUtils.js +127 -0
  104. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  105. package/dist/src/ui/utils/errorParsing.d.ts +2 -10
  106. package/dist/src/ui/utils/errorParsing.js +34 -23
  107. package/dist/src/ui/utils/errorParsing.js.map +1 -1
  108. package/dist/src/utils/cleanup.d.ts +2 -0
  109. package/dist/src/utils/cleanup.js +15 -0
  110. package/dist/src/utils/cleanup.js.map +1 -1
  111. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +1 -1
  112. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +1 -1
  113. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  114. package/dist/src/utils/userStartupWarnings.js +33 -0
  115. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  116. package/dist/tsconfig.tsbuildinfo +1 -1
  117. package/package.json +8 -9
  118. package/dist/src/gemini.test.js +0 -122
  119. package/dist/src/gemini.test.js.map +0 -1
  120. package/dist/src/ui/App.test.d.ts +0 -6
  121. package/dist/src/ui/App.test.js +0 -299
  122. package/dist/src/ui/App.test.js.map +0 -1
  123. package/dist/src/ui/components/AuthDialog.test.d.ts +0 -6
  124. package/dist/src/ui/components/AuthDialog.test.js +0 -69
  125. package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
  126. package/dist/src/ui/components/ConsolePatcher.d.ts +0 -12
  127. package/dist/src/ui/components/ConsolePatcher.js +0 -40
  128. package/dist/src/ui/components/ConsolePatcher.js.map +0 -1
  129. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +0 -6
  130. package/dist/src/ui/components/HistoryItemDisplay.test.js +0 -81
  131. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +0 -1
  132. package/dist/src/ui/components/InputPrompt.test.d.ts +0 -6
  133. package/dist/src/ui/components/InputPrompt.test.js +0 -154
  134. package/dist/src/ui/components/InputPrompt.test.js.map +0 -1
  135. package/dist/src/ui/components/LoadingIndicator.test.d.ts +0 -6
  136. package/dist/src/ui/components/LoadingIndicator.test.js +0 -141
  137. package/dist/src/ui/components/LoadingIndicator.test.js.map +0 -1
  138. package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +0 -6
  139. package/dist/src/ui/components/ModelStatsDisplay.test.js +0 -217
  140. package/dist/src/ui/components/ModelStatsDisplay.test.js.map +0 -1
  141. package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +0 -6
  142. package/dist/src/ui/components/SessionSummaryDisplay.test.js +0 -60
  143. package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +0 -1
  144. package/dist/src/ui/components/StatsDisplay.test.d.ts +0 -6
  145. package/dist/src/ui/components/StatsDisplay.test.js +0 -275
  146. package/dist/src/ui/components/StatsDisplay.test.js.map +0 -1
  147. package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +0 -6
  148. package/dist/src/ui/components/ToolStatsDisplay.test.js +0 -160
  149. package/dist/src/ui/components/ToolStatsDisplay.test.js.map +0 -1
  150. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +0 -6
  151. package/dist/src/ui/components/messages/DiffRenderer.test.js +0 -239
  152. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +0 -1
  153. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +0 -6
  154. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -37
  155. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +0 -1
  156. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +0 -6
  157. package/dist/src/ui/components/messages/ToolMessage.test.js +0 -116
  158. package/dist/src/ui/components/messages/ToolMessage.test.js.map +0 -1
  159. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +0 -6
  160. package/dist/src/ui/components/shared/MaxSizedBox.test.js +0 -134
  161. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +0 -1
  162. package/dist/src/ui/contexts/SessionContext.test.d.ts +0 -6
  163. package/dist/src/ui/contexts/SessionContext.test.js +0 -96
  164. package/dist/src/ui/contexts/SessionContext.test.js.map +0 -1
  165. package/dist/src/ui/hooks/useGeminiStream.test.d.ts +0 -6
  166. package/dist/src/ui/hooks/useGeminiStream.test.js +0 -775
  167. package/dist/src/ui/hooks/useGeminiStream.test.js.map +0 -1
  168. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +0 -6
  169. package/dist/src/ui/utils/MarkdownDisplay.test.js +0 -176
  170. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +0 -1
@@ -0,0 +1,63 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Config, GitService, Logger } from '@google/gemini-cli-core';
7
+ import { LoadedSettings } from '../../config/settings.js';
8
+ import { UseHistoryManagerReturn } from '../hooks/useHistoryManager.js';
9
+ import { SessionStatsState } from '../contexts/SessionContext.js';
10
+ export interface CommandContext {
11
+ services: {
12
+ config: Config | null;
13
+ settings: LoadedSettings;
14
+ git: GitService | undefined;
15
+ logger: Logger;
16
+ };
17
+ ui: {
18
+ /** Adds a new item to the history display. */
19
+ addItem: UseHistoryManagerReturn['addItem'];
20
+ /** Clears all history items and the console screen. */
21
+ clear: () => void;
22
+ /**
23
+ * Sets the transient debug message displayed in the application footer in debug mode.
24
+ */
25
+ setDebugMessage: (message: string) => void;
26
+ };
27
+ session: {
28
+ stats: SessionStatsState;
29
+ };
30
+ }
31
+ /**
32
+ * The return type for a command action that results in scheduling a tool call.
33
+ */
34
+ export interface ToolActionReturn {
35
+ type: 'tool';
36
+ toolName: string;
37
+ toolArgs: Record<string, unknown>;
38
+ }
39
+ /**
40
+ * The return type for a command action that results in a simple message
41
+ * being displayed to the user.
42
+ */
43
+ export interface MessageActionReturn {
44
+ type: 'message';
45
+ messageType: 'info' | 'error';
46
+ content: string;
47
+ }
48
+ /**
49
+ * The return type for a command action that needs to open a dialog.
50
+ */
51
+ export interface OpenDialogActionReturn {
52
+ type: 'dialog';
53
+ dialog: 'help' | 'theme';
54
+ }
55
+ export type SlashCommandActionReturn = ToolActionReturn | MessageActionReturn | OpenDialogActionReturn;
56
+ export interface SlashCommand {
57
+ name: string;
58
+ altName?: string;
59
+ description?: string;
60
+ action?: (context: CommandContext, args: string) => void | SlashCommandActionReturn | Promise<void | SlashCommandActionReturn>;
61
+ completion?: (context: CommandContext, partialArg: string) => Promise<string[]>;
62
+ subCommands?: SlashCommand[];
63
+ }
@@ -4,3 +4,4 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ui/commands/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -12,16 +12,39 @@ import { SettingScope } from '../../config/settings.js';
12
12
  import { AuthType } from '@google/gemini-cli-core';
13
13
  import { validateAuthMethod } from '../../config/auth.js';
14
14
  export function AuthDialog({ onSelect, settings, initialErrorMessage, }) {
15
- const [errorMessage, setErrorMessage] = useState(initialErrorMessage || null);
15
+ const [errorMessage, setErrorMessage] = useState(initialErrorMessage
16
+ ? initialErrorMessage
17
+ : process.env.GEMINI_API_KEY
18
+ ? 'Existing API key detected (GEMINI_API_KEY). Select "Gemini API Key" option to use it.'
19
+ : null);
16
20
  const items = [
17
- { label: 'Login with Google', value: AuthType.LOGIN_WITH_GOOGLE },
18
- { label: 'Gemini API Key (AI Studio)', value: AuthType.USE_GEMINI },
21
+ {
22
+ label: 'Login with Google',
23
+ value: AuthType.LOGIN_WITH_GOOGLE,
24
+ },
25
+ ...(process.env.CLOUD_SHELL === 'true'
26
+ ? [
27
+ {
28
+ label: 'Use Cloud Shell user credentials',
29
+ value: AuthType.CLOUD_SHELL,
30
+ },
31
+ ]
32
+ : []),
33
+ {
34
+ label: 'Use Gemini API Key',
35
+ value: AuthType.USE_GEMINI,
36
+ },
19
37
  { label: 'Vertex AI', value: AuthType.USE_VERTEX_AI },
20
38
  ];
21
- let initialAuthIndex = items.findIndex((item) => item.value === settings.merged.selectedAuthType);
22
- if (initialAuthIndex === -1) {
23
- initialAuthIndex = 0;
24
- }
39
+ const initialAuthIndex = items.findIndex((item) => {
40
+ if (settings.merged.selectedAuthType) {
41
+ return item.value === settings.merged.selectedAuthType;
42
+ }
43
+ if (process.env.GEMINI_API_KEY) {
44
+ return item.value === AuthType.USE_GEMINI;
45
+ }
46
+ return item.value === AuthType.LOGIN_WITH_GOOGLE;
47
+ });
25
48
  const handleAuthSelect = (authMethod) => {
26
49
  const error = validateAuthMethod(authMethod);
27
50
  if (error) {
@@ -34,6 +57,11 @@ export function AuthDialog({ onSelect, settings, initialErrorMessage, }) {
34
57
  };
35
58
  useInput((_input, key) => {
36
59
  if (key.escape) {
60
+ // Prevent exit if there is an error message.
61
+ // This means they user is not authenticated yet.
62
+ if (errorMessage) {
63
+ return;
64
+ }
37
65
  if (settings.merged.selectedAuthType === undefined) {
38
66
  // Prevent exiting if no auth method is set
39
67
  setErrorMessage('You must select an auth method to proceed. Press Ctrl+C twice to exit.');
@@ -42,6 +70,6 @@ export function AuthDialog({ onSelect, settings, initialErrorMessage, }) {
42
70
  onSelect(undefined, SettingScope.User);
43
71
  }
44
72
  });
45
- return (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", padding: 1, width: "100%", children: [_jsx(Text, { bold: true, children: "Select Auth Method" }), _jsx(RadioButtonSelect, { items: items, initialIndex: initialAuthIndex, onSelect: handleAuthSelect, isFocused: true }), errorMessage && (_jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentRed, children: errorMessage }) })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.Gray, children: "(Use Enter to select)" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: "Terms of Services and Privacy Notice for Gemini CLI" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentBlue, children: 'https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-privacy.md' }) })] }));
73
+ return (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", padding: 1, width: "100%", children: [_jsx(Text, { bold: true, children: "Get started" }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: "How would you like to authenticate for this project?" }) }), _jsx(Box, { marginTop: 1, children: _jsx(RadioButtonSelect, { items: items, initialIndex: initialAuthIndex, onSelect: handleAuthSelect, isFocused: true }) }), errorMessage && (_jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentRed, children: errorMessage }) })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.Gray, children: "(Use Enter to select)" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { children: "Terms of Services and Privacy Notice for Gemini CLI" }) }), _jsx(Box, { marginTop: 1, children: _jsx(Text, { color: Colors.AccentBlue, children: 'https://github.com/google-gemini/gemini-cli/blob/main/docs/tos-privacy.md' }) })] }));
46
74
  }
47
75
  //# sourceMappingURL=AuthDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AuthDialog.js","sourceRoot":"","sources":["../../../../src/ui/components/AuthDialog.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAkB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,UAAU,UAAU,CAAC,EACz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C1B,SAAS,EAAE,IAAI,GACf,GACE,EACL,YAAY,IAAI,CACf,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,YAAG,YAAY,GAAQ,GAChD,CACP,EACD,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,sCAA8B,GAClD,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,sEAA2D,GAC5D,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,YAE1B,2EAA2E,GAExE,GACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -15,6 +15,7 @@ interface FooterProps {
15
15
  showErrorDetails: boolean;
16
16
  showMemoryUsage?: boolean;
17
17
  promptTokenCount: number;
18
+ nightly: boolean;
18
19
  }
19
20
  export declare const Footer: React.FC<FooterProps>;
20
21
  export {};
@@ -4,10 +4,11 @@ import { Colors } from '../colors.js';
4
4
  import { shortenPath, tildeifyPath, tokenLimit } from '@google/gemini-cli-core';
5
5
  import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js';
6
6
  import process from 'node:process';
7
+ import Gradient from 'ink-gradient';
7
8
  import { MemoryUsageDisplay } from './MemoryUsageDisplay.js';
8
- export const Footer = ({ model, targetDir, branchName, debugMode, debugMessage, corgiMode, errorCount, showErrorDetails, showMemoryUsage, promptTokenCount, }) => {
9
+ export const Footer = ({ model, targetDir, branchName, debugMode, debugMessage, corgiMode, errorCount, showErrorDetails, showMemoryUsage, promptTokenCount, nightly, }) => {
9
10
  const limit = tokenLimit(model);
10
11
  const percentage = promptTokenCount / limit;
11
- return (_jsxs(Box, { marginTop: 1, justifyContent: "space-between", width: "100%", children: [_jsxs(Box, { children: [_jsxs(Text, { color: Colors.LightBlue, children: [shortenPath(tildeifyPath(targetDir), 70), branchName && _jsxs(Text, { color: Colors.Gray, children: [" (", branchName, "*)"] })] }), debugMode && (_jsx(Text, { color: Colors.AccentRed, children: ' ' + (debugMessage || '--debug') }))] }), _jsx(Box, { flexGrow: 1, alignItems: "center", justifyContent: "center", display: "flex", children: process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? (_jsx(Text, { color: "green", children: process.env.SANDBOX.replace(/^gemini-(?:cli-)?/, '') })) : process.env.SANDBOX === 'sandbox-exec' ? (_jsxs(Text, { color: Colors.AccentYellow, children: ["MacOS Seatbelt", ' ', _jsxs(Text, { color: Colors.Gray, children: ["(", process.env.SEATBELT_PROFILE, ")"] })] })) : (_jsxs(Text, { color: Colors.AccentRed, children: ["no sandbox ", _jsx(Text, { color: Colors.Gray, children: "(see /docs)" })] })) }), _jsxs(Box, { alignItems: "center", children: [_jsxs(Text, { color: Colors.AccentBlue, children: [' ', model, ' ', _jsxs(Text, { color: Colors.Gray, children: ["(", ((1 - percentage) * 100).toFixed(0), "% context left)"] })] }), corgiMode && (_jsxs(Text, { children: [_jsx(Text, { color: Colors.Gray, children: "| " }), _jsx(Text, { color: Colors.AccentRed, children: "\u25BC" }), _jsx(Text, { color: Colors.Foreground, children: "(\u00B4" }), _jsx(Text, { color: Colors.AccentRed, children: "\u1D25" }), _jsx(Text, { color: Colors.Foreground, children: "`)" }), _jsx(Text, { color: Colors.AccentRed, children: "\u25BC " })] })), !showErrorDetails && errorCount > 0 && (_jsxs(Box, { children: [_jsx(Text, { color: Colors.Gray, children: "| " }), _jsx(ConsoleSummaryDisplay, { errorCount: errorCount })] })), showMemoryUsage && _jsx(MemoryUsageDisplay, {})] })] }));
12
+ return (_jsxs(Box, { marginTop: 1, justifyContent: "space-between", width: "100%", children: [_jsxs(Box, { children: [nightly ? (_jsx(Gradient, { colors: Colors.GradientColors, children: _jsxs(Text, { children: [shortenPath(tildeifyPath(targetDir), 70), branchName && _jsxs(Text, { children: [" (", branchName, "*)"] })] }) })) : (_jsxs(Text, { color: Colors.LightBlue, children: [shortenPath(tildeifyPath(targetDir), 70), branchName && _jsxs(Text, { color: Colors.Gray, children: [" (", branchName, "*)"] })] })), debugMode && (_jsx(Text, { color: Colors.AccentRed, children: ' ' + (debugMessage || '--debug') }))] }), _jsx(Box, { flexGrow: 1, alignItems: "center", justifyContent: "center", display: "flex", children: process.env.SANDBOX && process.env.SANDBOX !== 'sandbox-exec' ? (_jsx(Text, { color: "green", children: process.env.SANDBOX.replace(/^gemini-(?:cli-)?/, '') })) : process.env.SANDBOX === 'sandbox-exec' ? (_jsxs(Text, { color: Colors.AccentYellow, children: ["MacOS Seatbelt", ' ', _jsxs(Text, { color: Colors.Gray, children: ["(", process.env.SEATBELT_PROFILE, ")"] })] })) : (_jsxs(Text, { color: Colors.AccentRed, children: ["no sandbox ", _jsx(Text, { color: Colors.Gray, children: "(see /docs)" })] })) }), _jsxs(Box, { alignItems: "center", children: [_jsxs(Text, { color: Colors.AccentBlue, children: [' ', model, ' ', _jsxs(Text, { color: Colors.Gray, children: ["(", ((1 - percentage) * 100).toFixed(0), "% context left)"] })] }), corgiMode && (_jsxs(Text, { children: [_jsx(Text, { color: Colors.Gray, children: "| " }), _jsx(Text, { color: Colors.AccentRed, children: "\u25BC" }), _jsx(Text, { color: Colors.Foreground, children: "(\u00B4" }), _jsx(Text, { color: Colors.AccentRed, children: "\u1D25" }), _jsx(Text, { color: Colors.Foreground, children: "`)" }), _jsx(Text, { color: Colors.AccentRed, children: "\u25BC " })] })), !showErrorDetails && errorCount > 0 && (_jsxs(Box, { children: [_jsx(Text, { color: Colors.Gray, children: "| " }), _jsx(ConsoleSummaryDisplay, { errorCount: errorCount })] })), showMemoryUsage && _jsx(MemoryUsageDisplay, {})] })] }));
12
13
  };
13
14
  //# sourceMappingURL=Footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../src/ui/components/Footer.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE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KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,4BAAoB,IAClD,CACR,GACG,EAGN,MAAC,GAAG,IAAC,UAAU,EAAC,QAAQ,aACtB,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC3B,GAAG,EACH,KAAK,EAAE,GAAG,EACX,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,kBACpB,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,uBAChC,IACF,EACN,SAAS,IAAI,CACZ,MAAC,IAAI,eACH,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,mBAAW,EACnC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,uBAAU,EACvC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,wBAAW,EACzC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,uBAAU,EACvC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,mBAAW,EACzC,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,wBAAW,IACnC,CACR,EACA,CAAC,gBAAgB,IAAI,UAAU,GAAG,CAAC,IAAI,CACtC,MAAC,GAAG,eACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,mBAAW,EACnC,KAAC,qBAAqB,IAAC,UAAU,EAAE,UAAU,GAAI,IAC7C,CACP,EACA,eAAe,IAAI,KAAC,kBAAkB,KAAG,IACtC,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -7,6 +7,8 @@ import React from 'react';
7
7
  interface HeaderProps {
8
8
  customAsciiArt?: string;
9
9
  terminalWidth: number;
10
+ version: string;
11
+ nightly: boolean;
10
12
  }
11
13
  export declare const Header: React.FC<HeaderProps>;
12
14
  export {};
@@ -1,10 +1,10 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Box, Text } from 'ink';
3
3
  import Gradient from 'ink-gradient';
4
4
  import { Colors } from '../colors.js';
5
5
  import { shortAsciiLogo, longAsciiLogo } from './AsciiArt.js';
6
6
  import { getAsciiArtWidth } from '../utils/textUtils.js';
7
- export const Header = ({ customAsciiArt, terminalWidth, }) => {
7
+ export const Header = ({ customAsciiArt, terminalWidth, version, nightly, }) => {
8
8
  let displayTitle;
9
9
  const widthOfLongLogo = getAsciiArtWidth(longAsciiLogo);
10
10
  if (customAsciiArt) {
@@ -15,6 +15,6 @@ export const Header = ({ customAsciiArt, terminalWidth, }) => {
15
15
  terminalWidth >= widthOfLongLogo ? longAsciiLogo : shortAsciiLogo;
16
16
  }
17
17
  const artWidth = getAsciiArtWidth(displayTitle);
18
- return (_jsx(Box, { marginBottom: 1, alignItems: "flex-start", width: artWidth, flexShrink: 0, children: Colors.GradientColors ? (_jsx(Gradient, { colors: Colors.GradientColors, children: _jsx(Text, { children: displayTitle }) })) : (_jsx(Text, { children: displayTitle })) }));
18
+ return (_jsxs(Box, { marginBottom: 1, alignItems: "flex-start", width: artWidth, flexShrink: 0, flexDirection: "column", children: [Colors.GradientColors ? (_jsx(Gradient, { colors: Colors.GradientColors, children: _jsx(Text, { children: displayTitle }) })) : (_jsx(Text, { children: displayTitle })), nightly && (_jsx(Box, { width: "100%", flexDirection: "row", justifyContent: "flex-end", children: _jsx(Gradient, { colors: Colors.GradientColors, children: _jsxs(Text, { children: ["v", version] }) }) }))] }));
19
19
  };
20
20
  //# sourceMappingURL=Header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../../src/ui/components/Header.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,M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MAAM,uBAAuB,CAAC;AASzD,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAC5C,cAAc,EACd,aAAa,EACb,OAAO,EACP,OAAO,GACR,EAAE,EAAE;IACH,IAAI,YAAY,CAAC;IACjB,MAAM,eAAe,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAExD,IAAI,cAAc,EAAE,CAAC;QACnB,YAAY,GAAG,cAAc,CAAC;IAChC,CAAC;SAAM,CAAC;QACN,YAAY;YACV,aAAa,IAAI,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC;IACtE,CAAC;IAED,MAAM,QAAQ,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAEhD,OAAO,CACL,MAAC,GAAG,IACF,YAAY,EAAE,CAAC,EACf,UAAU,EAAC,YAAY,EACvB,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,CAAC,EACb,aAAa,EAAC,QAAQ,aAErB,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CACvB,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,CAAC,cAAc,YACrC,KAAC,IAAI,cAAE,YAAY,GAAQ,GAClB,CACZ,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,cAAE,YAAY,GAAQ,CAC5B,EACA,OAAO,IAAI,CACV,KAAC,GAAG,IAAC,KAAK,EAAC,MAAM,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,EAAC,UAAU,YAC7D,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,CAAC,cAAc,YACrC,MAAC,IAAI,oBAAG,OAAO,IAAQ,GACd,GACP,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import React from 'react';
7
- import { SlashCommand } from '../hooks/slashCommandProcessor.js';
7
+ import { SlashCommand } from '../commands/types.js';
8
8
  interface Help {
9
9
  commands: SlashCommand[];
10
10
  }
@@ -3,7 +3,8 @@ import { Box, Text } from 'ink';
3
3
  import { Colors } from '../colors.js';
4
4
  export const Help = ({ commands }) => (_jsxs(Box, { flexDirection: "column", marginBottom: 1, borderColor: Colors.Gray, borderStyle: "round", padding: 1, children: [_jsx(Text, { bold: true, color: Colors.Foreground, children: "Basics:" }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Add context" }), ": Use", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "@" }), ' ', "to specify files for context (e.g.,", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "@src/myFile.ts" }), ") to target specific files or folders."] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Shell mode" }), ": Execute shell commands via", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "!" }), ' ', "(e.g.,", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "!npm run start" }), ") or use natural language (e.g.", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "start server" }), ")."] }), _jsx(Box, { height: 1 }), _jsx(Text, { bold: true, color: Colors.Foreground, children: "Commands:" }), commands
5
5
  .filter((command) => command.description)
6
- .map((command) => (_jsxs(Text, { color: Colors.Foreground, children: [_jsxs(Text, { bold: true, color: Colors.AccentPurple, children: [' ', "/", command.name] }), command.description && ' - ' + command.description] }, command.name))), _jsxs(Text, { color: Colors.Foreground, children: [_jsxs(Text, { bold: true, color: Colors.AccentPurple, children: [' ', "!", ' '] }), "- shell command"] }), _jsx(Box, { height: 1 }), _jsx(Text, { bold: true, color: Colors.Foreground, children: "Keyboard Shortcuts:" }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Enter" }), ' ', "- Send message"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: process.platform === 'win32' ? 'Ctrl+Enter' : 'Ctrl+J' }), ' ', process.platform === 'linux'
6
+ .map((command) => (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { color: Colors.Foreground, children: [_jsxs(Text, { bold: true, color: Colors.AccentPurple, children: [' ', "/", command.name] }), command.description && ' - ' + command.description] }), command.subCommands &&
7
+ command.subCommands.map((subCommand) => (_jsxs(Text, { color: Colors.Foreground, children: [_jsxs(Text, { bold: true, color: Colors.AccentPurple, children: [' ', subCommand.name] }), subCommand.description && ' - ' + subCommand.description] }, subCommand.name)))] }, command.name))), _jsxs(Text, { color: Colors.Foreground, children: [_jsxs(Text, { bold: true, color: Colors.AccentPurple, children: [' ', "!", ' '] }), "- shell command"] }), _jsx(Box, { height: 1 }), _jsx(Text, { bold: true, color: Colors.Foreground, children: "Keyboard Shortcuts:" }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Enter" }), ' ', "- Send message"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: process.platform === 'win32' ? 'Ctrl+Enter' : 'Ctrl+J' }), ' ', process.platform === 'linux'
7
8
  ? '- New line (Alt+Enter works for certain linux distros)'
8
- : '- New line'] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Up/Down" }), ' ', "- Cycle through your prompt history"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Alt+Left/Right" }), ' ', "- Jump through words in the input"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Shift+Tab" }), ' ', "- Toggle auto-accepting edits"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Esc" }), ' ', "- Cancel operation"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Ctrl+C" }), ' ', "- Quit application"] })] }));
9
+ : '- New line'] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Up/Down" }), ' ', "- Cycle through your prompt history"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Alt+Left/Right" }), ' ', "- Jump through words in the input"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Shift+Tab" }), ' ', "- Toggle auto-accepting edits"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Ctrl+Y" }), ' ', "- Toggle YOLO mode"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Esc" }), ' ', "- Cancel operation"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Ctrl+C" }), ' ', "- Quit application"] })] }));
9
10
  //# sourceMappingURL=Help.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Help.js","sourceRoot":"","sources":["../../../../src/ui/components/Help.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAOtC,MAAM,CAAC,MAAM,IAAI,GAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACpD,MAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,YAAY,EAAE,CAAC,EACf,WAAW,EAAE,MAAM,CAAC,IAAI,EACxB,WAAW,EAAC,OAAO,EACnB,OAAO,EAAE,CAAC,aAGV,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,UAAU,wBAE5B,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,I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B,EAAC,GAAG,0BAEN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,oBAE9B,EAAC,GAAG,0BAEN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,uBAE9B,EAAC,GAAG,0BAEN,IACH,CACP,CAAC"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import React from 'react';
7
7
  import { TextBuffer } from './shared/text-buffer.js';
8
- import { SlashCommand } from '../hooks/slashCommandProcessor.js';
8
+ import { CommandContext, SlashCommand } from '../commands/types.js';
9
9
  import { Config } from '@google/gemini-cli-core';
10
10
  export interface InputPromptProps {
11
11
  buffer: TextBuffer;
@@ -14,6 +14,7 @@ export interface InputPromptProps {
14
14
  onClearScreen: () => void;
15
15
  config: Config;
16
16
  slashCommands: SlashCommand[];
17
+ commandContext: CommandContext;
17
18
  placeholder?: string;
18
19
  focus?: boolean;
19
20
  inputWidth: number;