@rdmind/rdmind 0.0.6 → 0.0.8

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 (1090) hide show
  1. package/dist/.last_build +0 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +29 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/package.json +87 -0
  6. package/dist/src/commands/extensions/disable.d.ts +14 -0
  7. package/dist/src/commands/extensions/disable.js +42 -0
  8. package/dist/src/commands/extensions/disable.js.map +1 -0
  9. package/dist/src/commands/extensions/enable.d.ts +14 -0
  10. package/dist/src/commands/extensions/enable.js +48 -0
  11. package/dist/src/commands/extensions/enable.js.map +1 -0
  12. package/dist/src/commands/extensions/install.d.ts +13 -0
  13. package/dist/src/commands/extensions/install.js +48 -0
  14. package/dist/src/commands/extensions/install.js.map +1 -0
  15. package/dist/src/commands/extensions/install.test.d.ts +6 -0
  16. package/dist/src/commands/extensions/install.test.js +25 -0
  17. package/dist/src/commands/extensions/install.test.js.map +1 -0
  18. package/dist/src/commands/extensions/list.d.ts +8 -0
  19. package/dist/src/commands/extensions/list.js +32 -0
  20. package/dist/src/commands/extensions/list.js.map +1 -0
  21. package/dist/src/commands/extensions/uninstall.d.ts +12 -0
  22. package/dist/src/commands/extensions/uninstall.js +38 -0
  23. package/dist/src/commands/extensions/uninstall.js.map +1 -0
  24. package/dist/src/commands/extensions/uninstall.test.d.ts +6 -0
  25. package/dist/src/commands/extensions/uninstall.test.js +18 -0
  26. package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
  27. package/dist/src/commands/extensions/update.d.ts +12 -0
  28. package/dist/src/commands/extensions/update.js +38 -0
  29. package/dist/src/commands/extensions/update.js.map +1 -0
  30. package/dist/src/commands/extensions.d.ts +7 -0
  31. package/dist/src/commands/extensions.js +29 -0
  32. package/dist/src/commands/extensions.js.map +1 -0
  33. package/dist/src/commands/mcp/add.d.ts +7 -0
  34. package/dist/src/commands/mcp/add.js +166 -0
  35. package/dist/src/commands/mcp/add.js.map +1 -0
  36. package/dist/src/commands/mcp/list.d.ts +8 -0
  37. package/dist/src/commands/mcp/list.js +110 -0
  38. package/dist/src/commands/mcp/list.js.map +1 -0
  39. package/dist/src/commands/mcp/remove.d.ts +7 -0
  40. package/dist/src/commands/mcp/remove.js +44 -0
  41. package/dist/src/commands/mcp/remove.js.map +1 -0
  42. package/dist/src/commands/mcp.d.ts +7 -0
  43. package/dist/src/commands/mcp.js +23 -0
  44. package/dist/src/commands/mcp.js.map +1 -0
  45. package/dist/src/config/auth.d.ts +9 -0
  46. package/dist/src/config/auth.js +54 -0
  47. package/dist/src/config/auth.js.map +1 -0
  48. package/dist/src/config/auth.test.d.ts +6 -0
  49. package/dist/src/config/auth.test.js +57 -0
  50. package/dist/src/config/auth.test.js.map +1 -0
  51. package/dist/src/config/config.d.ts +47 -0
  52. package/dist/src/config/config.js +525 -0
  53. package/dist/src/config/config.js.map +1 -0
  54. package/dist/src/config/extension.d.ts +60 -0
  55. package/dist/src/config/extension.js +377 -0
  56. package/dist/src/config/extension.js.map +1 -0
  57. package/dist/src/config/extensions/variableSchema.d.ts +28 -0
  58. package/dist/src/config/extensions/variableSchema.js +18 -0
  59. package/dist/src/config/extensions/variableSchema.js.map +1 -0
  60. package/dist/src/config/extensions/variables.d.ts +17 -0
  61. package/dist/src/config/extensions/variables.js +40 -0
  62. package/dist/src/config/extensions/variables.js.map +1 -0
  63. package/dist/src/config/extensions/variables.test.d.ts +6 -0
  64. package/dist/src/config/extensions/variables.test.js +17 -0
  65. package/dist/src/config/extensions/variables.test.js.map +1 -0
  66. package/dist/src/config/keyBindings.d.ts +66 -0
  67. package/dist/src/config/keyBindings.js +141 -0
  68. package/dist/src/config/keyBindings.js.map +1 -0
  69. package/dist/src/config/keyBindings.test.d.ts +6 -0
  70. package/dist/src/config/keyBindings.test.js +51 -0
  71. package/dist/src/config/keyBindings.test.js.map +1 -0
  72. package/dist/src/config/sandboxConfig.d.ts +13 -0
  73. package/dist/src/config/sandboxConfig.js +73 -0
  74. package/dist/src/config/sandboxConfig.js.map +1 -0
  75. package/dist/src/config/settings.d.ts +62 -0
  76. package/dist/src/config/settings.js +674 -0
  77. package/dist/src/config/settings.js.map +1 -0
  78. package/dist/src/config/settingsSchema.d.ts +884 -0
  79. package/dist/src/config/settingsSchema.js +873 -0
  80. package/dist/src/config/settingsSchema.js.map +1 -0
  81. package/dist/src/config/settingsSchema.test.d.ts +6 -0
  82. package/dist/src/config/settingsSchema.test.js +194 -0
  83. package/dist/src/config/settingsSchema.test.js.map +1 -0
  84. package/dist/src/config/trustedFolders.d.ts +37 -0
  85. package/dist/src/config/trustedFolders.js +118 -0
  86. package/dist/src/config/trustedFolders.js.map +1 -0
  87. package/dist/src/config/trustedFolders.test.d.ts +6 -0
  88. package/dist/src/config/trustedFolders.test.js +164 -0
  89. package/dist/src/config/trustedFolders.test.js.map +1 -0
  90. package/dist/src/gemini.d.ts +11 -0
  91. package/dist/src/gemini.js +284 -0
  92. package/dist/src/gemini.js.map +1 -0
  93. package/dist/src/gemini.test.d.ts +6 -0
  94. package/dist/src/gemini.test.js +247 -0
  95. package/dist/src/gemini.test.js.map +1 -0
  96. package/dist/src/generated/git-commit.d.ts +7 -0
  97. package/dist/src/generated/git-commit.js +10 -0
  98. package/dist/src/generated/git-commit.js.map +1 -0
  99. package/dist/src/nonInteractiveCli.d.ts +7 -0
  100. package/dist/src/nonInteractiveCli.js +92 -0
  101. package/dist/src/nonInteractiveCli.js.map +1 -0
  102. package/dist/src/patches/is-in-ci.d.ts +7 -0
  103. package/dist/src/patches/is-in-ci.js +15 -0
  104. package/dist/src/patches/is-in-ci.js.map +1 -0
  105. package/dist/src/prompts/RDMind.md +126 -0
  106. package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
  107. package/dist/src/services/BuiltinCommandLoader.js +99 -0
  108. package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
  109. package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
  110. package/dist/src/services/BuiltinCommandLoader.test.js +130 -0
  111. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
  112. package/dist/src/services/CommandService.d.ts +55 -0
  113. package/dist/src/services/CommandService.js +90 -0
  114. package/dist/src/services/CommandService.js.map +1 -0
  115. package/dist/src/services/CommandService.test.d.ts +6 -0
  116. package/dist/src/services/CommandService.test.js +233 -0
  117. package/dist/src/services/CommandService.test.js.map +1 -0
  118. package/dist/src/services/FileCommandLoader.d.ts +49 -0
  119. package/dist/src/services/FileCommandLoader.js +220 -0
  120. package/dist/src/services/FileCommandLoader.js.map +1 -0
  121. package/dist/src/services/McpPromptLoader.d.ts +35 -0
  122. package/dist/src/services/McpPromptLoader.js +218 -0
  123. package/dist/src/services/McpPromptLoader.js.map +1 -0
  124. package/dist/src/services/McpPromptLoader.test.d.ts +6 -0
  125. package/dist/src/services/McpPromptLoader.test.js +114 -0
  126. package/dist/src/services/McpPromptLoader.test.js.map +1 -0
  127. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +16 -0
  128. package/dist/src/services/prompt-processors/argumentProcessor.js +21 -0
  129. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
  130. package/dist/src/services/prompt-processors/atFileProcessor.d.ts +12 -0
  131. package/dist/src/services/prompt-processors/atFileProcessor.js +62 -0
  132. package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
  133. package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +6 -0
  134. package/dist/src/services/prompt-processors/atFileProcessor.test.js +174 -0
  135. package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
  136. package/dist/src/services/prompt-processors/injectionParser.d.ts +29 -0
  137. package/dist/src/services/prompt-processors/injectionParser.js +60 -0
  138. package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
  139. package/dist/src/services/prompt-processors/injectionParser.test.d.ts +6 -0
  140. package/dist/src/services/prompt-processors/injectionParser.test.js +189 -0
  141. package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
  142. package/dist/src/services/prompt-processors/shellProcessor.d.ts +27 -0
  143. package/dist/src/services/prompt-processors/shellProcessor.js +121 -0
  144. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  145. package/dist/src/services/prompt-processors/types.d.ts +45 -0
  146. package/dist/src/services/prompt-processors/types.js +20 -0
  147. package/dist/src/services/prompt-processors/types.js.map +1 -0
  148. package/dist/src/services/types.d.ts +22 -0
  149. package/dist/src/services/types.js +7 -0
  150. package/dist/src/services/types.js.map +1 -0
  151. package/dist/src/test-utils/customMatchers.d.ts +14 -0
  152. package/dist/src/test-utils/customMatchers.js +40 -0
  153. package/dist/src/test-utils/customMatchers.js.map +1 -0
  154. package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
  155. package/dist/src/test-utils/mockCommandContext.js +90 -0
  156. package/dist/src/test-utils/mockCommandContext.js.map +1 -0
  157. package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
  158. package/dist/src/test-utils/mockCommandContext.test.js +51 -0
  159. package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
  160. package/dist/src/test-utils/render.d.ts +8 -0
  161. package/dist/src/test-utils/render.js +10 -0
  162. package/dist/src/test-utils/render.js.map +1 -0
  163. package/dist/src/ui/App.d.ts +15 -0
  164. package/dist/src/ui/App.js +840 -0
  165. package/dist/src/ui/App.js.map +1 -0
  166. package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
  167. package/dist/src/ui/IdeIntegrationNudge.js +52 -0
  168. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
  169. package/dist/src/ui/colors.d.ts +7 -0
  170. package/dist/src/ui/colors.js +54 -0
  171. package/dist/src/ui/colors.js.map +1 -0
  172. package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
  173. package/dist/src/ui/commands/aboutCommand.js +43 -0
  174. package/dist/src/ui/commands/aboutCommand.js.map +1 -0
  175. package/dist/src/ui/commands/agentsCommand.d.ts +7 -0
  176. package/dist/src/ui/commands/agentsCommand.js +32 -0
  177. package/dist/src/ui/commands/agentsCommand.js.map +1 -0
  178. package/dist/src/ui/commands/approvalModeCommand.d.ts +7 -0
  179. package/dist/src/ui/commands/approvalModeCommand.js +340 -0
  180. package/dist/src/ui/commands/approvalModeCommand.js.map +1 -0
  181. package/dist/src/ui/commands/approvalModeCommand.test.d.ts +6 -0
  182. package/dist/src/ui/commands/approvalModeCommand.test.js +293 -0
  183. package/dist/src/ui/commands/approvalModeCommand.test.js.map +1 -0
  184. package/dist/src/ui/commands/authCommand.d.ts +7 -0
  185. package/dist/src/ui/commands/authCommand.js +16 -0
  186. package/dist/src/ui/commands/authCommand.js.map +1 -0
  187. package/dist/src/ui/commands/bugCommand.d.ts +7 -0
  188. package/dist/src/ui/commands/bugCommand.js +31 -0
  189. package/dist/src/ui/commands/bugCommand.js.map +1 -0
  190. package/dist/src/ui/commands/chatCommand.d.ts +7 -0
  191. package/dist/src/ui/commands/chatCommand.js +235 -0
  192. package/dist/src/ui/commands/chatCommand.js.map +1 -0
  193. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  194. package/dist/src/ui/commands/clearCommand.js +27 -0
  195. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  196. package/dist/src/ui/commands/compressCommand.d.ts +7 -0
  197. package/dist/src/ui/commands/compressCommand.js +66 -0
  198. package/dist/src/ui/commands/compressCommand.js.map +1 -0
  199. package/dist/src/ui/commands/copyCommand.d.ts +7 -0
  200. package/dist/src/ui/commands/copyCommand.js +59 -0
  201. package/dist/src/ui/commands/copyCommand.js.map +1 -0
  202. package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
  203. package/dist/src/ui/commands/corgiCommand.js +15 -0
  204. package/dist/src/ui/commands/corgiCommand.js.map +1 -0
  205. package/dist/src/ui/commands/createCommand.d.ts +7 -0
  206. package/dist/src/ui/commands/createCommand.js +382 -0
  207. package/dist/src/ui/commands/createCommand.js.map +1 -0
  208. package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
  209. package/dist/src/ui/commands/directoryCommand.js +135 -0
  210. package/dist/src/ui/commands/directoryCommand.js.map +1 -0
  211. package/dist/src/ui/commands/docsCommand.d.ts +7 -0
  212. package/dist/src/ui/commands/docsCommand.js +31 -0
  213. package/dist/src/ui/commands/docsCommand.js.map +1 -0
  214. package/dist/src/ui/commands/editorCommand.d.ts +7 -0
  215. package/dist/src/ui/commands/editorCommand.js +16 -0
  216. package/dist/src/ui/commands/editorCommand.js.map +1 -0
  217. package/dist/src/ui/commands/extensionsCommand.d.ts +7 -0
  218. package/dist/src/ui/commands/extensionsCommand.js +31 -0
  219. package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
  220. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  221. package/dist/src/ui/commands/helpCommand.js +21 -0
  222. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  223. package/dist/src/ui/commands/ideCommand.d.ts +8 -0
  224. package/dist/src/ui/commands/ideCommand.js +216 -0
  225. package/dist/src/ui/commands/ideCommand.js.map +1 -0
  226. package/dist/src/ui/commands/importCommand.d.ts +10 -0
  227. package/dist/src/ui/commands/importCommand.js +762 -0
  228. package/dist/src/ui/commands/importCommand.js.map +1 -0
  229. package/dist/src/ui/commands/importCommand.test.d.ts +6 -0
  230. package/dist/src/ui/commands/importCommand.test.js +126 -0
  231. package/dist/src/ui/commands/importCommand.test.js.map +1 -0
  232. package/dist/src/ui/commands/initCommand.d.ts +7 -0
  233. package/dist/src/ui/commands/initCommand.js +115 -0
  234. package/dist/src/ui/commands/initCommand.js.map +1 -0
  235. package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
  236. package/dist/src/ui/commands/mcpCommand.js +424 -0
  237. package/dist/src/ui/commands/mcpCommand.js.map +1 -0
  238. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  239. package/dist/src/ui/commands/memoryCommand.js +225 -0
  240. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  241. package/dist/src/ui/commands/modelCommand.d.ts +7 -0
  242. package/dist/src/ui/commands/modelCommand.js +68 -0
  243. package/dist/src/ui/commands/modelCommand.js.map +1 -0
  244. package/dist/src/ui/commands/modelCommand.test.d.ts +6 -0
  245. package/dist/src/ui/commands/modelCommand.test.js +138 -0
  246. package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
  247. package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
  248. package/dist/src/ui/commands/privacyCommand.js +16 -0
  249. package/dist/src/ui/commands/privacyCommand.js.map +1 -0
  250. package/dist/src/ui/commands/quitCommand.d.ts +8 -0
  251. package/dist/src/ui/commands/quitCommand.js +59 -0
  252. package/dist/src/ui/commands/quitCommand.js.map +1 -0
  253. package/dist/src/ui/commands/rdconfigCommand.d.ts +7 -0
  254. package/dist/src/ui/commands/rdconfigCommand.js +104 -0
  255. package/dist/src/ui/commands/rdconfigCommand.js.map +1 -0
  256. package/dist/src/ui/commands/rdconfigCommand.test.d.ts +6 -0
  257. package/dist/src/ui/commands/rdconfigCommand.test.js +141 -0
  258. package/dist/src/ui/commands/rdconfigCommand.test.js.map +1 -0
  259. package/dist/src/ui/commands/rdflowCommand.d.ts +7 -0
  260. package/dist/src/ui/commands/rdflowCommand.js +284 -0
  261. package/dist/src/ui/commands/rdflowCommand.js.map +1 -0
  262. package/dist/src/ui/commands/rdflowCommand.test.d.ts +6 -0
  263. package/dist/src/ui/commands/rdflowCommand.test.js +127 -0
  264. package/dist/src/ui/commands/rdflowCommand.test.js.map +1 -0
  265. package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
  266. package/dist/src/ui/commands/restoreCommand.js +124 -0
  267. package/dist/src/ui/commands/restoreCommand.js.map +1 -0
  268. package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
  269. package/dist/src/ui/commands/settingsCommand.js +16 -0
  270. package/dist/src/ui/commands/settingsCommand.js.map +1 -0
  271. package/dist/src/ui/commands/setupGithubCommand.d.ts +9 -0
  272. package/dist/src/ui/commands/setupGithubCommand.js +154 -0
  273. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
  274. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
  275. package/dist/src/ui/commands/setupGithubCommand.test.js +167 -0
  276. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
  277. package/dist/src/ui/commands/statsCommand.d.ts +7 -0
  278. package/dist/src/ui/commands/statsCommand.js +54 -0
  279. package/dist/src/ui/commands/statsCommand.js.map +1 -0
  280. package/dist/src/ui/commands/summaryCommand.d.ts +7 -0
  281. package/dist/src/ui/commands/summaryCommand.js +149 -0
  282. package/dist/src/ui/commands/summaryCommand.js.map +1 -0
  283. package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
  284. package/dist/src/ui/commands/terminalSetupCommand.js +41 -0
  285. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
  286. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  287. package/dist/src/ui/commands/themeCommand.js +16 -0
  288. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  289. package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
  290. package/dist/src/ui/commands/toolsCommand.js +56 -0
  291. package/dist/src/ui/commands/toolsCommand.js.map +1 -0
  292. package/dist/src/ui/commands/types.d.ts +153 -0
  293. package/dist/src/ui/commands/types.js +13 -0
  294. package/dist/src/ui/commands/types.js.map +1 -0
  295. package/dist/src/ui/commands/vimCommand.d.ts +7 -0
  296. package/dist/src/ui/commands/vimCommand.js +23 -0
  297. package/dist/src/ui/commands/vimCommand.js.map +1 -0
  298. package/dist/src/ui/components/AboutBox.d.ts +17 -0
  299. package/dist/src/ui/components/AboutBox.js +6 -0
  300. package/dist/src/ui/components/AboutBox.js.map +1 -0
  301. package/dist/src/ui/components/AsciiArt.d.ts +8 -0
  302. package/dist/src/ui/components/AsciiArt.js +30 -0
  303. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  304. package/dist/src/ui/components/AuthDialog.d.ts +15 -0
  305. package/dist/src/ui/components/AuthDialog.js +89 -0
  306. package/dist/src/ui/components/AuthDialog.js.map +1 -0
  307. package/dist/src/ui/components/AuthDialog.test.d.ts +6 -0
  308. package/dist/src/ui/components/AuthDialog.test.js +280 -0
  309. package/dist/src/ui/components/AuthDialog.test.js.map +1 -0
  310. package/dist/src/ui/components/AuthInProgress.d.ts +11 -0
  311. package/dist/src/ui/components/AuthInProgress.js +23 -0
  312. package/dist/src/ui/components/AuthInProgress.js.map +1 -0
  313. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
  314. package/dist/src/ui/components/AutoAcceptIndicator.js +31 -0
  315. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
  316. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  317. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  318. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  319. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
  320. package/dist/src/ui/components/ContextSummaryDisplay.js +66 -0
  321. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  322. package/dist/src/ui/components/ContextUsageDisplay.d.ts +9 -0
  323. package/dist/src/ui/components/ContextUsageDisplay.js +14 -0
  324. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
  325. package/dist/src/ui/components/DebugProfiler.d.ts +6 -0
  326. package/dist/src/ui/components/DebugProfiler.js +27 -0
  327. package/dist/src/ui/components/DebugProfiler.js.map +1 -0
  328. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
  329. package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
  330. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  331. package/dist/src/ui/components/EditorSettingsDialog.d.ts +16 -0
  332. package/dist/src/ui/components/EditorSettingsDialog.js +71 -0
  333. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  334. package/dist/src/ui/components/FolderTrustDialog.d.ts +17 -0
  335. package/dist/src/ui/components/FolderTrustDialog.js +45 -0
  336. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
  337. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
  338. package/dist/src/ui/components/FolderTrustDialog.test.js +63 -0
  339. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
  340. package/dist/src/ui/components/Footer.d.ts +23 -0
  341. package/dist/src/ui/components/Footer.js +25 -0
  342. package/dist/src/ui/components/Footer.js.map +1 -0
  343. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +17 -0
  344. package/dist/src/ui/components/GeminiRespondingSpinner.js +18 -0
  345. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  346. package/dist/src/ui/components/Header.d.ts +13 -0
  347. package/dist/src/ui/components/Header.js +28 -0
  348. package/dist/src/ui/components/Header.js.map +1 -0
  349. package/dist/src/ui/components/Header.test.d.ts +6 -0
  350. package/dist/src/ui/components/Header.test.js +37 -0
  351. package/dist/src/ui/components/Header.test.js.map +1 -0
  352. package/dist/src/ui/components/Help.d.ts +12 -0
  353. package/dist/src/ui/components/Help.js +10 -0
  354. package/dist/src/ui/components/Help.js.map +1 -0
  355. package/dist/src/ui/components/HistoryItemDisplay.d.ts +20 -0
  356. package/dist/src/ui/components/HistoryItemDisplay.js +22 -0
  357. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  358. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
  359. package/dist/src/ui/components/HistoryItemDisplay.test.js +93 -0
  360. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
  361. package/dist/src/ui/components/InputPrompt.d.ts +28 -0
  362. package/dist/src/ui/components/InputPrompt.js +562 -0
  363. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  364. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  365. package/dist/src/ui/components/LoadingIndicator.js +25 -0
  366. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  367. package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
  368. package/dist/src/ui/components/LoadingIndicator.test.js +190 -0
  369. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
  370. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  371. package/dist/src/ui/components/MemoryUsageDisplay.js +22 -0
  372. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  373. package/dist/src/ui/components/ModelSelectionDialog.d.ts +14 -0
  374. package/dist/src/ui/components/ModelSelectionDialog.js +26 -0
  375. package/dist/src/ui/components/ModelSelectionDialog.js.map +1 -0
  376. package/dist/src/ui/components/ModelSelectionDialog.test.d.ts +6 -0
  377. package/dist/src/ui/components/ModelSelectionDialog.test.js +124 -0
  378. package/dist/src/ui/components/ModelSelectionDialog.test.js.map +1 -0
  379. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  380. package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
  381. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  382. package/dist/src/ui/components/ModelSwitchDialog.d.ts +15 -0
  383. package/dist/src/ui/components/ModelSwitchDialog.js +37 -0
  384. package/dist/src/ui/components/ModelSwitchDialog.js.map +1 -0
  385. package/dist/src/ui/components/ModelSwitchDialog.test.d.ts +6 -0
  386. package/dist/src/ui/components/ModelSwitchDialog.test.js +125 -0
  387. package/dist/src/ui/components/ModelSwitchDialog.test.js.map +1 -0
  388. package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +12 -0
  389. package/dist/src/ui/components/OpenAIKeyPrompt.js +113 -0
  390. package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -0
  391. package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +6 -0
  392. package/dist/src/ui/components/OpenAIKeyPrompt.test.js +44 -0
  393. package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +1 -0
  394. package/dist/src/ui/components/PlanSummaryDisplay.d.ts +14 -0
  395. package/dist/src/ui/components/PlanSummaryDisplay.js +9 -0
  396. package/dist/src/ui/components/PlanSummaryDisplay.js.map +1 -0
  397. package/dist/src/ui/components/PrepareLabel.d.ts +15 -0
  398. package/dist/src/ui/components/PrepareLabel.js +16 -0
  399. package/dist/src/ui/components/PrepareLabel.js.map +1 -0
  400. package/dist/src/ui/components/QuitConfirmationDialog.d.ts +17 -0
  401. package/dist/src/ui/components/QuitConfirmationDialog.js +44 -0
  402. package/dist/src/ui/components/QuitConfirmationDialog.js.map +1 -0
  403. package/dist/src/ui/components/QwenOAuthProgress.d.ts +16 -0
  404. package/dist/src/ui/components/QwenOAuthProgress.js +103 -0
  405. package/dist/src/ui/components/QwenOAuthProgress.js.map +1 -0
  406. package/dist/src/ui/components/QwenOAuthProgress.test.d.ts +6 -0
  407. package/dist/src/ui/components/QwenOAuthProgress.test.js +292 -0
  408. package/dist/src/ui/components/QwenOAuthProgress.test.js.map +1 -0
  409. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  410. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  411. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  412. package/dist/src/ui/components/SettingsDialog.d.ts +15 -0
  413. package/dist/src/ui/components/SettingsDialog.js +550 -0
  414. package/dist/src/ui/components/SettingsDialog.js.map +1 -0
  415. package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
  416. package/dist/src/ui/components/SettingsDialog.test.js +646 -0
  417. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
  418. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
  419. package/dist/src/ui/components/ShellConfirmationDialog.js +46 -0
  420. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
  421. package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +6 -0
  422. package/dist/src/ui/components/ShellConfirmationDialog.test.js +40 -0
  423. package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
  424. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  425. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  426. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  427. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  428. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  429. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  430. package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
  431. package/dist/src/ui/components/StatsDisplay.js +43 -0
  432. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  433. package/dist/src/ui/components/SuggestionsDisplay.d.ts +22 -0
  434. package/dist/src/ui/components/SuggestionsDisplay.js +40 -0
  435. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  436. package/dist/src/ui/components/ThemeDialog.d.ts +20 -0
  437. package/dist/src/ui/components/ThemeDialog.js +138 -0
  438. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  439. package/dist/src/ui/components/Tips.d.ts +12 -0
  440. package/dist/src/ui/components/Tips.js +9 -0
  441. package/dist/src/ui/components/Tips.js.map +1 -0
  442. package/dist/src/ui/components/TodoDisplay.d.ts +17 -0
  443. package/dist/src/ui/components/TodoDisplay.js +27 -0
  444. package/dist/src/ui/components/TodoDisplay.js.map +1 -0
  445. package/dist/src/ui/components/TodoDisplay.test.d.ts +6 -0
  446. package/dist/src/ui/components/TodoDisplay.test.js +77 -0
  447. package/dist/src/ui/components/TodoDisplay.test.js.map +1 -0
  448. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  449. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  450. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  451. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  452. package/dist/src/ui/components/UpdateNotification.js +10 -0
  453. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  454. package/dist/src/ui/components/WelcomeBackDialog.d.ts +13 -0
  455. package/dist/src/ui/components/WelcomeBackDialog.js +32 -0
  456. package/dist/src/ui/components/WelcomeBackDialog.js.map +1 -0
  457. package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +11 -0
  458. package/dist/src/ui/components/WorkspaceMigrationDialog.js +42 -0
  459. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -0
  460. package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
  461. package/dist/src/ui/components/messages/CompressionMessage.js +17 -0
  462. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  463. package/dist/src/ui/components/messages/DiffRenderer.d.ts +16 -0
  464. package/dist/src/ui/components/messages/DiffRenderer.js +226 -0
  465. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  466. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
  467. package/dist/src/ui/components/messages/DiffRenderer.test.js +239 -0
  468. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
  469. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  470. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  471. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  472. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  473. package/dist/src/ui/components/messages/GeminiMessage.js +11 -0
  474. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  475. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  476. package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
  477. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  478. package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
  479. package/dist/src/ui/components/messages/InfoMessage.js +14 -0
  480. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  481. package/dist/src/ui/components/messages/SummaryMessage.d.ts +11 -0
  482. package/dist/src/ui/components/messages/SummaryMessage.js +35 -0
  483. package/dist/src/ui/components/messages/SummaryMessage.js.map +1 -0
  484. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +16 -0
  485. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +199 -0
  486. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  487. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
  488. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +137 -0
  489. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
  490. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +18 -0
  491. package/dist/src/ui/components/messages/ToolGroupMessage.js +50 -0
  492. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  493. package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +6 -0
  494. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +259 -0
  495. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
  496. package/dist/src/ui/components/messages/ToolMessage.d.ts +17 -0
  497. package/dist/src/ui/components/messages/ToolMessage.js +138 -0
  498. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  499. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
  500. package/dist/src/ui/components/messages/ToolMessage.test.js +149 -0
  501. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
  502. package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
  503. package/dist/src/ui/components/messages/UserMessage.js +14 -0
  504. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  505. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  506. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  507. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  508. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
  509. package/dist/src/ui/components/shared/MaxSizedBox.js +451 -0
  510. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  511. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
  512. package/dist/src/ui/components/shared/MaxSizedBox.test.js +154 -0
  513. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
  514. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +46 -0
  515. package/dist/src/ui/components/shared/RadioButtonSelect.js +116 -0
  516. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  517. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
  518. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +111 -0
  519. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
  520. package/dist/src/ui/components/shared/TextInput.d.ts +16 -0
  521. package/dist/src/ui/components/shared/TextInput.js +127 -0
  522. package/dist/src/ui/components/shared/TextInput.js.map +1 -0
  523. package/dist/src/ui/components/shared/text-buffer.d.ts +467 -0
  524. package/dist/src/ui/components/shared/text-buffer.js +1489 -0
  525. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  526. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
  527. package/dist/src/ui/components/shared/vim-buffer-actions.js +552 -0
  528. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
  529. package/dist/src/ui/components/subagents/constants.d.ts +23 -0
  530. package/dist/src/ui/components/subagents/constants.js +67 -0
  531. package/dist/src/ui/components/subagents/constants.js.map +1 -0
  532. package/dist/src/ui/components/subagents/create/AgentCreationWizard.d.ts +15 -0
  533. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +174 -0
  534. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +1 -0
  535. package/dist/src/ui/components/subagents/create/ColorSelector.d.ts +15 -0
  536. package/dist/src/ui/components/subagents/create/ColorSelector.js +42 -0
  537. package/dist/src/ui/components/subagents/create/ColorSelector.js.map +1 -0
  538. package/dist/src/ui/components/subagents/create/CreationSummary.d.ts +10 -0
  539. package/dist/src/ui/components/subagents/create/CreationSummary.js +163 -0
  540. package/dist/src/ui/components/subagents/create/CreationSummary.js.map +1 -0
  541. package/dist/src/ui/components/subagents/create/DescriptionInput.d.ts +10 -0
  542. package/dist/src/ui/components/subagents/create/DescriptionInput.js +105 -0
  543. package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +1 -0
  544. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.d.ts +10 -0
  545. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +33 -0
  546. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +1 -0
  547. package/dist/src/ui/components/subagents/create/LocationSelector.d.ts +10 -0
  548. package/dist/src/ui/components/subagents/create/LocationSelector.js +33 -0
  549. package/dist/src/ui/components/subagents/create/LocationSelector.js.map +1 -0
  550. package/dist/src/ui/components/subagents/create/TextEntryStep.d.ts +26 -0
  551. package/dist/src/ui/components/subagents/create/TextEntryStep.js +28 -0
  552. package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +1 -0
  553. package/dist/src/ui/components/subagents/create/ToolSelector.d.ts +16 -0
  554. package/dist/src/ui/components/subagents/create/ToolSelector.js +143 -0
  555. package/dist/src/ui/components/subagents/create/ToolSelector.js.map +1 -0
  556. package/dist/src/ui/components/subagents/index.d.ts +8 -0
  557. package/dist/src/ui/components/subagents/index.js +12 -0
  558. package/dist/src/ui/components/subagents/index.js.map +1 -0
  559. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.d.ts +13 -0
  560. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +46 -0
  561. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +1 -0
  562. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.d.ts +13 -0
  563. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js +33 -0
  564. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js.map +1 -0
  565. package/dist/src/ui/components/subagents/manage/AgentEditStep.d.ts +15 -0
  566. package/dist/src/ui/components/subagents/manage/AgentEditStep.js +63 -0
  567. package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +1 -0
  568. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.d.ts +12 -0
  569. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +225 -0
  570. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +1 -0
  571. package/dist/src/ui/components/subagents/manage/AgentViewerStep.d.ts +11 -0
  572. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js +19 -0
  573. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js.map +1 -0
  574. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.d.ts +15 -0
  575. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +212 -0
  576. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +1 -0
  577. package/dist/src/ui/components/subagents/reducers.d.ts +14 -0
  578. package/dist/src/ui/components/subagents/reducers.js +162 -0
  579. package/dist/src/ui/components/subagents/reducers.js.map +1 -0
  580. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.d.ts +20 -0
  581. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +194 -0
  582. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +1 -0
  583. package/dist/src/ui/components/subagents/types.d.ts +137 -0
  584. package/dist/src/ui/components/subagents/types.js +15 -0
  585. package/dist/src/ui/components/subagents/types.js.map +1 -0
  586. package/dist/src/ui/components/subagents/utils.d.ts +15 -0
  587. package/dist/src/ui/components/subagents/utils.js +79 -0
  588. package/dist/src/ui/components/subagents/utils.js.map +1 -0
  589. package/dist/src/ui/constants.d.ts +17 -0
  590. package/dist/src/ui/constants.js +22 -0
  591. package/dist/src/ui/constants.js.map +1 -0
  592. package/dist/src/ui/contexts/KeypressContext.d.ts +32 -0
  593. package/dist/src/ui/contexts/KeypressContext.js +371 -0
  594. package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
  595. package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
  596. package/dist/src/ui/contexts/KeypressContext.test.js +894 -0
  597. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
  598. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  599. package/dist/src/ui/contexts/OverflowContext.js +38 -0
  600. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  601. package/dist/src/ui/contexts/SessionContext.d.ts +39 -0
  602. package/dist/src/ui/contexts/SessionContext.js +55 -0
  603. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  604. package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
  605. package/dist/src/ui/contexts/SettingsContext.js +15 -0
  606. package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
  607. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  608. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  609. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  610. package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
  611. package/dist/src/ui/contexts/VimModeContext.js +48 -0
  612. package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
  613. package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
  614. package/dist/src/ui/editors/editorSettingsManager.js +47 -0
  615. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  616. package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
  617. package/dist/src/ui/hooks/atCommandProcessor.js +364 -0
  618. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  619. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
  620. package/dist/src/ui/hooks/atCommandProcessor.test.js +832 -0
  621. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
  622. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +17 -0
  623. package/dist/src/ui/hooks/shellCommandProcessor.js +234 -0
  624. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  625. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
  626. package/dist/src/ui/hooks/shellCommandProcessor.test.js +329 -0
  627. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
  628. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +32 -0
  629. package/dist/src/ui/hooks/slashCommandProcessor.js +547 -0
  630. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  631. package/dist/src/ui/hooks/useAgentsManagerDialog.d.ts +11 -0
  632. package/dist/src/ui/hooks/useAgentsManagerDialog.js +21 -0
  633. package/dist/src/ui/hooks/useAgentsManagerDialog.js.map +1 -0
  634. package/dist/src/ui/hooks/useAtCompletion.d.ts +23 -0
  635. package/dist/src/ui/hooks/useAtCompletion.js +179 -0
  636. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
  637. package/dist/src/ui/hooks/useAuthCommand.d.ts +14 -0
  638. package/dist/src/ui/hooks/useAuthCommand.js +66 -0
  639. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -0
  640. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +12 -0
  641. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +38 -0
  642. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
  643. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +6 -0
  644. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +263 -0
  645. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
  646. package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
  647. package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
  648. package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
  649. package/dist/src/ui/hooks/useCommandCompletion.d.ts +32 -0
  650. package/dist/src/ui/hooks/useCommandCompletion.js +186 -0
  651. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
  652. package/dist/src/ui/hooks/useCompletion.d.ts +24 -0
  653. package/dist/src/ui/hooks/useCompletion.js +88 -0
  654. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  655. package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
  656. package/dist/src/ui/hooks/useConsoleMessages.js +76 -0
  657. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  658. package/dist/src/ui/hooks/useDialogClose.d.ts +34 -0
  659. package/dist/src/ui/hooks/useDialogClose.js +62 -0
  660. package/dist/src/ui/hooks/useDialogClose.js.map +1 -0
  661. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  662. package/dist/src/ui/hooks/useEditorSettings.js +43 -0
  663. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  664. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
  665. package/dist/src/ui/hooks/useEditorSettings.test.js +164 -0
  666. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
  667. package/dist/src/ui/hooks/useFocus.d.ts +10 -0
  668. package/dist/src/ui/hooks/useFocus.js +41 -0
  669. package/dist/src/ui/hooks/useFocus.js.map +1 -0
  670. package/dist/src/ui/hooks/useFolderTrust.d.ts +13 -0
  671. package/dist/src/ui/hooks/useFolderTrust.js +64 -0
  672. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
  673. package/dist/src/ui/hooks/useGeminiStream.d.ts +28 -0
  674. package/dist/src/ui/hooks/useGeminiStream.js +681 -0
  675. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  676. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  677. package/dist/src/ui/hooks/useGitBranchName.js +61 -0
  678. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  679. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
  680. package/dist/src/ui/hooks/useGitBranchName.test.js +175 -0
  681. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
  682. package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
  683. package/dist/src/ui/hooks/useHistoryManager.js +72 -0
  684. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  685. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
  686. package/dist/src/ui/hooks/useHistoryManager.test.js +171 -0
  687. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
  688. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  689. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  690. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  691. package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
  692. package/dist/src/ui/hooks/useInputHistory.test.js +207 -0
  693. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
  694. package/dist/src/ui/hooks/useKeypress.d.ts +17 -0
  695. package/dist/src/ui/hooks/useKeypress.js +27 -0
  696. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  697. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
  698. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
  699. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
  700. package/dist/src/ui/hooks/useLaunchEditor.d.ts +10 -0
  701. package/dist/src/ui/hooks/useLaunchEditor.js +70 -0
  702. package/dist/src/ui/hooks/useLaunchEditor.js.map +1 -0
  703. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
  704. package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
  705. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  706. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
  707. package/dist/src/ui/hooks/useLoadingIndicator.test.js +91 -0
  708. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
  709. package/dist/src/ui/hooks/useLogger.d.ts +11 -0
  710. package/dist/src/ui/hooks/useLogger.js +29 -0
  711. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  712. package/dist/src/ui/hooks/useMessageQueue.d.ts +22 -0
  713. package/dist/src/ui/hooks/useMessageQueue.js +49 -0
  714. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
  715. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
  716. package/dist/src/ui/hooks/useMessageQueue.test.js +158 -0
  717. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
  718. package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
  719. package/dist/src/ui/hooks/usePhraseCycler.js +157 -0
  720. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  721. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  722. package/dist/src/ui/hooks/usePrivacySettings.js +119 -0
  723. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  724. package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +6 -0
  725. package/dist/src/ui/hooks/usePrivacySettings.test.js +154 -0
  726. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
  727. package/dist/src/ui/hooks/usePromptCompletion.d.ts +23 -0
  728. package/dist/src/ui/hooks/usePromptCompletion.js +177 -0
  729. package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
  730. package/dist/src/ui/hooks/useQuitConfirmation.d.ts +14 -0
  731. package/dist/src/ui/hooks/useQuitConfirmation.js +36 -0
  732. package/dist/src/ui/hooks/useQuitConfirmation.js.map +1 -0
  733. package/dist/src/ui/hooks/useQwenAuth.d.ts +20 -0
  734. package/dist/src/ui/hooks/useQwenAuth.js +78 -0
  735. package/dist/src/ui/hooks/useQwenAuth.js.map +1 -0
  736. package/dist/src/ui/hooks/useQwenAuth.test.d.ts +6 -0
  737. package/dist/src/ui/hooks/useQwenAuth.test.js +292 -0
  738. package/dist/src/ui/hooks/useQwenAuth.test.js.map +1 -0
  739. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +33 -0
  740. package/dist/src/ui/hooks/useReactToolScheduler.js +197 -0
  741. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  742. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  743. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  744. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  745. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
  746. package/dist/src/ui/hooks/useReverseSearchCompletion.js +56 -0
  747. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
  748. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
  749. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +163 -0
  750. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
  751. package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
  752. package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
  753. package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
  754. package/dist/src/ui/hooks/useShellHistory.d.ts +14 -0
  755. package/dist/src/ui/hooks/useShellHistory.js +111 -0
  756. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  757. package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
  758. package/dist/src/ui/hooks/useShellHistory.test.js +187 -0
  759. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
  760. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  761. package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
  762. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  763. package/dist/src/ui/hooks/useSlashCompletion.d.ts +20 -0
  764. package/dist/src/ui/hooks/useSlashCompletion.js +135 -0
  765. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
  766. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +6 -0
  767. package/dist/src/ui/hooks/useSlashCompletion.test.js +272 -0
  768. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
  769. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  770. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  771. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  772. package/dist/src/ui/hooks/useSubagentCreateDialog.d.ts +10 -0
  773. package/dist/src/ui/hooks/useSubagentCreateDialog.js +21 -0
  774. package/dist/src/ui/hooks/useSubagentCreateDialog.js.map +1 -0
  775. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  776. package/dist/src/ui/hooks/useTerminalSize.js +27 -0
  777. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  778. package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
  779. package/dist/src/ui/hooks/useThemeCommand.js +79 -0
  780. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  781. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  782. package/dist/src/ui/hooks/useTimer.js +58 -0
  783. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  784. package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
  785. package/dist/src/ui/hooks/useTimer.test.js +90 -0
  786. package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
  787. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
  788. package/dist/src/ui/hooks/useToolScheduler.test.js +850 -0
  789. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
  790. package/dist/src/ui/hooks/useVisionAutoSwitch.d.ts +47 -0
  791. package/dist/src/ui/hooks/useVisionAutoSwitch.js +262 -0
  792. package/dist/src/ui/hooks/useVisionAutoSwitch.js.map +1 -0
  793. package/dist/src/ui/hooks/useVisionAutoSwitch.test.d.ts +6 -0
  794. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js +515 -0
  795. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js.map +1 -0
  796. package/dist/src/ui/hooks/useWelcomeBack.d.ts +23 -0
  797. package/dist/src/ui/hooks/useWelcomeBack.js +79 -0
  798. package/dist/src/ui/hooks/useWelcomeBack.js.map +1 -0
  799. package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +13 -0
  800. package/dist/src/ui/hooks/useWorkspaceMigration.js +53 -0
  801. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -0
  802. package/dist/src/ui/hooks/vim.d.ts +28 -0
  803. package/dist/src/ui/hooks/vim.js +639 -0
  804. package/dist/src/ui/hooks/vim.js.map +1 -0
  805. package/dist/src/ui/keyMatchers.d.ts +27 -0
  806. package/dist/src/ui/keyMatchers.js +68 -0
  807. package/dist/src/ui/keyMatchers.js.map +1 -0
  808. package/dist/src/ui/keyMatchers.test.d.ts +6 -0
  809. package/dist/src/ui/keyMatchers.test.js +276 -0
  810. package/dist/src/ui/keyMatchers.test.js.map +1 -0
  811. package/dist/src/ui/models/availableModels.d.ts +29 -0
  812. package/dist/src/ui/models/availableModels.js +40 -0
  813. package/dist/src/ui/models/availableModels.js.map +1 -0
  814. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  815. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +41 -0
  816. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  817. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  818. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +18 -0
  819. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  820. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  821. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +18 -0
  822. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  823. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  824. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  825. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  826. package/dist/src/ui/semantic-colors.d.ts +7 -0
  827. package/dist/src/ui/semantic-colors.js +24 -0
  828. package/dist/src/ui/semantic-colors.js.map +1 -0
  829. package/dist/src/ui/textConstants.d.ts +9 -0
  830. package/dist/src/ui/textConstants.js +10 -0
  831. package/dist/src/ui/textConstants.js.map +1 -0
  832. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  833. package/dist/src/ui/themes/ansi-light.js +142 -0
  834. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  835. package/dist/src/ui/themes/ansi.d.ts +7 -0
  836. package/dist/src/ui/themes/ansi.js +152 -0
  837. package/dist/src/ui/themes/ansi.js.map +1 -0
  838. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  839. package/dist/src/ui/themes/atom-one-dark.js +138 -0
  840. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  841. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  842. package/dist/src/ui/themes/ayu-light.js +130 -0
  843. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  844. package/dist/src/ui/themes/ayu.d.ts +7 -0
  845. package/dist/src/ui/themes/ayu.js +104 -0
  846. package/dist/src/ui/themes/ayu.js.map +1 -0
  847. package/dist/src/ui/themes/color-utils.d.ts +21 -0
  848. package/dist/src/ui/themes/color-utils.js +221 -0
  849. package/dist/src/ui/themes/color-utils.js.map +1 -0
  850. package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
  851. package/dist/src/ui/themes/color-utils.test.js +197 -0
  852. package/dist/src/ui/themes/color-utils.test.js.map +1 -0
  853. package/dist/src/ui/themes/default-light.d.ts +7 -0
  854. package/dist/src/ui/themes/default-light.js +100 -0
  855. package/dist/src/ui/themes/default-light.js.map +1 -0
  856. package/dist/src/ui/themes/default.d.ts +7 -0
  857. package/dist/src/ui/themes/default.js +143 -0
  858. package/dist/src/ui/themes/default.js.map +1 -0
  859. package/dist/src/ui/themes/dracula.d.ts +7 -0
  860. package/dist/src/ui/themes/dracula.js +115 -0
  861. package/dist/src/ui/themes/dracula.js.map +1 -0
  862. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  863. package/dist/src/ui/themes/github-dark.js +138 -0
  864. package/dist/src/ui/themes/github-dark.js.map +1 -0
  865. package/dist/src/ui/themes/github-light.d.ts +7 -0
  866. package/dist/src/ui/themes/github-light.js +140 -0
  867. package/dist/src/ui/themes/github-light.js.map +1 -0
  868. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  869. package/dist/src/ui/themes/googlecode.js +137 -0
  870. package/dist/src/ui/themes/googlecode.js.map +1 -0
  871. package/dist/src/ui/themes/no-color.d.ts +7 -0
  872. package/dist/src/ui/themes/no-color.js +115 -0
  873. package/dist/src/ui/themes/no-color.js.map +1 -0
  874. package/dist/src/ui/themes/qwen-dark.d.ts +7 -0
  875. package/dist/src/ui/themes/qwen-dark.js +105 -0
  876. package/dist/src/ui/themes/qwen-dark.js.map +1 -0
  877. package/dist/src/ui/themes/qwen-light.d.ts +7 -0
  878. package/dist/src/ui/themes/qwen-light.js +131 -0
  879. package/dist/src/ui/themes/qwen-light.js.map +1 -0
  880. package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
  881. package/dist/src/ui/themes/semantic-tokens.js +94 -0
  882. package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
  883. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  884. package/dist/src/ui/themes/shades-of-purple.js +304 -0
  885. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  886. package/dist/src/ui/themes/theme-manager.d.ts +66 -0
  887. package/dist/src/ui/themes/theme-manager.js +270 -0
  888. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  889. package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
  890. package/dist/src/ui/themes/theme-manager.test.js +142 -0
  891. package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
  892. package/dist/src/ui/themes/theme.d.ts +130 -0
  893. package/dist/src/ui/themes/theme.js +379 -0
  894. package/dist/src/ui/themes/theme.js.map +1 -0
  895. package/dist/src/ui/themes/xcode.d.ts +7 -0
  896. package/dist/src/ui/themes/xcode.js +145 -0
  897. package/dist/src/ui/themes/xcode.js.map +1 -0
  898. package/dist/src/ui/types.d.ts +217 -0
  899. package/dist/src/ui/types.js +46 -0
  900. package/dist/src/ui/types.js.map +1 -0
  901. package/dist/src/ui/utils/CodeColorizer.d.ts +17 -0
  902. package/dist/src/ui/utils/CodeColorizer.js +110 -0
  903. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  904. package/dist/src/ui/utils/ConsolePatcher.d.ts +25 -0
  905. package/dist/src/ui/utils/ConsolePatcher.js +52 -0
  906. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  907. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  908. package/dist/src/ui/utils/InlineMarkdownRenderer.js +111 -0
  909. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  910. package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
  911. package/dist/src/ui/utils/MarkdownDisplay.js +207 -0
  912. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  913. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
  914. package/dist/src/ui/utils/MarkdownDisplay.test.js +161 -0
  915. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
  916. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  917. package/dist/src/ui/utils/TableRenderer.js +84 -0
  918. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  919. package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
  920. package/dist/src/ui/utils/clipboardUtils.js +127 -0
  921. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  922. package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
  923. package/dist/src/ui/utils/clipboardUtils.test.js +65 -0
  924. package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
  925. package/dist/src/ui/utils/commandUtils.d.ts +24 -0
  926. package/dist/src/ui/utils/commandUtils.js +131 -0
  927. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  928. package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
  929. package/dist/src/ui/utils/commandUtils.test.js +349 -0
  930. package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
  931. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  932. package/dist/src/ui/utils/computeStats.js +57 -0
  933. package/dist/src/ui/utils/computeStats.js.map +1 -0
  934. package/dist/src/ui/utils/displayUtils.d.ts +17 -0
  935. package/dist/src/ui/utils/displayUtils.js +24 -0
  936. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  937. package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
  938. package/dist/src/ui/utils/displayUtils.test.js +42 -0
  939. package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
  940. package/dist/src/ui/utils/formatters.d.ts +13 -0
  941. package/dist/src/ui/utils/formatters.js +56 -0
  942. package/dist/src/ui/utils/formatters.js.map +1 -0
  943. package/dist/src/ui/utils/formatters.test.d.ts +6 -0
  944. package/dist/src/ui/utils/formatters.test.js +56 -0
  945. package/dist/src/ui/utils/formatters.test.js.map +1 -0
  946. package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
  947. package/dist/src/ui/utils/isNarrowWidth.js +9 -0
  948. package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
  949. package/dist/src/ui/utils/kittyProtocolDetector.d.ts +13 -0
  950. package/dist/src/ui/utils/kittyProtocolDetector.js +88 -0
  951. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -0
  952. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  953. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  954. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  955. package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
  956. package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
  957. package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
  958. package/dist/src/ui/utils/platformConstants.d.ts +52 -0
  959. package/dist/src/ui/utils/platformConstants.js +53 -0
  960. package/dist/src/ui/utils/platformConstants.js.map +1 -0
  961. package/dist/src/ui/utils/terminalSetup.d.ts +30 -0
  962. package/dist/src/ui/utils/terminalSetup.js +281 -0
  963. package/dist/src/ui/utils/terminalSetup.js.map +1 -0
  964. package/dist/src/ui/utils/textUtils.d.ts +32 -0
  965. package/dist/src/ui/utils/textUtils.js +80 -0
  966. package/dist/src/ui/utils/textUtils.js.map +1 -0
  967. package/dist/src/ui/utils/updateCheck.d.ts +12 -0
  968. package/dist/src/ui/utils/updateCheck.js +78 -0
  969. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  970. package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
  971. package/dist/src/ui/utils/updateCheck.test.js +145 -0
  972. package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
  973. package/dist/src/utils/checks.d.ts +19 -0
  974. package/dist/src/utils/checks.js +24 -0
  975. package/dist/src/utils/checks.js.map +1 -0
  976. package/dist/src/utils/cleanup.d.ts +8 -0
  977. package/dist/src/utils/cleanup.js +35 -0
  978. package/dist/src/utils/cleanup.js.map +1 -0
  979. package/dist/src/utils/dialogScopeUtils.d.ts +32 -0
  980. package/dist/src/utils/dialogScopeUtils.js +48 -0
  981. package/dist/src/utils/dialogScopeUtils.js.map +1 -0
  982. package/dist/src/utils/errors.d.ts +6 -0
  983. package/dist/src/utils/errors.js +12 -0
  984. package/dist/src/utils/errors.js.map +1 -0
  985. package/dist/src/utils/events.d.ts +11 -0
  986. package/dist/src/utils/events.js +13 -0
  987. package/dist/src/utils/events.js.map +1 -0
  988. package/dist/src/utils/gitUtils.d.ts +30 -0
  989. package/dist/src/utils/gitUtils.js +89 -0
  990. package/dist/src/utils/gitUtils.js.map +1 -0
  991. package/dist/src/utils/gitUtils.test.d.ts +6 -0
  992. package/dist/src/utils/gitUtils.test.js +113 -0
  993. package/dist/src/utils/gitUtils.test.js.map +1 -0
  994. package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
  995. package/dist/src/utils/handleAutoUpdate.js +102 -0
  996. package/dist/src/utils/handleAutoUpdate.js.map +1 -0
  997. package/dist/src/utils/installationInfo.d.ts +23 -0
  998. package/dist/src/utils/installationInfo.js +153 -0
  999. package/dist/src/utils/installationInfo.js.map +1 -0
  1000. package/dist/src/utils/installationInfo.test.d.ts +6 -0
  1001. package/dist/src/utils/installationInfo.test.js +242 -0
  1002. package/dist/src/utils/installationInfo.test.js.map +1 -0
  1003. package/dist/src/utils/package.d.ts +12 -0
  1004. package/dist/src/utils/package.js +24 -0
  1005. package/dist/src/utils/package.js.map +1 -0
  1006. package/dist/src/utils/readStdin.d.ts +6 -0
  1007. package/dist/src/utils/readStdin.js +59 -0
  1008. package/dist/src/utils/readStdin.js.map +1 -0
  1009. package/dist/src/utils/readStdin.test.d.ts +6 -0
  1010. package/dist/src/utils/readStdin.test.js +88 -0
  1011. package/dist/src/utils/readStdin.test.js.map +1 -0
  1012. package/dist/src/utils/resolvePath.d.ts +6 -0
  1013. package/dist/src/utils/resolvePath.js +21 -0
  1014. package/dist/src/utils/resolvePath.js.map +1 -0
  1015. package/dist/src/utils/sandbox.d.ts +7 -0
  1016. package/dist/src/utils/sandbox.js +738 -0
  1017. package/dist/src/utils/sandbox.js.map +1 -0
  1018. package/dist/src/utils/settingsUtils.d.ts +134 -0
  1019. package/dist/src/utils/settingsUtils.js +330 -0
  1020. package/dist/src/utils/settingsUtils.js.map +1 -0
  1021. package/dist/src/utils/settingsUtils.test.d.ts +6 -0
  1022. package/dist/src/utils/settingsUtils.test.js +511 -0
  1023. package/dist/src/utils/settingsUtils.test.js.map +1 -0
  1024. package/dist/src/utils/spawnWrapper.d.ts +7 -0
  1025. package/dist/src/utils/spawnWrapper.js +8 -0
  1026. package/dist/src/utils/spawnWrapper.js.map +1 -0
  1027. package/dist/src/utils/startupWarnings.d.ts +6 -0
  1028. package/dist/src/utils/startupWarnings.js +40 -0
  1029. package/dist/src/utils/startupWarnings.js.map +1 -0
  1030. package/dist/src/utils/updateEventEmitter.d.ts +11 -0
  1031. package/dist/src/utils/updateEventEmitter.js +12 -0
  1032. package/dist/src/utils/updateEventEmitter.js.map +1 -0
  1033. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  1034. package/dist/src/utils/userStartupWarnings.js +54 -0
  1035. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  1036. package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
  1037. package/dist/src/utils/userStartupWarnings.test.js +67 -0
  1038. package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
  1039. package/dist/src/utils/version.d.ts +6 -0
  1040. package/dist/src/utils/version.js +11 -0
  1041. package/dist/src/utils/version.js.map +1 -0
  1042. package/dist/src/validateNonInterActiveAuth.d.ts +7 -0
  1043. package/dist/src/validateNonInterActiveAuth.js +40 -0
  1044. package/dist/src/validateNonInterActiveAuth.js.map +1 -0
  1045. package/dist/src/zed-integration/acp.d.ts +63 -0
  1046. package/dist/src/zed-integration/acp.js +226 -0
  1047. package/dist/src/zed-integration/acp.js.map +1 -0
  1048. package/dist/src/zed-integration/fileSystemService.d.ts +19 -0
  1049. package/dist/src/zed-integration/fileSystemService.js +43 -0
  1050. package/dist/src/zed-integration/fileSystemService.js.map +1 -0
  1051. package/dist/src/zed-integration/schema.d.ts +11782 -0
  1052. package/dist/src/zed-integration/schema.js +311 -0
  1053. package/dist/src/zed-integration/schema.js.map +1 -0
  1054. package/dist/src/zed-integration/zedIntegration.d.ts +10 -0
  1055. package/dist/src/zed-integration/zedIntegration.js +787 -0
  1056. package/dist/src/zed-integration/zedIntegration.js.map +1 -0
  1057. package/dist/tsconfig.tsbuildinfo +1 -0
  1058. package/package.json +70 -90
  1059. package/LICENSE +0 -203
  1060. package/README.md +0 -1
  1061. package/bundle/gemini.js +0 -337631
  1062. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-closed.sb +0 -0
  1063. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-open.sb +0 -0
  1064. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-proxied.sb +0 -0
  1065. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-closed.sb +0 -0
  1066. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-open.sb +0 -0
  1067. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-proxied.sb +0 -0
  1068. /package/{bundle/template → template}/README.md +0 -0
  1069. /package/{bundle/template → template}/pom.xml +0 -0
  1070. /package/{bundle/template → template}/sns-demo-app/pom.xml +0 -0
  1071. /package/{bundle/template → template}/sns-demo-common/pom.xml +0 -0
  1072. /package/{bundle/template → template}/sns-demo-common/src/main/java/com/xiaohongshu/sns/demo/common/utils/RpcResultUtils.java +0 -0
  1073. /package/{bundle/template → template}/sns-demo-common/target/classes/com/xiaohongshu/sns/demo/common/utils/RpcResultUtils.class +0 -0
  1074. /package/{bundle/template → template}/sns-demo-domain/pom.xml +0 -0
  1075. /package/{bundle/template → template}/sns-demo-infrastructure/pom.xml +0 -0
  1076. /package/{bundle/template → template}/sns-demo-infrastructure/src/main/java/com/xiaohongshu/sns/demo/infrastructure/config/rpc/ThriftClientConfig.java +0 -0
  1077. /package/{bundle/template → template}/sns-demo-infrastructure/target/classes/com/xiaohongshu/sns/demo/infrastructure/config/rpc/ThriftClientConfig.class +0 -0
  1078. /package/{bundle/template → template}/sns-demo-start/pom.xml +0 -0
  1079. /package/{bundle/template → template}/sns-demo-start/src/main/java/com/xiaohongshu/sns/demo/start/Application.java +0 -0
  1080. /package/{bundle/template → template}/sns-demo-start/src/main/resources/META-INF/app.properties +0 -0
  1081. /package/{bundle/template → template}/sns-demo-start/src/main/resources/application-prod.yml +0 -0
  1082. /package/{bundle/template → template}/sns-demo-start/src/main/resources/application-sit.yml +0 -0
  1083. /package/{bundle/template → template}/sns-demo-start/src/main/resources/application-staging.yml +0 -0
  1084. /package/{bundle/template → template}/sns-demo-start/src/main/resources/logback-spring.xml +0 -0
  1085. /package/{bundle/template → template}/sns-demo-start/target/classes/META-INF/app.properties +0 -0
  1086. /package/{bundle/template → template}/sns-demo-start/target/classes/application-prod.yml +0 -0
  1087. /package/{bundle/template → template}/sns-demo-start/target/classes/application-sit.yml +0 -0
  1088. /package/{bundle/template → template}/sns-demo-start/target/classes/application-staging.yml +0 -0
  1089. /package/{bundle/template → template}/sns-demo-start/target/classes/com/xiaohongshu/sns/demo/start/Application.class +0 -0
  1090. /package/{bundle/template → template}/sns-demo-start/target/classes/logback-spring.xml +0 -0
@@ -0,0 +1,92 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { executeToolCall, shutdownTelemetry, isTelemetrySdkInitialized, GeminiEventType, parseAndFormatApiError, FatalInputError, FatalTurnLimitedError, } from '@rdmind/rdmind-core';
7
+ import { ConsolePatcher } from './ui/utils/ConsolePatcher.js';
8
+ import { handleAtCommand } from './ui/hooks/atCommandProcessor.js';
9
+ export async function runNonInteractive(config, input, prompt_id) {
10
+ const consolePatcher = new ConsolePatcher({
11
+ stderr: true,
12
+ debugMode: config.getDebugMode(),
13
+ });
14
+ try {
15
+ consolePatcher.patch();
16
+ // Handle EPIPE errors when the output is piped to a command that closes early.
17
+ process.stdout.on('error', (err) => {
18
+ if (err.code === 'EPIPE') {
19
+ // Exit gracefully if the pipe is closed.
20
+ process.exit(0);
21
+ }
22
+ });
23
+ const geminiClient = config.getGeminiClient();
24
+ const abortController = new AbortController();
25
+ const { processedQuery, shouldProceed } = await handleAtCommand({
26
+ query: input,
27
+ config,
28
+ addItem: (_item, _timestamp) => 0,
29
+ onDebugMessage: () => { },
30
+ messageId: Date.now(),
31
+ signal: abortController.signal,
32
+ });
33
+ if (!shouldProceed || !processedQuery) {
34
+ // An error occurred during @include processing (e.g., file not found).
35
+ // The error message is already logged by handleAtCommand.
36
+ throw new FatalInputError('Exiting due to an error processing the @ command.');
37
+ }
38
+ let currentMessages = [
39
+ { role: 'user', parts: processedQuery },
40
+ ];
41
+ let turnCount = 0;
42
+ while (true) {
43
+ turnCount++;
44
+ if (config.getMaxSessionTurns() >= 0 &&
45
+ turnCount > config.getMaxSessionTurns()) {
46
+ throw new FatalTurnLimitedError('Reached max session turns for this session. Increase the number of turns by specifying maxSessionTurns in settings.json.');
47
+ }
48
+ const toolCallRequests = [];
49
+ const responseStream = geminiClient.sendMessageStream(currentMessages[0]?.parts || [], abortController.signal, prompt_id);
50
+ for await (const event of responseStream) {
51
+ if (abortController.signal.aborted) {
52
+ console.error('Operation cancelled.');
53
+ return;
54
+ }
55
+ if (event.type === GeminiEventType.Content) {
56
+ process.stdout.write(event.value);
57
+ }
58
+ else if (event.type === GeminiEventType.ToolCallRequest) {
59
+ toolCallRequests.push(event.value);
60
+ }
61
+ }
62
+ if (toolCallRequests.length > 0) {
63
+ const toolResponseParts = [];
64
+ for (const requestInfo of toolCallRequests) {
65
+ const toolResponse = await executeToolCall(config, requestInfo, abortController.signal);
66
+ if (toolResponse.error) {
67
+ console.error(`Error executing tool ${requestInfo.name}: ${toolResponse.resultDisplay || toolResponse.error.message}`);
68
+ }
69
+ if (toolResponse.responseParts) {
70
+ toolResponseParts.push(...toolResponse.responseParts);
71
+ }
72
+ }
73
+ currentMessages = [{ role: 'user', parts: toolResponseParts }];
74
+ }
75
+ else {
76
+ process.stdout.write('\n'); // Ensure a final newline
77
+ return;
78
+ }
79
+ }
80
+ }
81
+ catch (error) {
82
+ console.error(parseAndFormatApiError(error, config.getContentGeneratorConfig()?.authType));
83
+ throw error;
84
+ }
85
+ finally {
86
+ consolePatcher.cleanup();
87
+ if (isTelemetrySdkInitialized()) {
88
+ await shutdownTelemetry(config);
89
+ }
90
+ }
91
+ }
92
+ //# sourceMappingURL=nonInteractiveCli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nonInteractiveCli.js","sourceRoot":"","sources":["../../src/nonInteractiveCli.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,KAAa,EACb,SAAiB;IAEjB,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC;QACxC,MAAM,EAAE,IAAI;QACZ,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C,IAAI,CAAC,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;oBACxD,CAAC;gBACH,CAAC;gBACD,eAAe,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,CAAC,CAAC;YACjE,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,yBAAyB;gBACrD,OAAO;YACT,CAAC;QACH,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CACX,sBAAsB,CACpB,KAAK,EACL,MAAM,CAAC,yBAAyB,EAAE,EAAE,QAAQ,CAC7C,CACF,CAAC;QACF,MAAM,KAAK,CAAC;IACd,CAAC;YAAS,CAAC;QACT,cAAc,CAAC,OAAO,EAAE,CAAC;QACzB,IAAI,yBAAyB,EAAE,EAAE,CAAC;YAChC,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ declare const isInCi = false;
7
+ export default isInCi;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ // This is a replacement for the `is-in-ci` package that always returns false.
7
+ // We are doing this to avoid the issue where `ink` does not render the UI
8
+ // when it detects that it is running in a CI environment.
9
+ // This is safe because `ink` (and thus `is-in-ci`) is only used in the
10
+ // interactive code path of the CLI.
11
+ // See issue #1563 for more details.
12
+ const isInCi = false;
13
+ // eslint-disable-next-line import/no-default-export
14
+ export default isInCi;
15
+ //# sourceMappingURL=is-in-ci.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-in-ci.js","sourceRoot":"","sources":["../../../src/patches/is-in-ci.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,8EAA8E;AAC9E,0EAA0E;AAC1E,0DAA0D;AAC1D,uEAAuE;AACvE,oCAAoC;AACpC,oCAAoC;AAEpC,MAAM,MAAM,GAAG,KAAK,CAAC;AAErB,oDAAoD;AACpD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,126 @@
1
+ # RDMind 智能开发助手行为规范
2
+
3
+ ## 语言使用规范
4
+
5
+ ### 核心原则(强制要求)
6
+
7
+ **全程使用中文对话,技术术语可保留英文**
8
+
9
+ ### ✅ 必须使用中文的场景
10
+
11
+ - 与用户的对话、解释、说明
12
+ - 代码中的注释
13
+ - 错误信息和提示
14
+ - 执行状态和进度反馈
15
+ - 技术概念解释
16
+
17
+ ### ✅ 允许使用英文的场景
18
+
19
+ - 代码中的变量名、函数名、类名
20
+ - 配置文件中的键名
21
+ - 技术标准中的专有名词
22
+ - 无法准确翻译的技术术语
23
+
24
+ ---
25
+
26
+ ## 交互行为规范
27
+
28
+ ### 沟通风格
29
+
30
+ - **直接有效**:先给答案,再给解释,避免空泛概念
31
+ - **言简意赅**:回答简洁精炼,重点突出
32
+ - **主动预判**:预测用户需求,主动提供解决方案
33
+ - **专家对话**:将用户视为领域专家,避免过度解释基础概念
34
+
35
+ ### 禁止行为
36
+
37
+ - ❌ 道德说教和安全提醒(除非至关重要)
38
+ - ❌ 声明AI身份和知识截止日期
39
+ - ❌ 不必要的道歉和确认
40
+ - ❌ 空泛的建议和概念讲解
41
+ - ❌ 要求用户验证明显可见的实现
42
+
43
+ ---
44
+
45
+ ## 执行连续性规范
46
+
47
+ ### 核心原则
48
+
49
+ - **禁止无故终止**:不得因检查、验证等操作突然终止计划执行
50
+ - **用户确认**:仅在致命错误或需要关键信息时请求用户确认
51
+ - **保持执行**:除非用户明确要求停止,否则持续执行直到任务完成
52
+
53
+ ### 禁止无故终止的情况
54
+
55
+ - ❌ 检查项目结构后突然终止
56
+ - ❌ 验证完成后停止执行
57
+ - ❌ 遇到小问题就放弃整个计划
58
+ - ❌ 工具调用失败后直接终止
59
+
60
+ ### 合法中断情况
61
+
62
+ 1. **致命错误**:无法继续执行的严重问题
63
+ 2. **用户主动要求**:用户明确要求停止或暂停
64
+ 3. **资源不足**:确实无法获取必要信息或权限
65
+ 4. **技术限制**:平台或工具的技术限制
66
+ 5. **安全风险**:可能造成数据丢失或系统损坏的操作
67
+
68
+ ---
69
+
70
+ ## 工具调用策略
71
+
72
+ ### 并发优先原则
73
+
74
+ - **批量并发**:需要读取多个文件/搜索多个模式时,合并为一次并发批次(上限3-5个)
75
+ - **避免重复**:同一请求内,禁止对同一文件执行超过2次的重复读取
76
+ - **语义去重**:禁止对同一语义问题进行3次以上的相似搜索
77
+ - **缓存复用**:已获取的内容直接复用,除非文件已被编辑
78
+
79
+ ### 工具调用前检查清单
80
+
81
+ - [ ] 这次批量调用能否合并为并发?
82
+ - [ ] 是否重复读取同一文件/重复搜索相同语义?
83
+ - [ ] 是否已有内容可直接使用?
84
+ - [ ] 是否应进入编辑/产出阶段?
85
+
86
+ ---
87
+
88
+ ## 质量检查清单
89
+
90
+ ### 大模型行为检查
91
+
92
+ - [ ] 是否全程使用中文与用户对话?
93
+ - [ ] 是否避免了不必要的道歉和确认?
94
+ - [ ] 是否保持了执行连续性,避免无故终止?
95
+ - [ ] 是否主动预判用户需求?
96
+ - [ ] 是否遵循了直接有效的沟通风格?
97
+ - [ ] 是否避免了禁止行为?
98
+
99
+ ### 工具调用检查
100
+
101
+ - [ ] 是否优先使用并发工具调用?
102
+ - [ ] 是否避免了重复读取和搜索?
103
+ - [ ] 是否实现了智能重试机制?
104
+ - [ ] 是否遵循了并发调用上限(3-5个)?
105
+ - [ ] 是否避免了语义重复搜索?
106
+
107
+ ### 语言使用检查
108
+
109
+ - [ ] 是否全程使用中文与用户对话?
110
+ - [ ] 技术术语是否保留了英文?
111
+ - [ ] 代码注释是否使用中文?
112
+ - [ ] 错误信息是否使用中文?
113
+
114
+ ### 交互风格检查
115
+
116
+ - [ ] 是否先给答案再给解释?
117
+ - [ ] 回答是否简洁精炼?
118
+ - [ ] 是否主动提供解决方案?
119
+ - [ ] 是否将用户视为领域专家?
120
+
121
+ ### 执行连续性检查
122
+
123
+ - [ ] 是否保持了执行连续性,避免无故终止?
124
+ - [ ] 是否主动预判用户需求?
125
+ - [ ] 是否遵循了直接有效的沟通风格?
126
+ - [ ] 是否避免了禁止行为?
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { ICommandLoader } from './types.js';
7
+ import type { SlashCommand } from '../ui/commands/types.js';
8
+ import type { Config } from '@rdmind/rdmind-core';
9
+ /**
10
+ * Loads the core, hard-coded slash commands that are an integral part
11
+ * of the Gemini CLI application.
12
+ */
13
+ export declare class BuiltinCommandLoader implements ICommandLoader {
14
+ private config;
15
+ constructor(config: Config | null);
16
+ /**
17
+ * Gathers all raw built-in command definitions, injects dependencies where
18
+ * needed (e.g., config) and filters out any that are not available.
19
+ *
20
+ * @param _signal An AbortSignal (unused for this synchronous loader).
21
+ * @returns A promise that resolves to an array of `SlashCommand` objects.
22
+ */
23
+ loadCommands(_signal: AbortSignal): Promise<SlashCommand[]>;
24
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { aboutCommand } from '../ui/commands/aboutCommand.js';
7
+ import { agentsCommand } from '../ui/commands/agentsCommand.js';
8
+ import { approvalModeCommand } from '../ui/commands/approvalModeCommand.js';
9
+ import { authCommand } from '../ui/commands/authCommand.js';
10
+ import { bugCommand } from '../ui/commands/bugCommand.js';
11
+ import { chatCommand } from '../ui/commands/chatCommand.js';
12
+ import { clearCommand } from '../ui/commands/clearCommand.js';
13
+ import { compressCommand } from '../ui/commands/compressCommand.js';
14
+ import { copyCommand } from '../ui/commands/copyCommand.js';
15
+ import { corgiCommand } from '../ui/commands/corgiCommand.js';
16
+ import { createCommand } from '../ui/commands/createCommand.js';
17
+ import { docsCommand } from '../ui/commands/docsCommand.js';
18
+ import { directoryCommand } from '../ui/commands/directoryCommand.js';
19
+ import { editorCommand } from '../ui/commands/editorCommand.js';
20
+ import { extensionsCommand } from '../ui/commands/extensionsCommand.js';
21
+ import { helpCommand } from '../ui/commands/helpCommand.js';
22
+ import { ideCommand } from '../ui/commands/ideCommand.js';
23
+ import { importCommand } from '../ui/commands/importCommand.js';
24
+ import { initCommand } from '../ui/commands/initCommand.js';
25
+ import { mcpCommand } from '../ui/commands/mcpCommand.js';
26
+ import { memoryCommand } from '../ui/commands/memoryCommand.js';
27
+ import { modelCommand } from '../ui/commands/modelCommand.js';
28
+ import { privacyCommand } from '../ui/commands/privacyCommand.js';
29
+ import { quitCommand, quitConfirmCommand } from '../ui/commands/quitCommand.js';
30
+ import { rdconfigCommand } from '../ui/commands/rdconfigCommand.js';
31
+ import { rdflowCommand } from '../ui/commands/rdflowCommand.js';
32
+ import { restoreCommand } from '../ui/commands/restoreCommand.js';
33
+ import { settingsCommand } from '../ui/commands/settingsCommand.js';
34
+ import { statsCommand } from '../ui/commands/statsCommand.js';
35
+ import { summaryCommand } from '../ui/commands/summaryCommand.js';
36
+ import { terminalSetupCommand } from '../ui/commands/terminalSetupCommand.js';
37
+ import { themeCommand } from '../ui/commands/themeCommand.js';
38
+ import { toolsCommand } from '../ui/commands/toolsCommand.js';
39
+ import { vimCommand } from '../ui/commands/vimCommand.js';
40
+ import { setupGithubCommand } from '../ui/commands/setupGithubCommand.js';
41
+ /**
42
+ * Loads the core, hard-coded slash commands that are an integral part
43
+ * of the Gemini CLI application.
44
+ */
45
+ export class BuiltinCommandLoader {
46
+ config;
47
+ constructor(config) {
48
+ this.config = config;
49
+ }
50
+ /**
51
+ * Gathers all raw built-in command definitions, injects dependencies where
52
+ * needed (e.g., config) and filters out any that are not available.
53
+ *
54
+ * @param _signal An AbortSignal (unused for this synchronous loader).
55
+ * @returns A promise that resolves to an array of `SlashCommand` objects.
56
+ */
57
+ async loadCommands(_signal) {
58
+ const allDefinitions = [
59
+ aboutCommand,
60
+ agentsCommand,
61
+ approvalModeCommand,
62
+ authCommand,
63
+ bugCommand,
64
+ chatCommand,
65
+ clearCommand,
66
+ compressCommand,
67
+ copyCommand,
68
+ corgiCommand,
69
+ createCommand,
70
+ docsCommand,
71
+ directoryCommand,
72
+ editorCommand,
73
+ extensionsCommand,
74
+ helpCommand,
75
+ ideCommand(this.config),
76
+ importCommand,
77
+ initCommand,
78
+ rdflowCommand,
79
+ rdconfigCommand,
80
+ mcpCommand,
81
+ memoryCommand,
82
+ modelCommand,
83
+ privacyCommand,
84
+ quitCommand,
85
+ quitConfirmCommand,
86
+ restoreCommand(this.config),
87
+ statsCommand,
88
+ summaryCommand,
89
+ themeCommand,
90
+ toolsCommand,
91
+ settingsCommand,
92
+ vimCommand,
93
+ setupGithubCommand,
94
+ terminalSetupCommand,
95
+ ];
96
+ return allDefinitions.filter((cmd) => cmd !== null);
97
+ }
98
+ }
99
+ //# sourceMappingURL=BuiltinCommandLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuiltinCommandLoader.js","sourceRoot":"","sources":["../../../src/services/BuiltinCommandLoader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;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gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAAC,OAAoB;QACrC,MAAM,cAAc,GAA+B;YACjD,YAAY;YACZ,aAAa;YACb,mBAAmB;YACnB,WAAW;YACX,UAAU;YACV,WAAW;YACX,YAAY;YACZ,eAAe;YACf,WAAW;YACX,YAAY;YACZ,aAAa;YACb,WAAW;YACX,gBAAgB;YAChB,aAAa;YACb,iBAAiB;YACjB,WAAW;YACX,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;YACvB,aAAa;YACb,WAAW;YACX,aAAa;YACb,eAAe;YACf,UAAU;YACV,aAAa;YACb,YAAY;YACZ,cAAc;YACd,WAAW;YACX,kBAAkB;YAClB,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YAC3B,YAAY;YACZ,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,eAAe;YACf,UAAU;YACV,kBAAkB;YAClB,oBAAoB;SACrB,CAAC;QAEF,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,EAAuB,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -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,130 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ vi.mock('../ui/commands/aboutCommand.js', async () => {
7
+ const { CommandKind } = await import('../ui/commands/types.js');
8
+ return {
9
+ aboutCommand: {
10
+ name: 'about',
11
+ description: 'About the CLI',
12
+ kind: CommandKind.BUILT_IN,
13
+ },
14
+ };
15
+ });
16
+ vi.mock('../ui/commands/approvalModeCommand.js', () => ({
17
+ approvalModeCommand: {
18
+ name: 'approval-mode',
19
+ description: 'Approval mode command',
20
+ kind: 'built-in',
21
+ },
22
+ }));
23
+ vi.mock('../ui/commands/ideCommand.js', () => ({ ideCommand: vi.fn() }));
24
+ vi.mock('../ui/commands/restoreCommand.js', () => ({
25
+ restoreCommand: vi.fn(),
26
+ }));
27
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
28
+ import { BuiltinCommandLoader } from './BuiltinCommandLoader.js';
29
+ import { CommandKind } from '../ui/commands/types.js';
30
+ import { ideCommand } from '../ui/commands/ideCommand.js';
31
+ import { restoreCommand } from '../ui/commands/restoreCommand.js';
32
+ vi.mock('../ui/commands/authCommand.js', () => ({ authCommand: {} }));
33
+ vi.mock('../ui/commands/bugCommand.js', () => ({ bugCommand: {} }));
34
+ vi.mock('../ui/commands/chatCommand.js', () => ({ chatCommand: {} }));
35
+ vi.mock('../ui/commands/clearCommand.js', () => ({ clearCommand: {} }));
36
+ vi.mock('../ui/commands/compressCommand.js', () => ({ compressCommand: {} }));
37
+ vi.mock('../ui/commands/corgiCommand.js', () => ({ corgiCommand: {} }));
38
+ vi.mock('../ui/commands/docsCommand.js', () => ({ docsCommand: {} }));
39
+ vi.mock('../ui/commands/editorCommand.js', () => ({ editorCommand: {} }));
40
+ vi.mock('../ui/commands/extensionsCommand.js', () => ({
41
+ extensionsCommand: {},
42
+ }));
43
+ vi.mock('../ui/commands/helpCommand.js', () => ({ helpCommand: {} }));
44
+ vi.mock('../ui/commands/memoryCommand.js', () => ({ memoryCommand: {} }));
45
+ vi.mock('../ui/commands/privacyCommand.js', () => ({ privacyCommand: {} }));
46
+ vi.mock('../ui/commands/quitCommand.js', () => ({
47
+ quitCommand: {},
48
+ quitConfirmCommand: {},
49
+ }));
50
+ vi.mock('../ui/commands/statsCommand.js', () => ({ statsCommand: {} }));
51
+ vi.mock('../ui/commands/themeCommand.js', () => ({ themeCommand: {} }));
52
+ vi.mock('../ui/commands/toolsCommand.js', () => ({ toolsCommand: {} }));
53
+ vi.mock('../ui/commands/mcpCommand.js', () => ({
54
+ mcpCommand: {
55
+ name: 'mcp',
56
+ description: 'MCP command',
57
+ kind: 'BUILT_IN',
58
+ },
59
+ }));
60
+ vi.mock('../ui/commands/modelCommand.js', () => ({
61
+ modelCommand: {
62
+ name: 'model',
63
+ description: 'Model command',
64
+ kind: 'BUILT_IN',
65
+ },
66
+ }));
67
+ describe('BuiltinCommandLoader', () => {
68
+ let mockConfig;
69
+ const ideCommandMock = ideCommand;
70
+ const restoreCommandMock = restoreCommand;
71
+ beforeEach(() => {
72
+ vi.clearAllMocks();
73
+ mockConfig = { some: 'config' };
74
+ ideCommandMock.mockReturnValue({
75
+ name: 'ide',
76
+ description: 'IDE command',
77
+ kind: CommandKind.BUILT_IN,
78
+ });
79
+ restoreCommandMock.mockReturnValue({
80
+ name: 'restore',
81
+ description: 'Restore command',
82
+ kind: CommandKind.BUILT_IN,
83
+ });
84
+ });
85
+ it('should correctly pass the config object to command factory functions', async () => {
86
+ const loader = new BuiltinCommandLoader(mockConfig);
87
+ await loader.loadCommands(new AbortController().signal);
88
+ expect(ideCommandMock).toHaveBeenCalledTimes(1);
89
+ expect(ideCommandMock).toHaveBeenCalledWith(mockConfig);
90
+ expect(restoreCommandMock).toHaveBeenCalledTimes(1);
91
+ expect(restoreCommandMock).toHaveBeenCalledWith(mockConfig);
92
+ });
93
+ it('should filter out null command definitions returned by factories', async () => {
94
+ // Override the mock's behavior for this specific test.
95
+ ideCommandMock.mockReturnValue(null);
96
+ const loader = new BuiltinCommandLoader(mockConfig);
97
+ const commands = await loader.loadCommands(new AbortController().signal);
98
+ // The 'ide' command should be filtered out.
99
+ const ideCmd = commands.find((c) => c.name === 'ide');
100
+ expect(ideCmd).toBeUndefined();
101
+ // Other commands should still be present.
102
+ const aboutCmd = commands.find((c) => c.name === 'about');
103
+ expect(aboutCmd).toBeDefined();
104
+ });
105
+ it('should handle a null config gracefully when calling factories', async () => {
106
+ const loader = new BuiltinCommandLoader(null);
107
+ await loader.loadCommands(new AbortController().signal);
108
+ expect(ideCommandMock).toHaveBeenCalledTimes(1);
109
+ expect(ideCommandMock).toHaveBeenCalledWith(null);
110
+ expect(restoreCommandMock).toHaveBeenCalledTimes(1);
111
+ expect(restoreCommandMock).toHaveBeenCalledWith(null);
112
+ });
113
+ it('should return a list of all loaded commands', async () => {
114
+ const loader = new BuiltinCommandLoader(mockConfig);
115
+ const commands = await loader.loadCommands(new AbortController().signal);
116
+ const aboutCmd = commands.find((c) => c.name === 'about');
117
+ expect(aboutCmd).toBeDefined();
118
+ expect(aboutCmd?.kind).toBe(CommandKind.BUILT_IN);
119
+ const approvalModeCmd = commands.find((c) => c.name === 'approval-mode');
120
+ expect(approvalModeCmd).toBeDefined();
121
+ expect(approvalModeCmd?.kind).toBe(CommandKind.BUILT_IN);
122
+ const ideCmd = commands.find((c) => c.name === 'ide');
123
+ expect(ideCmd).toBeDefined();
124
+ const mcpCmd = commands.find((c) => c.name === 'mcp');
125
+ expect(mcpCmd).toBeDefined();
126
+ const modelCmd = commands.find((c) => c.name === 'model');
127
+ expect(modelCmd).toBeDefined();
128
+ });
129
+ });
130
+ //# sourceMappingURL=BuiltinCommandLoader.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuiltinCommandLoader.test.js","sourceRoot":"","sources":["../../../src/services/BuiltinCommandLoader.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,EAAE,CAAC,IAAI,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAChE,OAAO;QACL,YAAY,EAAE;YACZ,IAAI,EAAE,OAAO;Y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MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC;QACtD,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;QAE7B,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC;QACtD,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;QAE7B,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC;QAC1D,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { SlashCommand } from '../ui/commands/types.js';
7
+ import type { ICommandLoader } from './types.js';
8
+ /**
9
+ * Orchestrates the discovery and loading of all slash commands for the CLI.
10
+ *
11
+ * This service operates on a provider-based loader pattern. It is initialized
12
+ * with an array of `ICommandLoader` instances, each responsible for fetching
13
+ * commands from a specific source (e.g., built-in code, local files).
14
+ *
15
+ * The CommandService is responsible for invoking these loaders, aggregating their
16
+ * results, and resolving any name conflicts. This architecture allows the command
17
+ * system to be extended with new sources without modifying the service itself.
18
+ */
19
+ export declare class CommandService {
20
+ private readonly commands;
21
+ /**
22
+ * Private constructor to enforce the use of the async factory.
23
+ * @param commands A readonly array of the fully loaded and de-duplicated commands.
24
+ */
25
+ private constructor();
26
+ /**
27
+ * Asynchronously creates and initializes a new CommandService instance.
28
+ *
29
+ * This factory method orchestrates the entire command loading process. It
30
+ * runs all provided loaders in parallel, aggregates their results, handles
31
+ * name conflicts for extension commands by renaming them, and then returns a
32
+ * fully constructed `CommandService` instance.
33
+ *
34
+ * Conflict resolution:
35
+ * - Extension commands that conflict with existing commands are renamed to
36
+ * `extensionName.commandName`
37
+ * - Non-extension commands (built-in, user, project) override earlier commands
38
+ * with the same name based on loader order
39
+ *
40
+ * @param loaders An array of objects that conform to the `ICommandLoader`
41
+ * interface. Built-in commands should come first, followed by FileCommandLoader.
42
+ * @param signal An AbortSignal to cancel the loading process.
43
+ * @returns A promise that resolves to a new, fully initialized `CommandService` instance.
44
+ */
45
+ static create(loaders: ICommandLoader[], signal: AbortSignal): Promise<CommandService>;
46
+ /**
47
+ * Retrieves the currently loaded and de-duplicated list of slash commands.
48
+ *
49
+ * This method is a safe accessor for the service's state. It returns a
50
+ * readonly array, preventing consumers from modifying the service's internal state.
51
+ *
52
+ * @returns A readonly, unified array of available `SlashCommand` objects.
53
+ */
54
+ getCommands(): readonly SlashCommand[];
55
+ }