@machina.ai/cell-cli 1.0.13-rc8 → 1.0.17-rc1

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 (235) hide show
  1. package/dist/package.json +7 -4
  2. package/dist/src/config/config.d.ts +5 -2
  3. package/dist/src/config/config.js +57 -39
  4. package/dist/src/config/config.js.map +1 -1
  5. package/dist/src/config/extension.d.ts +1 -0
  6. package/dist/src/config/extension.js +4 -0
  7. package/dist/src/config/extension.js.map +1 -1
  8. package/dist/src/config/settings.d.ts +17 -1
  9. package/dist/src/config/settings.js +88 -23
  10. package/dist/src/config/settings.js.map +1 -1
  11. package/dist/src/gemini.d.ts +3 -0
  12. package/dist/src/gemini.js +53 -32
  13. package/dist/src/gemini.js.map +1 -1
  14. package/dist/src/generated/git-commit.d.ts +1 -1
  15. package/dist/src/generated/git-commit.js +2 -2
  16. package/dist/src/generated/git-commit.js.map +1 -1
  17. package/dist/src/nonInteractiveCli.js +15 -40
  18. package/dist/src/nonInteractiveCli.js.map +1 -1
  19. package/dist/src/patches/is-in-ci.d.ts +7 -0
  20. package/dist/src/patches/is-in-ci.js +15 -0
  21. package/dist/src/patches/is-in-ci.js.map +1 -0
  22. package/dist/src/services/BuiltinCommandLoader.js +9 -0
  23. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  24. package/dist/src/services/CommandService.d.ts +8 -4
  25. package/dist/src/services/CommandService.js +24 -8
  26. package/dist/src/services/CommandService.js.map +1 -1
  27. package/dist/src/services/FileCommandLoader.d.ts +15 -3
  28. package/dist/src/services/FileCommandLoader.js +113 -38
  29. package/dist/src/services/FileCommandLoader.js.map +1 -1
  30. package/dist/src/services/McpPromptLoader.d.ts +25 -0
  31. package/dist/src/services/McpPromptLoader.js +192 -0
  32. package/dist/src/services/McpPromptLoader.js.map +1 -0
  33. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +21 -0
  34. package/dist/src/services/prompt-processors/argumentProcessor.js +28 -0
  35. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
  36. package/dist/src/services/prompt-processors/shellProcessor.d.ts +32 -0
  37. package/dist/src/services/prompt-processors/shellProcessor.js +77 -0
  38. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  39. package/dist/src/services/prompt-processors/types.d.ts +38 -0
  40. package/dist/src/services/prompt-processors/types.js +14 -0
  41. package/dist/src/services/prompt-processors/types.js.map +1 -0
  42. package/dist/src/ui/App.js +105 -52
  43. package/dist/src/ui/App.js.map +1 -1
  44. package/dist/src/ui/colors.js +6 -0
  45. package/dist/src/ui/colors.js.map +1 -1
  46. package/dist/src/ui/commands/chatCommand.js +45 -2
  47. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  48. package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
  49. package/dist/src/ui/commands/directoryCommand.js +136 -0
  50. package/dist/src/ui/commands/directoryCommand.js.map +1 -0
  51. package/dist/src/ui/commands/helpCommand.js +7 -6
  52. package/dist/src/ui/commands/helpCommand.js.map +1 -1
  53. package/dist/src/ui/commands/ideCommand.js +113 -111
  54. package/dist/src/ui/commands/ideCommand.js.map +1 -1
  55. package/dist/src/ui/commands/initCommand.d.ts +7 -0
  56. package/dist/src/ui/commands/initCommand.js +76 -0
  57. package/dist/src/ui/commands/initCommand.js.map +1 -0
  58. package/dist/src/ui/commands/mcpCommand.js +240 -26
  59. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  60. package/dist/src/ui/commands/memoryCommand.js +9 -4
  61. package/dist/src/ui/commands/memoryCommand.js.map +1 -1
  62. package/dist/src/ui/commands/setupGithubCommand.d.ts +7 -0
  63. package/dist/src/ui/commands/setupGithubCommand.js +48 -0
  64. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
  65. package/dist/src/ui/commands/types.d.ts +30 -3
  66. package/dist/src/ui/commands/types.js +1 -0
  67. package/dist/src/ui/commands/types.js.map +1 -1
  68. package/dist/src/ui/commands/vimCommand.d.ts +7 -0
  69. package/dist/src/ui/commands/vimCommand.js +23 -0
  70. package/dist/src/ui/commands/vimCommand.js.map +1 -0
  71. package/dist/src/ui/components/AsciiArt.d.ts +2 -2
  72. package/dist/src/ui/components/AsciiArt.js +2 -2
  73. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +2 -2
  74. package/dist/src/ui/components/ContextSummaryDisplay.js +12 -12
  75. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  76. package/dist/src/ui/components/DebugProfiler.d.ts +6 -0
  77. package/dist/src/ui/components/DebugProfiler.js +26 -0
  78. package/dist/src/ui/components/DebugProfiler.js.map +1 -0
  79. package/dist/src/ui/components/Footer.d.ts +1 -0
  80. package/dist/src/ui/components/Footer.js +4 -3
  81. package/dist/src/ui/components/Footer.js.map +1 -1
  82. package/dist/src/ui/components/Header.js +1 -1
  83. package/dist/src/ui/components/Header.js.map +1 -1
  84. package/dist/src/ui/components/Help.js +2 -2
  85. package/dist/src/ui/components/Help.js.map +1 -1
  86. package/dist/src/ui/components/HistoryItemDisplay.d.ts +2 -0
  87. package/dist/src/ui/components/HistoryItemDisplay.js +2 -1
  88. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  89. package/dist/src/ui/components/IDEContextDetailDisplay.d.ts +12 -0
  90. package/dist/src/ui/components/IDEContextDetailDisplay.js +12 -0
  91. package/dist/src/ui/components/IDEContextDetailDisplay.js.map +1 -0
  92. package/dist/src/ui/components/InputPrompt.d.ts +2 -0
  93. package/dist/src/ui/components/InputPrompt.js +92 -102
  94. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  95. package/dist/src/ui/components/PrepareLabel.d.ts +15 -0
  96. package/dist/src/ui/components/PrepareLabel.js +16 -0
  97. package/dist/src/ui/components/PrepareLabel.js.map +1 -0
  98. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
  99. package/dist/src/ui/components/ShellConfirmationDialog.js +44 -0
  100. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
  101. package/dist/src/ui/components/SuggestionsDisplay.d.ts +1 -0
  102. package/dist/src/ui/components/SuggestionsDisplay.js +3 -3
  103. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
  104. package/dist/src/ui/components/ThemeDialog.js +10 -5
  105. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  106. package/dist/src/ui/components/Tips.js +1 -1
  107. package/dist/src/ui/components/Tips.js.map +1 -1
  108. package/dist/src/ui/components/messages/DiffRenderer.js +12 -11
  109. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
  110. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +19 -7
  111. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  112. package/dist/src/ui/components/messages/UserMessage.js +4 -1
  113. package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
  114. package/dist/src/ui/components/shared/text-buffer.d.ts +273 -3
  115. package/dist/src/ui/components/shared/text-buffer.js +420 -79
  116. package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
  117. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
  118. package/dist/src/ui/components/shared/vim-buffer-actions.js +565 -0
  119. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
  120. package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
  121. package/dist/src/ui/contexts/VimModeContext.js +48 -0
  122. package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
  123. package/dist/src/ui/editors/editorSettingsManager.js +6 -13
  124. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -1
  125. package/dist/src/ui/hooks/atCommandProcessor.js +67 -50
  126. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  127. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +1 -0
  128. package/dist/src/ui/hooks/shellCommandProcessor.js +139 -196
  129. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  130. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +7 -3
  131. package/dist/src/ui/hooks/slashCommandProcessor.js +203 -120
  132. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  133. package/dist/src/ui/hooks/useCommandCompletion.d.ts +24 -0
  134. package/dist/src/ui/hooks/useCommandCompletion.js +453 -0
  135. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
  136. package/dist/src/ui/hooks/useCompletion.d.ts +5 -3
  137. package/dist/src/ui/hooks/useCompletion.js +7 -312
  138. package/dist/src/ui/hooks/useCompletion.js.map +1 -1
  139. package/dist/src/ui/hooks/useConsoleMessages.js +53 -37
  140. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -1
  141. package/dist/src/ui/hooks/useGeminiStream.d.ts +1 -1
  142. package/dist/src/ui/hooks/useGeminiStream.js +6 -5
  143. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  144. package/dist/src/ui/hooks/useInputHistory.d.ts +1 -1
  145. package/dist/src/ui/hooks/useKeypress.js +5 -2
  146. package/dist/src/ui/hooks/useKeypress.js.map +1 -1
  147. package/dist/src/ui/hooks/usePhraseCycler.js +1 -0
  148. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  149. package/dist/src/ui/hooks/useReactToolScheduler.js +0 -1
  150. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
  151. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
  152. package/dist/src/ui/hooks/useReverseSearchCompletion.js +54 -0
  153. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
  154. package/dist/src/ui/hooks/useShellHistory.d.ts +4 -2
  155. package/dist/src/ui/hooks/useShellHistory.js +30 -7
  156. package/dist/src/ui/hooks/useShellHistory.js.map +1 -1
  157. package/dist/src/ui/hooks/vim.d.ts +28 -0
  158. package/dist/src/ui/hooks/vim.js +630 -0
  159. package/dist/src/ui/hooks/vim.js.map +1 -0
  160. package/dist/src/ui/themes/ansi-light.js +2 -0
  161. package/dist/src/ui/themes/ansi-light.js.map +1 -1
  162. package/dist/src/ui/themes/ansi.js +2 -0
  163. package/dist/src/ui/themes/ansi.js.map +1 -1
  164. package/dist/src/ui/themes/atom-one-dark.js +2 -0
  165. package/dist/src/ui/themes/atom-one-dark.js.map +1 -1
  166. package/dist/src/ui/themes/ayu-light.js +3 -1
  167. package/dist/src/ui/themes/ayu-light.js.map +1 -1
  168. package/dist/src/ui/themes/ayu.js +3 -1
  169. package/dist/src/ui/themes/ayu.js.map +1 -1
  170. package/dist/src/ui/themes/dracula.js +2 -0
  171. package/dist/src/ui/themes/dracula.js.map +1 -1
  172. package/dist/src/ui/themes/github-dark.js +2 -0
  173. package/dist/src/ui/themes/github-dark.js.map +1 -1
  174. package/dist/src/ui/themes/github-light.js +2 -0
  175. package/dist/src/ui/themes/github-light.js.map +1 -1
  176. package/dist/src/ui/themes/googlecode.js +2 -0
  177. package/dist/src/ui/themes/googlecode.js.map +1 -1
  178. package/dist/src/ui/themes/no-color.js +2 -0
  179. package/dist/src/ui/themes/no-color.js.map +1 -1
  180. package/dist/src/ui/themes/shades-of-purple.js +2 -0
  181. package/dist/src/ui/themes/shades-of-purple.js.map +1 -1
  182. package/dist/src/ui/themes/theme-manager.js +10 -1
  183. package/dist/src/ui/themes/theme-manager.js.map +1 -1
  184. package/dist/src/ui/themes/theme.d.ts +3 -0
  185. package/dist/src/ui/themes/theme.js +28 -3
  186. package/dist/src/ui/themes/theme.js.map +1 -1
  187. package/dist/src/ui/themes/xcode.js +2 -0
  188. package/dist/src/ui/themes/xcode.js.map +1 -1
  189. package/dist/src/ui/types.d.ts +10 -1
  190. package/dist/src/ui/types.js +1 -0
  191. package/dist/src/ui/types.js.map +1 -1
  192. package/dist/src/ui/utils/CodeColorizer.d.ts +1 -0
  193. package/dist/src/ui/utils/CodeColorizer.js +17 -5
  194. package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
  195. package/dist/src/ui/utils/textUtils.d.ts +0 -8
  196. package/dist/src/ui/utils/textUtils.js +0 -22
  197. package/dist/src/ui/utils/textUtils.js.map +1 -1
  198. package/dist/src/ui/utils/updateCheck.d.ts +7 -1
  199. package/dist/src/ui/utils/updateCheck.js +46 -8
  200. package/dist/src/ui/utils/updateCheck.js.map +1 -1
  201. package/dist/src/utils/events.d.ts +11 -0
  202. package/dist/src/utils/events.js +13 -0
  203. package/dist/src/utils/events.js.map +1 -0
  204. package/dist/src/utils/gitUtils.d.ts +10 -0
  205. package/dist/src/utils/gitUtils.js +24 -0
  206. package/dist/src/utils/gitUtils.js.map +1 -0
  207. package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
  208. package/dist/src/utils/handleAutoUpdate.js +101 -0
  209. package/dist/src/utils/handleAutoUpdate.js.map +1 -0
  210. package/dist/src/utils/installationInfo.d.ts +23 -0
  211. package/dist/src/utils/installationInfo.js +154 -0
  212. package/dist/src/utils/installationInfo.js.map +1 -0
  213. package/dist/src/utils/resolvePath.d.ts +6 -0
  214. package/dist/src/utils/resolvePath.js +21 -0
  215. package/dist/src/utils/resolvePath.js.map +1 -0
  216. package/dist/src/utils/sandbox-macos-permissive-closed.sb +6 -0
  217. package/dist/src/utils/sandbox-macos-permissive-open.sb +6 -0
  218. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +6 -0
  219. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +6 -0
  220. package/dist/src/utils/sandbox-macos-restrictive-open.sb +6 -0
  221. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +6 -0
  222. package/dist/src/utils/sandbox.d.ts +2 -2
  223. package/dist/src/utils/sandbox.js +39 -11
  224. package/dist/src/utils/sandbox.js.map +1 -1
  225. package/dist/src/utils/spawnWrapper.d.ts +7 -0
  226. package/dist/src/utils/spawnWrapper.js +8 -0
  227. package/dist/src/utils/spawnWrapper.js.map +1 -0
  228. package/dist/src/utils/updateEventEmitter.d.ts +11 -0
  229. package/dist/src/utils/updateEventEmitter.js +12 -0
  230. package/dist/src/utils/updateEventEmitter.js.map +1 -0
  231. package/dist/src/validateNonInterActiveAuth.d.ts +7 -0
  232. package/dist/src/validateNonInterActiveAuth.js +37 -0
  233. package/dist/src/validateNonInterActiveAuth.js.map +1 -0
  234. package/dist/tsconfig.tsbuildinfo +1 -1
  235. package/package.json +7 -4
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import React from 'react';
7
- import { type OpenFiles, type MCPServerConfig } from '@machina.ai/cell-cli-core';
7
+ import { type IdeContext, type MCPServerConfig } from '@machina.ai/cell-cli-core';
8
8
  interface ContextSummaryDisplayProps {
9
9
  geminiMdFileCount: number;
10
10
  contextFileNames: string[];
@@ -14,7 +14,7 @@ interface ContextSummaryDisplayProps {
14
14
  extensionName: string;
15
15
  }>;
16
16
  showToolDescriptions?: boolean;
17
- openFiles?: OpenFiles;
17
+ ideContext?: IdeContext;
18
18
  }
19
19
  export declare const ContextSummaryDisplay: React.FC<ContextSummaryDisplayProps>;
20
20
  export {};
@@ -1,29 +1,29 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Text } from 'ink';
3
3
  import { Colors } from '../colors.js';
4
- import path from 'path';
5
- export const ContextSummaryDisplay = ({ geminiMdFileCount, contextFileNames, mcpServers, blockedMcpServers, showToolDescriptions, openFiles, }) => {
4
+ export const ContextSummaryDisplay = ({ geminiMdFileCount, contextFileNames, mcpServers, blockedMcpServers, showToolDescriptions, ideContext, }) => {
6
5
  const mcpServerCount = Object.keys(mcpServers || {}).length;
7
6
  const blockedMcpServerCount = blockedMcpServers?.length || 0;
7
+ const openFileCount = ideContext?.workspaceState?.openFiles?.length ?? 0;
8
8
  if (geminiMdFileCount === 0 &&
9
9
  mcpServerCount === 0 &&
10
10
  blockedMcpServerCount === 0 &&
11
- !openFiles?.activeFile) {
11
+ openFileCount === 0) {
12
12
  return _jsx(Text, { children: " " }); // Render an empty space to reserve height
13
13
  }
14
- const activeFileText = (() => {
15
- if (!openFiles?.activeFile) {
14
+ const openFilesText = (() => {
15
+ if (openFileCount === 0) {
16
16
  return '';
17
17
  }
18
- return `Open File (${path.basename(openFiles.activeFile)})`;
18
+ return `${openFileCount} open file${openFileCount > 1 ? 's' : ''} (ctrl+e to view)`;
19
19
  })();
20
20
  const geminiMdText = (() => {
21
21
  if (geminiMdFileCount === 0) {
22
22
  return '';
23
23
  }
24
24
  const allNamesTheSame = new Set(contextFileNames).size < 2;
25
- const name = allNamesTheSame ? contextFileNames[0] : 'Context';
26
- return `${geminiMdFileCount} ${name} File${geminiMdFileCount > 1 ? 's' : ''}`;
25
+ const name = allNamesTheSame ? contextFileNames[0] : 'context';
26
+ return `${geminiMdFileCount} ${name} file${geminiMdFileCount > 1 ? 's' : ''}`;
27
27
  })();
28
28
  const mcpText = (() => {
29
29
  if (mcpServerCount === 0 && blockedMcpServerCount === 0) {
@@ -31,12 +31,12 @@ export const ContextSummaryDisplay = ({ geminiMdFileCount, contextFileNames, mcp
31
31
  }
32
32
  const parts = [];
33
33
  if (mcpServerCount > 0) {
34
- parts.push(`${mcpServerCount} MCP Server${mcpServerCount > 1 ? 's' : ''}`);
34
+ parts.push(`${mcpServerCount} MCP server${mcpServerCount > 1 ? 's' : ''}`);
35
35
  }
36
36
  if (blockedMcpServerCount > 0) {
37
37
  let blockedText = `${blockedMcpServerCount} Blocked`;
38
38
  if (mcpServerCount === 0) {
39
- blockedText += ` MCP Server${blockedMcpServerCount > 1 ? 's' : ''}`;
39
+ blockedText += ` MCP server${blockedMcpServerCount > 1 ? 's' : ''}`;
40
40
  }
41
41
  parts.push(blockedText);
42
42
  }
@@ -44,8 +44,8 @@ export const ContextSummaryDisplay = ({ geminiMdFileCount, contextFileNames, mcp
44
44
  })();
45
45
  let summaryText = 'Using: ';
46
46
  const summaryParts = [];
47
- if (activeFileText) {
48
- summaryParts.push(activeFileText);
47
+ if (openFilesText) {
48
+ summaryParts.push(openFilesText);
49
49
  }
50
50
  if (geminiMdText) {
51
51
  summaryParts.push(geminiMdText);
@@ -1 +1 @@
1
- {"version":3,"file":"ContextSummaryDisplay.js","sourceRo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AC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,WAAW,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAExC,iDAAiD;IACjD,IAAI,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrD,IAAI,oBAAoB,EAAE,CAAC;YACzB,WAAW,IAAI,qBAAqB,CAAC;QACvC,CAAC;aAAM,CAAC;YACN,WAAW,IAAI,mBAAmB,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAAG,WAAW,GAAQ,CAAC;AACxD,CAAC,CAAC"}
1
+ {"version":3,"file":"ContextSummaryDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/ContextSummaryDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAetC,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,GACX,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAC5D,MAAM,qBAAqB,GAAG,iBAAiB,EAAE,MAAM,IAAI,CAAC,CAAC;IAC7D,MAAM,aAAa,GAAG,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC,CAAC;IAEzE,IACE,iBAAiB,KAAK,CAAC;QACvB,cAAc,KAAK,CAAC;QACpB,qBAAqB,KAAK,CAAC;QAC3B,aAAa,KAAK,CAAC,EACnB,CAAC;QACD,OAAO,KAAC,IAAI,oBAAS,CAAC,CAAC,0CAA0C;IACnE,CAAC;IAED,MAAM,aAAa,G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IAAI,cAAc,qBAAqB,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;YACtE,CAAC;YACD,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,EAAE,CAAC;IAEL,IAAI,WAAW,GAAG,SAAS,CAAC;IAC5B,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,IAAI,aAAa,EAAE,CAAC;QAClB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACjB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IACD,WAAW,IAAI,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAExC,iDAAiD;IACjD,IAAI,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrD,IAAI,oBAAoB,EAAE,CAAC;YACzB,WAAW,IAAI,qBAAqB,CAAC;QACvC,CAAC;aAAM,CAAC;YACN,WAAW,IAAI,mBAAmB,CAAC;QACrC,CAAC;IACH,CAAC;IAED,OAAO,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAAG,WAAW,GAAQ,CAAC;AACxD,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const DebugProfiler: () => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,26 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { Text, useInput } from 'ink';
8
+ import { useEffect, useRef, useState } from 'react';
9
+ import { Colors } from '../colors.js';
10
+ export const DebugProfiler = () => {
11
+ const numRenders = useRef(0);
12
+ const [showNumRenders, setShowNumRenders] = useState(false);
13
+ useEffect(() => {
14
+ numRenders.current++;
15
+ });
16
+ useInput((input, key) => {
17
+ if (key.ctrl && input === 'b') {
18
+ setShowNumRenders((prev) => !prev);
19
+ }
20
+ });
21
+ if (!showNumRenders) {
22
+ return null;
23
+ }
24
+ return (_jsxs(Text, { color: Colors.AccentYellow, children: ["Renders: ", numRenders.current, " "] }));
25
+ };
26
+ //# sourceMappingURL=DebugProfiler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugProfiler.js","sourceRoot":"","sources":["../../../../src/ui/components/DebugProfiler.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACtB,IAAI,GAAG,CAAC,IAAI,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;YAC9B,iBAAiB,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,0BAAY,UAAU,CAAC,OAAO,SAAS,CACxE,CAAC;AACJ,CAAC,CAAC"}
@@ -16,6 +16,7 @@ interface FooterProps {
16
16
  showMemoryUsage?: boolean;
17
17
  promptTokenCount: number;
18
18
  nightly: boolean;
19
+ vimMode?: string;
19
20
  }
20
21
  export declare const Footer: React.FC<FooterProps>;
21
22
  export {};
@@ -1,4 +1,4 @@
1
- import { jsxs as _jsxs, 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 { Colors } from '../colors.js';
4
4
  import { shortenPath, tildeifyPath, tokenLimit, } from '@machina.ai/cell-cli-core';
@@ -6,9 +6,10 @@ import { ConsoleSummaryDisplay } from './ConsoleSummaryDisplay.js';
6
6
  import process from 'node:process';
7
7
  import Gradient from 'ink-gradient';
8
8
  import { MemoryUsageDisplay } from './MemoryUsageDisplay.js';
9
- export const Footer = ({ model, targetDir, branchName, debugMode, debugMessage, corgiMode, errorCount, showErrorDetails, showMemoryUsage, promptTokenCount, nightly, }) => {
9
+ import { DebugProfiler } from './DebugProfiler.js';
10
+ export const Footer = ({ model, targetDir, branchName, debugMode, debugMessage, corgiMode, errorCount, showErrorDetails, showMemoryUsage, promptTokenCount, nightly, vimMode, }) => {
10
11
  const limit = tokenLimit(model);
11
12
  const percentage = promptTokenCount / limit;
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, {})] })] }));
13
+ return (_jsxs(Box, { justifyContent: "space-between", width: "100%", children: [_jsxs(Box, { children: [debugMode && _jsx(DebugProfiler, {}), vimMode && _jsxs(Text, { color: Colors.Gray, children: ["[", vimMode, "] "] }), 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, {})] })] }));
13
14
  };
14
15
  //# sourceMappingURL=Footer.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AK,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"}
@@ -15,6 +15,6 @@ export const Header = ({ customAsciiArt, terminalWidth, version, nightly, }) =>
15
15
  terminalWidth >= widthOfLongLogo ? longAsciiLogo : shortAsciiLogo;
16
16
  }
17
17
  const artWidth = getAsciiArtWidth(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] }) }) }))] }));
18
+ return (_jsxs(Box, { 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,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AAc,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 @@ 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
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
+ 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: "Alt+Left/Right" }), ' ', "- Jump through words in the input"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Ctrl+C" }), ' ', "- Quit application"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: process.platform === 'win32' ? 'Ctrl+Enter' : 'Ctrl+J' }), ' ', process.platform === 'linux'
8
8
  ? '- New line (Alt+Enter works for certain linux distros)'
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
+ : '- New line'] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Ctrl+L" }), ' ', "- Clear the screen"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: process.platform === 'darwin' ? 'Ctrl+X / Meta+Enter' : 'Ctrl+X' }), ' ', "- Open input in external editor"] }), _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: "Enter" }), ' ', "- Send message"] }), _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: "Shift+Tab" }), ' ', "- Toggle auto-accepting edits"] }), _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Up/Down" }), ' ', "- Cycle through your prompt history"] }), _jsx(Box, { height: 1 }), _jsxs(Text, { color: Colors.Foreground, children: ["For a full list of shortcuts, see", ' ', _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "docs/keyboard-shortcuts.md" })] })] }));
10
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,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,4BAE9B,WACD,GAAG,EACT,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,kBAE9B,EAAC,GAAG,yCACyB,GAAG,EACvC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,+BAE9B,8CAEF,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,2BAE9B,kCACsB,GAAG,EAChC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,kBAE9B,EAAC,GAAG,YACJ,GAAG,EACV,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,+BAE9B,qCACyB,GAAG,EACnC,KAAC,IAAI,IAA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AAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,uBAE9B,EAAC,GAAG,0BAEN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,sBAE9B,EAAC,GAAG,sBAEN,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,0BAE9B,EAAC,GAAG,qCAEN,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,aAC5B,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,wBAE9B,EAAC,GAAG,2CAEN,EACP,KAAC,GAAG,IAAC,MAAM,EAAE,CAAC,GAAI,EAClB,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,kDACM,GAAG,EACrC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,MAAM,CAAC,YAAY,2CAE9B,IACF,IACH,CACP,CAAC"}
@@ -6,6 +6,7 @@
6
6
  import React from 'react';
7
7
  import type { HistoryItem } from '../types.js';
8
8
  import { Config } from '@machina.ai/cell-cli-core';
9
+ import { SlashCommand } from '../commands/types.js';
9
10
  interface HistoryItemDisplayProps {
10
11
  item: HistoryItem;
11
12
  availableTerminalHeight?: number;
@@ -13,6 +14,7 @@ interface HistoryItemDisplayProps {
13
14
  isPending: boolean;
14
15
  config?: Config;
15
16
  isFocused?: boolean;
17
+ commands?: readonly SlashCommand[];
16
18
  }
17
19
  export declare const HistoryItemDisplay: React.FC<HistoryItemDisplayProps>;
18
20
  export {};
@@ -13,5 +13,6 @@ import { StatsDisplay } from './StatsDisplay.js';
13
13
  import { ModelStatsDisplay } from './ModelStatsDisplay.js';
14
14
  import { ToolStatsDisplay } from './ToolStatsDisplay.js';
15
15
  import { SessionSummaryDisplay } from './SessionSummaryDisplay.js';
16
- export const HistoryItemDisplay = ({ item, availableTerminalHeight, terminalWidth, isPending, config, isFocused = true, }) => (_jsxs(Box, { flexDirection: "column", children: [item.type === 'user' && _jsx(UserMessage, { text: item.text }), item.type === 'user_shell' && _jsx(UserShellMessage, { text: item.text }), item.type === 'gemini' && (_jsx(GeminiMessage, { text: item.text, isPending: isPending, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth })), item.type === 'gemini_content' && (_jsx(GeminiMessageContent, { text: item.text, isPending: isPending, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth })), item.type === 'info' && _jsx(InfoMessage, { text: item.text }), item.type === 'error' && _jsx(ErrorMessage, { text: item.text }), item.type === 'about' && (_jsx(AboutBox, { cliVersion: item.cliVersion, osVersion: item.osVersion, sandboxEnv: item.sandboxEnv, modelVersion: item.modelVersion, selectedAuthType: item.selectedAuthType, gcpProject: item.gcpProject })), item.type === 'stats' && _jsx(StatsDisplay, { duration: item.duration }), item.type === 'model_stats' && _jsx(ModelStatsDisplay, {}), item.type === 'tool_stats' && _jsx(ToolStatsDisplay, {}), item.type === 'quit' && _jsx(SessionSummaryDisplay, { duration: item.duration }), item.type === 'tool_group' && (_jsx(ToolGroupMessage, { toolCalls: item.tools, groupId: item.id, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth, config: config, isFocused: isFocused })), item.type === 'compression' && (_jsx(CompressionMessage, { compression: item.compression }))] }, item.id));
16
+ import { Help } from './Help.js';
17
+ export const HistoryItemDisplay = ({ item, availableTerminalHeight, terminalWidth, isPending, config, commands, isFocused = true, }) => (_jsxs(Box, { flexDirection: "column", children: [item.type === 'user' && _jsx(UserMessage, { text: item.text }), item.type === 'user_shell' && _jsx(UserShellMessage, { text: item.text }), item.type === 'gemini' && (_jsx(GeminiMessage, { text: item.text, isPending: isPending, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth })), item.type === 'gemini_content' && (_jsx(GeminiMessageContent, { text: item.text, isPending: isPending, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth })), item.type === 'info' && _jsx(InfoMessage, { text: item.text }), item.type === 'error' && _jsx(ErrorMessage, { text: item.text }), item.type === 'about' && (_jsx(AboutBox, { cliVersion: item.cliVersion, osVersion: item.osVersion, sandboxEnv: item.sandboxEnv, modelVersion: item.modelVersion, selectedAuthType: item.selectedAuthType, gcpProject: item.gcpProject })), item.type === 'help' && commands && _jsx(Help, { commands: commands }), item.type === 'stats' && _jsx(StatsDisplay, { duration: item.duration }), item.type === 'model_stats' && _jsx(ModelStatsDisplay, {}), item.type === 'tool_stats' && _jsx(ToolStatsDisplay, {}), item.type === 'quit' && _jsx(SessionSummaryDisplay, { duration: item.duration }), item.type === 'tool_group' && (_jsx(ToolGroupMessage, { toolCalls: item.tools, groupId: item.id, availableTerminalHeight: availableTerminalHeight, terminalWidth: terminalWidth, config: config, isFocused: isFocused })), item.type === 'compression' && (_jsx(CompressionMessage, { compression: item.compression }))] }, item.id));
17
18
  //# sourceMappingURL=HistoryItemDisplay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HistoryItemDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/HistoryItemDisplay.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CA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AQ,EAAE,IAAI,CAAC,QAAQ,GAAI,EAC1E,IAAI,CAAC,IAAI,KAAK,YAAY,IAAI,CAC7B,KAAC,gBAAgB,IACf,SAAS,EAAE,IAAI,CAAC,KAAK,EACrB,OAAO,EAAE,IAAI,CAAC,EAAE,EAChB,uBAAuB,EAAE,uBAAuB,EAChD,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,GACpB,CACH,EACA,IAAI,CAAC,IAAI,KAAK,aAAa,IAAI,CAC9B,KAAC,kBAAkB,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,GAAI,CACtD,KAjD8B,IAAI,CAAC,EAAE,CAkDlC,CACP,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type IdeContext } from '@machina.ai/cell-cli-core';
7
+ interface IDEContextDetailDisplayProps {
8
+ ideContext: IdeContext | undefined;
9
+ detectedIdeDisplay: string | undefined;
10
+ }
11
+ export declare function IDEContextDetailDisplay({ ideContext, detectedIdeDisplay, }: IDEContextDetailDisplayProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import path from 'node:path';
4
+ import { Colors } from '../colors.js';
5
+ export function IDEContextDetailDisplay({ ideContext, detectedIdeDisplay, }) {
6
+ const openFiles = ideContext?.workspaceState?.openFiles;
7
+ if (!openFiles || openFiles.length === 0) {
8
+ return null;
9
+ }
10
+ return (_jsxs(Box, { flexDirection: "column", marginTop: 1, borderStyle: "round", borderColor: Colors.AccentCyan, paddingX: 1, children: [_jsxs(Text, { color: Colors.AccentCyan, bold: true, children: [detectedIdeDisplay ? detectedIdeDisplay : 'IDE', " Context (ctrl+e to toggle)"] }), openFiles.length > 0 && (_jsxs(Box, { flexDirection: "column", marginTop: 1, children: [_jsx(Text, { bold: true, children: "Open files:" }), openFiles.map((file) => (_jsxs(Text, { children: ["- ", path.basename(file.path), file.isActive ? ' (active)' : ''] }, file.path)))] }))] }));
11
+ }
12
+ //# sourceMappingURL=IDEContextDetailDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDEContextDetailDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/IDEContextDetailDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAOtC,MAAM,UAAU,uBAAuB,CAAC,EACtC,UAAU,EACV,kBAAkB,GACW;IAC7B,MAAM,SAAS,GAAG,UAAU,EAAE,cAAc,EAAE,SAAS,CAAC;IACxD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,MAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,SAAS,EAAE,CAAC,EACZ,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,UAAU,EAC9B,QAAQ,EAAE,CAAC,aAEX,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,mBACjC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,mCAE3C,EACN,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACvB,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,aACtC,KAAC,IAAI,IAAC,IAAI,kCAAmB,EAC5B,SAAS,CAAC,GAAG,CAAC,CAAC,IAAU,EAAE,EAAE,CAAC,CAC7B,MAAC,IAAI,qBACA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAC1B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,KAFxB,IAAI,CAAC,IAAI,CAGb,CACR,CAAC,IACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import React from 'react';
7
7
  import { TextBuffer } from './shared/text-buffer.js';
8
+ import { Key } from '../hooks/useKeypress.js';
8
9
  import { CommandContext, SlashCommand } from '../commands/types.js';
9
10
  import { Config } from '@machina.ai/cell-cli-core';
10
11
  export interface InputPromptProps {
@@ -21,5 +22,6 @@ export interface InputPromptProps {
21
22
  suggestionsWidth: number;
22
23
  shellModeActive: boolean;
23
24
  setShellModeActive: (value: boolean) => void;
25
+ vimHandleInput?: (key: Key) => boolean;
24
26
  }
25
27
  export declare const InputPrompt: React.FC<InputPromptProps>;