@umsai/ums-code 0.0.14-v1 → 0.1.4-v2

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 (1268) hide show
  1. package/dist/index.js +9 -0
  2. package/dist/index.js.map +1 -1
  3. package/dist/package.json +19 -11
  4. package/dist/src/commands/extensions/disable.d.ts +13 -0
  5. package/dist/src/commands/extensions/disable.js +56 -0
  6. package/dist/src/commands/extensions/disable.js.map +1 -0
  7. package/dist/src/commands/extensions/enable.d.ts +13 -0
  8. package/dist/src/commands/extensions/enable.js +59 -0
  9. package/dist/src/commands/extensions/enable.js.map +1 -0
  10. package/dist/src/commands/extensions/examples/context/QWEN.md +8 -0
  11. package/dist/src/commands/extensions/examples/context/qwen-extension.json +4 -0
  12. package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  13. package/dist/src/commands/extensions/examples/custom-commands/qwen-extension.json +4 -0
  14. package/dist/src/commands/extensions/examples/exclude-tools/qwen-extension.json +5 -0
  15. package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
  16. package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
  17. package/dist/src/commands/extensions/examples/mcp-server/qwen-extension.json +11 -0
  18. package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
  19. package/dist/src/commands/extensions/install.d.ts +14 -0
  20. package/dist/src/commands/extensions/install.js +78 -0
  21. package/dist/src/commands/extensions/install.js.map +1 -0
  22. package/dist/src/commands/extensions/install.test.d.ts +6 -0
  23. package/dist/src/commands/extensions/install.test.js +102 -0
  24. package/dist/src/commands/extensions/install.test.js.map +1 -0
  25. package/dist/src/commands/extensions/link.d.ts +12 -0
  26. package/dist/src/commands/extensions/link.js +37 -0
  27. package/dist/src/commands/extensions/link.js.map +1 -0
  28. package/dist/src/commands/extensions/list.d.ts +8 -0
  29. package/dist/src/commands/extensions/list.js +32 -0
  30. package/dist/src/commands/extensions/list.js.map +1 -0
  31. package/dist/src/commands/extensions/new.d.ts +7 -0
  32. package/dist/src/commands/extensions/new.js +90 -0
  33. package/dist/src/commands/extensions/new.js.map +1 -0
  34. package/dist/src/commands/extensions/new.test.d.ts +6 -0
  35. package/dist/src/commands/extensions/new.test.js +59 -0
  36. package/dist/src/commands/extensions/new.test.js.map +1 -0
  37. package/dist/src/commands/extensions/uninstall.d.ts +12 -0
  38. package/dist/src/commands/extensions/uninstall.js +38 -0
  39. package/dist/src/commands/extensions/uninstall.js.map +1 -0
  40. package/dist/src/commands/extensions/uninstall.test.d.ts +6 -0
  41. package/dist/src/commands/extensions/uninstall.test.js +18 -0
  42. package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
  43. package/dist/src/commands/extensions/update.d.ts +13 -0
  44. package/dist/src/commands/extensions/update.js +104 -0
  45. package/dist/src/commands/extensions/update.js.map +1 -0
  46. package/dist/src/commands/extensions.d.ts +7 -0
  47. package/dist/src/commands/extensions.js +33 -0
  48. package/dist/src/commands/extensions.js.map +1 -0
  49. package/dist/src/commands/mcp/add.d.ts +7 -0
  50. package/dist/src/commands/mcp/add.js +172 -0
  51. package/dist/src/commands/mcp/add.js.map +1 -0
  52. package/dist/src/commands/mcp/list.d.ts +8 -0
  53. package/dist/src/commands/mcp/list.js +111 -0
  54. package/dist/src/commands/mcp/list.js.map +1 -0
  55. package/dist/src/commands/mcp/remove.d.ts +7 -0
  56. package/dist/src/commands/mcp/remove.js +44 -0
  57. package/dist/src/commands/mcp/remove.js.map +1 -0
  58. package/dist/src/commands/mcp.d.ts +7 -0
  59. package/dist/src/commands/mcp.js +23 -0
  60. package/dist/src/commands/mcp.js.map +1 -0
  61. package/dist/src/config/auth.d.ts +2 -4
  62. package/dist/src/config/auth.js +15 -40
  63. package/dist/src/config/auth.js.map +1 -1
  64. package/dist/src/config/auth.test.d.ts +6 -0
  65. package/dist/src/config/auth.test.js +37 -0
  66. package/dist/src/config/auth.test.js.map +1 -0
  67. package/dist/src/config/config.d.ts +17 -10
  68. package/dist/src/config/config.js +379 -196
  69. package/dist/src/config/config.js.map +1 -1
  70. package/dist/src/config/extension.d.ts +64 -3
  71. package/dist/src/config/extension.js +477 -61
  72. package/dist/src/config/extension.js.map +1 -1
  73. package/dist/src/config/extensions/extensionEnablement.d.ts +47 -0
  74. package/dist/src/config/extensions/extensionEnablement.js +189 -0
  75. package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
  76. package/dist/src/config/extensions/extensionEnablement.test.d.ts +6 -0
  77. package/dist/src/config/extensions/extensionEnablement.test.js +333 -0
  78. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
  79. package/dist/src/config/extensions/github.d.ts +30 -0
  80. package/dist/src/config/extensions/github.js +322 -0
  81. package/dist/src/config/extensions/github.js.map +1 -0
  82. package/dist/src/config/extensions/github.test.d.ts +6 -0
  83. package/dist/src/config/extensions/github.test.js +334 -0
  84. package/dist/src/config/extensions/github.test.js.map +1 -0
  85. package/dist/src/config/extensions/update.d.ts +19 -0
  86. package/dist/src/config/extensions/update.js +113 -0
  87. package/dist/src/config/extensions/update.js.map +1 -0
  88. package/dist/src/config/extensions/update.test.d.ts +6 -0
  89. package/dist/src/config/extensions/update.test.js +342 -0
  90. package/dist/src/config/extensions/update.test.js.map +1 -0
  91. package/dist/src/config/extensions/variableSchema.d.ts +36 -0
  92. package/dist/src/config/extensions/variableSchema.js +22 -0
  93. package/dist/src/config/extensions/variableSchema.js.map +1 -0
  94. package/dist/src/config/extensions/variables.d.ts +17 -0
  95. package/dist/src/config/extensions/variables.js +40 -0
  96. package/dist/src/config/extensions/variables.js.map +1 -0
  97. package/dist/src/config/extensions/variables.test.d.ts +6 -0
  98. package/dist/src/config/extensions/variables.test.js +17 -0
  99. package/dist/src/config/extensions/variables.test.js.map +1 -0
  100. package/dist/src/config/keyBindings.d.ts +70 -0
  101. package/dist/src/config/keyBindings.js +130 -0
  102. package/dist/src/config/keyBindings.js.map +1 -0
  103. package/dist/src/config/keyBindings.test.d.ts +6 -0
  104. package/dist/src/config/keyBindings.test.js +51 -0
  105. package/dist/src/config/keyBindings.test.js.map +1 -0
  106. package/dist/src/config/sandboxConfig.d.ts +2 -2
  107. package/dist/src/config/sandboxConfig.js +8 -10
  108. package/dist/src/config/sandboxConfig.js.map +1 -1
  109. package/dist/src/config/settings.d.ts +22 -72
  110. package/dist/src/config/settings.js +425 -151
  111. package/dist/src/config/settings.js.map +1 -1
  112. package/dist/src/config/settingsSchema.d.ts +1102 -0
  113. package/dist/src/config/settingsSchema.js +1068 -0
  114. package/dist/src/config/settingsSchema.js.map +1 -0
  115. package/dist/src/config/settingsSchema.test.d.ts +6 -0
  116. package/dist/src/config/settingsSchema.test.js +201 -0
  117. package/dist/src/config/settingsSchema.test.js.map +1 -0
  118. package/dist/src/config/trustedFolders.d.ts +56 -0
  119. package/dist/src/config/trustedFolders.js +168 -0
  120. package/dist/src/config/trustedFolders.js.map +1 -0
  121. package/dist/src/config/trustedFolders.test.d.ts +6 -0
  122. package/dist/src/config/trustedFolders.test.js +340 -0
  123. package/dist/src/config/trustedFolders.test.js.map +1 -0
  124. package/dist/src/core/auth.d.ts +13 -0
  125. package/dist/src/core/auth.js +27 -0
  126. package/dist/src/core/auth.js.map +1 -0
  127. package/dist/src/core/initializer.d.ts +21 -0
  128. package/dist/src/core/initializer.js +33 -0
  129. package/dist/src/core/initializer.js.map +1 -0
  130. package/dist/src/core/theme.d.ts +12 -0
  131. package/dist/src/core/theme.js +20 -0
  132. package/dist/src/core/theme.js.map +1 -0
  133. package/dist/src/gemini.d.ts +4 -1
  134. package/dist/src/gemini.js +202 -154
  135. package/dist/src/gemini.js.map +1 -1
  136. package/dist/src/gemini.test.d.ts +6 -0
  137. package/dist/src/gemini.test.js +390 -0
  138. package/dist/src/gemini.test.js.map +1 -0
  139. package/dist/src/generated/git-commit.d.ts +2 -1
  140. package/dist/src/generated/git-commit.js +2 -1
  141. package/dist/src/generated/git-commit.js.map +1 -1
  142. package/dist/src/nonInteractiveCli.d.ts +3 -2
  143. package/dist/src/nonInteractiveCli.js +101 -88
  144. package/dist/src/nonInteractiveCli.js.map +1 -1
  145. package/dist/src/nonInteractiveCliCommands.d.ts +17 -0
  146. package/dist/src/nonInteractiveCliCommands.js +79 -0
  147. package/dist/src/nonInteractiveCliCommands.js.map +1 -0
  148. package/dist/src/services/BuiltinCommandLoader.d.ts +3 -4
  149. package/dist/src/services/BuiltinCommandLoader.js +18 -7
  150. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  151. package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
  152. package/dist/src/services/BuiltinCommandLoader.test.js +164 -0
  153. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
  154. package/dist/src/services/CommandService.d.ts +2 -2
  155. package/dist/src/services/CommandService.test.d.ts +6 -0
  156. package/dist/src/services/CommandService.test.js +233 -0
  157. package/dist/src/services/CommandService.test.js.map +1 -0
  158. package/dist/src/services/FileCommandLoader.d.ts +5 -3
  159. package/dist/src/services/FileCommandLoader.js +38 -19
  160. package/dist/src/services/FileCommandLoader.js.map +1 -1
  161. package/dist/src/services/McpPromptLoader.d.ts +14 -4
  162. package/dist/src/services/McpPromptLoader.js +89 -28
  163. package/dist/src/services/McpPromptLoader.js.map +1 -1
  164. package/dist/src/services/McpPromptLoader.test.d.ts +6 -0
  165. package/dist/src/services/McpPromptLoader.test.js +341 -0
  166. package/dist/src/services/McpPromptLoader.test.js.map +1 -0
  167. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +5 -10
  168. package/dist/src/services/prompt-processors/argumentProcessor.js +5 -12
  169. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -1
  170. package/dist/src/services/prompt-processors/atFileProcessor.d.ts +12 -0
  171. package/dist/src/services/prompt-processors/atFileProcessor.js +62 -0
  172. package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
  173. package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +6 -0
  174. package/dist/src/services/prompt-processors/atFileProcessor.test.js +174 -0
  175. package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
  176. package/dist/src/services/prompt-processors/injectionParser.d.ts +29 -0
  177. package/dist/src/services/prompt-processors/injectionParser.js +60 -0
  178. package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
  179. package/dist/src/services/prompt-processors/injectionParser.test.d.ts +6 -0
  180. package/dist/src/services/prompt-processors/injectionParser.test.js +189 -0
  181. package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
  182. package/dist/src/services/prompt-processors/shellProcessor.d.ts +11 -16
  183. package/dist/src/services/prompt-processors/shellProcessor.js +92 -41
  184. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
  185. package/dist/src/services/prompt-processors/types.d.ts +15 -8
  186. package/dist/src/services/prompt-processors/types.js +6 -0
  187. package/dist/src/services/prompt-processors/types.js.map +1 -1
  188. package/dist/src/services/types.d.ts +1 -1
  189. package/dist/src/test-utils/createExtension.d.ts +15 -0
  190. package/dist/src/test-utils/createExtension.js +25 -0
  191. package/dist/src/test-utils/createExtension.js.map +1 -0
  192. package/dist/src/test-utils/customMatchers.d.ts +14 -0
  193. package/dist/src/test-utils/customMatchers.js +40 -0
  194. package/dist/src/test-utils/customMatchers.js.map +1 -0
  195. package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
  196. package/dist/src/test-utils/mockCommandContext.js +92 -0
  197. package/dist/src/test-utils/mockCommandContext.js.map +1 -0
  198. package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
  199. package/dist/src/test-utils/mockCommandContext.test.js +51 -0
  200. package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
  201. package/dist/src/test-utils/render.d.ts +12 -0
  202. package/dist/src/test-utils/render.js +14 -0
  203. package/dist/src/test-utils/render.js.map +1 -0
  204. package/dist/src/ui/App.d.ts +1 -10
  205. package/dist/src/ui/App.js +27 -562
  206. package/dist/src/ui/App.js.map +1 -1
  207. package/dist/src/ui/AppContainer.d.ts +17 -0
  208. package/dist/src/ui/AppContainer.js +1069 -0
  209. package/dist/src/ui/AppContainer.js.map +1 -0
  210. package/dist/src/ui/AppContainer.test.d.ts +6 -0
  211. package/dist/src/ui/AppContainer.test.js +831 -0
  212. package/dist/src/ui/AppContainer.test.js.map +1 -0
  213. package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
  214. package/dist/src/ui/IdeIntegrationNudge.js +50 -0
  215. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
  216. package/dist/src/ui/{components → auth}/AuthDialog.d.ts +7 -3
  217. package/dist/src/ui/{components → auth}/AuthDialog.js +42 -44
  218. package/dist/src/ui/auth/AuthDialog.js.map +1 -0
  219. package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
  220. package/dist/src/ui/auth/AuthDialog.test.js +362 -0
  221. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
  222. package/dist/src/ui/{components → auth}/AuthInProgress.d.ts +1 -1
  223. package/dist/src/ui/auth/AuthInProgress.js +23 -0
  224. package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
  225. package/dist/src/ui/auth/useAuth.d.ts +24 -0
  226. package/dist/src/ui/auth/useAuth.js +108 -0
  227. package/dist/src/ui/auth/useAuth.js.map +1 -0
  228. package/dist/src/ui/colors.d.ts +1 -1
  229. package/dist/src/ui/commands/aboutCommand.d.ts +1 -1
  230. package/dist/src/ui/commands/aboutCommand.js +16 -6
  231. package/dist/src/ui/commands/aboutCommand.js.map +1 -1
  232. package/dist/src/ui/commands/agentsCommand.d.ts +7 -0
  233. package/dist/src/ui/commands/agentsCommand.js +32 -0
  234. package/dist/src/ui/commands/agentsCommand.js.map +1 -0
  235. package/dist/src/ui/commands/approvalModeCommand.d.ts +7 -0
  236. package/dist/src/ui/commands/approvalModeCommand.js +340 -0
  237. package/dist/src/ui/commands/approvalModeCommand.js.map +1 -0
  238. package/dist/src/ui/commands/approvalModeCommand.test.d.ts +6 -0
  239. package/dist/src/ui/commands/approvalModeCommand.test.js +293 -0
  240. package/dist/src/ui/commands/approvalModeCommand.test.js.map +1 -0
  241. package/dist/src/ui/commands/authCommand.d.ts +1 -1
  242. package/dist/src/ui/commands/authCommand.js.map +1 -1
  243. package/dist/src/ui/commands/bugCommand.js +27 -5
  244. package/dist/src/ui/commands/bugCommand.js.map +1 -1
  245. package/dist/src/ui/commands/chatCommand.d.ts +3 -1
  246. package/dist/src/ui/commands/chatCommand.js +120 -12
  247. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  248. package/dist/src/ui/commands/clearCommand.d.ts +1 -1
  249. package/dist/src/ui/commands/clearCommand.js +1 -2
  250. package/dist/src/ui/commands/clearCommand.js.map +1 -1
  251. package/dist/src/ui/commands/compressCommand.d.ts +1 -1
  252. package/dist/src/ui/commands/compressCommand.js +2 -0
  253. package/dist/src/ui/commands/compressCommand.js.map +1 -1
  254. package/dist/src/ui/commands/copyCommand.d.ts +1 -1
  255. package/dist/src/ui/commands/copyCommand.js +2 -2
  256. package/dist/src/ui/commands/copyCommand.js.map +1 -1
  257. package/dist/src/ui/commands/corgiCommand.js +1 -0
  258. package/dist/src/ui/commands/corgiCommand.js.map +1 -1
  259. package/dist/src/ui/commands/directoryCommand.d.ts +1 -1
  260. package/dist/src/ui/commands/directoryCommand.js +7 -8
  261. package/dist/src/ui/commands/directoryCommand.js.map +1 -1
  262. package/dist/src/ui/commands/docsCommand.js +1 -1
  263. package/dist/src/ui/commands/docsCommand.js.map +1 -1
  264. package/dist/src/ui/commands/extensionsCommand.js +92 -15
  265. package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
  266. package/dist/src/ui/commands/helpCommand.d.ts +1 -1
  267. package/dist/src/ui/commands/helpCommand.js.map +1 -1
  268. package/dist/src/ui/commands/ideCommand.d.ts +2 -3
  269. package/dist/src/ui/commands/ideCommand.js +107 -28
  270. package/dist/src/ui/commands/ideCommand.js.map +1 -1
  271. package/dist/src/ui/commands/initCommand.d.ts +2 -2
  272. package/dist/src/ui/commands/initCommand.js +20 -10
  273. package/dist/src/ui/commands/initCommand.js.map +1 -1
  274. package/dist/src/ui/commands/mcpCommand.d.ts +1 -1
  275. package/dist/src/ui/commands/mcpCommand.js +98 -269
  276. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  277. package/dist/src/ui/commands/memoryCommand.d.ts +1 -1
  278. package/dist/src/ui/commands/memoryCommand.js +143 -9
  279. package/dist/src/ui/commands/memoryCommand.js.map +1 -1
  280. package/dist/src/ui/commands/modelCommand.d.ts +7 -0
  281. package/dist/src/ui/commands/modelCommand.js +53 -0
  282. package/dist/src/ui/commands/modelCommand.js.map +1 -0
  283. package/dist/src/ui/commands/modelCommand.test.d.ts +6 -0
  284. package/dist/src/ui/commands/modelCommand.test.js +137 -0
  285. package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
  286. package/dist/src/ui/commands/permissionsCommand.d.ts +7 -0
  287. package/dist/src/ui/commands/{privacyCommand.js → permissionsCommand.js} +5 -5
  288. package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
  289. package/dist/src/ui/commands/permissionsCommand.test.d.ts +6 -0
  290. package/dist/src/ui/commands/permissionsCommand.test.js +30 -0
  291. package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
  292. package/dist/src/ui/commands/quitCommand.d.ts +1 -0
  293. package/dist/src/ui/commands/quitCommand.js +25 -0
  294. package/dist/src/ui/commands/quitCommand.js.map +1 -1
  295. package/dist/src/ui/commands/restoreCommand.d.ts +1 -1
  296. package/dist/src/ui/commands/restoreCommand.js +4 -8
  297. package/dist/src/ui/commands/restoreCommand.js.map +1 -1
  298. package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
  299. package/dist/src/ui/commands/settingsCommand.js +16 -0
  300. package/dist/src/ui/commands/settingsCommand.js.map +1 -0
  301. package/dist/src/ui/commands/setupGithubCommand.d.ts +3 -1
  302. package/dist/src/ui/commands/setupGithubCommand.js +133 -27
  303. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
  304. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
  305. package/dist/src/ui/commands/setupGithubCommand.test.js +167 -0
  306. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
  307. package/dist/src/ui/commands/statsCommand.js.map +1 -1
  308. package/dist/src/ui/commands/summaryCommand.d.ts +7 -0
  309. package/dist/src/ui/commands/summaryCommand.js +149 -0
  310. package/dist/src/ui/commands/summaryCommand.js.map +1 -0
  311. package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
  312. package/dist/src/ui/commands/terminalSetupCommand.js +41 -0
  313. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
  314. package/dist/src/ui/commands/themeCommand.d.ts +1 -1
  315. package/dist/src/ui/commands/themeCommand.js.map +1 -1
  316. package/dist/src/ui/commands/toolsCommand.js +11 -25
  317. package/dist/src/ui/commands/toolsCommand.js.map +1 -1
  318. package/dist/src/ui/commands/types.d.ts +31 -11
  319. package/dist/src/ui/commands/types.js.map +1 -1
  320. package/dist/src/ui/commands/ums/umsInitCommand.d.ts +1 -1
  321. package/dist/src/ui/commands/ums/umsInitCommand.js +54 -20
  322. package/dist/src/ui/commands/ums/umsInitCommand.js.map +1 -1
  323. package/dist/src/ui/commands/vimCommand.d.ts +1 -1
  324. package/dist/src/ui/commands/vimCommand.js.map +1 -1
  325. package/dist/src/ui/components/AboutBox.d.ts +2 -1
  326. package/dist/src/ui/components/AboutBox.js +2 -2
  327. package/dist/src/ui/components/AboutBox.js.map +1 -1
  328. package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
  329. package/dist/src/ui/components/AnsiOutput.js +12 -0
  330. package/dist/src/ui/components/AnsiOutput.js.map +1 -0
  331. package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
  332. package/dist/src/ui/components/AnsiOutput.test.js +97 -0
  333. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
  334. package/dist/src/ui/components/AppHeader.d.ts +10 -0
  335. package/dist/src/ui/components/AppHeader.js +19 -0
  336. package/dist/src/ui/components/AppHeader.js.map +1 -0
  337. package/dist/src/ui/components/AsciiArt.d.ts +1 -0
  338. package/dist/src/ui/components/AsciiArt.js +8 -0
  339. package/dist/src/ui/components/AsciiArt.js.map +1 -1
  340. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +1 -1
  341. package/dist/src/ui/components/AutoAcceptIndicator.js +12 -7
  342. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -1
  343. package/dist/src/ui/components/Composer.d.ts +6 -0
  344. package/dist/src/ui/components/Composer.js +54 -0
  345. package/dist/src/ui/components/Composer.js.map +1 -0
  346. package/dist/src/ui/components/Composer.test.d.ts +6 -0
  347. package/dist/src/ui/components/Composer.test.js +337 -0
  348. package/dist/src/ui/components/Composer.test.js.map +1 -0
  349. package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
  350. package/dist/src/ui/components/ConfigInitDisplay.js +38 -0
  351. package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
  352. package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
  353. package/dist/src/ui/components/ConsentPrompt.js +19 -0
  354. package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
  355. package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
  356. package/dist/src/ui/components/ConsentPrompt.test.js +67 -0
  357. package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
  358. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +1 -1
  359. package/dist/src/ui/components/ConsoleSummaryDisplay.js +2 -2
  360. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -1
  361. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +1 -1
  362. package/dist/src/ui/components/ContextSummaryDisplay.js +24 -26
  363. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  364. package/dist/src/ui/components/ContextUsageDisplay.d.ts +12 -0
  365. package/dist/src/ui/components/ContextUsageDisplay.js +36 -0
  366. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
  367. package/dist/src/ui/components/DebugProfiler.js +7 -6
  368. package/dist/src/ui/components/DebugProfiler.js.map +1 -1
  369. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +2 -2
  370. package/dist/src/ui/components/DetailedMessagesDisplay.js +8 -8
  371. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
  372. package/dist/src/ui/components/DialogManager.d.ts +12 -0
  373. package/dist/src/ui/components/DialogManager.js +130 -0
  374. package/dist/src/ui/components/DialogManager.js.map +1 -0
  375. package/dist/src/ui/components/EditorSettingsDialog.d.ts +4 -3
  376. package/dist/src/ui/components/EditorSettingsDialog.js +30 -23
  377. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
  378. package/dist/src/ui/components/ExitWarning.d.ts +7 -0
  379. package/dist/src/ui/components/ExitWarning.js +9 -0
  380. package/dist/src/ui/components/ExitWarning.js.map +1 -0
  381. package/dist/src/ui/components/FolderTrustDialog.d.ts +17 -0
  382. package/dist/src/ui/components/FolderTrustDialog.js +58 -0
  383. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
  384. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
  385. package/dist/src/ui/components/FolderTrustDialog.test.js +88 -0
  386. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
  387. package/dist/src/ui/components/Footer.d.ts +2 -17
  388. package/dist/src/ui/components/Footer.js +38 -6
  389. package/dist/src/ui/components/Footer.js.map +1 -1
  390. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +6 -1
  391. package/dist/src/ui/components/GeminiRespondingSpinner.js +10 -3
  392. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
  393. package/dist/src/ui/components/Header.d.ts +1 -2
  394. package/dist/src/ui/components/Header.js +14 -6
  395. package/dist/src/ui/components/Header.js.map +1 -1
  396. package/dist/src/ui/components/Header.test.d.ts +6 -0
  397. package/dist/src/ui/components/Header.test.js +37 -0
  398. package/dist/src/ui/components/Header.test.js.map +1 -0
  399. package/dist/src/ui/components/Help.d.ts +2 -2
  400. package/dist/src/ui/components/Help.js +9 -6
  401. package/dist/src/ui/components/Help.js.map +1 -1
  402. package/dist/src/ui/components/Help.test.d.ts +6 -0
  403. package/dist/src/ui/components/Help.test.js +57 -0
  404. package/dist/src/ui/components/Help.test.js.map +1 -0
  405. package/dist/src/ui/components/HistoryItemDisplay.d.ts +7 -6
  406. package/dist/src/ui/components/HistoryItemDisplay.js +14 -1
  407. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  408. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
  409. package/dist/src/ui/components/HistoryItemDisplay.test.js +174 -0
  410. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
  411. package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
  412. package/dist/src/ui/components/IdeTrustChangeDialog.js +32 -0
  413. package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
  414. package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
  415. package/dist/src/ui/components/IdeTrustChangeDialog.test.js +57 -0
  416. package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
  417. package/dist/src/ui/components/InputPrompt.d.ts +15 -5
  418. package/dist/src/ui/components/InputPrompt.js +407 -76
  419. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  420. package/dist/src/ui/components/LoadingIndicator.d.ts +2 -2
  421. package/dist/src/ui/components/LoadingIndicator.js +11 -6
  422. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  423. package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
  424. package/dist/src/ui/components/LoadingIndicator.test.js +194 -0
  425. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
  426. package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
  427. package/dist/src/ui/components/LoopDetectionConfirmation.js +37 -0
  428. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
  429. package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
  430. package/dist/src/ui/components/LoopDetectionConfirmation.test.js +28 -0
  431. package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
  432. package/dist/src/ui/components/MainContent.d.ts +6 -0
  433. package/dist/src/ui/components/MainContent.js +28 -0
  434. package/dist/src/ui/components/MainContent.js.map +1 -0
  435. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +1 -1
  436. package/dist/src/ui/components/MemoryUsageDisplay.js +6 -9
  437. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
  438. package/dist/src/ui/components/ModelDialog.d.ts +11 -0
  439. package/dist/src/ui/components/ModelDialog.js +42 -0
  440. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  441. package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
  442. package/dist/src/ui/components/ModelDialog.test.js +158 -0
  443. package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
  444. package/dist/src/ui/components/ModelStatsDisplay.d.ts +1 -1
  445. package/dist/src/ui/components/ModelStatsDisplay.js +7 -7
  446. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
  447. package/dist/src/ui/components/ModelSwitchDialog.d.ts +17 -0
  448. package/dist/src/ui/components/ModelSwitchDialog.js +41 -0
  449. package/dist/src/ui/components/ModelSwitchDialog.js.map +1 -0
  450. package/dist/src/ui/components/ModelSwitchDialog.test.d.ts +6 -0
  451. package/dist/src/ui/components/ModelSwitchDialog.test.js +129 -0
  452. package/dist/src/ui/components/ModelSwitchDialog.test.js.map +1 -0
  453. package/dist/src/ui/components/Notifications.d.ts +6 -0
  454. package/dist/src/ui/components/Notifications.js +23 -0
  455. package/dist/src/ui/components/Notifications.js.map +1 -0
  456. package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +1 -1
  457. package/dist/src/ui/components/OpenAIKeyPrompt.js +63 -44
  458. package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -1
  459. package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +6 -0
  460. package/dist/src/ui/components/OpenAIKeyPrompt.test.js +51 -0
  461. package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +1 -0
  462. package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +13 -0
  463. package/dist/src/ui/components/PermissionsModifyTrustDialog.js +48 -0
  464. package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
  465. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
  466. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +154 -0
  467. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
  468. package/dist/src/ui/components/PlanSummaryDisplay.d.ts +14 -0
  469. package/dist/src/ui/components/PlanSummaryDisplay.js +9 -0
  470. package/dist/src/ui/components/PlanSummaryDisplay.js.map +1 -0
  471. package/dist/src/ui/components/PrepareLabel.d.ts +4 -4
  472. package/dist/src/ui/components/PrepareLabel.js +67 -11
  473. package/dist/src/ui/components/PrepareLabel.js.map +1 -1
  474. package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
  475. package/dist/src/ui/components/PrepareLabel.test.js +71 -0
  476. package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
  477. package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
  478. package/dist/src/ui/components/ProQuotaDialog.js +23 -0
  479. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
  480. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
  481. package/dist/src/ui/components/ProQuotaDialog.test.js +58 -0
  482. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
  483. package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
  484. package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
  485. package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
  486. package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
  487. package/dist/src/ui/components/QueuedMessageDisplay.test.js +56 -0
  488. package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
  489. package/dist/src/ui/components/QuitConfirmationDialog.d.ts +17 -0
  490. package/dist/src/ui/components/QuitConfirmationDialog.js +48 -0
  491. package/dist/src/ui/components/QuitConfirmationDialog.js.map +1 -0
  492. package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
  493. package/dist/src/ui/components/QuittingDisplay.js +20 -0
  494. package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
  495. package/dist/src/ui/components/QwenOAuthProgress.d.ts +2 -2
  496. package/dist/src/ui/components/QwenOAuthProgress.js +7 -11
  497. package/dist/src/ui/components/QwenOAuthProgress.js.map +1 -1
  498. package/dist/src/ui/components/QwenOAuthProgress.test.d.ts +6 -0
  499. package/dist/src/ui/components/QwenOAuthProgress.test.js +363 -0
  500. package/dist/src/ui/components/QwenOAuthProgress.test.js.map +1 -0
  501. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +1 -1
  502. package/dist/src/ui/components/SettingsDialog.d.ts +16 -0
  503. package/dist/src/ui/components/SettingsDialog.js +624 -0
  504. package/dist/src/ui/components/SettingsDialog.js.map +1 -0
  505. package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
  506. package/dist/src/ui/components/SettingsDialog.test.js +1036 -0
  507. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
  508. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +1 -1
  509. package/dist/src/ui/components/ShellConfirmationDialog.js +12 -7
  510. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  511. package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +6 -0
  512. package/dist/src/ui/components/ShellConfirmationDialog.test.js +40 -0
  513. package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
  514. package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
  515. package/dist/src/ui/components/ShellInputPrompt.js +36 -0
  516. package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
  517. package/dist/src/ui/components/ShellModeIndicator.d.ts +1 -1
  518. package/dist/src/ui/components/ShellModeIndicator.js +2 -2
  519. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -1
  520. package/dist/src/ui/components/ShowMoreLines.js +2 -2
  521. package/dist/src/ui/components/ShowMoreLines.js.map +1 -1
  522. package/dist/src/ui/components/StatsDisplay.d.ts +1 -1
  523. package/dist/src/ui/components/StatsDisplay.js +10 -9
  524. package/dist/src/ui/components/StatsDisplay.js.map +1 -1
  525. package/dist/src/ui/components/SuggestionsDisplay.d.ts +7 -2
  526. package/dist/src/ui/components/SuggestionsDisplay.js +16 -8
  527. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
  528. package/dist/src/ui/components/ThemeDialog.d.ts +3 -2
  529. package/dist/src/ui/components/ThemeDialog.js +25 -55
  530. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  531. package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
  532. package/dist/src/ui/components/ThemeDialog.test.js +75 -0
  533. package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
  534. package/dist/src/ui/components/Tips.d.ts +1 -1
  535. package/dist/src/ui/components/Tips.js +3 -2
  536. package/dist/src/ui/components/Tips.js.map +1 -1
  537. package/dist/src/ui/components/TodoDisplay.d.ts +16 -0
  538. package/dist/src/ui/components/TodoDisplay.js +27 -0
  539. package/dist/src/ui/components/TodoDisplay.js.map +1 -0
  540. package/dist/src/ui/components/TodoDisplay.test.d.ts +6 -0
  541. package/dist/src/ui/components/TodoDisplay.test.js +77 -0
  542. package/dist/src/ui/components/TodoDisplay.test.js.map +1 -0
  543. package/dist/src/ui/components/ToolStatsDisplay.d.ts +1 -1
  544. package/dist/src/ui/components/ToolStatsDisplay.js +4 -4
  545. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -1
  546. package/dist/src/ui/components/UpdateNotification.js +2 -2
  547. package/dist/src/ui/components/UpdateNotification.js.map +1 -1
  548. package/dist/src/ui/components/WelcomeBackDialog.d.ts +13 -0
  549. package/dist/src/ui/components/WelcomeBackDialog.js +34 -0
  550. package/dist/src/ui/components/WelcomeBackDialog.js.map +1 -0
  551. package/dist/src/ui/components/WorkspaceMigrationDialog.d.ts +11 -0
  552. package/dist/src/ui/components/WorkspaceMigrationDialog.js +45 -0
  553. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -0
  554. package/dist/src/ui/components/messages/CompressionMessage.d.ts +2 -3
  555. package/dist/src/ui/components/messages/CompressionMessage.js +38 -8
  556. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
  557. package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
  558. package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
  559. package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
  560. package/dist/src/ui/components/messages/DiffRenderer.d.ts +3 -2
  561. package/dist/src/ui/components/messages/DiffRenderer.js +22 -17
  562. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
  563. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
  564. package/dist/src/ui/components/messages/DiffRenderer.test.js +239 -0
  565. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
  566. package/dist/src/ui/components/messages/ErrorMessage.d.ts +1 -1
  567. package/dist/src/ui/components/messages/ErrorMessage.js +2 -2
  568. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -1
  569. package/dist/src/ui/components/messages/GeminiMessage.d.ts +1 -1
  570. package/dist/src/ui/components/messages/GeminiMessage.js +3 -2
  571. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
  572. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +1 -1
  573. package/dist/src/ui/components/messages/InfoMessage.d.ts +1 -1
  574. package/dist/src/ui/components/messages/InfoMessage.js +7 -2
  575. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
  576. package/dist/src/ui/components/messages/SummaryMessage.d.ts +11 -0
  577. package/dist/src/ui/components/messages/SummaryMessage.js +35 -0
  578. package/dist/src/ui/components/messages/SummaryMessage.js.map +1 -0
  579. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +4 -3
  580. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +149 -38
  581. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  582. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
  583. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +165 -0
  584. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
  585. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +5 -4
  586. package/dist/src/ui/components/messages/ToolGroupMessage.js +18 -15
  587. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
  588. package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +6 -0
  589. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +261 -0
  590. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
  591. package/dist/src/ui/components/messages/ToolMessage.d.ts +5 -1
  592. package/dist/src/ui/components/messages/ToolMessage.js +135 -16
  593. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  594. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
  595. package/dist/src/ui/components/messages/ToolMessage.test.js +182 -0
  596. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
  597. package/dist/src/ui/components/messages/UserMessage.d.ts +1 -1
  598. package/dist/src/ui/components/messages/UserMessage.js +6 -5
  599. package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
  600. package/dist/src/ui/components/messages/UserShellMessage.d.ts +1 -1
  601. package/dist/src/ui/components/messages/UserShellMessage.js +2 -2
  602. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
  603. package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
  604. package/dist/src/ui/components/messages/WarningMessage.js +10 -0
  605. package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
  606. package/dist/src/ui/components/shared/BaseSelectionList.d.ts +38 -0
  607. package/dist/src/ui/components/shared/BaseSelectionList.js +72 -0
  608. package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
  609. package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
  610. package/dist/src/ui/components/shared/BaseSelectionList.test.js +376 -0
  611. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
  612. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
  613. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
  614. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
  615. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
  616. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
  617. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
  618. package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
  619. package/dist/src/ui/components/shared/EnumSelector.js +44 -0
  620. package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
  621. package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
  622. package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
  623. package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
  624. package/dist/src/ui/components/shared/MaxSizedBox.js +3 -3
  625. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
  626. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
  627. package/dist/src/ui/components/shared/MaxSizedBox.test.js +154 -0
  628. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
  629. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +3 -4
  630. package/dist/src/ui/components/shared/RadioButtonSelect.js +11 -109
  631. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  632. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
  633. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +134 -0
  634. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
  635. package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
  636. package/dist/src/ui/components/shared/ScopeSelector.js +14 -0
  637. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
  638. package/dist/src/ui/components/shared/TextInput.d.ts +16 -0
  639. package/dist/src/ui/components/shared/TextInput.js +127 -0
  640. package/dist/src/ui/components/shared/TextInput.js.map +1 -0
  641. package/dist/src/ui/components/shared/text-buffer.d.ts +42 -6
  642. package/dist/src/ui/components/shared/text-buffer.js +530 -283
  643. package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
  644. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +1 -1
  645. package/dist/src/ui/components/shared/vim-buffer-actions.js +139 -152
  646. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -1
  647. package/dist/src/ui/components/subagents/constants.d.ts +23 -0
  648. package/dist/src/ui/components/subagents/constants.js +67 -0
  649. package/dist/src/ui/components/subagents/constants.js.map +1 -0
  650. package/dist/src/ui/components/subagents/create/AgentCreationWizard.d.ts +15 -0
  651. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +173 -0
  652. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +1 -0
  653. package/dist/src/ui/components/subagents/create/ColorSelector.d.ts +15 -0
  654. package/dist/src/ui/components/subagents/create/ColorSelector.js +43 -0
  655. package/dist/src/ui/components/subagents/create/ColorSelector.js.map +1 -0
  656. package/dist/src/ui/components/subagents/create/CreationSummary.d.ts +10 -0
  657. package/dist/src/ui/components/subagents/create/CreationSummary.js +164 -0
  658. package/dist/src/ui/components/subagents/create/CreationSummary.js.map +1 -0
  659. package/dist/src/ui/components/subagents/create/DescriptionInput.d.ts +10 -0
  660. package/dist/src/ui/components/subagents/create/DescriptionInput.js +104 -0
  661. package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +1 -0
  662. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.d.ts +10 -0
  663. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +34 -0
  664. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +1 -0
  665. package/dist/src/ui/components/subagents/create/LocationSelector.d.ts +10 -0
  666. package/dist/src/ui/components/subagents/create/LocationSelector.js +34 -0
  667. package/dist/src/ui/components/subagents/create/LocationSelector.js.map +1 -0
  668. package/dist/src/ui/components/subagents/create/TextEntryStep.d.ts +26 -0
  669. package/dist/src/ui/components/subagents/create/TextEntryStep.js +28 -0
  670. package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +1 -0
  671. package/dist/src/ui/components/subagents/create/ToolSelector.d.ts +16 -0
  672. package/dist/src/ui/components/subagents/create/ToolSelector.js +144 -0
  673. package/dist/src/ui/components/subagents/create/ToolSelector.js.map +1 -0
  674. package/dist/src/ui/components/subagents/index.d.ts +8 -0
  675. package/dist/src/ui/components/subagents/index.js +12 -0
  676. package/dist/src/ui/components/subagents/index.js.map +1 -0
  677. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.d.ts +13 -0
  678. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +46 -0
  679. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +1 -0
  680. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.d.ts +13 -0
  681. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js +33 -0
  682. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js.map +1 -0
  683. package/dist/src/ui/components/subagents/manage/AgentEditStep.d.ts +15 -0
  684. package/dist/src/ui/components/subagents/manage/AgentEditStep.js +64 -0
  685. package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +1 -0
  686. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.d.ts +12 -0
  687. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +224 -0
  688. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +1 -0
  689. package/dist/src/ui/components/subagents/manage/AgentViewerStep.d.ts +11 -0
  690. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js +19 -0
  691. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js.map +1 -0
  692. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.d.ts +15 -0
  693. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +211 -0
  694. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +1 -0
  695. package/dist/src/ui/components/subagents/reducers.d.ts +14 -0
  696. package/dist/src/ui/components/subagents/reducers.js +162 -0
  697. package/dist/src/ui/components/subagents/reducers.js.map +1 -0
  698. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.d.ts +20 -0
  699. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +193 -0
  700. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +1 -0
  701. package/dist/src/ui/components/subagents/types.d.ts +137 -0
  702. package/dist/src/ui/components/subagents/types.js +15 -0
  703. package/dist/src/ui/components/subagents/types.js.map +1 -0
  704. package/dist/src/ui/components/subagents/utils.d.ts +15 -0
  705. package/dist/src/ui/components/subagents/utils.js +79 -0
  706. package/dist/src/ui/components/subagents/utils.js.map +1 -0
  707. package/dist/src/ui/components/ums/UMSKeyPrompt.d.ts +2 -2
  708. package/dist/src/ui/components/ums/UMSKeyPrompt.js +67 -65
  709. package/dist/src/ui/components/ums/UMSKeyPrompt.js.map +1 -1
  710. package/dist/src/ui/components/ums/useUMSAuth.d.ts +1 -1
  711. package/dist/src/ui/components/ums/useUMSAuth.js +1 -1
  712. package/dist/src/ui/components/ums/useUMSAuth.js.map +1 -1
  713. package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
  714. package/dist/src/ui/components/views/ExtensionsList.js +47 -0
  715. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
  716. package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
  717. package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
  718. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
  719. package/dist/src/ui/components/views/McpStatus.d.ts +27 -0
  720. package/dist/src/ui/components/views/McpStatus.js +77 -0
  721. package/dist/src/ui/components/views/McpStatus.js.map +1 -0
  722. package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
  723. package/dist/src/ui/components/views/McpStatus.test.js +117 -0
  724. package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
  725. package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
  726. package/dist/src/ui/components/views/ToolsList.js +7 -0
  727. package/dist/src/ui/components/views/ToolsList.js.map +1 -0
  728. package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
  729. package/dist/src/ui/components/views/ToolsList.test.js +45 -0
  730. package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
  731. package/dist/src/ui/constants.d.ts +9 -0
  732. package/dist/src/ui/constants.js +10 -0
  733. package/dist/src/ui/constants.js.map +1 -1
  734. package/dist/src/ui/contexts/AppContext.d.ts +11 -0
  735. package/dist/src/ui/contexts/AppContext.js +15 -0
  736. package/dist/src/ui/contexts/AppContext.js.map +1 -0
  737. package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
  738. package/dist/src/ui/contexts/ConfigContext.js +16 -0
  739. package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
  740. package/dist/src/ui/contexts/KeypressContext.d.ts +35 -0
  741. package/dist/src/ui/contexts/KeypressContext.js +636 -0
  742. package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
  743. package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
  744. package/dist/src/ui/contexts/KeypressContext.test.js +1180 -0
  745. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
  746. package/dist/src/ui/contexts/OverflowContext.d.ts +1 -1
  747. package/dist/src/ui/contexts/OverflowContext.js +0 -5
  748. package/dist/src/ui/contexts/OverflowContext.js.map +1 -1
  749. package/dist/src/ui/contexts/SessionContext.d.ts +11 -3
  750. package/dist/src/ui/contexts/SessionContext.js +110 -21
  751. package/dist/src/ui/contexts/SessionContext.js.map +1 -1
  752. package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
  753. package/dist/src/ui/contexts/SettingsContext.js +15 -0
  754. package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
  755. package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
  756. package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
  757. package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
  758. package/dist/src/ui/contexts/StreamingContext.d.ts +1 -1
  759. package/dist/src/ui/contexts/UIActionsContext.d.ts +45 -0
  760. package/dist/src/ui/contexts/UIActionsContext.js +21 -0
  761. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
  762. package/dist/src/ui/contexts/UIStateContext.d.ts +117 -0
  763. package/dist/src/ui/contexts/UIStateContext.js +17 -0
  764. package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
  765. package/dist/src/ui/contexts/VimModeContext.d.ts +1 -1
  766. package/dist/src/ui/contexts/VimModeContext.js +4 -4
  767. package/dist/src/ui/contexts/VimModeContext.js.map +1 -1
  768. package/dist/src/ui/hooks/atCommandProcessor.d.ts +3 -3
  769. package/dist/src/ui/hooks/atCommandProcessor.js +29 -29
  770. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  771. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
  772. package/dist/src/ui/hooks/atCommandProcessor.test.js +834 -0
  773. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
  774. package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
  775. package/dist/src/ui/hooks/keyToAnsi.js +67 -0
  776. package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
  777. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +5 -4
  778. package/dist/src/ui/hooks/shellCommandProcessor.js +76 -30
  779. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  780. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
  781. package/dist/src/ui/hooks/shellCommandProcessor.test.js +508 -0
  782. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
  783. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +32 -7
  784. package/dist/src/ui/hooks/slashCommandProcessor.js +232 -96
  785. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  786. package/dist/src/ui/hooks/useAgentsManagerDialog.d.ts +11 -0
  787. package/dist/src/ui/hooks/useAgentsManagerDialog.js +21 -0
  788. package/dist/src/ui/hooks/useAgentsManagerDialog.js.map +1 -0
  789. package/dist/src/ui/hooks/useAtCompletion.d.ts +2 -2
  790. package/dist/src/ui/hooks/useAtCompletion.js +7 -5
  791. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
  792. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +5 -2
  793. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +26 -23
  794. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
  795. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +6 -0
  796. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +306 -0
  797. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
  798. package/dist/src/ui/hooks/useCommandCompletion.d.ts +8 -5
  799. package/dist/src/ui/hooks/useCommandCompletion.js +30 -9
  800. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
  801. package/dist/src/ui/hooks/useCompletion.d.ts +1 -1
  802. package/dist/src/ui/hooks/useCompletion.js +1 -1
  803. package/dist/src/ui/hooks/useCompletion.js.map +1 -1
  804. package/dist/src/ui/hooks/useConsoleMessages.d.ts +1 -1
  805. package/dist/src/ui/hooks/useDialogClose.d.ts +32 -0
  806. package/dist/src/ui/hooks/useDialogClose.js +48 -0
  807. package/dist/src/ui/hooks/useDialogClose.js.map +1 -0
  808. package/dist/src/ui/hooks/useEditorSettings.d.ts +2 -2
  809. package/dist/src/ui/hooks/useEditorSettings.js +1 -1
  810. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -1
  811. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
  812. package/dist/src/ui/hooks/useEditorSettings.test.js +164 -0
  813. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
  814. package/dist/src/ui/hooks/useExtensionUpdates.d.ts +21 -0
  815. package/dist/src/ui/hooks/useExtensionUpdates.js +116 -0
  816. package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -0
  817. package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +6 -0
  818. package/dist/src/ui/hooks/useExtensionUpdates.test.js +243 -0
  819. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -0
  820. package/dist/src/ui/hooks/useFocus.d.ts +4 -0
  821. package/dist/src/ui/hooks/useFocus.js +14 -4
  822. package/dist/src/ui/hooks/useFocus.js.map +1 -1
  823. package/dist/src/ui/hooks/useFolderTrust.d.ts +13 -0
  824. package/dist/src/ui/hooks/useFolderTrust.js +60 -0
  825. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
  826. package/dist/src/ui/hooks/useGeminiStream.d.ts +21 -5
  827. package/dist/src/ui/hooks/useGeminiStream.js +276 -128
  828. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  829. package/dist/src/ui/hooks/useGitBranchName.js +16 -19
  830. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
  831. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
  832. package/dist/src/ui/hooks/useGitBranchName.test.js +171 -0
  833. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
  834. package/dist/src/ui/hooks/useHistoryManager.d.ts +1 -1
  835. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
  836. package/dist/src/ui/hooks/useHistoryManager.test.js +171 -0
  837. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
  838. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +16 -0
  839. package/dist/src/ui/hooks/useIdeTrustListener.js +65 -0
  840. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
  841. package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
  842. package/dist/src/ui/hooks/useIdeTrustListener.test.js +183 -0
  843. package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
  844. package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
  845. package/dist/src/ui/hooks/useInputHistory.test.js +207 -0
  846. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
  847. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
  848. package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
  849. package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
  850. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
  851. package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
  852. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
  853. package/dist/src/ui/hooks/useKeypress.d.ts +4 -16
  854. package/dist/src/ui/hooks/useKeypress.js +8 -140
  855. package/dist/src/ui/hooks/useKeypress.js.map +1 -1
  856. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
  857. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
  858. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
  859. package/dist/src/ui/hooks/useLaunchEditor.d.ts +10 -0
  860. package/dist/src/ui/hooks/useLaunchEditor.js +70 -0
  861. package/dist/src/ui/hooks/useLaunchEditor.js.map +1 -0
  862. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
  863. package/dist/src/ui/hooks/useLoadingIndicator.js +2 -2
  864. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
  865. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
  866. package/dist/src/ui/hooks/useLoadingIndicator.test.js +91 -0
  867. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
  868. package/dist/src/ui/hooks/useLogger.d.ts +2 -1
  869. package/dist/src/ui/hooks/useLogger.js +3 -3
  870. package/dist/src/ui/hooks/useLogger.js.map +1 -1
  871. package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
  872. package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
  873. package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
  874. package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
  875. package/dist/src/ui/hooks/useMemoryMonitor.test.js +57 -0
  876. package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
  877. package/dist/src/ui/hooks/useMessageQueue.d.ts +23 -0
  878. package/dist/src/ui/hooks/useMessageQueue.js +51 -0
  879. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
  880. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
  881. package/dist/src/ui/hooks/useMessageQueue.test.js +167 -0
  882. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
  883. package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
  884. package/dist/src/ui/hooks/useModelCommand.js +21 -0
  885. package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
  886. package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
  887. package/dist/src/ui/hooks/useModelCommand.test.js +35 -0
  888. package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
  889. package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
  890. package/dist/src/ui/hooks/usePermissionsModifyTrust.js +78 -0
  891. package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
  892. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
  893. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +182 -0
  894. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
  895. package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -1
  896. package/dist/src/ui/hooks/usePhraseCycler.js +13 -10
  897. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  898. package/dist/src/ui/hooks/usePromptCompletion.d.ts +23 -0
  899. package/dist/src/ui/hooks/usePromptCompletion.js +177 -0
  900. package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
  901. package/dist/src/ui/hooks/useQuitConfirmation.d.ts +14 -0
  902. package/dist/src/ui/hooks/useQuitConfirmation.js +36 -0
  903. package/dist/src/ui/hooks/useQuitConfirmation.js.map +1 -0
  904. package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
  905. package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
  906. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
  907. package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
  908. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +269 -0
  909. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
  910. package/dist/src/ui/hooks/useQwenAuth.d.ts +1 -1
  911. package/dist/src/ui/hooks/useQwenAuth.js +1 -1
  912. package/dist/src/ui/hooks/useQwenAuth.js.map +1 -1
  913. package/dist/src/ui/hooks/useQwenAuth.test.d.ts +6 -0
  914. package/dist/src/ui/hooks/useQwenAuth.test.js +292 -0
  915. package/dist/src/ui/hooks/useQwenAuth.test.js.map +1 -0
  916. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +4 -3
  917. package/dist/src/ui/hooks/useReactToolScheduler.js +40 -35
  918. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
  919. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +3 -3
  920. package/dist/src/ui/hooks/useReverseSearchCompletion.js +67 -20
  921. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -1
  922. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
  923. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +163 -0
  924. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
  925. package/dist/src/ui/hooks/useSelectionList.d.ts +34 -0
  926. package/dist/src/ui/hooks/useSelectionList.js +245 -0
  927. package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
  928. package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
  929. package/dist/src/ui/hooks/useSelectionList.test.js +701 -0
  930. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
  931. package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
  932. package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
  933. package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
  934. package/dist/src/ui/hooks/useShellHistory.d.ts +2 -1
  935. package/dist/src/ui/hooks/useShellHistory.js +9 -10
  936. package/dist/src/ui/hooks/useShellHistory.js.map +1 -1
  937. package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
  938. package/dist/src/ui/hooks/useShellHistory.test.js +187 -0
  939. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
  940. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +3 -3
  941. package/dist/src/ui/hooks/useShowMemoryCommand.js +1 -1
  942. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -1
  943. package/dist/src/ui/hooks/useSlashCompletion.d.ts +2 -2
  944. package/dist/src/ui/hooks/useSlashCompletion.js +281 -67
  945. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
  946. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +9 -0
  947. package/dist/src/ui/hooks/useSlashCompletion.test.js +597 -0
  948. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
  949. package/dist/src/ui/hooks/useStateAndRef.d.ts +1 -1
  950. package/dist/src/ui/hooks/useStateAndRef.js +2 -2
  951. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -1
  952. package/dist/src/ui/hooks/useSubagentCreateDialog.d.ts +10 -0
  953. package/dist/src/ui/hooks/useSubagentCreateDialog.js +21 -0
  954. package/dist/src/ui/hooks/useSubagentCreateDialog.js.map +1 -0
  955. package/dist/src/ui/hooks/useThemeCommand.d.ts +2 -2
  956. package/dist/src/ui/hooks/useThemeCommand.js +10 -21
  957. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
  958. package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
  959. package/dist/src/ui/hooks/useTimer.test.js +90 -0
  960. package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
  961. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
  962. package/dist/src/ui/hooks/useToolScheduler.test.js +623 -0
  963. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
  964. package/dist/src/ui/hooks/useVisionAutoSwitch.d.ts +47 -0
  965. package/dist/src/ui/hooks/useVisionAutoSwitch.js +292 -0
  966. package/dist/src/ui/hooks/useVisionAutoSwitch.js.map +1 -0
  967. package/dist/src/ui/hooks/useVisionAutoSwitch.test.d.ts +6 -0
  968. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js +515 -0
  969. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js.map +1 -0
  970. package/dist/src/ui/hooks/useWelcomeBack.d.ts +23 -0
  971. package/dist/src/ui/hooks/useWelcomeBack.js +79 -0
  972. package/dist/src/ui/hooks/useWelcomeBack.js.map +1 -0
  973. package/dist/src/ui/hooks/useWorkspaceMigration.d.ts +13 -0
  974. package/dist/src/ui/hooks/useWorkspaceMigration.js +54 -0
  975. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -0
  976. package/dist/src/ui/keyMatchers.d.ts +27 -0
  977. package/dist/src/ui/keyMatchers.js +68 -0
  978. package/dist/src/ui/keyMatchers.js.map +1 -0
  979. package/dist/src/ui/keyMatchers.test.d.ts +6 -0
  980. package/dist/src/ui/keyMatchers.test.js +293 -0
  981. package/dist/src/ui/keyMatchers.test.js.map +1 -0
  982. package/dist/src/ui/layouts/DefaultAppLayout.d.ts +9 -0
  983. package/dist/src/ui/layouts/DefaultAppLayout.js +13 -0
  984. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
  985. package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
  986. package/dist/src/ui/layouts/ScreenReaderAppLayout.js +14 -0
  987. package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
  988. package/dist/src/ui/models/availableModels.d.ts +35 -0
  989. package/dist/src/ui/models/availableModels.js +126 -0
  990. package/dist/src/ui/models/availableModels.js.map +1 -0
  991. package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +12 -0
  992. package/dist/src/ui/noninteractive/nonInteractiveUi.js +28 -0
  993. package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -0
  994. package/dist/src/ui/semantic-colors.d.ts +7 -0
  995. package/dist/src/ui/semantic-colors.js +24 -0
  996. package/dist/src/ui/semantic-colors.js.map +1 -0
  997. package/dist/src/ui/state/extensions.d.ts +42 -0
  998. package/dist/src/ui/state/extensions.js +62 -0
  999. package/dist/src/ui/state/extensions.js.map +1 -0
  1000. package/dist/src/ui/textConstants.d.ts +9 -0
  1001. package/dist/src/ui/textConstants.js +10 -0
  1002. package/dist/src/ui/textConstants.js.map +1 -0
  1003. package/dist/src/ui/themes/ansi-light.js +2 -1
  1004. package/dist/src/ui/themes/ansi-light.js.map +1 -1
  1005. package/dist/src/ui/themes/ansi.js +2 -1
  1006. package/dist/src/ui/themes/ansi.js.map +1 -1
  1007. package/dist/src/ui/themes/ayu.js +1 -1
  1008. package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
  1009. package/dist/src/ui/themes/color-utils.test.js +197 -0
  1010. package/dist/src/ui/themes/color-utils.test.js.map +1 -0
  1011. package/dist/src/ui/themes/dracula.js +2 -2
  1012. package/dist/src/ui/themes/github-dark.js +1 -1
  1013. package/dist/src/ui/themes/googlecode.js +1 -1
  1014. package/dist/src/ui/themes/googlecode.js.map +1 -1
  1015. package/dist/src/ui/themes/no-color.js +30 -1
  1016. package/dist/src/ui/themes/no-color.js.map +1 -1
  1017. package/dist/src/ui/themes/qwen-dark.js +2 -1
  1018. package/dist/src/ui/themes/qwen-dark.js.map +1 -1
  1019. package/dist/src/ui/themes/qwen-light.js +2 -1
  1020. package/dist/src/ui/themes/qwen-light.js.map +1 -1
  1021. package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
  1022. package/dist/src/ui/themes/semantic-tokens.js +94 -0
  1023. package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
  1024. package/dist/src/ui/themes/theme-manager.d.ts +9 -1
  1025. package/dist/src/ui/themes/theme-manager.js +81 -7
  1026. package/dist/src/ui/themes/theme-manager.js.map +1 -1
  1027. package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
  1028. package/dist/src/ui/themes/theme-manager.test.js +142 -0
  1029. package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
  1030. package/dist/src/ui/themes/theme.d.ts +45 -2
  1031. package/dist/src/ui/themes/theme.js +122 -109
  1032. package/dist/src/ui/themes/theme.js.map +1 -1
  1033. package/dist/src/ui/types.d.ts +110 -6
  1034. package/dist/src/ui/types.js +16 -0
  1035. package/dist/src/ui/types.js.map +1 -1
  1036. package/dist/src/ui/utils/CodeColorizer.d.ts +3 -2
  1037. package/dist/src/ui/utils/CodeColorizer.js +8 -6
  1038. package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
  1039. package/dist/src/ui/utils/ConsolePatcher.d.ts +2 -1
  1040. package/dist/src/ui/utils/ConsolePatcher.js +4 -1
  1041. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -1
  1042. package/dist/src/ui/utils/InlineMarkdownRenderer.js +13 -6
  1043. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
  1044. package/dist/src/ui/utils/MarkdownDisplay.js +15 -13
  1045. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  1046. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
  1047. package/dist/src/ui/utils/MarkdownDisplay.test.js +169 -0
  1048. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
  1049. package/dist/src/ui/utils/TableRenderer.js +4 -4
  1050. package/dist/src/ui/utils/TableRenderer.js.map +1 -1
  1051. package/dist/src/ui/utils/clipboardUtils.js +7 -8
  1052. package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
  1053. package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
  1054. package/dist/src/ui/utils/clipboardUtils.test.js +65 -0
  1055. package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
  1056. package/dist/src/ui/utils/commandUtils.d.ts +2 -1
  1057. package/dist/src/ui/utils/commandUtils.js +74 -15
  1058. package/dist/src/ui/utils/commandUtils.js.map +1 -1
  1059. package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
  1060. package/dist/src/ui/utils/commandUtils.test.js +349 -0
  1061. package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
  1062. package/dist/src/ui/utils/computeStats.d.ts +1 -1
  1063. package/dist/src/ui/utils/computeStats.js +3 -1
  1064. package/dist/src/ui/utils/computeStats.js.map +1 -1
  1065. package/dist/src/ui/utils/displayUtils.d.ts +1 -0
  1066. package/dist/src/ui/utils/displayUtils.js +7 -4
  1067. package/dist/src/ui/utils/displayUtils.js.map +1 -1
  1068. package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
  1069. package/dist/src/ui/utils/displayUtils.test.js +61 -0
  1070. package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
  1071. package/dist/src/ui/utils/formatters.test.d.ts +6 -0
  1072. package/dist/src/ui/utils/formatters.test.js +56 -0
  1073. package/dist/src/ui/utils/formatters.test.js.map +1 -0
  1074. package/dist/src/ui/utils/highlight.d.ts +11 -0
  1075. package/dist/src/ui/utils/highlight.js +78 -0
  1076. package/dist/src/ui/utils/highlight.js.map +1 -0
  1077. package/dist/src/ui/utils/highlight.test.d.ts +6 -0
  1078. package/dist/src/ui/utils/highlight.test.js +120 -0
  1079. package/dist/src/ui/utils/highlight.test.js.map +1 -0
  1080. package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
  1081. package/dist/src/ui/utils/isNarrowWidth.js +9 -0
  1082. package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
  1083. package/dist/src/ui/utils/kittyProtocolDetector.d.ts +13 -0
  1084. package/dist/src/ui/utils/kittyProtocolDetector.js +98 -0
  1085. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -0
  1086. package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
  1087. package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
  1088. package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
  1089. package/dist/src/ui/utils/platformConstants.d.ts +75 -0
  1090. package/dist/src/ui/utils/platformConstants.js +78 -0
  1091. package/dist/src/ui/utils/platformConstants.js.map +1 -0
  1092. package/dist/src/ui/utils/terminalSetup.d.ts +30 -0
  1093. package/dist/src/ui/utils/terminalSetup.js +281 -0
  1094. package/dist/src/ui/utils/terminalSetup.js.map +1 -0
  1095. package/dist/src/ui/utils/textUtils.d.ts +28 -0
  1096. package/dist/src/ui/utils/textUtils.js +152 -3
  1097. package/dist/src/ui/utils/textUtils.js.map +1 -1
  1098. package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
  1099. package/dist/src/ui/utils/textUtils.test.js +132 -0
  1100. package/dist/src/ui/utils/textUtils.test.js.map +1 -0
  1101. package/dist/src/ui/utils/updateCheck.d.ts +3 -2
  1102. package/dist/src/ui/utils/updateCheck.js +55 -4
  1103. package/dist/src/ui/utils/updateCheck.js.map +1 -1
  1104. package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
  1105. package/dist/src/ui/utils/updateCheck.test.js +145 -0
  1106. package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
  1107. package/dist/src/utils/checks.d.ts +19 -0
  1108. package/dist/src/utils/checks.js +24 -0
  1109. package/dist/src/utils/checks.js.map +1 -0
  1110. package/dist/src/utils/cleanup.d.ts +2 -2
  1111. package/dist/src/utils/cleanup.js +7 -6
  1112. package/dist/src/utils/cleanup.js.map +1 -1
  1113. package/dist/src/utils/commands.d.ts +20 -0
  1114. package/dist/src/utils/commands.js +53 -0
  1115. package/dist/src/utils/commands.js.map +1 -0
  1116. package/dist/src/utils/commands.test.d.ts +6 -0
  1117. package/dist/src/utils/commands.test.js +115 -0
  1118. package/dist/src/utils/commands.test.js.map +1 -0
  1119. package/dist/src/utils/commentJson.d.ts +9 -0
  1120. package/dist/src/utils/commentJson.js +48 -0
  1121. package/dist/src/utils/commentJson.js.map +1 -0
  1122. package/dist/src/utils/commentJson.test.d.ts +6 -0
  1123. package/dist/src/utils/commentJson.test.js +146 -0
  1124. package/dist/src/utils/commentJson.test.js.map +1 -0
  1125. package/dist/src/utils/deepMerge.d.ts +9 -0
  1126. package/dist/src/utils/deepMerge.js +58 -0
  1127. package/dist/src/utils/deepMerge.js.map +1 -0
  1128. package/dist/src/utils/deepMerge.test.d.ts +6 -0
  1129. package/dist/src/utils/deepMerge.test.js +143 -0
  1130. package/dist/src/utils/deepMerge.test.js.map +1 -0
  1131. package/dist/src/utils/dialogScopeUtils.d.ts +32 -0
  1132. package/dist/src/utils/dialogScopeUtils.js +48 -0
  1133. package/dist/src/utils/dialogScopeUtils.js.map +1 -0
  1134. package/dist/src/utils/envVarResolver.d.ts +39 -0
  1135. package/dist/src/utils/envVarResolver.js +97 -0
  1136. package/dist/src/utils/envVarResolver.js.map +1 -0
  1137. package/dist/src/utils/envVarResolver.test.d.ts +6 -0
  1138. package/dist/src/utils/envVarResolver.test.js +221 -0
  1139. package/dist/src/utils/envVarResolver.test.js.map +1 -0
  1140. package/dist/src/utils/errors.d.ts +27 -0
  1141. package/dist/src/utils/errors.js +105 -0
  1142. package/dist/src/utils/errors.js.map +1 -0
  1143. package/dist/src/utils/errors.test.d.ts +6 -0
  1144. package/dist/src/utils/errors.test.js +303 -0
  1145. package/dist/src/utils/errors.test.js.map +1 -0
  1146. package/dist/src/utils/events.d.ts +3 -2
  1147. package/dist/src/utils/events.js +2 -1
  1148. package/dist/src/utils/events.js.map +1 -1
  1149. package/dist/src/utils/gitUtils.d.ts +21 -1
  1150. package/dist/src/utils/gitUtils.js +69 -4
  1151. package/dist/src/utils/gitUtils.js.map +1 -1
  1152. package/dist/src/utils/gitUtils.test.d.ts +6 -0
  1153. package/dist/src/utils/gitUtils.test.js +113 -0
  1154. package/dist/src/utils/gitUtils.test.js.map +1 -0
  1155. package/dist/src/utils/handleAutoUpdate.d.ts +4 -4
  1156. package/dist/src/utils/handleAutoUpdate.js +10 -6
  1157. package/dist/src/utils/handleAutoUpdate.js.map +1 -1
  1158. package/dist/src/utils/installationInfo.js +3 -3
  1159. package/dist/src/utils/installationInfo.js.map +1 -1
  1160. package/dist/src/utils/installationInfo.test.d.ts +6 -0
  1161. package/dist/src/utils/installationInfo.test.js +242 -0
  1162. package/dist/src/utils/installationInfo.test.js.map +1 -0
  1163. package/dist/src/utils/math.d.ts +13 -0
  1164. package/dist/src/utils/math.js +14 -0
  1165. package/dist/src/utils/math.js.map +1 -0
  1166. package/dist/src/utils/package.js +2 -2
  1167. package/dist/src/utils/package.js.map +1 -1
  1168. package/dist/src/utils/processUtils.d.ts +13 -0
  1169. package/dist/src/utils/processUtils.js +18 -0
  1170. package/dist/src/utils/processUtils.js.map +1 -0
  1171. package/dist/src/utils/processUtils.test.d.ts +6 -0
  1172. package/dist/src/utils/processUtils.test.js +20 -0
  1173. package/dist/src/utils/processUtils.test.js.map +1 -0
  1174. package/dist/src/utils/readStdin.js +25 -0
  1175. package/dist/src/utils/readStdin.js.map +1 -1
  1176. package/dist/src/utils/readStdin.test.d.ts +6 -0
  1177. package/dist/src/utils/readStdin.test.js +88 -0
  1178. package/dist/src/utils/readStdin.test.js.map +1 -0
  1179. package/dist/src/utils/relaunch.d.ts +7 -0
  1180. package/dist/src/utils/relaunch.js +57 -0
  1181. package/dist/src/utils/relaunch.js.map +1 -0
  1182. package/dist/src/utils/relaunch.test.d.ts +6 -0
  1183. package/dist/src/utils/relaunch.test.js +273 -0
  1184. package/dist/src/utils/relaunch.test.js.map +1 -0
  1185. package/dist/src/utils/resolvePath.js +2 -2
  1186. package/dist/src/utils/resolvePath.js.map +1 -1
  1187. package/dist/src/utils/sandbox.d.ts +2 -2
  1188. package/dist/src/utils/sandbox.js +484 -443
  1189. package/dist/src/utils/sandbox.js.map +1 -1
  1190. package/dist/src/utils/settingsUtils.d.ts +144 -0
  1191. package/dist/src/utils/settingsUtils.js +340 -0
  1192. package/dist/src/utils/settingsUtils.js.map +1 -0
  1193. package/dist/src/utils/settingsUtils.test.d.ts +6 -0
  1194. package/dist/src/utils/settingsUtils.test.js +808 -0
  1195. package/dist/src/utils/settingsUtils.test.js.map +1 -0
  1196. package/dist/src/utils/spawnWrapper.d.ts +1 -1
  1197. package/dist/src/utils/spawnWrapper.js +1 -1
  1198. package/dist/src/utils/spawnWrapper.js.map +1 -1
  1199. package/dist/src/utils/startupWarnings.js +3 -3
  1200. package/dist/src/utils/startupWarnings.js.map +1 -1
  1201. package/dist/src/utils/updateEventEmitter.d.ts +1 -1
  1202. package/dist/src/utils/updateEventEmitter.js +1 -1
  1203. package/dist/src/utils/updateEventEmitter.js.map +1 -1
  1204. package/dist/src/utils/userStartupWarnings.d.ts +7 -1
  1205. package/dist/src/utils/userStartupWarnings.js +24 -9
  1206. package/dist/src/utils/userStartupWarnings.js.map +1 -1
  1207. package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
  1208. package/dist/src/utils/userStartupWarnings.test.js +88 -0
  1209. package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
  1210. package/dist/src/utils/version.js +1 -1
  1211. package/dist/src/utils/version.js.map +1 -1
  1212. package/dist/src/utils/windowTitle.d.ts +12 -0
  1213. package/dist/src/utils/windowTitle.js +19 -0
  1214. package/dist/src/utils/windowTitle.js.map +1 -0
  1215. package/dist/src/utils/windowTitle.test.d.ts +6 -0
  1216. package/dist/src/utils/windowTitle.test.js +49 -0
  1217. package/dist/src/utils/windowTitle.test.js.map +1 -0
  1218. package/dist/src/validateNonInterActiveAuth.d.ts +4 -2
  1219. package/dist/src/validateNonInterActiveAuth.js +35 -23
  1220. package/dist/src/validateNonInterActiveAuth.js.map +1 -1
  1221. package/dist/src/zed-integration/acp.d.ts +63 -0
  1222. package/dist/src/{acp → zed-integration}/acp.js +78 -45
  1223. package/dist/src/zed-integration/acp.js.map +1 -0
  1224. package/dist/src/zed-integration/fileSystemService.d.ts +20 -0
  1225. package/dist/src/zed-integration/fileSystemService.js +46 -0
  1226. package/dist/src/zed-integration/fileSystemService.js.map +1 -0
  1227. package/dist/src/zed-integration/schema.d.ts +11782 -0
  1228. package/dist/src/zed-integration/schema.js +311 -0
  1229. package/dist/src/zed-integration/schema.js.map +1 -0
  1230. package/dist/src/zed-integration/zedIntegration.d.ts +17 -0
  1231. package/dist/src/zed-integration/zedIntegration.js +791 -0
  1232. package/dist/src/zed-integration/zedIntegration.js.map +1 -0
  1233. package/dist/tsconfig.tsbuildinfo +1 -1
  1234. package/package.json +20 -12
  1235. package/dist/src/acp/acp.d.ts +0 -208
  1236. package/dist/src/acp/acp.js.map +0 -1
  1237. package/dist/src/acp/acpPeer.d.ts +0 -8
  1238. package/dist/src/acp/acpPeer.js +0 -537
  1239. package/dist/src/acp/acpPeer.js.map +0 -1
  1240. package/dist/src/ui/commands/privacyCommand.d.ts +0 -7
  1241. package/dist/src/ui/commands/privacyCommand.js.map +0 -1
  1242. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  1243. package/dist/src/ui/components/AuthInProgress.js +0 -27
  1244. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  1245. package/dist/src/ui/components/IDEContextDetailDisplay.d.ts +0 -12
  1246. package/dist/src/ui/components/IDEContextDetailDisplay.js +0 -12
  1247. package/dist/src/ui/components/IDEContextDetailDisplay.js.map +0 -1
  1248. package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
  1249. package/dist/src/ui/hooks/useAuthCommand.js +0 -65
  1250. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  1251. package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
  1252. package/dist/src/ui/hooks/usePrivacySettings.js +0 -115
  1253. package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
  1254. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
  1255. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -40
  1256. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
  1257. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
  1258. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -17
  1259. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
  1260. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
  1261. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -17
  1262. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
  1263. package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
  1264. package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
  1265. package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
  1266. package/dist/src/ui/utils/errorParsing.d.ts +0 -7
  1267. package/dist/src/ui/utils/errorParsing.js +0 -90
  1268. package/dist/src/ui/utils/errorParsing.js.map +0 -1
@@ -0,0 +1,624 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import React, { useState, useEffect } from 'react';
8
+ import { Box, Text } from 'ink';
9
+ import { theme } from '../semantic-colors.js';
10
+ import { SettingScope } from '../../config/settings.js';
11
+ import { getScopeItems, getScopeMessageForSetting, } from '../../utils/dialogScopeUtils.js';
12
+ import { RadioButtonSelect } from './shared/RadioButtonSelect.js';
13
+ import { getDialogSettingKeys, setPendingSettingValue, getDisplayValue, hasRestartRequiredSettings, saveModifiedSettings, getSettingDefinition, isDefaultValue, requiresRestart, getRestartRequiredFromModified, getDefaultValue, setPendingSettingValueAny, getNestedValue, getEffectiveValue, } from '../../utils/settingsUtils.js';
14
+ import { useVimMode } from '../contexts/VimModeContext.js';
15
+ import { useKeypress } from '../hooks/useKeypress.js';
16
+ import chalk from 'chalk';
17
+ import { cpSlice, cpLen, stripUnsafeCharacters } from '../utils/textUtils.js';
18
+ import { TOGGLE_TYPES, } from '../../config/settingsSchema.js';
19
+ const maxItemsToShow = 8;
20
+ export function SettingsDialog({ settings, onSelect, onRestartRequest, availableTerminalHeight, }) {
21
+ // Get vim mode context to sync vim mode changes
22
+ const { vimEnabled, toggleVimEnabled } = useVimMode();
23
+ // Focus state: 'settings' or 'scope'
24
+ const [focusSection, setFocusSection] = useState('settings');
25
+ // Scope selector state (User by default)
26
+ const [selectedScope, setSelectedScope] = useState(SettingScope.User);
27
+ // Active indices
28
+ const [activeSettingIndex, setActiveSettingIndex] = useState(0);
29
+ // Scroll offset for settings
30
+ const [scrollOffset, setScrollOffset] = useState(0);
31
+ const [showRestartPrompt, setShowRestartPrompt] = useState(false);
32
+ // Local pending settings state for the selected scope
33
+ const [pendingSettings, setPendingSettings] = useState(() =>
34
+ // Deep clone to avoid mutation
35
+ structuredClone(settings.forScope(selectedScope).settings));
36
+ // Track which settings have been modified by the user
37
+ const [modifiedSettings, setModifiedSettings] = useState(new Set());
38
+ const [globalPendingChanges, setGlobalPendingChanges] = useState(new Map());
39
+ // Track restart-required settings across scope changes
40
+ const [_restartRequiredSettings, setRestartRequiredSettings] = useState(new Set());
41
+ useEffect(() => {
42
+ // Base settings for selected scope
43
+ let updated = structuredClone(settings.forScope(selectedScope).settings);
44
+ // Overlay globally pending (unsaved) changes so user sees their modifications in any scope
45
+ const newModified = new Set();
46
+ const newRestartRequired = new Set();
47
+ for (const [key, value] of globalPendingChanges.entries()) {
48
+ const def = getSettingDefinition(key);
49
+ if (def?.type === 'boolean' && typeof value === 'boolean') {
50
+ updated = setPendingSettingValue(key, value, updated);
51
+ }
52
+ else if ((def?.type === 'number' && typeof value === 'number') ||
53
+ (def?.type === 'string' && typeof value === 'string')) {
54
+ updated = setPendingSettingValueAny(key, value, updated);
55
+ }
56
+ newModified.add(key);
57
+ if (requiresRestart(key))
58
+ newRestartRequired.add(key);
59
+ }
60
+ setPendingSettings(updated);
61
+ setModifiedSettings(newModified);
62
+ setRestartRequiredSettings(newRestartRequired);
63
+ setShowRestartPrompt(newRestartRequired.size > 0);
64
+ }, [selectedScope, settings, globalPendingChanges]);
65
+ const generateSettingsItems = () => {
66
+ const settingKeys = getDialogSettingKeys();
67
+ return settingKeys.map((key) => {
68
+ const definition = getSettingDefinition(key);
69
+ return {
70
+ label: definition?.label || key,
71
+ value: key,
72
+ type: definition?.type,
73
+ toggle: () => {
74
+ if (!TOGGLE_TYPES.has(definition?.type)) {
75
+ return;
76
+ }
77
+ const currentValue = getEffectiveValue(key, pendingSettings, {});
78
+ let newValue;
79
+ if (definition?.type === 'boolean') {
80
+ newValue = !currentValue;
81
+ setPendingSettings((prev) => setPendingSettingValue(key, newValue, prev));
82
+ }
83
+ else if (definition?.type === 'enum' && definition.options) {
84
+ const options = definition.options;
85
+ const currentIndex = options?.findIndex((opt) => opt.value === currentValue);
86
+ if (currentIndex !== -1 && currentIndex < options.length - 1) {
87
+ newValue = options[currentIndex + 1].value;
88
+ }
89
+ else {
90
+ newValue = options[0].value; // loop back to start.
91
+ }
92
+ setPendingSettings((prev) => setPendingSettingValueAny(key, newValue, prev));
93
+ }
94
+ setPendingSettings((prev) => setPendingSettingValue(key, newValue, prev));
95
+ if (!requiresRestart(key)) {
96
+ const immediateSettings = new Set([key]);
97
+ const immediateSettingsObject = setPendingSettingValueAny(key, newValue, {});
98
+ console.log(`[DEBUG SettingsDialog] Saving ${key} immediately with value:`, newValue);
99
+ saveModifiedSettings(immediateSettings, immediateSettingsObject, settings, selectedScope);
100
+ // Special handling for vim mode to sync with VimModeContext
101
+ if (key === 'general.vimMode' && newValue !== vimEnabled) {
102
+ // Call toggleVimEnabled to sync the VimModeContext local state
103
+ toggleVimEnabled().catch((error) => {
104
+ console.error('Failed to toggle vim mode:', error);
105
+ });
106
+ }
107
+ // Remove from modifiedSettings since it's now saved
108
+ setModifiedSettings((prev) => {
109
+ const updated = new Set(prev);
110
+ updated.delete(key);
111
+ return updated;
112
+ });
113
+ // Also remove from restart-required settings if it was there
114
+ setRestartRequiredSettings((prev) => {
115
+ const updated = new Set(prev);
116
+ updated.delete(key);
117
+ return updated;
118
+ });
119
+ // Remove from global pending changes if present
120
+ setGlobalPendingChanges((prev) => {
121
+ if (!prev.has(key))
122
+ return prev;
123
+ const next = new Map(prev);
124
+ next.delete(key);
125
+ return next;
126
+ });
127
+ // Refresh pending settings from the saved state
128
+ setPendingSettings(structuredClone(settings.forScope(selectedScope).settings));
129
+ }
130
+ else {
131
+ // For restart-required settings, track as modified
132
+ setModifiedSettings((prev) => {
133
+ const updated = new Set(prev).add(key);
134
+ const needsRestart = hasRestartRequiredSettings(updated);
135
+ console.log(`[DEBUG SettingsDialog] Modified settings:`, Array.from(updated), 'Needs restart:', needsRestart);
136
+ if (needsRestart) {
137
+ setShowRestartPrompt(true);
138
+ setRestartRequiredSettings((prevRestart) => new Set(prevRestart).add(key));
139
+ }
140
+ return updated;
141
+ });
142
+ // Add/update pending change globally so it persists across scopes
143
+ setGlobalPendingChanges((prev) => {
144
+ const next = new Map(prev);
145
+ next.set(key, newValue);
146
+ return next;
147
+ });
148
+ }
149
+ },
150
+ };
151
+ });
152
+ };
153
+ const items = generateSettingsItems();
154
+ // Generic edit state
155
+ const [editingKey, setEditingKey] = useState(null);
156
+ const [editBuffer, setEditBuffer] = useState('');
157
+ const [editCursorPos, setEditCursorPos] = useState(0); // Cursor position within edit buffer
158
+ const [cursorVisible, setCursorVisible] = useState(true);
159
+ useEffect(() => {
160
+ if (!editingKey) {
161
+ setCursorVisible(true);
162
+ return;
163
+ }
164
+ const id = setInterval(() => setCursorVisible((v) => !v), 500);
165
+ return () => clearInterval(id);
166
+ }, [editingKey]);
167
+ const startEditing = (key, initial) => {
168
+ setEditingKey(key);
169
+ const initialValue = initial ?? '';
170
+ setEditBuffer(initialValue);
171
+ setEditCursorPos(cpLen(initialValue)); // Position cursor at end of initial value
172
+ };
173
+ const commitEdit = (key) => {
174
+ const definition = getSettingDefinition(key);
175
+ const type = definition?.type;
176
+ if (editBuffer.trim() === '' && type === 'number') {
177
+ // Nothing entered for a number; cancel edit
178
+ setEditingKey(null);
179
+ setEditBuffer('');
180
+ setEditCursorPos(0);
181
+ return;
182
+ }
183
+ let parsed;
184
+ if (type === 'number') {
185
+ const numParsed = Number(editBuffer.trim());
186
+ if (Number.isNaN(numParsed)) {
187
+ // Invalid number; cancel edit
188
+ setEditingKey(null);
189
+ setEditBuffer('');
190
+ setEditCursorPos(0);
191
+ return;
192
+ }
193
+ parsed = numParsed;
194
+ }
195
+ else {
196
+ // For strings, use the buffer as is.
197
+ parsed = editBuffer;
198
+ }
199
+ // Update pending
200
+ setPendingSettings((prev) => setPendingSettingValueAny(key, parsed, prev));
201
+ if (!requiresRestart(key)) {
202
+ const immediateSettings = new Set([key]);
203
+ const immediateSettingsObject = setPendingSettingValueAny(key, parsed, {});
204
+ saveModifiedSettings(immediateSettings, immediateSettingsObject, settings, selectedScope);
205
+ // Remove from modified sets if present
206
+ setModifiedSettings((prev) => {
207
+ const updated = new Set(prev);
208
+ updated.delete(key);
209
+ return updated;
210
+ });
211
+ setRestartRequiredSettings((prev) => {
212
+ const updated = new Set(prev);
213
+ updated.delete(key);
214
+ return updated;
215
+ });
216
+ // Remove from global pending since it's immediately saved
217
+ setGlobalPendingChanges((prev) => {
218
+ if (!prev.has(key))
219
+ return prev;
220
+ const next = new Map(prev);
221
+ next.delete(key);
222
+ return next;
223
+ });
224
+ }
225
+ else {
226
+ // Mark as modified and needing restart
227
+ setModifiedSettings((prev) => {
228
+ const updated = new Set(prev).add(key);
229
+ const needsRestart = hasRestartRequiredSettings(updated);
230
+ if (needsRestart) {
231
+ setShowRestartPrompt(true);
232
+ setRestartRequiredSettings((prevRestart) => new Set(prevRestart).add(key));
233
+ }
234
+ return updated;
235
+ });
236
+ // Record pending change globally for persistence across scopes
237
+ setGlobalPendingChanges((prev) => {
238
+ const next = new Map(prev);
239
+ next.set(key, parsed);
240
+ return next;
241
+ });
242
+ }
243
+ setEditingKey(null);
244
+ setEditBuffer('');
245
+ setEditCursorPos(0);
246
+ };
247
+ // Scope selector items
248
+ const scopeItems = getScopeItems().map((item) => ({
249
+ ...item,
250
+ key: item.value,
251
+ }));
252
+ const handleScopeHighlight = (scope) => {
253
+ setSelectedScope(scope);
254
+ };
255
+ const handleScopeSelect = (scope) => {
256
+ handleScopeHighlight(scope);
257
+ setFocusSection('settings');
258
+ };
259
+ // Height constraint calculations similar to ThemeDialog
260
+ const DIALOG_PADDING = 2;
261
+ const SETTINGS_TITLE_HEIGHT = 2; // "Settings" title + spacing
262
+ const SCROLL_ARROWS_HEIGHT = 2; // Up and down arrows
263
+ const SPACING_HEIGHT = 1; // Space between settings list and scope
264
+ const SCOPE_SELECTION_HEIGHT = 4; // Apply To section height
265
+ const BOTTOM_HELP_TEXT_HEIGHT = 1; // Help text
266
+ const RESTART_PROMPT_HEIGHT = showRestartPrompt ? 1 : 0;
267
+ let currentAvailableTerminalHeight = availableTerminalHeight ?? Number.MAX_SAFE_INTEGER;
268
+ currentAvailableTerminalHeight -= 2; // Top and bottom borders
269
+ // Start with basic fixed height (without scope selection)
270
+ let totalFixedHeight = DIALOG_PADDING +
271
+ SETTINGS_TITLE_HEIGHT +
272
+ SCROLL_ARROWS_HEIGHT +
273
+ SPACING_HEIGHT +
274
+ BOTTOM_HELP_TEXT_HEIGHT +
275
+ RESTART_PROMPT_HEIGHT;
276
+ // Calculate how much space we have for settings
277
+ let availableHeightForSettings = Math.max(1, currentAvailableTerminalHeight - totalFixedHeight);
278
+ // Each setting item takes 2 lines (the setting row + spacing)
279
+ let maxVisibleItems = Math.max(1, Math.floor(availableHeightForSettings / 2));
280
+ // Decide whether to show scope selection based on remaining space
281
+ let showScopeSelection = true;
282
+ // If we have limited height, prioritize showing more settings over scope selection
283
+ if (availableTerminalHeight && availableTerminalHeight < 25) {
284
+ // For very limited height, hide scope selection to show more settings
285
+ const totalWithScope = totalFixedHeight + SCOPE_SELECTION_HEIGHT;
286
+ const availableWithScope = Math.max(1, currentAvailableTerminalHeight - totalWithScope);
287
+ const maxItemsWithScope = Math.max(1, Math.floor(availableWithScope / 2));
288
+ // If hiding scope selection allows us to show significantly more settings, do it
289
+ if (maxVisibleItems > maxItemsWithScope + 1) {
290
+ showScopeSelection = false;
291
+ }
292
+ else {
293
+ // Otherwise include scope selection and recalculate
294
+ totalFixedHeight += SCOPE_SELECTION_HEIGHT;
295
+ availableHeightForSettings = Math.max(1, currentAvailableTerminalHeight - totalFixedHeight);
296
+ maxVisibleItems = Math.max(1, Math.floor(availableHeightForSettings / 2));
297
+ }
298
+ }
299
+ else {
300
+ // For normal height, include scope selection
301
+ totalFixedHeight += SCOPE_SELECTION_HEIGHT;
302
+ availableHeightForSettings = Math.max(1, currentAvailableTerminalHeight - totalFixedHeight);
303
+ maxVisibleItems = Math.max(1, Math.floor(availableHeightForSettings / 2));
304
+ }
305
+ // Use the calculated maxVisibleItems or fall back to the original maxItemsToShow
306
+ const effectiveMaxItemsToShow = availableTerminalHeight
307
+ ? Math.min(maxVisibleItems, items.length)
308
+ : maxItemsToShow;
309
+ // Ensure focus stays on settings when scope selection is hidden
310
+ React.useEffect(() => {
311
+ if (!showScopeSelection && focusSection === 'scope') {
312
+ setFocusSection('settings');
313
+ }
314
+ }, [showScopeSelection, focusSection]);
315
+ // Scroll logic for settings
316
+ const visibleItems = items.slice(scrollOffset, scrollOffset + effectiveMaxItemsToShow);
317
+ // Show arrows if there are more items than can be displayed
318
+ const showScrollUp = items.length > effectiveMaxItemsToShow;
319
+ const showScrollDown = items.length > effectiveMaxItemsToShow;
320
+ useKeypress((key) => {
321
+ const { name, ctrl } = key;
322
+ if (name === 'tab' && showScopeSelection) {
323
+ setFocusSection((prev) => (prev === 'settings' ? 'scope' : 'settings'));
324
+ }
325
+ if (focusSection === 'settings') {
326
+ // If editing, capture input and control keys
327
+ if (editingKey) {
328
+ const definition = getSettingDefinition(editingKey);
329
+ const type = definition?.type;
330
+ if (key.paste && key.sequence) {
331
+ let pasted = key.sequence;
332
+ if (type === 'number') {
333
+ pasted = key.sequence.replace(/[^0-9\-+.]/g, '');
334
+ }
335
+ if (pasted) {
336
+ setEditBuffer((b) => {
337
+ const before = cpSlice(b, 0, editCursorPos);
338
+ const after = cpSlice(b, editCursorPos);
339
+ return before + pasted + after;
340
+ });
341
+ setEditCursorPos((pos) => pos + cpLen(pasted));
342
+ }
343
+ return;
344
+ }
345
+ if (name === 'backspace' || name === 'delete') {
346
+ if (name === 'backspace' && editCursorPos > 0) {
347
+ setEditBuffer((b) => {
348
+ const before = cpSlice(b, 0, editCursorPos - 1);
349
+ const after = cpSlice(b, editCursorPos);
350
+ return before + after;
351
+ });
352
+ setEditCursorPos((pos) => pos - 1);
353
+ }
354
+ else if (name === 'delete' && editCursorPos < cpLen(editBuffer)) {
355
+ setEditBuffer((b) => {
356
+ const before = cpSlice(b, 0, editCursorPos);
357
+ const after = cpSlice(b, editCursorPos + 1);
358
+ return before + after;
359
+ });
360
+ // Cursor position stays the same for delete
361
+ }
362
+ return;
363
+ }
364
+ if (name === 'escape') {
365
+ commitEdit(editingKey);
366
+ return;
367
+ }
368
+ if (name === 'return') {
369
+ commitEdit(editingKey);
370
+ return;
371
+ }
372
+ let ch = key.sequence;
373
+ let isValidChar = false;
374
+ if (type === 'number') {
375
+ // Allow digits, minus, plus, and dot.
376
+ isValidChar = /[0-9\-+.]/.test(ch);
377
+ }
378
+ else {
379
+ ch = stripUnsafeCharacters(ch);
380
+ // For strings, allow any single character that isn't a control
381
+ // sequence.
382
+ isValidChar = ch.length === 1;
383
+ }
384
+ if (isValidChar) {
385
+ setEditBuffer((currentBuffer) => {
386
+ const beforeCursor = cpSlice(currentBuffer, 0, editCursorPos);
387
+ const afterCursor = cpSlice(currentBuffer, editCursorPos);
388
+ return beforeCursor + ch + afterCursor;
389
+ });
390
+ setEditCursorPos((pos) => pos + 1);
391
+ return;
392
+ }
393
+ // Arrow key navigation
394
+ if (name === 'left') {
395
+ setEditCursorPos((pos) => Math.max(0, pos - 1));
396
+ return;
397
+ }
398
+ if (name === 'right') {
399
+ setEditCursorPos((pos) => Math.min(cpLen(editBuffer), pos + 1));
400
+ return;
401
+ }
402
+ // Home and End keys
403
+ if (name === 'home') {
404
+ setEditCursorPos(0);
405
+ return;
406
+ }
407
+ if (name === 'end') {
408
+ setEditCursorPos(cpLen(editBuffer));
409
+ return;
410
+ }
411
+ // Block other keys while editing
412
+ return;
413
+ }
414
+ if (name === 'up' || name === 'k') {
415
+ // If editing, commit first
416
+ if (editingKey) {
417
+ commitEdit(editingKey);
418
+ }
419
+ const newIndex = activeSettingIndex > 0 ? activeSettingIndex - 1 : items.length - 1;
420
+ setActiveSettingIndex(newIndex);
421
+ // Adjust scroll offset for wrap-around
422
+ if (newIndex === items.length - 1) {
423
+ setScrollOffset(Math.max(0, items.length - effectiveMaxItemsToShow));
424
+ }
425
+ else if (newIndex < scrollOffset) {
426
+ setScrollOffset(newIndex);
427
+ }
428
+ }
429
+ else if (name === 'down' || name === 'j') {
430
+ // If editing, commit first
431
+ if (editingKey) {
432
+ commitEdit(editingKey);
433
+ }
434
+ const newIndex = activeSettingIndex < items.length - 1 ? activeSettingIndex + 1 : 0;
435
+ setActiveSettingIndex(newIndex);
436
+ // Adjust scroll offset for wrap-around
437
+ if (newIndex === 0) {
438
+ setScrollOffset(0);
439
+ }
440
+ else if (newIndex >= scrollOffset + effectiveMaxItemsToShow) {
441
+ setScrollOffset(newIndex - effectiveMaxItemsToShow + 1);
442
+ }
443
+ }
444
+ else if (name === 'return' || name === 'space') {
445
+ const currentItem = items[activeSettingIndex];
446
+ if (currentItem?.type === 'number' ||
447
+ currentItem?.type === 'string') {
448
+ startEditing(currentItem.value);
449
+ }
450
+ else {
451
+ currentItem?.toggle();
452
+ }
453
+ }
454
+ else if (/^[0-9]$/.test(key.sequence || '') && !editingKey) {
455
+ const currentItem = items[activeSettingIndex];
456
+ if (currentItem?.type === 'number') {
457
+ startEditing(currentItem.value, key.sequence);
458
+ }
459
+ }
460
+ else if (ctrl && (name === 'c' || name === 'l')) {
461
+ // Ctrl+C or Ctrl+L: Clear current setting and reset to default
462
+ const currentSetting = items[activeSettingIndex];
463
+ if (currentSetting) {
464
+ const defaultValue = getDefaultValue(currentSetting.value);
465
+ const defType = currentSetting.type;
466
+ if (defType === 'boolean') {
467
+ const booleanDefaultValue = typeof defaultValue === 'boolean' ? defaultValue : false;
468
+ setPendingSettings((prev) => setPendingSettingValue(currentSetting.value, booleanDefaultValue, prev));
469
+ }
470
+ else if (defType === 'number' || defType === 'string') {
471
+ if (typeof defaultValue === 'number' ||
472
+ typeof defaultValue === 'string') {
473
+ setPendingSettings((prev) => setPendingSettingValueAny(currentSetting.value, defaultValue, prev));
474
+ }
475
+ }
476
+ // Remove from modified settings since it's now at default
477
+ setModifiedSettings((prev) => {
478
+ const updated = new Set(prev);
479
+ updated.delete(currentSetting.value);
480
+ return updated;
481
+ });
482
+ // Remove from restart-required settings if it was there
483
+ setRestartRequiredSettings((prev) => {
484
+ const updated = new Set(prev);
485
+ updated.delete(currentSetting.value);
486
+ return updated;
487
+ });
488
+ // If this setting doesn't require restart, save it immediately
489
+ if (!requiresRestart(currentSetting.value)) {
490
+ const immediateSettings = new Set([currentSetting.value]);
491
+ const toSaveValue = currentSetting.type === 'boolean'
492
+ ? typeof defaultValue === 'boolean'
493
+ ? defaultValue
494
+ : false
495
+ : typeof defaultValue === 'number' ||
496
+ typeof defaultValue === 'string'
497
+ ? defaultValue
498
+ : undefined;
499
+ const immediateSettingsObject = toSaveValue !== undefined
500
+ ? setPendingSettingValueAny(currentSetting.value, toSaveValue, {})
501
+ : {};
502
+ saveModifiedSettings(immediateSettings, immediateSettingsObject, settings, selectedScope);
503
+ // Remove from global pending changes if present
504
+ setGlobalPendingChanges((prev) => {
505
+ if (!prev.has(currentSetting.value))
506
+ return prev;
507
+ const next = new Map(prev);
508
+ next.delete(currentSetting.value);
509
+ return next;
510
+ });
511
+ }
512
+ else {
513
+ // Track default reset as a pending change if restart required
514
+ if ((currentSetting.type === 'boolean' &&
515
+ typeof defaultValue === 'boolean') ||
516
+ (currentSetting.type === 'number' &&
517
+ typeof defaultValue === 'number') ||
518
+ (currentSetting.type === 'string' &&
519
+ typeof defaultValue === 'string')) {
520
+ setGlobalPendingChanges((prev) => {
521
+ const next = new Map(prev);
522
+ next.set(currentSetting.value, defaultValue);
523
+ return next;
524
+ });
525
+ }
526
+ }
527
+ }
528
+ }
529
+ }
530
+ if (showRestartPrompt && name === 'r') {
531
+ // Only save settings that require restart (non-restart settings were already saved immediately)
532
+ const restartRequiredSettings = getRestartRequiredFromModified(modifiedSettings);
533
+ const restartRequiredSet = new Set(restartRequiredSettings);
534
+ if (restartRequiredSet.size > 0) {
535
+ saveModifiedSettings(restartRequiredSet, pendingSettings, settings, selectedScope);
536
+ // Remove saved keys from global pending changes
537
+ setGlobalPendingChanges((prev) => {
538
+ if (prev.size === 0)
539
+ return prev;
540
+ const next = new Map(prev);
541
+ for (const key of restartRequiredSet) {
542
+ next.delete(key);
543
+ }
544
+ return next;
545
+ });
546
+ }
547
+ setShowRestartPrompt(false);
548
+ setRestartRequiredSettings(new Set()); // Clear restart-required settings
549
+ if (onRestartRequest)
550
+ onRestartRequest();
551
+ }
552
+ if (name === 'escape') {
553
+ if (editingKey) {
554
+ commitEdit(editingKey);
555
+ }
556
+ else {
557
+ onSelect(undefined, selectedScope);
558
+ }
559
+ }
560
+ }, { isActive: true });
561
+ return (_jsx(Box, { borderStyle: "round", borderColor: theme.border.default, flexDirection: "row", padding: 1, width: "100%", height: "100%", children: _jsxs(Box, { flexDirection: "column", flexGrow: 1, children: [_jsxs(Text, { bold: focusSection === 'settings', wrap: "truncate", children: [focusSection === 'settings' ? '> ' : ' ', "Settings"] }), _jsx(Box, { height: 1 }), showScrollUp && _jsx(Text, { color: theme.text.secondary, children: "\u25B2" }), visibleItems.map((item, idx) => {
562
+ const isActive = focusSection === 'settings' &&
563
+ activeSettingIndex === idx + scrollOffset;
564
+ const scopeSettings = settings.forScope(selectedScope).settings;
565
+ const mergedSettings = settings.merged;
566
+ let displayValue;
567
+ if (editingKey === item.value) {
568
+ // Show edit buffer with advanced cursor highlighting
569
+ if (cursorVisible && editCursorPos < cpLen(editBuffer)) {
570
+ // Cursor is in the middle or at start of text
571
+ const beforeCursor = cpSlice(editBuffer, 0, editCursorPos);
572
+ const atCursor = cpSlice(editBuffer, editCursorPos, editCursorPos + 1);
573
+ const afterCursor = cpSlice(editBuffer, editCursorPos + 1);
574
+ displayValue =
575
+ beforeCursor + chalk.inverse(atCursor) + afterCursor;
576
+ }
577
+ else if (cursorVisible && editCursorPos >= cpLen(editBuffer)) {
578
+ // Cursor is at the end - show inverted space
579
+ displayValue = editBuffer + chalk.inverse(' ');
580
+ }
581
+ else {
582
+ // Cursor not visible
583
+ displayValue = editBuffer;
584
+ }
585
+ }
586
+ else if (item.type === 'number' || item.type === 'string') {
587
+ // For numbers/strings, get the actual current value from pending settings
588
+ const path = item.value.split('.');
589
+ const currentValue = getNestedValue(pendingSettings, path);
590
+ const defaultValue = getDefaultValue(item.value);
591
+ if (currentValue !== undefined && currentValue !== null) {
592
+ displayValue = String(currentValue);
593
+ }
594
+ else {
595
+ displayValue =
596
+ defaultValue !== undefined && defaultValue !== null
597
+ ? String(defaultValue)
598
+ : '';
599
+ }
600
+ // Add * if value differs from default OR if currently being modified
601
+ const isModified = modifiedSettings.has(item.value);
602
+ const effectiveCurrentValue = currentValue !== undefined && currentValue !== null
603
+ ? currentValue
604
+ : defaultValue;
605
+ const isDifferentFromDefault = effectiveCurrentValue !== defaultValue;
606
+ if (isDifferentFromDefault || isModified) {
607
+ displayValue += '*';
608
+ }
609
+ }
610
+ else {
611
+ // For booleans and other types, use existing logic
612
+ displayValue = getDisplayValue(item.value, scopeSettings, mergedSettings, modifiedSettings, pendingSettings);
613
+ }
614
+ const shouldBeGreyedOut = isDefaultValue(item.value, scopeSettings);
615
+ // Generate scope message for this setting
616
+ const scopeMessage = getScopeMessageForSetting(item.value, selectedScope, settings);
617
+ return (_jsxs(React.Fragment, { children: [_jsxs(Box, { flexDirection: "row", alignItems: "center", children: [_jsx(Box, { minWidth: 2, flexShrink: 0, children: _jsx(Text, { color: isActive ? theme.status.success : theme.text.secondary, children: isActive ? '●' : '' }) }), _jsx(Box, { minWidth: 50, children: _jsxs(Text, { color: isActive ? theme.status.success : theme.text.primary, children: [item.label, scopeMessage && (_jsxs(Text, { color: theme.text.secondary, children: [" ", scopeMessage] }))] }) }), _jsx(Box, { minWidth: 3 }), _jsx(Text, { color: isActive
618
+ ? theme.status.success
619
+ : shouldBeGreyedOut
620
+ ? theme.text.secondary
621
+ : theme.text.primary, children: displayValue })] }), _jsx(Box, { height: 1 })] }, item.value));
622
+ }), showScrollDown && _jsx(Text, { color: theme.text.secondary, children: "\u25BC" }), _jsx(Box, { height: 1 }), showScopeSelection && (_jsxs(Box, { marginTop: 1, flexDirection: "column", children: [_jsxs(Text, { bold: focusSection === 'scope', wrap: "truncate", children: [focusSection === 'scope' ? '> ' : ' ', "Apply To"] }), _jsx(RadioButtonSelect, { items: scopeItems, initialIndex: scopeItems.findIndex((item) => item.value === selectedScope), onSelect: handleScopeSelect, onHighlight: handleScopeHighlight, isFocused: focusSection === 'scope', showNumbers: focusSection === 'scope' })] })), _jsx(Box, { height: 1 }), _jsxs(Text, { color: theme.text.secondary, children: ["(Use Enter to select", showScopeSelection ? ', Tab to change focus' : '', ")"] }), showRestartPrompt && (_jsx(Text, { color: theme.status.warning, children: "To see changes, UMS Code must be restarted. Press r to exit and apply changes now." }))] }) }));
623
+ }
624
+ //# sourceMappingURL=SettingsDialog.js.map