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

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 (1007) hide show
  1. package/dist/package.json +25 -12
  2. package/dist/src/commands/extensions/disable.d.ts +2 -3
  3. package/dist/src/commands/extensions/disable.js +20 -6
  4. package/dist/src/commands/extensions/disable.js.map +1 -1
  5. package/dist/src/commands/extensions/enable.d.ts +2 -3
  6. package/dist/src/commands/extensions/enable.js +21 -10
  7. package/dist/src/commands/extensions/enable.js.map +1 -1
  8. package/dist/src/commands/extensions/examples/context/QWEN.md +8 -0
  9. package/dist/src/commands/extensions/examples/context/qwen-extension.json +4 -0
  10. package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  11. package/dist/src/commands/extensions/examples/custom-commands/qwen-extension.json +4 -0
  12. package/dist/src/commands/extensions/examples/exclude-tools/qwen-extension.json +5 -0
  13. package/dist/src/commands/extensions/examples/mcp-server/example.ts +60 -0
  14. package/dist/src/commands/extensions/examples/mcp-server/package.json +18 -0
  15. package/dist/src/commands/extensions/examples/mcp-server/qwen-extension.json +11 -0
  16. package/dist/src/commands/extensions/examples/mcp-server/tsconfig.json +13 -0
  17. package/dist/src/commands/extensions/install.d.ts +3 -2
  18. package/dist/src/commands/extensions/install.js +47 -17
  19. package/dist/src/commands/extensions/install.js.map +1 -1
  20. package/dist/src/commands/extensions/install.test.js +86 -9
  21. package/dist/src/commands/extensions/install.test.js.map +1 -1
  22. package/dist/src/commands/extensions/link.d.ts +12 -0
  23. package/dist/src/commands/extensions/link.js +37 -0
  24. package/dist/src/commands/extensions/link.js.map +1 -0
  25. package/dist/src/commands/extensions/list.js +1 -1
  26. package/dist/src/commands/extensions/list.js.map +1 -1
  27. package/dist/src/commands/extensions/new.d.ts +7 -0
  28. package/dist/src/commands/extensions/new.js +90 -0
  29. package/dist/src/commands/extensions/new.js.map +1 -0
  30. package/dist/src/commands/extensions/new.test.js +59 -0
  31. package/dist/src/commands/extensions/new.test.js.map +1 -0
  32. package/dist/src/commands/extensions/uninstall.js +1 -1
  33. package/dist/src/commands/extensions/uninstall.js.map +1 -1
  34. package/dist/src/commands/extensions/uninstall.test.js +2 -2
  35. package/dist/src/commands/extensions/uninstall.test.js.map +1 -1
  36. package/dist/src/commands/extensions/update.d.ts +2 -1
  37. package/dist/src/commands/extensions/update.js +80 -14
  38. package/dist/src/commands/extensions/update.js.map +1 -1
  39. package/dist/src/commands/extensions.js +4 -0
  40. package/dist/src/commands/extensions.js.map +1 -1
  41. package/dist/src/commands/mcp/add.js +6 -1
  42. package/dist/src/commands/mcp/add.js.map +1 -1
  43. package/dist/src/commands/mcp/list.js +4 -3
  44. package/dist/src/commands/mcp/list.js.map +1 -1
  45. package/dist/src/commands/mcp/remove.js +1 -1
  46. package/dist/src/commands/mcp/remove.js.map +1 -1
  47. package/dist/src/config/auth.d.ts +2 -4
  48. package/dist/src/config/auth.js +10 -36
  49. package/dist/src/config/auth.js.map +1 -1
  50. package/dist/src/config/auth.test.js +12 -32
  51. package/dist/src/config/auth.test.js.map +1 -1
  52. package/dist/src/config/config.d.ts +13 -2
  53. package/dist/src/config/config.js +278 -128
  54. package/dist/src/config/config.js.map +1 -1
  55. package/dist/src/config/extension.d.ts +41 -18
  56. package/dist/src/config/extension.js +352 -195
  57. package/dist/src/config/extension.js.map +1 -1
  58. package/dist/src/config/extensions/extensionEnablement.d.ts +47 -0
  59. package/dist/src/config/extensions/extensionEnablement.js +189 -0
  60. package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
  61. package/dist/src/config/extensions/extensionEnablement.test.js +333 -0
  62. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
  63. package/dist/src/config/extensions/github.d.ts +30 -0
  64. package/dist/src/config/extensions/github.js +322 -0
  65. package/dist/src/config/extensions/github.js.map +1 -0
  66. package/dist/src/config/extensions/github.test.d.ts +6 -0
  67. package/dist/src/config/extensions/github.test.js +334 -0
  68. package/dist/src/config/extensions/github.test.js.map +1 -0
  69. package/dist/src/config/extensions/update.d.ts +19 -0
  70. package/dist/src/config/extensions/update.js +113 -0
  71. package/dist/src/config/extensions/update.js.map +1 -0
  72. package/dist/src/config/extensions/update.test.d.ts +6 -0
  73. package/dist/src/config/extensions/update.test.js +342 -0
  74. package/dist/src/config/extensions/update.test.js.map +1 -0
  75. package/dist/src/config/extensions/variableSchema.d.ts +8 -0
  76. package/dist/src/config/extensions/variableSchema.js +4 -0
  77. package/dist/src/config/extensions/variableSchema.js.map +1 -1
  78. package/dist/src/config/keyBindings.d.ts +5 -1
  79. package/dist/src/config/keyBindings.js +14 -25
  80. package/dist/src/config/keyBindings.js.map +1 -1
  81. package/dist/src/config/settings.d.ts +15 -5
  82. package/dist/src/config/settings.js +231 -274
  83. package/dist/src/config/settings.js.map +1 -1
  84. package/dist/src/config/settingsSchema.d.ts +425 -149
  85. package/dist/src/config/settingsSchema.js +396 -145
  86. package/dist/src/config/settingsSchema.js.map +1 -1
  87. package/dist/src/config/settingsSchema.test.js +64 -57
  88. package/dist/src/config/settingsSchema.test.js.map +1 -1
  89. package/dist/src/config/trustedFolders.d.ts +24 -5
  90. package/dist/src/config/trustedFolders.js +98 -48
  91. package/dist/src/config/trustedFolders.js.map +1 -1
  92. package/dist/src/config/trustedFolders.test.js +196 -20
  93. package/dist/src/config/trustedFolders.test.js.map +1 -1
  94. package/dist/src/config/webSearch.d.ts +35 -0
  95. package/dist/src/config/webSearch.js +87 -0
  96. package/dist/src/config/webSearch.js.map +1 -0
  97. package/dist/src/core/auth.d.ts +13 -0
  98. package/dist/src/core/auth.js +43 -0
  99. package/dist/src/core/auth.js.map +1 -0
  100. package/dist/src/core/initializer.d.ts +21 -0
  101. package/dist/src/core/initializer.js +44 -0
  102. package/dist/src/core/initializer.js.map +1 -0
  103. package/dist/src/core/theme.d.ts +12 -0
  104. package/dist/src/core/theme.js +23 -0
  105. package/dist/src/core/theme.js.map +1 -0
  106. package/dist/src/gemini.d.ts +2 -1
  107. package/dist/src/gemini.js +166 -128
  108. package/dist/src/gemini.js.map +1 -1
  109. package/dist/src/gemini.test.js +307 -47
  110. package/dist/src/gemini.test.js.map +1 -1
  111. package/dist/src/generated/git-commit.d.ts +2 -2
  112. package/dist/src/generated/git-commit.js +2 -2
  113. package/dist/src/generated/git-commit.js.map +1 -1
  114. package/dist/src/i18n/index.d.ts +18 -0
  115. package/dist/src/i18n/index.js +184 -0
  116. package/dist/src/i18n/index.js.map +1 -0
  117. package/dist/src/i18n/locales/en.js +1129 -0
  118. package/dist/src/i18n/locales/zh.js +1052 -0
  119. package/dist/src/nonInteractive/control/ControlContext.d.ts +63 -0
  120. package/dist/src/nonInteractive/control/ControlContext.js +31 -0
  121. package/dist/src/nonInteractive/control/ControlContext.js.map +1 -0
  122. package/dist/src/nonInteractive/control/ControlDispatcher.d.ts +86 -0
  123. package/dist/src/nonInteractive/control/ControlDispatcher.js +238 -0
  124. package/dist/src/nonInteractive/control/ControlDispatcher.js.map +1 -0
  125. package/dist/src/nonInteractive/control/ControlDispatcher.test.d.ts +6 -0
  126. package/dist/src/nonInteractive/control/ControlDispatcher.test.js +549 -0
  127. package/dist/src/nonInteractive/control/ControlDispatcher.test.js.map +1 -0
  128. package/dist/src/nonInteractive/control/ControlService.d.ts +78 -0
  129. package/dist/src/nonInteractive/control/ControlService.js +154 -0
  130. package/dist/src/nonInteractive/control/ControlService.js.map +1 -0
  131. package/dist/src/nonInteractive/control/controllers/baseController.d.ts +50 -0
  132. package/dist/src/nonInteractive/control/controllers/baseController.js +102 -0
  133. package/dist/src/nonInteractive/control/controllers/baseController.js.map +1 -0
  134. package/dist/src/nonInteractive/control/controllers/hookController.d.ts +25 -0
  135. package/dist/src/nonInteractive/control/controllers/hookController.js +42 -0
  136. package/dist/src/nonInteractive/control/controllers/hookController.js.map +1 -0
  137. package/dist/src/nonInteractive/control/controllers/mcpController.d.ts +42 -0
  138. package/dist/src/nonInteractive/control/controllers/mcpController.js +205 -0
  139. package/dist/src/nonInteractive/control/controllers/mcpController.js.map +1 -0
  140. package/dist/src/nonInteractive/control/controllers/permissionController.d.ts +78 -0
  141. package/dist/src/nonInteractive/control/controllers/permissionController.js +358 -0
  142. package/dist/src/nonInteractive/control/controllers/permissionController.js.map +1 -0
  143. package/dist/src/nonInteractive/control/controllers/systemController.d.ts +56 -0
  144. package/dist/src/nonInteractive/control/controllers/systemController.js +166 -0
  145. package/dist/src/nonInteractive/control/controllers/systemController.js.map +1 -0
  146. package/dist/src/nonInteractive/control/types/serviceAPIs.d.ts +120 -0
  147. package/dist/src/nonInteractive/control/types/serviceAPIs.js +7 -0
  148. package/dist/src/nonInteractive/control/types/serviceAPIs.js.map +1 -0
  149. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.d.ts +446 -0
  150. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.js +891 -0
  151. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.js.map +1 -0
  152. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.d.ts +6 -0
  153. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.js +1197 -0
  154. package/dist/src/nonInteractive/io/BaseJsonOutputAdapter.test.js.map +1 -0
  155. package/dist/src/nonInteractive/io/JsonOutputAdapter.d.ts +29 -0
  156. package/dist/src/nonInteractive/io/JsonOutputAdapter.js +56 -0
  157. package/dist/src/nonInteractive/io/JsonOutputAdapter.js.map +1 -0
  158. package/dist/src/nonInteractive/io/JsonOutputAdapter.test.d.ts +6 -0
  159. package/dist/src/nonInteractive/io/JsonOutputAdapter.test.js +624 -0
  160. package/dist/src/nonInteractive/io/JsonOutputAdapter.test.js.map +1 -0
  161. package/dist/src/nonInteractive/io/StreamJsonInputReader.d.ts +16 -0
  162. package/dist/src/nonInteractive/io/StreamJsonInputReader.js +54 -0
  163. package/dist/src/nonInteractive/io/StreamJsonInputReader.js.map +1 -0
  164. package/dist/src/nonInteractive/io/StreamJsonInputReader.test.d.ts +6 -0
  165. package/dist/src/nonInteractive/io/StreamJsonInputReader.test.js +178 -0
  166. package/dist/src/nonInteractive/io/StreamJsonInputReader.test.js.map +1 -0
  167. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.d.ts +69 -0
  168. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.js +185 -0
  169. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.js.map +1 -0
  170. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.d.ts +6 -0
  171. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.js +808 -0
  172. package/dist/src/nonInteractive/io/StreamJsonOutputAdapter.test.js.map +1 -0
  173. package/dist/src/nonInteractive/session.d.ts +23 -0
  174. package/dist/src/nonInteractive/session.js +549 -0
  175. package/dist/src/nonInteractive/session.js.map +1 -0
  176. package/dist/src/nonInteractive/session.test.d.ts +6 -0
  177. package/dist/src/nonInteractive/session.test.js +407 -0
  178. package/dist/src/nonInteractive/session.test.js.map +1 -0
  179. package/dist/src/nonInteractive/types.d.ts +344 -0
  180. package/dist/src/nonInteractive/types.js +78 -0
  181. package/dist/src/nonInteractive/types.js.map +1 -0
  182. package/dist/src/nonInteractiveCli.d.ts +22 -1
  183. package/dist/src/nonInteractiveCli.js +245 -69
  184. package/dist/src/nonInteractiveCli.js.map +1 -1
  185. package/dist/src/nonInteractiveCliCommands.d.ts +35 -0
  186. package/dist/src/nonInteractiveCliCommands.js +144 -0
  187. package/dist/src/nonInteractiveCliCommands.js.map +1 -0
  188. package/dist/src/services/BuiltinCommandLoader.js +5 -3
  189. package/dist/src/services/BuiltinCommandLoader.js.map +1 -1
  190. package/dist/src/services/BuiltinCommandLoader.test.js +53 -19
  191. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -1
  192. package/dist/src/services/FileCommandLoader.d.ts +2 -0
  193. package/dist/src/services/FileCommandLoader.js +11 -1
  194. package/dist/src/services/FileCommandLoader.js.map +1 -1
  195. package/dist/src/services/McpPromptLoader.js +43 -8
  196. package/dist/src/services/McpPromptLoader.js.map +1 -1
  197. package/dist/src/services/McpPromptLoader.test.js +228 -1
  198. package/dist/src/services/McpPromptLoader.test.js.map +1 -1
  199. package/dist/src/services/prompt-processors/shellProcessor.js +8 -1
  200. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -1
  201. package/dist/src/test-utils/createExtension.d.ts +15 -0
  202. package/dist/src/test-utils/createExtension.js +25 -0
  203. package/dist/src/test-utils/createExtension.js.map +1 -0
  204. package/dist/src/test-utils/mockCommandContext.js +2 -0
  205. package/dist/src/test-utils/mockCommandContext.js.map +1 -1
  206. package/dist/src/test-utils/render.d.ts +5 -1
  207. package/dist/src/test-utils/render.js +5 -1
  208. package/dist/src/test-utils/render.js.map +1 -1
  209. package/dist/src/ui/App.d.ts +1 -10
  210. package/dist/src/ui/App.js +26 -833
  211. package/dist/src/ui/App.js.map +1 -1
  212. package/dist/src/ui/AppContainer.d.ts +17 -0
  213. package/dist/src/ui/AppContainer.js +1072 -0
  214. package/dist/src/ui/AppContainer.js.map +1 -0
  215. package/dist/src/ui/AppContainer.test.d.ts +6 -0
  216. package/dist/src/ui/AppContainer.test.js +831 -0
  217. package/dist/src/ui/AppContainer.test.js.map +1 -0
  218. package/dist/src/ui/IdeIntegrationNudge.d.ts +2 -2
  219. package/dist/src/ui/IdeIntegrationNudge.js +6 -8
  220. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -1
  221. package/dist/src/ui/auth/AuthDialog.d.ts +7 -0
  222. package/dist/src/ui/auth/AuthDialog.js +90 -0
  223. package/dist/src/ui/auth/AuthDialog.js.map +1 -0
  224. package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
  225. package/dist/src/ui/{components → auth}/AuthDialog.test.js +141 -29
  226. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
  227. package/dist/src/ui/{components → auth}/AuthInProgress.js +3 -2
  228. package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
  229. package/dist/src/ui/auth/useAuth.d.ts +25 -0
  230. package/dist/src/ui/auth/useAuth.js +180 -0
  231. package/dist/src/ui/auth/useAuth.js.map +1 -0
  232. package/dist/src/ui/commands/aboutCommand.js +7 -25
  233. package/dist/src/ui/commands/aboutCommand.js.map +1 -1
  234. package/dist/src/ui/commands/agentsCommand.js +10 -3
  235. package/dist/src/ui/commands/agentsCommand.js.map +1 -1
  236. package/dist/src/ui/commands/approvalModeCommand.js +8 -329
  237. package/dist/src/ui/commands/approvalModeCommand.js.map +1 -1
  238. package/dist/src/ui/commands/approvalModeCommand.test.js +19 -263
  239. package/dist/src/ui/commands/approvalModeCommand.test.js.map +1 -1
  240. package/dist/src/ui/commands/authCommand.js +4 -1
  241. package/dist/src/ui/commands/authCommand.js.map +1 -1
  242. package/dist/src/ui/commands/bugCommand.js +13 -33
  243. package/dist/src/ui/commands/bugCommand.js.map +1 -1
  244. package/dist/src/ui/commands/chatCommand.d.ts +2 -0
  245. package/dist/src/ui/commands/chatCommand.js +137 -21
  246. package/dist/src/ui/commands/chatCommand.js.map +1 -1
  247. package/dist/src/ui/commands/clearCommand.js +7 -4
  248. package/dist/src/ui/commands/clearCommand.js.map +1 -1
  249. package/dist/src/ui/commands/compressCommand.js +9 -4
  250. package/dist/src/ui/commands/compressCommand.js.map +1 -1
  251. package/dist/src/ui/commands/copyCommand.js +4 -1
  252. package/dist/src/ui/commands/copyCommand.js.map +1 -1
  253. package/dist/src/ui/commands/corgiCommand.js +1 -0
  254. package/dist/src/ui/commands/corgiCommand.js.map +1 -1
  255. package/dist/src/ui/commands/directoryCommand.js +31 -13
  256. package/dist/src/ui/commands/directoryCommand.js.map +1 -1
  257. package/dist/src/ui/commands/docsCommand.js +9 -3
  258. package/dist/src/ui/commands/docsCommand.js.map +1 -1
  259. package/dist/src/ui/commands/editorCommand.js +4 -1
  260. package/dist/src/ui/commands/editorCommand.js.map +1 -1
  261. package/dist/src/ui/commands/extensionsCommand.js +99 -15
  262. package/dist/src/ui/commands/extensionsCommand.js.map +1 -1
  263. package/dist/src/ui/commands/helpCommand.js +4 -1
  264. package/dist/src/ui/commands/helpCommand.js.map +1 -1
  265. package/dist/src/ui/commands/ideCommand.d.ts +1 -2
  266. package/dist/src/ui/commands/ideCommand.js +42 -17
  267. package/dist/src/ui/commands/ideCommand.js.map +1 -1
  268. package/dist/src/ui/commands/initCommand.js +5 -3
  269. package/dist/src/ui/commands/initCommand.js.map +1 -1
  270. package/dist/src/ui/commands/{privacyCommand.d.ts → languageCommand.d.ts} +1 -1
  271. package/dist/src/ui/commands/languageCommand.js +386 -0
  272. package/dist/src/ui/commands/languageCommand.js.map +1 -0
  273. package/dist/src/ui/commands/mcpCommand.js +124 -279
  274. package/dist/src/ui/commands/mcpCommand.js.map +1 -1
  275. package/dist/src/ui/commands/memoryCommand.js +55 -26
  276. package/dist/src/ui/commands/memoryCommand.js.map +1 -1
  277. package/dist/src/ui/commands/modelCommand.js +10 -20
  278. package/dist/src/ui/commands/modelCommand.js.map +1 -1
  279. package/dist/src/ui/commands/modelCommand.test.js +10 -11
  280. package/dist/src/ui/commands/modelCommand.test.js.map +1 -1
  281. package/dist/src/ui/commands/permissionsCommand.d.ts +7 -0
  282. package/dist/src/ui/commands/permissionsCommand.js +19 -0
  283. package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
  284. package/dist/src/ui/commands/permissionsCommand.test.d.ts +6 -0
  285. package/dist/src/ui/commands/permissionsCommand.test.js +30 -0
  286. package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
  287. package/dist/src/ui/commands/quitCommand.js +7 -2
  288. package/dist/src/ui/commands/quitCommand.js.map +1 -1
  289. package/dist/src/ui/commands/settingsCommand.js +4 -1
  290. package/dist/src/ui/commands/settingsCommand.js.map +1 -1
  291. package/dist/src/ui/commands/setupGithubCommand.js +4 -1
  292. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -1
  293. package/dist/src/ui/commands/statsCommand.js +11 -4
  294. package/dist/src/ui/commands/statsCommand.js.map +1 -1
  295. package/dist/src/ui/commands/summaryCommand.js +16 -9
  296. package/dist/src/ui/commands/summaryCommand.js.map +1 -1
  297. package/dist/src/ui/commands/terminalSetupCommand.js +9 -3
  298. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -1
  299. package/dist/src/ui/commands/themeCommand.js +4 -1
  300. package/dist/src/ui/commands/themeCommand.js.map +1 -1
  301. package/dist/src/ui/commands/toolsCommand.js +15 -26
  302. package/dist/src/ui/commands/toolsCommand.js.map +1 -1
  303. package/dist/src/ui/commands/types.d.ts +8 -3
  304. package/dist/src/ui/commands/types.js +0 -1
  305. package/dist/src/ui/commands/types.js.map +1 -1
  306. package/dist/src/ui/commands/vimCommand.js +4 -1
  307. package/dist/src/ui/commands/vimCommand.js.map +1 -1
  308. package/dist/src/ui/components/AboutBox.d.ts +2 -9
  309. package/dist/src/ui/components/AboutBox.js +7 -3
  310. package/dist/src/ui/components/AboutBox.js.map +1 -1
  311. package/dist/src/ui/components/AnsiOutput.d.ts +13 -0
  312. package/dist/src/ui/components/AnsiOutput.js +12 -0
  313. package/dist/src/ui/components/AnsiOutput.js.map +1 -0
  314. package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
  315. package/dist/src/ui/components/AnsiOutput.test.js +97 -0
  316. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
  317. package/dist/src/ui/components/AppHeader.d.ts +10 -0
  318. package/dist/src/ui/components/AppHeader.js +19 -0
  319. package/dist/src/ui/components/AppHeader.js.map +1 -0
  320. package/dist/src/ui/components/ApprovalModeDialog.d.ts +21 -0
  321. package/dist/src/ui/components/ApprovalModeDialog.js +68 -0
  322. package/dist/src/ui/components/ApprovalModeDialog.js.map +1 -0
  323. package/dist/src/ui/components/AutoAcceptIndicator.js +12 -11
  324. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -1
  325. package/dist/src/ui/components/Composer.d.ts +6 -0
  326. package/dist/src/ui/components/Composer.js +55 -0
  327. package/dist/src/ui/components/Composer.js.map +1 -0
  328. package/dist/src/ui/components/Composer.test.d.ts +6 -0
  329. package/dist/src/ui/components/Composer.test.js +337 -0
  330. package/dist/src/ui/components/Composer.test.js.map +1 -0
  331. package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
  332. package/dist/src/ui/components/ConfigInitDisplay.js +42 -0
  333. package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
  334. package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
  335. package/dist/src/ui/components/ConsentPrompt.js +19 -0
  336. package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
  337. package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
  338. package/dist/src/ui/components/ConsentPrompt.test.js +67 -0
  339. package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
  340. package/dist/src/ui/components/ConsoleSummaryDisplay.js +2 -2
  341. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -1
  342. package/dist/src/ui/components/ContextSummaryDisplay.js +34 -10
  343. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -1
  344. package/dist/src/ui/components/ContextUsageDisplay.d.ts +4 -1
  345. package/dist/src/ui/components/ContextUsageDisplay.js +27 -5
  346. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -1
  347. package/dist/src/ui/components/DebugProfiler.js +2 -2
  348. package/dist/src/ui/components/DebugProfiler.js.map +1 -1
  349. package/dist/src/ui/components/DetailedMessagesDisplay.js +7 -7
  350. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -1
  351. package/dist/src/ui/components/DialogManager.d.ts +12 -0
  352. package/dist/src/ui/components/DialogManager.js +177 -0
  353. package/dist/src/ui/components/DialogManager.js.map +1 -0
  354. package/dist/src/ui/components/EditorSettingsDialog.js +21 -7
  355. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -1
  356. package/dist/src/ui/components/ExitWarning.d.ts +7 -0
  357. package/dist/src/ui/components/ExitWarning.js +9 -0
  358. package/dist/src/ui/components/ExitWarning.js.map +1 -0
  359. package/dist/src/ui/components/FolderTrustDialog.js +22 -9
  360. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -1
  361. package/dist/src/ui/components/FolderTrustDialog.test.js +37 -12
  362. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -1
  363. package/dist/src/ui/components/Footer.d.ts +1 -17
  364. package/dist/src/ui/components/Footer.js +33 -11
  365. package/dist/src/ui/components/Footer.js.map +1 -1
  366. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +5 -0
  367. package/dist/src/ui/components/GeminiRespondingSpinner.js +7 -2
  368. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -1
  369. package/dist/src/ui/components/Header.js +2 -2
  370. package/dist/src/ui/components/Header.js.map +1 -1
  371. package/dist/src/ui/components/Help.d.ts +1 -1
  372. package/dist/src/ui/components/Help.js +20 -7
  373. package/dist/src/ui/components/Help.js.map +1 -1
  374. package/dist/src/ui/components/Help.test.d.ts +6 -0
  375. package/dist/src/ui/components/Help.test.js +57 -0
  376. package/dist/src/ui/components/Help.test.js.map +1 -0
  377. package/dist/src/ui/components/HistoryItemDisplay.d.ts +5 -4
  378. package/dist/src/ui/components/HistoryItemDisplay.js +13 -4
  379. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -1
  380. package/dist/src/ui/components/HistoryItemDisplay.test.js +107 -17
  381. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -1
  382. package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
  383. package/dist/src/ui/components/IdeTrustChangeDialog.js +32 -0
  384. package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
  385. package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
  386. package/dist/src/ui/components/IdeTrustChangeDialog.test.js +57 -0
  387. package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
  388. package/dist/src/ui/components/InputPrompt.d.ts +9 -0
  389. package/dist/src/ui/components/InputPrompt.js +187 -167
  390. package/dist/src/ui/components/InputPrompt.js.map +1 -1
  391. package/dist/src/ui/components/LoadingIndicator.js +8 -3
  392. package/dist/src/ui/components/LoadingIndicator.js.map +1 -1
  393. package/dist/src/ui/components/LoadingIndicator.test.js +4 -0
  394. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -1
  395. package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
  396. package/dist/src/ui/components/LoopDetectionConfirmation.js +37 -0
  397. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
  398. package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
  399. package/dist/src/ui/components/LoopDetectionConfirmation.test.js +28 -0
  400. package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
  401. package/dist/src/ui/components/MainContent.d.ts +6 -0
  402. package/dist/src/ui/components/MainContent.js +28 -0
  403. package/dist/src/ui/components/MainContent.js.map +1 -0
  404. package/dist/src/ui/components/MemoryUsageDisplay.js +6 -4
  405. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -1
  406. package/dist/src/ui/components/ModelDialog.d.ts +11 -0
  407. package/dist/src/ui/components/ModelDialog.js +43 -0
  408. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  409. package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
  410. package/dist/src/ui/components/ModelDialog.test.js +158 -0
  411. package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
  412. package/dist/src/ui/components/ModelStatsDisplay.js +10 -9
  413. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -1
  414. package/dist/src/ui/components/ModelSwitchDialog.d.ts +3 -1
  415. package/dist/src/ui/components/ModelSwitchDialog.js +11 -7
  416. package/dist/src/ui/components/ModelSwitchDialog.js.map +1 -1
  417. package/dist/src/ui/components/ModelSwitchDialog.test.js +14 -10
  418. package/dist/src/ui/components/ModelSwitchDialog.test.js.map +1 -1
  419. package/dist/src/ui/components/Notifications.d.ts +6 -0
  420. package/dist/src/ui/components/Notifications.js +23 -0
  421. package/dist/src/ui/components/Notifications.js.map +1 -0
  422. package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +19 -1
  423. package/dist/src/ui/components/OpenAIKeyPrompt.js +99 -43
  424. package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -1
  425. package/dist/src/ui/components/OpenAIKeyPrompt.test.js +8 -1
  426. package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +1 -1
  427. package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +13 -0
  428. package/dist/src/ui/components/PermissionsModifyTrustDialog.js +48 -0
  429. package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
  430. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
  431. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +154 -0
  432. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
  433. package/dist/src/ui/components/PrepareLabel.d.ts +5 -5
  434. package/dist/src/ui/components/PrepareLabel.js +67 -11
  435. package/dist/src/ui/components/PrepareLabel.js.map +1 -1
  436. package/dist/src/ui/components/PrepareLabel.test.d.ts +6 -0
  437. package/dist/src/ui/components/PrepareLabel.test.js +71 -0
  438. package/dist/src/ui/components/PrepareLabel.test.js.map +1 -0
  439. package/dist/src/ui/components/ProQuotaDialog.d.ts +13 -0
  440. package/dist/src/ui/components/ProQuotaDialog.js +24 -0
  441. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
  442. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
  443. package/dist/src/ui/components/ProQuotaDialog.test.js +58 -0
  444. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
  445. package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
  446. package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
  447. package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
  448. package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
  449. package/dist/src/ui/components/QueuedMessageDisplay.test.js +56 -0
  450. package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
  451. package/dist/src/ui/components/QuitConfirmationDialog.js +10 -5
  452. package/dist/src/ui/components/QuitConfirmationDialog.js.map +1 -1
  453. package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
  454. package/dist/src/ui/components/QuittingDisplay.js +20 -0
  455. package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
  456. package/dist/src/ui/components/QwenOAuthProgress.d.ts +2 -2
  457. package/dist/src/ui/components/QwenOAuthProgress.js +19 -11
  458. package/dist/src/ui/components/QwenOAuthProgress.js.map +1 -1
  459. package/dist/src/ui/components/QwenOAuthProgress.test.js +85 -13
  460. package/dist/src/ui/components/QwenOAuthProgress.test.js.map +1 -1
  461. package/dist/src/ui/components/SessionSummaryDisplay.js +2 -1
  462. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -1
  463. package/dist/src/ui/components/SettingsDialog.d.ts +4 -1
  464. package/dist/src/ui/components/SettingsDialog.js +125 -28
  465. package/dist/src/ui/components/SettingsDialog.js.map +1 -1
  466. package/dist/src/ui/components/SettingsDialog.test.js +475 -84
  467. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -1
  468. package/dist/src/ui/components/ShellConfirmationDialog.js +9 -5
  469. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -1
  470. package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
  471. package/dist/src/ui/components/ShellInputPrompt.js +36 -0
  472. package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
  473. package/dist/src/ui/components/ShellModeIndicator.js +2 -2
  474. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -1
  475. package/dist/src/ui/components/ShowMoreLines.js +2 -2
  476. package/dist/src/ui/components/ShowMoreLines.js.map +1 -1
  477. package/dist/src/ui/components/StatsDisplay.js +8 -7
  478. package/dist/src/ui/components/StatsDisplay.js.map +1 -1
  479. package/dist/src/ui/components/SuggestionsDisplay.d.ts +7 -2
  480. package/dist/src/ui/components/SuggestionsDisplay.js +17 -17
  481. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -1
  482. package/dist/src/ui/components/ThemeDialog.js +17 -29
  483. package/dist/src/ui/components/ThemeDialog.js.map +1 -1
  484. package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
  485. package/dist/src/ui/components/ThemeDialog.test.js +75 -0
  486. package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
  487. package/dist/src/ui/components/Tips.js +2 -2
  488. package/dist/src/ui/components/Tips.js.map +1 -1
  489. package/dist/src/ui/components/ToolStatsDisplay.js +5 -4
  490. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -1
  491. package/dist/src/ui/components/UpdateNotification.js +2 -2
  492. package/dist/src/ui/components/UpdateNotification.js.map +1 -1
  493. package/dist/src/ui/components/WelcomeBackDialog.js +15 -4
  494. package/dist/src/ui/components/WelcomeBackDialog.js.map +1 -1
  495. package/dist/src/ui/components/WorkspaceMigrationDialog.js +14 -11
  496. package/dist/src/ui/components/WorkspaceMigrationDialog.js.map +1 -1
  497. package/dist/src/ui/components/messages/CompressionMessage.d.ts +1 -2
  498. package/dist/src/ui/components/messages/CompressionMessage.js +41 -8
  499. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -1
  500. package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
  501. package/dist/src/ui/components/messages/CompressionMessage.test.js +160 -0
  502. package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
  503. package/dist/src/ui/components/messages/DiffRenderer.d.ts +2 -1
  504. package/dist/src/ui/components/messages/DiffRenderer.js +14 -22
  505. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -1
  506. package/dist/src/ui/components/messages/ErrorMessage.js +2 -2
  507. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -1
  508. package/dist/src/ui/components/messages/GeminiMessage.js +2 -2
  509. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -1
  510. package/dist/src/ui/components/messages/InfoMessage.js +2 -2
  511. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -1
  512. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +91 -45
  513. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -1
  514. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +36 -8
  515. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -1
  516. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +3 -2
  517. package/dist/src/ui/components/messages/ToolGroupMessage.js +18 -10
  518. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -1
  519. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +17 -15
  520. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -1
  521. package/dist/src/ui/components/messages/ToolMessage.d.ts +3 -1
  522. package/dist/src/ui/components/messages/ToolMessage.js +53 -11
  523. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -1
  524. package/dist/src/ui/components/messages/ToolMessage.test.js +34 -1
  525. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -1
  526. package/dist/src/ui/components/messages/UserMessage.js +3 -4
  527. package/dist/src/ui/components/messages/UserMessage.js.map +1 -1
  528. package/dist/src/ui/components/messages/UserShellMessage.js +2 -2
  529. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -1
  530. package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
  531. package/dist/src/ui/components/messages/WarningMessage.js +10 -0
  532. package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
  533. package/dist/src/ui/components/shared/BaseSelectionList.d.ts +38 -0
  534. package/dist/src/ui/components/shared/BaseSelectionList.js +72 -0
  535. package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
  536. package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
  537. package/dist/src/ui/components/shared/BaseSelectionList.test.js +376 -0
  538. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
  539. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
  540. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
  541. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
  542. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
  543. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
  544. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
  545. package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
  546. package/dist/src/ui/components/shared/EnumSelector.js +44 -0
  547. package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
  548. package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
  549. package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
  550. package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
  551. package/dist/src/ui/components/shared/MaxSizedBox.js +2 -2
  552. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -1
  553. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +2 -3
  554. package/dist/src/ui/components/shared/RadioButtonSelect.js +10 -105
  555. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -1
  556. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +115 -92
  557. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -1
  558. package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
  559. package/dist/src/ui/components/shared/ScopeSelector.js +16 -0
  560. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
  561. package/dist/src/ui/components/shared/text-buffer.d.ts +25 -2
  562. package/dist/src/ui/components/shared/text-buffer.js +296 -187
  563. package/dist/src/ui/components/shared/text-buffer.js.map +1 -1
  564. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js +41 -29
  565. package/dist/src/ui/components/subagents/create/AgentCreationWizard.js.map +1 -1
  566. package/dist/src/ui/components/subagents/create/ColorSelector.js +3 -2
  567. package/dist/src/ui/components/subagents/create/ColorSelector.js.map +1 -1
  568. package/dist/src/ui/components/subagents/create/CreationSummary.js +26 -15
  569. package/dist/src/ui/components/subagents/create/CreationSummary.js.map +1 -1
  570. package/dist/src/ui/components/subagents/create/DescriptionInput.js +7 -5
  571. package/dist/src/ui/components/subagents/create/DescriptionInput.js.map +1 -1
  572. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js +8 -2
  573. package/dist/src/ui/components/subagents/create/GenerationMethodSelector.js.map +1 -1
  574. package/dist/src/ui/components/subagents/create/LocationSelector.js +8 -2
  575. package/dist/src/ui/components/subagents/create/LocationSelector.js.map +1 -1
  576. package/dist/src/ui/components/subagents/create/TextEntryStep.js +2 -2
  577. package/dist/src/ui/components/subagents/create/TextEntryStep.js.map +1 -1
  578. package/dist/src/ui/components/subagents/create/ToolSelector.js +10 -8
  579. package/dist/src/ui/components/subagents/create/ToolSelector.js.map +1 -1
  580. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js +29 -4
  581. package/dist/src/ui/components/subagents/manage/ActionSelectionStep.js.map +1 -1
  582. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js +6 -3
  583. package/dist/src/ui/components/subagents/manage/AgentDeleteStep.js.map +1 -1
  584. package/dist/src/ui/components/subagents/manage/AgentEditStep.js +15 -5
  585. package/dist/src/ui/components/subagents/manage/AgentEditStep.js.map +1 -1
  586. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js +13 -7
  587. package/dist/src/ui/components/subagents/manage/AgentSelectionStep.js.map +1 -1
  588. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js +3 -2
  589. package/dist/src/ui/components/subagents/manage/AgentViewerStep.js.map +1 -1
  590. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js +15 -15
  591. package/dist/src/ui/components/subagents/manage/AgentsManagerDialog.js.map +1 -1
  592. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js +16 -17
  593. package/dist/src/ui/components/subagents/runtime/AgentExecutionDisplay.js.map +1 -1
  594. package/dist/src/ui/components/ums/UMSKeyPrompt.d.ts +2 -2
  595. package/dist/src/ui/components/ums/UMSKeyPrompt.js +66 -64
  596. package/dist/src/ui/components/ums/UMSKeyPrompt.js.map +1 -1
  597. package/dist/src/ui/components/views/ExtensionsList.d.ts +6 -0
  598. package/dist/src/ui/components/views/ExtensionsList.js +47 -0
  599. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
  600. package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
  601. package/dist/src/ui/components/views/ExtensionsList.test.js +97 -0
  602. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
  603. package/dist/src/ui/components/views/McpStatus.d.ts +27 -0
  604. package/dist/src/ui/components/views/McpStatus.js +90 -0
  605. package/dist/src/ui/components/views/McpStatus.js.map +1 -0
  606. package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
  607. package/dist/src/ui/components/views/McpStatus.test.js +117 -0
  608. package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
  609. package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
  610. package/dist/src/ui/components/views/ToolsList.js +8 -0
  611. package/dist/src/ui/components/views/ToolsList.js.map +1 -0
  612. package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
  613. package/dist/src/ui/components/views/ToolsList.test.js +45 -0
  614. package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
  615. package/dist/src/ui/constants.d.ts +1 -0
  616. package/dist/src/ui/constants.js +1 -0
  617. package/dist/src/ui/constants.js.map +1 -1
  618. package/dist/src/ui/contexts/AppContext.d.ts +11 -0
  619. package/dist/src/ui/contexts/AppContext.js +15 -0
  620. package/dist/src/ui/contexts/AppContext.js.map +1 -0
  621. package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
  622. package/dist/src/ui/contexts/ConfigContext.js +16 -0
  623. package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
  624. package/dist/src/ui/contexts/KeypressContext.d.ts +3 -0
  625. package/dist/src/ui/contexts/KeypressContext.js +309 -44
  626. package/dist/src/ui/contexts/KeypressContext.js.map +1 -1
  627. package/dist/src/ui/contexts/KeypressContext.test.js +288 -2
  628. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -1
  629. package/dist/src/ui/contexts/SessionContext.d.ts +6 -0
  630. package/dist/src/ui/contexts/SessionContext.js +107 -5
  631. package/dist/src/ui/contexts/SessionContext.js.map +1 -1
  632. package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
  633. package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
  634. package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
  635. package/dist/src/ui/contexts/UIActionsContext.d.ts +46 -0
  636. package/dist/src/ui/contexts/UIActionsContext.js +22 -0
  637. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
  638. package/dist/src/ui/contexts/UIStateContext.d.ts +115 -0
  639. package/dist/src/ui/contexts/UIStateContext.js +17 -0
  640. package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
  641. package/dist/src/ui/editors/editorSettingsManager.js +1 -0
  642. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -1
  643. package/dist/src/ui/hooks/atCommandProcessor.js +12 -12
  644. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -1
  645. package/dist/src/ui/hooks/atCommandProcessor.test.js +23 -19
  646. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -1
  647. package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
  648. package/dist/src/ui/hooks/keyToAnsi.js +67 -0
  649. package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
  650. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +2 -1
  651. package/dist/src/ui/hooks/shellCommandProcessor.js +65 -15
  652. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -1
  653. package/dist/src/ui/hooks/shellCommandProcessor.test.js +196 -17
  654. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -1
  655. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +21 -3
  656. package/dist/src/ui/hooks/slashCommandProcessor.js +52 -97
  657. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -1
  658. package/dist/src/ui/hooks/useApprovalModeCommand.d.ts +14 -0
  659. package/dist/src/ui/hooks/useApprovalModeCommand.js +33 -0
  660. package/dist/src/ui/hooks/useApprovalModeCommand.js.map +1 -0
  661. package/dist/src/ui/hooks/useAtCompletion.js +1 -1
  662. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -1
  663. package/dist/src/ui/hooks/useAttentionNotifications.d.ts +14 -0
  664. package/dist/src/ui/hooks/useAttentionNotifications.js +41 -0
  665. package/dist/src/ui/hooks/useAttentionNotifications.js.map +1 -0
  666. package/dist/src/ui/hooks/useAttentionNotifications.test.js +113 -0
  667. package/dist/src/ui/hooks/useAttentionNotifications.test.js.map +1 -0
  668. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +3 -2
  669. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +20 -18
  670. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -1
  671. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +43 -0
  672. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -1
  673. package/dist/src/ui/hooks/useCommandCompletion.d.ts +1 -4
  674. package/dist/src/ui/hooks/useCommandCompletion.js +1 -23
  675. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -1
  676. package/dist/src/ui/hooks/useDialogClose.d.ts +6 -5
  677. package/dist/src/ui/hooks/useDialogClose.js +3 -12
  678. package/dist/src/ui/hooks/useDialogClose.js.map +1 -1
  679. package/dist/src/ui/hooks/useEditorSettings.js +1 -1
  680. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -1
  681. package/dist/src/ui/hooks/useEditorSettings.test.js +4 -4
  682. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -1
  683. package/dist/src/ui/hooks/useExtensionUpdates.d.ts +21 -0
  684. package/dist/src/ui/hooks/useExtensionUpdates.js +116 -0
  685. package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -0
  686. package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +6 -0
  687. package/dist/src/ui/hooks/useExtensionUpdates.test.js +243 -0
  688. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -0
  689. package/dist/src/ui/hooks/useFocus.js +10 -0
  690. package/dist/src/ui/hooks/useFocus.js.map +1 -1
  691. package/dist/src/ui/hooks/useFolderTrust.js +6 -10
  692. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -1
  693. package/dist/src/ui/hooks/useGeminiStream.d.ts +14 -3
  694. package/dist/src/ui/hooks/useGeminiStream.js +184 -83
  695. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -1
  696. package/dist/src/ui/hooks/useGitBranchName.js +18 -18
  697. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -1
  698. package/dist/src/ui/hooks/useGitBranchName.test.js +66 -52
  699. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -1
  700. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +16 -0
  701. package/dist/src/ui/hooks/useIdeTrustListener.js +65 -0
  702. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
  703. package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
  704. package/dist/src/ui/hooks/useIdeTrustListener.test.js +183 -0
  705. package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
  706. package/dist/src/ui/hooks/useInitializationAuthError.d.ts +22 -0
  707. package/dist/src/ui/hooks/useInitializationAuthError.js +40 -0
  708. package/dist/src/ui/hooks/useInitializationAuthError.js.map +1 -0
  709. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
  710. package/dist/src/ui/hooks/useInputHistoryStore.js +81 -0
  711. package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
  712. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
  713. package/dist/src/ui/hooks/useInputHistoryStore.test.js +234 -0
  714. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
  715. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +1 -1
  716. package/dist/src/ui/hooks/useLoadingIndicator.js +2 -2
  717. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -1
  718. package/dist/src/ui/hooks/useLoadingIndicator.test.js +2 -2
  719. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -1
  720. package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
  721. package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
  722. package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
  723. package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
  724. package/dist/src/ui/hooks/useMemoryMonitor.test.js +57 -0
  725. package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
  726. package/dist/src/ui/hooks/useMessageQueue.d.ts +2 -1
  727. package/dist/src/ui/hooks/useMessageQueue.js +5 -3
  728. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -1
  729. package/dist/src/ui/hooks/useMessageQueue.test.js +9 -0
  730. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -1
  731. package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
  732. package/dist/src/ui/hooks/useModelCommand.js +21 -0
  733. package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
  734. package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
  735. package/dist/src/ui/hooks/useModelCommand.test.js +35 -0
  736. package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
  737. package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
  738. package/dist/src/ui/hooks/usePermissionsModifyTrust.js +78 -0
  739. package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
  740. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
  741. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +182 -0
  742. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
  743. package/dist/src/ui/hooks/usePhraseCycler.d.ts +1 -1
  744. package/dist/src/ui/hooks/usePhraseCycler.js +15 -10
  745. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -1
  746. package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
  747. package/dist/src/ui/hooks/useQuotaAndFallback.js +122 -0
  748. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
  749. package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
  750. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +269 -0
  751. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
  752. package/dist/src/ui/hooks/useQwenAuth.d.ts +7 -12
  753. package/dist/src/ui/hooks/useQwenAuth.js +4 -8
  754. package/dist/src/ui/hooks/useQwenAuth.js.map +1 -1
  755. package/dist/src/ui/hooks/useQwenAuth.test.js +72 -98
  756. package/dist/src/ui/hooks/useQwenAuth.test.js.map +1 -1
  757. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +3 -2
  758. package/dist/src/ui/hooks/useReactToolScheduler.js +23 -17
  759. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -1
  760. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +1 -1
  761. package/dist/src/ui/hooks/useReverseSearchCompletion.js +67 -20
  762. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -1
  763. package/dist/src/ui/hooks/useSelectionList.d.ts +34 -0
  764. package/dist/src/ui/hooks/useSelectionList.js +245 -0
  765. package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
  766. package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
  767. package/dist/src/ui/hooks/useSelectionList.test.js +701 -0
  768. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
  769. package/dist/src/ui/hooks/useSlashCompletion.d.ts +1 -1
  770. package/dist/src/ui/hooks/useSlashCompletion.js +281 -67
  771. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -1
  772. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +4 -1
  773. package/dist/src/ui/hooks/useSlashCompletion.test.js +390 -65
  774. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -1
  775. package/dist/src/ui/hooks/useStateAndRef.d.ts +1 -1
  776. package/dist/src/ui/hooks/useStateAndRef.js +2 -2
  777. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -1
  778. package/dist/src/ui/hooks/useThemeCommand.d.ts +1 -1
  779. package/dist/src/ui/hooks/useThemeCommand.js +11 -17
  780. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -1
  781. package/dist/src/ui/hooks/useToolScheduler.test.js +64 -291
  782. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -1
  783. package/dist/src/ui/hooks/useVisionAutoSwitch.d.ts +1 -1
  784. package/dist/src/ui/hooks/useVisionAutoSwitch.js +36 -6
  785. package/dist/src/ui/hooks/useVisionAutoSwitch.js.map +1 -1
  786. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js +3 -3
  787. package/dist/src/ui/hooks/useVisionAutoSwitch.test.js.map +1 -1
  788. package/dist/src/ui/hooks/useWelcomeBack.js +2 -2
  789. package/dist/src/ui/hooks/useWelcomeBack.js.map +1 -1
  790. package/dist/src/ui/hooks/useWorkspaceMigration.js +2 -1
  791. package/dist/src/ui/hooks/useWorkspaceMigration.js.map +1 -1
  792. package/dist/src/ui/keyMatchers.test.js +17 -0
  793. package/dist/src/ui/keyMatchers.test.js.map +1 -1
  794. package/dist/src/ui/layouts/DefaultAppLayout.d.ts +9 -0
  795. package/dist/src/ui/layouts/DefaultAppLayout.js +13 -0
  796. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
  797. package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
  798. package/dist/src/ui/layouts/ScreenReaderAppLayout.js +14 -0
  799. package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
  800. package/dist/src/ui/models/availableModels.d.ts +11 -5
  801. package/dist/src/ui/models/availableModels.js +94 -3
  802. package/dist/src/ui/models/availableModels.js.map +1 -1
  803. package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +12 -0
  804. package/dist/src/ui/noninteractive/nonInteractiveUi.js +28 -0
  805. package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -0
  806. package/dist/src/ui/state/extensions.d.ts +42 -0
  807. package/dist/src/ui/state/extensions.js +62 -0
  808. package/dist/src/ui/state/extensions.js.map +1 -0
  809. package/dist/src/ui/themes/ayu.js +1 -1
  810. package/dist/src/ui/themes/dracula.js +2 -2
  811. package/dist/src/ui/themes/github-dark.js +1 -1
  812. package/dist/src/ui/themes/theme.js +19 -19
  813. package/dist/src/ui/themes/theme.js.map +1 -1
  814. package/dist/src/ui/types.d.ts +111 -17
  815. package/dist/src/ui/types.js +14 -0
  816. package/dist/src/ui/types.js.map +1 -1
  817. package/dist/src/ui/utils/CodeColorizer.js +3 -2
  818. package/dist/src/ui/utils/CodeColorizer.js.map +1 -1
  819. package/dist/src/ui/utils/InlineMarkdownRenderer.js +7 -7
  820. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -1
  821. package/dist/src/ui/utils/MarkdownDisplay.js +11 -11
  822. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -1
  823. package/dist/src/ui/utils/MarkdownDisplay.test.js +95 -87
  824. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -1
  825. package/dist/src/ui/utils/TableRenderer.js +4 -4
  826. package/dist/src/ui/utils/TableRenderer.js.map +1 -1
  827. package/dist/src/ui/utils/clipboardUtils.js +5 -6
  828. package/dist/src/ui/utils/clipboardUtils.js.map +1 -1
  829. package/dist/src/ui/utils/commandUtils.d.ts +16 -0
  830. package/dist/src/ui/utils/commandUtils.js +16 -1
  831. package/dist/src/ui/utils/commandUtils.js.map +1 -1
  832. package/dist/src/ui/utils/commandUtils.test.js +5 -2
  833. package/dist/src/ui/utils/commandUtils.test.js.map +1 -1
  834. package/dist/src/ui/utils/displayUtils.d.ts +1 -0
  835. package/dist/src/ui/utils/displayUtils.js +7 -4
  836. package/dist/src/ui/utils/displayUtils.js.map +1 -1
  837. package/dist/src/ui/utils/displayUtils.test.js +37 -18
  838. package/dist/src/ui/utils/displayUtils.test.js.map +1 -1
  839. package/dist/src/ui/utils/highlight.d.ts +11 -0
  840. package/dist/src/ui/utils/highlight.js +78 -0
  841. package/dist/src/ui/utils/highlight.js.map +1 -0
  842. package/dist/src/ui/utils/highlight.test.d.ts +6 -0
  843. package/dist/src/ui/utils/highlight.test.js +120 -0
  844. package/dist/src/ui/utils/highlight.test.js.map +1 -0
  845. package/dist/src/ui/utils/kittyProtocolDetector.js +39 -29
  846. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -1
  847. package/dist/src/ui/utils/platformConstants.d.ts +24 -1
  848. package/dist/src/ui/utils/platformConstants.js +26 -1
  849. package/dist/src/ui/utils/platformConstants.js.map +1 -1
  850. package/dist/src/ui/utils/terminalSetup.js +45 -18
  851. package/dist/src/ui/utils/terminalSetup.js.map +1 -1
  852. package/dist/src/ui/utils/textUtils.d.ts +10 -0
  853. package/dist/src/ui/utils/textUtils.js +108 -3
  854. package/dist/src/ui/utils/textUtils.js.map +1 -1
  855. package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
  856. package/dist/src/ui/utils/textUtils.test.js +132 -0
  857. package/dist/src/ui/utils/textUtils.test.js.map +1 -0
  858. package/dist/src/ui/utils/updateCheck.d.ts +1 -0
  859. package/dist/src/ui/utils/updateCheck.js +53 -2
  860. package/dist/src/ui/utils/updateCheck.js.map +1 -1
  861. package/dist/src/utils/attentionNotification.d.ts +20 -0
  862. package/dist/src/utils/attentionNotification.js +34 -0
  863. package/dist/src/utils/attentionNotification.js.map +1 -0
  864. package/dist/src/utils/attentionNotification.test.d.ts +6 -0
  865. package/dist/src/utils/attentionNotification.test.js +46 -0
  866. package/dist/src/utils/attentionNotification.test.js.map +1 -0
  867. package/dist/src/utils/commands.d.ts +20 -0
  868. package/dist/src/utils/commands.js +53 -0
  869. package/dist/src/utils/commands.js.map +1 -0
  870. package/dist/src/utils/commands.test.d.ts +6 -0
  871. package/dist/src/utils/commands.test.js +115 -0
  872. package/dist/src/utils/commands.test.js.map +1 -0
  873. package/dist/src/utils/commentJson.d.ts +9 -0
  874. package/dist/src/utils/commentJson.js +48 -0
  875. package/dist/src/utils/commentJson.js.map +1 -0
  876. package/dist/src/utils/commentJson.test.d.ts +6 -0
  877. package/dist/src/utils/commentJson.test.js +146 -0
  878. package/dist/src/utils/commentJson.test.js.map +1 -0
  879. package/dist/src/utils/deepMerge.d.ts +9 -0
  880. package/dist/src/utils/deepMerge.js +58 -0
  881. package/dist/src/utils/deepMerge.js.map +1 -0
  882. package/dist/src/utils/deepMerge.test.d.ts +6 -0
  883. package/dist/src/utils/deepMerge.test.js +143 -0
  884. package/dist/src/utils/deepMerge.test.js.map +1 -0
  885. package/dist/src/utils/dialogScopeUtils.d.ts +0 -4
  886. package/dist/src/utils/dialogScopeUtils.js +5 -2
  887. package/dist/src/utils/dialogScopeUtils.js.map +1 -1
  888. package/dist/src/utils/envVarResolver.d.ts +39 -0
  889. package/dist/src/utils/envVarResolver.js +97 -0
  890. package/dist/src/utils/envVarResolver.js.map +1 -0
  891. package/dist/src/utils/envVarResolver.test.d.ts +6 -0
  892. package/dist/src/utils/envVarResolver.test.js +221 -0
  893. package/dist/src/utils/envVarResolver.test.js.map +1 -0
  894. package/dist/src/utils/errors.d.ts +29 -0
  895. package/dist/src/utils/errors.js +94 -0
  896. package/dist/src/utils/errors.js.map +1 -1
  897. package/dist/src/utils/errors.test.d.ts +6 -0
  898. package/dist/src/utils/errors.test.js +340 -0
  899. package/dist/src/utils/errors.test.js.map +1 -0
  900. package/dist/src/utils/events.d.ts +2 -1
  901. package/dist/src/utils/events.js +1 -0
  902. package/dist/src/utils/events.js.map +1 -1
  903. package/dist/src/utils/handleAutoUpdate.js +6 -3
  904. package/dist/src/utils/handleAutoUpdate.js.map +1 -1
  905. package/dist/src/utils/math.d.ts +13 -0
  906. package/dist/src/utils/math.js +14 -0
  907. package/dist/src/utils/math.js.map +1 -0
  908. package/dist/src/utils/nonInteractiveHelpers.d.ts +88 -0
  909. package/dist/src/utils/nonInteractiveHelpers.js +470 -0
  910. package/dist/src/utils/nonInteractiveHelpers.js.map +1 -0
  911. package/dist/src/utils/nonInteractiveHelpers.test.d.ts +6 -0
  912. package/dist/src/utils/nonInteractiveHelpers.test.js +945 -0
  913. package/dist/src/utils/nonInteractiveHelpers.test.js.map +1 -0
  914. package/dist/src/utils/processUtils.d.ts +13 -0
  915. package/dist/src/utils/processUtils.js +18 -0
  916. package/dist/src/utils/processUtils.js.map +1 -0
  917. package/dist/src/utils/processUtils.test.d.ts +6 -0
  918. package/dist/src/utils/processUtils.test.js +20 -0
  919. package/dist/src/utils/processUtils.test.js.map +1 -0
  920. package/dist/src/utils/relaunch.d.ts +7 -0
  921. package/dist/src/utils/relaunch.js +57 -0
  922. package/dist/src/utils/relaunch.js.map +1 -0
  923. package/dist/src/utils/relaunch.test.d.ts +6 -0
  924. package/dist/src/utils/relaunch.test.js +273 -0
  925. package/dist/src/utils/relaunch.test.js.map +1 -0
  926. package/dist/src/utils/sandbox.d.ts +1 -1
  927. package/dist/src/utils/sandbox.js +43 -18
  928. package/dist/src/utils/sandbox.js.map +1 -1
  929. package/dist/src/utils/settingsUtils.d.ts +16 -6
  930. package/dist/src/utils/settingsUtils.js +41 -25
  931. package/dist/src/utils/settingsUtils.js.map +1 -1
  932. package/dist/src/utils/settingsUtils.test.js +455 -158
  933. package/dist/src/utils/settingsUtils.test.js.map +1 -1
  934. package/dist/src/utils/startupWarnings.js +1 -1
  935. package/dist/src/utils/startupWarnings.js.map +1 -1
  936. package/dist/src/utils/systemInfo.d.ts +66 -0
  937. package/dist/src/utils/systemInfo.js +125 -0
  938. package/dist/src/utils/systemInfo.js.map +1 -0
  939. package/dist/src/utils/systemInfo.test.d.ts +6 -0
  940. package/dist/src/utils/systemInfo.test.js +259 -0
  941. package/dist/src/utils/systemInfo.test.js.map +1 -0
  942. package/dist/src/utils/systemInfoFields.d.ts +22 -0
  943. package/dist/src/utils/systemInfoFields.js +96 -0
  944. package/dist/src/utils/systemInfoFields.js.map +1 -0
  945. package/dist/src/utils/userStartupWarnings.d.ts +7 -1
  946. package/dist/src/utils/userStartupWarnings.js +26 -6
  947. package/dist/src/utils/userStartupWarnings.js.map +1 -1
  948. package/dist/src/utils/userStartupWarnings.test.js +26 -5
  949. package/dist/src/utils/userStartupWarnings.test.js.map +1 -1
  950. package/dist/src/utils/windowTitle.d.ts +12 -0
  951. package/dist/src/utils/windowTitle.js +19 -0
  952. package/dist/src/utils/windowTitle.js.map +1 -0
  953. package/dist/src/utils/windowTitle.test.d.ts +6 -0
  954. package/dist/src/utils/windowTitle.test.js +49 -0
  955. package/dist/src/utils/windowTitle.test.js.map +1 -0
  956. package/dist/src/validateNonInterActiveAuth.d.ts +4 -2
  957. package/dist/src/validateNonInterActiveAuth.js +57 -21
  958. package/dist/src/validateNonInterActiveAuth.js.map +1 -1
  959. package/dist/src/zed-integration/acp.js +1 -2
  960. package/dist/src/zed-integration/acp.js.map +1 -1
  961. package/dist/src/zed-integration/fileSystemService.d.ts +1 -0
  962. package/dist/src/zed-integration/fileSystemService.js +3 -0
  963. package/dist/src/zed-integration/fileSystemService.js.map +1 -1
  964. package/dist/src/zed-integration/schema.d.ts +608 -366
  965. package/dist/src/zed-integration/schema.js +13 -0
  966. package/dist/src/zed-integration/schema.js.map +1 -1
  967. package/dist/src/zed-integration/zedIntegration.d.ts +8 -1
  968. package/dist/src/zed-integration/zedIntegration.js +409 -61
  969. package/dist/src/zed-integration/zedIntegration.js.map +1 -1
  970. package/dist/tsconfig.tsbuildinfo +1 -1
  971. package/package.json +25 -12
  972. package/dist/src/ui/commands/privacyCommand.js +0 -16
  973. package/dist/src/ui/commands/privacyCommand.js.map +0 -1
  974. package/dist/src/ui/components/AuthDialog.d.ts +0 -15
  975. package/dist/src/ui/components/AuthDialog.js +0 -163
  976. package/dist/src/ui/components/AuthDialog.js.map +0 -1
  977. package/dist/src/ui/components/AuthDialog.test.js.map +0 -1
  978. package/dist/src/ui/components/AuthInProgress.js.map +0 -1
  979. package/dist/src/ui/components/ModelSelectionDialog.d.ts +0 -14
  980. package/dist/src/ui/components/ModelSelectionDialog.js +0 -26
  981. package/dist/src/ui/components/ModelSelectionDialog.js.map +0 -1
  982. package/dist/src/ui/components/ModelSelectionDialog.test.js +0 -124
  983. package/dist/src/ui/components/ModelSelectionDialog.test.js.map +0 -1
  984. package/dist/src/ui/hooks/useAuthCommand.d.ts +0 -14
  985. package/dist/src/ui/hooks/useAuthCommand.js +0 -66
  986. package/dist/src/ui/hooks/useAuthCommand.js.map +0 -1
  987. package/dist/src/ui/hooks/usePrivacySettings.d.ts +0 -16
  988. package/dist/src/ui/hooks/usePrivacySettings.js +0 -119
  989. package/dist/src/ui/hooks/usePrivacySettings.js.map +0 -1
  990. package/dist/src/ui/hooks/usePrivacySettings.test.js +0 -154
  991. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +0 -1
  992. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +0 -12
  993. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +0 -41
  994. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +0 -1
  995. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +0 -10
  996. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +0 -18
  997. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +0 -1
  998. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +0 -10
  999. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +0 -18
  1000. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +0 -1
  1001. package/dist/src/ui/privacy/PrivacyNotice.d.ts +0 -12
  1002. package/dist/src/ui/privacy/PrivacyNotice.js +0 -25
  1003. package/dist/src/ui/privacy/PrivacyNotice.js.map +0 -1
  1004. /package/dist/src/{ui/components/AuthDialog.test.d.ts → commands/extensions/new.test.d.ts} +0 -0
  1005. /package/dist/src/{ui/hooks/usePrivacySettings.test.d.ts → config/extensions/extensionEnablement.test.d.ts} +0 -0
  1006. /package/dist/src/ui/{components → auth}/AuthInProgress.d.ts +0 -0
  1007. /package/dist/src/ui/{components/ModelSelectionDialog.test.d.ts → hooks/useAttentionNotifications.test.d.ts} +0 -0
@@ -4,19 +4,41 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { MCPServerConfig, BugCommandSettings, TelemetrySettings, AuthType, ChatCompressionSettings } from '@umsai/ums-code-core';
7
+ import { ApprovalMode } from '@umsai/ums-code-core';
7
8
  import type { CustomTheme } from '../ui/themes/theme.js';
9
+ export type SettingsType = 'boolean' | 'string' | 'number' | 'array' | 'object' | 'enum';
10
+ export type SettingsValue = boolean | string | number | string[] | object | undefined;
11
+ /**
12
+ * Setting datatypes that "toggle" through a fixed list of options
13
+ * (e.g. an enum or true/false) rather than allowing for free form input
14
+ * (like a number or string).
15
+ */
16
+ export declare const TOGGLE_TYPES: ReadonlySet<SettingsType | undefined>;
17
+ export interface SettingEnumOption {
18
+ value: string | number;
19
+ label: string;
20
+ }
21
+ export declare enum MergeStrategy {
22
+ REPLACE = "replace",
23
+ CONCAT = "concat",
24
+ UNION = "union",
25
+ SHALLOW_MERGE = "shallow_merge"
26
+ }
8
27
  export interface SettingDefinition {
9
- type: 'boolean' | 'string' | 'number' | 'array' | 'object';
28
+ type: SettingsType;
10
29
  label: string;
11
30
  category: string;
12
31
  requiresRestart: boolean;
13
- default: boolean | string | number | string[] | object | undefined;
32
+ default: SettingsValue;
14
33
  description?: string;
15
34
  parentKey?: string;
16
35
  childKey?: string;
17
36
  key?: string;
18
37
  properties?: SettingsSchema;
19
38
  showInDialog?: boolean;
39
+ mergeStrategy?: MergeStrategy;
40
+ /** Enum type options */
41
+ options?: readonly SettingEnumOption[];
20
42
  }
21
43
  export interface SettingsSchema {
22
44
  [key: string]: SettingDefinition;
@@ -28,7 +50,7 @@ export type DnsResolutionOrder = 'ipv4first' | 'verbatim';
28
50
  * The structure of this object defines the structure of the `Settings` type.
29
51
  * `as const` is crucial for TypeScript to infer the most specific types possible.
30
52
  */
31
- export declare const SETTINGS_SCHEMA: {
53
+ declare const SETTINGS_SCHEMA: {
32
54
  readonly mcpServers: {
33
55
  readonly type: "object";
34
56
  readonly label: "MCP Servers";
@@ -37,6 +59,7 @@ export declare const SETTINGS_SCHEMA: {
37
59
  readonly default: Record<string, MCPServerConfig>;
38
60
  readonly description: "Configuration for MCP servers.";
39
61
  readonly showInDialog: false;
62
+ readonly mergeStrategy: MergeStrategy.SHALLOW_MERGE;
40
63
  };
41
64
  readonly general: {
42
65
  readonly type: "object";
@@ -103,15 +126,6 @@ export declare const SETTINGS_SCHEMA: {
103
126
  };
104
127
  };
105
128
  };
106
- readonly enablePromptCompletion: {
107
- readonly type: "boolean";
108
- readonly label: "Enable Prompt Completion";
109
- readonly category: "General";
110
- readonly requiresRestart: true;
111
- readonly default: false;
112
- readonly description: "Enable AI-powered prompt completion suggestions while typing.";
113
- readonly showInDialog: true;
114
- };
115
129
  readonly debugKeystrokeLogging: {
116
130
  readonly type: "boolean";
117
131
  readonly label: "Debug Keystroke Logging";
@@ -121,6 +135,52 @@ export declare const SETTINGS_SCHEMA: {
121
135
  readonly description: "Enable debug logging of keystrokes to the console.";
122
136
  readonly showInDialog: true;
123
137
  };
138
+ readonly language: {
139
+ readonly type: "enum";
140
+ readonly label: "Language";
141
+ readonly category: "General";
142
+ readonly requiresRestart: false;
143
+ readonly default: "zh";
144
+ readonly description: string;
145
+ readonly showInDialog: true;
146
+ readonly options: readonly [{
147
+ readonly value: "auto";
148
+ readonly label: "Auto (detect from system)";
149
+ }, {
150
+ readonly value: "en";
151
+ readonly label: "English";
152
+ }, {
153
+ readonly value: "zh";
154
+ readonly label: "中文 (Chinese)";
155
+ }];
156
+ };
157
+ };
158
+ };
159
+ readonly output: {
160
+ readonly type: "object";
161
+ readonly label: "Output";
162
+ readonly category: "General";
163
+ readonly requiresRestart: false;
164
+ readonly default: {};
165
+ readonly description: "Settings for the CLI output.";
166
+ readonly showInDialog: false;
167
+ readonly properties: {
168
+ readonly format: {
169
+ readonly type: "enum";
170
+ readonly label: "Output Format";
171
+ readonly category: "General";
172
+ readonly requiresRestart: false;
173
+ readonly default: "text";
174
+ readonly description: "The format of the CLI output.";
175
+ readonly showInDialog: true;
176
+ readonly options: readonly [{
177
+ readonly value: "text";
178
+ readonly label: "Text";
179
+ }, {
180
+ readonly value: "json";
181
+ readonly label: "JSON";
182
+ }];
183
+ };
124
184
  };
125
185
  };
126
186
  readonly ui: {
@@ -159,6 +219,15 @@ export declare const SETTINGS_SCHEMA: {
159
219
  readonly description: "Hide the window title bar";
160
220
  readonly showInDialog: true;
161
221
  };
222
+ readonly showStatusInTitle: {
223
+ readonly type: "boolean";
224
+ readonly label: "Show Status in Title";
225
+ readonly category: "UI";
226
+ readonly requiresRestart: false;
227
+ readonly default: false;
228
+ readonly description: "Show Gemini CLI status and thoughts in the terminal window title";
229
+ readonly showInDialog: true;
230
+ };
162
231
  readonly hideTips: {
163
232
  readonly type: "boolean";
164
233
  readonly label: "Hide Tips";
@@ -177,6 +246,53 @@ export declare const SETTINGS_SCHEMA: {
177
246
  readonly description: "Hide the application banner";
178
247
  readonly showInDialog: true;
179
248
  };
249
+ readonly hideContextSummary: {
250
+ readonly type: "boolean";
251
+ readonly label: "Hide Context Summary";
252
+ readonly category: "UI";
253
+ readonly requiresRestart: false;
254
+ readonly default: false;
255
+ readonly description: "Hide the context summary (UMS.md, MCP servers) above the input.";
256
+ readonly showInDialog: true;
257
+ };
258
+ readonly footer: {
259
+ readonly type: "object";
260
+ readonly label: "Footer";
261
+ readonly category: "UI";
262
+ readonly requiresRestart: false;
263
+ readonly default: {};
264
+ readonly description: "Settings for the footer.";
265
+ readonly showInDialog: false;
266
+ readonly properties: {
267
+ readonly hideCWD: {
268
+ readonly type: "boolean";
269
+ readonly label: "Hide CWD";
270
+ readonly category: "UI";
271
+ readonly requiresRestart: false;
272
+ readonly default: false;
273
+ readonly description: "Hide the current working directory path in the footer.";
274
+ readonly showInDialog: true;
275
+ };
276
+ readonly hideSandboxStatus: {
277
+ readonly type: "boolean";
278
+ readonly label: "Hide Sandbox Status";
279
+ readonly category: "UI";
280
+ readonly requiresRestart: false;
281
+ readonly default: false;
282
+ readonly description: "Hide the sandbox status indicator in the footer.";
283
+ readonly showInDialog: true;
284
+ };
285
+ readonly hideModelInfo: {
286
+ readonly type: "boolean";
287
+ readonly label: "Hide Model Info";
288
+ readonly category: "UI";
289
+ readonly requiresRestart: false;
290
+ readonly default: false;
291
+ readonly description: "Hide the model name and context usage in the footer.";
292
+ readonly showInDialog: true;
293
+ };
294
+ };
295
+ };
180
296
  readonly hideFooter: {
181
297
  readonly type: "boolean";
182
298
  readonly label: "Hide Footer";
@@ -204,6 +320,33 @@ export declare const SETTINGS_SCHEMA: {
204
320
  readonly description: "Show line numbers in the chat.";
205
321
  readonly showInDialog: true;
206
322
  };
323
+ readonly showCitations: {
324
+ readonly type: "boolean";
325
+ readonly label: "Show Citations";
326
+ readonly category: "UI";
327
+ readonly requiresRestart: false;
328
+ readonly default: false;
329
+ readonly description: "Show citations for generated text in the chat.";
330
+ readonly showInDialog: true;
331
+ };
332
+ readonly customWittyPhrases: {
333
+ readonly type: "array";
334
+ readonly label: "Custom Witty Phrases";
335
+ readonly category: "UI";
336
+ readonly requiresRestart: false;
337
+ readonly default: string[];
338
+ readonly description: "Custom witty phrases to display during loading.";
339
+ readonly showInDialog: false;
340
+ };
341
+ readonly enableWelcomeBack: {
342
+ readonly type: "boolean";
343
+ readonly label: "Enable Welcome Back";
344
+ readonly category: "UI";
345
+ readonly requiresRestart: false;
346
+ readonly default: true;
347
+ readonly description: "Show welcome back dialog when returning to a project with conversation history.";
348
+ readonly showInDialog: true;
349
+ };
207
350
  readonly accessibility: {
208
351
  readonly type: "object";
209
352
  readonly label: "Accessibility";
@@ -340,15 +483,104 @@ export declare const SETTINGS_SCHEMA: {
340
483
  readonly description: "Chat compression settings.";
341
484
  readonly showInDialog: false;
342
485
  };
486
+ readonly sessionTokenLimit: {
487
+ readonly type: "number";
488
+ readonly label: "Session Token Limit";
489
+ readonly category: "Model";
490
+ readonly requiresRestart: false;
491
+ readonly default: number | undefined;
492
+ readonly description: "The maximum number of tokens allowed in a session.";
493
+ readonly showInDialog: false;
494
+ };
343
495
  readonly skipNextSpeakerCheck: {
344
496
  readonly type: "boolean";
345
497
  readonly label: "Skip Next Speaker Check";
346
498
  readonly category: "Model";
347
499
  readonly requiresRestart: false;
348
- readonly default: false;
500
+ readonly default: true;
349
501
  readonly description: "Skip the next speaker check.";
350
502
  readonly showInDialog: true;
351
503
  };
504
+ readonly skipLoopDetection: {
505
+ readonly type: "boolean";
506
+ readonly label: "Skip Loop Detection";
507
+ readonly category: "Model";
508
+ readonly requiresRestart: false;
509
+ readonly default: false;
510
+ readonly description: "Disable all loop detection checks (streaming and LLM).";
511
+ readonly showInDialog: true;
512
+ };
513
+ readonly skipStartupContext: {
514
+ readonly type: "boolean";
515
+ readonly label: "Skip Startup Context";
516
+ readonly category: "Model";
517
+ readonly requiresRestart: true;
518
+ readonly default: false;
519
+ readonly description: "Avoid sending the workspace startup context at the beginning of each session.";
520
+ readonly showInDialog: true;
521
+ };
522
+ readonly enableOpenAILogging: {
523
+ readonly type: "boolean";
524
+ readonly label: "Enable OpenAI Logging";
525
+ readonly category: "Model";
526
+ readonly requiresRestart: false;
527
+ readonly default: false;
528
+ readonly description: "Enable OpenAI logging.";
529
+ readonly showInDialog: true;
530
+ };
531
+ readonly openAILoggingDir: {
532
+ readonly type: "string";
533
+ readonly label: "OpenAI Logging Directory";
534
+ readonly category: "Model";
535
+ readonly requiresRestart: false;
536
+ readonly default: string | undefined;
537
+ readonly description: "Custom directory path for OpenAI API logs. If not specified, defaults to logs/openai in the current working directory.";
538
+ readonly showInDialog: true;
539
+ };
540
+ readonly generationConfig: {
541
+ readonly type: "object";
542
+ readonly label: "Generation Configuration";
543
+ readonly category: "Model";
544
+ readonly requiresRestart: false;
545
+ readonly default: Record<string, unknown> | undefined;
546
+ readonly description: "Generation configuration settings.";
547
+ readonly showInDialog: false;
548
+ readonly properties: {
549
+ readonly timeout: {
550
+ readonly type: "number";
551
+ readonly label: "Timeout";
552
+ readonly category: "Generation Configuration";
553
+ readonly requiresRestart: false;
554
+ readonly default: number | undefined;
555
+ readonly description: "Request timeout in milliseconds.";
556
+ readonly parentKey: "generationConfig";
557
+ readonly childKey: "timeout";
558
+ readonly showInDialog: true;
559
+ };
560
+ readonly maxRetries: {
561
+ readonly type: "number";
562
+ readonly label: "Max Retries";
563
+ readonly category: "Generation Configuration";
564
+ readonly requiresRestart: false;
565
+ readonly default: number | undefined;
566
+ readonly description: "Maximum number of retries for failed requests.";
567
+ readonly parentKey: "generationConfig";
568
+ readonly childKey: "maxRetries";
569
+ readonly showInDialog: true;
570
+ };
571
+ readonly disableCacheControl: {
572
+ readonly type: "boolean";
573
+ readonly label: "Disable Cache Control";
574
+ readonly category: "Generation Configuration";
575
+ readonly requiresRestart: false;
576
+ readonly default: false;
577
+ readonly description: "Disable cache control for DashScope providers.";
578
+ readonly parentKey: "generationConfig";
579
+ readonly childKey: "disableCacheControl";
580
+ readonly showInDialog: true;
581
+ };
582
+ };
583
+ };
352
584
  };
353
585
  };
354
586
  readonly context: {
@@ -395,6 +627,7 @@ export declare const SETTINGS_SCHEMA: {
395
627
  readonly default: string[];
396
628
  readonly description: "Additional directories to include in the workspace context. Missing directories will be skipped with a warning.";
397
629
  readonly showInDialog: false;
630
+ readonly mergeStrategy: MergeStrategy.CONCAT;
398
631
  };
399
632
  readonly loadMemoryFromIncludeDirectories: {
400
633
  readonly type: "boolean";
@@ -423,7 +656,7 @@ export declare const SETTINGS_SCHEMA: {
423
656
  readonly description: "Respect .gitignore files when searching";
424
657
  readonly showInDialog: true;
425
658
  };
426
- readonly respectGeminiIgnore: {
659
+ readonly respectQwenIgnore: {
427
660
  readonly type: "boolean";
428
661
  readonly label: "Respect .umsignore";
429
662
  readonly category: "Context";
@@ -472,13 +705,51 @@ export declare const SETTINGS_SCHEMA: {
472
705
  readonly description: "Sandbox execution environment (can be a boolean or a path string).";
473
706
  readonly showInDialog: false;
474
707
  };
475
- readonly usePty: {
708
+ readonly shell: {
709
+ readonly type: "object";
710
+ readonly label: "Shell";
711
+ readonly category: "Tools";
712
+ readonly requiresRestart: false;
713
+ readonly default: {};
714
+ readonly description: "Settings for shell execution.";
715
+ readonly showInDialog: false;
716
+ readonly properties: {
717
+ readonly enableInteractiveShell: {
718
+ readonly type: "boolean";
719
+ readonly label: "Enable Interactive Shell";
720
+ readonly category: "Tools";
721
+ readonly requiresRestart: true;
722
+ readonly default: false;
723
+ readonly description: "Use node-pty for an interactive shell experience. Fallback to child_process still applies.";
724
+ readonly showInDialog: true;
725
+ };
726
+ readonly pager: {
727
+ readonly type: "string";
728
+ readonly label: "Pager";
729
+ readonly category: "Tools";
730
+ readonly requiresRestart: false;
731
+ readonly default: string | undefined;
732
+ readonly description: "The pager command to use for shell output. Defaults to `cat`.";
733
+ readonly showInDialog: false;
734
+ };
735
+ readonly showColor: {
736
+ readonly type: "boolean";
737
+ readonly label: "Show Color";
738
+ readonly category: "Tools";
739
+ readonly requiresRestart: false;
740
+ readonly default: false;
741
+ readonly description: "Show color in shell output.";
742
+ readonly showInDialog: true;
743
+ };
744
+ };
745
+ };
746
+ readonly autoAccept: {
476
747
  readonly type: "boolean";
477
- readonly label: "Use node-pty for Shell Execution";
748
+ readonly label: "Auto Accept";
478
749
  readonly category: "Tools";
479
- readonly requiresRestart: true;
750
+ readonly requiresRestart: false;
480
751
  readonly default: false;
481
- readonly description: "Use node-pty for shell command execution. Fallback to child_process still applies.";
752
+ readonly description: "Automatically accept and execute tool calls that are considered safe (e.g., read-only operations).";
482
753
  readonly showInDialog: true;
483
754
  };
484
755
  readonly core: {
@@ -507,6 +778,29 @@ export declare const SETTINGS_SCHEMA: {
507
778
  readonly default: string[] | undefined;
508
779
  readonly description: "Tool names to exclude from discovery.";
509
780
  readonly showInDialog: false;
781
+ readonly mergeStrategy: MergeStrategy.UNION;
782
+ };
783
+ readonly approvalMode: {
784
+ readonly type: "enum";
785
+ readonly label: "Approval Mode";
786
+ readonly category: "Tools";
787
+ readonly requiresRestart: false;
788
+ readonly default: ApprovalMode.DEFAULT;
789
+ readonly description: "Approval mode for tool usage. Controls how tools are approved before execution.";
790
+ readonly showInDialog: true;
791
+ readonly options: readonly [{
792
+ readonly value: ApprovalMode.PLAN;
793
+ readonly label: "Plan";
794
+ }, {
795
+ readonly value: ApprovalMode.DEFAULT;
796
+ readonly label: "Default";
797
+ }, {
798
+ readonly value: ApprovalMode.AUTO_EDIT;
799
+ readonly label: "Auto Edit";
800
+ }, {
801
+ readonly value: ApprovalMode.YOLO;
802
+ readonly label: "YOLO";
803
+ }];
510
804
  };
511
805
  readonly discoveryCommand: {
512
806
  readonly type: "string";
@@ -535,6 +829,42 @@ export declare const SETTINGS_SCHEMA: {
535
829
  readonly description: "Use ripgrep for file content search instead of the fallback implementation. Provides faster search performance.";
536
830
  readonly showInDialog: true;
537
831
  };
832
+ readonly useBuiltinRipgrep: {
833
+ readonly type: "boolean";
834
+ readonly label: "Use Builtin Ripgrep";
835
+ readonly category: "Tools";
836
+ readonly requiresRestart: false;
837
+ readonly default: false;
838
+ readonly description: "Use the bundled ripgrep binary. When set to false, the system-level \"rg\" command will be used instead. This setting is only effective when useRipgrep is true.";
839
+ readonly showInDialog: true;
840
+ };
841
+ readonly enableToolOutputTruncation: {
842
+ readonly type: "boolean";
843
+ readonly label: "Enable Tool Output Truncation";
844
+ readonly category: "General";
845
+ readonly requiresRestart: true;
846
+ readonly default: true;
847
+ readonly description: "Enable truncation of large tool outputs.";
848
+ readonly showInDialog: true;
849
+ };
850
+ readonly truncateToolOutputThreshold: {
851
+ readonly type: "number";
852
+ readonly label: "Tool Output Truncation Threshold";
853
+ readonly category: "General";
854
+ readonly requiresRestart: true;
855
+ readonly default: 25000;
856
+ readonly description: "Truncate tool output if it is larger than this many characters. Set to -1 to disable.";
857
+ readonly showInDialog: true;
858
+ };
859
+ readonly truncateToolOutputLines: {
860
+ readonly type: "number";
861
+ readonly label: "Tool Output Truncation Lines";
862
+ readonly category: "General";
863
+ readonly requiresRestart: true;
864
+ readonly default: 1000;
865
+ readonly description: "The number of lines to keep when truncating tool output.";
866
+ readonly showInDialog: true;
867
+ };
538
868
  };
539
869
  };
540
870
  readonly mcp: {
@@ -561,7 +891,7 @@ export declare const SETTINGS_SCHEMA: {
561
891
  readonly category: "MCP";
562
892
  readonly requiresRestart: true;
563
893
  readonly default: string[] | undefined;
564
- readonly description: "A whitelist of MCP servers to allow.";
894
+ readonly description: "A list of MCP servers to allow.";
565
895
  readonly showInDialog: false;
566
896
  };
567
897
  readonly excluded: {
@@ -570,11 +900,20 @@ export declare const SETTINGS_SCHEMA: {
570
900
  readonly category: "MCP";
571
901
  readonly requiresRestart: true;
572
902
  readonly default: string[] | undefined;
573
- readonly description: "A blacklist of MCP servers to exclude.";
903
+ readonly description: "A list of MCP servers to exclude.";
574
904
  readonly showInDialog: false;
575
905
  };
576
906
  };
577
907
  };
908
+ readonly useSmartEdit: {
909
+ readonly type: "boolean";
910
+ readonly label: "Use Smart Edit";
911
+ readonly category: "Advanced";
912
+ readonly requiresRestart: false;
913
+ readonly default: false;
914
+ readonly description: "Enable the smart-edit tool instead of the replace tool.";
915
+ readonly showInDialog: false;
916
+ };
578
917
  readonly security: {
579
918
  readonly type: "object";
580
919
  readonly label: "Security";
@@ -593,20 +932,11 @@ export declare const SETTINGS_SCHEMA: {
593
932
  readonly description: "Settings for folder trust.";
594
933
  readonly showInDialog: false;
595
934
  readonly properties: {
596
- readonly featureEnabled: {
597
- readonly type: "boolean";
598
- readonly label: "Folder Trust Feature";
599
- readonly category: "Security";
600
- readonly requiresRestart: false;
601
- readonly default: false;
602
- readonly description: "Enable folder trust feature for enhanced security.";
603
- readonly showInDialog: true;
604
- };
605
935
  readonly enabled: {
606
936
  readonly type: "boolean";
607
937
  readonly label: "Folder Trust";
608
938
  readonly category: "Security";
609
- readonly requiresRestart: false;
939
+ readonly requiresRestart: true;
610
940
  readonly default: false;
611
941
  readonly description: "Setting to track whether Folder trust is enabled.";
612
942
  readonly showInDialog: true;
@@ -631,6 +961,15 @@ export declare const SETTINGS_SCHEMA: {
631
961
  readonly description: "The currently selected authentication type.";
632
962
  readonly showInDialog: false;
633
963
  };
964
+ readonly enforcedType: {
965
+ readonly type: "string";
966
+ readonly label: "Enforced Auth Type";
967
+ readonly category: "Advanced";
968
+ readonly requiresRestart: true;
969
+ readonly default: AuthType | undefined;
970
+ readonly description: "The required auth type. If this does not match the selected auth type, the user will be prompted to re-authenticate.";
971
+ readonly showInDialog: false;
972
+ };
634
973
  readonly useExternal: {
635
974
  readonly type: "boolean";
636
975
  readonly label: "Use External Auth";
@@ -640,6 +979,24 @@ export declare const SETTINGS_SCHEMA: {
640
979
  readonly description: "Whether to use an external authentication flow.";
641
980
  readonly showInDialog: false;
642
981
  };
982
+ readonly apiKey: {
983
+ readonly type: "string";
984
+ readonly label: "API Key";
985
+ readonly category: "Security";
986
+ readonly requiresRestart: true;
987
+ readonly default: string | undefined;
988
+ readonly description: "API key for OpenAI compatible authentication.";
989
+ readonly showInDialog: false;
990
+ };
991
+ readonly baseUrl: {
992
+ readonly type: "string";
993
+ readonly label: "Base URL";
994
+ readonly category: "Security";
995
+ readonly requiresRestart: true;
996
+ readonly default: string | undefined;
997
+ readonly description: "Base URL for OpenAI compatible API.";
998
+ readonly showInDialog: false;
999
+ };
643
1000
  };
644
1001
  };
645
1002
  };
@@ -679,6 +1036,7 @@ export declare const SETTINGS_SCHEMA: {
679
1036
  readonly default: string[];
680
1037
  readonly description: "Environment variables to exclude from project context.";
681
1038
  readonly showInDialog: false;
1039
+ readonly mergeStrategy: MergeStrategy.UNION;
682
1040
  };
683
1041
  readonly bugCommand: {
684
1042
  readonly type: "object";
@@ -689,8 +1047,33 @@ export declare const SETTINGS_SCHEMA: {
689
1047
  readonly description: "Configuration for the bug report command.";
690
1048
  readonly showInDialog: false;
691
1049
  };
1050
+ readonly tavilyApiKey: {
1051
+ readonly type: "string";
1052
+ readonly label: "Tavily API Key (Deprecated)";
1053
+ readonly category: "Advanced";
1054
+ readonly requiresRestart: false;
1055
+ readonly default: string | undefined;
1056
+ readonly description: "⚠️ DEPRECATED: Please use webSearch.provider configuration instead. Legacy API key for the Tavily API.";
1057
+ readonly showInDialog: false;
1058
+ };
692
1059
  };
693
1060
  };
1061
+ readonly webSearch: {
1062
+ readonly type: "object";
1063
+ readonly label: "Web Search";
1064
+ readonly category: "Advanced";
1065
+ readonly requiresRestart: true;
1066
+ readonly default: {
1067
+ provider: Array<{
1068
+ type: "tavily" | "google" | "dashscope";
1069
+ apiKey?: string;
1070
+ searchEngineId?: string;
1071
+ }>;
1072
+ default: string;
1073
+ } | undefined;
1074
+ readonly description: "Configuration for web search providers.";
1075
+ readonly showInDialog: false;
1076
+ };
694
1077
  readonly experimental: {
695
1078
  readonly type: "object";
696
1079
  readonly label: "Experimental";
@@ -705,7 +1088,7 @@ export declare const SETTINGS_SCHEMA: {
705
1088
  readonly label: "Extension Management";
706
1089
  readonly category: "Experimental";
707
1090
  readonly requiresRestart: true;
708
- readonly default: false;
1091
+ readonly default: true;
709
1092
  readonly description: "Enable extension management features.";
710
1093
  readonly showInDialog: false;
711
1094
  };
@@ -746,6 +1129,7 @@ export declare const SETTINGS_SCHEMA: {
746
1129
  readonly default: string[];
747
1130
  readonly description: "List of disabled extensions.";
748
1131
  readonly showInDialog: false;
1132
+ readonly mergeStrategy: MergeStrategy.UNION;
749
1133
  };
750
1134
  readonly workspacesWithMigrationNudge: {
751
1135
  readonly type: "array";
@@ -755,130 +1139,22 @@ export declare const SETTINGS_SCHEMA: {
755
1139
  readonly default: string[];
756
1140
  readonly description: "List of workspaces for which the migration nudge has been shown.";
757
1141
  readonly showInDialog: false;
1142
+ readonly mergeStrategy: MergeStrategy.UNION;
758
1143
  };
759
1144
  };
760
1145
  };
761
- readonly contentGenerator: {
762
- readonly type: "object";
763
- readonly label: "Content Generator";
764
- readonly category: "General";
765
- readonly requiresRestart: false;
766
- readonly default: Record<string, unknown> | undefined;
767
- readonly description: "Content generator settings.";
768
- readonly showInDialog: false;
769
- readonly properties: {
770
- readonly timeout: {
771
- readonly type: "number";
772
- readonly label: "Timeout";
773
- readonly category: "Content Generator";
774
- readonly requiresRestart: false;
775
- readonly default: number | undefined;
776
- readonly description: "Request timeout in milliseconds.";
777
- readonly parentKey: "contentGenerator";
778
- readonly childKey: "timeout";
779
- readonly showInDialog: true;
780
- };
781
- readonly maxRetries: {
782
- readonly type: "number";
783
- readonly label: "Max Retries";
784
- readonly category: "Content Generator";
785
- readonly requiresRestart: false;
786
- readonly default: number | undefined;
787
- readonly description: "Maximum number of retries for failed requests.";
788
- readonly parentKey: "contentGenerator";
789
- readonly childKey: "maxRetries";
790
- readonly showInDialog: true;
791
- };
792
- readonly disableCacheControl: {
793
- readonly type: "boolean";
794
- readonly label: "Disable Cache Control";
795
- readonly category: "Content Generator";
796
- readonly requiresRestart: false;
797
- readonly default: false;
798
- readonly description: "Disable cache control for DashScope providers.";
799
- readonly parentKey: "contentGenerator";
800
- readonly childKey: "disableCacheControl";
801
- readonly showInDialog: true;
802
- };
803
- };
804
- };
805
- readonly enableOpenAILogging: {
806
- readonly type: "boolean";
807
- readonly label: "Enable OpenAI Logging";
808
- readonly category: "General";
809
- readonly requiresRestart: false;
810
- readonly default: false;
811
- readonly description: "Enable OpenAI logging.";
812
- readonly showInDialog: true;
813
- };
814
- readonly sessionTokenLimit: {
815
- readonly type: "number";
816
- readonly label: "Session Token Limit";
817
- readonly category: "General";
818
- readonly requiresRestart: false;
819
- readonly default: number | undefined;
820
- readonly description: "The maximum number of tokens allowed in a session.";
821
- readonly showInDialog: false;
822
- };
823
- readonly systemPromptMappings: {
824
- readonly type: "object";
825
- readonly label: "System Prompt Mappings";
826
- readonly category: "General";
827
- readonly requiresRestart: false;
828
- readonly default: Record<string, string> | undefined;
829
- readonly description: "Mappings of system prompts to model names.";
830
- readonly showInDialog: false;
831
- };
832
- readonly tavilyApiKey: {
833
- readonly type: "string";
834
- readonly label: "Tavily API Key";
835
- readonly category: "General";
836
- readonly requiresRestart: false;
837
- readonly default: string | undefined;
838
- readonly description: "The API key for the Tavily API.";
839
- readonly showInDialog: false;
840
- };
841
- readonly skipNextSpeakerCheck: {
842
- readonly type: "boolean";
843
- readonly label: "Skip Next Speaker Check";
844
- readonly category: "General";
845
- readonly requiresRestart: false;
846
- readonly default: false;
847
- readonly description: "Skip the next speaker check.";
848
- readonly showInDialog: true;
849
- };
850
- readonly skipLoopDetection: {
851
- readonly type: "boolean";
852
- readonly label: "Skip Loop Detection";
853
- readonly category: "General";
854
- readonly requiresRestart: false;
855
- readonly default: false;
856
- readonly description: "Disable all loop detection checks (streaming and LLM).";
857
- readonly showInDialog: true;
858
- };
859
- readonly approvalMode: {
860
- readonly type: "string";
861
- readonly label: "Default Approval Mode";
862
- readonly category: "General";
863
- readonly requiresRestart: false;
864
- readonly default: "default";
865
- readonly description: "Default approval mode for tool usage. Valid values: plan, default, auto-edit, yolo.";
866
- readonly showInDialog: true;
867
- };
868
- readonly enableWelcomeBack: {
869
- readonly type: "boolean";
870
- readonly label: "Enable Welcome Back";
871
- readonly category: "UI";
872
- readonly requiresRestart: false;
873
- readonly default: true;
874
- readonly description: "Show welcome back dialog when returning to a project with conversation history.";
875
- readonly showInDialog: true;
876
- };
877
1146
  };
1147
+ export type SettingsSchemaType = typeof SETTINGS_SCHEMA;
1148
+ export declare function getSettingsSchema(): SettingsSchemaType;
878
1149
  type InferSettings<T extends SettingsSchema> = {
879
1150
  -readonly [K in keyof T]?: T[K] extends {
880
1151
  properties: SettingsSchema;
881
- } ? InferSettings<T[K]['properties']> : T[K]['default'] extends boolean ? boolean : T[K]['default'];
1152
+ } ? InferSettings<T[K]['properties']> : T[K]['type'] extends 'enum' ? T[K]['options'] extends readonly SettingEnumOption[] ? T[K]['options'][number]['value'] : T[K]['default'] : T[K]['default'] extends boolean ? boolean : T[K]['default'];
882
1153
  };
883
- export type Settings = InferSettings<typeof SETTINGS_SCHEMA>;
1154
+ export type Settings = InferSettings<SettingsSchemaType>;
1155
+ export interface FooterSettings {
1156
+ hideCWD?: boolean;
1157
+ hideSandboxStatus?: boolean;
1158
+ hideModelInfo?: boolean;
1159
+ }
884
1160
  export {};