@rdmind/rdmind 0.0.15-alpha.1 → 0.0.15-alpha.2

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 (773) hide show
  1. package/dist/package.json +15 -10
  2. package/dist/src/commands/extensions/disable.d.ts +2 -3
  3. package/dist/src/commands/extensions/disable.js +20 -6
  4. package/dist/src/commands/extensions/disable.js.map +1 -1
  5. package/dist/src/commands/extensions/enable.d.ts +2 -3
  6. package/dist/src/commands/extensions/enable.js +21 -10
  7. package/dist/src/commands/extensions/enable.js.map +1 -1
  8. package/dist/src/commands/extensions/examples/context/QWEN.md +8 -0
  9. package/dist/src/commands/extensions/examples/context/qwen-extension.json +4 -0
  10. package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  11. package/dist/src/commands/extensions/examples/custom-commands/qwen-extension.json +4 -0
  12. package/dist/src/commands/extensions/examples/exclude-tools/qwen-extension.json +5 -0
  13. package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
  14. package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
  15. package/dist/src/commands/extensions/examples/mcp-server/qwen-extension.json +11 -0
  16. package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
  17. package/dist/src/commands/extensions/install.d.ts +3 -2
  18. package/dist/src/commands/extensions/install.js +47 -17
  19. package/dist/src/commands/extensions/install.js.map +1 -1
  20. package/dist/src/commands/extensions/install.test.js +86 -9
  21. package/dist/src/commands/extensions/install.test.js.map +1 -1
  22. package/dist/src/commands/extensions/link.d.ts +12 -0
  23. package/dist/src/commands/extensions/link.js +37 -0
  24. package/dist/src/commands/extensions/link.js.map +1 -0
  25. package/dist/src/commands/extensions/list.js +1 -1
  26. package/dist/src/commands/extensions/list.js.map +1 -1
  27. package/dist/src/commands/extensions/new.d.ts +7 -0
  28. package/dist/src/commands/extensions/new.js +90 -0
  29. package/dist/src/commands/extensions/new.js.map +1 -0
  30. package/dist/src/commands/extensions/new.test.js +59 -0
  31. package/dist/src/commands/extensions/new.test.js.map +1 -0
  32. package/dist/src/commands/extensions/uninstall.js +1 -1
  33. package/dist/src/commands/extensions/uninstall.js.map +1 -1
  34. package/dist/src/commands/extensions/uninstall.test.js +2 -2
  35. package/dist/src/commands/extensions/uninstall.test.js.map +1 -1
  36. package/dist/src/commands/extensions/update.d.ts +2 -1
  37. package/dist/src/commands/extensions/update.js +80 -14
  38. package/dist/src/commands/extensions/update.js.map +1 -1
  39. package/dist/src/commands/extensions.js +4 -0
  40. package/dist/src/commands/extensions.js.map +1 -1
  41. package/dist/src/commands/mcp/add.js +6 -1
  42. package/dist/src/commands/mcp/add.js.map +1 -1
  43. package/dist/src/commands/mcp/list.js +4 -3
  44. package/dist/src/commands/mcp/list.js.map +1 -1
  45. package/dist/src/commands/mcp/remove.js +1 -1
  46. package/dist/src/commands/mcp/remove.js.map +1 -1
  47. package/dist/src/config/auth.d.ts +1 -1
  48. package/dist/src/config/auth.js +4 -4
  49. package/dist/src/config/auth.js.map +1 -1
  50. package/dist/src/config/auth.test.js +15 -7
  51. package/dist/src/config/auth.test.js.map +1 -1
  52. package/dist/src/config/config.d.ts +7 -2
  53. package/dist/src/config/config.js +178 -122
  54. package/dist/src/config/config.js.map +1 -1
  55. package/dist/src/config/extension.d.ts +39 -16
  56. package/dist/src/config/extension.js +349 -192
  57. package/dist/src/config/extension.js.map +1 -1
  58. package/dist/src/config/extensions/extensionEnablement.d.ts +47 -0
  59. package/dist/src/config/extensions/extensionEnablement.js +189 -0
  60. package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
  61. package/dist/src/{ui/components/ModelSelectionDialog.test.d.ts → config/extensions/extensionEnablement.test.d.ts} +1 -1
  62. package/dist/src/config/extensions/extensionEnablement.test.js +333 -0
  63. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
  64. package/dist/src/config/extensions/github.d.ts +30 -0
  65. package/dist/src/config/extensions/github.js +322 -0
  66. package/dist/src/config/extensions/github.js.map +1 -0
  67. package/dist/src/config/extensions/github.test.d.ts +6 -0
  68. package/dist/src/config/extensions/github.test.js +334 -0
  69. package/dist/src/config/extensions/github.test.js.map +1 -0
  70. package/dist/src/config/extensions/update.d.ts +19 -0
  71. package/dist/src/config/extensions/update.js +113 -0
  72. package/dist/src/config/extensions/update.js.map +1 -0
  73. package/dist/src/config/extensions/update.test.d.ts +6 -0
  74. package/dist/src/config/extensions/update.test.js +342 -0
  75. package/dist/src/config/extensions/update.test.js.map +1 -0
  76. package/dist/src/config/extensions/variableSchema.d.ts +8 -0
  77. package/dist/src/config/extensions/variableSchema.js +4 -0
  78. package/dist/src/config/extensions/variableSchema.js.map +1 -1
  79. package/dist/src/config/keyBindings.d.ts +5 -1
  80. package/dist/src/config/keyBindings.js +14 -25
  81. package/dist/src/config/keyBindings.js.map +1 -1
  82. package/dist/src/config/settings.d.ts +8 -5
  83. package/dist/src/config/settings.js +178 -275
  84. package/dist/src/config/settings.js.map +1 -1
  85. package/dist/src/config/settingsSchema.d.ts +332 -141
  86. package/dist/src/config/settingsSchema.js +321 -153
  87. package/dist/src/config/settingsSchema.js.map +1 -1
  88. package/dist/src/config/settingsSchema.test.js +64 -57
  89. package/dist/src/config/settingsSchema.test.js.map +1 -1
  90. package/dist/src/config/trustedFolders.d.ts +23 -4
  91. package/dist/src/config/trustedFolders.js +97 -47
  92. package/dist/src/config/trustedFolders.js.map +1 -1
  93. package/dist/src/config/trustedFolders.test.js +196 -20
  94. package/dist/src/config/trustedFolders.test.js.map +1 -1
  95. package/dist/src/core/auth.d.ts +13 -0
  96. package/dist/src/core/auth.js +27 -0
  97. package/dist/src/core/auth.js.map +1 -0
  98. package/dist/src/core/initializer.d.ts +21 -0
  99. package/dist/src/core/initializer.js +33 -0
  100. package/dist/src/core/initializer.js.map +1 -0
  101. package/dist/src/core/theme.d.ts +12 -0
  102. package/dist/src/core/theme.js +20 -0
  103. package/dist/src/core/theme.js.map +1 -0
  104. package/dist/src/gemini.d.ts +3 -2
  105. package/dist/src/gemini.js +156 -128
  106. package/dist/src/gemini.js.map +1 -1
  107. package/dist/src/gemini.test.js +190 -47
  108. package/dist/src/gemini.test.js.map +1 -1
  109. package/dist/src/generated/git-commit.d.ts +2 -2
  110. package/dist/src/generated/git-commit.js +2 -2
  111. package/dist/src/nonInteractiveCli.d.ts +2 -1
  112. package/dist/src/nonInteractiveCli.js +101 -72
  113. package/dist/src/nonInteractiveCli.js.map +1 -1
  114. package/dist/src/nonInteractiveCliCommands.d.ts +17 -0
  115. package/dist/src/nonInteractiveCliCommands.js +79 -0
  116. package/dist/src/nonInteractiveCliCommands.js.map +1 -0
  117. package/dist/src/services/BuiltinCommandLoader.js +1 -1
  118. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  119. package/dist/src/services/BuiltinCommandLoader.test.js +30 -18
  120. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
  121. package/dist/src/services/FileCommandLoader.d.ts +2 -0
  122. package/dist/src/services/FileCommandLoader.js +7 -0
  123. package/dist/src/services/FileCommandLoader.js.map +1 -1
  124. package/dist/src/services/McpPromptLoader.js +43 -8
  125. package/dist/src/services/McpPromptLoader.js.map +1 -1
  126. package/dist/src/services/McpPromptLoader.test.js +228 -1
  127. package/dist/src/services/McpPromptLoader.test.js.map +1 -1
  128. package/dist/src/services/prompt-processors/shellProcessor.js +8 -1
  129. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
  130. package/dist/src/test-utils/createExtension.d.ts +15 -0
  131. package/dist/src/test-utils/createExtension.js +25 -0
  132. package/dist/src/test-utils/createExtension.js.map +1 -0
  133. package/dist/src/test-utils/mockCommandContext.js +2 -0
  134. package/dist/src/test-utils/mockCommandContext.js.map +1 -1
  135. package/dist/src/test-utils/render.d.ts +5 -1
  136. package/dist/src/test-utils/render.js +5 -1
  137. package/dist/src/test-utils/render.js.map +1 -1
  138. package/dist/src/ui/App.d.ts +1 -10
  139. package/dist/src/ui/App.js +26 -834
  140. package/dist/src/ui/App.js.map +1 -1
  141. package/dist/src/ui/AppContainer.d.ts +17 -0
  142. package/dist/src/ui/AppContainer.js +1062 -0
  143. package/dist/src/ui/AppContainer.js.map +1 -0
  144. package/dist/src/ui/AppContainer.test.d.ts +6 -0
  145. package/dist/src/ui/AppContainer.test.js +831 -0
  146. package/dist/src/ui/AppContainer.test.js.map +1 -0
  147. package/dist/src/ui/IdeIntegrationNudge.d.ts +2 -2
  148. package/dist/src/ui/IdeIntegrationNudge.js +6 -8
  149. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
  150. package/dist/src/ui/{components → auth}/AuthDialog.js +8 -4
  151. package/dist/src/ui/auth/AuthDialog.js.map +1 -0
  152. package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
  153. package/dist/src/ui/{components → auth}/AuthDialog.test.js +92 -10
  154. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
  155. package/dist/src/ui/{components → auth}/AuthInProgress.js +2 -2
  156. package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
  157. package/dist/src/ui/{hooks/useAuthCommand.d.ts → auth/useAuth.d.ts} +9 -3
  158. package/dist/src/ui/{hooks/useAuthCommand.js → auth/useAuth.js} +49 -14
  159. package/dist/src/ui/auth/useAuth.js.map +1 -0
  160. package/dist/src/ui/commands/aboutCommand.js +9 -3
  161. package/dist/src/ui/commands/aboutCommand.js.map +1 -1
  162. package/dist/src/ui/commands/chatCommand.d.ts +2 -0
  163. package/dist/src/ui/commands/chatCommand.js +93 -3
  164. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  165. package/dist/src/ui/commands/clearCommand.js +1 -1
  166. package/dist/src/ui/commands/clearCommand.js.map +1 -1
  167. package/dist/src/ui/commands/corgiCommand.js +1 -0
  168. package/dist/src/ui/commands/corgiCommand.js.map +1 -1
  169. package/dist/src/ui/commands/directoryCommand.js +2 -2
  170. package/dist/src/ui/commands/directoryCommand.js.map +1 -1
  171. package/dist/src/ui/commands/extensionsCommand.js +92 -15
  172. package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
  173. package/dist/src/ui/commands/ideCommand.d.ts +1 -2
  174. package/dist/src/ui/commands/ideCommand.js +19 -10
  175. package/dist/src/ui/commands/ideCommand.js.map +1 -1
  176. package/dist/src/ui/commands/mcpCommand.js +88 -261
  177. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  178. package/dist/src/ui/commands/memoryCommand.js +1 -1
  179. package/dist/src/ui/commands/memoryCommand.js.map +1 -1
  180. package/dist/src/ui/commands/modelCommand.js +1 -16
  181. package/dist/src/ui/commands/modelCommand.js.map +1 -1
  182. package/dist/src/ui/commands/modelCommand.test.js +10 -11
  183. package/dist/src/ui/commands/modelCommand.test.js.map +1 -1
  184. package/dist/src/ui/commands/summaryCommand.js +1 -1
  185. package/dist/src/ui/commands/summaryCommand.js.map +1 -1
  186. package/dist/src/ui/commands/toolsCommand.js +10 -24
  187. package/dist/src/ui/commands/toolsCommand.js.map +1 -1
  188. package/dist/src/ui/commands/types.d.ts +7 -2
  189. package/dist/src/ui/commands/types.js +0 -1
  190. package/dist/src/ui/commands/types.js.map +1 -1
  191. package/dist/src/ui/components/AboutBox.js +2 -2
  192. package/dist/src/ui/components/AboutBox.js.map +1 -1
  193. package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
  194. package/dist/src/ui/components/AnsiOutput.js +12 -0
  195. package/dist/src/ui/components/AnsiOutput.js.map +1 -0
  196. package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
  197. package/dist/src/ui/components/AnsiOutput.test.js +97 -0
  198. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
  199. package/dist/src/ui/components/AppHeader.d.ts +10 -0
  200. package/dist/src/ui/components/AppHeader.js +19 -0
  201. package/dist/src/ui/components/AppHeader.js.map +1 -0
  202. package/dist/src/ui/components/AutoAcceptIndicator.js +5 -5
  203. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -1
  204. package/dist/src/ui/components/Composer.d.ts +6 -0
  205. package/dist/src/ui/components/Composer.js +54 -0
  206. package/dist/src/ui/components/Composer.js.map +1 -0
  207. package/dist/src/ui/components/Composer.test.d.ts +6 -0
  208. package/dist/src/ui/components/Composer.test.js +337 -0
  209. package/dist/src/ui/components/Composer.test.js.map +1 -0
  210. package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
  211. package/dist/src/ui/components/ConfigInitDisplay.js +38 -0
  212. package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
  213. package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
  214. package/dist/src/ui/components/ConsentPrompt.js +19 -0
  215. package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
  216. package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
  217. package/dist/src/ui/components/ConsentPrompt.test.js +67 -0
  218. package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
  219. package/dist/src/ui/components/ConsoleSummaryDisplay.js +2 -2
  220. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -1
  221. package/dist/src/ui/components/ContextSummaryDisplay.js +3 -3
  222. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  223. package/dist/src/ui/components/ContextUsageDisplay.d.ts +2 -1
  224. package/dist/src/ui/components/ContextUsageDisplay.js +5 -3
  225. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
  226. package/dist/src/ui/components/DebugProfiler.js +2 -2
  227. package/dist/src/ui/components/DebugProfiler.js.map +1 -1
  228. package/dist/src/ui/components/DetailedMessagesDisplay.js +7 -7
  229. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
  230. package/dist/src/ui/components/DialogManager.d.ts +12 -0
  231. package/dist/src/ui/components/DialogManager.js +129 -0
  232. package/dist/src/ui/components/DialogManager.js.map +1 -0
  233. package/dist/src/ui/components/EditorSettingsDialog.js +16 -7
  234. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
  235. package/dist/src/ui/components/ExitWarning.d.ts +7 -0
  236. package/dist/src/ui/components/ExitWarning.js +9 -0
  237. package/dist/src/ui/components/ExitWarning.js.map +1 -0
  238. package/dist/src/ui/components/FolderTrustDialog.js +22 -9
  239. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
  240. package/dist/src/ui/components/FolderTrustDialog.test.js +37 -12
  241. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
  242. package/dist/src/ui/components/Footer.d.ts +1 -17
  243. package/dist/src/ui/components/Footer.js +33 -11
  244. package/dist/src/ui/components/Footer.js.map +1 -1
  245. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +5 -0
  246. package/dist/src/ui/components/GeminiRespondingSpinner.js +7 -2
  247. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
  248. package/dist/src/ui/components/Header.js +2 -2
  249. package/dist/src/ui/components/Header.js.map +1 -1
  250. package/dist/src/ui/components/Help.d.ts +1 -1
  251. package/dist/src/ui/components/Help.js +9 -6
  252. package/dist/src/ui/components/Help.js.map +1 -1
  253. package/dist/src/ui/components/Help.test.d.ts +6 -0
  254. package/dist/src/ui/components/Help.test.js +57 -0
  255. package/dist/src/ui/components/Help.test.js.map +1 -0
  256. package/dist/src/ui/components/HistoryItemDisplay.d.ts +5 -4
  257. package/dist/src/ui/components/HistoryItemDisplay.js +13 -4
  258. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  259. package/dist/src/ui/components/HistoryItemDisplay.test.js +90 -9
  260. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
  261. package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
  262. package/dist/src/ui/components/IdeTrustChangeDialog.js +32 -0
  263. package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
  264. package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
  265. package/dist/src/ui/components/IdeTrustChangeDialog.test.js +57 -0
  266. package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
  267. package/dist/src/ui/components/InputPrompt.d.ts +9 -0
  268. package/dist/src/ui/components/InputPrompt.js +192 -45
  269. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  270. package/dist/src/ui/components/LoadingIndicator.js +2 -2
  271. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  272. package/dist/src/ui/components/LoadingIndicator.test.js +4 -0
  273. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
  274. package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
  275. package/dist/src/ui/components/LoopDetectionConfirmation.js +37 -0
  276. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
  277. package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
  278. package/dist/src/ui/components/LoopDetectionConfirmation.test.js +28 -0
  279. package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
  280. package/dist/src/ui/components/MainContent.d.ts +6 -0
  281. package/dist/src/ui/components/MainContent.js +28 -0
  282. package/dist/src/ui/components/MainContent.js.map +1 -0
  283. package/dist/src/ui/components/MemoryUsageDisplay.js +6 -4
  284. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
  285. package/dist/src/ui/components/ModelDialog.d.ts +11 -0
  286. package/dist/src/ui/components/ModelDialog.js +42 -0
  287. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  288. package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
  289. package/dist/src/ui/components/ModelDialog.test.js +158 -0
  290. package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
  291. package/dist/src/ui/components/ModelStatsDisplay.js +7 -7
  292. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
  293. package/dist/src/ui/components/ModelSwitchDialog.js +3 -0
  294. package/dist/src/ui/components/ModelSwitchDialog.js.map +1 -1
  295. package/dist/src/ui/components/ModelSwitchDialog.test.js +3 -0
  296. package/dist/src/ui/components/ModelSwitchDialog.test.js.map +1 -1
  297. package/dist/src/ui/components/Notifications.d.ts +6 -0
  298. package/dist/src/ui/components/Notifications.js +23 -0
  299. package/dist/src/ui/components/Notifications.js.map +1 -0
  300. package/dist/src/ui/components/OpenAIKeyPrompt.js +63 -39
  301. package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -1
  302. package/dist/src/ui/components/OpenAIKeyPrompt.test.js +8 -1
  303. package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +1 -1
  304. package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +13 -0
  305. package/dist/src/ui/components/PermissionsModifyTrustDialog.js +48 -0
  306. package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
  307. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
  308. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +154 -0
  309. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
  310. package/dist/src/ui/components/PrepareLabel.d.ts +5 -5
  311. package/dist/src/ui/components/PrepareLabel.js +67 -11
  312. package/dist/src/ui/components/PrepareLabel.js.map +1 -1
  313. package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
  314. package/dist/src/ui/components/PrepareLabel.test.js +71 -0
  315. package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
  316. package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
  317. package/dist/src/ui/components/ProQuotaDialog.js +23 -0
  318. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
  319. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
  320. package/dist/src/ui/components/ProQuotaDialog.test.js +58 -0
  321. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
  322. package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
  323. package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
  324. package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
  325. package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
  326. package/dist/src/ui/components/QueuedMessageDisplay.test.js +56 -0
  327. package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
  328. package/dist/src/ui/components/QuitConfirmationDialog.js +4 -0
  329. package/dist/src/ui/components/QuitConfirmationDialog.js.map +1 -1
  330. package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
  331. package/dist/src/ui/components/QuittingDisplay.js +20 -0
  332. package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
  333. package/dist/src/ui/components/QwenOAuthProgress.js +5 -4
  334. package/dist/src/ui/components/QwenOAuthProgress.js.map +1 -1
  335. package/dist/src/ui/components/QwenOAuthProgress.test.js +82 -11
  336. package/dist/src/ui/components/QwenOAuthProgress.test.js.map +1 -1
  337. package/dist/src/ui/components/SettingsDialog.d.ts +2 -1
  338. package/dist/src/ui/components/SettingsDialog.js +97 -23
  339. package/dist/src/ui/components/SettingsDialog.js.map +1 -1
  340. package/dist/src/ui/components/SettingsDialog.test.js +474 -84
  341. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
  342. package/dist/src/ui/components/ShellConfirmationDialog.js +5 -2
  343. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  344. package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
  345. package/dist/src/ui/components/ShellInputPrompt.js +36 -0
  346. package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
  347. package/dist/src/ui/components/ShellModeIndicator.js +2 -2
  348. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -1
  349. package/dist/src/ui/components/ShowMoreLines.js +2 -2
  350. package/dist/src/ui/components/ShowMoreLines.js.map +1 -1
  351. package/dist/src/ui/components/StatsDisplay.js +6 -6
  352. package/dist/src/ui/components/StatsDisplay.js.map +1 -1
  353. package/dist/src/ui/components/SuggestionsDisplay.d.ts +7 -2
  354. package/dist/src/ui/components/SuggestionsDisplay.js +17 -17
  355. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
  356. package/dist/src/ui/components/ThemeDialog.js +14 -29
  357. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  358. package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
  359. package/dist/src/ui/components/ThemeDialog.test.js +75 -0
  360. package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
  361. package/dist/src/ui/components/Tips.js +2 -2
  362. package/dist/src/ui/components/Tips.js.map +1 -1
  363. package/dist/src/ui/components/ToolStatsDisplay.js +4 -4
  364. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -1
  365. package/dist/src/ui/components/UpdateNotification.js +2 -2
  366. package/dist/src/ui/components/UpdateNotification.js.map +1 -1
  367. package/dist/src/ui/components/WelcomeBackDialog.js +2 -0
  368. package/dist/src/ui/components/WelcomeBackDialog.js.map +1 -1
  369. package/dist/src/ui/components/WorkspaceMigrationDialog.js +14 -11
  370. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -1
  371. package/dist/src/ui/components/messages/CompressionMessage.d.ts +1 -2
  372. package/dist/src/ui/components/messages/CompressionMessage.js +37 -8
  373. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
  374. package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
  375. package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
  376. package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
  377. package/dist/src/ui/components/messages/DiffRenderer.d.ts +2 -1
  378. package/dist/src/ui/components/messages/DiffRenderer.js +14 -22
  379. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
  380. package/dist/src/ui/components/messages/ErrorMessage.js +2 -2
  381. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -1
  382. package/dist/src/ui/components/messages/GeminiMessage.js +2 -2
  383. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
  384. package/dist/src/ui/components/messages/InfoMessage.js +2 -2
  385. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
  386. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +53 -21
  387. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  388. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +0 -8
  389. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
  390. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +3 -2
  391. package/dist/src/ui/components/messages/ToolGroupMessage.js +18 -10
  392. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
  393. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +17 -15
  394. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
  395. package/dist/src/ui/components/messages/ToolMessage.d.ts +3 -1
  396. package/dist/src/ui/components/messages/ToolMessage.js +53 -11
  397. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  398. package/dist/src/ui/components/messages/ToolMessage.test.js +34 -1
  399. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
  400. package/dist/src/ui/components/messages/UserMessage.js +3 -4
  401. package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
  402. package/dist/src/ui/components/messages/UserShellMessage.js +2 -2
  403. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
  404. package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
  405. package/dist/src/ui/components/messages/WarningMessage.js +10 -0
  406. package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
  407. package/dist/src/ui/components/shared/BaseSelectionList.d.ts +38 -0
  408. package/dist/src/ui/components/shared/BaseSelectionList.js +72 -0
  409. package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
  410. package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
  411. package/dist/src/ui/components/shared/BaseSelectionList.test.js +376 -0
  412. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
  413. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
  414. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
  415. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
  416. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
  417. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
  418. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
  419. package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
  420. package/dist/src/ui/components/shared/EnumSelector.js +44 -0
  421. package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
  422. package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
  423. package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
  424. package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
  425. package/dist/src/ui/components/shared/MaxSizedBox.js +2 -2
  426. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
  427. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +2 -3
  428. package/dist/src/ui/components/shared/RadioButtonSelect.js +10 -105
  429. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  430. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +115 -92
  431. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -1
  432. package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
  433. package/dist/src/ui/components/shared/ScopeSelector.js +14 -0
  434. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
  435. package/dist/src/ui/components/shared/text-buffer.d.ts +25 -2
  436. package/dist/src/ui/components/shared/text-buffer.js +296 -187
  437. package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
  438. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +2 -3
  439. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +1 -1
  440. package/dist/src/ui/components/subagents/create/ColorSelector.js +3 -2
  441. package/dist/src/ui/components/subagents/create/ColorSelector.js.map +1 -1
  442. package/dist/src/ui/components/subagents/create/CreationSummary.js +6 -5
  443. package/dist/src/ui/components/subagents/create/CreationSummary.js.map +1 -1
  444. package/dist/src/ui/components/subagents/create/DescriptionInput.js +2 -3
  445. package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +1 -1
  446. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +1 -0
  447. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +1 -1
  448. package/dist/src/ui/components/subagents/create/LocationSelector.js +1 -0
  449. package/dist/src/ui/components/subagents/create/LocationSelector.js.map +1 -1
  450. package/dist/src/ui/components/subagents/create/TextEntryStep.js +2 -2
  451. package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +1 -1
  452. package/dist/src/ui/components/subagents/create/ToolSelector.js +4 -3
  453. package/dist/src/ui/components/subagents/create/ToolSelector.js.map +1 -1
  454. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +4 -4
  455. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +1 -1
  456. package/dist/src/ui/components/subagents/manage/AgentEditStep.js +1 -0
  457. package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +1 -1
  458. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +1 -2
  459. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +1 -1
  460. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +1 -2
  461. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +1 -1
  462. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +9 -10
  463. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +1 -1
  464. package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
  465. package/dist/src/ui/components/views/ExtensionsList.js +47 -0
  466. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
  467. package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
  468. package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
  469. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
  470. package/dist/src/ui/components/views/McpStatus.d.ts +27 -0
  471. package/dist/src/ui/components/views/McpStatus.js +77 -0
  472. package/dist/src/ui/components/views/McpStatus.js.map +1 -0
  473. package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
  474. package/dist/src/ui/components/views/McpStatus.test.js +117 -0
  475. package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
  476. package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
  477. package/dist/src/ui/components/views/ToolsList.js +7 -0
  478. package/dist/src/ui/components/views/ToolsList.js.map +1 -0
  479. package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
  480. package/dist/src/ui/components/views/ToolsList.test.js +45 -0
  481. package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
  482. package/dist/src/ui/constants.d.ts +1 -0
  483. package/dist/src/ui/constants.js +1 -0
  484. package/dist/src/ui/constants.js.map +1 -1
  485. package/dist/src/ui/contexts/AppContext.d.ts +11 -0
  486. package/dist/src/ui/contexts/AppContext.js +15 -0
  487. package/dist/src/ui/contexts/AppContext.js.map +1 -0
  488. package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
  489. package/dist/src/ui/contexts/ConfigContext.js +16 -0
  490. package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
  491. package/dist/src/ui/contexts/KeypressContext.d.ts +3 -0
  492. package/dist/src/ui/contexts/KeypressContext.js +309 -44
  493. package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
  494. package/dist/src/ui/contexts/KeypressContext.test.js +288 -2
  495. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
  496. package/dist/src/ui/contexts/SessionContext.d.ts +6 -0
  497. package/dist/src/ui/contexts/SessionContext.js +107 -5
  498. package/dist/src/ui/contexts/SessionContext.js.map +1 -1
  499. package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
  500. package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
  501. package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
  502. package/dist/src/ui/contexts/UIActionsContext.d.ts +45 -0
  503. package/dist/src/ui/contexts/UIActionsContext.js +21 -0
  504. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
  505. package/dist/src/ui/contexts/UIStateContext.d.ts +117 -0
  506. package/dist/src/ui/contexts/UIStateContext.js +17 -0
  507. package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
  508. package/dist/src/ui/hooks/atCommandProcessor.js +12 -12
  509. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  510. package/dist/src/ui/hooks/atCommandProcessor.test.js +21 -19
  511. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
  512. package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
  513. package/dist/src/ui/hooks/keyToAnsi.js +67 -0
  514. package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
  515. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +2 -1
  516. package/dist/src/ui/hooks/shellCommandProcessor.js +65 -15
  517. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  518. package/dist/src/ui/hooks/shellCommandProcessor.test.js +196 -17
  519. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
  520. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +20 -2
  521. package/dist/src/ui/hooks/slashCommandProcessor.js +41 -82
  522. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  523. package/dist/src/ui/hooks/useAtCompletion.js +1 -1
  524. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
  525. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +3 -2
  526. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +20 -18
  527. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
  528. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +43 -0
  529. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
  530. package/dist/src/ui/hooks/useExtensionUpdates.d.ts +21 -0
  531. package/dist/src/ui/hooks/useExtensionUpdates.js +116 -0
  532. package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -0
  533. package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +6 -0
  534. package/dist/src/ui/hooks/useExtensionUpdates.test.js +243 -0
  535. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -0
  536. package/dist/src/ui/hooks/useFocus.js +10 -0
  537. package/dist/src/ui/hooks/useFocus.js.map +1 -1
  538. package/dist/src/ui/hooks/useFolderTrust.js +6 -10
  539. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
  540. package/dist/src/ui/hooks/useGeminiStream.d.ts +14 -3
  541. package/dist/src/ui/hooks/useGeminiStream.js +173 -79
  542. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  543. package/dist/src/ui/hooks/useGitBranchName.js +15 -18
  544. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
  545. package/dist/src/ui/hooks/useGitBranchName.test.js +49 -53
  546. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
  547. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +16 -0
  548. package/dist/src/ui/hooks/useIdeTrustListener.js +65 -0
  549. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
  550. package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
  551. package/dist/src/ui/hooks/useIdeTrustListener.test.js +183 -0
  552. package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
  553. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
  554. package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
  555. package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
  556. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
  557. package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
  558. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
  559. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
  560. package/dist/src/ui/hooks/useLoadingIndicator.js +2 -2
  561. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
  562. package/dist/src/ui/hooks/useLoadingIndicator.test.js +2 -2
  563. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
  564. package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
  565. package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
  566. package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
  567. package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
  568. package/dist/src/ui/hooks/useMemoryMonitor.test.js +57 -0
  569. package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
  570. package/dist/src/ui/hooks/useMessageQueue.d.ts +2 -1
  571. package/dist/src/ui/hooks/useMessageQueue.js +5 -3
  572. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -1
  573. package/dist/src/ui/hooks/useMessageQueue.test.js +9 -0
  574. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
  575. package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
  576. package/dist/src/ui/hooks/useModelCommand.js +21 -0
  577. package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
  578. package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
  579. package/dist/src/ui/hooks/useModelCommand.test.js +35 -0
  580. package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
  581. package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
  582. package/dist/src/ui/hooks/usePermissionsModifyTrust.js +78 -0
  583. package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
  584. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
  585. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +182 -0
  586. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
  587. package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -1
  588. package/dist/src/ui/hooks/usePhraseCycler.js +11 -8
  589. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  590. package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
  591. package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
  592. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
  593. package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
  594. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +269 -0
  595. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
  596. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +3 -2
  597. package/dist/src/ui/hooks/useReactToolScheduler.js +23 -17
  598. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
  599. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +1 -1
  600. package/dist/src/ui/hooks/useReverseSearchCompletion.js +67 -20
  601. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -1
  602. package/dist/src/ui/hooks/useSelectionList.d.ts +34 -0
  603. package/dist/src/ui/hooks/useSelectionList.js +245 -0
  604. package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
  605. package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
  606. package/dist/src/ui/hooks/useSelectionList.test.js +701 -0
  607. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
  608. package/dist/src/ui/hooks/useSlashCompletion.d.ts +1 -1
  609. package/dist/src/ui/hooks/useSlashCompletion.js +281 -67
  610. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
  611. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +4 -1
  612. package/dist/src/ui/hooks/useSlashCompletion.test.js +390 -65
  613. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
  614. package/dist/src/ui/hooks/useStateAndRef.d.ts +1 -1
  615. package/dist/src/ui/hooks/useStateAndRef.js +2 -2
  616. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -1
  617. package/dist/src/ui/hooks/useThemeCommand.d.ts +1 -1
  618. package/dist/src/ui/hooks/useThemeCommand.js +3 -14
  619. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
  620. package/dist/src/ui/hooks/useToolScheduler.test.js +64 -291
  621. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
  622. package/dist/src/ui/hooks/useWelcomeBack.js +2 -2
  623. package/dist/src/ui/hooks/useWelcomeBack.js.map +1 -1
  624. package/dist/src/ui/hooks/useWorkspaceMigration.js +2 -1
  625. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -1
  626. package/dist/src/ui/keyMatchers.test.js +17 -0
  627. package/dist/src/ui/keyMatchers.test.js.map +1 -1
  628. package/dist/src/ui/layouts/DefaultAppLayout.d.ts +9 -0
  629. package/dist/src/ui/layouts/DefaultAppLayout.js +13 -0
  630. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
  631. package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
  632. package/dist/src/ui/layouts/ScreenReaderAppLayout.js +14 -0
  633. package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
  634. package/dist/src/ui/models/availableModels.d.ts +3 -0
  635. package/dist/src/ui/models/availableModels.js +27 -3
  636. package/dist/src/ui/models/availableModels.js.map +1 -1
  637. package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +12 -0
  638. package/dist/src/ui/noninteractive/nonInteractiveUi.js +28 -0
  639. package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -0
  640. package/dist/src/ui/state/extensions.d.ts +42 -0
  641. package/dist/src/ui/state/extensions.js +62 -0
  642. package/dist/src/ui/state/extensions.js.map +1 -0
  643. package/dist/src/ui/themes/ayu.js +1 -1
  644. package/dist/src/ui/themes/dracula.js +2 -2
  645. package/dist/src/ui/themes/github-dark.js +1 -1
  646. package/dist/src/ui/themes/theme.js +19 -19
  647. package/dist/src/ui/themes/theme.js.map +1 -1
  648. package/dist/src/ui/types.d.ts +79 -3
  649. package/dist/src/ui/types.js +14 -0
  650. package/dist/src/ui/types.js.map +1 -1
  651. package/dist/src/ui/utils/CodeColorizer.js +3 -2
  652. package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
  653. package/dist/src/ui/utils/InlineMarkdownRenderer.js +7 -7
  654. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
  655. package/dist/src/ui/utils/MarkdownDisplay.js +11 -11
  656. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  657. package/dist/src/ui/utils/MarkdownDisplay.test.js +95 -87
  658. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
  659. package/dist/src/ui/utils/TableRenderer.js +4 -4
  660. package/dist/src/ui/utils/TableRenderer.js.map +1 -1
  661. package/dist/src/ui/utils/clipboardUtils.js +5 -6
  662. package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
  663. package/dist/src/ui/utils/displayUtils.d.ts +1 -0
  664. package/dist/src/ui/utils/displayUtils.js +7 -4
  665. package/dist/src/ui/utils/displayUtils.js.map +1 -1
  666. package/dist/src/ui/utils/displayUtils.test.js +37 -18
  667. package/dist/src/ui/utils/displayUtils.test.js.map +1 -1
  668. package/dist/src/ui/utils/highlight.d.ts +11 -0
  669. package/dist/src/ui/utils/highlight.js +78 -0
  670. package/dist/src/ui/utils/highlight.js.map +1 -0
  671. package/dist/src/ui/utils/highlight.test.d.ts +6 -0
  672. package/dist/src/ui/utils/highlight.test.js +120 -0
  673. package/dist/src/ui/utils/highlight.test.js.map +1 -0
  674. package/dist/src/ui/utils/kittyProtocolDetector.js +39 -29
  675. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -1
  676. package/dist/src/ui/utils/platformConstants.d.ts +24 -1
  677. package/dist/src/ui/utils/platformConstants.js +26 -1
  678. package/dist/src/ui/utils/platformConstants.js.map +1 -1
  679. package/dist/src/ui/utils/textUtils.d.ts +10 -0
  680. package/dist/src/ui/utils/textUtils.js +108 -3
  681. package/dist/src/ui/utils/textUtils.js.map +1 -1
  682. package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
  683. package/dist/src/ui/utils/textUtils.test.js +132 -0
  684. package/dist/src/ui/utils/textUtils.test.js.map +1 -0
  685. package/dist/src/utils/commands.d.ts +20 -0
  686. package/dist/src/utils/commands.js +53 -0
  687. package/dist/src/utils/commands.js.map +1 -0
  688. package/dist/src/utils/commands.test.d.ts +6 -0
  689. package/dist/src/utils/commands.test.js +115 -0
  690. package/dist/src/utils/commands.test.js.map +1 -0
  691. package/dist/src/utils/commentJson.d.ts +9 -0
  692. package/dist/src/utils/commentJson.js +48 -0
  693. package/dist/src/utils/commentJson.js.map +1 -0
  694. package/dist/src/utils/commentJson.test.d.ts +6 -0
  695. package/dist/src/utils/commentJson.test.js +146 -0
  696. package/dist/src/utils/commentJson.test.js.map +1 -0
  697. package/dist/src/utils/deepMerge.d.ts +9 -0
  698. package/dist/src/utils/deepMerge.js +58 -0
  699. package/dist/src/utils/deepMerge.js.map +1 -0
  700. package/dist/src/utils/deepMerge.test.d.ts +6 -0
  701. package/dist/src/utils/deepMerge.test.js +143 -0
  702. package/dist/src/utils/deepMerge.test.js.map +1 -0
  703. package/dist/src/utils/envVarResolver.d.ts +39 -0
  704. package/dist/src/utils/envVarResolver.js +97 -0
  705. package/dist/src/utils/envVarResolver.js.map +1 -0
  706. package/dist/src/utils/envVarResolver.test.d.ts +6 -0
  707. package/dist/src/utils/envVarResolver.test.js +221 -0
  708. package/dist/src/utils/envVarResolver.test.js.map +1 -0
  709. package/dist/src/utils/errors.d.ts +21 -0
  710. package/dist/src/utils/errors.js +93 -0
  711. package/dist/src/utils/errors.js.map +1 -1
  712. package/dist/src/utils/errors.test.d.ts +6 -0
  713. package/dist/src/utils/errors.test.js +303 -0
  714. package/dist/src/utils/errors.test.js.map +1 -0
  715. package/dist/src/utils/events.d.ts +2 -1
  716. package/dist/src/utils/events.js +1 -0
  717. package/dist/src/utils/events.js.map +1 -1
  718. package/dist/src/utils/math.d.ts +13 -0
  719. package/dist/src/utils/math.js +14 -0
  720. package/dist/src/utils/math.js.map +1 -0
  721. package/dist/src/utils/processUtils.d.ts +13 -0
  722. package/dist/src/utils/processUtils.js +18 -0
  723. package/dist/src/utils/processUtils.js.map +1 -0
  724. package/dist/src/utils/processUtils.test.d.ts +6 -0
  725. package/dist/src/utils/processUtils.test.js +20 -0
  726. package/dist/src/utils/processUtils.test.js.map +1 -0
  727. package/dist/src/utils/relaunch.d.ts +7 -0
  728. package/dist/src/utils/relaunch.js +57 -0
  729. package/dist/src/utils/relaunch.js.map +1 -0
  730. package/dist/src/utils/relaunch.test.d.ts +6 -0
  731. package/dist/src/utils/relaunch.test.js +273 -0
  732. package/dist/src/utils/relaunch.test.js.map +1 -0
  733. package/dist/src/utils/sandbox.d.ts +1 -1
  734. package/dist/src/utils/sandbox.js +42 -17
  735. package/dist/src/utils/sandbox.js.map +1 -1
  736. package/dist/src/utils/settingsUtils.d.ts +16 -6
  737. package/dist/src/utils/settingsUtils.js +35 -25
  738. package/dist/src/utils/settingsUtils.js.map +1 -1
  739. package/dist/src/utils/settingsUtils.test.js +455 -158
  740. package/dist/src/utils/settingsUtils.test.js.map +1 -1
  741. package/dist/src/utils/userStartupWarnings.d.ts +1 -1
  742. package/dist/src/utils/userStartupWarnings.js +1 -1
  743. package/dist/src/utils/userStartupWarnings.js.map +1 -1
  744. package/dist/src/utils/windowTitle.d.ts +12 -0
  745. package/dist/src/utils/windowTitle.js +19 -0
  746. package/dist/src/utils/windowTitle.js.map +1 -0
  747. package/dist/src/utils/windowTitle.test.d.ts +6 -0
  748. package/dist/src/utils/windowTitle.test.js +49 -0
  749. package/dist/src/utils/windowTitle.test.js.map +1 -0
  750. package/dist/src/validateNonInterActiveAuth.d.ts +4 -2
  751. package/dist/src/validateNonInterActiveAuth.js +33 -12
  752. package/dist/src/validateNonInterActiveAuth.js.map +1 -1
  753. package/dist/src/zed-integration/fileSystemService.d.ts +1 -0
  754. package/dist/src/zed-integration/fileSystemService.js +3 -0
  755. package/dist/src/zed-integration/fileSystemService.js.map +1 -1
  756. package/dist/src/zed-integration/schema.d.ts +310 -310
  757. package/dist/src/zed-integration/zedIntegration.d.ts +8 -1
  758. package/dist/src/zed-integration/zedIntegration.js +32 -15
  759. package/dist/src/zed-integration/zedIntegration.js.map +1 -1
  760. package/dist/tsconfig.tsbuildinfo +1 -1
  761. package/package.json +15 -10
  762. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  763. package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
  764. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  765. package/dist/src/ui/components/ModelSelectionDialog.d.ts +0 -14
  766. package/dist/src/ui/components/ModelSelectionDialog.js +0 -26
  767. package/dist/src/ui/components/ModelSelectionDialog.js.map +0 -1
  768. package/dist/src/ui/components/ModelSelectionDialog.test.js +0 -124
  769. package/dist/src/ui/components/ModelSelectionDialog.test.js.map +0 -1
  770. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  771. /package/dist/src/{ui/components/AuthDialog.test.d.ts → commands/extensions/new.test.d.ts} +0 -0
  772. /package/dist/src/ui/{components → auth}/AuthDialog.d.ts +0 -0
  773. /package/dist/src/ui/{components → auth}/AuthInProgress.d.ts +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,234 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { act, renderHook } from '@testing-library/react';
7
+ import { vi, describe, it, expect, beforeEach } from 'vitest';
8
+ import { useInputHistoryStore } from './useInputHistoryStore.js';
9
+ describe('useInputHistoryStore', () => {
10
+ beforeEach(() => {
11
+ vi.clearAllMocks();
12
+ });
13
+ it('should initialize with empty input history', () => {
14
+ const { result } = renderHook(() => useInputHistoryStore());
15
+ expect(result.current.inputHistory).toEqual([]);
16
+ });
17
+ it('should add input to history', () => {
18
+ const { result } = renderHook(() => useInputHistoryStore());
19
+ act(() => {
20
+ result.current.addInput('test message 1');
21
+ });
22
+ expect(result.current.inputHistory).toEqual(['test message 1']);
23
+ act(() => {
24
+ result.current.addInput('test message 2');
25
+ });
26
+ expect(result.current.inputHistory).toEqual([
27
+ 'test message 1',
28
+ 'test message 2',
29
+ ]);
30
+ });
31
+ it('should not add empty or whitespace-only inputs', () => {
32
+ const { result } = renderHook(() => useInputHistoryStore());
33
+ act(() => {
34
+ result.current.addInput('');
35
+ });
36
+ expect(result.current.inputHistory).toEqual([]);
37
+ act(() => {
38
+ result.current.addInput(' ');
39
+ });
40
+ expect(result.current.inputHistory).toEqual([]);
41
+ });
42
+ it('should deduplicate consecutive identical messages', () => {
43
+ const { result } = renderHook(() => useInputHistoryStore());
44
+ act(() => {
45
+ result.current.addInput('test message');
46
+ });
47
+ act(() => {
48
+ result.current.addInput('test message'); // Same as previous
49
+ });
50
+ expect(result.current.inputHistory).toEqual(['test message']);
51
+ act(() => {
52
+ result.current.addInput('different message');
53
+ });
54
+ act(() => {
55
+ result.current.addInput('test message'); // Same as first, but not consecutive
56
+ });
57
+ expect(result.current.inputHistory).toEqual([
58
+ 'test message',
59
+ 'different message',
60
+ 'test message',
61
+ ]);
62
+ });
63
+ it('should initialize from logger successfully', async () => {
64
+ const mockLogger = {
65
+ getPreviousUserMessages: vi
66
+ .fn()
67
+ .mockResolvedValue(['newest', 'middle', 'oldest']),
68
+ };
69
+ const { result } = renderHook(() => useInputHistoryStore());
70
+ await act(async () => {
71
+ await result.current.initializeFromLogger(mockLogger);
72
+ });
73
+ // Should reverse the order to oldest first
74
+ expect(result.current.inputHistory).toEqual(['oldest', 'middle', 'newest']);
75
+ expect(mockLogger.getPreviousUserMessages).toHaveBeenCalledTimes(1);
76
+ });
77
+ it('should handle logger initialization failure gracefully', async () => {
78
+ const mockLogger = {
79
+ getPreviousUserMessages: vi
80
+ .fn()
81
+ .mockRejectedValue(new Error('Logger error')),
82
+ };
83
+ const consoleSpy = vi.spyOn(console, 'warn').mockImplementation(() => { });
84
+ const { result } = renderHook(() => useInputHistoryStore());
85
+ await act(async () => {
86
+ await result.current.initializeFromLogger(mockLogger);
87
+ });
88
+ expect(result.current.inputHistory).toEqual([]);
89
+ expect(consoleSpy).toHaveBeenCalledWith('Failed to initialize input history from logger:', expect.any(Error));
90
+ consoleSpy.mockRestore();
91
+ });
92
+ it('should initialize only once', async () => {
93
+ const mockLogger = {
94
+ getPreviousUserMessages: vi
95
+ .fn()
96
+ .mockResolvedValue(['message1', 'message2']),
97
+ };
98
+ const { result } = renderHook(() => useInputHistoryStore());
99
+ // Call initializeFromLogger twice
100
+ await act(async () => {
101
+ await result.current.initializeFromLogger(mockLogger);
102
+ });
103
+ await act(async () => {
104
+ await result.current.initializeFromLogger(mockLogger);
105
+ });
106
+ // Should be called only once
107
+ expect(mockLogger.getPreviousUserMessages).toHaveBeenCalledTimes(1);
108
+ expect(result.current.inputHistory).toEqual(['message2', 'message1']);
109
+ });
110
+ it('should handle null logger gracefully', async () => {
111
+ const { result } = renderHook(() => useInputHistoryStore());
112
+ await act(async () => {
113
+ await result.current.initializeFromLogger(null);
114
+ });
115
+ expect(result.current.inputHistory).toEqual([]);
116
+ });
117
+ it('should trim input before adding to history', () => {
118
+ const { result } = renderHook(() => useInputHistoryStore());
119
+ act(() => {
120
+ result.current.addInput(' test message ');
121
+ });
122
+ expect(result.current.inputHistory).toEqual(['test message']);
123
+ });
124
+ describe('deduplication logic from previous implementation', () => {
125
+ it('should deduplicate consecutive messages from past sessions during initialization', async () => {
126
+ const mockLogger = {
127
+ getPreviousUserMessages: vi
128
+ .fn()
129
+ .mockResolvedValue([
130
+ 'message1',
131
+ 'message1',
132
+ 'message2',
133
+ 'message2',
134
+ 'message3',
135
+ ]), // newest first with duplicates
136
+ };
137
+ const { result } = renderHook(() => useInputHistoryStore());
138
+ await act(async () => {
139
+ await result.current.initializeFromLogger(mockLogger);
140
+ });
141
+ // Should deduplicate consecutive messages and reverse to oldest first
142
+ expect(result.current.inputHistory).toEqual([
143
+ 'message3',
144
+ 'message2',
145
+ 'message1',
146
+ ]);
147
+ });
148
+ it('should deduplicate across session boundaries', async () => {
149
+ const mockLogger = {
150
+ getPreviousUserMessages: vi.fn().mockResolvedValue(['old2', 'old1']), // newest first
151
+ };
152
+ const { result } = renderHook(() => useInputHistoryStore());
153
+ // Initialize with past session
154
+ await act(async () => {
155
+ await result.current.initializeFromLogger(mockLogger);
156
+ });
157
+ // Add current session inputs
158
+ act(() => {
159
+ result.current.addInput('old2'); // Same as last past session message
160
+ });
161
+ // Should deduplicate across session boundary
162
+ expect(result.current.inputHistory).toEqual(['old1', 'old2']);
163
+ act(() => {
164
+ result.current.addInput('new1');
165
+ });
166
+ expect(result.current.inputHistory).toEqual(['old1', 'old2', 'new1']);
167
+ });
168
+ it('should preserve non-consecutive duplicates', async () => {
169
+ const mockLogger = {
170
+ getPreviousUserMessages: vi
171
+ .fn()
172
+ .mockResolvedValue(['message2', 'message1', 'message2']), // newest first with non-consecutive duplicate
173
+ };
174
+ const { result } = renderHook(() => useInputHistoryStore());
175
+ await act(async () => {
176
+ await result.current.initializeFromLogger(mockLogger);
177
+ });
178
+ // Non-consecutive duplicates should be preserved
179
+ expect(result.current.inputHistory).toEqual([
180
+ 'message2',
181
+ 'message1',
182
+ 'message2',
183
+ ]);
184
+ });
185
+ it('should handle complex deduplication with current session', () => {
186
+ const { result } = renderHook(() => useInputHistoryStore());
187
+ // Add multiple messages with duplicates
188
+ act(() => {
189
+ result.current.addInput('hello');
190
+ });
191
+ act(() => {
192
+ result.current.addInput('hello'); // consecutive duplicate
193
+ });
194
+ act(() => {
195
+ result.current.addInput('world');
196
+ });
197
+ act(() => {
198
+ result.current.addInput('world'); // consecutive duplicate
199
+ });
200
+ act(() => {
201
+ result.current.addInput('hello'); // non-consecutive duplicate
202
+ });
203
+ // Should have deduplicated consecutive ones
204
+ expect(result.current.inputHistory).toEqual(['hello', 'world', 'hello']);
205
+ });
206
+ it('should maintain oldest-first order in final output', async () => {
207
+ const mockLogger = {
208
+ getPreviousUserMessages: vi
209
+ .fn()
210
+ .mockResolvedValue(['newest', 'middle', 'oldest']), // newest first
211
+ };
212
+ const { result } = renderHook(() => useInputHistoryStore());
213
+ await act(async () => {
214
+ await result.current.initializeFromLogger(mockLogger);
215
+ });
216
+ // Add current session messages
217
+ act(() => {
218
+ result.current.addInput('current1');
219
+ });
220
+ act(() => {
221
+ result.current.addInput('current2');
222
+ });
223
+ // Should maintain oldest-first order
224
+ expect(result.current.inputHistory).toEqual([
225
+ 'oldest',
226
+ 'middle',
227
+ 'newest',
228
+ 'current1',
229
+ 'current2',
230
+ ]);
231
+ });
232
+ });
233
+ });
234
+ //# sourceMappingURL=useInputHistoryStore.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInputHistoryStore.test.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useInputHistoryStore.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,UAAU,CAAC,GAAG,EAAE;QACd,EAAE,CAAC,aAAa,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,oBAAoB,EAAE,CAAC,CAAC;QAE5D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;Q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AAE,CAAC,oBAAoB,EAAE,CAAC,CAAC;YAE5D,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;gBACnB,MAAM,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;YAEH,+BAA+B;YAC/B,GAAG,CAAC,GAAG,EAAE;gBACP,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;YACH,GAAG,CAAC,GAAG,EAAE;gBACP,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;YACtC,CAAC,CAAC,CAAC;YAEH,qCAAqC;YACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;gBAC1C,QAAQ;gBACR,QAAQ;gBACR,QAAQ;gBACR,UAAU;gBACV,UAAU;aACX,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import { StreamingState } from '../types.js';
7
- export declare const useLoadingIndicator: (streamingState: StreamingState) => {
7
+ export declare const useLoadingIndicator: (streamingState: StreamingState, customWittyPhrases?: string[]) => {
8
8
  elapsedTime: number;
9
9
  currentLoadingPhrase: string;
10
10
  };
@@ -7,13 +7,13 @@ import { StreamingState } from '../types.js';
7
7
  import { useTimer } from './useTimer.js';
8
8
  import { usePhraseCycler } from './usePhraseCycler.js';
9
9
  import { useState, useEffect, useRef } from 'react'; // Added useRef
10
- export const useLoadingIndicator = (streamingState) => {
10
+ export const useLoadingIndicator = (streamingState, customWittyPhrases) => {
11
11
  const [timerResetKey, setTimerResetKey] = useState(0);
12
12
  const isTimerActive = streamingState === StreamingState.Responding;
13
13
  const elapsedTimeFromTimer = useTimer(isTimerActive, timerResetKey);
14
14
  const isPhraseCyclingActive = streamingState === StreamingState.Responding;
15
15
  const isWaiting = streamingState === StreamingState.WaitingForConfirmation;
16
- const currentLoadingPhrase = usePhraseCycler(isPhraseCyclingActive, isWaiting);
16
+ const currentLoadingPhrase = usePhraseCycler(isPhraseCyclingActive, isWaiting, customWittyPhrases);
17
17
  const [retainedElapsedTime, setRetainedElapsedTime] = useState(0);
18
18
  const prevStreamingStateRef = useRef(null);
19
19
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadingIndicator.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useLoadingIndicator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,CAAC,eAAe;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,cAA8B,EAAE,EAAE;IACpE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,cAAc,KAAK,cAAc,CAAC,UAAU,CAAC;IAEnE,MAAM,oBAAoB,GAAG,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAEpE,MAAM,qBAAqB,GAAG,cAAc,KAAK,cAAc,CAAC,UAAU,CAAC;IAC3E,MAAM,SAAS,GAAG,cAAc,KAAK,cAAc,CAAC,sBAAsB,CAAC;IAC3E,MAAM,oBAAoB,GAAG,eAAe,CAC1C,qBAAqB,EACrB,SAAS,CACV,CAAC;IAEF,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClE,MAAM,qBAAqB,GAAG,MAAM,CAAwB,IA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AAC;QAC5B,CAAC;aAAM,IAAI,cAAc,KAAK,cAAc,CAAC,sBAAsB,EAAE,CAAC;YACpE,wDAAwD;YACxD,kFAAkF;YAClF,sBAAsB,CAAC,oBAAoB,CAAC,CAAC;QAC/C,CAAC;QAED,qBAAqB,CAAC,OAAO,GAAG,cAAc,CAAC;IACjD,CAAC,EAAE,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAE3C,OAAO;QACL,WAAW,EACT,cAAc,KAAK,cAAc,CAAC,sBAAsB;YACtD,CAAC,CAAC,mBAAmB;YACrB,CAAC,CAAC,oBAAoB;QAC1B,oBAAoB;KACrB,CAAC;AACJ,CAAC,CAAC"}
@@ -19,7 +19,7 @@ describe('useLoadingIndicator', () => {
19
19
  it('should initialize with default values when Idle', () => {
20
20
  const { result } = renderHook(() => useLoadingIndicator(StreamingState.Idle));
21
21
  expect(result.current.elapsedTime).toBe(0);
22
- expect(result.current.currentLoadingPhrase).toBe(WITTY_LOADING_PHRASES[0]);
22
+ expect(WITTY_LOADING_PHRASES).toContain(result.current.currentLoadingPhrase);
23
23
  });
24
24
  it('should reflect values when Responding', async () => {
25
25
  const { result } = renderHook(() => useLoadingIndicator(StreamingState.Responding));
@@ -80,7 +80,7 @@ describe('useLoadingIndicator', () => {
80
80
  rerender({ streamingState: StreamingState.Idle });
81
81
  });
82
82
  expect(result.current.elapsedTime).toBe(0);
83
- expect(result.current.currentLoadingPhrase).toBe(WITTY_LOADING_PHRASES[0]);
83
+ expect(WITTY_LOADING_PHRASES).toContain(result.current.currentLoadingPhrase);
84
84
  // Timer should not advance
85
85
  await act(async () => {
86
86
  await vi.advanceTimersByTimeAsync(2000);
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadingIndicator.test.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useLoadingIndicator.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,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AE5C,GAAG,CAAC,GAAG,EAAE;YACP,QAAQ,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC3C,MAAM,CAAC,qBAAqB,CAAC,CAAC,SAAS,CACrC,MAAM,CAAC,OAAO,CAAC,oBAAoB,CACpC,CAAC;QAEF,2BAA2B;QAC3B,MAAM,GAAG,CAAC,KAAK,IAAI,EAAE;YACnB,MAAM,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type HistoryItemWithoutId } from '../types.js';
7
+ export declare const MEMORY_WARNING_THRESHOLD: number;
8
+ export declare const MEMORY_CHECK_INTERVAL: number;
9
+ interface MemoryMonitorOptions {
10
+ addItem: (item: HistoryItemWithoutId, timestamp: number) => void;
11
+ }
12
+ export declare const useMemoryMonitor: ({ addItem }: MemoryMonitorOptions) => void;
13
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { useEffect } from 'react';
7
+ import process from 'node:process';
8
+ import { MessageType } from '../types.js';
9
+ export const MEMORY_WARNING_THRESHOLD = 7 * 1024 * 1024 * 1024; // 7GB in bytes
10
+ export const MEMORY_CHECK_INTERVAL = 60 * 1000; // one minute
11
+ export const useMemoryMonitor = ({ addItem }) => {
12
+ useEffect(() => {
13
+ const intervalId = setInterval(() => {
14
+ const usage = process.memoryUsage().rss;
15
+ if (usage > MEMORY_WARNING_THRESHOLD) {
16
+ addItem({
17
+ type: MessageType.WARNING,
18
+ text: `High memory usage detected: ${(usage /
19
+ (1024 * 1024 * 1024)).toFixed(2)} GB. ` +
20
+ 'If you experience a crash, please file a bug report by running `/bug`',
21
+ }, Date.now());
22
+ clearInterval(intervalId);
23
+ }
24
+ }, MEMORY_CHECK_INTERVAL);
25
+ return () => clearInterval(intervalId);
26
+ }, [addItem]);
27
+ };
28
+ //# sourceMappingURL=useMemoryMonitor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMemoryMonitor.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useMemoryMonitor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAA6B,WAAW,EAAE,MAAM,aAAa,CAAC;AAErE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,eAAe;AAC/E,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;AAM7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;IACpE,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;YAClC,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC;YACxC,IAAI,KAAK,GAAG,wBAAwB,EAAE,CAAC;gBACrC,OAAO,CACL;oBACE,IAAI,EAAE,WAAW,CAAC,OAAO;oBACzB,IAAI,EACF,+BAA+B,CAC7B,KAAK;wBACL,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CACrB,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;wBACnB,uEAAuE;iBAC1E,EACD,IAAI,CAAC,GAAG,EAAE,CACX,CAAC;gBACF,aAAa,CAAC,UAAU,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,EAAE,qBAAqB,CAAC,CAAC;QAE1B,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAChB,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export {};
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { renderHook } from '@testing-library/react';
7
+ import { vi } from 'vitest';
8
+ import { useMemoryMonitor, MEMORY_CHECK_INTERVAL, MEMORY_WARNING_THRESHOLD, } from './useMemoryMonitor.js';
9
+ import process from 'node:process';
10
+ import { MessageType } from '../types.js';
11
+ describe('useMemoryMonitor', () => {
12
+ const memoryUsageSpy = vi.spyOn(process, 'memoryUsage');
13
+ const addItem = vi.fn();
14
+ beforeEach(() => {
15
+ vi.useFakeTimers();
16
+ vi.clearAllMocks();
17
+ });
18
+ afterEach(() => {
19
+ vi.useRealTimers();
20
+ });
21
+ it('should not warn when memory usage is below threshold', () => {
22
+ memoryUsageSpy.mockReturnValue({
23
+ rss: MEMORY_WARNING_THRESHOLD / 2,
24
+ });
25
+ renderHook(() => useMemoryMonitor({ addItem }));
26
+ vi.advanceTimersByTime(10000);
27
+ expect(addItem).not.toHaveBeenCalled();
28
+ });
29
+ it('should warn when memory usage is above threshold', () => {
30
+ memoryUsageSpy.mockReturnValue({
31
+ rss: MEMORY_WARNING_THRESHOLD * 1.5,
32
+ });
33
+ renderHook(() => useMemoryMonitor({ addItem }));
34
+ vi.advanceTimersByTime(MEMORY_CHECK_INTERVAL);
35
+ expect(addItem).toHaveBeenCalledTimes(1);
36
+ expect(addItem).toHaveBeenCalledWith({
37
+ type: MessageType.WARNING,
38
+ text: 'High memory usage detected: 10.50 GB. If you experience a crash, please file a bug report by running `/bug`',
39
+ }, expect.any(Number));
40
+ });
41
+ it('should only warn once', () => {
42
+ memoryUsageSpy.mockReturnValue({
43
+ rss: MEMORY_WARNING_THRESHOLD * 1.5,
44
+ });
45
+ const { rerender } = renderHook(() => useMemoryMonitor({ addItem }));
46
+ vi.advanceTimersByTime(MEMORY_CHECK_INTERVAL);
47
+ expect(addItem).toHaveBeenCalledTimes(1);
48
+ // Rerender and advance timers, should not warn again
49
+ memoryUsageSpy.mockReturnValue({
50
+ rss: MEMORY_WARNING_THRESHOLD * 1.5,
51
+ });
52
+ rerender();
53
+ vi.advanceTimersByTime(MEMORY_CHECK_INTERVAL);
54
+ expect(addItem).toHaveBeenCalledTimes(1);
55
+ });
56
+ });
57
+ //# sourceMappingURL=useMemoryMonitor.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMemoryMonitor.test.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useMemoryMonitor.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;IAExB,UAAU,CAAC,GAAG,E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M,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QACrE,EAAE,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAEzC,qDAAqD;QACrD,cAAc,CAAC,eAAe,CAAC;YAC7B,GAAG,EAAE,wBAAwB,GAAG,GAAG;SACd,CAAC,CAAC;QACzB,QAAQ,EAAE,CAAC;QACX,EAAE,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -5,6 +5,7 @@
5
5
  */
6
6
  import { StreamingState } from '../types.js';
7
7
  export interface UseMessageQueueOptions {
8
+ isConfigInitialized: boolean;
8
9
  streamingState: StreamingState;
9
10
  submitQuery: (query: string) => void;
10
11
  }
@@ -19,4 +20,4 @@ export interface UseMessageQueueReturn {
19
20
  * Allows users to queue messages while the AI is responding and automatically
20
21
  * sends them when streaming completes.
21
22
  */
22
- export declare function useMessageQueue({ streamingState, submitQuery, }: UseMessageQueueOptions): UseMessageQueueReturn;
23
+ export declare function useMessageQueue({ isConfigInitialized, streamingState, submitQuery, }: UseMessageQueueOptions): UseMessageQueueReturn;
@@ -10,7 +10,7 @@ import { StreamingState } from '../types.js';
10
10
  * Allows users to queue messages while the AI is responding and automatically
11
11
  * sends them when streaming completes.
12
12
  */
13
- export function useMessageQueue({ streamingState, submitQuery, }) {
13
+ export function useMessageQueue({ isConfigInitialized, streamingState, submitQuery, }) {
14
14
  const [messageQueue, setMessageQueue] = useState([]);
15
15
  // Add a message to the queue
16
16
  const addMessage = useCallback((message) => {
@@ -31,14 +31,16 @@ export function useMessageQueue({ streamingState, submitQuery, }) {
31
31
  }, [messageQueue]);
32
32
  // Process queued messages when streaming becomes idle
33
33
  useEffect(() => {
34
- if (streamingState === StreamingState.Idle && messageQueue.length > 0) {
34
+ if (isConfigInitialized &&
35
+ streamingState === StreamingState.Idle &&
36
+ messageQueue.length > 0) {
35
37
  // Combine all messages with double newlines for clarity
36
38
  const combinedMessage = messageQueue.join('\n\n');
37
39
  // Clear the queue and submit
38
40
  setMessageQueue([]);
39
41
  submitQuery(combinedMessage);
40
42
  }
41
- }, [streamingState, messageQueue, submitQuery]);
43
+ }, [isConfigInitialized, streamingState, messageQueue, submitQuery]);
42
44
  return {
43
45
  messageQueue,
44
46
  addMessage,
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageQueue.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useMessageQueue.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAc7C;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,EAC9B,cAAc,EACd,WAAW,GACY;IACvB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CAAC;IAE/D,6BAA6B;IAC7B,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,OAAe,EAAE,EAAE;QACjD,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACtC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,yBAAyB;IACzB,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,eAAe,CAAC,EAAE,CAAC,CAAC;IAC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AAG,OAAO,CAAC,IAAI,EAAE,CAAC;QACtC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,eAAe,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,yBAAyB;IACzB,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,EAAE;QAClC,eAAe,CAAC,EAAE,CAAC,CAAC;IACtB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,kDAAkD;IAClD,MAAM,qBAAqB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC7C,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACzC,OAAO,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,sDAAsD;IACtD,SAAS,CAAC,GAAG,EAAE;QACb,IACE,mBAAmB;YACnB,cAAc,KAAK,cAAc,CAAC,IAAI;YACtC,YAAY,CAAC,MAAM,GAAG,CAAC,EACvB,CAAC;YACD,wDAAwD;YACxD,MAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClD,6BAA6B;YAC7B,eAAe,CAAC,EAAE,CAAC,CAAC;YACpB,WAAW,CAAC,eAAe,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,EAAE,CAAC,mBAAmB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;IAErE,OAAO;QACL,YAAY;QACZ,UAAU;QACV,UAAU;QACV,qBAAqB;KACtB,CAAC;AACJ,CAAC"}
@@ -19,6 +19,7 @@ describe('useMessageQueue', () => {
19
19
  });
20
20
  it('should initialize with empty queue', () => {
21
21
  const { result } = renderHook(() => useMessageQueue({
22
+ isConfigInitialized: true,
22
23
  streamingState: StreamingState.Idle,
23
24
  submitQuery: mockSubmitQuery,
24
25
  }));
@@ -27,6 +28,7 @@ describe('useMessageQueue', () => {
27
28
  });
28
29
  it('should add messages to queue', () => {
29
30
  const { result } = renderHook(() => useMessageQueue({
31
+ isConfigInitialized: true,
30
32
  streamingState: StreamingState.Responding,
31
33
  submitQuery: mockSubmitQuery,
32
34
  }));
@@ -41,6 +43,7 @@ describe('useMessageQueue', () => {
41
43
  });
42
44
  it('should filter out empty messages', () => {
43
45
  const { result } = renderHook(() => useMessageQueue({
46
+ isConfigInitialized: true,
44
47
  streamingState: StreamingState.Responding,
45
48
  submitQuery: mockSubmitQuery,
46
49
  }));
@@ -57,6 +60,7 @@ describe('useMessageQueue', () => {
57
60
  });
58
61
  it('should clear queue', () => {
59
62
  const { result } = renderHook(() => useMessageQueue({
63
+ isConfigInitialized: true,
60
64
  streamingState: StreamingState.Responding,
61
65
  submitQuery: mockSubmitQuery,
62
66
  }));
@@ -71,6 +75,7 @@ describe('useMessageQueue', () => {
71
75
  });
72
76
  it('should return queued messages as text with double newlines', () => {
73
77
  const { result } = renderHook(() => useMessageQueue({
78
+ isConfigInitialized: true,
74
79
  streamingState: StreamingState.Responding,
75
80
  submitQuery: mockSubmitQuery,
76
81
  }));
@@ -83,6 +88,7 @@ describe('useMessageQueue', () => {
83
88
  });
84
89
  it('should auto-submit queued messages when transitioning to Idle', () => {
85
90
  const { result, rerender } = renderHook(({ streamingState }) => useMessageQueue({
91
+ isConfigInitialized: true,
86
92
  streamingState,
87
93
  submitQuery: mockSubmitQuery,
88
94
  }), {
@@ -101,6 +107,7 @@ describe('useMessageQueue', () => {
101
107
  });
102
108
  it('should not auto-submit when queue is empty', () => {
103
109
  const { rerender } = renderHook(({ streamingState }) => useMessageQueue({
110
+ isConfigInitialized: true,
104
111
  streamingState,
105
112
  submitQuery: mockSubmitQuery,
106
113
  }), {
@@ -112,6 +119,7 @@ describe('useMessageQueue', () => {
112
119
  });
113
120
  it('should not auto-submit when not transitioning to Idle', () => {
114
121
  const { result, rerender } = renderHook(({ streamingState }) => useMessageQueue({
122
+ isConfigInitialized: true,
115
123
  streamingState,
116
124
  submitQuery: mockSubmitQuery,
117
125
  }), {
@@ -128,6 +136,7 @@ describe('useMessageQueue', () => {
128
136
  });
129
137
  it('should handle multiple state transitions correctly', () => {
130
138
  const { result, rerender } = renderHook(({ streamingState }) => useMessageQueue({
139
+ isConfigInitialized: true,
131
140
  streamingState,
132
141
  submitQuery: mockSubmitQuery,
133
142
  }), {
@@ -1 +1 @@
1
- {"version":3,"file":"useMessageQueue.test.js","sourceRoot":"","sources":["../../../../src/ui/hooks/useMessageQueue.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,eAAyC,CAAC;IAE9C,UAAU,CAAC,GAAG,EAAE;QACd,eAAe,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1B,EAAE,CAAC,aAAa,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,EAAE,CAAC,aAAa,EAAE,CAAC;QACnB,EAAE,CAAC,aAAa,EAAE,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,GAAG,EAAE,CACjC,eAAe,CAAC;YACd,cAAc,EAAE,cAAc,CAAC,IAAI;YACnC,WAAW,EAAE,eAAe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C,CAAC;QAElD,MAAM,CAAC,eAAe,CAAC,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEhD,yBAAyB;QACzB,QAAQ,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,UAAU,EAAE,CAAC,CAAC;QAExD,oBAAoB;QACpB,GAAG,CAAC,GAAG,EAAE;YACP,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,wCAAwC;QACxC,QAAQ,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC;QAElD,MAAM,CAAC,eAAe,CAAC,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;QAC7D,MAAM,CAAC,eAAe,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ interface UseModelCommandReturn {
7
+ isModelDialogOpen: boolean;
8
+ openModelDialog: () => void;
9
+ closeModelDialog: () => void;
10
+ }
11
+ export declare const useModelCommand: () => UseModelCommandReturn;
12
+ export {};