@trukhinyuri/gemini-pp 0.27.0-nightly.20260121.97aac696f

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 (2217) hide show
  1. package/dist/.last_build +0 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +50 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/package.json +95 -0
  6. package/dist/src/commands/extensions/configure.d.ts +13 -0
  7. package/dist/src/commands/extensions/configure.js +131 -0
  8. package/dist/src/commands/extensions/configure.js.map +1 -0
  9. package/dist/src/commands/extensions/configure.test.d.ts +1 -0
  10. package/dist/src/commands/extensions/configure.test.js +197 -0
  11. package/dist/src/commands/extensions/configure.test.js.map +1 -0
  12. package/dist/src/commands/extensions/disable.d.ts +13 -0
  13. package/dist/src/commands/extensions/disable.js +69 -0
  14. package/dist/src/commands/extensions/disable.js.map +1 -0
  15. package/dist/src/commands/extensions/disable.test.d.ts +6 -0
  16. package/dist/src/commands/extensions/disable.test.js +169 -0
  17. package/dist/src/commands/extensions/disable.test.js.map +1 -0
  18. package/dist/src/commands/extensions/enable.d.ts +13 -0
  19. package/dist/src/commands/extensions/enable.js +71 -0
  20. package/dist/src/commands/extensions/enable.js.map +1 -0
  21. package/dist/src/commands/extensions/enable.test.d.ts +6 -0
  22. package/dist/src/commands/extensions/enable.test.js +150 -0
  23. package/dist/src/commands/extensions/enable.test.js.map +1 -0
  24. package/dist/src/commands/extensions/examples/context/GEMINI.md +14 -0
  25. package/dist/src/commands/extensions/examples/context/gemini-extension.json +4 -0
  26. package/dist/src/commands/extensions/examples/custom-commands/commands/fs/grep-code.toml +6 -0
  27. package/dist/src/commands/extensions/examples/custom-commands/gemini-extension.json +4 -0
  28. package/dist/src/commands/extensions/examples/exclude-tools/gemini-extension.json +5 -0
  29. package/dist/src/commands/extensions/examples/hooks/gemini-extension.json +4 -0
  30. package/dist/src/commands/extensions/examples/hooks/hooks/hooks.json +14 -0
  31. package/dist/src/commands/extensions/examples/hooks/scripts/on-start.js +8 -0
  32. package/dist/src/commands/extensions/examples/mcp-server/README.md +35 -0
  33. package/dist/src/commands/extensions/examples/mcp-server/example.js +60 -0
  34. package/dist/src/commands/extensions/examples/mcp-server/gemini-extension.json +11 -0
  35. package/dist/src/commands/extensions/examples/mcp-server/package.json +11 -0
  36. package/dist/src/commands/extensions/examples/skills/gemini-extension.json +4 -0
  37. package/dist/src/commands/extensions/examples/skills/skills/greeter/SKILL.md +7 -0
  38. package/dist/src/commands/extensions/install.d.ts +16 -0
  39. package/dist/src/commands/extensions/install.js +87 -0
  40. package/dist/src/commands/extensions/install.js.map +1 -0
  41. package/dist/src/commands/extensions/install.test.d.ts +6 -0
  42. package/dist/src/commands/extensions/install.test.js +140 -0
  43. package/dist/src/commands/extensions/install.test.js.map +1 -0
  44. package/dist/src/commands/extensions/link.d.ts +13 -0
  45. package/dist/src/commands/extensions/link.js +64 -0
  46. package/dist/src/commands/extensions/link.js.map +1 -0
  47. package/dist/src/commands/extensions/link.test.d.ts +6 -0
  48. package/dist/src/commands/extensions/link.test.js +137 -0
  49. package/dist/src/commands/extensions/link.test.js.map +1 -0
  50. package/dist/src/commands/extensions/list.d.ts +8 -0
  51. package/dist/src/commands/extensions/list.js +45 -0
  52. package/dist/src/commands/extensions/list.js.map +1 -0
  53. package/dist/src/commands/extensions/list.test.d.ts +6 -0
  54. package/dist/src/commands/extensions/list.test.js +111 -0
  55. package/dist/src/commands/extensions/list.test.js.map +1 -0
  56. package/dist/src/commands/extensions/new.d.ts +7 -0
  57. package/dist/src/commands/extensions/new.js +86 -0
  58. package/dist/src/commands/extensions/new.js.map +1 -0
  59. package/dist/src/commands/extensions/new.test.d.ts +6 -0
  60. package/dist/src/commands/extensions/new.test.js +62 -0
  61. package/dist/src/commands/extensions/new.test.js.map +1 -0
  62. package/dist/src/commands/extensions/uninstall.d.ts +12 -0
  63. package/dist/src/commands/extensions/uninstall.js +67 -0
  64. package/dist/src/commands/extensions/uninstall.js.map +1 -0
  65. package/dist/src/commands/extensions/uninstall.test.d.ts +6 -0
  66. package/dist/src/commands/extensions/uninstall.test.js +199 -0
  67. package/dist/src/commands/extensions/uninstall.test.js.map +1 -0
  68. package/dist/src/commands/extensions/update.d.ts +13 -0
  69. package/dist/src/commands/extensions/update.js +107 -0
  70. package/dist/src/commands/extensions/update.js.map +1 -0
  71. package/dist/src/commands/extensions/update.test.d.ts +6 -0
  72. package/dist/src/commands/extensions/update.test.js +170 -0
  73. package/dist/src/commands/extensions/update.test.js.map +1 -0
  74. package/dist/src/commands/extensions/utils.d.ts +14 -0
  75. package/dist/src/commands/extensions/utils.js +33 -0
  76. package/dist/src/commands/extensions/utils.js.map +1 -0
  77. package/dist/src/commands/extensions/validate.d.ts +12 -0
  78. package/dist/src/commands/extensions/validate.js +85 -0
  79. package/dist/src/commands/extensions/validate.js.map +1 -0
  80. package/dist/src/commands/extensions/validate.test.d.ts +6 -0
  81. package/dist/src/commands/extensions/validate.test.js +96 -0
  82. package/dist/src/commands/extensions/validate.test.js.map +1 -0
  83. package/dist/src/commands/extensions.d.ts +7 -0
  84. package/dist/src/commands/extensions.js +44 -0
  85. package/dist/src/commands/extensions.js.map +1 -0
  86. package/dist/src/commands/extensions.test.d.ts +6 -0
  87. package/dist/src/commands/extensions.test.js +67 -0
  88. package/dist/src/commands/extensions.test.js.map +1 -0
  89. package/dist/src/commands/hooks/migrate.d.ts +11 -0
  90. package/dist/src/commands/hooks/migrate.js +205 -0
  91. package/dist/src/commands/hooks/migrate.js.map +1 -0
  92. package/dist/src/commands/hooks/migrate.test.d.ts +6 -0
  93. package/dist/src/commands/hooks/migrate.test.js +388 -0
  94. package/dist/src/commands/hooks/migrate.test.js.map +1 -0
  95. package/dist/src/commands/hooks.d.ts +7 -0
  96. package/dist/src/commands/hooks.js +25 -0
  97. package/dist/src/commands/hooks.js.map +1 -0
  98. package/dist/src/commands/mcp/add.d.ts +7 -0
  99. package/dist/src/commands/mcp/add.js +178 -0
  100. package/dist/src/commands/mcp/add.js.map +1 -0
  101. package/dist/src/commands/mcp/add.test.d.ts +6 -0
  102. package/dist/src/commands/mcp/add.test.js +274 -0
  103. package/dist/src/commands/mcp/add.test.js.map +1 -0
  104. package/dist/src/commands/mcp/enableDisable.d.ts +13 -0
  105. package/dist/src/commands/mcp/enableDisable.js +122 -0
  106. package/dist/src/commands/mcp/enableDisable.js.map +1 -0
  107. package/dist/src/commands/mcp/list.d.ts +10 -0
  108. package/dist/src/commands/mcp/list.js +129 -0
  109. package/dist/src/commands/mcp/list.js.map +1 -0
  110. package/dist/src/commands/mcp/list.test.d.ts +6 -0
  111. package/dist/src/commands/mcp/list.test.js +150 -0
  112. package/dist/src/commands/mcp/list.test.js.map +1 -0
  113. package/dist/src/commands/mcp/remove.d.ts +7 -0
  114. package/dist/src/commands/mcp/remove.js +47 -0
  115. package/dist/src/commands/mcp/remove.js.map +1 -0
  116. package/dist/src/commands/mcp/remove.test.d.ts +6 -0
  117. package/dist/src/commands/mcp/remove.test.js +189 -0
  118. package/dist/src/commands/mcp/remove.test.js.map +1 -0
  119. package/dist/src/commands/mcp.d.ts +7 -0
  120. package/dist/src/commands/mcp.js +32 -0
  121. package/dist/src/commands/mcp.js.map +1 -0
  122. package/dist/src/commands/mcp.test.d.ts +6 -0
  123. package/dist/src/commands/mcp.test.js +65 -0
  124. package/dist/src/commands/mcp.test.js.map +1 -0
  125. package/dist/src/commands/skills/disable.d.ts +14 -0
  126. package/dist/src/commands/skills/disable.js +47 -0
  127. package/dist/src/commands/skills/disable.js.map +1 -0
  128. package/dist/src/commands/skills/disable.test.d.ts +6 -0
  129. package/dist/src/commands/skills/disable.test.js +96 -0
  130. package/dist/src/commands/skills/disable.test.js.map +1 -0
  131. package/dist/src/commands/skills/enable.d.ts +12 -0
  132. package/dist/src/commands/skills/enable.js +35 -0
  133. package/dist/src/commands/skills/enable.js.map +1 -0
  134. package/dist/src/commands/skills/enable.test.d.ts +6 -0
  135. package/dist/src/commands/skills/enable.test.js +107 -0
  136. package/dist/src/commands/skills/enable.test.js.map +1 -0
  137. package/dist/src/commands/skills/install.d.ts +15 -0
  138. package/dist/src/commands/skills/install.js +76 -0
  139. package/dist/src/commands/skills/install.js.map +1 -0
  140. package/dist/src/commands/skills/install.test.d.ts +6 -0
  141. package/dist/src/commands/skills/install.test.js +95 -0
  142. package/dist/src/commands/skills/install.test.js.map +1 -0
  143. package/dist/src/commands/skills/list.d.ts +10 -0
  144. package/dist/src/commands/skills/list.js +60 -0
  145. package/dist/src/commands/skills/list.js.map +1 -0
  146. package/dist/src/commands/skills/list.test.d.ts +6 -0
  147. package/dist/src/commands/skills/list.test.js +136 -0
  148. package/dist/src/commands/skills/list.test.js.map +1 -0
  149. package/dist/src/commands/skills/uninstall.d.ts +13 -0
  150. package/dist/src/commands/skills/uninstall.js +56 -0
  151. package/dist/src/commands/skills/uninstall.js.map +1 -0
  152. package/dist/src/commands/skills/uninstall.test.d.ts +6 -0
  153. package/dist/src/commands/skills/uninstall.test.js +61 -0
  154. package/dist/src/commands/skills/uninstall.test.js.map +1 -0
  155. package/dist/src/commands/skills.d.ts +7 -0
  156. package/dist/src/commands/skills.js +34 -0
  157. package/dist/src/commands/skills.js.map +1 -0
  158. package/dist/src/commands/skills.test.d.ts +6 -0
  159. package/dist/src/commands/skills.test.js +49 -0
  160. package/dist/src/commands/skills.test.js.map +1 -0
  161. package/dist/src/commands/utils.d.ts +6 -0
  162. package/dist/src/commands/utils.js +11 -0
  163. package/dist/src/commands/utils.js.map +1 -0
  164. package/dist/src/commands/utils.test.d.ts +6 -0
  165. package/dist/src/commands/utils.test.js +35 -0
  166. package/dist/src/commands/utils.test.js.map +1 -0
  167. package/dist/src/config/auth.d.ts +6 -0
  168. package/dist/src/config/auth.js +35 -0
  169. package/dist/src/config/auth.js.map +1 -0
  170. package/dist/src/config/auth.test.d.ts +6 -0
  171. package/dist/src/config/auth.test.js +89 -0
  172. package/dist/src/config/auth.test.js.map +1 -0
  173. package/dist/src/config/config.d.ts +47 -0
  174. package/dist/src/config/config.integration.test.d.ts +6 -0
  175. package/dist/src/config/config.integration.test.js +205 -0
  176. package/dist/src/config/config.integration.test.js.map +1 -0
  177. package/dist/src/config/config.js +612 -0
  178. package/dist/src/config/config.js.map +1 -0
  179. package/dist/src/config/config.test.d.ts +6 -0
  180. package/dist/src/config/config.test.js +2351 -0
  181. package/dist/src/config/config.test.js.map +1 -0
  182. package/dist/src/config/extension-manager-agents.test.d.ts +6 -0
  183. package/dist/src/config/extension-manager-agents.test.js +114 -0
  184. package/dist/src/config/extension-manager-agents.test.js.map +1 -0
  185. package/dist/src/config/extension-manager-scope.test.d.ts +6 -0
  186. package/dist/src/config/extension-manager-scope.test.js +153 -0
  187. package/dist/src/config/extension-manager-scope.test.js.map +1 -0
  188. package/dist/src/config/extension-manager-skills.test.d.ts +6 -0
  189. package/dist/src/config/extension-manager-skills.test.js +148 -0
  190. package/dist/src/config/extension-manager-skills.test.js.map +1 -0
  191. package/dist/src/config/extension-manager.d.ts +70 -0
  192. package/dist/src/config/extension-manager.js +639 -0
  193. package/dist/src/config/extension-manager.js.map +1 -0
  194. package/dist/src/config/extension.d.ts +28 -0
  195. package/dist/src/config/extension.js +20 -0
  196. package/dist/src/config/extension.js.map +1 -0
  197. package/dist/src/config/extension.test.d.ts +6 -0
  198. package/dist/src/config/extension.test.js +1615 -0
  199. package/dist/src/config/extension.test.js.map +1 -0
  200. package/dist/src/config/extensions/consent.d.ts +44 -0
  201. package/dist/src/config/extensions/consent.js +173 -0
  202. package/dist/src/config/extensions/consent.js.map +1 -0
  203. package/dist/src/config/extensions/consent.test.d.ts +6 -0
  204. package/dist/src/config/extensions/consent.test.js +280 -0
  205. package/dist/src/config/extensions/consent.test.js.map +1 -0
  206. package/dist/src/config/extensions/extensionEnablement.d.ts +47 -0
  207. package/dist/src/config/extensions/extensionEnablement.js +190 -0
  208. package/dist/src/config/extensions/extensionEnablement.js.map +1 -0
  209. package/dist/src/config/extensions/extensionEnablement.test.d.ts +6 -0
  210. package/dist/src/config/extensions/extensionEnablement.test.js +404 -0
  211. package/dist/src/config/extensions/extensionEnablement.test.js.map +1 -0
  212. package/dist/src/config/extensions/extensionSettings.d.ts +23 -0
  213. package/dist/src/config/extensions/extensionSettings.js +204 -0
  214. package/dist/src/config/extensions/extensionSettings.js.map +1 -0
  215. package/dist/src/config/extensions/extensionSettings.test.d.ts +6 -0
  216. package/dist/src/config/extensions/extensionSettings.test.js +493 -0
  217. package/dist/src/config/extensions/extensionSettings.test.js.map +1 -0
  218. package/dist/src/config/extensions/extensionUpdates.test.d.ts +6 -0
  219. package/dist/src/config/extensions/extensionUpdates.test.js +230 -0
  220. package/dist/src/config/extensions/extensionUpdates.test.js.map +1 -0
  221. package/dist/src/config/extensions/github.d.ts +50 -0
  222. package/dist/src/config/extensions/github.js +416 -0
  223. package/dist/src/config/extensions/github.js.map +1 -0
  224. package/dist/src/config/extensions/github.test.d.ts +6 -0
  225. package/dist/src/config/extensions/github.test.js +441 -0
  226. package/dist/src/config/extensions/github.test.js.map +1 -0
  227. package/dist/src/config/extensions/github_fetch.d.ts +7 -0
  228. package/dist/src/config/extensions/github_fetch.js +46 -0
  229. package/dist/src/config/extensions/github_fetch.js.map +1 -0
  230. package/dist/src/config/extensions/github_fetch.test.d.ts +6 -0
  231. package/dist/src/config/extensions/github_fetch.test.js +169 -0
  232. package/dist/src/config/extensions/github_fetch.test.js.map +1 -0
  233. package/dist/src/config/extensions/storage.d.ts +14 -0
  234. package/dist/src/config/extensions/storage.js +32 -0
  235. package/dist/src/config/extensions/storage.js.map +1 -0
  236. package/dist/src/config/extensions/storage.test.d.ts +6 -0
  237. package/dist/src/config/extensions/storage.test.js +64 -0
  238. package/dist/src/config/extensions/storage.test.js.map +1 -0
  239. package/dist/src/config/extensions/update.d.ts +20 -0
  240. package/dist/src/config/extensions/update.js +120 -0
  241. package/dist/src/config/extensions/update.js.map +1 -0
  242. package/dist/src/config/extensions/update.test.d.ts +6 -0
  243. package/dist/src/config/extensions/update.test.js +231 -0
  244. package/dist/src/config/extensions/update.test.js.map +1 -0
  245. package/dist/src/config/extensions/variableSchema.d.ts +32 -0
  246. package/dist/src/config/extensions/variableSchema.js +22 -0
  247. package/dist/src/config/extensions/variableSchema.js.map +1 -0
  248. package/dist/src/config/extensions/variables.d.ts +21 -0
  249. package/dist/src/config/extensions/variables.js +46 -0
  250. package/dist/src/config/extensions/variables.js.map +1 -0
  251. package/dist/src/config/extensions/variables.test.d.ts +6 -0
  252. package/dist/src/config/extensions/variables.test.js +103 -0
  253. package/dist/src/config/extensions/variables.test.js.map +1 -0
  254. package/dist/src/config/keyBindings.d.ts +107 -0
  255. package/dist/src/config/keyBindings.js +397 -0
  256. package/dist/src/config/keyBindings.js.map +1 -0
  257. package/dist/src/config/keyBindings.test.d.ts +6 -0
  258. package/dist/src/config/keyBindings.test.js +108 -0
  259. package/dist/src/config/keyBindings.test.js.map +1 -0
  260. package/dist/src/config/mcp/index.d.ts +6 -0
  261. package/dist/src/config/mcp/index.js +7 -0
  262. package/dist/src/config/mcp/index.js.map +1 -0
  263. package/dist/src/config/mcp/mcpServerEnablement.d.ts +145 -0
  264. package/dist/src/config/mcp/mcpServerEnablement.js +254 -0
  265. package/dist/src/config/mcp/mcpServerEnablement.js.map +1 -0
  266. package/dist/src/config/mcp/mcpServerEnablement.test.d.ts +6 -0
  267. package/dist/src/config/mcp/mcpServerEnablement.test.js +147 -0
  268. package/dist/src/config/mcp/mcpServerEnablement.test.js.map +1 -0
  269. package/dist/src/config/policy-engine.integration.test.d.ts +6 -0
  270. package/dist/src/config/policy-engine.integration.test.js +318 -0
  271. package/dist/src/config/policy-engine.integration.test.js.map +1 -0
  272. package/dist/src/config/policy.d.ts +9 -0
  273. package/dist/src/config/policy.js +21 -0
  274. package/dist/src/config/policy.js.map +1 -0
  275. package/dist/src/config/sandboxConfig.d.ts +12 -0
  276. package/dist/src/config/sandboxConfig.js +74 -0
  277. package/dist/src/config/sandboxConfig.js.map +1 -0
  278. package/dist/src/config/sandboxConfig.test.d.ts +6 -0
  279. package/dist/src/config/sandboxConfig.test.js +184 -0
  280. package/dist/src/config/sandboxConfig.test.js.map +1 -0
  281. package/dist/src/config/settingPaths.d.ts +10 -0
  282. package/dist/src/config/settingPaths.js +11 -0
  283. package/dist/src/config/settingPaths.js.map +1 -0
  284. package/dist/src/config/settingPaths.test.d.ts +6 -0
  285. package/dist/src/config/settingPaths.test.js +22 -0
  286. package/dist/src/config/settingPaths.test.js.map +1 -0
  287. package/dist/src/config/settings-validation.d.ts +23 -0
  288. package/dist/src/config/settings-validation.js +249 -0
  289. package/dist/src/config/settings-validation.js.map +1 -0
  290. package/dist/src/config/settings-validation.test.d.ts +6 -0
  291. package/dist/src/config/settings-validation.test.js +370 -0
  292. package/dist/src/config/settings-validation.test.js.map +1 -0
  293. package/dist/src/config/settings.d.ts +105 -0
  294. package/dist/src/config/settings.js +677 -0
  295. package/dist/src/config/settings.js.map +1 -0
  296. package/dist/src/config/settings.test.d.ts +6 -0
  297. package/dist/src/config/settings.test.js +1822 -0
  298. package/dist/src/config/settings.test.js.map +1 -0
  299. package/dist/src/config/settingsSchema.d.ts +1720 -0
  300. package/dist/src/config/settingsSchema.js +2005 -0
  301. package/dist/src/config/settingsSchema.js.map +1 -0
  302. package/dist/src/config/settingsSchema.test.d.ts +6 -0
  303. package/dist/src/config/settingsSchema.test.js +309 -0
  304. package/dist/src/config/settingsSchema.test.js.map +1 -0
  305. package/dist/src/config/settings_repro.test.d.ts +6 -0
  306. package/dist/src/config/settings_repro.test.js +166 -0
  307. package/dist/src/config/settings_repro.test.js.map +1 -0
  308. package/dist/src/config/settings_validation_warning.test.d.ts +6 -0
  309. package/dist/src/config/settings_validation_warning.test.js +123 -0
  310. package/dist/src/config/settings_validation_warning.test.js.map +1 -0
  311. package/dist/src/config/skills-backward-compatibility.test.d.ts +6 -0
  312. package/dist/src/config/skills-backward-compatibility.test.js +99 -0
  313. package/dist/src/config/skills-backward-compatibility.test.js.map +1 -0
  314. package/dist/src/config/trustedFolders.d.ts +56 -0
  315. package/dist/src/config/trustedFolders.js +190 -0
  316. package/dist/src/config/trustedFolders.js.map +1 -0
  317. package/dist/src/config/trustedFolders.test.d.ts +6 -0
  318. package/dist/src/config/trustedFolders.test.js +385 -0
  319. package/dist/src/config/trustedFolders.test.js.map +1 -0
  320. package/dist/src/core/auth.d.ts +13 -0
  321. package/dist/src/core/auth.js +27 -0
  322. package/dist/src/core/auth.js.map +1 -0
  323. package/dist/src/core/auth.test.d.ts +6 -0
  324. package/dist/src/core/auth.test.js +43 -0
  325. package/dist/src/core/auth.test.js.map +1 -0
  326. package/dist/src/core/initializer.d.ts +21 -0
  327. package/dist/src/core/initializer.js +36 -0
  328. package/dist/src/core/initializer.js.map +1 -0
  329. package/dist/src/core/initializer.test.d.ts +6 -0
  330. package/dist/src/core/initializer.test.js +101 -0
  331. package/dist/src/core/initializer.test.js.map +1 -0
  332. package/dist/src/core/theme.d.ts +12 -0
  333. package/dist/src/core/theme.js +20 -0
  334. package/dist/src/core/theme.js.map +1 -0
  335. package/dist/src/core/theme.test.d.ts +6 -0
  336. package/dist/src/core/theme.test.js +46 -0
  337. package/dist/src/core/theme.test.js.map +1 -0
  338. package/dist/src/deferred.d.ts +19 -0
  339. package/dist/src/deferred.js +50 -0
  340. package/dist/src/deferred.js.map +1 -0
  341. package/dist/src/deferred.test.d.ts +6 -0
  342. package/dist/src/deferred.test.js +164 -0
  343. package/dist/src/deferred.test.js.map +1 -0
  344. package/dist/src/gemini.d.ts +14 -0
  345. package/dist/src/gemini.js +570 -0
  346. package/dist/src/gemini.js.map +1 -0
  347. package/dist/src/gemini.test.d.ts +6 -0
  348. package/dist/src/gemini.test.js +1334 -0
  349. package/dist/src/gemini.test.js.map +1 -0
  350. package/dist/src/gemini_cleanup.test.d.ts +6 -0
  351. package/dist/src/gemini_cleanup.test.js +208 -0
  352. package/dist/src/gemini_cleanup.test.js.map +1 -0
  353. package/dist/src/generated/git-commit.d.ts +7 -0
  354. package/dist/src/generated/git-commit.js +10 -0
  355. package/dist/src/generated/git-commit.js.map +1 -0
  356. package/dist/src/nonInteractiveCli.d.ts +16 -0
  357. package/dist/src/nonInteractiveCli.js +381 -0
  358. package/dist/src/nonInteractiveCli.js.map +1 -0
  359. package/dist/src/nonInteractiveCli.test.d.ts +6 -0
  360. package/dist/src/nonInteractiveCli.test.js +1567 -0
  361. package/dist/src/nonInteractiveCli.test.js.map +1 -0
  362. package/dist/src/nonInteractiveCliCommands.d.ts +17 -0
  363. package/dist/src/nonInteractiveCliCommands.js +83 -0
  364. package/dist/src/nonInteractiveCliCommands.js.map +1 -0
  365. package/dist/src/patches/is-in-ci.d.ts +7 -0
  366. package/dist/src/patches/is-in-ci.js +15 -0
  367. package/dist/src/patches/is-in-ci.js.map +1 -0
  368. package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
  369. package/dist/src/services/BuiltinCommandLoader.js +158 -0
  370. package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
  371. package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
  372. package/dist/src/services/BuiltinCommandLoader.test.js +254 -0
  373. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
  374. package/dist/src/services/CommandService.d.ts +55 -0
  375. package/dist/src/services/CommandService.js +91 -0
  376. package/dist/src/services/CommandService.js.map +1 -0
  377. package/dist/src/services/CommandService.test.d.ts +6 -0
  378. package/dist/src/services/CommandService.test.js +234 -0
  379. package/dist/src/services/CommandService.test.js.map +1 -0
  380. package/dist/src/services/FileCommandLoader.d.ts +51 -0
  381. package/dist/src/services/FileCommandLoader.js +238 -0
  382. package/dist/src/services/FileCommandLoader.js.map +1 -0
  383. package/dist/src/services/FileCommandLoader.test.d.ts +6 -0
  384. package/dist/src/services/FileCommandLoader.test.js +1102 -0
  385. package/dist/src/services/FileCommandLoader.test.js.map +1 -0
  386. package/dist/src/services/McpPromptLoader.d.ts +35 -0
  387. package/dist/src/services/McpPromptLoader.js +256 -0
  388. package/dist/src/services/McpPromptLoader.js.map +1 -0
  389. package/dist/src/services/McpPromptLoader.test.d.ts +6 -0
  390. package/dist/src/services/McpPromptLoader.test.js +411 -0
  391. package/dist/src/services/McpPromptLoader.test.js.map +1 -0
  392. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +16 -0
  393. package/dist/src/services/prompt-processors/argumentProcessor.js +21 -0
  394. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
  395. package/dist/src/services/prompt-processors/argumentProcessor.test.d.ts +6 -0
  396. package/dist/src/services/prompt-processors/argumentProcessor.test.js +40 -0
  397. package/dist/src/services/prompt-processors/argumentProcessor.test.js.map +1 -0
  398. package/dist/src/services/prompt-processors/atFileProcessor.d.ts +12 -0
  399. package/dist/src/services/prompt-processors/atFileProcessor.js +63 -0
  400. package/dist/src/services/prompt-processors/atFileProcessor.js.map +1 -0
  401. package/dist/src/services/prompt-processors/atFileProcessor.test.d.ts +6 -0
  402. package/dist/src/services/prompt-processors/atFileProcessor.test.js +174 -0
  403. package/dist/src/services/prompt-processors/atFileProcessor.test.js.map +1 -0
  404. package/dist/src/services/prompt-processors/injectionParser.d.ts +29 -0
  405. package/dist/src/services/prompt-processors/injectionParser.js +60 -0
  406. package/dist/src/services/prompt-processors/injectionParser.js.map +1 -0
  407. package/dist/src/services/prompt-processors/injectionParser.test.d.ts +6 -0
  408. package/dist/src/services/prompt-processors/injectionParser.test.js +189 -0
  409. package/dist/src/services/prompt-processors/injectionParser.test.js.map +1 -0
  410. package/dist/src/services/prompt-processors/shellProcessor.d.ts +27 -0
  411. package/dist/src/services/prompt-processors/shellProcessor.js +130 -0
  412. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  413. package/dist/src/services/prompt-processors/shellProcessor.test.d.ts +6 -0
  414. package/dist/src/services/prompt-processors/shellProcessor.test.js +514 -0
  415. package/dist/src/services/prompt-processors/shellProcessor.test.js.map +1 -0
  416. package/dist/src/services/prompt-processors/types.d.ts +45 -0
  417. package/dist/src/services/prompt-processors/types.js +20 -0
  418. package/dist/src/services/prompt-processors/types.js.map +1 -0
  419. package/dist/src/services/types.d.ts +22 -0
  420. package/dist/src/services/types.js +7 -0
  421. package/dist/src/services/types.js.map +1 -0
  422. package/dist/src/test-utils/async.d.ts +9 -0
  423. package/dist/src/test-utils/async.js +29 -0
  424. package/dist/src/test-utils/async.js.map +1 -0
  425. package/dist/src/test-utils/createExtension.d.ts +17 -0
  426. package/dist/src/test-utils/createExtension.js +25 -0
  427. package/dist/src/test-utils/createExtension.js.map +1 -0
  428. package/dist/src/test-utils/customMatchers.d.ts +14 -0
  429. package/dist/src/test-utils/customMatchers.js +40 -0
  430. package/dist/src/test-utils/customMatchers.js.map +1 -0
  431. package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
  432. package/dist/src/test-utils/mockCommandContext.js +96 -0
  433. package/dist/src/test-utils/mockCommandContext.js.map +1 -0
  434. package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
  435. package/dist/src/test-utils/mockCommandContext.test.js +51 -0
  436. package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
  437. package/dist/src/test-utils/persistentStateFake.d.ts +26 -0
  438. package/dist/src/test-utils/persistentStateFake.js +39 -0
  439. package/dist/src/test-utils/persistentStateFake.js.map +1 -0
  440. package/dist/src/test-utils/render.d.ts +64 -0
  441. package/dist/src/test-utils/render.js +246 -0
  442. package/dist/src/test-utils/render.js.map +1 -0
  443. package/dist/src/test-utils/render.test.d.ts +6 -0
  444. package/dist/src/test-utils/render.test.js +79 -0
  445. package/dist/src/test-utils/render.test.js.map +1 -0
  446. package/dist/src/ui/App.d.ts +6 -0
  447. package/dist/src/ui/App.js +29 -0
  448. package/dist/src/ui/App.js.map +1 -0
  449. package/dist/src/ui/App.test.d.ts +6 -0
  450. package/dist/src/ui/App.test.js +160 -0
  451. package/dist/src/ui/App.test.js.map +1 -0
  452. package/dist/src/ui/AppContainer.d.ts +16 -0
  453. package/dist/src/ui/AppContainer.js +1386 -0
  454. package/dist/src/ui/AppContainer.js.map +1 -0
  455. package/dist/src/ui/AppContainer.test.d.ts +6 -0
  456. package/dist/src/ui/AppContainer.test.js +2072 -0
  457. package/dist/src/ui/AppContainer.test.js.map +1 -0
  458. package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
  459. package/dist/src/ui/IdeIntegrationNudge.js +50 -0
  460. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
  461. package/dist/src/ui/IdeIntegrationNudge.test.d.ts +6 -0
  462. package/dist/src/ui/IdeIntegrationNudge.test.js +158 -0
  463. package/dist/src/ui/IdeIntegrationNudge.test.js.map +1 -0
  464. package/dist/src/ui/auth/ApiAuthDialog.d.ts +14 -0
  465. package/dist/src/ui/auth/ApiAuthDialog.js +59 -0
  466. package/dist/src/ui/auth/ApiAuthDialog.js.map +1 -0
  467. package/dist/src/ui/auth/ApiAuthDialog.test.d.ts +6 -0
  468. package/dist/src/ui/auth/ApiAuthDialog.test.js +109 -0
  469. package/dist/src/ui/auth/ApiAuthDialog.test.js.map +1 -0
  470. package/dist/src/ui/auth/AuthDialog.d.ts +21 -0
  471. package/dist/src/ui/auth/AuthDialog.js +141 -0
  472. package/dist/src/ui/auth/AuthDialog.js.map +1 -0
  473. package/dist/src/ui/auth/AuthDialog.test.d.ts +6 -0
  474. package/dist/src/ui/auth/AuthDialog.test.js +305 -0
  475. package/dist/src/ui/auth/AuthDialog.test.js.map +1 -0
  476. package/dist/src/ui/auth/AuthInProgress.d.ts +11 -0
  477. package/dist/src/ui/auth/AuthInProgress.js +23 -0
  478. package/dist/src/ui/auth/AuthInProgress.js.map +1 -0
  479. package/dist/src/ui/auth/AuthInProgress.test.d.ts +6 -0
  480. package/dist/src/ui/auth/AuthInProgress.test.js +81 -0
  481. package/dist/src/ui/auth/AuthInProgress.test.js.map +1 -0
  482. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.d.ts +10 -0
  483. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.js +27 -0
  484. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.js.map +1 -0
  485. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.d.ts +6 -0
  486. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js +66 -0
  487. package/dist/src/ui/auth/LoginWithGoogleRestartDialog.test.js.map +1 -0
  488. package/dist/src/ui/auth/useAuth.d.ts +17 -0
  489. package/dist/src/ui/auth/useAuth.js +114 -0
  490. package/dist/src/ui/auth/useAuth.js.map +1 -0
  491. package/dist/src/ui/auth/useAuth.test.d.ts +6 -0
  492. package/dist/src/ui/auth/useAuth.test.js +189 -0
  493. package/dist/src/ui/auth/useAuth.test.js.map +1 -0
  494. package/dist/src/ui/colors.d.ts +7 -0
  495. package/dist/src/ui/colors.js +57 -0
  496. package/dist/src/ui/colors.js.map +1 -0
  497. package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
  498. package/dist/src/ui/commands/aboutCommand.js +56 -0
  499. package/dist/src/ui/commands/aboutCommand.js.map +1 -0
  500. package/dist/src/ui/commands/aboutCommand.test.d.ts +6 -0
  501. package/dist/src/ui/commands/aboutCommand.test.js +131 -0
  502. package/dist/src/ui/commands/aboutCommand.test.js.map +1 -0
  503. package/dist/src/ui/commands/agentsCommand.d.ts +7 -0
  504. package/dist/src/ui/commands/agentsCommand.js +302 -0
  505. package/dist/src/ui/commands/agentsCommand.js.map +1 -0
  506. package/dist/src/ui/commands/agentsCommand.test.d.ts +6 -0
  507. package/dist/src/ui/commands/agentsCommand.test.js +335 -0
  508. package/dist/src/ui/commands/agentsCommand.test.js.map +1 -0
  509. package/dist/src/ui/commands/authCommand.d.ts +7 -0
  510. package/dist/src/ui/commands/authCommand.js +44 -0
  511. package/dist/src/ui/commands/authCommand.js.map +1 -0
  512. package/dist/src/ui/commands/authCommand.test.d.ts +6 -0
  513. package/dist/src/ui/commands/authCommand.test.js +98 -0
  514. package/dist/src/ui/commands/authCommand.test.js.map +1 -0
  515. package/dist/src/ui/commands/bugCommand.d.ts +7 -0
  516. package/dist/src/ui/commands/bugCommand.js +108 -0
  517. package/dist/src/ui/commands/bugCommand.js.map +1 -0
  518. package/dist/src/ui/commands/bugCommand.test.d.ts +6 -0
  519. package/dist/src/ui/commands/bugCommand.test.js +186 -0
  520. package/dist/src/ui/commands/bugCommand.test.js.map +1 -0
  521. package/dist/src/ui/commands/chatCommand.d.ts +8 -0
  522. package/dist/src/ui/commands/chatCommand.js +326 -0
  523. package/dist/src/ui/commands/chatCommand.js.map +1 -0
  524. package/dist/src/ui/commands/chatCommand.test.d.ts +6 -0
  525. package/dist/src/ui/commands/chatCommand.test.js +620 -0
  526. package/dist/src/ui/commands/chatCommand.test.js.map +1 -0
  527. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  528. package/dist/src/ui/commands/clearCommand.js +65 -0
  529. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  530. package/dist/src/ui/commands/clearCommand.test.d.ts +6 -0
  531. package/dist/src/ui/commands/clearCommand.test.js +87 -0
  532. package/dist/src/ui/commands/clearCommand.test.js.map +1 -0
  533. package/dist/src/ui/commands/compressCommand.d.ts +7 -0
  534. package/dist/src/ui/commands/compressCommand.js +67 -0
  535. package/dist/src/ui/commands/compressCommand.js.map +1 -0
  536. package/dist/src/ui/commands/compressCommand.test.d.ts +6 -0
  537. package/dist/src/ui/commands/compressCommand.test.js +98 -0
  538. package/dist/src/ui/commands/compressCommand.test.js.map +1 -0
  539. package/dist/src/ui/commands/copyCommand.d.ts +7 -0
  540. package/dist/src/ui/commands/copyCommand.js +61 -0
  541. package/dist/src/ui/commands/copyCommand.js.map +1 -0
  542. package/dist/src/ui/commands/copyCommand.test.d.ts +6 -0
  543. package/dist/src/ui/commands/copyCommand.test.js +242 -0
  544. package/dist/src/ui/commands/copyCommand.test.js.map +1 -0
  545. package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
  546. package/dist/src/ui/commands/corgiCommand.js +17 -0
  547. package/dist/src/ui/commands/corgiCommand.js.map +1 -0
  548. package/dist/src/ui/commands/corgiCommand.test.d.ts +6 -0
  549. package/dist/src/ui/commands/corgiCommand.test.js +28 -0
  550. package/dist/src/ui/commands/corgiCommand.test.js.map +1 -0
  551. package/dist/src/ui/commands/directoryCommand.d.ts +7 -0
  552. package/dist/src/ui/commands/directoryCommand.js +194 -0
  553. package/dist/src/ui/commands/directoryCommand.js.map +1 -0
  554. package/dist/src/ui/commands/directoryCommand.test.d.ts +6 -0
  555. package/dist/src/ui/commands/directoryCommand.test.js +296 -0
  556. package/dist/src/ui/commands/directoryCommand.test.js.map +1 -0
  557. package/dist/src/ui/commands/docsCommand.d.ts +7 -0
  558. package/dist/src/ui/commands/docsCommand.js +32 -0
  559. package/dist/src/ui/commands/docsCommand.js.map +1 -0
  560. package/dist/src/ui/commands/docsCommand.test.d.ts +6 -0
  561. package/dist/src/ui/commands/docsCommand.test.js +72 -0
  562. package/dist/src/ui/commands/docsCommand.test.js.map +1 -0
  563. package/dist/src/ui/commands/editorCommand.d.ts +7 -0
  564. package/dist/src/ui/commands/editorCommand.js +17 -0
  565. package/dist/src/ui/commands/editorCommand.js.map +1 -0
  566. package/dist/src/ui/commands/editorCommand.test.d.ts +6 -0
  567. package/dist/src/ui/commands/editorCommand.test.js +27 -0
  568. package/dist/src/ui/commands/editorCommand.test.js.map +1 -0
  569. package/dist/src/ui/commands/extensionsCommand.d.ts +12 -0
  570. package/dist/src/ui/commands/extensionsCommand.js +572 -0
  571. package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
  572. package/dist/src/ui/commands/extensionsCommand.test.d.ts +6 -0
  573. package/dist/src/ui/commands/extensionsCommand.test.js +778 -0
  574. package/dist/src/ui/commands/extensionsCommand.test.js.map +1 -0
  575. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  576. package/dist/src/ui/commands/helpCommand.js +22 -0
  577. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  578. package/dist/src/ui/commands/helpCommand.test.d.ts +6 -0
  579. package/dist/src/ui/commands/helpCommand.test.js +42 -0
  580. package/dist/src/ui/commands/helpCommand.test.js.map +1 -0
  581. package/dist/src/ui/commands/hooksCommand.d.ts +7 -0
  582. package/dist/src/ui/commands/hooksCommand.js +342 -0
  583. package/dist/src/ui/commands/hooksCommand.js.map +1 -0
  584. package/dist/src/ui/commands/hooksCommand.test.d.ts +6 -0
  585. package/dist/src/ui/commands/hooksCommand.test.js +572 -0
  586. package/dist/src/ui/commands/hooksCommand.test.js.map +1 -0
  587. package/dist/src/ui/commands/ideCommand.d.ts +7 -0
  588. package/dist/src/ui/commands/ideCommand.js +233 -0
  589. package/dist/src/ui/commands/ideCommand.js.map +1 -0
  590. package/dist/src/ui/commands/ideCommand.test.d.ts +6 -0
  591. package/dist/src/ui/commands/ideCommand.test.js +203 -0
  592. package/dist/src/ui/commands/ideCommand.test.js.map +1 -0
  593. package/dist/src/ui/commands/initCommand.d.ts +7 -0
  594. package/dist/src/ui/commands/initCommand.js +37 -0
  595. package/dist/src/ui/commands/initCommand.js.map +1 -0
  596. package/dist/src/ui/commands/initCommand.test.d.ts +6 -0
  597. package/dist/src/ui/commands/initCommand.test.js +84 -0
  598. package/dist/src/ui/commands/initCommand.test.js.map +1 -0
  599. package/dist/src/ui/commands/loginCodexCommand.d.ts +9 -0
  600. package/dist/src/ui/commands/loginCodexCommand.js +81 -0
  601. package/dist/src/ui/commands/loginCodexCommand.js.map +1 -0
  602. package/dist/src/ui/commands/logoutCodexCommand.d.ts +9 -0
  603. package/dist/src/ui/commands/logoutCodexCommand.js +62 -0
  604. package/dist/src/ui/commands/logoutCodexCommand.js.map +1 -0
  605. package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
  606. package/dist/src/ui/commands/mcpCommand.js +416 -0
  607. package/dist/src/ui/commands/mcpCommand.js.map +1 -0
  608. package/dist/src/ui/commands/mcpCommand.test.d.ts +6 -0
  609. package/dist/src/ui/commands/mcpCommand.test.js +189 -0
  610. package/dist/src/ui/commands/mcpCommand.test.js.map +1 -0
  611. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  612. package/dist/src/ui/commands/memoryCommand.js +94 -0
  613. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  614. package/dist/src/ui/commands/memoryCommand.test.d.ts +6 -0
  615. package/dist/src/ui/commands/memoryCommand.test.js +350 -0
  616. package/dist/src/ui/commands/memoryCommand.test.js.map +1 -0
  617. package/dist/src/ui/commands/modelCommand.d.ts +7 -0
  618. package/dist/src/ui/commands/modelCommand.js +22 -0
  619. package/dist/src/ui/commands/modelCommand.js.map +1 -0
  620. package/dist/src/ui/commands/modelCommand.test.d.ts +6 -0
  621. package/dist/src/ui/commands/modelCommand.test.js +41 -0
  622. package/dist/src/ui/commands/modelCommand.test.js.map +1 -0
  623. package/dist/src/ui/commands/permissionsCommand.d.ts +7 -0
  624. package/dist/src/ui/commands/permissionsCommand.js +75 -0
  625. package/dist/src/ui/commands/permissionsCommand.js.map +1 -0
  626. package/dist/src/ui/commands/permissionsCommand.test.d.ts +6 -0
  627. package/dist/src/ui/commands/permissionsCommand.test.js +86 -0
  628. package/dist/src/ui/commands/permissionsCommand.test.js.map +1 -0
  629. package/dist/src/ui/commands/policiesCommand.d.ts +7 -0
  630. package/dist/src/ui/commands/policiesCommand.js +77 -0
  631. package/dist/src/ui/commands/policiesCommand.js.map +1 -0
  632. package/dist/src/ui/commands/policiesCommand.test.d.ts +6 -0
  633. package/dist/src/ui/commands/policiesCommand.test.js +87 -0
  634. package/dist/src/ui/commands/policiesCommand.test.js.map +1 -0
  635. package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
  636. package/dist/src/ui/commands/privacyCommand.js +17 -0
  637. package/dist/src/ui/commands/privacyCommand.js.map +1 -0
  638. package/dist/src/ui/commands/privacyCommand.test.d.ts +6 -0
  639. package/dist/src/ui/commands/privacyCommand.test.js +32 -0
  640. package/dist/src/ui/commands/privacyCommand.test.js.map +1 -0
  641. package/dist/src/ui/commands/profileCommand.d.ts +7 -0
  642. package/dist/src/ui/commands/profileCommand.js +24 -0
  643. package/dist/src/ui/commands/profileCommand.js.map +1 -0
  644. package/dist/src/ui/commands/quitCommand.d.ts +7 -0
  645. package/dist/src/ui/commands/quitCommand.js +35 -0
  646. package/dist/src/ui/commands/quitCommand.js.map +1 -0
  647. package/dist/src/ui/commands/quitCommand.test.d.ts +6 -0
  648. package/dist/src/ui/commands/quitCommand.test.js +50 -0
  649. package/dist/src/ui/commands/quitCommand.test.js.map +1 -0
  650. package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
  651. package/dist/src/ui/commands/restoreCommand.js +130 -0
  652. package/dist/src/ui/commands/restoreCommand.js.map +1 -0
  653. package/dist/src/ui/commands/restoreCommand.test.d.ts +6 -0
  654. package/dist/src/ui/commands/restoreCommand.test.js +190 -0
  655. package/dist/src/ui/commands/restoreCommand.test.js.map +1 -0
  656. package/dist/src/ui/commands/resumeCommand.d.ts +7 -0
  657. package/dist/src/ui/commands/resumeCommand.js +17 -0
  658. package/dist/src/ui/commands/resumeCommand.js.map +1 -0
  659. package/dist/src/ui/commands/rewindCommand.d.ts +7 -0
  660. package/dist/src/ui/commands/rewindCommand.js +132 -0
  661. package/dist/src/ui/commands/rewindCommand.js.map +1 -0
  662. package/dist/src/ui/commands/rewindCommand.test.d.ts +6 -0
  663. package/dist/src/ui/commands/rewindCommand.test.js +242 -0
  664. package/dist/src/ui/commands/rewindCommand.test.js.map +1 -0
  665. package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
  666. package/dist/src/ui/commands/settingsCommand.js +17 -0
  667. package/dist/src/ui/commands/settingsCommand.js.map +1 -0
  668. package/dist/src/ui/commands/settingsCommand.test.d.ts +6 -0
  669. package/dist/src/ui/commands/settingsCommand.test.js +30 -0
  670. package/dist/src/ui/commands/settingsCommand.test.js.map +1 -0
  671. package/dist/src/ui/commands/setupGithubCommand.d.ts +10 -0
  672. package/dist/src/ui/commands/setupGithubCommand.js +195 -0
  673. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
  674. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
  675. package/dist/src/ui/commands/setupGithubCommand.test.js +238 -0
  676. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
  677. package/dist/src/ui/commands/skillsCommand.d.ts +7 -0
  678. package/dist/src/ui/commands/skillsCommand.js +237 -0
  679. package/dist/src/ui/commands/skillsCommand.js.map +1 -0
  680. package/dist/src/ui/commands/skillsCommand.test.d.ts +6 -0
  681. package/dist/src/ui/commands/skillsCommand.test.js +426 -0
  682. package/dist/src/ui/commands/skillsCommand.test.js.map +1 -0
  683. package/dist/src/ui/commands/statsCommand.d.ts +7 -0
  684. package/dist/src/ui/commands/statsCommand.js +75 -0
  685. package/dist/src/ui/commands/statsCommand.js.map +1 -0
  686. package/dist/src/ui/commands/statsCommand.test.d.ts +6 -0
  687. package/dist/src/ui/commands/statsCommand.test.js +70 -0
  688. package/dist/src/ui/commands/statsCommand.test.js.map +1 -0
  689. package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
  690. package/dist/src/ui/commands/terminalSetupCommand.js +43 -0
  691. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
  692. package/dist/src/ui/commands/terminalSetupCommand.test.d.ts +6 -0
  693. package/dist/src/ui/commands/terminalSetupCommand.test.js +66 -0
  694. package/dist/src/ui/commands/terminalSetupCommand.test.js.map +1 -0
  695. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  696. package/dist/src/ui/commands/themeCommand.js +17 -0
  697. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  698. package/dist/src/ui/commands/themeCommand.test.d.ts +6 -0
  699. package/dist/src/ui/commands/themeCommand.test.js +32 -0
  700. package/dist/src/ui/commands/themeCommand.test.js.map +1 -0
  701. package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
  702. package/dist/src/ui/commands/toolsCommand.js +43 -0
  703. package/dist/src/ui/commands/toolsCommand.js.map +1 -0
  704. package/dist/src/ui/commands/toolsCommand.test.d.ts +6 -0
  705. package/dist/src/ui/commands/toolsCommand.test.js +100 -0
  706. package/dist/src/ui/commands/toolsCommand.test.js.map +1 -0
  707. package/dist/src/ui/commands/types.d.ts +147 -0
  708. package/dist/src/ui/commands/types.js +13 -0
  709. package/dist/src/ui/commands/types.js.map +1 -0
  710. package/dist/src/ui/commands/vimCommand.d.ts +7 -0
  711. package/dist/src/ui/commands/vimCommand.js +24 -0
  712. package/dist/src/ui/commands/vimCommand.js.map +1 -0
  713. package/dist/src/ui/components/AboutBox.d.ts +18 -0
  714. package/dist/src/ui/components/AboutBox.js +6 -0
  715. package/dist/src/ui/components/AboutBox.js.map +1 -0
  716. package/dist/src/ui/components/AboutBox.test.d.ts +6 -0
  717. package/dist/src/ui/components/AboutBox.test.js +53 -0
  718. package/dist/src/ui/components/AboutBox.test.js.map +1 -0
  719. package/dist/src/ui/components/AdminSettingsChangedDialog.d.ts +6 -0
  720. package/dist/src/ui/components/AdminSettingsChangedDialog.js +22 -0
  721. package/dist/src/ui/components/AdminSettingsChangedDialog.js.map +1 -0
  722. package/dist/src/ui/components/AdminSettingsChangedDialog.test.d.ts +6 -0
  723. package/dist/src/ui/components/AdminSettingsChangedDialog.test.js +43 -0
  724. package/dist/src/ui/components/AdminSettingsChangedDialog.test.js.map +1 -0
  725. package/dist/src/ui/components/AlternateBufferQuittingDisplay.d.ts +6 -0
  726. package/dist/src/ui/components/AlternateBufferQuittingDisplay.js +24 -0
  727. package/dist/src/ui/components/AlternateBufferQuittingDisplay.js.map +1 -0
  728. package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.d.ts +6 -0
  729. package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js +170 -0
  730. package/dist/src/ui/components/AlternateBufferQuittingDisplay.test.js.map +1 -0
  731. package/dist/src/ui/components/AnsiOutput.d.ts +14 -0
  732. package/dist/src/ui/components/AnsiOutput.js +12 -0
  733. package/dist/src/ui/components/AnsiOutput.js.map +1 -0
  734. package/dist/src/ui/components/AnsiOutput.test.d.ts +6 -0
  735. package/dist/src/ui/components/AnsiOutput.test.js +92 -0
  736. package/dist/src/ui/components/AnsiOutput.test.js.map +1 -0
  737. package/dist/src/ui/components/AppHeader.d.ts +10 -0
  738. package/dist/src/ui/components/AppHeader.js +25 -0
  739. package/dist/src/ui/components/AppHeader.js.map +1 -0
  740. package/dist/src/ui/components/AppHeader.test.d.ts +6 -0
  741. package/dist/src/ui/components/AppHeader.test.js +225 -0
  742. package/dist/src/ui/components/AppHeader.test.js.map +1 -0
  743. package/dist/src/ui/components/ApprovalModeIndicator.d.ts +12 -0
  744. package/dist/src/ui/components/ApprovalModeIndicator.js +31 -0
  745. package/dist/src/ui/components/ApprovalModeIndicator.js.map +1 -0
  746. package/dist/src/ui/components/ApprovalModeIndicator.test.d.ts +6 -0
  747. package/dist/src/ui/components/ApprovalModeIndicator.test.js +37 -0
  748. package/dist/src/ui/components/ApprovalModeIndicator.test.js.map +1 -0
  749. package/dist/src/ui/components/AsciiArt.d.ts +11 -0
  750. package/dist/src/ui/components/AsciiArt.js +72 -0
  751. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  752. package/dist/src/ui/components/Banner.d.ts +14 -0
  753. package/dist/src/ui/components/Banner.js +28 -0
  754. package/dist/src/ui/components/Banner.js.map +1 -0
  755. package/dist/src/ui/components/Banner.test.d.ts +6 -0
  756. package/dist/src/ui/components/Banner.test.js +24 -0
  757. package/dist/src/ui/components/Banner.test.js.map +1 -0
  758. package/dist/src/ui/components/CliSpinner.d.ts +9 -0
  759. package/dist/src/ui/components/CliSpinner.js +19 -0
  760. package/dist/src/ui/components/CliSpinner.js.map +1 -0
  761. package/dist/src/ui/components/CliSpinner.test.d.ts +6 -0
  762. package/dist/src/ui/components/CliSpinner.test.js +23 -0
  763. package/dist/src/ui/components/CliSpinner.test.js.map +1 -0
  764. package/dist/src/ui/components/Composer.d.ts +6 -0
  765. package/dist/src/ui/components/Composer.js +58 -0
  766. package/dist/src/ui/components/Composer.js.map +1 -0
  767. package/dist/src/ui/components/Composer.test.d.ts +6 -0
  768. package/dist/src/ui/components/Composer.test.js +383 -0
  769. package/dist/src/ui/components/Composer.test.js.map +1 -0
  770. package/dist/src/ui/components/ConfigInitDisplay.d.ts +6 -0
  771. package/dist/src/ui/components/ConfigInitDisplay.js +48 -0
  772. package/dist/src/ui/components/ConfigInitDisplay.js.map +1 -0
  773. package/dist/src/ui/components/ConfigInitDisplay.test.d.ts +6 -0
  774. package/dist/src/ui/components/ConfigInitDisplay.test.js +117 -0
  775. package/dist/src/ui/components/ConfigInitDisplay.test.js.map +1 -0
  776. package/dist/src/ui/components/ConsentPrompt.d.ts +13 -0
  777. package/dist/src/ui/components/ConsentPrompt.js +19 -0
  778. package/dist/src/ui/components/ConsentPrompt.js.map +1 -0
  779. package/dist/src/ui/components/ConsentPrompt.test.d.ts +6 -0
  780. package/dist/src/ui/components/ConsentPrompt.test.js +77 -0
  781. package/dist/src/ui/components/ConsentPrompt.test.js.map +1 -0
  782. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  783. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  784. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  785. package/dist/src/ui/components/ConsoleSummaryDisplay.test.d.ts +6 -0
  786. package/dist/src/ui/components/ConsoleSummaryDisplay.test.js +26 -0
  787. package/dist/src/ui/components/ConsoleSummaryDisplay.test.js.map +1 -0
  788. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
  789. package/dist/src/ui/components/ContextSummaryDisplay.js +63 -0
  790. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  791. package/dist/src/ui/components/ContextSummaryDisplay.test.d.ts +6 -0
  792. package/dist/src/ui/components/ContextSummaryDisplay.test.js +102 -0
  793. package/dist/src/ui/components/ContextSummaryDisplay.test.js.map +1 -0
  794. package/dist/src/ui/components/ContextUsageDisplay.d.ts +10 -0
  795. package/dist/src/ui/components/ContextUsageDisplay.js +16 -0
  796. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
  797. package/dist/src/ui/components/ContextUsageDisplay.test.d.ts +6 -0
  798. package/dist/src/ui/components/ContextUsageDisplay.test.js +39 -0
  799. package/dist/src/ui/components/ContextUsageDisplay.test.js.map +1 -0
  800. package/dist/src/ui/components/CopyModeWarning.d.ts +7 -0
  801. package/dist/src/ui/components/CopyModeWarning.js +12 -0
  802. package/dist/src/ui/components/CopyModeWarning.js.map +1 -0
  803. package/dist/src/ui/components/CopyModeWarning.test.d.ts +6 -0
  804. package/dist/src/ui/components/CopyModeWarning.test.js +33 -0
  805. package/dist/src/ui/components/CopyModeWarning.test.js.map +1 -0
  806. package/dist/src/ui/components/DebugProfiler.d.ts +25 -0
  807. package/dist/src/ui/components/DebugProfiler.js +177 -0
  808. package/dist/src/ui/components/DebugProfiler.js.map +1 -0
  809. package/dist/src/ui/components/DebugProfiler.test.d.ts +6 -0
  810. package/dist/src/ui/components/DebugProfiler.test.js +229 -0
  811. package/dist/src/ui/components/DebugProfiler.test.js.map +1 -0
  812. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +15 -0
  813. package/dist/src/ui/components/DetailedMessagesDisplay.js +54 -0
  814. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  815. package/dist/src/ui/components/DetailedMessagesDisplay.test.d.ts +6 -0
  816. package/dist/src/ui/components/DetailedMessagesDisplay.test.js +39 -0
  817. package/dist/src/ui/components/DetailedMessagesDisplay.test.js.map +1 -0
  818. package/dist/src/ui/components/DialogManager.d.ts +12 -0
  819. package/dist/src/ui/components/DialogManager.js +107 -0
  820. package/dist/src/ui/components/DialogManager.js.map +1 -0
  821. package/dist/src/ui/components/DialogManager.test.d.ts +6 -0
  822. package/dist/src/ui/components/DialogManager.test.js +153 -0
  823. package/dist/src/ui/components/DialogManager.test.js.map +1 -0
  824. package/dist/src/ui/components/EditorSettingsDialog.d.ts +15 -0
  825. package/dist/src/ui/components/EditorSettingsDialog.js +81 -0
  826. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  827. package/dist/src/ui/components/EditorSettingsDialog.test.d.ts +6 -0
  828. package/dist/src/ui/components/EditorSettingsDialog.test.js +119 -0
  829. package/dist/src/ui/components/EditorSettingsDialog.test.js.map +1 -0
  830. package/dist/src/ui/components/ExitWarning.d.ts +7 -0
  831. package/dist/src/ui/components/ExitWarning.js +9 -0
  832. package/dist/src/ui/components/ExitWarning.js.map +1 -0
  833. package/dist/src/ui/components/ExitWarning.test.d.ts +6 -0
  834. package/dist/src/ui/components/ExitWarning.test.js +54 -0
  835. package/dist/src/ui/components/ExitWarning.test.js.map +1 -0
  836. package/dist/src/ui/components/FolderTrustDialog.d.ts +17 -0
  837. package/dist/src/ui/components/FolderTrustDialog.js +71 -0
  838. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
  839. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
  840. package/dist/src/ui/components/FolderTrustDialog.test.js +102 -0
  841. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
  842. package/dist/src/ui/components/Footer.d.ts +7 -0
  843. package/dist/src/ui/components/Footer.js +49 -0
  844. package/dist/src/ui/components/Footer.js.map +1 -0
  845. package/dist/src/ui/components/Footer.test.d.ts +6 -0
  846. package/dist/src/ui/components/Footer.test.js +321 -0
  847. package/dist/src/ui/components/Footer.test.js.map +1 -0
  848. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +22 -0
  849. package/dist/src/ui/components/GeminiRespondingSpinner.js +23 -0
  850. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  851. package/dist/src/ui/components/GeminiRespondingSpinner.test.d.ts +6 -0
  852. package/dist/src/ui/components/GeminiRespondingSpinner.test.js +61 -0
  853. package/dist/src/ui/components/GeminiRespondingSpinner.test.js.map +1 -0
  854. package/dist/src/ui/components/GradientRegression.test.d.ts +6 -0
  855. package/dist/src/ui/components/GradientRegression.test.js +105 -0
  856. package/dist/src/ui/components/GradientRegression.test.js.map +1 -0
  857. package/dist/src/ui/components/Header.d.ts +13 -0
  858. package/dist/src/ui/components/Header.js +31 -0
  859. package/dist/src/ui/components/Header.js.map +1 -0
  860. package/dist/src/ui/components/Header.test.d.ts +6 -0
  861. package/dist/src/ui/components/Header.test.js +147 -0
  862. package/dist/src/ui/components/Header.test.js.map +1 -0
  863. package/dist/src/ui/components/Help.d.ts +12 -0
  864. package/dist/src/ui/components/Help.js +17 -0
  865. package/dist/src/ui/components/Help.js.map +1 -0
  866. package/dist/src/ui/components/Help.test.d.ts +6 -0
  867. package/dist/src/ui/components/Help.test.js +67 -0
  868. package/dist/src/ui/components/Help.test.js.map +1 -0
  869. package/dist/src/ui/components/HistoryItemDisplay.d.ts +21 -0
  870. package/dist/src/ui/components/HistoryItemDisplay.js +33 -0
  871. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  872. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
  873. package/dist/src/ui/components/HistoryItemDisplay.test.js +207 -0
  874. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
  875. package/dist/src/ui/components/HookStatusDisplay.d.ts +12 -0
  876. package/dist/src/ui/components/HookStatusDisplay.js +20 -0
  877. package/dist/src/ui/components/HookStatusDisplay.js.map +1 -0
  878. package/dist/src/ui/components/HookStatusDisplay.test.d.ts +6 -0
  879. package/dist/src/ui/components/HookStatusDisplay.test.js +51 -0
  880. package/dist/src/ui/components/HookStatusDisplay.test.js.map +1 -0
  881. package/dist/src/ui/components/IdeTrustChangeDialog.d.ts +11 -0
  882. package/dist/src/ui/components/IdeTrustChangeDialog.js +34 -0
  883. package/dist/src/ui/components/IdeTrustChangeDialog.js.map +1 -0
  884. package/dist/src/ui/components/IdeTrustChangeDialog.test.d.ts +6 -0
  885. package/dist/src/ui/components/IdeTrustChangeDialog.test.js +58 -0
  886. package/dist/src/ui/components/IdeTrustChangeDialog.test.js.map +1 -0
  887. package/dist/src/ui/components/InputPrompt.d.ts +50 -0
  888. package/dist/src/ui/components/InputPrompt.js +881 -0
  889. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  890. package/dist/src/ui/components/InputPrompt.test.d.ts +6 -0
  891. package/dist/src/ui/components/InputPrompt.test.js +2376 -0
  892. package/dist/src/ui/components/InputPrompt.test.js.map +1 -0
  893. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  894. package/dist/src/ui/components/LoadingIndicator.js +30 -0
  895. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  896. package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
  897. package/dist/src/ui/components/LoadingIndicator.test.js +207 -0
  898. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
  899. package/dist/src/ui/components/LogoutConfirmationDialog.d.ts +15 -0
  900. package/dist/src/ui/components/LogoutConfirmationDialog.js +37 -0
  901. package/dist/src/ui/components/LogoutConfirmationDialog.js.map +1 -0
  902. package/dist/src/ui/components/LogoutConfirmationDialog.test.d.ts +6 -0
  903. package/dist/src/ui/components/LogoutConfirmationDialog.test.js +59 -0
  904. package/dist/src/ui/components/LogoutConfirmationDialog.test.js.map +1 -0
  905. package/dist/src/ui/components/LoopDetectionConfirmation.d.ts +13 -0
  906. package/dist/src/ui/components/LoopDetectionConfirmation.js +37 -0
  907. package/dist/src/ui/components/LoopDetectionConfirmation.js.map +1 -0
  908. package/dist/src/ui/components/LoopDetectionConfirmation.test.d.ts +6 -0
  909. package/dist/src/ui/components/LoopDetectionConfirmation.test.js +25 -0
  910. package/dist/src/ui/components/LoopDetectionConfirmation.test.js.map +1 -0
  911. package/dist/src/ui/components/MainContent.d.ts +6 -0
  912. package/dist/src/ui/components/MainContent.js +78 -0
  913. package/dist/src/ui/components/MainContent.js.map +1 -0
  914. package/dist/src/ui/components/MainContent.test.d.ts +6 -0
  915. package/dist/src/ui/components/MainContent.test.js +83 -0
  916. package/dist/src/ui/components/MainContent.test.js.map +1 -0
  917. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  918. package/dist/src/ui/components/MemoryUsageDisplay.js +24 -0
  919. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  920. package/dist/src/ui/components/MemoryUsageDisplay.test.d.ts +6 -0
  921. package/dist/src/ui/components/MemoryUsageDisplay.test.js +49 -0
  922. package/dist/src/ui/components/MemoryUsageDisplay.test.js.map +1 -0
  923. package/dist/src/ui/components/ModelDialog.d.ts +11 -0
  924. package/dist/src/ui/components/ModelDialog.js +147 -0
  925. package/dist/src/ui/components/ModelDialog.js.map +1 -0
  926. package/dist/src/ui/components/ModelDialog.test.d.ts +6 -0
  927. package/dist/src/ui/components/ModelDialog.test.js +197 -0
  928. package/dist/src/ui/components/ModelDialog.test.js.map +1 -0
  929. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  930. package/dist/src/ui/components/ModelStatsDisplay.js +87 -0
  931. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  932. package/dist/src/ui/components/ModelStatsDisplay.test.d.ts +6 -0
  933. package/dist/src/ui/components/ModelStatsDisplay.test.js +343 -0
  934. package/dist/src/ui/components/ModelStatsDisplay.test.js.map +1 -0
  935. package/dist/src/ui/components/MultiFolderTrustDialog.d.ts +23 -0
  936. package/dist/src/ui/components/MultiFolderTrustDialog.js +91 -0
  937. package/dist/src/ui/components/MultiFolderTrustDialog.js.map +1 -0
  938. package/dist/src/ui/components/MultiFolderTrustDialog.test.d.ts +6 -0
  939. package/dist/src/ui/components/MultiFolderTrustDialog.test.js +161 -0
  940. package/dist/src/ui/components/MultiFolderTrustDialog.test.js.map +1 -0
  941. package/dist/src/ui/components/Notifications.d.ts +6 -0
  942. package/dist/src/ui/components/Notifications.js +61 -0
  943. package/dist/src/ui/components/Notifications.js.map +1 -0
  944. package/dist/src/ui/components/Notifications.test.d.ts +6 -0
  945. package/dist/src/ui/components/Notifications.test.js +153 -0
  946. package/dist/src/ui/components/Notifications.test.js.map +1 -0
  947. package/dist/src/ui/components/PermissionsModifyTrustDialog.d.ts +16 -0
  948. package/dist/src/ui/components/PermissionsModifyTrustDialog.js +58 -0
  949. package/dist/src/ui/components/PermissionsModifyTrustDialog.js.map +1 -0
  950. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.d.ts +6 -0
  951. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js +162 -0
  952. package/dist/src/ui/components/PermissionsModifyTrustDialog.test.js.map +1 -0
  953. package/dist/src/ui/components/ProQuotaDialog.d.ts +16 -0
  954. package/dist/src/ui/components/ProQuotaDialog.js +77 -0
  955. package/dist/src/ui/components/ProQuotaDialog.js.map +1 -0
  956. package/dist/src/ui/components/ProQuotaDialog.test.d.ts +6 -0
  957. package/dist/src/ui/components/ProQuotaDialog.test.js +191 -0
  958. package/dist/src/ui/components/ProQuotaDialog.test.js.map +1 -0
  959. package/dist/src/ui/components/QueuedMessageDisplay.d.ts +9 -0
  960. package/dist/src/ui/components/QueuedMessageDisplay.js +20 -0
  961. package/dist/src/ui/components/QueuedMessageDisplay.js.map +1 -0
  962. package/dist/src/ui/components/QueuedMessageDisplay.test.d.ts +6 -0
  963. package/dist/src/ui/components/QueuedMessageDisplay.test.js +65 -0
  964. package/dist/src/ui/components/QueuedMessageDisplay.test.js.map +1 -0
  965. package/dist/src/ui/components/QuittingDisplay.d.ts +6 -0
  966. package/dist/src/ui/components/QuittingDisplay.js +20 -0
  967. package/dist/src/ui/components/QuittingDisplay.js.map +1 -0
  968. package/dist/src/ui/components/QuittingDisplay.test.d.ts +6 -0
  969. package/dist/src/ui/components/QuittingDisplay.test.js +49 -0
  970. package/dist/src/ui/components/QuittingDisplay.test.js.map +1 -0
  971. package/dist/src/ui/components/RawMarkdownIndicator.d.ts +7 -0
  972. package/dist/src/ui/components/RawMarkdownIndicator.js +8 -0
  973. package/dist/src/ui/components/RawMarkdownIndicator.js.map +1 -0
  974. package/dist/src/ui/components/RawMarkdownIndicator.test.d.ts +6 -0
  975. package/dist/src/ui/components/RawMarkdownIndicator.test.js +34 -0
  976. package/dist/src/ui/components/RawMarkdownIndicator.test.js.map +1 -0
  977. package/dist/src/ui/components/RewindConfirmation.d.ts +21 -0
  978. package/dist/src/ui/components/RewindConfirmation.js +63 -0
  979. package/dist/src/ui/components/RewindConfirmation.js.map +1 -0
  980. package/dist/src/ui/components/RewindConfirmation.test.d.ts +6 -0
  981. package/dist/src/ui/components/RewindConfirmation.test.js +53 -0
  982. package/dist/src/ui/components/RewindConfirmation.test.js.map +1 -0
  983. package/dist/src/ui/components/RewindViewer.d.ts +15 -0
  984. package/dist/src/ui/components/RewindViewer.js +127 -0
  985. package/dist/src/ui/components/RewindViewer.js.map +1 -0
  986. package/dist/src/ui/components/RewindViewer.test.d.ts +6 -0
  987. package/dist/src/ui/components/RewindViewer.test.js +241 -0
  988. package/dist/src/ui/components/RewindViewer.test.js.map +1 -0
  989. package/dist/src/ui/components/SessionBrowser.d.ts +98 -0
  990. package/dist/src/ui/components/SessionBrowser.js +460 -0
  991. package/dist/src/ui/components/SessionBrowser.js.map +1 -0
  992. package/dist/src/ui/components/SessionBrowser.test.d.ts +6 -0
  993. package/dist/src/ui/components/SessionBrowser.test.js +256 -0
  994. package/dist/src/ui/components/SessionBrowser.test.js.map +1 -0
  995. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  996. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  997. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  998. package/dist/src/ui/components/SessionSummaryDisplay.test.d.ts +6 -0
  999. package/dist/src/ui/components/SessionSummaryDisplay.test.js +75 -0
  1000. package/dist/src/ui/components/SessionSummaryDisplay.test.js.map +1 -0
  1001. package/dist/src/ui/components/SettingsDialog.d.ts +18 -0
  1002. package/dist/src/ui/components/SettingsDialog.js +724 -0
  1003. package/dist/src/ui/components/SettingsDialog.js.map +1 -0
  1004. package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
  1005. package/dist/src/ui/components/SettingsDialog.test.js +1168 -0
  1006. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
  1007. package/dist/src/ui/components/ShellInputPrompt.d.ts +11 -0
  1008. package/dist/src/ui/components/ShellInputPrompt.js +36 -0
  1009. package/dist/src/ui/components/ShellInputPrompt.js.map +1 -0
  1010. package/dist/src/ui/components/ShellInputPrompt.test.d.ts +6 -0
  1011. package/dist/src/ui/components/ShellInputPrompt.test.js +91 -0
  1012. package/dist/src/ui/components/ShellInputPrompt.test.js.map +1 -0
  1013. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  1014. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  1015. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  1016. package/dist/src/ui/components/ShellModeIndicator.test.d.ts +6 -0
  1017. package/dist/src/ui/components/ShellModeIndicator.test.js +17 -0
  1018. package/dist/src/ui/components/ShellModeIndicator.test.js.map +1 -0
  1019. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  1020. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  1021. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  1022. package/dist/src/ui/components/ShowMoreLines.test.d.ts +6 -0
  1023. package/dist/src/ui/components/ShowMoreLines.test.js +40 -0
  1024. package/dist/src/ui/components/ShowMoreLines.test.js.map +1 -0
  1025. package/dist/src/ui/components/StatsDisplay.d.ts +14 -0
  1026. package/dist/src/ui/components/StatsDisplay.js +119 -0
  1027. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  1028. package/dist/src/ui/components/StatsDisplay.test.d.ts +6 -0
  1029. package/dist/src/ui/components/StatsDisplay.test.js +438 -0
  1030. package/dist/src/ui/components/StatsDisplay.test.js.map +1 -0
  1031. package/dist/src/ui/components/StatusDisplay.d.ts +11 -0
  1032. package/dist/src/ui/components/StatusDisplay.js +45 -0
  1033. package/dist/src/ui/components/StatusDisplay.js.map +1 -0
  1034. package/dist/src/ui/components/StatusDisplay.test.d.ts +6 -0
  1035. package/dist/src/ui/components/StatusDisplay.test.js +155 -0
  1036. package/dist/src/ui/components/StatusDisplay.test.js.map +1 -0
  1037. package/dist/src/ui/components/StickyHeader.d.ts +16 -0
  1038. package/dist/src/ui/components/StickyHeader.js +5 -0
  1039. package/dist/src/ui/components/StickyHeader.js.map +1 -0
  1040. package/dist/src/ui/components/StickyHeader.test.d.ts +6 -0
  1041. package/dist/src/ui/components/StickyHeader.test.js +17 -0
  1042. package/dist/src/ui/components/StickyHeader.test.js.map +1 -0
  1043. package/dist/src/ui/components/SuggestionsDisplay.d.ts +27 -0
  1044. package/dist/src/ui/components/SuggestionsDisplay.js +46 -0
  1045. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  1046. package/dist/src/ui/components/SuggestionsDisplay.test.d.ts +6 -0
  1047. package/dist/src/ui/components/SuggestionsDisplay.test.js +56 -0
  1048. package/dist/src/ui/components/SuggestionsDisplay.test.js.map +1 -0
  1049. package/dist/src/ui/components/Table.d.ts +21 -0
  1050. package/dist/src/ui/components/Table.js +7 -0
  1051. package/dist/src/ui/components/Table.js.map +1 -0
  1052. package/dist/src/ui/components/Table.test.d.ts +6 -0
  1053. package/dist/src/ui/components/Table.test.js +53 -0
  1054. package/dist/src/ui/components/Table.test.js.map +1 -0
  1055. package/dist/src/ui/components/ThemeDialog.d.ts +21 -0
  1056. package/dist/src/ui/components/ThemeDialog.js +181 -0
  1057. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  1058. package/dist/src/ui/components/ThemeDialog.test.d.ts +6 -0
  1059. package/dist/src/ui/components/ThemeDialog.test.js +167 -0
  1060. package/dist/src/ui/components/ThemeDialog.test.js.map +1 -0
  1061. package/dist/src/ui/components/ThemedGradient.d.ts +8 -0
  1062. package/dist/src/ui/components/ThemedGradient.js +16 -0
  1063. package/dist/src/ui/components/ThemedGradient.js.map +1 -0
  1064. package/dist/src/ui/components/ThemedGradient.test.d.ts +6 -0
  1065. package/dist/src/ui/components/ThemedGradient.test.js +30 -0
  1066. package/dist/src/ui/components/ThemedGradient.test.js.map +1 -0
  1067. package/dist/src/ui/components/Tips.d.ts +12 -0
  1068. package/dist/src/ui/components/Tips.js +9 -0
  1069. package/dist/src/ui/components/Tips.js.map +1 -0
  1070. package/dist/src/ui/components/Tips.test.d.ts +6 -0
  1071. package/dist/src/ui/components/Tips.test.js +23 -0
  1072. package/dist/src/ui/components/Tips.test.js.map +1 -0
  1073. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  1074. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  1075. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  1076. package/dist/src/ui/components/ToolStatsDisplay.test.d.ts +6 -0
  1077. package/dist/src/ui/components/ToolStatsDisplay.test.js +227 -0
  1078. package/dist/src/ui/components/ToolStatsDisplay.test.js.map +1 -0
  1079. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  1080. package/dist/src/ui/components/UpdateNotification.js +10 -0
  1081. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  1082. package/dist/src/ui/components/UpdateNotification.test.d.ts +6 -0
  1083. package/dist/src/ui/components/UpdateNotification.test.js +16 -0
  1084. package/dist/src/ui/components/UpdateNotification.test.js.map +1 -0
  1085. package/dist/src/ui/components/ValidationDialog.d.ts +15 -0
  1086. package/dist/src/ui/components/ValidationDialog.js +86 -0
  1087. package/dist/src/ui/components/ValidationDialog.js.map +1 -0
  1088. package/dist/src/ui/components/ValidationDialog.test.d.ts +6 -0
  1089. package/dist/src/ui/components/ValidationDialog.test.js +128 -0
  1090. package/dist/src/ui/components/ValidationDialog.test.js.map +1 -0
  1091. package/dist/src/ui/components/messages/CompressionMessage.d.ts +10 -0
  1092. package/dist/src/ui/components/messages/CompressionMessage.js +48 -0
  1093. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  1094. package/dist/src/ui/components/messages/CompressionMessage.test.d.ts +6 -0
  1095. package/dist/src/ui/components/messages/CompressionMessage.test.js +191 -0
  1096. package/dist/src/ui/components/messages/CompressionMessage.test.js.map +1 -0
  1097. package/dist/src/ui/components/messages/DiffRenderer.d.ts +17 -0
  1098. package/dist/src/ui/components/messages/DiffRenderer.js +250 -0
  1099. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  1100. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
  1101. package/dist/src/ui/components/messages/DiffRenderer.test.js +240 -0
  1102. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
  1103. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  1104. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  1105. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  1106. package/dist/src/ui/components/messages/ErrorMessage.test.d.ts +6 -0
  1107. package/dist/src/ui/components/messages/ErrorMessage.test.js +23 -0
  1108. package/dist/src/ui/components/messages/ErrorMessage.test.js.map +1 -0
  1109. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  1110. package/dist/src/ui/components/messages/GeminiMessage.js +15 -0
  1111. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  1112. package/dist/src/ui/components/messages/GeminiMessage.test.d.ts +6 -0
  1113. package/dist/src/ui/components/messages/GeminiMessage.test.js +35 -0
  1114. package/dist/src/ui/components/messages/GeminiMessage.test.js.map +1 -0
  1115. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  1116. package/dist/src/ui/components/messages/GeminiMessageContent.js +19 -0
  1117. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  1118. package/dist/src/ui/components/messages/InfoMessage.d.ts +13 -0
  1119. package/dist/src/ui/components/messages/InfoMessage.js +11 -0
  1120. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  1121. package/dist/src/ui/components/messages/InfoMessage.test.d.ts +6 -0
  1122. package/dist/src/ui/components/messages/InfoMessage.test.js +28 -0
  1123. package/dist/src/ui/components/messages/InfoMessage.test.js.map +1 -0
  1124. package/dist/src/ui/components/messages/ModelMessage.d.ts +11 -0
  1125. package/dist/src/ui/components/messages/ModelMessage.js +5 -0
  1126. package/dist/src/ui/components/messages/ModelMessage.js.map +1 -0
  1127. package/dist/src/ui/components/messages/RedirectionConfirmation.test.d.ts +6 -0
  1128. package/dist/src/ui/components/messages/RedirectionConfirmation.test.js +33 -0
  1129. package/dist/src/ui/components/messages/RedirectionConfirmation.test.js.map +1 -0
  1130. package/dist/src/ui/components/messages/ShellToolMessage.d.ts +14 -0
  1131. package/dist/src/ui/components/messages/ShellToolMessage.js +44 -0
  1132. package/dist/src/ui/components/messages/ShellToolMessage.js.map +1 -0
  1133. package/dist/src/ui/components/messages/ShellToolMessage.test.d.ts +6 -0
  1134. package/dist/src/ui/components/messages/ShellToolMessage.test.js +123 -0
  1135. package/dist/src/ui/components/messages/ShellToolMessage.test.js.map +1 -0
  1136. package/dist/src/ui/components/messages/Todo.d.ts +7 -0
  1137. package/dist/src/ui/components/messages/Todo.js +91 -0
  1138. package/dist/src/ui/components/messages/Todo.js.map +1 -0
  1139. package/dist/src/ui/components/messages/Todo.test.d.ts +6 -0
  1140. package/dist/src/ui/components/messages/Todo.test.js +114 -0
  1141. package/dist/src/ui/components/messages/Todo.test.js.map +1 -0
  1142. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +16 -0
  1143. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +252 -0
  1144. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  1145. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
  1146. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +180 -0
  1147. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
  1148. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +19 -0
  1149. package/dist/src/ui/components/messages/ToolGroupMessage.js +76 -0
  1150. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  1151. package/dist/src/ui/components/messages/ToolGroupMessage.test.d.ts +6 -0
  1152. package/dist/src/ui/components/messages/ToolGroupMessage.test.js +425 -0
  1153. package/dist/src/ui/components/messages/ToolGroupMessage.test.js.map +1 -0
  1154. package/dist/src/ui/components/messages/ToolMessage.d.ts +24 -0
  1155. package/dist/src/ui/components/messages/ToolMessage.js +18 -0
  1156. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  1157. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
  1158. package/dist/src/ui/components/messages/ToolMessage.test.js +154 -0
  1159. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
  1160. package/dist/src/ui/components/messages/ToolMessageFocusHint.test.d.ts +6 -0
  1161. package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js +89 -0
  1162. package/dist/src/ui/components/messages/ToolMessageFocusHint.test.js.map +1 -0
  1163. package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.d.ts +6 -0
  1164. package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js +62 -0
  1165. package/dist/src/ui/components/messages/ToolMessageRawMarkdown.test.js.map +1 -0
  1166. package/dist/src/ui/components/messages/ToolResultDisplay.d.ts +13 -0
  1167. package/dist/src/ui/components/messages/ToolResultDisplay.js +60 -0
  1168. package/dist/src/ui/components/messages/ToolResultDisplay.js.map +1 -0
  1169. package/dist/src/ui/components/messages/ToolResultDisplay.test.d.ts +6 -0
  1170. package/dist/src/ui/components/messages/ToolResultDisplay.test.js +114 -0
  1171. package/dist/src/ui/components/messages/ToolResultDisplay.test.js.map +1 -0
  1172. package/dist/src/ui/components/messages/ToolShared.d.ts +49 -0
  1173. package/dist/src/ui/components/messages/ToolShared.js +93 -0
  1174. package/dist/src/ui/components/messages/ToolShared.js.map +1 -0
  1175. package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.d.ts +6 -0
  1176. package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js +134 -0
  1177. package/dist/src/ui/components/messages/ToolStickyHeaderRegression.test.js.map +1 -0
  1178. package/dist/src/ui/components/messages/UserMessage.d.ts +12 -0
  1179. package/dist/src/ui/components/messages/UserMessage.js +13 -0
  1180. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  1181. package/dist/src/ui/components/messages/UserMessage.test.d.ts +6 -0
  1182. package/dist/src/ui/components/messages/UserMessage.test.js +32 -0
  1183. package/dist/src/ui/components/messages/UserMessage.test.js.map +1 -0
  1184. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  1185. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  1186. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  1187. package/dist/src/ui/components/messages/WarningMessage.d.ts +11 -0
  1188. package/dist/src/ui/components/messages/WarningMessage.js +10 -0
  1189. package/dist/src/ui/components/messages/WarningMessage.js.map +1 -0
  1190. package/dist/src/ui/components/messages/WarningMessage.test.d.ts +6 -0
  1191. package/dist/src/ui/components/messages/WarningMessage.test.js +23 -0
  1192. package/dist/src/ui/components/messages/WarningMessage.test.js.map +1 -0
  1193. package/dist/src/ui/components/shared/BaseSelectionList.d.ts +39 -0
  1194. package/dist/src/ui/components/shared/BaseSelectionList.js +73 -0
  1195. package/dist/src/ui/components/shared/BaseSelectionList.js.map +1 -0
  1196. package/dist/src/ui/components/shared/BaseSelectionList.test.d.ts +6 -0
  1197. package/dist/src/ui/components/shared/BaseSelectionList.test.js +386 -0
  1198. package/dist/src/ui/components/shared/BaseSelectionList.test.js.map +1 -0
  1199. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.d.ts +35 -0
  1200. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js +13 -0
  1201. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.js.map +1 -0
  1202. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.d.ts +6 -0
  1203. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js +79 -0
  1204. package/dist/src/ui/components/shared/DescriptiveRadioButtonSelect.test.js.map +1 -0
  1205. package/dist/src/ui/components/shared/EnumSelector.d.ts +18 -0
  1206. package/dist/src/ui/components/shared/EnumSelector.js +44 -0
  1207. package/dist/src/ui/components/shared/EnumSelector.js.map +1 -0
  1208. package/dist/src/ui/components/shared/EnumSelector.test.d.ts +6 -0
  1209. package/dist/src/ui/components/shared/EnumSelector.test.js +70 -0
  1210. package/dist/src/ui/components/shared/EnumSelector.test.js.map +1 -0
  1211. package/dist/src/ui/components/shared/ExpandableText.d.ts +17 -0
  1212. package/dist/src/ui/components/shared/ExpandableText.js +87 -0
  1213. package/dist/src/ui/components/shared/ExpandableText.js.map +1 -0
  1214. package/dist/src/ui/components/shared/ExpandableText.test.d.ts +6 -0
  1215. package/dist/src/ui/components/shared/ExpandableText.test.js +88 -0
  1216. package/dist/src/ui/components/shared/ExpandableText.test.js.map +1 -0
  1217. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +25 -0
  1218. package/dist/src/ui/components/shared/MaxSizedBox.js +67 -0
  1219. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  1220. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
  1221. package/dist/src/ui/components/shared/MaxSizedBox.test.js +90 -0
  1222. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
  1223. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +48 -0
  1224. package/dist/src/ui/components/shared/RadioButtonSelect.js +22 -0
  1225. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  1226. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
  1227. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +134 -0
  1228. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
  1229. package/dist/src/ui/components/shared/ScopeSelector.d.ts +19 -0
  1230. package/dist/src/ui/components/shared/ScopeSelector.js +14 -0
  1231. package/dist/src/ui/components/shared/ScopeSelector.js.map +1 -0
  1232. package/dist/src/ui/components/shared/Scrollable.d.ts +18 -0
  1233. package/dist/src/ui/components/shared/Scrollable.js +84 -0
  1234. package/dist/src/ui/components/shared/Scrollable.js.map +1 -0
  1235. package/dist/src/ui/components/shared/Scrollable.test.d.ts +6 -0
  1236. package/dist/src/ui/components/shared/Scrollable.test.js +74 -0
  1237. package/dist/src/ui/components/shared/Scrollable.test.js.map +1 -0
  1238. package/dist/src/ui/components/shared/ScrollableList.d.ts +26 -0
  1239. package/dist/src/ui/components/shared/ScrollableList.js +152 -0
  1240. package/dist/src/ui/components/shared/ScrollableList.js.map +1 -0
  1241. package/dist/src/ui/components/shared/ScrollableList.test.d.ts +6 -0
  1242. package/dist/src/ui/components/shared/ScrollableList.test.js +228 -0
  1243. package/dist/src/ui/components/shared/ScrollableList.test.js.map +1 -0
  1244. package/dist/src/ui/components/shared/TextInput.d.ts +15 -0
  1245. package/dist/src/ui/components/shared/TextInput.js +38 -0
  1246. package/dist/src/ui/components/shared/TextInput.js.map +1 -0
  1247. package/dist/src/ui/components/shared/TextInput.test.d.ts +6 -0
  1248. package/dist/src/ui/components/shared/TextInput.test.js +242 -0
  1249. package/dist/src/ui/components/shared/TextInput.test.js.map +1 -0
  1250. package/dist/src/ui/components/shared/VirtualizedList.d.ts +44 -0
  1251. package/dist/src/ui/components/shared/VirtualizedList.js +312 -0
  1252. package/dist/src/ui/components/shared/VirtualizedList.js.map +1 -0
  1253. package/dist/src/ui/components/shared/VirtualizedList.test.d.ts +6 -0
  1254. package/dist/src/ui/components/shared/VirtualizedList.test.js +171 -0
  1255. package/dist/src/ui/components/shared/VirtualizedList.test.js.map +1 -0
  1256. package/dist/src/ui/components/shared/performance.test.d.ts +1 -0
  1257. package/dist/src/ui/components/shared/performance.test.js +67 -0
  1258. package/dist/src/ui/components/shared/performance.test.js.map +1 -0
  1259. package/dist/src/ui/components/shared/text-buffer.d.ts +542 -0
  1260. package/dist/src/ui/components/shared/text-buffer.js +2020 -0
  1261. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  1262. package/dist/src/ui/components/shared/text-buffer.test.d.ts +6 -0
  1263. package/dist/src/ui/components/shared/text-buffer.test.js +2362 -0
  1264. package/dist/src/ui/components/shared/text-buffer.test.js.map +1 -0
  1265. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
  1266. package/dist/src/ui/components/shared/vim-buffer-actions.js +552 -0
  1267. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
  1268. package/dist/src/ui/components/shared/vim-buffer-actions.test.d.ts +6 -0
  1269. package/dist/src/ui/components/shared/vim-buffer-actions.test.js +957 -0
  1270. package/dist/src/ui/components/shared/vim-buffer-actions.test.js.map +1 -0
  1271. package/dist/src/ui/components/views/AgentsStatus.d.ts +13 -0
  1272. package/dist/src/ui/components/views/AgentsStatus.js +23 -0
  1273. package/dist/src/ui/components/views/AgentsStatus.js.map +1 -0
  1274. package/dist/src/ui/components/views/ChatList.d.ts +12 -0
  1275. package/dist/src/ui/components/views/ChatList.js +17 -0
  1276. package/dist/src/ui/components/views/ChatList.js.map +1 -0
  1277. package/dist/src/ui/components/views/ChatList.test.d.ts +6 -0
  1278. package/dist/src/ui/components/views/ChatList.test.js +45 -0
  1279. package/dist/src/ui/components/views/ChatList.test.js.map +1 -0
  1280. package/dist/src/ui/components/views/ExtensionsList.d.ts +12 -0
  1281. package/dist/src/ui/components/views/ExtensionsList.js +45 -0
  1282. package/dist/src/ui/components/views/ExtensionsList.js.map +1 -0
  1283. package/dist/src/ui/components/views/ExtensionsList.test.d.ts +6 -0
  1284. package/dist/src/ui/components/views/ExtensionsList.test.js +148 -0
  1285. package/dist/src/ui/components/views/ExtensionsList.test.js.map +1 -0
  1286. package/dist/src/ui/components/views/HooksList.d.ts +24 -0
  1287. package/dist/src/ui/components/views/HooksList.js +28 -0
  1288. package/dist/src/ui/components/views/HooksList.js.map +1 -0
  1289. package/dist/src/ui/components/views/McpStatus.d.ts +28 -0
  1290. package/dist/src/ui/components/views/McpStatus.js +104 -0
  1291. package/dist/src/ui/components/views/McpStatus.js.map +1 -0
  1292. package/dist/src/ui/components/views/McpStatus.test.d.ts +6 -0
  1293. package/dist/src/ui/components/views/McpStatus.test.js +153 -0
  1294. package/dist/src/ui/components/views/McpStatus.test.js.map +1 -0
  1295. package/dist/src/ui/components/views/SkillsList.d.ts +13 -0
  1296. package/dist/src/ui/components/views/SkillsList.js +17 -0
  1297. package/dist/src/ui/components/views/SkillsList.js.map +1 -0
  1298. package/dist/src/ui/components/views/SkillsList.test.d.ts +6 -0
  1299. package/dist/src/ui/components/views/SkillsList.test.js +97 -0
  1300. package/dist/src/ui/components/views/SkillsList.test.js.map +1 -0
  1301. package/dist/src/ui/components/views/ToolsList.d.ts +14 -0
  1302. package/dist/src/ui/components/views/ToolsList.js +7 -0
  1303. package/dist/src/ui/components/views/ToolsList.js.map +1 -0
  1304. package/dist/src/ui/components/views/ToolsList.test.d.ts +6 -0
  1305. package/dist/src/ui/components/views/ToolsList.test.js +45 -0
  1306. package/dist/src/ui/components/views/ToolsList.test.js.map +1 -0
  1307. package/dist/src/ui/constants/tips.d.ts +6 -0
  1308. package/dist/src/ui/constants/tips.js +164 -0
  1309. package/dist/src/ui/constants/tips.js.map +1 -0
  1310. package/dist/src/ui/constants/wittyPhrases.d.ts +6 -0
  1311. package/dist/src/ui/constants/wittyPhrases.js +137 -0
  1312. package/dist/src/ui/constants/wittyPhrases.js.map +1 -0
  1313. package/dist/src/ui/constants.d.ts +24 -0
  1314. package/dist/src/ui/constants.js +31 -0
  1315. package/dist/src/ui/constants.js.map +1 -0
  1316. package/dist/src/ui/contexts/AppContext.d.ts +11 -0
  1317. package/dist/src/ui/contexts/AppContext.js +15 -0
  1318. package/dist/src/ui/contexts/AppContext.js.map +1 -0
  1319. package/dist/src/ui/contexts/ConfigContext.d.ts +9 -0
  1320. package/dist/src/ui/contexts/ConfigContext.js +16 -0
  1321. package/dist/src/ui/contexts/ConfigContext.js.map +1 -0
  1322. package/dist/src/ui/contexts/KeypressContext.d.ts +32 -0
  1323. package/dist/src/ui/contexts/KeypressContext.js +614 -0
  1324. package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
  1325. package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
  1326. package/dist/src/ui/contexts/KeypressContext.test.js +957 -0
  1327. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
  1328. package/dist/src/ui/contexts/MouseContext.d.ts +21 -0
  1329. package/dist/src/ui/contexts/MouseContext.js +104 -0
  1330. package/dist/src/ui/contexts/MouseContext.js.map +1 -0
  1331. package/dist/src/ui/contexts/MouseContext.test.d.ts +6 -0
  1332. package/dist/src/ui/contexts/MouseContext.test.js +198 -0
  1333. package/dist/src/ui/contexts/MouseContext.test.js.map +1 -0
  1334. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  1335. package/dist/src/ui/contexts/OverflowContext.js +38 -0
  1336. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  1337. package/dist/src/ui/contexts/ScrollProvider.d.ts +25 -0
  1338. package/dist/src/ui/contexts/ScrollProvider.drag.test.d.ts +6 -0
  1339. package/dist/src/ui/contexts/ScrollProvider.drag.test.js +319 -0
  1340. package/dist/src/ui/contexts/ScrollProvider.drag.test.js.map +1 -0
  1341. package/dist/src/ui/contexts/ScrollProvider.js +242 -0
  1342. package/dist/src/ui/contexts/ScrollProvider.js.map +1 -0
  1343. package/dist/src/ui/contexts/ScrollProvider.test.d.ts +6 -0
  1344. package/dist/src/ui/contexts/ScrollProvider.test.js +377 -0
  1345. package/dist/src/ui/contexts/ScrollProvider.test.js.map +1 -0
  1346. package/dist/src/ui/contexts/SessionContext.d.ts +46 -0
  1347. package/dist/src/ui/contexts/SessionContext.js +158 -0
  1348. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  1349. package/dist/src/ui/contexts/SessionContext.test.d.ts +6 -0
  1350. package/dist/src/ui/contexts/SessionContext.test.js +198 -0
  1351. package/dist/src/ui/contexts/SessionContext.test.js.map +1 -0
  1352. package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
  1353. package/dist/src/ui/contexts/SettingsContext.js +15 -0
  1354. package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
  1355. package/dist/src/ui/contexts/ShellFocusContext.d.ts +7 -0
  1356. package/dist/src/ui/contexts/ShellFocusContext.js +9 -0
  1357. package/dist/src/ui/contexts/ShellFocusContext.js.map +1 -0
  1358. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  1359. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  1360. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  1361. package/dist/src/ui/contexts/ToolActionsContext.d.ts +20 -0
  1362. package/dist/src/ui/contexts/ToolActionsContext.js +74 -0
  1363. package/dist/src/ui/contexts/ToolActionsContext.js.map +1 -0
  1364. package/dist/src/ui/contexts/ToolActionsContext.test.d.ts +6 -0
  1365. package/dist/src/ui/contexts/ToolActionsContext.test.js +135 -0
  1366. package/dist/src/ui/contexts/ToolActionsContext.test.js.map +1 -0
  1367. package/dist/src/ui/contexts/UIActionsContext.d.ts +57 -0
  1368. package/dist/src/ui/contexts/UIActionsContext.js +21 -0
  1369. package/dist/src/ui/contexts/UIActionsContext.js.map +1 -0
  1370. package/dist/src/ui/contexts/UIStateContext.d.ts +136 -0
  1371. package/dist/src/ui/contexts/UIStateContext.js +17 -0
  1372. package/dist/src/ui/contexts/UIStateContext.js.map +1 -0
  1373. package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
  1374. package/dist/src/ui/contexts/VimModeContext.js +48 -0
  1375. package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
  1376. package/dist/src/ui/debug.d.ts +8 -0
  1377. package/dist/src/ui/debug.js +11 -0
  1378. package/dist/src/ui/debug.js.map +1 -0
  1379. package/dist/src/ui/editors/editorSettingsManager.d.ts +18 -0
  1380. package/dist/src/ui/editors/editorSettingsManager.js +37 -0
  1381. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  1382. package/dist/src/ui/hooks/atCommandProcessor.d.ts +32 -0
  1383. package/dist/src/ui/hooks/atCommandProcessor.js +528 -0
  1384. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  1385. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
  1386. package/dist/src/ui/hooks/atCommandProcessor.test.js +1032 -0
  1387. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
  1388. package/dist/src/ui/hooks/atCommandProcessor_agents.test.d.ts +6 -0
  1389. package/dist/src/ui/hooks/atCommandProcessor_agents.test.js +183 -0
  1390. package/dist/src/ui/hooks/atCommandProcessor_agents.test.js.map +1 -0
  1391. package/dist/src/ui/hooks/keyToAnsi.d.ts +15 -0
  1392. package/dist/src/ui/hooks/keyToAnsi.js +67 -0
  1393. package/dist/src/ui/hooks/keyToAnsi.js.map +1 -0
  1394. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +19 -0
  1395. package/dist/src/ui/hooks/shellCommandProcessor.js +285 -0
  1396. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  1397. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
  1398. package/dist/src/ui/hooks/shellCommandProcessor.test.js +521 -0
  1399. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
  1400. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +46 -0
  1401. package/dist/src/ui/hooks/slashCommandProcessor.js +510 -0
  1402. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  1403. package/dist/src/ui/hooks/slashCommandProcessor.test.d.ts +6 -0
  1404. package/dist/src/ui/hooks/slashCommandProcessor.test.js +796 -0
  1405. package/dist/src/ui/hooks/slashCommandProcessor.test.js.map +1 -0
  1406. package/dist/src/ui/hooks/toolMapping.d.ts +14 -0
  1407. package/dist/src/ui/hooks/toolMapping.js +100 -0
  1408. package/dist/src/ui/hooks/toolMapping.js.map +1 -0
  1409. package/dist/src/ui/hooks/toolMapping.test.d.ts +6 -0
  1410. package/dist/src/ui/hooks/toolMapping.test.js +211 -0
  1411. package/dist/src/ui/hooks/toolMapping.test.js.map +1 -0
  1412. package/dist/src/ui/hooks/useAlternateBuffer.d.ts +8 -0
  1413. package/dist/src/ui/hooks/useAlternateBuffer.js +12 -0
  1414. package/dist/src/ui/hooks/useAlternateBuffer.js.map +1 -0
  1415. package/dist/src/ui/hooks/useAnimatedScrollbar.d.ts +10 -0
  1416. package/dist/src/ui/hooks/useAnimatedScrollbar.js +91 -0
  1417. package/dist/src/ui/hooks/useAnimatedScrollbar.js.map +1 -0
  1418. package/dist/src/ui/hooks/useAnimatedScrollbar.test.d.ts +6 -0
  1419. package/dist/src/ui/hooks/useAnimatedScrollbar.test.js +85 -0
  1420. package/dist/src/ui/hooks/useAnimatedScrollbar.test.js.map +1 -0
  1421. package/dist/src/ui/hooks/useApprovalModeIndicator.d.ts +14 -0
  1422. package/dist/src/ui/hooks/useApprovalModeIndicator.js +75 -0
  1423. package/dist/src/ui/hooks/useApprovalModeIndicator.js.map +1 -0
  1424. package/dist/src/ui/hooks/useApprovalModeIndicator.test.d.ts +6 -0
  1425. package/dist/src/ui/hooks/useApprovalModeIndicator.test.js +435 -0
  1426. package/dist/src/ui/hooks/useApprovalModeIndicator.test.js.map +1 -0
  1427. package/dist/src/ui/hooks/useAtCompletion.d.ts +23 -0
  1428. package/dist/src/ui/hooks/useAtCompletion.js +280 -0
  1429. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
  1430. package/dist/src/ui/hooks/useAtCompletion.test.d.ts +6 -0
  1431. package/dist/src/ui/hooks/useAtCompletion.test.js +417 -0
  1432. package/dist/src/ui/hooks/useAtCompletion.test.js.map +1 -0
  1433. package/dist/src/ui/hooks/useAtCompletion_agents.test.d.ts +6 -0
  1434. package/dist/src/ui/hooks/useAtCompletion_agents.test.js +87 -0
  1435. package/dist/src/ui/hooks/useAtCompletion_agents.test.js.map +1 -0
  1436. package/dist/src/ui/hooks/useBanner.d.ts +14 -0
  1437. package/dist/src/ui/hooks/useBanner.js +48 -0
  1438. package/dist/src/ui/hooks/useBanner.js.map +1 -0
  1439. package/dist/src/ui/hooks/useBanner.test.d.ts +6 -0
  1440. package/dist/src/ui/hooks/useBanner.test.js +92 -0
  1441. package/dist/src/ui/hooks/useBanner.test.js.map +1 -0
  1442. package/dist/src/ui/hooks/useBatchedScroll.d.ts +14 -0
  1443. package/dist/src/ui/hooks/useBatchedScroll.js +27 -0
  1444. package/dist/src/ui/hooks/useBatchedScroll.js.map +1 -0
  1445. package/dist/src/ui/hooks/useBatchedScroll.test.d.ts +6 -0
  1446. package/dist/src/ui/hooks/useBatchedScroll.test.js +62 -0
  1447. package/dist/src/ui/hooks/useBatchedScroll.test.js.map +1 -0
  1448. package/dist/src/ui/hooks/useCommandCompletion.d.ts +42 -0
  1449. package/dist/src/ui/hooks/useCommandCompletion.js +237 -0
  1450. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
  1451. package/dist/src/ui/hooks/useCommandCompletion.test.d.ts +6 -0
  1452. package/dist/src/ui/hooks/useCommandCompletion.test.js +462 -0
  1453. package/dist/src/ui/hooks/useCommandCompletion.test.js.map +1 -0
  1454. package/dist/src/ui/hooks/useCompletion.d.ts +24 -0
  1455. package/dist/src/ui/hooks/useCompletion.js +88 -0
  1456. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  1457. package/dist/src/ui/hooks/useConsoleMessages.d.ts +11 -0
  1458. package/dist/src/ui/hooks/useConsoleMessages.js +101 -0
  1459. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  1460. package/dist/src/ui/hooks/useConsoleMessages.test.d.ts +6 -0
  1461. package/dist/src/ui/hooks/useConsoleMessages.test.js +159 -0
  1462. package/dist/src/ui/hooks/useConsoleMessages.test.js.map +1 -0
  1463. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  1464. package/dist/src/ui/hooks/useEditorSettings.js +44 -0
  1465. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  1466. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
  1467. package/dist/src/ui/hooks/useEditorSettings.test.js +179 -0
  1468. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
  1469. package/dist/src/ui/hooks/useExtensionUpdates.d.ts +31 -0
  1470. package/dist/src/ui/hooks/useExtensionUpdates.js +173 -0
  1471. package/dist/src/ui/hooks/useExtensionUpdates.js.map +1 -0
  1472. package/dist/src/ui/hooks/useExtensionUpdates.test.d.ts +6 -0
  1473. package/dist/src/ui/hooks/useExtensionUpdates.test.js +279 -0
  1474. package/dist/src/ui/hooks/useExtensionUpdates.test.js.map +1 -0
  1475. package/dist/src/ui/hooks/useFlickerDetector.d.ts +14 -0
  1476. package/dist/src/ui/hooks/useFlickerDetector.js +37 -0
  1477. package/dist/src/ui/hooks/useFlickerDetector.js.map +1 -0
  1478. package/dist/src/ui/hooks/useFlickerDetector.test.d.ts +6 -0
  1479. package/dist/src/ui/hooks/useFlickerDetector.test.js +106 -0
  1480. package/dist/src/ui/hooks/useFlickerDetector.test.js.map +1 -0
  1481. package/dist/src/ui/hooks/useFocus.d.ts +10 -0
  1482. package/dist/src/ui/hooks/useFocus.js +51 -0
  1483. package/dist/src/ui/hooks/useFocus.js.map +1 -0
  1484. package/dist/src/ui/hooks/useFocus.test.d.ts +6 -0
  1485. package/dist/src/ui/hooks/useFocus.test.js +131 -0
  1486. package/dist/src/ui/hooks/useFocus.test.js.map +1 -0
  1487. package/dist/src/ui/hooks/useFolderTrust.d.ts +14 -0
  1488. package/dist/src/ui/hooks/useFolderTrust.js +76 -0
  1489. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
  1490. package/dist/src/ui/hooks/useFolderTrust.test.d.ts +6 -0
  1491. package/dist/src/ui/hooks/useFolderTrust.test.js +218 -0
  1492. package/dist/src/ui/hooks/useFolderTrust.test.js.map +1 -0
  1493. package/dist/src/ui/hooks/useGeminiStream.d.ts +37 -0
  1494. package/dist/src/ui/hooks/useGeminiStream.js +911 -0
  1495. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  1496. package/dist/src/ui/hooks/useGeminiStream.test.d.ts +6 -0
  1497. package/dist/src/ui/hooks/useGeminiStream.test.js +2269 -0
  1498. package/dist/src/ui/hooks/useGeminiStream.test.js.map +1 -0
  1499. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  1500. package/dist/src/ui/hooks/useGitBranchName.js +65 -0
  1501. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  1502. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
  1503. package/dist/src/ui/hooks/useGitBranchName.test.js +183 -0
  1504. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
  1505. package/dist/src/ui/hooks/useHistoryManager.d.ts +25 -0
  1506. package/dist/src/ui/hooks/useHistoryManager.js +108 -0
  1507. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  1508. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
  1509. package/dist/src/ui/hooks/useHistoryManager.test.js +188 -0
  1510. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
  1511. package/dist/src/ui/hooks/useHookDisplayState.d.ts +7 -0
  1512. package/dist/src/ui/hooks/useHookDisplayState.js +83 -0
  1513. package/dist/src/ui/hooks/useHookDisplayState.js.map +1 -0
  1514. package/dist/src/ui/hooks/useHookDisplayState.test.d.ts +6 -0
  1515. package/dist/src/ui/hooks/useHookDisplayState.test.js +180 -0
  1516. package/dist/src/ui/hooks/useHookDisplayState.test.js.map +1 -0
  1517. package/dist/src/ui/hooks/useIdeTrustListener.d.ts +16 -0
  1518. package/dist/src/ui/hooks/useIdeTrustListener.js +67 -0
  1519. package/dist/src/ui/hooks/useIdeTrustListener.js.map +1 -0
  1520. package/dist/src/ui/hooks/useIdeTrustListener.test.d.ts +6 -0
  1521. package/dist/src/ui/hooks/useIdeTrustListener.test.js +214 -0
  1522. package/dist/src/ui/hooks/useIdeTrustListener.test.js.map +1 -0
  1523. package/dist/src/ui/hooks/useInactivityTimer.d.ts +14 -0
  1524. package/dist/src/ui/hooks/useInactivityTimer.js +30 -0
  1525. package/dist/src/ui/hooks/useInactivityTimer.js.map +1 -0
  1526. package/dist/src/ui/hooks/useIncludeDirsTrust.d.ts +8 -0
  1527. package/dist/src/ui/hooks/useIncludeDirsTrust.js +110 -0
  1528. package/dist/src/ui/hooks/useIncludeDirsTrust.js.map +1 -0
  1529. package/dist/src/ui/hooks/useIncludeDirsTrust.test.d.ts +6 -0
  1530. package/dist/src/ui/hooks/useIncludeDirsTrust.test.js +172 -0
  1531. package/dist/src/ui/hooks/useIncludeDirsTrust.test.js.map +1 -0
  1532. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  1533. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  1534. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  1535. package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
  1536. package/dist/src/ui/hooks/useInputHistory.test.js +208 -0
  1537. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
  1538. package/dist/src/ui/hooks/useInputHistoryStore.d.ts +19 -0
  1539. package/dist/src/ui/hooks/useInputHistoryStore.js +82 -0
  1540. package/dist/src/ui/hooks/useInputHistoryStore.js.map +1 -0
  1541. package/dist/src/ui/hooks/useInputHistoryStore.test.d.ts +6 -0
  1542. package/dist/src/ui/hooks/useInputHistoryStore.test.js +238 -0
  1543. package/dist/src/ui/hooks/useInputHistoryStore.test.js.map +1 -0
  1544. package/dist/src/ui/hooks/useKeypress.d.ts +17 -0
  1545. package/dist/src/ui/hooks/useKeypress.js +27 -0
  1546. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  1547. package/dist/src/ui/hooks/useKeypress.test.d.ts +6 -0
  1548. package/dist/src/ui/hooks/useKeypress.test.js +205 -0
  1549. package/dist/src/ui/hooks/useKeypress.test.js.map +1 -0
  1550. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +14 -0
  1551. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +19 -0
  1552. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
  1553. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +17 -0
  1554. package/dist/src/ui/hooks/useLoadingIndicator.js +48 -0
  1555. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  1556. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
  1557. package/dist/src/ui/hooks/useLoadingIndicator.test.js +145 -0
  1558. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
  1559. package/dist/src/ui/hooks/useLogger.d.ts +11 -0
  1560. package/dist/src/ui/hooks/useLogger.js +29 -0
  1561. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  1562. package/dist/src/ui/hooks/useMemoryMonitor.d.ts +13 -0
  1563. package/dist/src/ui/hooks/useMemoryMonitor.js +28 -0
  1564. package/dist/src/ui/hooks/useMemoryMonitor.js.map +1 -0
  1565. package/dist/src/ui/hooks/useMemoryMonitor.test.d.ts +6 -0
  1566. package/dist/src/ui/hooks/useMemoryMonitor.test.js +62 -0
  1567. package/dist/src/ui/hooks/useMemoryMonitor.test.js.map +1 -0
  1568. package/dist/src/ui/hooks/useMessageQueue.d.ts +24 -0
  1569. package/dist/src/ui/hooks/useMessageQueue.js +61 -0
  1570. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
  1571. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
  1572. package/dist/src/ui/hooks/useMessageQueue.test.js +293 -0
  1573. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
  1574. package/dist/src/ui/hooks/useModelCommand.d.ts +12 -0
  1575. package/dist/src/ui/hooks/useModelCommand.js +21 -0
  1576. package/dist/src/ui/hooks/useModelCommand.js.map +1 -0
  1577. package/dist/src/ui/hooks/useModelCommand.test.d.ts +6 -0
  1578. package/dist/src/ui/hooks/useModelCommand.test.js +45 -0
  1579. package/dist/src/ui/hooks/useModelCommand.test.js.map +1 -0
  1580. package/dist/src/ui/hooks/useMouse.d.ts +17 -0
  1581. package/dist/src/ui/hooks/useMouse.js +27 -0
  1582. package/dist/src/ui/hooks/useMouse.js.map +1 -0
  1583. package/dist/src/ui/hooks/useMouse.test.d.ts +6 -0
  1584. package/dist/src/ui/hooks/useMouse.test.js +57 -0
  1585. package/dist/src/ui/hooks/useMouse.test.js.map +1 -0
  1586. package/dist/src/ui/hooks/useMouseClick.d.ts +12 -0
  1587. package/dist/src/ui/hooks/useMouseClick.js +28 -0
  1588. package/dist/src/ui/hooks/useMouseClick.js.map +1 -0
  1589. package/dist/src/ui/hooks/useMouseClick.test.d.ts +6 -0
  1590. package/dist/src/ui/hooks/useMouseClick.test.js +59 -0
  1591. package/dist/src/ui/hooks/useMouseClick.test.js.map +1 -0
  1592. package/dist/src/ui/hooks/usePermissionsModifyTrust.d.ts +17 -0
  1593. package/dist/src/ui/hooks/usePermissionsModifyTrust.js +115 -0
  1594. package/dist/src/ui/hooks/usePermissionsModifyTrust.js.map +1 -0
  1595. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.d.ts +6 -0
  1596. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js +291 -0
  1597. package/dist/src/ui/hooks/usePermissionsModifyTrust.test.js.map +1 -0
  1598. package/dist/src/ui/hooks/usePhraseCycler.d.ts +16 -0
  1599. package/dist/src/ui/hooks/usePhraseCycler.js +81 -0
  1600. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  1601. package/dist/src/ui/hooks/usePhraseCycler.test.d.ts +6 -0
  1602. package/dist/src/ui/hooks/usePhraseCycler.test.js +208 -0
  1603. package/dist/src/ui/hooks/usePhraseCycler.test.js.map +1 -0
  1604. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  1605. package/dist/src/ui/hooks/usePrivacySettings.js +103 -0
  1606. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  1607. package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +6 -0
  1608. package/dist/src/ui/hooks/usePrivacySettings.test.js +104 -0
  1609. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
  1610. package/dist/src/ui/hooks/usePromptCompletion.d.ts +23 -0
  1611. package/dist/src/ui/hooks/usePromptCompletion.js +169 -0
  1612. package/dist/src/ui/hooks/usePromptCompletion.js.map +1 -0
  1613. package/dist/src/ui/hooks/useQuotaAndFallback.d.ts +21 -0
  1614. package/dist/src/ui/hooks/useQuotaAndFallback.js +152 -0
  1615. package/dist/src/ui/hooks/useQuotaAndFallback.js.map +1 -0
  1616. package/dist/src/ui/hooks/useQuotaAndFallback.test.d.ts +6 -0
  1617. package/dist/src/ui/hooks/useQuotaAndFallback.test.js +461 -0
  1618. package/dist/src/ui/hooks/useQuotaAndFallback.test.js.map +1 -0
  1619. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +43 -0
  1620. package/dist/src/ui/hooks/useReactToolScheduler.js +98 -0
  1621. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  1622. package/dist/src/ui/hooks/useReactToolScheduler.test.d.ts +6 -0
  1623. package/dist/src/ui/hooks/useReactToolScheduler.test.js +58 -0
  1624. package/dist/src/ui/hooks/useReactToolScheduler.test.js.map +1 -0
  1625. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  1626. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  1627. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  1628. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
  1629. package/dist/src/ui/hooks/useReverseSearchCompletion.js +103 -0
  1630. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
  1631. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
  1632. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +169 -0
  1633. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
  1634. package/dist/src/ui/hooks/useRewind.d.ts +14 -0
  1635. package/dist/src/ui/hooks/useRewind.js +31 -0
  1636. package/dist/src/ui/hooks/useRewind.js.map +1 -0
  1637. package/dist/src/ui/hooks/useRewind.test.d.ts +6 -0
  1638. package/dist/src/ui/hooks/useRewind.test.js +100 -0
  1639. package/dist/src/ui/hooks/useRewind.test.js.map +1 -0
  1640. package/dist/src/ui/hooks/useSelectionList.d.ts +35 -0
  1641. package/dist/src/ui/hooks/useSelectionList.js +297 -0
  1642. package/dist/src/ui/hooks/useSelectionList.js.map +1 -0
  1643. package/dist/src/ui/hooks/useSelectionList.test.d.ts +6 -0
  1644. package/dist/src/ui/hooks/useSelectionList.test.js +848 -0
  1645. package/dist/src/ui/hooks/useSelectionList.test.js.map +1 -0
  1646. package/dist/src/ui/hooks/useSessionBrowser.d.ts +35 -0
  1647. package/dist/src/ui/hooks/useSessionBrowser.js +224 -0
  1648. package/dist/src/ui/hooks/useSessionBrowser.js.map +1 -0
  1649. package/dist/src/ui/hooks/useSessionBrowser.test.d.ts +6 -0
  1650. package/dist/src/ui/hooks/useSessionBrowser.test.js +203 -0
  1651. package/dist/src/ui/hooks/useSessionBrowser.test.js.map +1 -0
  1652. package/dist/src/ui/hooks/useSessionResume.d.ts +30 -0
  1653. package/dist/src/ui/hooks/useSessionResume.js +57 -0
  1654. package/dist/src/ui/hooks/useSessionResume.js.map +1 -0
  1655. package/dist/src/ui/hooks/useSessionResume.test.d.ts +6 -0
  1656. package/dist/src/ui/hooks/useSessionResume.test.js +326 -0
  1657. package/dist/src/ui/hooks/useSessionResume.test.js.map +1 -0
  1658. package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
  1659. package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
  1660. package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
  1661. package/dist/src/ui/hooks/useShellHistory.d.ts +14 -0
  1662. package/dist/src/ui/hooks/useShellHistory.js +113 -0
  1663. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  1664. package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
  1665. package/dist/src/ui/hooks/useShellHistory.test.js +223 -0
  1666. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
  1667. package/dist/src/ui/hooks/useShellInactivityStatus.d.ts +26 -0
  1668. package/dist/src/ui/hooks/useShellInactivityStatus.js +46 -0
  1669. package/dist/src/ui/hooks/useShellInactivityStatus.js.map +1 -0
  1670. package/dist/src/ui/hooks/useShellInactivityStatus.test.d.ts +6 -0
  1671. package/dist/src/ui/hooks/useShellInactivityStatus.test.js +84 -0
  1672. package/dist/src/ui/hooks/useShellInactivityStatus.test.js.map +1 -0
  1673. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  1674. package/dist/src/ui/hooks/useShowMemoryCommand.js +59 -0
  1675. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  1676. package/dist/src/ui/hooks/useSlashCompletion.d.ts +23 -0
  1677. package/dist/src/ui/hooks/useSlashCompletion.js +397 -0
  1678. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
  1679. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +9 -0
  1680. package/dist/src/ui/hooks/useSlashCompletion.test.js +845 -0
  1681. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
  1682. package/dist/src/ui/hooks/useSnowfall.d.ts +6 -0
  1683. package/dist/src/ui/hooks/useSnowfall.js +126 -0
  1684. package/dist/src/ui/hooks/useSnowfall.js.map +1 -0
  1685. package/dist/src/ui/hooks/useSnowfall.test.d.ts +6 -0
  1686. package/dist/src/ui/hooks/useSnowfall.test.js +88 -0
  1687. package/dist/src/ui/hooks/useSnowfall.test.js.map +1 -0
  1688. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  1689. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  1690. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  1691. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  1692. package/dist/src/ui/hooks/useTerminalSize.js +26 -0
  1693. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  1694. package/dist/src/ui/hooks/useThemeCommand.d.ts +16 -0
  1695. package/dist/src/ui/hooks/useThemeCommand.js +74 -0
  1696. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  1697. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  1698. package/dist/src/ui/hooks/useTimer.js +58 -0
  1699. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  1700. package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
  1701. package/dist/src/ui/hooks/useTimer.test.js +119 -0
  1702. package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
  1703. package/dist/src/ui/hooks/useTips.d.ts +10 -0
  1704. package/dist/src/ui/hooks/useTips.js +18 -0
  1705. package/dist/src/ui/hooks/useTips.js.map +1 -0
  1706. package/dist/src/ui/hooks/useTips.test.d.ts +6 -0
  1707. package/dist/src/ui/hooks/useTips.test.js +33 -0
  1708. package/dist/src/ui/hooks/useTips.test.js.map +1 -0
  1709. package/dist/src/ui/hooks/useToolExecutionScheduler.d.ts +30 -0
  1710. package/dist/src/ui/hooks/useToolExecutionScheduler.js +113 -0
  1711. package/dist/src/ui/hooks/useToolExecutionScheduler.js.map +1 -0
  1712. package/dist/src/ui/hooks/useToolExecutionScheduler.test.d.ts +6 -0
  1713. package/dist/src/ui/hooks/useToolExecutionScheduler.test.js +296 -0
  1714. package/dist/src/ui/hooks/useToolExecutionScheduler.test.js.map +1 -0
  1715. package/dist/src/ui/hooks/useToolScheduler.d.ts +29 -0
  1716. package/dist/src/ui/hooks/useToolScheduler.js +30 -0
  1717. package/dist/src/ui/hooks/useToolScheduler.js.map +1 -0
  1718. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
  1719. package/dist/src/ui/hooks/useToolScheduler.test.js +881 -0
  1720. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
  1721. package/dist/src/ui/hooks/useToolSchedulerFacade.test.d.ts +6 -0
  1722. package/dist/src/ui/hooks/useToolSchedulerFacade.test.js +45 -0
  1723. package/dist/src/ui/hooks/useToolSchedulerFacade.test.js.map +1 -0
  1724. package/dist/src/ui/hooks/useTurnActivityMonitor.d.ts +16 -0
  1725. package/dist/src/ui/hooks/useTurnActivityMonitor.js +49 -0
  1726. package/dist/src/ui/hooks/useTurnActivityMonitor.js.map +1 -0
  1727. package/dist/src/ui/hooks/useTurnActivityMonitor.test.d.ts +6 -0
  1728. package/dist/src/ui/hooks/useTurnActivityMonitor.test.js +97 -0
  1729. package/dist/src/ui/hooks/useTurnActivityMonitor.test.js.map +1 -0
  1730. package/dist/src/ui/hooks/vim.d.ts +28 -0
  1731. package/dist/src/ui/hooks/vim.js +642 -0
  1732. package/dist/src/ui/hooks/vim.js.map +1 -0
  1733. package/dist/src/ui/hooks/vim.test.d.ts +6 -0
  1734. package/dist/src/ui/hooks/vim.test.js +1278 -0
  1735. package/dist/src/ui/hooks/vim.test.js.map +1 -0
  1736. package/dist/src/ui/keyMatchers.d.ts +27 -0
  1737. package/dist/src/ui/keyMatchers.js +45 -0
  1738. package/dist/src/ui/keyMatchers.js.map +1 -0
  1739. package/dist/src/ui/keyMatchers.test.d.ts +6 -0
  1740. package/dist/src/ui/keyMatchers.test.js +383 -0
  1741. package/dist/src/ui/keyMatchers.test.js.map +1 -0
  1742. package/dist/src/ui/layouts/DefaultAppLayout.d.ts +7 -0
  1743. package/dist/src/ui/layouts/DefaultAppLayout.js +24 -0
  1744. package/dist/src/ui/layouts/DefaultAppLayout.js.map +1 -0
  1745. package/dist/src/ui/layouts/ScreenReaderAppLayout.d.ts +7 -0
  1746. package/dist/src/ui/layouts/ScreenReaderAppLayout.js +17 -0
  1747. package/dist/src/ui/layouts/ScreenReaderAppLayout.js.map +1 -0
  1748. package/dist/src/ui/noninteractive/nonInteractiveUi.d.ts +12 -0
  1749. package/dist/src/ui/noninteractive/nonInteractiveUi.js +30 -0
  1750. package/dist/src/ui/noninteractive/nonInteractiveUi.js.map +1 -0
  1751. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  1752. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +42 -0
  1753. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  1754. package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.d.ts +6 -0
  1755. package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js +121 -0
  1756. package/dist/src/ui/privacy/CloudFreePrivacyNotice.test.js.map +1 -0
  1757. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  1758. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +18 -0
  1759. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  1760. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.d.ts +6 -0
  1761. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js +34 -0
  1762. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.test.js.map +1 -0
  1763. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  1764. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +18 -0
  1765. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  1766. package/dist/src/ui/privacy/GeminiPrivacyNotice.test.d.ts +6 -0
  1767. package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js +34 -0
  1768. package/dist/src/ui/privacy/GeminiPrivacyNotice.test.js.map +1 -0
  1769. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  1770. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  1771. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  1772. package/dist/src/ui/privacy/PrivacyNotice.test.d.ts +6 -0
  1773. package/dist/src/ui/privacy/PrivacyNotice.test.js +62 -0
  1774. package/dist/src/ui/privacy/PrivacyNotice.test.js.map +1 -0
  1775. package/dist/src/ui/semantic-colors.d.ts +7 -0
  1776. package/dist/src/ui/semantic-colors.js +24 -0
  1777. package/dist/src/ui/semantic-colors.js.map +1 -0
  1778. package/dist/src/ui/state/extensions.d.ts +67 -0
  1779. package/dist/src/ui/state/extensions.js +97 -0
  1780. package/dist/src/ui/state/extensions.js.map +1 -0
  1781. package/dist/src/ui/state/extensions.test.d.ts +6 -0
  1782. package/dist/src/ui/state/extensions.test.js +219 -0
  1783. package/dist/src/ui/state/extensions.test.js.map +1 -0
  1784. package/dist/src/ui/textConstants.d.ts +13 -0
  1785. package/dist/src/ui/textConstants.js +14 -0
  1786. package/dist/src/ui/textConstants.js.map +1 -0
  1787. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  1788. package/dist/src/ui/themes/ansi-light.js +143 -0
  1789. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  1790. package/dist/src/ui/themes/ansi.d.ts +7 -0
  1791. package/dist/src/ui/themes/ansi.js +153 -0
  1792. package/dist/src/ui/themes/ansi.js.map +1 -0
  1793. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  1794. package/dist/src/ui/themes/atom-one-dark.js +140 -0
  1795. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  1796. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  1797. package/dist/src/ui/themes/ayu-light.js +132 -0
  1798. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  1799. package/dist/src/ui/themes/ayu.d.ts +7 -0
  1800. package/dist/src/ui/themes/ayu.js +106 -0
  1801. package/dist/src/ui/themes/ayu.js.map +1 -0
  1802. package/dist/src/ui/themes/color-utils.d.ts +23 -0
  1803. package/dist/src/ui/themes/color-utils.js +250 -0
  1804. package/dist/src/ui/themes/color-utils.js.map +1 -0
  1805. package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
  1806. package/dist/src/ui/themes/color-utils.test.js +245 -0
  1807. package/dist/src/ui/themes/color-utils.test.js.map +1 -0
  1808. package/dist/src/ui/themes/default-light.d.ts +7 -0
  1809. package/dist/src/ui/themes/default-light.js +100 -0
  1810. package/dist/src/ui/themes/default-light.js.map +1 -0
  1811. package/dist/src/ui/themes/default.d.ts +7 -0
  1812. package/dist/src/ui/themes/default.js +143 -0
  1813. package/dist/src/ui/themes/default.js.map +1 -0
  1814. package/dist/src/ui/themes/dracula.d.ts +7 -0
  1815. package/dist/src/ui/themes/dracula.js +117 -0
  1816. package/dist/src/ui/themes/dracula.js.map +1 -0
  1817. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  1818. package/dist/src/ui/themes/github-dark.js +140 -0
  1819. package/dist/src/ui/themes/github-dark.js.map +1 -0
  1820. package/dist/src/ui/themes/github-light.d.ts +7 -0
  1821. package/dist/src/ui/themes/github-light.js +142 -0
  1822. package/dist/src/ui/themes/github-light.js.map +1 -0
  1823. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  1824. package/dist/src/ui/themes/googlecode.js +139 -0
  1825. package/dist/src/ui/themes/googlecode.js.map +1 -0
  1826. package/dist/src/ui/themes/holiday.d.ts +7 -0
  1827. package/dist/src/ui/themes/holiday.js +162 -0
  1828. package/dist/src/ui/themes/holiday.js.map +1 -0
  1829. package/dist/src/ui/themes/no-color.d.ts +7 -0
  1830. package/dist/src/ui/themes/no-color.js +118 -0
  1831. package/dist/src/ui/themes/no-color.js.map +1 -0
  1832. package/dist/src/ui/themes/semantic-tokens.d.ts +39 -0
  1833. package/dist/src/ui/themes/semantic-tokens.js +100 -0
  1834. package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
  1835. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  1836. package/dist/src/ui/themes/shades-of-purple.js +306 -0
  1837. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  1838. package/dist/src/ui/themes/theme-manager.d.ts +71 -0
  1839. package/dist/src/ui/themes/theme-manager.js +271 -0
  1840. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  1841. package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
  1842. package/dist/src/ui/themes/theme-manager.test.js +150 -0
  1843. package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
  1844. package/dist/src/ui/themes/theme.d.ts +145 -0
  1845. package/dist/src/ui/themes/theme.js +420 -0
  1846. package/dist/src/ui/themes/theme.js.map +1 -0
  1847. package/dist/src/ui/themes/theme.test.d.ts +6 -0
  1848. package/dist/src/ui/themes/theme.test.js +174 -0
  1849. package/dist/src/ui/themes/theme.test.js.map +1 -0
  1850. package/dist/src/ui/themes/xcode.d.ts +7 -0
  1851. package/dist/src/ui/themes/xcode.js +147 -0
  1852. package/dist/src/ui/themes/xcode.js.map +1 -0
  1853. package/dist/src/ui/types.d.ts +335 -0
  1854. package/dist/src/ui/types.js +70 -0
  1855. package/dist/src/ui/types.js.map +1 -0
  1856. package/dist/src/ui/utils/CodeColorizer.d.ts +25 -0
  1857. package/dist/src/ui/utils/CodeColorizer.js +123 -0
  1858. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  1859. package/dist/src/ui/utils/CodeColorizer.test.d.ts +6 -0
  1860. package/dist/src/ui/utils/CodeColorizer.test.js +38 -0
  1861. package/dist/src/ui/utils/CodeColorizer.test.js.map +1 -0
  1862. package/dist/src/ui/utils/ConsolePatcher.d.ts +25 -0
  1863. package/dist/src/ui/utils/ConsolePatcher.js +50 -0
  1864. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  1865. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +17 -0
  1866. package/dist/src/ui/utils/InlineMarkdownRenderer.js +113 -0
  1867. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  1868. package/dist/src/ui/utils/InlineMarkdownRenderer.test.d.ts +6 -0
  1869. package/dist/src/ui/utils/InlineMarkdownRenderer.test.js +21 -0
  1870. package/dist/src/ui/utils/InlineMarkdownRenderer.test.js.map +1 -0
  1871. package/dist/src/ui/utils/MarkdownDisplay.d.ts +15 -0
  1872. package/dist/src/ui/utils/MarkdownDisplay.js +242 -0
  1873. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  1874. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
  1875. package/dist/src/ui/utils/MarkdownDisplay.test.js +159 -0
  1876. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
  1877. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  1878. package/dist/src/ui/utils/TableRenderer.js +84 -0
  1879. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  1880. package/dist/src/ui/utils/clipboardUtils.d.ts +47 -0
  1881. package/dist/src/ui/utils/clipboardUtils.js +432 -0
  1882. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  1883. package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
  1884. package/dist/src/ui/utils/clipboardUtils.test.js +354 -0
  1885. package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
  1886. package/dist/src/ui/utils/clipboardUtils.windows.test.d.ts +6 -0
  1887. package/dist/src/ui/utils/clipboardUtils.windows.test.js +52 -0
  1888. package/dist/src/ui/utils/clipboardUtils.windows.test.js.map +1 -0
  1889. package/dist/src/ui/utils/commandUtils.d.ts +36 -0
  1890. package/dist/src/ui/utils/commandUtils.js +245 -0
  1891. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  1892. package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
  1893. package/dist/src/ui/utils/commandUtils.test.js +479 -0
  1894. package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
  1895. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  1896. package/dist/src/ui/utils/computeStats.js +62 -0
  1897. package/dist/src/ui/utils/computeStats.js.map +1 -0
  1898. package/dist/src/ui/utils/computeStats.test.d.ts +6 -0
  1899. package/dist/src/ui/utils/computeStats.test.js +271 -0
  1900. package/dist/src/ui/utils/computeStats.test.js.map +1 -0
  1901. package/dist/src/ui/utils/directoryUtils.d.ts +24 -0
  1902. package/dist/src/ui/utils/directoryUtils.js +125 -0
  1903. package/dist/src/ui/utils/directoryUtils.js.map +1 -0
  1904. package/dist/src/ui/utils/directoryUtils.test.d.ts +6 -0
  1905. package/dist/src/ui/utils/directoryUtils.test.js +244 -0
  1906. package/dist/src/ui/utils/directoryUtils.test.js.map +1 -0
  1907. package/dist/src/ui/utils/displayUtils.d.ts +18 -0
  1908. package/dist/src/ui/utils/displayUtils.js +27 -0
  1909. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  1910. package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
  1911. package/dist/src/ui/utils/displayUtils.test.js +61 -0
  1912. package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
  1913. package/dist/src/ui/utils/formatters.d.ts +22 -0
  1914. package/dist/src/ui/utils/formatters.js +81 -0
  1915. package/dist/src/ui/utils/formatters.js.map +1 -0
  1916. package/dist/src/ui/utils/formatters.test.d.ts +6 -0
  1917. package/dist/src/ui/utils/formatters.test.js +124 -0
  1918. package/dist/src/ui/utils/formatters.test.js.map +1 -0
  1919. package/dist/src/ui/utils/highlight.d.ts +12 -0
  1920. package/dist/src/ui/utils/highlight.js +115 -0
  1921. package/dist/src/ui/utils/highlight.js.map +1 -0
  1922. package/dist/src/ui/utils/highlight.test.d.ts +6 -0
  1923. package/dist/src/ui/utils/highlight.test.js +198 -0
  1924. package/dist/src/ui/utils/highlight.test.js.map +1 -0
  1925. package/dist/src/ui/utils/historyExportUtils.d.ts +21 -0
  1926. package/dist/src/ui/utils/historyExportUtils.js +59 -0
  1927. package/dist/src/ui/utils/historyExportUtils.js.map +1 -0
  1928. package/dist/src/ui/utils/input.d.ts +17 -0
  1929. package/dist/src/ui/utils/input.js +51 -0
  1930. package/dist/src/ui/utils/input.js.map +1 -0
  1931. package/dist/src/ui/utils/input.test.d.ts +6 -0
  1932. package/dist/src/ui/utils/input.test.js +44 -0
  1933. package/dist/src/ui/utils/input.test.js.map +1 -0
  1934. package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
  1935. package/dist/src/ui/utils/isNarrowWidth.js +9 -0
  1936. package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
  1937. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  1938. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  1939. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  1940. package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
  1941. package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
  1942. package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
  1943. package/dist/src/ui/utils/mouse.d.ts +32 -0
  1944. package/dist/src/ui/utils/mouse.js +181 -0
  1945. package/dist/src/ui/utils/mouse.js.map +1 -0
  1946. package/dist/src/ui/utils/mouse.test.d.ts +6 -0
  1947. package/dist/src/ui/utils/mouse.test.js +136 -0
  1948. package/dist/src/ui/utils/mouse.test.js.map +1 -0
  1949. package/dist/src/ui/utils/rewindFileOps.d.ts +47 -0
  1950. package/dist/src/ui/utils/rewindFileOps.js +190 -0
  1951. package/dist/src/ui/utils/rewindFileOps.js.map +1 -0
  1952. package/dist/src/ui/utils/rewindFileOps.test.d.ts +6 -0
  1953. package/dist/src/ui/utils/rewindFileOps.test.js +375 -0
  1954. package/dist/src/ui/utils/rewindFileOps.test.js.map +1 -0
  1955. package/dist/src/ui/utils/terminalCapabilityManager.d.ts +41 -0
  1956. package/dist/src/ui/utils/terminalCapabilityManager.js +209 -0
  1957. package/dist/src/ui/utils/terminalCapabilityManager.js.map +1 -0
  1958. package/dist/src/ui/utils/terminalCapabilityManager.test.d.ts +6 -0
  1959. package/dist/src/ui/utils/terminalCapabilityManager.test.js +221 -0
  1960. package/dist/src/ui/utils/terminalCapabilityManager.test.js.map +1 -0
  1961. package/dist/src/ui/utils/terminalSetup.d.ts +34 -0
  1962. package/dist/src/ui/utils/terminalSetup.js +305 -0
  1963. package/dist/src/ui/utils/terminalSetup.js.map +1 -0
  1964. package/dist/src/ui/utils/terminalSetup.test.d.ts +6 -0
  1965. package/dist/src/ui/utils/terminalSetup.test.js +145 -0
  1966. package/dist/src/ui/utils/terminalSetup.test.js.map +1 -0
  1967. package/dist/src/ui/utils/textOutput.d.ts +27 -0
  1968. package/dist/src/ui/utils/textOutput.js +53 -0
  1969. package/dist/src/ui/utils/textOutput.js.map +1 -0
  1970. package/dist/src/ui/utils/textOutput.test.d.ts +6 -0
  1971. package/dist/src/ui/utils/textOutput.test.js +79 -0
  1972. package/dist/src/ui/utils/textOutput.test.js.map +1 -0
  1973. package/dist/src/ui/utils/textUtils.d.ts +47 -0
  1974. package/dist/src/ui/utils/textUtils.js +213 -0
  1975. package/dist/src/ui/utils/textUtils.js.map +1 -0
  1976. package/dist/src/ui/utils/textUtils.test.d.ts +6 -0
  1977. package/dist/src/ui/utils/textUtils.test.js +168 -0
  1978. package/dist/src/ui/utils/textUtils.test.js.map +1 -0
  1979. package/dist/src/ui/utils/ui-sizing.d.ts +7 -0
  1980. package/dist/src/ui/utils/ui-sizing.js +30 -0
  1981. package/dist/src/ui/utils/ui-sizing.js.map +1 -0
  1982. package/dist/src/ui/utils/ui-sizing.test.d.ts +6 -0
  1983. package/dist/src/ui/utils/ui-sizing.test.js +56 -0
  1984. package/dist/src/ui/utils/ui-sizing.test.js.map +1 -0
  1985. package/dist/src/ui/utils/updateCheck.d.ts +19 -0
  1986. package/dist/src/ui/utils/updateCheck.js +86 -0
  1987. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  1988. package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
  1989. package/dist/src/ui/utils/updateCheck.test.js +134 -0
  1990. package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
  1991. package/dist/src/utils/activityLogger.d.ts +47 -0
  1992. package/dist/src/utils/activityLogger.js +297 -0
  1993. package/dist/src/utils/activityLogger.js.map +1 -0
  1994. package/dist/src/utils/agentSettings.d.ts +31 -0
  1995. package/dist/src/utils/agentSettings.js +102 -0
  1996. package/dist/src/utils/agentSettings.js.map +1 -0
  1997. package/dist/src/utils/agentUtils.d.ts +15 -0
  1998. package/dist/src/utils/agentUtils.js +50 -0
  1999. package/dist/src/utils/agentUtils.js.map +1 -0
  2000. package/dist/src/utils/agentUtils.test.d.ts +6 -0
  2001. package/dist/src/utils/agentUtils.test.js +121 -0
  2002. package/dist/src/utils/agentUtils.test.js.map +1 -0
  2003. package/dist/src/utils/checks.d.ts +19 -0
  2004. package/dist/src/utils/checks.js +24 -0
  2005. package/dist/src/utils/checks.js.map +1 -0
  2006. package/dist/src/utils/checks.test.d.ts +6 -0
  2007. package/dist/src/utils/checks.test.js +29 -0
  2008. package/dist/src/utils/checks.test.js.map +1 -0
  2009. package/dist/src/utils/cleanup.d.ts +21 -0
  2010. package/dist/src/utils/cleanup.js +101 -0
  2011. package/dist/src/utils/cleanup.js.map +1 -0
  2012. package/dist/src/utils/cleanup.test.d.ts +6 -0
  2013. package/dist/src/utils/cleanup.test.js +92 -0
  2014. package/dist/src/utils/cleanup.test.js.map +1 -0
  2015. package/dist/src/utils/commands.d.ts +20 -0
  2016. package/dist/src/utils/commands.js +53 -0
  2017. package/dist/src/utils/commands.js.map +1 -0
  2018. package/dist/src/utils/commands.test.d.ts +6 -0
  2019. package/dist/src/utils/commands.test.js +115 -0
  2020. package/dist/src/utils/commands.test.js.map +1 -0
  2021. package/dist/src/utils/commentJson.d.ts +9 -0
  2022. package/dist/src/utils/commentJson.js +130 -0
  2023. package/dist/src/utils/commentJson.js.map +1 -0
  2024. package/dist/src/utils/commentJson.test.d.ts +6 -0
  2025. package/dist/src/utils/commentJson.test.js +308 -0
  2026. package/dist/src/utils/commentJson.test.js.map +1 -0
  2027. package/dist/src/utils/deepMerge.d.ts +9 -0
  2028. package/dist/src/utils/deepMerge.js +63 -0
  2029. package/dist/src/utils/deepMerge.js.map +1 -0
  2030. package/dist/src/utils/deepMerge.test.d.ts +6 -0
  2031. package/dist/src/utils/deepMerge.test.js +201 -0
  2032. package/dist/src/utils/deepMerge.test.js.map +1 -0
  2033. package/dist/src/utils/dialogScopeUtils.d.ts +25 -0
  2034. package/dist/src/utils/dialogScopeUtils.js +50 -0
  2035. package/dist/src/utils/dialogScopeUtils.js.map +1 -0
  2036. package/dist/src/utils/dialogScopeUtils.test.d.ts +6 -0
  2037. package/dist/src/utils/dialogScopeUtils.test.js +81 -0
  2038. package/dist/src/utils/dialogScopeUtils.test.js.map +1 -0
  2039. package/dist/src/utils/envVarResolver.d.ts +39 -0
  2040. package/dist/src/utils/envVarResolver.js +100 -0
  2041. package/dist/src/utils/envVarResolver.js.map +1 -0
  2042. package/dist/src/utils/envVarResolver.test.d.ts +6 -0
  2043. package/dist/src/utils/envVarResolver.test.js +221 -0
  2044. package/dist/src/utils/envVarResolver.test.js.map +1 -0
  2045. package/dist/src/utils/errors.d.ts +33 -0
  2046. package/dist/src/utils/errors.js +185 -0
  2047. package/dist/src/utils/errors.js.map +1 -0
  2048. package/dist/src/utils/errors.test.d.ts +6 -0
  2049. package/dist/src/utils/errors.test.js +435 -0
  2050. package/dist/src/utils/errors.test.js.map +1 -0
  2051. package/dist/src/utils/events.d.ts +19 -0
  2052. package/dist/src/utils/events.js +15 -0
  2053. package/dist/src/utils/events.js.map +1 -0
  2054. package/dist/src/utils/events.test.d.ts +6 -0
  2055. package/dist/src/utils/events.test.js +24 -0
  2056. package/dist/src/utils/events.test.js.map +1 -0
  2057. package/dist/src/utils/gitUtils.d.ts +30 -0
  2058. package/dist/src/utils/gitUtils.js +90 -0
  2059. package/dist/src/utils/gitUtils.js.map +1 -0
  2060. package/dist/src/utils/gitUtils.test.d.ts +6 -0
  2061. package/dist/src/utils/gitUtils.test.js +113 -0
  2062. package/dist/src/utils/gitUtils.test.js.map +1 -0
  2063. package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
  2064. package/dist/src/utils/handleAutoUpdate.js +113 -0
  2065. package/dist/src/utils/handleAutoUpdate.js.map +1 -0
  2066. package/dist/src/utils/handleAutoUpdate.test.d.ts +6 -0
  2067. package/dist/src/utils/handleAutoUpdate.test.js +310 -0
  2068. package/dist/src/utils/handleAutoUpdate.test.js.map +1 -0
  2069. package/dist/src/utils/installationInfo.d.ts +24 -0
  2070. package/dist/src/utils/installationInfo.js +161 -0
  2071. package/dist/src/utils/installationInfo.js.map +1 -0
  2072. package/dist/src/utils/installationInfo.test.d.ts +6 -0
  2073. package/dist/src/utils/installationInfo.test.js +296 -0
  2074. package/dist/src/utils/installationInfo.test.js.map +1 -0
  2075. package/dist/src/utils/math.d.ts +13 -0
  2076. package/dist/src/utils/math.js +14 -0
  2077. package/dist/src/utils/math.js.map +1 -0
  2078. package/dist/src/utils/math.test.d.ts +6 -0
  2079. package/dist/src/utils/math.test.js +23 -0
  2080. package/dist/src/utils/math.test.js.map +1 -0
  2081. package/dist/src/utils/persistentState.d.ts +21 -0
  2082. package/dist/src/utils/persistentState.js +65 -0
  2083. package/dist/src/utils/persistentState.js.map +1 -0
  2084. package/dist/src/utils/persistentState.test.d.ts +6 -0
  2085. package/dist/src/utils/persistentState.test.js +68 -0
  2086. package/dist/src/utils/persistentState.test.js.map +1 -0
  2087. package/dist/src/utils/processUtils.d.ts +13 -0
  2088. package/dist/src/utils/processUtils.js +18 -0
  2089. package/dist/src/utils/processUtils.js.map +1 -0
  2090. package/dist/src/utils/processUtils.test.d.ts +6 -0
  2091. package/dist/src/utils/processUtils.test.js +20 -0
  2092. package/dist/src/utils/processUtils.test.js.map +1 -0
  2093. package/dist/src/utils/readStdin.d.ts +6 -0
  2094. package/dist/src/utils/readStdin.js +68 -0
  2095. package/dist/src/utils/readStdin.js.map +1 -0
  2096. package/dist/src/utils/readStdin.test.d.ts +6 -0
  2097. package/dist/src/utils/readStdin.test.js +117 -0
  2098. package/dist/src/utils/readStdin.test.js.map +1 -0
  2099. package/dist/src/utils/readStdin_safety.test.d.ts +6 -0
  2100. package/dist/src/utils/readStdin_safety.test.js +68 -0
  2101. package/dist/src/utils/readStdin_safety.test.js.map +1 -0
  2102. package/dist/src/utils/relaunch.d.ts +8 -0
  2103. package/dist/src/utils/relaunch.js +62 -0
  2104. package/dist/src/utils/relaunch.js.map +1 -0
  2105. package/dist/src/utils/relaunch.test.d.ts +6 -0
  2106. package/dist/src/utils/relaunch.test.js +279 -0
  2107. package/dist/src/utils/relaunch.test.js.map +1 -0
  2108. package/dist/src/utils/resolvePath.d.ts +6 -0
  2109. package/dist/src/utils/resolvePath.js +21 -0
  2110. package/dist/src/utils/resolvePath.js.map +1 -0
  2111. package/dist/src/utils/resolvePath.test.d.ts +6 -0
  2112. package/dist/src/utils/resolvePath.test.js +34 -0
  2113. package/dist/src/utils/resolvePath.test.js.map +1 -0
  2114. package/dist/src/utils/sandbox-macos-permissive-closed.sb +32 -0
  2115. package/dist/src/utils/sandbox-macos-permissive-open.sb +27 -0
  2116. package/dist/src/utils/sandbox-macos-permissive-proxied.sb +37 -0
  2117. package/dist/src/utils/sandbox-macos-restrictive-closed.sb +93 -0
  2118. package/dist/src/utils/sandbox-macos-restrictive-open.sb +96 -0
  2119. package/dist/src/utils/sandbox-macos-restrictive-proxied.sb +98 -0
  2120. package/dist/src/utils/sandbox.d.ts +7 -0
  2121. package/dist/src/utils/sandbox.js +626 -0
  2122. package/dist/src/utils/sandbox.js.map +1 -0
  2123. package/dist/src/utils/sandbox.test.d.ts +6 -0
  2124. package/dist/src/utils/sandbox.test.js +314 -0
  2125. package/dist/src/utils/sandbox.test.js.map +1 -0
  2126. package/dist/src/utils/sandboxUtils.d.ts +14 -0
  2127. package/dist/src/utils/sandboxUtils.js +121 -0
  2128. package/dist/src/utils/sandboxUtils.js.map +1 -0
  2129. package/dist/src/utils/sandboxUtils.test.d.ts +6 -0
  2130. package/dist/src/utils/sandboxUtils.test.js +122 -0
  2131. package/dist/src/utils/sandboxUtils.test.js.map +1 -0
  2132. package/dist/src/utils/sessionCleanup.d.ts +22 -0
  2133. package/dist/src/utils/sessionCleanup.integration.test.d.ts +6 -0
  2134. package/dist/src/utils/sessionCleanup.integration.test.js +182 -0
  2135. package/dist/src/utils/sessionCleanup.integration.test.js.map +1 -0
  2136. package/dist/src/utils/sessionCleanup.js +226 -0
  2137. package/dist/src/utils/sessionCleanup.js.map +1 -0
  2138. package/dist/src/utils/sessionCleanup.test.d.ts +6 -0
  2139. package/dist/src/utils/sessionCleanup.test.js +1298 -0
  2140. package/dist/src/utils/sessionCleanup.test.js.map +1 -0
  2141. package/dist/src/utils/sessionUtils.d.ts +170 -0
  2142. package/dist/src/utils/sessionUtils.js +334 -0
  2143. package/dist/src/utils/sessionUtils.js.map +1 -0
  2144. package/dist/src/utils/sessionUtils.test.d.ts +6 -0
  2145. package/dist/src/utils/sessionUtils.test.js +503 -0
  2146. package/dist/src/utils/sessionUtils.test.js.map +1 -0
  2147. package/dist/src/utils/sessions.d.ts +8 -0
  2148. package/dist/src/utils/sessions.js +69 -0
  2149. package/dist/src/utils/sessions.js.map +1 -0
  2150. package/dist/src/utils/sessions.test.d.ts +6 -0
  2151. package/dist/src/utils/sessions.test.js +581 -0
  2152. package/dist/src/utils/sessions.test.js.map +1 -0
  2153. package/dist/src/utils/settingsUtils.d.ts +151 -0
  2154. package/dist/src/utils/settingsUtils.js +352 -0
  2155. package/dist/src/utils/settingsUtils.js.map +1 -0
  2156. package/dist/src/utils/settingsUtils.test.d.ts +6 -0
  2157. package/dist/src/utils/settingsUtils.test.js +808 -0
  2158. package/dist/src/utils/settingsUtils.test.js.map +1 -0
  2159. package/dist/src/utils/skillSettings.d.ts +33 -0
  2160. package/dist/src/utils/skillSettings.js +101 -0
  2161. package/dist/src/utils/skillSettings.js.map +1 -0
  2162. package/dist/src/utils/skillUtils.d.ts +30 -0
  2163. package/dist/src/utils/skillUtils.js +146 -0
  2164. package/dist/src/utils/skillUtils.js.map +1 -0
  2165. package/dist/src/utils/skillUtils.test.d.ts +6 -0
  2166. package/dist/src/utils/skillUtils.test.js +70 -0
  2167. package/dist/src/utils/skillUtils.test.js.map +1 -0
  2168. package/dist/src/utils/spawnWrapper.d.ts +7 -0
  2169. package/dist/src/utils/spawnWrapper.js +8 -0
  2170. package/dist/src/utils/spawnWrapper.js.map +1 -0
  2171. package/dist/src/utils/startupWarnings.d.ts +6 -0
  2172. package/dist/src/utils/startupWarnings.js +40 -0
  2173. package/dist/src/utils/startupWarnings.js.map +1 -0
  2174. package/dist/src/utils/startupWarnings.test.d.ts +6 -0
  2175. package/dist/src/utils/startupWarnings.test.js +61 -0
  2176. package/dist/src/utils/startupWarnings.test.js.map +1 -0
  2177. package/dist/src/utils/terminalTheme.d.ts +15 -0
  2178. package/dist/src/utils/terminalTheme.js +50 -0
  2179. package/dist/src/utils/terminalTheme.js.map +1 -0
  2180. package/dist/src/utils/updateEventEmitter.d.ts +11 -0
  2181. package/dist/src/utils/updateEventEmitter.js +12 -0
  2182. package/dist/src/utils/updateEventEmitter.js.map +1 -0
  2183. package/dist/src/utils/updateEventEmitter.test.d.ts +6 -0
  2184. package/dist/src/utils/updateEventEmitter.test.js +18 -0
  2185. package/dist/src/utils/updateEventEmitter.test.js.map +1 -0
  2186. package/dist/src/utils/userStartupWarnings.d.ts +7 -0
  2187. package/dist/src/utils/userStartupWarnings.js +64 -0
  2188. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  2189. package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
  2190. package/dist/src/utils/userStartupWarnings.test.js +98 -0
  2191. package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
  2192. package/dist/src/utils/windowTitle.d.ts +22 -0
  2193. package/dist/src/utils/windowTitle.js +84 -0
  2194. package/dist/src/utils/windowTitle.js.map +1 -0
  2195. package/dist/src/utils/windowTitle.test.d.ts +6 -0
  2196. package/dist/src/utils/windowTitle.test.js +216 -0
  2197. package/dist/src/utils/windowTitle.test.js.map +1 -0
  2198. package/dist/src/validateNonInterActiveAuth.d.ts +9 -0
  2199. package/dist/src/validateNonInterActiveAuth.js +58 -0
  2200. package/dist/src/validateNonInterActiveAuth.js.map +1 -0
  2201. package/dist/src/validateNonInterActiveAuth.test.d.ts +6 -0
  2202. package/dist/src/validateNonInterActiveAuth.test.js +319 -0
  2203. package/dist/src/validateNonInterActiveAuth.test.js.map +1 -0
  2204. package/dist/src/zed-integration/fileSystemService.d.ts +19 -0
  2205. package/dist/src/zed-integration/fileSystemService.js +41 -0
  2206. package/dist/src/zed-integration/fileSystemService.js.map +1 -0
  2207. package/dist/src/zed-integration/fileSystemService.test.d.ts +6 -0
  2208. package/dist/src/zed-integration/fileSystemService.test.js +88 -0
  2209. package/dist/src/zed-integration/fileSystemService.test.js.map +1 -0
  2210. package/dist/src/zed-integration/zedIntegration.d.ts +39 -0
  2211. package/dist/src/zed-integration/zedIntegration.js +774 -0
  2212. package/dist/src/zed-integration/zedIntegration.js.map +1 -0
  2213. package/dist/src/zed-integration/zedIntegration.test.d.ts +6 -0
  2214. package/dist/src/zed-integration/zedIntegration.test.js +625 -0
  2215. package/dist/src/zed-integration/zedIntegration.test.js.map +1 -0
  2216. package/dist/tsconfig.tsbuildinfo +1 -0
  2217. package/package.json +95 -0
@@ -0,0 +1,2376 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { renderWithProviders, createMockSettings, } from '../../test-utils/render.js';
8
+ import { waitFor } from '../../test-utils/async.js';
9
+ import { act } from 'react';
10
+ import { InputPrompt } from './InputPrompt.js';
11
+ import { calculateTransformationsForLine, calculateTransformedLine, } from './shared/text-buffer.js';
12
+ import { ApprovalMode, debugLogger } from '@google/gemini-cli-core';
13
+ import * as path from 'node:path';
14
+ import { CommandKind } from '../commands/types.js';
15
+ import { describe, it, expect, beforeEach, vi, afterEach } from 'vitest';
16
+ import { useShellHistory } from '../hooks/useShellHistory.js';
17
+ import { useCommandCompletion, CompletionMode, } from '../hooks/useCommandCompletion.js';
18
+ import { useInputHistory } from '../hooks/useInputHistory.js';
19
+ import { useReverseSearchCompletion } from '../hooks/useReverseSearchCompletion.js';
20
+ import clipboardy from 'clipboardy';
21
+ import * as clipboardUtils from '../utils/clipboardUtils.js';
22
+ import { useKittyKeyboardProtocol } from '../hooks/useKittyKeyboardProtocol.js';
23
+ import { createMockCommandContext } from '../../test-utils/mockCommandContext.js';
24
+ import stripAnsi from 'strip-ansi';
25
+ import chalk from 'chalk';
26
+ import { StreamingState } from '../types.js';
27
+ import { terminalCapabilityManager } from '../utils/terminalCapabilityManager.js';
28
+ vi.mock('../hooks/useShellHistory.js');
29
+ vi.mock('../hooks/useCommandCompletion.js');
30
+ vi.mock('../hooks/useInputHistory.js');
31
+ vi.mock('../hooks/useReverseSearchCompletion.js');
32
+ vi.mock('clipboardy');
33
+ vi.mock('../utils/clipboardUtils.js');
34
+ vi.mock('../hooks/useKittyKeyboardProtocol.js');
35
+ const mockSlashCommands = [
36
+ {
37
+ name: 'clear',
38
+ kind: CommandKind.BUILT_IN,
39
+ description: 'Clear screen',
40
+ action: vi.fn(),
41
+ },
42
+ {
43
+ name: 'memory',
44
+ kind: CommandKind.BUILT_IN,
45
+ description: 'Manage memory',
46
+ subCommands: [
47
+ {
48
+ name: 'show',
49
+ kind: CommandKind.BUILT_IN,
50
+ description: 'Show memory',
51
+ action: vi.fn(),
52
+ },
53
+ {
54
+ name: 'add',
55
+ kind: CommandKind.BUILT_IN,
56
+ description: 'Add to memory',
57
+ action: vi.fn(),
58
+ },
59
+ {
60
+ name: 'refresh',
61
+ kind: CommandKind.BUILT_IN,
62
+ description: 'Refresh memory',
63
+ action: vi.fn(),
64
+ },
65
+ ],
66
+ },
67
+ {
68
+ name: 'chat',
69
+ description: 'Manage chats',
70
+ kind: CommandKind.BUILT_IN,
71
+ subCommands: [
72
+ {
73
+ name: 'resume',
74
+ description: 'Resume a chat',
75
+ kind: CommandKind.BUILT_IN,
76
+ action: vi.fn(),
77
+ completion: async () => ['fix-foo', 'fix-bar'],
78
+ },
79
+ ],
80
+ },
81
+ {
82
+ name: 'resume',
83
+ description: 'Browse and resume sessions',
84
+ kind: CommandKind.BUILT_IN,
85
+ action: vi.fn(),
86
+ },
87
+ ];
88
+ describe('InputPrompt', () => {
89
+ let props;
90
+ let mockShellHistory;
91
+ let mockCommandCompletion;
92
+ let mockInputHistory;
93
+ let mockReverseSearchCompletion;
94
+ let mockBuffer;
95
+ let mockCommandContext;
96
+ const mockedUseShellHistory = vi.mocked(useShellHistory);
97
+ const mockedUseCommandCompletion = vi.mocked(useCommandCompletion);
98
+ const mockedUseInputHistory = vi.mocked(useInputHistory);
99
+ const mockedUseReverseSearchCompletion = vi.mocked(useReverseSearchCompletion);
100
+ const mockedUseKittyKeyboardProtocol = vi.mocked(useKittyKeyboardProtocol);
101
+ const mockSetEmbeddedShellFocused = vi.fn();
102
+ const uiActions = {
103
+ setEmbeddedShellFocused: mockSetEmbeddedShellFocused,
104
+ };
105
+ beforeEach(() => {
106
+ vi.resetAllMocks();
107
+ vi.spyOn(terminalCapabilityManager, 'isKittyProtocolEnabled').mockReturnValue(true);
108
+ mockCommandContext = createMockCommandContext();
109
+ mockBuffer = {
110
+ text: '',
111
+ cursor: [0, 0],
112
+ lines: [''],
113
+ setText: vi.fn((newText) => {
114
+ mockBuffer.text = newText;
115
+ mockBuffer.lines = [newText];
116
+ mockBuffer.cursor = [0, newText.length];
117
+ mockBuffer.viewportVisualLines = [newText];
118
+ mockBuffer.allVisualLines = [newText];
119
+ mockBuffer.visualToLogicalMap = [[0, 0]];
120
+ }),
121
+ replaceRangeByOffset: vi.fn(),
122
+ viewportVisualLines: [''],
123
+ allVisualLines: [''],
124
+ visualCursor: [0, 0],
125
+ visualScrollRow: 0,
126
+ handleInput: vi.fn(),
127
+ move: vi.fn(),
128
+ moveToOffset: vi.fn((offset) => {
129
+ mockBuffer.cursor = [0, offset];
130
+ }),
131
+ moveToVisualPosition: vi.fn(),
132
+ killLineRight: vi.fn(),
133
+ killLineLeft: vi.fn(),
134
+ openInExternalEditor: vi.fn(),
135
+ newline: vi.fn(),
136
+ undo: vi.fn(),
137
+ redo: vi.fn(),
138
+ backspace: vi.fn(),
139
+ preferredCol: null,
140
+ selectionAnchor: null,
141
+ insert: vi.fn(),
142
+ del: vi.fn(),
143
+ replaceRange: vi.fn(),
144
+ deleteWordLeft: vi.fn(),
145
+ deleteWordRight: vi.fn(),
146
+ visualToLogicalMap: [[0, 0]],
147
+ visualToTransformedMap: [0],
148
+ transformationsByLine: [],
149
+ getOffset: vi.fn().mockReturnValue(0),
150
+ pastedContent: {},
151
+ };
152
+ mockShellHistory = {
153
+ history: [],
154
+ addCommandToHistory: vi.fn(),
155
+ getPreviousCommand: vi.fn().mockReturnValue(null),
156
+ getNextCommand: vi.fn().mockReturnValue(null),
157
+ resetHistoryPosition: vi.fn(),
158
+ };
159
+ mockedUseShellHistory.mockReturnValue(mockShellHistory);
160
+ mockCommandCompletion = {
161
+ suggestions: [],
162
+ activeSuggestionIndex: -1,
163
+ isLoadingSuggestions: false,
164
+ showSuggestions: false,
165
+ visibleStartIndex: 0,
166
+ isPerfectMatch: false,
167
+ navigateUp: vi.fn(),
168
+ navigateDown: vi.fn(),
169
+ resetCompletionState: vi.fn(),
170
+ setActiveSuggestionIndex: vi.fn(),
171
+ setShowSuggestions: vi.fn(),
172
+ handleAutocomplete: vi.fn(),
173
+ promptCompletion: {
174
+ text: '',
175
+ accept: vi.fn(),
176
+ clear: vi.fn(),
177
+ isLoading: false,
178
+ isActive: false,
179
+ markSelected: vi.fn(),
180
+ },
181
+ getCommandFromSuggestion: vi.fn().mockReturnValue(undefined),
182
+ slashCompletionRange: {
183
+ completionStart: -1,
184
+ completionEnd: -1,
185
+ getCommandFromSuggestion: vi.fn().mockReturnValue(undefined),
186
+ isArgumentCompletion: false,
187
+ leafCommand: null,
188
+ },
189
+ getCompletedText: vi.fn().mockReturnValue(null),
190
+ completionMode: CompletionMode.IDLE,
191
+ };
192
+ mockedUseCommandCompletion.mockReturnValue(mockCommandCompletion);
193
+ mockInputHistory = {
194
+ navigateUp: vi.fn(),
195
+ navigateDown: vi.fn(),
196
+ handleSubmit: vi.fn(),
197
+ };
198
+ mockedUseInputHistory.mockReturnValue(mockInputHistory);
199
+ mockReverseSearchCompletion = {
200
+ suggestions: [],
201
+ activeSuggestionIndex: -1,
202
+ visibleStartIndex: 0,
203
+ showSuggestions: false,
204
+ isLoadingSuggestions: false,
205
+ navigateUp: vi.fn(),
206
+ navigateDown: vi.fn(),
207
+ handleAutocomplete: vi.fn(),
208
+ resetCompletionState: vi.fn(),
209
+ };
210
+ mockedUseReverseSearchCompletion.mockReturnValue(mockReverseSearchCompletion);
211
+ mockedUseKittyKeyboardProtocol.mockReturnValue({
212
+ enabled: false,
213
+ checking: false,
214
+ });
215
+ vi.mocked(clipboardy.read).mockResolvedValue('');
216
+ props = {
217
+ buffer: mockBuffer,
218
+ onSubmit: vi.fn(),
219
+ userMessages: [],
220
+ onClearScreen: vi.fn(),
221
+ config: {
222
+ getProjectRoot: () => path.join('test', 'project'),
223
+ getTargetDir: () => path.join('test', 'project', 'src'),
224
+ getVimMode: () => false,
225
+ getWorkspaceContext: () => ({
226
+ getDirectories: () => ['/test/project/src'],
227
+ }),
228
+ },
229
+ slashCommands: mockSlashCommands,
230
+ commandContext: mockCommandContext,
231
+ shellModeActive: false,
232
+ setShellModeActive: vi.fn(),
233
+ approvalMode: ApprovalMode.DEFAULT,
234
+ inputWidth: 80,
235
+ suggestionsWidth: 80,
236
+ focus: true,
237
+ setQueueErrorMessage: vi.fn(),
238
+ streamingState: StreamingState.Idle,
239
+ setBannerVisible: vi.fn(),
240
+ };
241
+ });
242
+ it('should call shellHistory.getPreviousCommand on up arrow in shell mode', async () => {
243
+ props.shellModeActive = true;
244
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
245
+ uiActions,
246
+ });
247
+ await act(async () => {
248
+ stdin.write('\u001B[A');
249
+ });
250
+ await waitFor(() => expect(mockShellHistory.getPreviousCommand).toHaveBeenCalled());
251
+ unmount();
252
+ });
253
+ it('should call shellHistory.getNextCommand on down arrow in shell mode', async () => {
254
+ props.shellModeActive = true;
255
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
256
+ uiActions,
257
+ });
258
+ await act(async () => {
259
+ stdin.write('\u001B[B');
260
+ await waitFor(() => expect(mockShellHistory.getNextCommand).toHaveBeenCalled());
261
+ });
262
+ unmount();
263
+ });
264
+ it('should set the buffer text when a shell history command is retrieved', async () => {
265
+ props.shellModeActive = true;
266
+ vi.mocked(mockShellHistory.getPreviousCommand).mockReturnValue('previous command');
267
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
268
+ uiActions,
269
+ });
270
+ await act(async () => {
271
+ stdin.write('\u001B[A');
272
+ });
273
+ await waitFor(() => {
274
+ expect(mockShellHistory.getPreviousCommand).toHaveBeenCalled();
275
+ expect(props.buffer.setText).toHaveBeenCalledWith('previous command');
276
+ });
277
+ unmount();
278
+ });
279
+ it('should call shellHistory.addCommandToHistory on submit in shell mode', async () => {
280
+ props.shellModeActive = true;
281
+ props.buffer.setText('ls -l');
282
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
283
+ uiActions,
284
+ });
285
+ await act(async () => {
286
+ stdin.write('\r');
287
+ });
288
+ await waitFor(() => {
289
+ expect(mockShellHistory.addCommandToHistory).toHaveBeenCalledWith('ls -l');
290
+ expect(props.onSubmit).toHaveBeenCalledWith('ls -l');
291
+ });
292
+ unmount();
293
+ });
294
+ it('should NOT call shell history methods when not in shell mode', async () => {
295
+ props.buffer.setText('some text');
296
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
297
+ uiActions,
298
+ });
299
+ await act(async () => {
300
+ stdin.write('\u001B[A'); // Up arrow
301
+ });
302
+ await waitFor(() => expect(mockInputHistory.navigateUp).toHaveBeenCalled());
303
+ await act(async () => {
304
+ stdin.write('\u001B[B'); // Down arrow
305
+ });
306
+ await waitFor(() => expect(mockInputHistory.navigateDown).toHaveBeenCalled());
307
+ await act(async () => {
308
+ stdin.write('\r'); // Enter
309
+ });
310
+ await waitFor(() => expect(props.onSubmit).toHaveBeenCalledWith('some text'));
311
+ expect(mockShellHistory.getPreviousCommand).not.toHaveBeenCalled();
312
+ expect(mockShellHistory.getNextCommand).not.toHaveBeenCalled();
313
+ expect(mockShellHistory.addCommandToHistory).not.toHaveBeenCalled();
314
+ unmount();
315
+ });
316
+ it('should call completion.navigateUp for both up arrow and Ctrl+P when suggestions are showing', async () => {
317
+ mockedUseCommandCompletion.mockReturnValue({
318
+ ...mockCommandCompletion,
319
+ showSuggestions: true,
320
+ suggestions: [
321
+ { label: 'memory', value: 'memory' },
322
+ { label: 'memcache', value: 'memcache' },
323
+ ],
324
+ });
325
+ props.buffer.setText('/mem');
326
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
327
+ uiActions,
328
+ });
329
+ // Test up arrow
330
+ await act(async () => {
331
+ stdin.write('\u001B[A'); // Up arrow
332
+ });
333
+ await waitFor(() => expect(mockCommandCompletion.navigateUp).toHaveBeenCalledTimes(1));
334
+ await act(async () => {
335
+ stdin.write('\u0010'); // Ctrl+P
336
+ });
337
+ await waitFor(() => expect(mockCommandCompletion.navigateUp).toHaveBeenCalledTimes(2));
338
+ expect(mockCommandCompletion.navigateDown).not.toHaveBeenCalled();
339
+ unmount();
340
+ });
341
+ it('should call completion.navigateDown for both down arrow and Ctrl+N when suggestions are showing', async () => {
342
+ mockedUseCommandCompletion.mockReturnValue({
343
+ ...mockCommandCompletion,
344
+ showSuggestions: true,
345
+ suggestions: [
346
+ { label: 'memory', value: 'memory' },
347
+ { label: 'memcache', value: 'memcache' },
348
+ ],
349
+ });
350
+ props.buffer.setText('/mem');
351
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
352
+ uiActions,
353
+ });
354
+ // Test down arrow
355
+ await act(async () => {
356
+ stdin.write('\u001B[B'); // Down arrow
357
+ });
358
+ await waitFor(() => expect(mockCommandCompletion.navigateDown).toHaveBeenCalledTimes(1));
359
+ await act(async () => {
360
+ stdin.write('\u000E'); // Ctrl+N
361
+ });
362
+ await waitFor(() => expect(mockCommandCompletion.navigateDown).toHaveBeenCalledTimes(2));
363
+ expect(mockCommandCompletion.navigateUp).not.toHaveBeenCalled();
364
+ unmount();
365
+ });
366
+ it('should NOT call completion navigation when suggestions are not showing', async () => {
367
+ mockedUseCommandCompletion.mockReturnValue({
368
+ ...mockCommandCompletion,
369
+ showSuggestions: false,
370
+ });
371
+ props.buffer.setText('some text');
372
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
373
+ uiActions,
374
+ });
375
+ await act(async () => {
376
+ stdin.write('\u001B[A'); // Up arrow
377
+ });
378
+ await waitFor(() => expect(mockInputHistory.navigateUp).toHaveBeenCalled());
379
+ await act(async () => {
380
+ stdin.write('\u001B[B'); // Down arrow
381
+ });
382
+ await waitFor(() => expect(mockInputHistory.navigateDown).toHaveBeenCalled());
383
+ await act(async () => {
384
+ stdin.write('\u0010'); // Ctrl+P
385
+ });
386
+ await act(async () => {
387
+ stdin.write('\u000E'); // Ctrl+N
388
+ });
389
+ await waitFor(() => {
390
+ expect(mockCommandCompletion.navigateUp).not.toHaveBeenCalled();
391
+ expect(mockCommandCompletion.navigateDown).not.toHaveBeenCalled();
392
+ });
393
+ unmount();
394
+ });
395
+ describe('clipboard image paste', () => {
396
+ beforeEach(() => {
397
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
398
+ vi.mocked(clipboardUtils.saveClipboardImage).mockResolvedValue(null);
399
+ vi.mocked(clipboardUtils.cleanupOldClipboardImages).mockResolvedValue(undefined);
400
+ });
401
+ it('should handle Ctrl+V when clipboard has an image', async () => {
402
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(true);
403
+ vi.mocked(clipboardUtils.saveClipboardImage).mockResolvedValue('/test/.gemini-clipboard/clipboard-123.png');
404
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
405
+ // Send Ctrl+V
406
+ await act(async () => {
407
+ stdin.write('\x16'); // Ctrl+V
408
+ });
409
+ await waitFor(() => {
410
+ expect(clipboardUtils.clipboardHasImage).toHaveBeenCalled();
411
+ expect(clipboardUtils.saveClipboardImage).toHaveBeenCalledWith(props.config.getTargetDir());
412
+ expect(clipboardUtils.cleanupOldClipboardImages).toHaveBeenCalledWith(props.config.getTargetDir());
413
+ expect(mockBuffer.replaceRangeByOffset).toHaveBeenCalled();
414
+ });
415
+ unmount();
416
+ });
417
+ it('should not insert anything when clipboard has no image', async () => {
418
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
419
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
420
+ await act(async () => {
421
+ stdin.write('\x16'); // Ctrl+V
422
+ });
423
+ await waitFor(() => {
424
+ expect(clipboardUtils.clipboardHasImage).toHaveBeenCalled();
425
+ });
426
+ expect(clipboardUtils.saveClipboardImage).not.toHaveBeenCalled();
427
+ expect(mockBuffer.setText).not.toHaveBeenCalled();
428
+ unmount();
429
+ });
430
+ it('should handle image save failure gracefully', async () => {
431
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(true);
432
+ vi.mocked(clipboardUtils.saveClipboardImage).mockResolvedValue(null);
433
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
434
+ await act(async () => {
435
+ stdin.write('\x16'); // Ctrl+V
436
+ });
437
+ await waitFor(() => {
438
+ expect(clipboardUtils.saveClipboardImage).toHaveBeenCalled();
439
+ });
440
+ expect(mockBuffer.setText).not.toHaveBeenCalled();
441
+ unmount();
442
+ });
443
+ it('should insert image path at cursor position with proper spacing', async () => {
444
+ const imagePath = path.join('test', '.gemini-clipboard', 'clipboard-456.png');
445
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(true);
446
+ vi.mocked(clipboardUtils.saveClipboardImage).mockResolvedValue(imagePath);
447
+ // Set initial text and cursor position
448
+ mockBuffer.text = 'Hello world';
449
+ mockBuffer.cursor = [0, 5]; // Cursor after "Hello"
450
+ vi.mocked(mockBuffer.getOffset).mockReturnValue(5);
451
+ mockBuffer.lines = ['Hello world'];
452
+ mockBuffer.replaceRangeByOffset = vi.fn();
453
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
454
+ await act(async () => {
455
+ stdin.write('\x16'); // Ctrl+V
456
+ });
457
+ await waitFor(() => {
458
+ // Should insert at cursor position with spaces
459
+ expect(mockBuffer.replaceRangeByOffset).toHaveBeenCalled();
460
+ });
461
+ // Get the actual call to see what path was used
462
+ const actualCall = vi.mocked(mockBuffer.replaceRangeByOffset).mock
463
+ .calls[0];
464
+ expect(actualCall[0]).toBe(5); // start offset
465
+ expect(actualCall[1]).toBe(5); // end offset
466
+ expect(actualCall[2]).toBe(' @' + path.relative(path.join('test', 'project', 'src'), imagePath));
467
+ unmount();
468
+ });
469
+ it('should handle errors during clipboard operations', async () => {
470
+ const debugLoggerErrorSpy = vi
471
+ .spyOn(debugLogger, 'error')
472
+ .mockImplementation(() => { });
473
+ vi.mocked(clipboardUtils.clipboardHasImage).mockRejectedValue(new Error('Clipboard error'));
474
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
475
+ await act(async () => {
476
+ stdin.write('\x16'); // Ctrl+V
477
+ });
478
+ await waitFor(() => {
479
+ expect(debugLoggerErrorSpy).toHaveBeenCalledWith('Error handling paste:', expect.any(Error));
480
+ });
481
+ expect(mockBuffer.setText).not.toHaveBeenCalled();
482
+ debugLoggerErrorSpy.mockRestore();
483
+ unmount();
484
+ });
485
+ });
486
+ describe('clipboard text paste', () => {
487
+ it('should insert text from clipboard on Ctrl+V', async () => {
488
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
489
+ vi.mocked(clipboardy.read).mockResolvedValue('pasted text');
490
+ vi.mocked(mockBuffer.replaceRangeByOffset).mockClear();
491
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
492
+ await act(async () => {
493
+ stdin.write('\x16'); // Ctrl+V
494
+ });
495
+ await waitFor(() => {
496
+ expect(clipboardy.read).toHaveBeenCalled();
497
+ expect(mockBuffer.insert).toHaveBeenCalledWith('pasted text', expect.objectContaining({ paste: true }));
498
+ });
499
+ unmount();
500
+ });
501
+ it('should use OSC 52 when useOSC52Paste setting is enabled', async () => {
502
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
503
+ const settings = createMockSettings({
504
+ experimental: { useOSC52Paste: true },
505
+ });
506
+ const { stdout, stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), { settings });
507
+ const writeSpy = vi.spyOn(stdout, 'write');
508
+ await act(async () => {
509
+ stdin.write('\x16'); // Ctrl+V
510
+ });
511
+ await waitFor(() => {
512
+ expect(writeSpy).toHaveBeenCalledWith('\x1b]52;c;?\x07');
513
+ });
514
+ // Should NOT call clipboardy.read()
515
+ expect(clipboardy.read).not.toHaveBeenCalled();
516
+ unmount();
517
+ });
518
+ });
519
+ it.each([
520
+ {
521
+ name: 'should complete a partial parent command',
522
+ bufferText: '/mem',
523
+ suggestions: [{ label: 'memory', value: 'memory', description: '...' }],
524
+ activeIndex: 0,
525
+ },
526
+ {
527
+ name: 'should append a sub-command when parent command is complete',
528
+ bufferText: '/memory ',
529
+ suggestions: [
530
+ { label: 'show', value: 'show' },
531
+ { label: 'add', value: 'add' },
532
+ ],
533
+ activeIndex: 1,
534
+ },
535
+ {
536
+ name: 'should handle the backspace edge case correctly',
537
+ bufferText: '/memory',
538
+ suggestions: [
539
+ { label: 'show', value: 'show' },
540
+ { label: 'add', value: 'add' },
541
+ ],
542
+ activeIndex: 0,
543
+ },
544
+ {
545
+ name: 'should complete a partial argument for a command',
546
+ bufferText: '/chat resume fi-',
547
+ suggestions: [{ label: 'fix-foo', value: 'fix-foo' }],
548
+ activeIndex: 0,
549
+ },
550
+ ])('$name', async ({ bufferText, suggestions, activeIndex }) => {
551
+ mockedUseCommandCompletion.mockReturnValue({
552
+ ...mockCommandCompletion,
553
+ showSuggestions: true,
554
+ suggestions,
555
+ activeSuggestionIndex: activeIndex,
556
+ });
557
+ props.buffer.setText(bufferText);
558
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
559
+ uiActions,
560
+ });
561
+ await act(async () => stdin.write('\t'));
562
+ await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(activeIndex));
563
+ unmount();
564
+ });
565
+ it('should autocomplete on Enter when suggestions are active, without submitting', async () => {
566
+ mockedUseCommandCompletion.mockReturnValue({
567
+ ...mockCommandCompletion,
568
+ showSuggestions: true,
569
+ suggestions: [{ label: 'memory', value: 'memory' }],
570
+ activeSuggestionIndex: 0,
571
+ });
572
+ props.buffer.setText('/mem');
573
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
574
+ uiActions,
575
+ });
576
+ await act(async () => {
577
+ stdin.write('\r');
578
+ });
579
+ await waitFor(() => {
580
+ // The app should autocomplete the text, NOT submit.
581
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
582
+ });
583
+ expect(props.onSubmit).not.toHaveBeenCalled();
584
+ unmount();
585
+ });
586
+ it('should complete a command based on its altNames', async () => {
587
+ props.slashCommands = [
588
+ {
589
+ name: 'help',
590
+ altNames: ['?'],
591
+ kind: CommandKind.BUILT_IN,
592
+ description: '...',
593
+ },
594
+ ];
595
+ mockedUseCommandCompletion.mockReturnValue({
596
+ ...mockCommandCompletion,
597
+ showSuggestions: true,
598
+ suggestions: [{ label: 'help', value: 'help' }],
599
+ activeSuggestionIndex: 0,
600
+ });
601
+ props.buffer.setText('/?');
602
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
603
+ uiActions,
604
+ });
605
+ await act(async () => {
606
+ stdin.write('\t'); // Press Tab for autocomplete
607
+ });
608
+ await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0));
609
+ unmount();
610
+ });
611
+ it('should not submit on Enter when the buffer is empty or only contains whitespace', async () => {
612
+ props.buffer.setText(' '); // Set buffer to whitespace
613
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
614
+ uiActions,
615
+ });
616
+ await act(async () => {
617
+ stdin.write('\r'); // Press Enter
618
+ });
619
+ await waitFor(() => {
620
+ expect(props.onSubmit).not.toHaveBeenCalled();
621
+ });
622
+ unmount();
623
+ });
624
+ it('should submit directly on Enter when isPerfectMatch is true', async () => {
625
+ mockedUseCommandCompletion.mockReturnValue({
626
+ ...mockCommandCompletion,
627
+ showSuggestions: false,
628
+ isPerfectMatch: true,
629
+ });
630
+ props.buffer.setText('/clear');
631
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
632
+ uiActions,
633
+ });
634
+ await act(async () => {
635
+ stdin.write('\r');
636
+ });
637
+ await waitFor(() => expect(props.onSubmit).toHaveBeenCalledWith('/clear'));
638
+ unmount();
639
+ });
640
+ it('should execute perfect match on Enter even if suggestions are showing, if at first suggestion', async () => {
641
+ mockedUseCommandCompletion.mockReturnValue({
642
+ ...mockCommandCompletion,
643
+ showSuggestions: true,
644
+ suggestions: [
645
+ { label: 'review', value: 'review' }, // Match is now at index 0
646
+ { label: 'review-frontend', value: 'review-frontend' },
647
+ ],
648
+ activeSuggestionIndex: 0,
649
+ isPerfectMatch: true,
650
+ });
651
+ props.buffer.text = '/review';
652
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
653
+ uiActions,
654
+ });
655
+ await act(async () => {
656
+ stdin.write('\r');
657
+ });
658
+ await waitFor(() => {
659
+ expect(props.onSubmit).toHaveBeenCalledWith('/review');
660
+ });
661
+ unmount();
662
+ });
663
+ it('should autocomplete and NOT execute on Enter if a DIFFERENT suggestion is selected even if perfect match', async () => {
664
+ mockedUseCommandCompletion.mockReturnValue({
665
+ ...mockCommandCompletion,
666
+ showSuggestions: true,
667
+ suggestions: [
668
+ { label: 'review', value: 'review' },
669
+ { label: 'review-frontend', value: 'review-frontend' },
670
+ ],
671
+ activeSuggestionIndex: 1, // review-frontend selected (not the perfect match at 0)
672
+ isPerfectMatch: true, // /review is a perfect match
673
+ });
674
+ props.buffer.text = '/review';
675
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
676
+ uiActions,
677
+ });
678
+ await act(async () => {
679
+ stdin.write('\r');
680
+ });
681
+ await waitFor(() => {
682
+ // Should handle autocomplete for index 1
683
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(1);
684
+ // Should NOT submit
685
+ expect(props.onSubmit).not.toHaveBeenCalled();
686
+ });
687
+ unmount();
688
+ });
689
+ it('should submit directly on Enter when a complete leaf command is typed', async () => {
690
+ mockedUseCommandCompletion.mockReturnValue({
691
+ ...mockCommandCompletion,
692
+ showSuggestions: false,
693
+ isPerfectMatch: false, // Added explicit isPerfectMatch false
694
+ });
695
+ props.buffer.setText('/clear');
696
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
697
+ uiActions,
698
+ });
699
+ await act(async () => {
700
+ stdin.write('\r');
701
+ });
702
+ await waitFor(() => expect(props.onSubmit).toHaveBeenCalledWith('/clear'));
703
+ unmount();
704
+ });
705
+ it('should auto-execute commands with autoExecute: true on Enter', async () => {
706
+ const aboutCommand = {
707
+ name: 'about',
708
+ kind: CommandKind.BUILT_IN,
709
+ description: 'About command',
710
+ action: vi.fn(),
711
+ autoExecute: true,
712
+ };
713
+ const suggestion = { label: 'about', value: 'about' };
714
+ mockedUseCommandCompletion.mockReturnValue({
715
+ ...mockCommandCompletion,
716
+ showSuggestions: true,
717
+ suggestions: [suggestion],
718
+ activeSuggestionIndex: 0,
719
+ getCommandFromSuggestion: vi.fn().mockReturnValue(aboutCommand),
720
+ getCompletedText: vi.fn().mockReturnValue('/about'),
721
+ slashCompletionRange: {
722
+ completionStart: 1,
723
+ completionEnd: 3, // "/ab" -> start at 1, end at 3
724
+ getCommandFromSuggestion: vi.fn(),
725
+ isArgumentCompletion: false,
726
+ leafCommand: null,
727
+ },
728
+ });
729
+ // User typed partial command
730
+ props.buffer.setText('/ab');
731
+ props.buffer.lines = ['/ab'];
732
+ props.buffer.cursor = [0, 3];
733
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
734
+ uiActions,
735
+ });
736
+ await act(async () => {
737
+ stdin.write('\r'); // Enter
738
+ });
739
+ await waitFor(() => {
740
+ // Should submit the full command constructed from buffer + suggestion
741
+ expect(props.onSubmit).toHaveBeenCalledWith('/about');
742
+ // Should NOT handle autocomplete (which just fills text)
743
+ expect(mockCommandCompletion.handleAutocomplete).not.toHaveBeenCalled();
744
+ });
745
+ unmount();
746
+ });
747
+ it('should autocomplete commands with autoExecute: false on Enter', async () => {
748
+ const shareCommand = {
749
+ name: 'share',
750
+ kind: CommandKind.BUILT_IN,
751
+ description: 'Share conversation to file',
752
+ action: vi.fn(),
753
+ autoExecute: false, // Explicitly set to false
754
+ };
755
+ const suggestion = { label: 'share', value: 'share' };
756
+ mockedUseCommandCompletion.mockReturnValue({
757
+ ...mockCommandCompletion,
758
+ showSuggestions: true,
759
+ suggestions: [suggestion],
760
+ activeSuggestionIndex: 0,
761
+ getCommandFromSuggestion: vi.fn().mockReturnValue(shareCommand),
762
+ getCompletedText: vi.fn().mockReturnValue('/share'),
763
+ });
764
+ props.buffer.setText('/sh');
765
+ props.buffer.lines = ['/sh'];
766
+ props.buffer.cursor = [0, 3];
767
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
768
+ uiActions,
769
+ });
770
+ await act(async () => {
771
+ stdin.write('\r'); // Enter
772
+ });
773
+ await waitFor(() => {
774
+ // Should autocomplete to allow adding file argument
775
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
776
+ expect(props.onSubmit).not.toHaveBeenCalled();
777
+ });
778
+ unmount();
779
+ });
780
+ it('should autocomplete on Tab, even for executable commands', async () => {
781
+ const executableCommand = {
782
+ name: 'about',
783
+ kind: CommandKind.BUILT_IN,
784
+ description: 'About info',
785
+ action: vi.fn(),
786
+ autoExecute: true,
787
+ };
788
+ const suggestion = { label: 'about', value: 'about' };
789
+ mockedUseCommandCompletion.mockReturnValue({
790
+ ...mockCommandCompletion,
791
+ showSuggestions: true,
792
+ suggestions: [suggestion],
793
+ activeSuggestionIndex: 0,
794
+ getCommandFromSuggestion: vi.fn().mockReturnValue(executableCommand),
795
+ getCompletedText: vi.fn().mockReturnValue('/about'),
796
+ });
797
+ props.buffer.setText('/ab');
798
+ props.buffer.lines = ['/ab'];
799
+ props.buffer.cursor = [0, 3];
800
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
801
+ uiActions,
802
+ });
803
+ await act(async () => {
804
+ stdin.write('\t'); // Tab
805
+ });
806
+ await waitFor(() => {
807
+ // Tab always autocompletes, never executes
808
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
809
+ expect(props.onSubmit).not.toHaveBeenCalled();
810
+ });
811
+ unmount();
812
+ });
813
+ it('should autocomplete custom commands from .toml files on Enter', async () => {
814
+ const customCommand = {
815
+ name: 'find-capital',
816
+ kind: CommandKind.FILE,
817
+ description: 'Find capital of a country',
818
+ action: vi.fn(),
819
+ // No autoExecute flag - custom commands default to undefined
820
+ };
821
+ const suggestion = { label: 'find-capital', value: 'find-capital' };
822
+ mockedUseCommandCompletion.mockReturnValue({
823
+ ...mockCommandCompletion,
824
+ showSuggestions: true,
825
+ suggestions: [suggestion],
826
+ activeSuggestionIndex: 0,
827
+ getCommandFromSuggestion: vi.fn().mockReturnValue(customCommand),
828
+ getCompletedText: vi.fn().mockReturnValue('/find-capital'),
829
+ });
830
+ props.buffer.setText('/find');
831
+ props.buffer.lines = ['/find'];
832
+ props.buffer.cursor = [0, 5];
833
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
834
+ uiActions,
835
+ });
836
+ await act(async () => {
837
+ stdin.write('\r'); // Enter
838
+ });
839
+ await waitFor(() => {
840
+ // Should autocomplete (not execute) since autoExecute is undefined
841
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
842
+ expect(props.onSubmit).not.toHaveBeenCalled();
843
+ });
844
+ unmount();
845
+ });
846
+ it('should auto-execute argument completion when command has autoExecute: true', async () => {
847
+ // Simulates: /mcp auth <server> where user selects a server from completions
848
+ const authCommand = {
849
+ name: 'auth',
850
+ kind: CommandKind.BUILT_IN,
851
+ description: 'Authenticate with MCP server',
852
+ action: vi.fn(),
853
+ autoExecute: true,
854
+ completion: vi.fn().mockResolvedValue(['server1', 'server2']),
855
+ };
856
+ const suggestion = { label: 'server1', value: 'server1' };
857
+ mockedUseCommandCompletion.mockReturnValue({
858
+ ...mockCommandCompletion,
859
+ showSuggestions: true,
860
+ suggestions: [suggestion],
861
+ activeSuggestionIndex: 0,
862
+ getCommandFromSuggestion: vi.fn().mockReturnValue(authCommand),
863
+ getCompletedText: vi.fn().mockReturnValue('/mcp auth server1'),
864
+ slashCompletionRange: {
865
+ completionStart: 10,
866
+ completionEnd: 10,
867
+ getCommandFromSuggestion: vi.fn(),
868
+ isArgumentCompletion: true,
869
+ leafCommand: authCommand,
870
+ },
871
+ });
872
+ props.buffer.setText('/mcp auth ');
873
+ props.buffer.lines = ['/mcp auth '];
874
+ props.buffer.cursor = [0, 10];
875
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
876
+ uiActions,
877
+ });
878
+ await act(async () => {
879
+ stdin.write('\r'); // Enter
880
+ });
881
+ await waitFor(() => {
882
+ // Should auto-execute with the completed command
883
+ expect(props.onSubmit).toHaveBeenCalledWith('/mcp auth server1');
884
+ expect(mockCommandCompletion.handleAutocomplete).not.toHaveBeenCalled();
885
+ });
886
+ unmount();
887
+ });
888
+ it('should autocomplete argument completion when command has autoExecute: false', async () => {
889
+ // Simulates: /extensions enable <ext> where multi-arg completions should NOT auto-execute
890
+ const enableCommand = {
891
+ name: 'enable',
892
+ kind: CommandKind.BUILT_IN,
893
+ description: 'Enable an extension',
894
+ action: vi.fn(),
895
+ autoExecute: false,
896
+ completion: vi.fn().mockResolvedValue(['ext1 --scope user']),
897
+ };
898
+ const suggestion = {
899
+ label: 'ext1 --scope user',
900
+ value: 'ext1 --scope user',
901
+ };
902
+ mockedUseCommandCompletion.mockReturnValue({
903
+ ...mockCommandCompletion,
904
+ showSuggestions: true,
905
+ suggestions: [suggestion],
906
+ activeSuggestionIndex: 0,
907
+ getCommandFromSuggestion: vi.fn().mockReturnValue(enableCommand),
908
+ getCompletedText: vi
909
+ .fn()
910
+ .mockReturnValue('/extensions enable ext1 --scope user'),
911
+ slashCompletionRange: {
912
+ completionStart: 19,
913
+ completionEnd: 19,
914
+ getCommandFromSuggestion: vi.fn(),
915
+ isArgumentCompletion: true,
916
+ leafCommand: enableCommand,
917
+ },
918
+ });
919
+ props.buffer.setText('/extensions enable ');
920
+ props.buffer.lines = ['/extensions enable '];
921
+ props.buffer.cursor = [0, 19];
922
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
923
+ uiActions,
924
+ });
925
+ await act(async () => {
926
+ stdin.write('\r'); // Enter
927
+ });
928
+ await waitFor(() => {
929
+ // Should autocomplete (not execute) to allow user to modify
930
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
931
+ expect(props.onSubmit).not.toHaveBeenCalled();
932
+ });
933
+ unmount();
934
+ });
935
+ it('should autocomplete command name even with autoExecute: true if command has completion function', async () => {
936
+ // Simulates: /chat resu -> should NOT auto-execute, should autocomplete to show arg completions
937
+ const resumeCommand = {
938
+ name: 'resume',
939
+ kind: CommandKind.BUILT_IN,
940
+ description: 'Resume a conversation',
941
+ action: vi.fn(),
942
+ autoExecute: true,
943
+ completion: vi.fn().mockResolvedValue(['chat1', 'chat2']),
944
+ };
945
+ const suggestion = { label: 'resume', value: 'resume' };
946
+ mockedUseCommandCompletion.mockReturnValue({
947
+ ...mockCommandCompletion,
948
+ showSuggestions: true,
949
+ suggestions: [suggestion],
950
+ activeSuggestionIndex: 0,
951
+ getCommandFromSuggestion: vi.fn().mockReturnValue(resumeCommand),
952
+ getCompletedText: vi.fn().mockReturnValue('/chat resume'),
953
+ slashCompletionRange: {
954
+ completionStart: 6,
955
+ completionEnd: 10,
956
+ getCommandFromSuggestion: vi.fn(),
957
+ isArgumentCompletion: false,
958
+ leafCommand: null,
959
+ },
960
+ });
961
+ props.buffer.setText('/chat resu');
962
+ props.buffer.lines = ['/chat resu'];
963
+ props.buffer.cursor = [0, 10];
964
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
965
+ uiActions,
966
+ });
967
+ await act(async () => {
968
+ stdin.write('\r'); // Enter
969
+ });
970
+ await waitFor(() => {
971
+ // Should autocomplete to allow selecting an argument, NOT auto-execute
972
+ expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0);
973
+ expect(props.onSubmit).not.toHaveBeenCalled();
974
+ });
975
+ unmount();
976
+ });
977
+ it('should autocomplete an @-path on Enter without submitting', async () => {
978
+ mockedUseCommandCompletion.mockReturnValue({
979
+ ...mockCommandCompletion,
980
+ showSuggestions: true,
981
+ suggestions: [{ label: 'index.ts', value: 'index.ts' }],
982
+ activeSuggestionIndex: 0,
983
+ });
984
+ props.buffer.setText('@src/components/');
985
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
986
+ uiActions,
987
+ });
988
+ await act(async () => {
989
+ stdin.write('\r');
990
+ });
991
+ await waitFor(() => expect(mockCommandCompletion.handleAutocomplete).toHaveBeenCalledWith(0));
992
+ expect(props.onSubmit).not.toHaveBeenCalled();
993
+ unmount();
994
+ });
995
+ it('should add a newline on enter when the line ends with a backslash', async () => {
996
+ // This test simulates multi-line input, not submission
997
+ mockBuffer.text = 'first line\\';
998
+ mockBuffer.cursor = [0, 11];
999
+ mockBuffer.lines = ['first line\\'];
1000
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1001
+ uiActions,
1002
+ });
1003
+ await act(async () => {
1004
+ stdin.write('\r');
1005
+ });
1006
+ await waitFor(() => {
1007
+ expect(props.buffer.backspace).toHaveBeenCalled();
1008
+ expect(props.buffer.newline).toHaveBeenCalled();
1009
+ });
1010
+ expect(props.onSubmit).not.toHaveBeenCalled();
1011
+ unmount();
1012
+ });
1013
+ it('should clear the buffer on Ctrl+C if it has text', async () => {
1014
+ await act(async () => {
1015
+ props.buffer.setText('some text to clear');
1016
+ });
1017
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1018
+ uiActions,
1019
+ });
1020
+ await act(async () => {
1021
+ stdin.write('\x03'); // Ctrl+C character
1022
+ });
1023
+ await waitFor(() => {
1024
+ expect(props.buffer.setText).toHaveBeenCalledWith('');
1025
+ expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
1026
+ });
1027
+ expect(props.onSubmit).not.toHaveBeenCalled();
1028
+ unmount();
1029
+ });
1030
+ it('should render correctly in plan mode', async () => {
1031
+ props.approvalMode = ApprovalMode.PLAN;
1032
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1033
+ await waitFor(() => {
1034
+ const frame = stdout.lastFrame();
1035
+ // In plan mode it uses '>' but with success color.
1036
+ // We check that it contains '>' and not '*' or '!'.
1037
+ expect(frame).toContain('>');
1038
+ expect(frame).not.toContain('*');
1039
+ expect(frame).not.toContain('!');
1040
+ });
1041
+ unmount();
1042
+ });
1043
+ it('should NOT clear the buffer on Ctrl+C if it is empty', async () => {
1044
+ props.buffer.text = '';
1045
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1046
+ uiActions,
1047
+ });
1048
+ await act(async () => {
1049
+ stdin.write('\x03'); // Ctrl+C character
1050
+ });
1051
+ await waitFor(() => {
1052
+ expect(props.buffer.setText).not.toHaveBeenCalled();
1053
+ });
1054
+ unmount();
1055
+ });
1056
+ it('should call setBannerVisible(false) when clear screen key is pressed', async () => {
1057
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1058
+ uiActions,
1059
+ });
1060
+ await act(async () => {
1061
+ stdin.write('\x0C'); // Ctrl+L
1062
+ });
1063
+ await waitFor(() => {
1064
+ expect(props.setBannerVisible).toHaveBeenCalledWith(false);
1065
+ });
1066
+ unmount();
1067
+ });
1068
+ describe('cursor-based completion trigger', () => {
1069
+ it.each([
1070
+ {
1071
+ name: 'should trigger completion when cursor is after @ without spaces',
1072
+ text: '@src/components',
1073
+ cursor: [0, 15],
1074
+ showSuggestions: true,
1075
+ },
1076
+ {
1077
+ name: 'should trigger completion when cursor is after / without spaces',
1078
+ text: '/memory',
1079
+ cursor: [0, 7],
1080
+ showSuggestions: true,
1081
+ },
1082
+ {
1083
+ name: 'should NOT trigger completion when cursor is after space following @',
1084
+ text: '@src/file.ts hello',
1085
+ cursor: [0, 18],
1086
+ showSuggestions: false,
1087
+ },
1088
+ {
1089
+ name: 'should NOT trigger completion when cursor is after space following /',
1090
+ text: '/memory add',
1091
+ cursor: [0, 11],
1092
+ showSuggestions: false,
1093
+ },
1094
+ {
1095
+ name: 'should NOT trigger completion when cursor is not after @ or /',
1096
+ text: 'hello world',
1097
+ cursor: [0, 5],
1098
+ showSuggestions: false,
1099
+ },
1100
+ {
1101
+ name: 'should handle multiline text correctly',
1102
+ text: 'first line\n/memory',
1103
+ cursor: [1, 7],
1104
+ showSuggestions: false,
1105
+ },
1106
+ {
1107
+ name: 'should handle Unicode characters (emojis) correctly in paths',
1108
+ text: '@src/file👍.txt',
1109
+ cursor: [0, 14],
1110
+ showSuggestions: true,
1111
+ },
1112
+ {
1113
+ name: 'should handle Unicode characters with spaces after them',
1114
+ text: '@src/file👍.txt hello',
1115
+ cursor: [0, 20],
1116
+ showSuggestions: false,
1117
+ },
1118
+ {
1119
+ name: 'should handle escaped spaces in paths correctly',
1120
+ text: '@src/my\\ file.txt',
1121
+ cursor: [0, 16],
1122
+ showSuggestions: true,
1123
+ },
1124
+ {
1125
+ name: 'should NOT trigger completion after unescaped space following escaped space',
1126
+ text: '@path/my\\ file.txt hello',
1127
+ cursor: [0, 24],
1128
+ showSuggestions: false,
1129
+ },
1130
+ {
1131
+ name: 'should handle multiple escaped spaces in paths',
1132
+ text: '@docs/my\\ long\\ file\\ name.md',
1133
+ cursor: [0, 29],
1134
+ showSuggestions: true,
1135
+ },
1136
+ {
1137
+ name: 'should handle escaped spaces in slash commands',
1138
+ text: '/memory\\ test',
1139
+ cursor: [0, 13],
1140
+ showSuggestions: true,
1141
+ },
1142
+ {
1143
+ name: 'should handle Unicode characters with escaped spaces',
1144
+ text: `@${path.join('files', 'emoji\\ 👍\\ test.txt')}`,
1145
+ cursor: [0, 25],
1146
+ showSuggestions: true,
1147
+ },
1148
+ ])('$name', async ({ text, cursor, showSuggestions }) => {
1149
+ mockBuffer.text = text;
1150
+ mockBuffer.lines = text.split('\n');
1151
+ mockBuffer.cursor = cursor;
1152
+ mockedUseCommandCompletion.mockReturnValue({
1153
+ ...mockCommandCompletion,
1154
+ showSuggestions,
1155
+ suggestions: showSuggestions
1156
+ ? [{ label: 'suggestion', value: 'suggestion' }]
1157
+ : [],
1158
+ });
1159
+ const { unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1160
+ uiActions,
1161
+ });
1162
+ await waitFor(() => {
1163
+ expect(mockedUseCommandCompletion).toHaveBeenCalledWith(mockBuffer, path.join('test', 'project', 'src'), mockSlashCommands, mockCommandContext, false, false, expect.any(Object));
1164
+ });
1165
+ unmount();
1166
+ });
1167
+ });
1168
+ describe('vim mode', () => {
1169
+ it.each([
1170
+ {
1171
+ name: 'should not call buffer.handleInput when vim handles input',
1172
+ vimHandled: true,
1173
+ expectBufferHandleInput: false,
1174
+ },
1175
+ {
1176
+ name: 'should call buffer.handleInput when vim does not handle input',
1177
+ vimHandled: false,
1178
+ expectBufferHandleInput: true,
1179
+ },
1180
+ {
1181
+ name: 'should call handleInput when vim mode is disabled',
1182
+ vimHandled: false,
1183
+ expectBufferHandleInput: true,
1184
+ },
1185
+ ])('$name', async ({ vimHandled, expectBufferHandleInput }) => {
1186
+ props.vimHandleInput = vi.fn().mockReturnValue(vimHandled);
1187
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1188
+ await act(async () => stdin.write('i'));
1189
+ await waitFor(() => {
1190
+ expect(props.vimHandleInput).toHaveBeenCalled();
1191
+ if (expectBufferHandleInput) {
1192
+ expect(mockBuffer.handleInput).toHaveBeenCalled();
1193
+ }
1194
+ else {
1195
+ expect(mockBuffer.handleInput).not.toHaveBeenCalled();
1196
+ }
1197
+ });
1198
+ unmount();
1199
+ });
1200
+ });
1201
+ describe('unfocused paste', () => {
1202
+ it('should handle bracketed paste when not focused', async () => {
1203
+ props.focus = false;
1204
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1205
+ await act(async () => {
1206
+ stdin.write('\x1B[200~pasted text\x1B[201~');
1207
+ });
1208
+ await waitFor(() => {
1209
+ expect(mockBuffer.handleInput).toHaveBeenCalledWith(expect.objectContaining({
1210
+ name: 'paste',
1211
+ sequence: 'pasted text',
1212
+ }));
1213
+ });
1214
+ unmount();
1215
+ });
1216
+ it('should ignore regular keypresses when not focused', async () => {
1217
+ props.focus = false;
1218
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1219
+ await act(async () => {
1220
+ stdin.write('a');
1221
+ });
1222
+ await waitFor(() => { });
1223
+ expect(mockBuffer.handleInput).not.toHaveBeenCalled();
1224
+ unmount();
1225
+ });
1226
+ });
1227
+ describe('Highlighting and Cursor Display', () => {
1228
+ describe('single-line scenarios', () => {
1229
+ it.each([
1230
+ {
1231
+ name: 'mid-word',
1232
+ text: 'hello world',
1233
+ visualCursor: [0, 3],
1234
+ expected: `hel${chalk.inverse('l')}o world`,
1235
+ },
1236
+ {
1237
+ name: 'at the beginning of the line',
1238
+ text: 'hello',
1239
+ visualCursor: [0, 0],
1240
+ expected: `${chalk.inverse('h')}ello`,
1241
+ },
1242
+ {
1243
+ name: 'at the end of the line',
1244
+ text: 'hello',
1245
+ visualCursor: [0, 5],
1246
+ expected: `hello${chalk.inverse(' ')}`,
1247
+ },
1248
+ {
1249
+ name: 'on a highlighted token',
1250
+ text: 'run @path/to/file',
1251
+ visualCursor: [0, 9],
1252
+ expected: `@path/${chalk.inverse('t')}o/file`,
1253
+ },
1254
+ {
1255
+ name: 'for multi-byte unicode characters',
1256
+ text: 'hello 👍 world',
1257
+ visualCursor: [0, 6],
1258
+ expected: `hello ${chalk.inverse('👍')} world`,
1259
+ },
1260
+ {
1261
+ name: 'at the end of a line with unicode characters',
1262
+ text: 'hello 👍',
1263
+ visualCursor: [0, 8],
1264
+ expected: `hello 👍${chalk.inverse(' ')}`,
1265
+ },
1266
+ {
1267
+ name: 'on an empty line',
1268
+ text: '',
1269
+ visualCursor: [0, 0],
1270
+ expected: chalk.inverse(' '),
1271
+ },
1272
+ {
1273
+ name: 'on a space between words',
1274
+ text: 'hello world',
1275
+ visualCursor: [0, 5],
1276
+ expected: `hello${chalk.inverse(' ')}world`,
1277
+ },
1278
+ ])('should display cursor correctly $name', async ({ text, visualCursor, expected }) => {
1279
+ mockBuffer.text = text;
1280
+ mockBuffer.lines = [text];
1281
+ mockBuffer.viewportVisualLines = [text];
1282
+ mockBuffer.visualCursor = visualCursor;
1283
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1284
+ await waitFor(() => {
1285
+ const frame = stdout.lastFrame();
1286
+ expect(frame).toContain(expected);
1287
+ });
1288
+ unmount();
1289
+ });
1290
+ });
1291
+ describe('multi-line scenarios', () => {
1292
+ it.each([
1293
+ {
1294
+ name: 'in the middle of a line',
1295
+ text: 'first line\nsecond line\nthird line',
1296
+ visualCursor: [1, 3],
1297
+ visualToLogicalMap: [
1298
+ [0, 0],
1299
+ [1, 0],
1300
+ [2, 0],
1301
+ ],
1302
+ expected: `sec${chalk.inverse('o')}nd line`,
1303
+ },
1304
+ {
1305
+ name: 'at the beginning of a line',
1306
+ text: 'first line\nsecond line',
1307
+ visualCursor: [1, 0],
1308
+ visualToLogicalMap: [
1309
+ [0, 0],
1310
+ [1, 0],
1311
+ ],
1312
+ expected: `${chalk.inverse('s')}econd line`,
1313
+ },
1314
+ {
1315
+ name: 'at the end of a line',
1316
+ text: 'first line\nsecond line',
1317
+ visualCursor: [0, 10],
1318
+ visualToLogicalMap: [
1319
+ [0, 0],
1320
+ [1, 0],
1321
+ ],
1322
+ expected: `first line${chalk.inverse(' ')}`,
1323
+ },
1324
+ ])('should display cursor correctly $name in a multiline block', async ({ text, visualCursor, expected, visualToLogicalMap }) => {
1325
+ mockBuffer.text = text;
1326
+ mockBuffer.lines = text.split('\n');
1327
+ mockBuffer.viewportVisualLines = text.split('\n');
1328
+ mockBuffer.visualCursor = visualCursor;
1329
+ mockBuffer.visualToLogicalMap = visualToLogicalMap;
1330
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1331
+ await waitFor(() => {
1332
+ const frame = stdout.lastFrame();
1333
+ expect(frame).toContain(expected);
1334
+ });
1335
+ unmount();
1336
+ });
1337
+ it('should display cursor on a blank line in a multiline block', async () => {
1338
+ const text = 'first line\n\nthird line';
1339
+ mockBuffer.text = text;
1340
+ mockBuffer.lines = text.split('\n');
1341
+ mockBuffer.viewportVisualLines = text.split('\n');
1342
+ mockBuffer.visualCursor = [1, 0]; // cursor on the blank line
1343
+ mockBuffer.visualToLogicalMap = [
1344
+ [0, 0],
1345
+ [1, 0],
1346
+ [2, 0],
1347
+ ];
1348
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1349
+ await waitFor(() => {
1350
+ const frame = stdout.lastFrame();
1351
+ const lines = frame.split('\n');
1352
+ // The line with the cursor should just be an inverted space inside the box border
1353
+ expect(lines.find((l) => l.includes(chalk.inverse(' ')))).not.toBeUndefined();
1354
+ });
1355
+ unmount();
1356
+ });
1357
+ });
1358
+ });
1359
+ describe('multiline rendering', () => {
1360
+ it('should correctly render multiline input including blank lines', async () => {
1361
+ const text = 'hello\n\nworld';
1362
+ mockBuffer.text = text;
1363
+ mockBuffer.lines = text.split('\n');
1364
+ mockBuffer.viewportVisualLines = text.split('\n');
1365
+ mockBuffer.allVisualLines = text.split('\n');
1366
+ mockBuffer.visualCursor = [2, 5]; // cursor at the end of "world"
1367
+ // Provide a visual-to-logical mapping for each visual line
1368
+ mockBuffer.visualToLogicalMap = [
1369
+ [0, 0], // 'hello' starts at col 0 of logical line 0
1370
+ [1, 0], // '' (blank) is logical line 1, col 0
1371
+ [2, 0], // 'world' is logical line 2, col 0
1372
+ ];
1373
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1374
+ await waitFor(() => {
1375
+ const frame = stdout.lastFrame();
1376
+ // Check that all lines, including the empty one, are rendered.
1377
+ // This implicitly tests that the Box wrapper provides height for the empty line.
1378
+ expect(frame).toContain('hello');
1379
+ expect(frame).toContain(`world${chalk.inverse(' ')}`);
1380
+ const outputLines = frame.split('\n');
1381
+ // The number of lines should be 2 for the border plus 3 for the content.
1382
+ expect(outputLines.length).toBe(5);
1383
+ });
1384
+ unmount();
1385
+ });
1386
+ });
1387
+ describe('multiline paste', () => {
1388
+ it.each([
1389
+ {
1390
+ description: 'with \n newlines',
1391
+ pastedText: 'This \n is \n a \n multiline \n paste.',
1392
+ },
1393
+ {
1394
+ description: 'with extra slashes before \n newlines',
1395
+ pastedText: 'This \\\n is \\\n a \\\n multiline \\\n paste.',
1396
+ },
1397
+ {
1398
+ description: 'with \r\n newlines',
1399
+ pastedText: 'This\r\nis\r\na\r\nmultiline\r\npaste.',
1400
+ },
1401
+ ])('should handle multiline paste $description', async ({ pastedText }) => {
1402
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1403
+ // Simulate a bracketed paste event from the terminal
1404
+ await act(async () => {
1405
+ stdin.write(`\x1b[200~${pastedText}\x1b[201~`);
1406
+ });
1407
+ await waitFor(() => {
1408
+ // Verify that the buffer's handleInput was called once with the full text
1409
+ expect(props.buffer.handleInput).toHaveBeenCalledTimes(1);
1410
+ expect(props.buffer.handleInput).toHaveBeenCalledWith(expect.objectContaining({
1411
+ name: 'paste',
1412
+ sequence: pastedText,
1413
+ }));
1414
+ });
1415
+ unmount();
1416
+ });
1417
+ });
1418
+ describe('large paste placeholder', () => {
1419
+ it('should handle large clipboard paste (lines > 5) by calling buffer.insert', async () => {
1420
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
1421
+ const largeText = '1\n2\n3\n4\n5\n6';
1422
+ vi.mocked(clipboardy.read).mockResolvedValue(largeText);
1423
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1424
+ await act(async () => {
1425
+ stdin.write('\x16'); // Ctrl+V
1426
+ });
1427
+ await waitFor(() => {
1428
+ expect(mockBuffer.insert).toHaveBeenCalledWith(largeText, expect.objectContaining({ paste: true }));
1429
+ });
1430
+ unmount();
1431
+ });
1432
+ it('should handle large clipboard paste (chars > 500) by calling buffer.insert', async () => {
1433
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
1434
+ const largeText = 'a'.repeat(501);
1435
+ vi.mocked(clipboardy.read).mockResolvedValue(largeText);
1436
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1437
+ await act(async () => {
1438
+ stdin.write('\x16'); // Ctrl+V
1439
+ });
1440
+ await waitFor(() => {
1441
+ expect(mockBuffer.insert).toHaveBeenCalledWith(largeText, expect.objectContaining({ paste: true }));
1442
+ });
1443
+ unmount();
1444
+ });
1445
+ it('should handle normal clipboard paste by calling buffer.insert', async () => {
1446
+ vi.mocked(clipboardUtils.clipboardHasImage).mockResolvedValue(false);
1447
+ const smallText = 'hello world';
1448
+ vi.mocked(clipboardy.read).mockResolvedValue(smallText);
1449
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1450
+ await act(async () => {
1451
+ stdin.write('\x16'); // Ctrl+V
1452
+ });
1453
+ await waitFor(() => {
1454
+ expect(mockBuffer.insert).toHaveBeenCalledWith(smallText, expect.objectContaining({ paste: true }));
1455
+ });
1456
+ unmount();
1457
+ });
1458
+ it('should replace placeholder with actual content on submit', async () => {
1459
+ // Setup buffer to have the placeholder
1460
+ const largeText = '1\n2\n3\n4\n5\n6';
1461
+ const id = '[Pasted Text: 6 lines]';
1462
+ mockBuffer.text = `Check this: ${id}`;
1463
+ mockBuffer.pastedContent = { [id]: largeText };
1464
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1465
+ await act(async () => {
1466
+ stdin.write('\r'); // Enter
1467
+ });
1468
+ await waitFor(() => {
1469
+ expect(props.onSubmit).toHaveBeenCalledWith(`Check this: ${largeText}`);
1470
+ });
1471
+ unmount();
1472
+ });
1473
+ });
1474
+ describe('paste auto-submission protection', () => {
1475
+ beforeEach(() => {
1476
+ vi.useFakeTimers();
1477
+ mockedUseKittyKeyboardProtocol.mockReturnValue({
1478
+ enabled: false,
1479
+ checking: false,
1480
+ });
1481
+ });
1482
+ afterEach(() => {
1483
+ vi.useRealTimers();
1484
+ vi.restoreAllMocks();
1485
+ });
1486
+ it('should prevent auto-submission immediately after an unsafe paste', async () => {
1487
+ // isTerminalPasteTrusted will be false due to beforeEach setup.
1488
+ props.buffer.text = 'some command';
1489
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1490
+ await act(async () => {
1491
+ await vi.runAllTimersAsync();
1492
+ });
1493
+ // Simulate a paste operation (this should set the paste protection)
1494
+ await act(async () => {
1495
+ stdin.write(`\x1b[200~pasted content\x1b[201~`);
1496
+ });
1497
+ // Simulate an Enter key press immediately after paste
1498
+ await act(async () => {
1499
+ stdin.write('\r');
1500
+ });
1501
+ await act(async () => {
1502
+ await vi.runAllTimersAsync();
1503
+ });
1504
+ // Verify that onSubmit was NOT called due to recent paste protection
1505
+ expect(props.onSubmit).not.toHaveBeenCalled();
1506
+ // It should call newline() instead
1507
+ expect(props.buffer.newline).toHaveBeenCalled();
1508
+ unmount();
1509
+ });
1510
+ it('should allow submission after unsafe paste protection timeout', async () => {
1511
+ // isTerminalPasteTrusted will be false due to beforeEach setup.
1512
+ props.buffer.text = 'pasted text';
1513
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1514
+ await act(async () => {
1515
+ await vi.runAllTimersAsync();
1516
+ });
1517
+ // Simulate a paste operation (this sets the protection)
1518
+ await act(async () => {
1519
+ stdin.write('\x1b[200~pasted text\x1b[201~');
1520
+ });
1521
+ await act(async () => {
1522
+ await vi.runAllTimersAsync();
1523
+ });
1524
+ // Advance timers past the protection timeout
1525
+ await act(async () => {
1526
+ await vi.advanceTimersByTimeAsync(50);
1527
+ });
1528
+ // Now Enter should work normally
1529
+ await act(async () => {
1530
+ stdin.write('\r');
1531
+ });
1532
+ await act(async () => {
1533
+ await vi.runAllTimersAsync();
1534
+ });
1535
+ expect(props.onSubmit).toHaveBeenCalledWith('pasted text');
1536
+ expect(props.buffer.newline).not.toHaveBeenCalled();
1537
+ unmount();
1538
+ });
1539
+ it.each([
1540
+ {
1541
+ name: 'kitty',
1542
+ setup: () => mockedUseKittyKeyboardProtocol.mockReturnValue({
1543
+ enabled: true,
1544
+ checking: false,
1545
+ }),
1546
+ },
1547
+ ])('should allow immediate submission for a trusted paste ($name)', async ({ setup }) => {
1548
+ setup();
1549
+ props.buffer.text = 'pasted command';
1550
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1551
+ await act(async () => {
1552
+ await vi.runAllTimersAsync();
1553
+ });
1554
+ // Simulate a paste operation
1555
+ await act(async () => {
1556
+ stdin.write('\x1b[200~some pasted stuff\x1b[201~');
1557
+ });
1558
+ await act(async () => {
1559
+ await vi.runAllTimersAsync();
1560
+ });
1561
+ // Simulate an Enter key press immediately after paste
1562
+ await act(async () => {
1563
+ stdin.write('\r');
1564
+ });
1565
+ await act(async () => {
1566
+ await vi.runAllTimersAsync();
1567
+ });
1568
+ // Verify that onSubmit was called
1569
+ expect(props.onSubmit).toHaveBeenCalledWith('pasted command');
1570
+ unmount();
1571
+ });
1572
+ it('should not interfere with normal Enter key submission when no recent paste', async () => {
1573
+ // Set up buffer with text before rendering to ensure submission works
1574
+ props.buffer.text = 'normal command';
1575
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1576
+ await act(async () => {
1577
+ await vi.runAllTimersAsync();
1578
+ });
1579
+ // Press Enter without any recent paste
1580
+ await act(async () => {
1581
+ stdin.write('\r');
1582
+ });
1583
+ await act(async () => {
1584
+ await vi.runAllTimersAsync();
1585
+ });
1586
+ // Verify that onSubmit was called normally
1587
+ expect(props.onSubmit).toHaveBeenCalledWith('normal command');
1588
+ unmount();
1589
+ });
1590
+ });
1591
+ describe('enhanced input UX - keyboard shortcuts', () => {
1592
+ beforeEach(() => vi.useFakeTimers());
1593
+ afterEach(() => vi.useRealTimers());
1594
+ it('should clear buffer on Ctrl-C', async () => {
1595
+ const onEscapePromptChange = vi.fn();
1596
+ props.onEscapePromptChange = onEscapePromptChange;
1597
+ props.buffer.setText('text to clear');
1598
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1599
+ await act(async () => {
1600
+ stdin.write('\x03');
1601
+ vi.advanceTimersByTime(100);
1602
+ expect(props.buffer.setText).toHaveBeenCalledWith('');
1603
+ expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
1604
+ });
1605
+ unmount();
1606
+ });
1607
+ it('should submit /rewind on double ESC when buffer is empty', async () => {
1608
+ const onEscapePromptChange = vi.fn();
1609
+ props.onEscapePromptChange = onEscapePromptChange;
1610
+ props.buffer.setText('');
1611
+ vi.mocked(props.buffer.setText).mockClear();
1612
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
1613
+ uiState: {
1614
+ history: [{ id: 1, type: 'user', text: 'test' }],
1615
+ },
1616
+ });
1617
+ await act(async () => {
1618
+ stdin.write('\x1B\x1B');
1619
+ vi.advanceTimersByTime(100);
1620
+ });
1621
+ await waitFor(() => {
1622
+ expect(props.onSubmit).toHaveBeenCalledWith('/rewind');
1623
+ });
1624
+ unmount();
1625
+ });
1626
+ it('should clear the buffer on esc esc if it has text', async () => {
1627
+ const onEscapePromptChange = vi.fn();
1628
+ props.onEscapePromptChange = onEscapePromptChange;
1629
+ props.buffer.setText('some text');
1630
+ vi.mocked(props.buffer.setText).mockClear();
1631
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1632
+ await act(async () => {
1633
+ stdin.write('\x1B\x1B');
1634
+ vi.advanceTimersByTime(100);
1635
+ expect(props.buffer.setText).toHaveBeenCalledWith('');
1636
+ expect(props.onSubmit).not.toHaveBeenCalledWith('/rewind');
1637
+ });
1638
+ unmount();
1639
+ });
1640
+ it('should reset escape state on any non-ESC key', async () => {
1641
+ const onEscapePromptChange = vi.fn();
1642
+ props.onEscapePromptChange = onEscapePromptChange;
1643
+ props.buffer.setText('some text');
1644
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1645
+ await act(async () => {
1646
+ stdin.write('\x1B');
1647
+ await waitFor(() => {
1648
+ expect(onEscapePromptChange).toHaveBeenCalledWith(false);
1649
+ });
1650
+ });
1651
+ await act(async () => {
1652
+ stdin.write('a');
1653
+ await waitFor(() => {
1654
+ expect(onEscapePromptChange).toHaveBeenCalledWith(false);
1655
+ });
1656
+ });
1657
+ unmount();
1658
+ });
1659
+ it('should handle ESC in shell mode by disabling shell mode', async () => {
1660
+ props.shellModeActive = true;
1661
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1662
+ await act(async () => {
1663
+ stdin.write('\x1B');
1664
+ vi.advanceTimersByTime(100);
1665
+ expect(props.setShellModeActive).toHaveBeenCalledWith(false);
1666
+ });
1667
+ unmount();
1668
+ });
1669
+ it('should handle ESC when completion suggestions are showing', async () => {
1670
+ mockedUseCommandCompletion.mockReturnValue({
1671
+ ...mockCommandCompletion,
1672
+ showSuggestions: true,
1673
+ suggestions: [{ label: 'suggestion', value: 'suggestion' }],
1674
+ });
1675
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1676
+ await act(async () => {
1677
+ stdin.write('\x1B');
1678
+ vi.advanceTimersByTime(100);
1679
+ expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
1680
+ });
1681
+ unmount();
1682
+ });
1683
+ it('should not call onEscapePromptChange when not provided', async () => {
1684
+ props.onEscapePromptChange = undefined;
1685
+ props.buffer.setText('some text');
1686
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1687
+ await act(async () => {
1688
+ await vi.runAllTimersAsync();
1689
+ });
1690
+ await act(async () => {
1691
+ stdin.write('\x1B');
1692
+ });
1693
+ await act(async () => {
1694
+ await vi.runAllTimersAsync();
1695
+ });
1696
+ unmount();
1697
+ });
1698
+ it('should not interfere with existing keyboard shortcuts', async () => {
1699
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1700
+ await act(async () => {
1701
+ stdin.write('\x0C');
1702
+ });
1703
+ await waitFor(() => expect(props.onClearScreen).toHaveBeenCalled());
1704
+ await act(async () => {
1705
+ stdin.write('\x01');
1706
+ });
1707
+ await waitFor(() => expect(props.buffer.move).toHaveBeenCalledWith('home'));
1708
+ unmount();
1709
+ });
1710
+ });
1711
+ describe('reverse search', () => {
1712
+ beforeEach(async () => {
1713
+ props.shellModeActive = true;
1714
+ vi.mocked(useShellHistory).mockReturnValue({
1715
+ history: ['echo hello', 'echo world', 'ls'],
1716
+ getPreviousCommand: vi.fn(),
1717
+ getNextCommand: vi.fn(),
1718
+ addCommandToHistory: vi.fn(),
1719
+ resetHistoryPosition: vi.fn(),
1720
+ });
1721
+ });
1722
+ it('invokes reverse search on Ctrl+R', async () => {
1723
+ // Mock the reverse search completion to return suggestions
1724
+ mockedUseReverseSearchCompletion.mockReturnValue({
1725
+ ...mockReverseSearchCompletion,
1726
+ suggestions: [
1727
+ { label: 'echo hello', value: 'echo hello' },
1728
+ { label: 'echo world', value: 'echo world' },
1729
+ { label: 'ls', value: 'ls' },
1730
+ ],
1731
+ showSuggestions: true,
1732
+ activeSuggestionIndex: 0,
1733
+ });
1734
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1735
+ // Trigger reverse search with Ctrl+R
1736
+ await act(async () => {
1737
+ stdin.write('\x12');
1738
+ });
1739
+ await waitFor(() => {
1740
+ const frame = stdout.lastFrame();
1741
+ expect(frame).toContain('(r:)');
1742
+ expect(frame).toContain('echo hello');
1743
+ expect(frame).toContain('echo world');
1744
+ expect(frame).toContain('ls');
1745
+ });
1746
+ unmount();
1747
+ });
1748
+ it.each([
1749
+ { name: 'standard', escapeSequence: '\x1B' },
1750
+ { name: 'kitty', escapeSequence: '\u001b[27u' },
1751
+ ])('resets reverse search state on Escape ($name)', async ({ escapeSequence }) => {
1752
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1753
+ await act(async () => {
1754
+ stdin.write('\x12');
1755
+ });
1756
+ // Wait for reverse search to be active
1757
+ await waitFor(() => {
1758
+ expect(stdout.lastFrame()).toContain('(r:)');
1759
+ });
1760
+ await act(async () => {
1761
+ stdin.write(escapeSequence);
1762
+ });
1763
+ await waitFor(() => {
1764
+ expect(stdout.lastFrame()).not.toContain('(r:)');
1765
+ expect(stdout.lastFrame()).not.toContain('echo hello');
1766
+ });
1767
+ unmount();
1768
+ });
1769
+ it('completes the highlighted entry on Tab and exits reverse-search', async () => {
1770
+ // Mock the reverse search completion
1771
+ const mockHandleAutocomplete = vi.fn(() => {
1772
+ props.buffer.setText('echo hello');
1773
+ });
1774
+ mockedUseReverseSearchCompletion.mockImplementation((buffer, shellHistory, reverseSearchActive) => ({
1775
+ ...mockReverseSearchCompletion,
1776
+ suggestions: reverseSearchActive
1777
+ ? [
1778
+ { label: 'echo hello', value: 'echo hello' },
1779
+ { label: 'echo world', value: 'echo world' },
1780
+ { label: 'ls', value: 'ls' },
1781
+ ]
1782
+ : [],
1783
+ showSuggestions: reverseSearchActive,
1784
+ activeSuggestionIndex: reverseSearchActive ? 0 : -1,
1785
+ handleAutocomplete: mockHandleAutocomplete,
1786
+ }));
1787
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1788
+ // Enter reverse search mode with Ctrl+R
1789
+ await act(async () => {
1790
+ stdin.write('\x12');
1791
+ });
1792
+ // Verify reverse search is active
1793
+ await waitFor(() => {
1794
+ expect(stdout.lastFrame()).toContain('(r:)');
1795
+ });
1796
+ // Press Tab to complete the highlighted entry
1797
+ await act(async () => {
1798
+ stdin.write('\t');
1799
+ });
1800
+ await waitFor(() => {
1801
+ expect(mockHandleAutocomplete).toHaveBeenCalledWith(0);
1802
+ expect(props.buffer.setText).toHaveBeenCalledWith('echo hello');
1803
+ });
1804
+ unmount();
1805
+ }, 15000);
1806
+ it('submits the highlighted entry on Enter and exits reverse-search', async () => {
1807
+ // Mock the reverse search completion to return suggestions
1808
+ mockedUseReverseSearchCompletion.mockReturnValue({
1809
+ ...mockReverseSearchCompletion,
1810
+ suggestions: [
1811
+ { label: 'echo hello', value: 'echo hello' },
1812
+ { label: 'echo world', value: 'echo world' },
1813
+ { label: 'ls', value: 'ls' },
1814
+ ],
1815
+ showSuggestions: true,
1816
+ activeSuggestionIndex: 0,
1817
+ });
1818
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1819
+ await act(async () => {
1820
+ stdin.write('\x12');
1821
+ });
1822
+ await waitFor(() => {
1823
+ expect(stdout.lastFrame()).toContain('(r:)');
1824
+ });
1825
+ await act(async () => {
1826
+ stdin.write('\r');
1827
+ });
1828
+ await waitFor(() => {
1829
+ expect(stdout.lastFrame()).not.toContain('(r:)');
1830
+ });
1831
+ expect(props.onSubmit).toHaveBeenCalledWith('echo hello');
1832
+ unmount();
1833
+ });
1834
+ it('should restore text and cursor position after reverse search"', async () => {
1835
+ const initialText = 'initial text';
1836
+ const initialCursor = [0, 3];
1837
+ props.buffer.setText(initialText);
1838
+ props.buffer.cursor = initialCursor;
1839
+ // Mock the reverse search completion to be active and then reset
1840
+ mockedUseReverseSearchCompletion.mockImplementation((buffer, shellHistory, reverseSearchActiveFromInputPrompt) => ({
1841
+ ...mockReverseSearchCompletion,
1842
+ suggestions: reverseSearchActiveFromInputPrompt
1843
+ ? [{ label: 'history item', value: 'history item' }]
1844
+ : [],
1845
+ showSuggestions: reverseSearchActiveFromInputPrompt,
1846
+ }));
1847
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1848
+ // reverse search with Ctrl+R
1849
+ await act(async () => {
1850
+ stdin.write('\x12');
1851
+ });
1852
+ await waitFor(() => {
1853
+ expect(stdout.lastFrame()).toContain('(r:)');
1854
+ });
1855
+ // Press kitty escape key
1856
+ await act(async () => {
1857
+ stdin.write('\u001b[27u');
1858
+ });
1859
+ await waitFor(() => {
1860
+ expect(stdout.lastFrame()).not.toContain('(r:)');
1861
+ expect(props.buffer.text).toBe(initialText);
1862
+ expect(props.buffer.cursor).toEqual(initialCursor);
1863
+ });
1864
+ unmount();
1865
+ });
1866
+ });
1867
+ describe('Ctrl+E keyboard shortcut', () => {
1868
+ it('should move cursor to end of current line in multiline input', async () => {
1869
+ props.buffer.text = 'line 1\nline 2\nline 3';
1870
+ props.buffer.cursor = [1, 2];
1871
+ props.buffer.lines = ['line 1', 'line 2', 'line 3'];
1872
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1873
+ await act(async () => {
1874
+ stdin.write('\x05'); // Ctrl+E
1875
+ });
1876
+ await waitFor(() => {
1877
+ expect(props.buffer.move).toHaveBeenCalledWith('end');
1878
+ });
1879
+ expect(props.buffer.moveToOffset).not.toHaveBeenCalled();
1880
+ unmount();
1881
+ });
1882
+ it('should move cursor to end of current line for single line input', async () => {
1883
+ props.buffer.text = 'single line text';
1884
+ props.buffer.cursor = [0, 5];
1885
+ props.buffer.lines = ['single line text'];
1886
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1887
+ await act(async () => {
1888
+ stdin.write('\x05'); // Ctrl+E
1889
+ });
1890
+ await waitFor(() => {
1891
+ expect(props.buffer.move).toHaveBeenCalledWith('end');
1892
+ });
1893
+ expect(props.buffer.moveToOffset).not.toHaveBeenCalled();
1894
+ unmount();
1895
+ });
1896
+ });
1897
+ describe('command search (Ctrl+R when not in shell)', () => {
1898
+ it('enters command search on Ctrl+R and shows suggestions', async () => {
1899
+ props.shellModeActive = false;
1900
+ vi.mocked(useReverseSearchCompletion).mockImplementation((buffer, data, isActive) => ({
1901
+ ...mockReverseSearchCompletion,
1902
+ suggestions: isActive
1903
+ ? [
1904
+ { label: 'git commit -m "msg"', value: 'git commit -m "msg"' },
1905
+ { label: 'git push', value: 'git push' },
1906
+ ]
1907
+ : [],
1908
+ showSuggestions: !!isActive,
1909
+ activeSuggestionIndex: isActive ? 0 : -1,
1910
+ }));
1911
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1912
+ await act(async () => {
1913
+ stdin.write('\x12'); // Ctrl+R
1914
+ });
1915
+ await waitFor(() => {
1916
+ const frame = stdout.lastFrame() ?? '';
1917
+ expect(frame).toContain('(r:)');
1918
+ expect(frame).toContain('git commit');
1919
+ expect(frame).toContain('git push');
1920
+ });
1921
+ unmount();
1922
+ });
1923
+ it('expands and collapses long suggestion via Right/Left arrows', async () => {
1924
+ props.shellModeActive = false;
1925
+ const longValue = 'l'.repeat(200);
1926
+ vi.mocked(useReverseSearchCompletion).mockReturnValue({
1927
+ ...mockReverseSearchCompletion,
1928
+ suggestions: [{ label: longValue, value: longValue, matchedIndex: 0 }],
1929
+ showSuggestions: true,
1930
+ activeSuggestionIndex: 0,
1931
+ visibleStartIndex: 0,
1932
+ isLoadingSuggestions: false,
1933
+ });
1934
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1935
+ await act(async () => {
1936
+ stdin.write('\x12');
1937
+ });
1938
+ await waitFor(() => {
1939
+ expect(clean(stdout.lastFrame())).toContain('→');
1940
+ });
1941
+ await act(async () => {
1942
+ stdin.write('\u001B[C');
1943
+ });
1944
+ await waitFor(() => {
1945
+ expect(clean(stdout.lastFrame())).toContain('←');
1946
+ });
1947
+ expect(stdout.lastFrame()).toMatchSnapshot('command-search-render-expanded-match');
1948
+ await act(async () => {
1949
+ stdin.write('\u001B[D');
1950
+ });
1951
+ await waitFor(() => {
1952
+ expect(clean(stdout.lastFrame())).toContain('→');
1953
+ });
1954
+ expect(stdout.lastFrame()).toMatchSnapshot('command-search-render-collapsed-match');
1955
+ unmount();
1956
+ });
1957
+ it('renders match window and expanded view (snapshots)', async () => {
1958
+ props.shellModeActive = false;
1959
+ props.buffer.setText('commit');
1960
+ const label = 'git commit -m "feat: add search" in src/app';
1961
+ const matchedIndex = label.indexOf('commit');
1962
+ vi.mocked(useReverseSearchCompletion).mockReturnValue({
1963
+ ...mockReverseSearchCompletion,
1964
+ suggestions: [{ label, value: label, matchedIndex }],
1965
+ showSuggestions: true,
1966
+ activeSuggestionIndex: 0,
1967
+ visibleStartIndex: 0,
1968
+ isLoadingSuggestions: false,
1969
+ });
1970
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1971
+ await act(async () => {
1972
+ stdin.write('\x12');
1973
+ });
1974
+ await waitFor(() => {
1975
+ expect(stdout.lastFrame()).toMatchSnapshot('command-search-render-collapsed-match');
1976
+ });
1977
+ await act(async () => {
1978
+ stdin.write('\u001B[C');
1979
+ });
1980
+ await waitFor(() => {
1981
+ expect(stdout.lastFrame()).toMatchSnapshot('command-search-render-expanded-match');
1982
+ });
1983
+ unmount();
1984
+ });
1985
+ it('does not show expand/collapse indicator for short suggestions', async () => {
1986
+ props.shellModeActive = false;
1987
+ const shortValue = 'echo hello';
1988
+ vi.mocked(useReverseSearchCompletion).mockReturnValue({
1989
+ ...mockReverseSearchCompletion,
1990
+ suggestions: [{ label: shortValue, value: shortValue }],
1991
+ showSuggestions: true,
1992
+ activeSuggestionIndex: 0,
1993
+ visibleStartIndex: 0,
1994
+ isLoadingSuggestions: false,
1995
+ });
1996
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
1997
+ await act(async () => {
1998
+ stdin.write('\x12');
1999
+ });
2000
+ await waitFor(() => {
2001
+ const frame = clean(stdout.lastFrame());
2002
+ // Ensure it rendered the search mode
2003
+ expect(frame).toContain('(r:)');
2004
+ expect(frame).not.toContain('→');
2005
+ expect(frame).not.toContain('←');
2006
+ });
2007
+ unmount();
2008
+ });
2009
+ });
2010
+ describe('Tab focus toggle', () => {
2011
+ it.each([
2012
+ {
2013
+ name: 'should toggle focus in on Tab when no suggestions or ghost text',
2014
+ showSuggestions: false,
2015
+ ghostText: '',
2016
+ suggestions: [],
2017
+ expectedFocusToggle: true,
2018
+ },
2019
+ {
2020
+ name: 'should accept ghost text and NOT toggle focus on Tab',
2021
+ showSuggestions: false,
2022
+ ghostText: 'ghost text',
2023
+ suggestions: [],
2024
+ expectedFocusToggle: false,
2025
+ expectedAcceptCall: true,
2026
+ },
2027
+ {
2028
+ name: 'should NOT toggle focus on Tab when suggestions are present',
2029
+ showSuggestions: true,
2030
+ ghostText: '',
2031
+ suggestions: [{ label: 'test', value: 'test' }],
2032
+ expectedFocusToggle: false,
2033
+ },
2034
+ ])('$name', async ({ showSuggestions, ghostText, suggestions, expectedFocusToggle, expectedAcceptCall, }) => {
2035
+ const mockAccept = vi.fn();
2036
+ mockedUseCommandCompletion.mockReturnValue({
2037
+ ...mockCommandCompletion,
2038
+ showSuggestions,
2039
+ suggestions,
2040
+ promptCompletion: {
2041
+ text: ghostText,
2042
+ accept: mockAccept,
2043
+ clear: vi.fn(),
2044
+ isLoading: false,
2045
+ isActive: ghostText !== '',
2046
+ markSelected: vi.fn(),
2047
+ },
2048
+ });
2049
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
2050
+ uiActions,
2051
+ uiState: { activePtyId: 1 },
2052
+ });
2053
+ await act(async () => {
2054
+ stdin.write('\t');
2055
+ });
2056
+ await waitFor(() => {
2057
+ if (expectedFocusToggle) {
2058
+ expect(uiActions.setEmbeddedShellFocused).toHaveBeenCalledWith(true);
2059
+ }
2060
+ else {
2061
+ expect(uiActions.setEmbeddedShellFocused).not.toHaveBeenCalled();
2062
+ }
2063
+ if (expectedAcceptCall) {
2064
+ expect(mockAccept).toHaveBeenCalled();
2065
+ }
2066
+ });
2067
+ unmount();
2068
+ });
2069
+ });
2070
+ describe('mouse interaction', () => {
2071
+ it.each([
2072
+ {
2073
+ name: 'first line, first char',
2074
+ relX: 0,
2075
+ relY: 0,
2076
+ mouseCol: 5,
2077
+ mouseRow: 2,
2078
+ },
2079
+ {
2080
+ name: 'first line, middle char',
2081
+ relX: 6,
2082
+ relY: 0,
2083
+ mouseCol: 11,
2084
+ mouseRow: 2,
2085
+ },
2086
+ {
2087
+ name: 'second line, first char',
2088
+ relX: 0,
2089
+ relY: 1,
2090
+ mouseCol: 5,
2091
+ mouseRow: 3,
2092
+ },
2093
+ {
2094
+ name: 'second line, end char',
2095
+ relX: 5,
2096
+ relY: 1,
2097
+ mouseCol: 10,
2098
+ mouseRow: 3,
2099
+ },
2100
+ ])('should move cursor on mouse click - $name', async ({ relX, relY, mouseCol, mouseRow }) => {
2101
+ props.buffer.text = 'hello world\nsecond line';
2102
+ props.buffer.lines = ['hello world', 'second line'];
2103
+ props.buffer.viewportVisualLines = ['hello world', 'second line'];
2104
+ props.buffer.visualToLogicalMap = [
2105
+ [0, 0],
2106
+ [1, 0],
2107
+ ];
2108
+ props.buffer.visualCursor = [0, 11];
2109
+ props.buffer.visualScrollRow = 0;
2110
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), { mouseEventsEnabled: true, uiActions });
2111
+ // Wait for initial render
2112
+ await waitFor(() => {
2113
+ expect(stdout.lastFrame()).toContain('hello world');
2114
+ });
2115
+ // Simulate left mouse press at calculated coordinates.
2116
+ // Assumes inner box is at x=4, y=1 based on border(1)+padding(1)+prompt(2) and border-top(1).
2117
+ await act(async () => {
2118
+ stdin.write(`\x1b[<0;${mouseCol};${mouseRow}M`);
2119
+ });
2120
+ await waitFor(() => {
2121
+ expect(props.buffer.moveToVisualPosition).toHaveBeenCalledWith(relY, relX);
2122
+ });
2123
+ unmount();
2124
+ });
2125
+ it('should unfocus embedded shell on click', async () => {
2126
+ props.buffer.text = 'hello';
2127
+ props.buffer.lines = ['hello'];
2128
+ props.buffer.viewportVisualLines = ['hello'];
2129
+ props.buffer.visualToLogicalMap = [[0, 0]];
2130
+ props.isEmbeddedShellFocused = true;
2131
+ const { stdin, stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), { mouseEventsEnabled: true, uiActions });
2132
+ await waitFor(() => {
2133
+ expect(stdout.lastFrame()).toContain('hello');
2134
+ });
2135
+ await act(async () => {
2136
+ // Click somewhere in the prompt
2137
+ stdin.write(`\x1b[<0;5;2M`);
2138
+ });
2139
+ await waitFor(() => {
2140
+ expect(mockSetEmbeddedShellFocused).toHaveBeenCalledWith(false);
2141
+ });
2142
+ unmount();
2143
+ });
2144
+ });
2145
+ describe('queued message editing', () => {
2146
+ it('should load all queued messages when up arrow is pressed with empty input', async () => {
2147
+ const mockPopAllMessages = vi.fn();
2148
+ mockPopAllMessages.mockReturnValue('Message 1\n\nMessage 2\n\nMessage 3');
2149
+ props.popAllMessages = mockPopAllMessages;
2150
+ props.buffer.text = '';
2151
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2152
+ await act(async () => {
2153
+ stdin.write('\u001B[A');
2154
+ });
2155
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2156
+ expect(props.buffer.setText).toHaveBeenCalledWith('Message 1\n\nMessage 2\n\nMessage 3');
2157
+ unmount();
2158
+ });
2159
+ it('should not load queued messages when input is not empty', async () => {
2160
+ const mockPopAllMessages = vi.fn();
2161
+ props.popAllMessages = mockPopAllMessages;
2162
+ props.buffer.text = 'some text';
2163
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2164
+ await act(async () => {
2165
+ stdin.write('\u001B[A');
2166
+ });
2167
+ await waitFor(() => expect(mockInputHistory.navigateUp).toHaveBeenCalled());
2168
+ expect(mockPopAllMessages).not.toHaveBeenCalled();
2169
+ unmount();
2170
+ });
2171
+ it('should handle undefined messages from popAllMessages', async () => {
2172
+ const mockPopAllMessages = vi.fn();
2173
+ mockPopAllMessages.mockReturnValue(undefined);
2174
+ props.popAllMessages = mockPopAllMessages;
2175
+ props.buffer.text = '';
2176
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2177
+ await act(async () => {
2178
+ stdin.write('\u001B[A');
2179
+ });
2180
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2181
+ expect(props.buffer.setText).not.toHaveBeenCalled();
2182
+ expect(mockInputHistory.navigateUp).toHaveBeenCalled();
2183
+ unmount();
2184
+ });
2185
+ it('should work with NAVIGATION_UP key as well', async () => {
2186
+ const mockPopAllMessages = vi.fn();
2187
+ props.popAllMessages = mockPopAllMessages;
2188
+ props.buffer.text = '';
2189
+ props.buffer.allVisualLines = [''];
2190
+ props.buffer.visualCursor = [0, 0];
2191
+ props.buffer.visualScrollRow = 0;
2192
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2193
+ await act(async () => {
2194
+ stdin.write('\u001B[A');
2195
+ });
2196
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2197
+ unmount();
2198
+ });
2199
+ it('should handle single queued message', async () => {
2200
+ const mockPopAllMessages = vi.fn();
2201
+ mockPopAllMessages.mockReturnValue('Single message');
2202
+ props.popAllMessages = mockPopAllMessages;
2203
+ props.buffer.text = '';
2204
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2205
+ await act(async () => {
2206
+ stdin.write('\u001B[A');
2207
+ });
2208
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2209
+ expect(props.buffer.setText).toHaveBeenCalledWith('Single message');
2210
+ unmount();
2211
+ });
2212
+ it('should only check for queued messages when buffer text is trimmed empty', async () => {
2213
+ const mockPopAllMessages = vi.fn();
2214
+ props.popAllMessages = mockPopAllMessages;
2215
+ props.buffer.text = ' '; // Whitespace only
2216
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2217
+ await act(async () => {
2218
+ stdin.write('\u001B[A');
2219
+ });
2220
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2221
+ unmount();
2222
+ });
2223
+ it('should not call popAllMessages if it is not provided', async () => {
2224
+ props.popAllMessages = undefined;
2225
+ props.buffer.text = '';
2226
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2227
+ await act(async () => {
2228
+ stdin.write('\u001B[A');
2229
+ });
2230
+ await waitFor(() => expect(mockInputHistory.navigateUp).toHaveBeenCalled());
2231
+ unmount();
2232
+ });
2233
+ it('should navigate input history on fresh start when no queued messages exist', async () => {
2234
+ const mockPopAllMessages = vi.fn();
2235
+ mockPopAllMessages.mockReturnValue(undefined);
2236
+ props.popAllMessages = mockPopAllMessages;
2237
+ props.buffer.text = '';
2238
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2239
+ await act(async () => {
2240
+ stdin.write('\u001B[A');
2241
+ });
2242
+ await waitFor(() => expect(mockPopAllMessages).toHaveBeenCalled());
2243
+ expect(mockInputHistory.navigateUp).toHaveBeenCalled();
2244
+ expect(props.buffer.setText).not.toHaveBeenCalled();
2245
+ unmount();
2246
+ });
2247
+ });
2248
+ describe('snapshots', () => {
2249
+ it('should render correctly in shell mode', async () => {
2250
+ props.shellModeActive = true;
2251
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2252
+ await waitFor(() => expect(stdout.lastFrame()).toMatchSnapshot());
2253
+ unmount();
2254
+ });
2255
+ it('should render correctly when accepting edits', async () => {
2256
+ props.approvalMode = ApprovalMode.AUTO_EDIT;
2257
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2258
+ await waitFor(() => expect(stdout.lastFrame()).toMatchSnapshot());
2259
+ unmount();
2260
+ });
2261
+ it('should render correctly in yolo mode', async () => {
2262
+ props.approvalMode = ApprovalMode.YOLO;
2263
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2264
+ await waitFor(() => expect(stdout.lastFrame()).toMatchSnapshot());
2265
+ unmount();
2266
+ });
2267
+ it('should not show inverted cursor when shell is focused', async () => {
2268
+ props.isEmbeddedShellFocused = true;
2269
+ props.focus = false;
2270
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2271
+ await waitFor(() => {
2272
+ expect(stdout.lastFrame()).not.toContain(`{chalk.inverse(' ')}`);
2273
+ expect(stdout.lastFrame()).toMatchSnapshot();
2274
+ });
2275
+ unmount();
2276
+ });
2277
+ });
2278
+ it('should still allow input when shell is not focused', async () => {
2279
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }), {
2280
+ shellFocus: false,
2281
+ });
2282
+ await act(async () => {
2283
+ stdin.write('a');
2284
+ });
2285
+ await waitFor(() => expect(mockBuffer.handleInput).toHaveBeenCalled());
2286
+ unmount();
2287
+ });
2288
+ describe('command queuing while streaming', () => {
2289
+ beforeEach(() => {
2290
+ props.streamingState = StreamingState.Responding;
2291
+ props.setQueueErrorMessage = vi.fn();
2292
+ props.onSubmit = vi.fn();
2293
+ });
2294
+ it.each([
2295
+ {
2296
+ name: 'should prevent slash commands',
2297
+ bufferText: '/help',
2298
+ shellMode: false,
2299
+ shouldSubmit: false,
2300
+ errorMessage: 'Slash commands cannot be queued',
2301
+ },
2302
+ {
2303
+ name: 'should prevent shell commands',
2304
+ bufferText: 'ls',
2305
+ shellMode: true,
2306
+ shouldSubmit: false,
2307
+ errorMessage: 'Shell commands cannot be queued',
2308
+ },
2309
+ {
2310
+ name: 'should allow regular messages',
2311
+ bufferText: 'regular message',
2312
+ shellMode: false,
2313
+ shouldSubmit: true,
2314
+ errorMessage: null,
2315
+ },
2316
+ ])('$name', async ({ bufferText, shellMode, shouldSubmit, errorMessage }) => {
2317
+ props.buffer.text = bufferText;
2318
+ props.shellModeActive = shellMode;
2319
+ const { stdin, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2320
+ await act(async () => {
2321
+ stdin.write('\r');
2322
+ });
2323
+ await waitFor(() => {
2324
+ if (shouldSubmit) {
2325
+ expect(props.onSubmit).toHaveBeenCalledWith(bufferText);
2326
+ expect(props.setQueueErrorMessage).not.toHaveBeenCalled();
2327
+ }
2328
+ else {
2329
+ expect(props.onSubmit).not.toHaveBeenCalled();
2330
+ expect(props.setQueueErrorMessage).toHaveBeenCalledWith(errorMessage);
2331
+ }
2332
+ });
2333
+ unmount();
2334
+ });
2335
+ });
2336
+ describe('image path transformation snapshots', () => {
2337
+ const logicalLine = '@/path/to/screenshots/screenshot2x.png';
2338
+ const transformations = calculateTransformationsForLine(logicalLine);
2339
+ const applyVisualState = (visualLine, cursorCol) => {
2340
+ mockBuffer.text = logicalLine;
2341
+ mockBuffer.lines = [logicalLine];
2342
+ mockBuffer.viewportVisualLines = [visualLine];
2343
+ mockBuffer.allVisualLines = [visualLine];
2344
+ mockBuffer.visualToLogicalMap = [[0, 0]];
2345
+ mockBuffer.visualToTransformedMap = [0];
2346
+ mockBuffer.transformationsByLine = [transformations];
2347
+ mockBuffer.cursor = [0, cursorCol];
2348
+ mockBuffer.visualCursor = [0, 0];
2349
+ };
2350
+ it('should snapshot collapsed image path', async () => {
2351
+ const { transformedLine } = calculateTransformedLine(logicalLine, 0, [0, transformations[0].logEnd + 5], transformations);
2352
+ applyVisualState(transformedLine, transformations[0].logEnd + 5);
2353
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2354
+ await waitFor(() => {
2355
+ expect(stdout.lastFrame()).toMatchSnapshot();
2356
+ });
2357
+ unmount();
2358
+ });
2359
+ it('should snapshot expanded image path when cursor is on it', async () => {
2360
+ const { transformedLine } = calculateTransformedLine(logicalLine, 0, [0, transformations[0].logStart + 1], transformations);
2361
+ applyVisualState(transformedLine, transformations[0].logStart + 1);
2362
+ const { stdout, unmount } = renderWithProviders(_jsx(InputPrompt, { ...props }));
2363
+ await waitFor(() => {
2364
+ expect(stdout.lastFrame()).toMatchSnapshot();
2365
+ });
2366
+ unmount();
2367
+ });
2368
+ });
2369
+ });
2370
+ function clean(str) {
2371
+ if (!str)
2372
+ return '';
2373
+ // Remove ANSI escape codes and trim whitespace
2374
+ return stripAnsi(str).trim();
2375
+ }
2376
+ //# sourceMappingURL=InputPrompt.test.js.map