@claudiolabs/claudin 0.5.13 → 0.5.14

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 (851) hide show
  1. package/bin/claudin +26 -0
  2. package/dist/chunks/AgentTool-0.5.14-ka5wbadf.mjs +1 -0
  3. package/dist/chunks/App-0.5.14-x714qge6.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.5.14-6nm0jbxj.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.5.14-7hhwh7yd.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.5.14-pb4xjhhm.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.5.14-8a3gxq1p.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.14-jsf36abf.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.5.14-gb4tkybg.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.5.14-mzjz3dmq.mjs +3 -0
  11. package/dist/chunks/Doctor-0.5.14-deqdqs2y.mjs +1 -0
  12. package/dist/chunks/Grove-0.5.14-zj5vsq17.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.5.14-vc2v0d30.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.5.14-99drb087.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.5.14-cx07mwzh.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.5.14-2n9dg022.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.5.14-peymefv5.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.5.14-00vppy63.mjs +1 -0
  19. package/dist/chunks/REPL-0.5.14-bewb9pnz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.5.14-j7hzavxp.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.5.14-bz9qwn3m.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.5.14-5k9g7jnn.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.5.14-v04nvw78.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.5.14-91kfwccd.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.5.14-egq2w642.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.5.14-nt5waewd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.5.14-x3ns8q41.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.5.14-zmyztc9d.mjs +1 -0
  29. package/dist/chunks/add-dir-0.5.14-m1bgsa5k.mjs +1 -0
  30. package/dist/chunks/agents-0.5.14-7493pd9j.mjs +3 -0
  31. package/dist/chunks/agents-0.5.14-g33swkvh.mjs +110 -0
  32. package/dist/chunks/api-0.5.14-n9d664hq.mjs +1 -0
  33. package/dist/chunks/asciicast-0.5.14-cdw29gxq.mjs +1 -0
  34. package/dist/chunks/assistant-0.5.14-5ttn63vc.mjs +1 -0
  35. package/dist/chunks/auth-0.5.14-cn5sbpmt.mjs +1 -0
  36. package/dist/chunks/auth-0.5.14-daysvmja.mjs +1 -0
  37. package/dist/chunks/autoMode-0.5.14-6w3n0461.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.5.14-w6ksev5d.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.5.14-v09b9v3d.mjs +1 -0
  40. package/dist/chunks/branch-0.5.14-mk8vbtcd.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.5.14-qm9kdp95.mjs +1 -0
  42. package/dist/chunks/btw-0.5.14-fnbs5xz3.mjs +1 -0
  43. package/dist/chunks/buddy-0.5.14-m0fpeg6d.mjs +3 -0
  44. package/dist/chunks/cacache-0.5.14-sxk12nzn.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.5.14-wnnzjne3.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.5.14-w0h102n4.mjs +4 -0
  47. package/dist/chunks/caches-0.5.14-37cvhfpr.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.5.14-vsxz691t.mjs +1 -0
  49. package/dist/chunks/claudemd-0.5.14-tp1vgk3z.mjs +1 -0
  50. package/dist/chunks/clear-0.5.14-y27axrbf.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.5.14-5x5qjbpr.mjs +1 -0
  52. package/dist/chunks/cli-0.5.14-091bzaxj.mjs +2 -0
  53. package/dist/chunks/cli-0.5.14-0q3cgg09.mjs +2 -0
  54. package/dist/chunks/cli-0.5.14-0xpjxnvf.mjs +3 -0
  55. package/dist/chunks/cli-0.5.14-0yttjd5j.mjs +2 -0
  56. package/dist/chunks/cli-0.5.14-143vggzh.mjs +45 -0
  57. package/dist/chunks/cli-0.5.14-16ak6yfx.mjs +1 -0
  58. package/dist/chunks/cli-0.5.14-1d34ehpy.mjs +16 -0
  59. package/dist/chunks/cli-0.5.14-1dm5x2bp.mjs +2 -0
  60. package/dist/chunks/cli-0.5.14-1gr6bex0.mjs +2 -0
  61. package/dist/chunks/cli-0.5.14-1hazt8y4.mjs +50 -0
  62. package/dist/chunks/cli-0.5.14-1n5t7fhh.mjs +6 -0
  63. package/dist/chunks/cli-0.5.14-1ttqdawg.mjs +2 -0
  64. package/dist/chunks/cli-0.5.14-1ysbyz3f.mjs +21 -0
  65. package/dist/chunks/cli-0.5.14-20jyzpyr.mjs +2 -0
  66. package/dist/chunks/cli-0.5.14-20vxp61q.mjs +2 -0
  67. package/dist/chunks/cli-0.5.14-21qmk948.mjs +3 -0
  68. package/dist/chunks/cli-0.5.14-26qxsgry.mjs +2 -0
  69. package/dist/chunks/cli-0.5.14-2get61vb.mjs +15 -0
  70. package/dist/chunks/cli-0.5.14-2m40h4kp.mjs +5 -0
  71. package/dist/chunks/cli-0.5.14-2nfr4a2g.mjs +2 -0
  72. package/dist/chunks/cli-0.5.14-2pafgvs4.mjs +2 -0
  73. package/dist/chunks/cli-0.5.14-3f5mbe3a.mjs +2 -0
  74. package/dist/chunks/cli-0.5.14-3pq7th32.mjs +2 -0
  75. package/dist/chunks/cli-0.5.14-3rsvr6t8.mjs +2 -0
  76. package/dist/chunks/cli-0.5.14-41jtw8ac.mjs +2 -0
  77. package/dist/chunks/cli-0.5.14-4367p06d.mjs +9 -0
  78. package/dist/chunks/cli-0.5.14-45c9ydpj.mjs +2 -0
  79. package/dist/chunks/cli-0.5.14-493n054v.mjs +3 -0
  80. package/dist/chunks/cli-0.5.14-4d1vgx1q.mjs +2 -0
  81. package/dist/chunks/cli-0.5.14-4h0hxm6g.mjs +2 -0
  82. package/dist/chunks/cli-0.5.14-4khekra9.mjs +2 -0
  83. package/dist/chunks/cli-0.5.14-4swh9njd.mjs +2 -0
  84. package/dist/chunks/cli-0.5.14-5008zpga.mjs +2 -0
  85. package/dist/chunks/cli-0.5.14-50yq8sa4.mjs +2 -0
  86. package/dist/chunks/cli-0.5.14-5gkrj1ak.mjs +2 -0
  87. package/dist/chunks/cli-0.5.14-5tjkdtp9.mjs +2 -0
  88. package/dist/chunks/cli-0.5.14-60yczvwy.mjs +133 -0
  89. package/dist/chunks/cli-0.5.14-63x4db8w.mjs +133 -0
  90. package/dist/chunks/cli-0.5.14-64rpppf8.mjs +18 -0
  91. package/dist/chunks/cli-0.5.14-685647jf.mjs +7 -0
  92. package/dist/chunks/cli-0.5.14-6937x3w3.mjs +2 -0
  93. package/dist/chunks/cli-0.5.14-6eea9ezs.mjs +4 -0
  94. package/dist/chunks/cli-0.5.14-6fk534v0.mjs +17 -0
  95. package/dist/chunks/cli-0.5.14-6kksfjy8.mjs +2 -0
  96. package/dist/chunks/cli-0.5.14-6raawc34.mjs +6 -0
  97. package/dist/chunks/cli-0.5.14-6yty6gqs.mjs +20 -0
  98. package/dist/chunks/cli-0.5.14-73ackmw7.mjs +2 -0
  99. package/dist/chunks/cli-0.5.14-7m77sfxk.mjs +58 -0
  100. package/dist/chunks/cli-0.5.14-7pgk96hh.mjs +2 -0
  101. package/dist/chunks/cli-0.5.14-7rnbh7ne.mjs +2 -0
  102. package/dist/chunks/cli-0.5.14-8azez85y.mjs +2 -0
  103. package/dist/chunks/cli-0.5.14-8f89rfzv.mjs +2 -0
  104. package/dist/chunks/cli-0.5.14-8kb1432a.mjs +2 -0
  105. package/dist/chunks/cli-0.5.14-8qymm509.mjs +2 -0
  106. package/dist/chunks/cli-0.5.14-9d7p6385.mjs +2 -0
  107. package/dist/chunks/cli-0.5.14-9h71xtmr.mjs +2 -0
  108. package/dist/chunks/cli-0.5.14-9j1dsrh1.mjs +2 -0
  109. package/dist/chunks/cli-0.5.14-9wya0d3v.mjs +2 -0
  110. package/dist/chunks/cli-0.5.14-9xvhzhkm.mjs +3 -0
  111. package/dist/chunks/cli-0.5.14-ahpdwf0v.mjs +2 -0
  112. package/dist/chunks/cli-0.5.14-an5qgv3a.mjs +2 -0
  113. package/dist/chunks/cli-0.5.14-anv6260e.mjs +2 -0
  114. package/dist/chunks/cli-0.5.14-aqeeb0f5.mjs +2 -0
  115. package/dist/chunks/cli-0.5.14-avm7rqss.mjs +3 -0
  116. package/dist/chunks/cli-0.5.14-aw48m66c.mjs +2 -0
  117. package/dist/chunks/cli-0.5.14-axshc74p.mjs +2 -0
  118. package/dist/chunks/cli-0.5.14-b0d1cwrx.mjs +2 -0
  119. package/dist/chunks/cli-0.5.14-b2pmvy9z.mjs +2 -0
  120. package/dist/chunks/cli-0.5.14-b2y4c4qz.mjs +2 -0
  121. package/dist/chunks/cli-0.5.14-bfcf75rz.mjs +2 -0
  122. package/dist/chunks/cli-0.5.14-bwk8tz6z.mjs +2 -0
  123. package/dist/chunks/cli-0.5.14-c4t8gdgj.mjs +2 -0
  124. package/dist/chunks/cli-0.5.14-c5w3y4bc.mjs +2 -0
  125. package/dist/chunks/cli-0.5.14-c9j9jsmz.mjs +3 -0
  126. package/dist/chunks/cli-0.5.14-cegh4n4e.mjs +2 -0
  127. package/dist/chunks/cli-0.5.14-ckv99ms5.mjs +2 -0
  128. package/dist/chunks/cli-0.5.14-cw6v5vt0.mjs +18 -0
  129. package/dist/chunks/cli-0.5.14-d1dqcsvv.mjs +18 -0
  130. package/dist/chunks/cli-0.5.14-d26aykc0.mjs +2 -0
  131. package/dist/chunks/cli-0.5.14-d46mhdrz.mjs +2 -0
  132. package/dist/chunks/cli-0.5.14-d4frp6k6.mjs +2 -0
  133. package/dist/chunks/cli-0.5.14-d5t0sr9t.mjs +2 -0
  134. package/dist/chunks/cli-0.5.14-dmbyd0sa.mjs +2 -0
  135. package/dist/chunks/cli-0.5.14-dpcawxem.mjs +2 -0
  136. package/dist/chunks/cli-0.5.14-dpys58zb.mjs +12 -0
  137. package/dist/chunks/cli-0.5.14-dqhxbxb7.mjs +2 -0
  138. package/dist/chunks/cli-0.5.14-e0f671ax.mjs +2 -0
  139. package/dist/chunks/cli-0.5.14-e3gxn67m.mjs +4 -0
  140. package/dist/chunks/cli-0.5.14-e9wbczy7.mjs +2 -0
  141. package/dist/chunks/cli-0.5.14-easqaf33.mjs +2 -0
  142. package/dist/chunks/cli-0.5.14-ef8ctc2m.mjs +4 -0
  143. package/dist/chunks/cli-0.5.14-efp8wjg1.mjs +2 -0
  144. package/dist/chunks/cli-0.5.14-en3hbpe6.mjs +2 -0
  145. package/dist/chunks/cli-0.5.14-fbvy5zb9.mjs +2 -0
  146. package/dist/chunks/cli-0.5.14-g3h8xpqj.mjs +2 -0
  147. package/dist/chunks/cli-0.5.14-g91kxyj3.mjs +17 -0
  148. package/dist/chunks/cli-0.5.14-gdb0dvne.mjs +2 -0
  149. package/dist/chunks/cli-0.5.14-gjegk0er.mjs +2 -0
  150. package/dist/chunks/cli-0.5.14-gm5kmg2w.mjs +2 -0
  151. package/dist/chunks/cli-0.5.14-gscd2x4f.mjs +4 -0
  152. package/dist/chunks/cli-0.5.14-gxtw8dhr.mjs +15 -0
  153. package/dist/chunks/cli-0.5.14-h5pkzt2b.mjs +2 -0
  154. package/dist/chunks/cli-0.5.14-h61trenx.mjs +2 -0
  155. package/dist/chunks/cli-0.5.14-h72zd06s.mjs +2 -0
  156. package/dist/chunks/cli-0.5.14-hanfd2pz.mjs +2 -0
  157. package/dist/chunks/cli-0.5.14-jad7e0eg.mjs +2 -0
  158. package/dist/chunks/cli-0.5.14-jdvea9zv.mjs +10 -0
  159. package/dist/chunks/cli-0.5.14-jf3et57a.mjs +5316 -0
  160. package/dist/chunks/cli-0.5.14-jff31gdc.mjs +2 -0
  161. package/dist/chunks/cli-0.5.14-jm5cqnt7.mjs +2 -0
  162. package/dist/chunks/cli-0.5.14-jrcr7y5a.mjs +2 -0
  163. package/dist/chunks/cli-0.5.14-k4pqcfd4.mjs +2 -0
  164. package/dist/chunks/cli-0.5.14-k8g7xd1q.mjs +2 -0
  165. package/dist/chunks/cli-0.5.14-k9xvwt73.mjs +2 -0
  166. package/dist/chunks/cli-0.5.14-kbqdxnzh.mjs +2 -0
  167. package/dist/chunks/cli-0.5.14-kt358a3h.mjs +2 -0
  168. package/dist/chunks/cli-0.5.14-m7skqd4q.mjs +2 -0
  169. package/dist/chunks/cli-0.5.14-m9p42h1g.mjs +2 -0
  170. package/dist/chunks/cli-0.5.14-mdmz1bw1.mjs +2 -0
  171. package/dist/chunks/cli-0.5.14-mkr2nerd.mjs +2 -0
  172. package/dist/chunks/cli-0.5.14-mqepr6k4.mjs +2 -0
  173. package/dist/chunks/cli-0.5.14-mqp3fc5k.mjs +2 -0
  174. package/dist/chunks/cli-0.5.14-mt7egvs8.mjs +2 -0
  175. package/dist/chunks/cli-0.5.14-mys2py3s.mjs +2 -0
  176. package/dist/chunks/cli-0.5.14-n1wzvy0k.mjs +2 -0
  177. package/dist/chunks/cli-0.5.14-n5069ej6.mjs +2 -0
  178. package/dist/chunks/cli-0.5.14-nd1cyqtv.mjs +2 -0
  179. package/dist/chunks/cli-0.5.14-ndq9rhn7.mjs +193 -0
  180. package/dist/chunks/cli-0.5.14-nef9j9x3.mjs +67 -0
  181. package/dist/chunks/cli-0.5.14-nhz1s6yj.mjs +24 -0
  182. package/dist/chunks/cli-0.5.14-nkmxan04.mjs +2 -0
  183. package/dist/chunks/cli-0.5.14-np80e4h0.mjs +2 -0
  184. package/dist/chunks/cli-0.5.14-nx2k2fc6.mjs +2 -0
  185. package/dist/chunks/cli-0.5.14-p8gq7nq3.mjs +2 -0
  186. package/dist/chunks/cli-0.5.14-pd7b7t5h.mjs +3 -0
  187. package/dist/chunks/cli-0.5.14-pdz4gbap.mjs +2 -0
  188. package/dist/chunks/cli-0.5.14-pftvwkk8.mjs +4 -0
  189. package/dist/chunks/cli-0.5.14-pr6tse5d.mjs +2 -0
  190. package/dist/chunks/cli-0.5.14-pvx7sqsj.mjs +2 -0
  191. package/dist/chunks/cli-0.5.14-q8y3c8ja.mjs +3 -0
  192. package/dist/chunks/cli-0.5.14-qa02d35p.mjs +3 -0
  193. package/dist/chunks/cli-0.5.14-qb0wcr18.mjs +24 -0
  194. package/dist/chunks/cli-0.5.14-qc6a2vcb.mjs +2 -0
  195. package/dist/chunks/cli-0.5.14-qcmh02jt.mjs +4 -0
  196. package/dist/chunks/cli-0.5.14-qcrttwqb.mjs +2 -0
  197. package/dist/chunks/cli-0.5.14-qhgp0jp4.mjs +4 -0
  198. package/dist/chunks/cli-0.5.14-qwa1c8w2.mjs +34 -0
  199. package/dist/chunks/cli-0.5.14-r38faawy.mjs +2 -0
  200. package/dist/chunks/cli-0.5.14-r61p0n6x.mjs +2 -0
  201. package/dist/chunks/cli-0.5.14-r66bevxp.mjs +2 -0
  202. package/dist/chunks/cli-0.5.14-r8f2hssc.mjs +59 -0
  203. package/dist/chunks/cli-0.5.14-rfbqq3z1.mjs +2 -0
  204. package/dist/chunks/cli-0.5.14-rj1nh8jm.mjs +2 -0
  205. package/dist/chunks/cli-0.5.14-s5wgj31r.mjs +15 -0
  206. package/dist/chunks/cli-0.5.14-s6vd2h5w.mjs +2 -0
  207. package/dist/chunks/cli-0.5.14-sg9wjwba.mjs +5 -0
  208. package/dist/chunks/cli-0.5.14-svdmqpzs.mjs +12 -0
  209. package/dist/chunks/cli-0.5.14-sx666s0x.mjs +2 -0
  210. package/dist/chunks/cli-0.5.14-t32fswzp.mjs +2 -0
  211. package/dist/chunks/cli-0.5.14-t3d6ycsp.mjs +2 -0
  212. package/dist/chunks/cli-0.5.14-t72p44x7.mjs +2 -0
  213. package/dist/chunks/cli-0.5.14-tdaq69ga.mjs +4 -0
  214. package/dist/chunks/cli-0.5.14-tgeskqzs.mjs +2 -0
  215. package/dist/chunks/cli-0.5.14-tmc3jcgf.mjs +5 -0
  216. package/dist/chunks/cli-0.5.14-tqnsct7g.mjs +39 -0
  217. package/dist/chunks/cli-0.5.14-v6kjcfbm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.14-vbnr7r6e.mjs +2 -0
  219. package/dist/chunks/cli-0.5.14-vf6t34v8.mjs +2 -0
  220. package/dist/chunks/cli-0.5.14-vhj1gfhf.mjs +2 -0
  221. package/dist/chunks/cli-0.5.14-vq78tz92.mjs +2 -0
  222. package/dist/chunks/cli-0.5.14-vqk0h33w.mjs +4 -0
  223. package/dist/chunks/cli-0.5.14-wbj99kyq.mjs +2 -0
  224. package/dist/chunks/cli-0.5.14-wnmt9qkk.mjs +2 -0
  225. package/dist/chunks/cli-0.5.14-wq0qfb4r.mjs +2 -0
  226. package/dist/chunks/cli-0.5.14-xad83fbb.mjs +2 -0
  227. package/dist/chunks/cli-0.5.14-xc847091.mjs +2 -0
  228. package/dist/chunks/cli-0.5.14-xeawxepw.mjs +2 -0
  229. package/dist/chunks/cli-0.5.14-xevr51kc.mjs +3 -0
  230. package/dist/chunks/cli-0.5.14-xjdw6amg.mjs +9 -0
  231. package/dist/chunks/cli-0.5.14-y22mbspw.mjs +3 -0
  232. package/dist/chunks/cli-0.5.14-y3kkm5vp.mjs +2 -0
  233. package/dist/chunks/cli-0.5.14-ya2ykcd6.mjs +2 -0
  234. package/dist/chunks/cli-0.5.14-yafpkp67.mjs +3 -0
  235. package/dist/chunks/cli-0.5.14-yfh9te0f.mjs +2 -0
  236. package/dist/chunks/cli-0.5.14-yms71vy8.mjs +4 -0
  237. package/dist/chunks/cli-0.5.14-ytt72j1r.mjs +2 -0
  238. package/dist/chunks/cli-0.5.14-z1wt52vd.mjs +2 -0
  239. package/dist/chunks/cli-0.5.14-z1zfnf2j.mjs +25 -0
  240. package/dist/chunks/cli-0.5.14-z2kvxbjn.mjs +8 -0
  241. package/dist/chunks/cli-0.5.14-z55jz0h2.mjs +12 -0
  242. package/dist/chunks/cli-0.5.14-ze38m3e0.mjs +42 -0
  243. package/dist/chunks/cli-0.5.14-zm1c93pa.mjs +6 -0
  244. package/dist/chunks/cli-0.5.14-zpggrnj1.mjs +2 -0
  245. package/dist/chunks/client-0.5.14-7m64ax0b.mjs +1 -0
  246. package/dist/chunks/color-0.5.14-gsm9gxpa.mjs +1 -0
  247. package/dist/chunks/compact-0.5.14-pqfy772p.mjs +3 -0
  248. package/dist/chunks/config-0.5.14-hdw0yb76.mjs +1 -0
  249. package/dist/chunks/config-0.5.14-k01b10a5.mjs +1 -0
  250. package/dist/chunks/constants-0.5.14-g7s59vvv.mjs +1 -0
  251. package/dist/chunks/context-0.5.14-0y16jvz3.mjs +1 -0
  252. package/dist/chunks/context-noninteractive-0.5.14-bsa0wjaf.mjs +1 -0
  253. package/dist/chunks/conversation-0.5.14-sm5xssg2.mjs +1 -0
  254. package/dist/chunks/copilotHeaders-0.5.14-s8z7mree.mjs +1 -0
  255. package/dist/chunks/copy-0.5.14-sxqyn9qc.mjs +9 -0
  256. package/dist/chunks/cost-0.5.14-p252pkws.mjs +1 -0
  257. package/dist/chunks/createSSHSession-0.5.14-kvm8kq1c.mjs +1 -0
  258. package/dist/chunks/createSession-0.5.14-h945q3v2.mjs +1 -0
  259. package/dist/chunks/debug-0.5.14-6s6x2x5y.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-0.5.14-pm2kkmmd.mjs +1169 -0
  261. package/dist/chunks/desktop-0.5.14-b0c0mf4t.mjs +1 -0
  262. package/dist/chunks/detectRepository-0.5.14-v7wq8791.mjs +1 -0
  263. package/dist/chunks/detection-0.5.14-y386aphh.mjs +1 -0
  264. package/dist/chunks/diff-0.5.14-hyggfx76.mjs +1 -0
  265. package/dist/chunks/doctor-0.5.14-q3fn5hpz.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-0.5.14-tq9nej4a.mjs +1 -0
  267. package/dist/chunks/earlyInput-0.5.14-f9vhdypy.mjs +1 -0
  268. package/dist/chunks/effort-0.5.14-2smy583n.mjs +10 -0
  269. package/dist/chunks/envUtils-0.5.14-xbzyg758.mjs +1 -0
  270. package/dist/chunks/environmentSelection-0.5.14-emmy6rr3.mjs +1 -0
  271. package/dist/chunks/environments-0.5.14-ecp8qdny.mjs +1 -0
  272. package/dist/chunks/errors-0.5.14-8y2a0e4y.mjs +1 -0
  273. package/dist/chunks/exampleCommands-0.5.14-kngvnqsk.mjs +1 -0
  274. package/dist/chunks/exit-0.5.14-5kstn07d.mjs +1 -0
  275. package/dist/chunks/export-0.5.14-4xtsrx1s.mjs +2 -0
  276. package/dist/chunks/extra-usage-0.5.14-c359cbqm.mjs +1 -0
  277. package/dist/chunks/extra-usage-noninteractive-0.5.14-nd846d7b.mjs +1 -0
  278. package/dist/chunks/fast-0.5.14-ph4h5w66.mjs +1 -0
  279. package/dist/chunks/feedback-0.5.14-4s0gwfzz.mjs +14 -0
  280. package/dist/chunks/firstPartyEventLogger-0.5.14-c9xcj3z5.mjs +1 -0
  281. package/dist/chunks/git-0.5.14-5evnfaj9.mjs +1 -0
  282. package/dist/chunks/githubModelsCredentials-0.5.14-fkz7b722.mjs +1 -0
  283. package/dist/chunks/goal-0.5.14-ey3n29t8.mjs +4 -0
  284. package/dist/chunks/grove-0.5.14-dtm2qt3a.mjs +1 -0
  285. package/dist/chunks/growthbook-0.5.14-p52b1fpn.mjs +1 -0
  286. package/dist/chunks/headless-0.5.14-szhcws9m.mjs +2 -0
  287. package/dist/chunks/heapdump-0.5.14-eb1hjsjx.mjs +6 -0
  288. package/dist/chunks/help-0.5.14-mzc8t22x.mjs +1 -0
  289. package/dist/chunks/hookChains-0.5.14-g97q30xx.mjs +3 -0
  290. package/dist/chunks/hooks-0.5.14-88bm5h5k.mjs +1 -0
  291. package/dist/chunks/hooks-0.5.14-ys5d015m.mjs +79 -0
  292. package/dist/chunks/ide-0.5.14-2krrg1a9.mjs +3 -0
  293. package/dist/chunks/image-processor-napi-0.5.14-xkhg31fm.mjs +1 -0
  294. package/dist/chunks/index-0.5.14-0vbethc3.mjs +9 -0
  295. package/dist/chunks/index-0.5.14-0xy3pmj6.mjs +1 -0
  296. package/dist/chunks/index-0.5.14-2xwm9tzw.mjs +1 -0
  297. package/dist/chunks/index-0.5.14-4f2sts9v.mjs +1 -0
  298. package/dist/chunks/index-0.5.14-6abmnxq5.mjs +1 -0
  299. package/dist/chunks/index-0.5.14-7f15ecf5.mjs +1 -0
  300. package/dist/chunks/index-0.5.14-9xk2eb5e.mjs +2 -0
  301. package/dist/chunks/index-0.5.14-ac62kk33.mjs +1 -0
  302. package/dist/chunks/index-0.5.14-b22bcys9.mjs +1 -0
  303. package/dist/chunks/index-0.5.14-cpq99fc2.mjs +1 -0
  304. package/dist/chunks/index-0.5.14-f0fcdhmh.mjs +1 -0
  305. package/dist/chunks/index-0.5.14-h1dnxskr.mjs +9 -0
  306. package/dist/chunks/index-0.5.14-hnv3hqb4.mjs +2 -0
  307. package/dist/chunks/index-0.5.14-hx6n2t98.mjs +17 -0
  308. package/dist/chunks/index-0.5.14-j5gnx1h5.mjs +1 -0
  309. package/dist/chunks/index-0.5.14-jedeztfh.mjs +1 -0
  310. package/dist/chunks/index-0.5.14-n4ak9ayt.mjs +5 -0
  311. package/dist/chunks/index-0.5.14-pnvmm51v.mjs +1 -0
  312. package/dist/chunks/index-0.5.14-qt3rsghk.mjs +30 -0
  313. package/dist/chunks/index-0.5.14-w09z3j2p.mjs +1 -0
  314. package/dist/chunks/index-0.5.14-wegrd5ws.mjs +1 -0
  315. package/dist/chunks/index-0.5.14-y52vxjk8.mjs +1 -0
  316. package/dist/chunks/init-0.5.14-r84vn66h.mjs +1 -0
  317. package/dist/chunks/initReplBridge-0.5.14-93w4t2bk.mjs +1 -0
  318. package/dist/chunks/ink-0.5.14-dtjvx2bw.mjs +1 -0
  319. package/dist/chunks/insights-0.5.14-ee7wh6rp.mjs +870 -0
  320. package/dist/chunks/install-0.5.14-0pkv3rx9.mjs +1 -0
  321. package/dist/chunks/install-github-app-0.5.14-jwgnppse.mjs +149 -0
  322. package/dist/chunks/install-slack-app-0.5.14-xg6pdyqv.mjs +1 -0
  323. package/dist/chunks/instrumentation-0.5.14-40pdqy02.mjs +1 -0
  324. package/dist/chunks/interactiveHelpers-0.5.14-0vxxrbcv.mjs +1 -0
  325. package/dist/chunks/keybindings-0.5.14-yrj9hktn.mjs +2 -0
  326. package/dist/chunks/knowledge-0.5.14-wmfeb8sj.mjs +2 -0
  327. package/dist/chunks/latestVersionCache-0.5.14-btshynjc.mjs +1 -0
  328. package/dist/chunks/loadAgentsDir-0.5.14-bgwtbfkw.mjs +1 -0
  329. package/dist/chunks/loadPluginHooks-0.5.14-7arkwrx5.mjs +1 -0
  330. package/dist/chunks/loadPluginHooks-0.5.14-ft2aw53h.mjs +1 -0
  331. package/dist/chunks/log-0.5.14-zc88rz5g.mjs +1 -0
  332. package/dist/chunks/main-0.5.14-dtm7rx0y.mjs +1 -0
  333. package/dist/chunks/managedEnv-0.5.14-t0mfftrg.mjs +1 -0
  334. package/dist/chunks/mcp-0.5.14-afsrv7xy.mjs +4 -0
  335. package/dist/chunks/mcp-0.5.14-m5xjst8y.mjs +17 -0
  336. package/dist/chunks/mcp-0.5.14-qs8y9tyg.mjs +1 -0
  337. package/dist/chunks/mcpb-0.5.14-hqf00wdg.mjs +1 -0
  338. package/dist/chunks/memory-0.5.14-deqz5wf4.mjs +3 -0
  339. package/dist/chunks/mobile-0.5.14-nav99g5f.mjs +2 -0
  340. package/dist/chunks/model-0.5.14-4m2ak31n.mjs +1 -0
  341. package/dist/chunks/model-0.5.14-8908s4h1.mjs +2 -0
  342. package/dist/chunks/node-0.5.14-y28vz58a.mjs +12 -0
  343. package/dist/chunks/oauth-0.5.14-cqg2kcsy.mjs +1 -0
  344. package/dist/chunks/openaiShim-0.5.14-zqbrf5p3.mjs +14 -0
  345. package/dist/chunks/output-style-0.5.14-rhdxpb2v.mjs +1 -0
  346. package/dist/chunks/package-D6422PQU-0.5.14-rcttc4yp.mjs +1 -0
  347. package/dist/chunks/parseConnectUrl-0.5.14-wj5c5dp3.mjs +1 -0
  348. package/dist/chunks/parser-0.5.14-thy6xbb8.mjs +1 -0
  349. package/dist/chunks/passes-0.5.14-vta3tpqh.mjs +1 -0
  350. package/dist/chunks/permissions-0.5.14-668n4zqr.mjs +3 -0
  351. package/dist/chunks/plan-0.5.14-fd25354c.mjs +1 -0
  352. package/dist/chunks/plist-0.5.14-3dqnn8w2.mjs +1 -0
  353. package/dist/chunks/plugin-0.5.14-tzhch29w.mjs +29 -0
  354. package/dist/chunks/pluginStartupCheck-0.5.14-yp54tttb.mjs +1 -0
  355. package/dist/chunks/plugins-0.5.14-4n79y0tg.mjs +9 -0
  356. package/dist/chunks/preActionHook-0.5.14-7xyg62a5.mjs +2 -0
  357. package/dist/chunks/print-0.5.14-jkb0vbrw.mjs +57 -0
  358. package/dist/chunks/privacy-settings-0.5.14-5gz91bcv.mjs +1 -0
  359. package/dist/chunks/process-0.5.14-5ven8sh9.mjs +1 -0
  360. package/dist/chunks/processBashCommand-0.5.14-w72vmsa3.mjs +1 -0
  361. package/dist/chunks/processSlashCommand-0.5.14-1pq0axg8.mjs +9 -0
  362. package/dist/chunks/prompt-0.5.14-e3te1m4f.mjs +1 -0
  363. package/dist/chunks/prompt-0.5.14-prgmwqyn.mjs +1 -0
  364. package/dist/chunks/prompts-0.5.14-cdwagfnj.mjs +1 -0
  365. package/dist/chunks/protocolHandler-0.5.14-s73ezrw9.mjs +13 -0
  366. package/dist/chunks/provider-0.5.14-v7s7j76x.mjs +2 -0
  367. package/dist/chunks/providerProfiles-0.5.14-5n5txt96.mjs +1 -0
  368. package/dist/chunks/providerValidation-0.5.14-b6jb7n1p.mjs +6 -0
  369. package/dist/chunks/rate-limit-options-0.5.14-r9005cw2.mjs +1 -0
  370. package/dist/chunks/registerSubcommands-0.5.14-n1ax913t.mjs +34 -0
  371. package/dist/chunks/registry-0.5.14-fh1m7gth.mjs +1 -0
  372. package/dist/chunks/release-notes-0.5.14-n6nnpd4k.mjs +5 -0
  373. package/dist/chunks/reload-plugins-0.5.14-1askmda7.mjs +2 -0
  374. package/dist/chunks/remote-env-0.5.14-zp4b9t21.mjs +1 -0
  375. package/dist/chunks/remoteBridgeCore-0.5.14-vwrkzyqk.mjs +1 -0
  376. package/dist/chunks/remoteSession-0.5.14-95tfvwa6.mjs +1 -0
  377. package/dist/chunks/rename-0.5.14-nejym9bj.mjs +1 -0
  378. package/dist/chunks/replBridgeHandle-0.5.14-qqvggm22.mjs +1 -0
  379. package/dist/chunks/replLauncher-0.5.14-fefkewc5.mjs +1 -0
  380. package/dist/chunks/resume-0.5.14-4m6xat30.mjs +2 -0
  381. package/dist/chunks/rewind-0.5.14-r58b720w.mjs +1 -0
  382. package/dist/chunks/rootOptions-0.5.14-a5vv29e3.mjs +1 -0
  383. package/dist/chunks/sandbox-adapter-0.5.14-zb3t1137.mjs +1 -0
  384. package/dist/chunks/sandbox-toggle-0.5.14-xsv41nq3.mjs +1 -0
  385. package/dist/chunks/session-0.5.14-wyrxa25a.mjs +2 -0
  386. package/dist/chunks/sessionDiscovery-0.5.14-28vpj06b.mjs +1 -0
  387. package/dist/chunks/sessionFileAccessHooks-0.5.14-z2qpn0tn.mjs +1 -0
  388. package/dist/chunks/sessionStorage-0.5.14-kwv9d6vs.mjs +1 -0
  389. package/dist/chunks/settings-0.5.14-p0zs5fdt.mjs +1 -0
  390. package/dist/chunks/setup-0.5.14-qg611r9j.mjs +5 -0
  391. package/dist/chunks/sinks-0.5.14-kk1z8jn1.mjs +1 -0
  392. package/dist/chunks/skills-0.5.14-jks9y478.mjs +1 -0
  393. package/dist/chunks/startupProfiler-0.5.14-jaxmn568.mjs +1 -0
  394. package/dist/chunks/startupUpdateCheck-0.5.14-1yfdaz7t.mjs +1 -0
  395. package/dist/chunks/state-0.5.14-kf06ggyz.mjs +1 -0
  396. package/dist/chunks/stats-0.5.14-8f11qq7g.mjs +6 -0
  397. package/dist/chunks/status-0.5.14-yx768tmg.mjs +1 -0
  398. package/dist/chunks/stickers-0.5.14-8nb2bx0d.mjs +1 -0
  399. package/dist/chunks/subprocessEnv-0.5.14-hhz4z80t.mjs +1 -0
  400. package/dist/chunks/tasks-0.5.14-mgjvgj3q.mjs +1 -0
  401. package/dist/chunks/teamHelpers-0.5.14-zn6sdp9e.mjs +1 -0
  402. package/dist/chunks/teammateModeSnapshot-0.5.14-mr3qdh44.mjs +1 -0
  403. package/dist/chunks/teleport-0.5.14-jg3r903g.mjs +1 -0
  404. package/dist/chunks/terminalSetup-0.5.14-ys9stqfy.mjs +1 -0
  405. package/dist/chunks/theme-0.5.14-vwqjdywj.mjs +1 -0
  406. package/dist/chunks/thinkback-0.5.14-rnqvt431.mjs +1 -0
  407. package/dist/chunks/thinkback-play-0.5.14-gh24t0mc.mjs +1 -0
  408. package/dist/chunks/toolPool-0.5.14-6bzfbnf4.mjs +1 -0
  409. package/dist/chunks/toolSearch-0.5.14-6em6kvm8.mjs +1 -0
  410. package/dist/chunks/tools-0.5.14-3zfad976.mjs +1 -0
  411. package/dist/chunks/trustedDevice-0.5.14-csn78406.mjs +1 -0
  412. package/dist/chunks/turndown.cjs-0.5.14-fg9tbzhn.mjs +69 -0
  413. package/dist/chunks/ultrareviewCommand-0.5.14-d4hjcjxs.mjs +4 -0
  414. package/dist/chunks/update-0.5.14-c55smch2.mjs +86 -0
  415. package/dist/chunks/upgrade-0.5.14-hgzg25f4.mjs +1 -0
  416. package/dist/chunks/upstreamproxy-0.5.14-ss7ej555.mjs +14 -0
  417. package/dist/chunks/url-handler-napi-0.5.14-qbb087da.mjs +1 -0
  418. package/dist/chunks/usage-0.5.14-pghv9g49.mjs +1 -0
  419. package/dist/chunks/util-0.5.14-z79t0g8n.mjs +1 -0
  420. package/dist/chunks/utils-0.5.14-rc3e5m8r.mjs +1 -0
  421. package/dist/chunks/vim-0.5.14-hfvzh87q.mjs +1 -0
  422. package/dist/chunks/watcher-0.5.14-eh1f1h28.mjs +1 -0
  423. package/dist/chunks/wiki-0.5.14-kpp6v5tp.mjs +132 -0
  424. package/dist/chunks/worktree-0.5.14-czpr7pcg.mjs +1 -0
  425. package/dist/chunks/worktreeModeEnabled-0.5.14-07wp1qe2.mjs +1 -0
  426. package/dist/chunks/wrapper-0.5.14-9z68ky7a.mjs +7 -0
  427. package/dist/claudin-vscode.vsix +0 -0
  428. package/dist/cli.mjs +2 -2
  429. package/package.json +1 -1
  430. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +0 -1
  431. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +0 -1
  432. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +0 -1
  433. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +0 -1
  434. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +0 -1
  435. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +0 -1
  436. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +0 -1
  437. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +0 -1
  438. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +0 -3
  439. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +0 -1
  440. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +0 -1
  441. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +0 -1
  442. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +0 -1
  443. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +0 -1
  444. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +0 -1
  445. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +0 -1
  446. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +0 -1
  447. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +0 -1
  448. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +0 -1
  449. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +0 -1
  450. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +0 -1
  451. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +0 -1
  452. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +0 -1
  453. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +0 -9
  454. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +0 -1
  455. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +0 -1
  456. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +0 -1
  457. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +0 -1
  458. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +0 -3
  459. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +0 -110
  460. package/dist/chunks/api-0.5.13-q2anppzf.mjs +0 -1
  461. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +0 -1
  462. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +0 -1
  463. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +0 -1
  464. package/dist/chunks/auth-0.5.13-jn53extx.mjs +0 -1
  465. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +0 -48
  466. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +0 -1
  467. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +0 -1
  468. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +0 -4
  469. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +0 -1
  470. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +0 -1
  471. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +0 -3
  472. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +0 -1
  473. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +0 -21
  474. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +0 -4
  475. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +0 -1
  476. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +0 -1
  477. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +0 -1
  478. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +0 -1
  479. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +0 -1
  480. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +0 -2
  481. package/dist/chunks/cli-0.5.13-055v20cs.mjs +0 -2
  482. package/dist/chunks/cli-0.5.13-061m60f2.mjs +0 -2
  483. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +0 -3
  484. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +0 -2
  485. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +0 -2
  486. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +0 -3
  487. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +0 -2
  488. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +0 -2
  489. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +0 -45
  490. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +0 -2
  491. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +0 -2
  492. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +0 -5276
  493. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +0 -2
  494. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +0 -2
  495. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +0 -2
  496. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +0 -2
  497. package/dist/chunks/cli-0.5.13-426cpksk.mjs +0 -4
  498. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +0 -2
  499. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +0 -2
  500. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +0 -2
  501. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +0 -2
  502. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +0 -2
  503. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +0 -6
  504. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +0 -2
  505. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +0 -2
  506. package/dist/chunks/cli-0.5.13-62qasgve.mjs +0 -2
  507. package/dist/chunks/cli-0.5.13-667jxcab.mjs +0 -18
  508. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +0 -2
  509. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +0 -2
  510. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +0 -2
  511. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +0 -2
  512. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +0 -2
  513. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +0 -4
  514. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +0 -2
  515. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +0 -2
  516. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +0 -2
  517. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +0 -2
  518. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +0 -2
  519. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +0 -2
  520. package/dist/chunks/cli-0.5.13-7je48sax.mjs +0 -15
  521. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +0 -2
  522. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +0 -2
  523. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +0 -2
  524. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +0 -2
  525. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +0 -8
  526. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +0 -2
  527. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +0 -3
  528. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +0 -6
  529. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +0 -2
  530. package/dist/chunks/cli-0.5.13-adphma77.mjs +0 -2
  531. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +0 -2
  532. package/dist/chunks/cli-0.5.13-athb0q85.mjs +0 -2
  533. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +0 -4
  534. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +0 -2
  535. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +0 -1
  536. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +0 -2
  537. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +0 -2
  538. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +0 -3
  539. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +0 -2
  540. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +0 -4
  541. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +0 -2
  542. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +0 -4
  543. package/dist/chunks/cli-0.5.13-cnzars85.mjs +0 -5
  544. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +0 -2
  545. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +0 -39
  546. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +0 -2
  547. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +0 -24
  548. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +0 -2
  549. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +0 -2
  550. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +0 -2
  551. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +0 -15
  552. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +0 -2
  553. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +0 -24
  554. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +0 -2
  555. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +0 -2
  556. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +0 -34
  557. package/dist/chunks/cli-0.5.13-epjykaww.mjs +0 -17
  558. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +0 -10
  559. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +0 -2
  560. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +0 -2
  561. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +0 -4
  562. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +0 -3
  563. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +0 -2
  564. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +0 -2
  565. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +0 -2
  566. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +0 -2
  567. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +0 -2
  568. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +0 -2
  569. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +0 -2
  570. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +0 -15
  571. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +0 -12
  572. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +0 -12
  573. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +0 -9
  574. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +0 -17
  575. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +0 -2
  576. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +0 -25
  577. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +0 -4
  578. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +0 -2
  579. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +0 -2
  580. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +0 -2
  581. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +0 -2
  582. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +0 -2
  583. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +0 -3
  584. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +0 -2
  585. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +0 -2
  586. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +0 -2
  587. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +0 -2
  588. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +0 -9
  589. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +0 -2
  590. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +0 -2
  591. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +0 -2
  592. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +0 -6
  593. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +0 -2
  594. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +0 -2
  595. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +0 -2
  596. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +0 -2
  597. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +0 -2
  598. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +0 -2
  599. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +0 -2
  600. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +0 -133
  601. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +0 -16
  602. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +0 -2
  603. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +0 -193
  604. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +0 -2
  605. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +0 -2
  606. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +0 -2
  607. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +0 -2
  608. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +0 -18
  609. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +0 -2
  610. package/dist/chunks/cli-0.5.13-qrn019we.mjs +0 -2
  611. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +0 -2
  612. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +0 -3
  613. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +0 -2
  614. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +0 -2
  615. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +0 -2
  616. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +0 -2
  617. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +0 -2
  618. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +0 -2
  619. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +0 -58
  620. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +0 -2
  621. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +0 -2
  622. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +0 -2
  623. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +0 -2
  624. package/dist/chunks/cli-0.5.13-s719y89z.mjs +0 -2
  625. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +0 -4
  626. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +0 -42
  627. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +0 -3
  628. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +0 -2
  629. package/dist/chunks/cli-0.5.13-teedketa.mjs +0 -2
  630. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +0 -3
  631. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +0 -21
  632. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +0 -2
  633. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +0 -59
  634. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +0 -2
  635. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +0 -2
  636. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +0 -2
  637. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +0 -2
  638. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +0 -3
  639. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +0 -2
  640. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +0 -2
  641. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +0 -3
  642. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +0 -2
  643. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +0 -5
  644. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +0 -2
  645. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +0 -2
  646. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +0 -2
  647. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +0 -2
  648. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +0 -2
  649. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +0 -2
  650. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +0 -2
  651. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +0 -5
  652. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +0 -7
  653. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +0 -2
  654. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +0 -2
  655. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +0 -2
  656. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +0 -2
  657. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +0 -2
  658. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +0 -67
  659. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +0 -20
  660. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +0 -2
  661. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +0 -12
  662. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +0 -2
  663. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +0 -4
  664. package/dist/chunks/cli-0.5.13-z0f17269.mjs +0 -2
  665. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +0 -2
  666. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +0 -3
  667. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +0 -4
  668. package/dist/chunks/cli-0.5.13-zms1a287.mjs +0 -50
  669. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +0 -133
  670. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +0 -1
  671. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +0 -1
  672. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +0 -3
  673. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +0 -1
  674. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +0 -1
  675. package/dist/chunks/context-0.5.13-zffaf66t.mjs +0 -1
  676. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +0 -1
  677. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +0 -1
  678. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +0 -9
  679. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +0 -1
  680. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +0 -1
  681. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +0 -1
  682. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +0 -1
  683. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +0 -1177
  684. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +0 -1
  685. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +0 -1
  686. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +0 -1
  687. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +0 -1
  688. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +0 -1
  689. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +0 -1
  690. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +0 -1
  691. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +0 -10
  692. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +0 -1
  693. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +0 -1
  694. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +0 -1
  695. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +0 -1
  696. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +0 -1
  697. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +0 -1
  698. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +0 -2
  699. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +0 -1
  700. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +0 -1
  701. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +0 -1
  702. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +0 -14
  703. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +0 -1
  704. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +0 -1
  705. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +0 -1
  706. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +0 -1
  707. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +0 -1
  708. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +0 -2
  709. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +0 -6
  710. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +0 -1
  711. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +0 -3
  712. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +0 -1
  713. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +0 -79
  714. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +0 -3
  715. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +0 -1
  716. package/dist/chunks/index-0.5.13-06mj6naw.mjs +0 -1
  717. package/dist/chunks/index-0.5.13-12hemzfc.mjs +0 -1
  718. package/dist/chunks/index-0.5.13-4559xg8z.mjs +0 -17
  719. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +0 -9
  720. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +0 -1
  721. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +0 -1
  722. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +0 -1
  723. package/dist/chunks/index-0.5.13-9zz559q7.mjs +0 -1
  724. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +0 -1
  725. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +0 -2
  726. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +0 -1
  727. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +0 -30
  728. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +0 -1
  729. package/dist/chunks/index-0.5.13-fertw6vb.mjs +0 -1
  730. package/dist/chunks/index-0.5.13-jwf634zt.mjs +0 -1
  731. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +0 -5
  732. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +0 -1
  733. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +0 -9
  734. package/dist/chunks/index-0.5.13-qq60ettc.mjs +0 -1
  735. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +0 -2
  736. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +0 -1
  737. package/dist/chunks/index-0.5.13-zhze2z09.mjs +0 -1
  738. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +0 -1
  739. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +0 -1
  740. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +0 -1
  741. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +0 -870
  742. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +0 -1
  743. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +0 -149
  744. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +0 -1
  745. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +0 -1
  746. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +0 -1
  747. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +0 -2
  748. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +0 -2
  749. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +0 -1
  750. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +0 -1
  751. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +0 -1
  752. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +0 -1
  753. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +0 -1
  754. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +0 -1
  755. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +0 -1
  756. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +0 -4
  757. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +0 -17
  758. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +0 -1
  759. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +0 -1
  760. package/dist/chunks/memory-0.5.13-exfd915f.mjs +0 -3
  761. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +0 -2
  762. package/dist/chunks/model-0.5.13-02rcx381.mjs +0 -1
  763. package/dist/chunks/model-0.5.13-nn224m13.mjs +0 -2
  764. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +0 -12
  765. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +0 -1
  766. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +0 -14
  767. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +0 -1
  768. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +0 -1
  769. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +0 -1
  770. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +0 -1
  771. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +0 -1
  772. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +0 -3
  773. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +0 -1
  774. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +0 -1
  775. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +0 -29
  776. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +0 -1
  777. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +0 -9
  778. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +0 -2
  779. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +0 -57
  780. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +0 -1
  781. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +0 -1
  782. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +0 -1
  783. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +0 -9
  784. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +0 -1
  785. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +0 -1
  786. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +0 -1
  787. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +0 -13
  788. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +0 -2
  789. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +0 -1
  790. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +0 -6
  791. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +0 -1
  792. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +0 -34
  793. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +0 -1
  794. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +0 -5
  795. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +0 -2
  796. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +0 -1
  797. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +0 -1
  798. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +0 -1
  799. package/dist/chunks/rename-0.5.13-c388bb34.mjs +0 -1
  800. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +0 -1
  801. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +0 -1
  802. package/dist/chunks/resume-0.5.13-zwms595g.mjs +0 -2
  803. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +0 -1
  804. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +0 -1
  805. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +0 -1
  806. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +0 -1
  807. package/dist/chunks/session-0.5.13-ef059m1s.mjs +0 -2
  808. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +0 -1
  809. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +0 -1
  810. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +0 -1
  811. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +0 -1
  812. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +0 -5
  813. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +0 -1
  814. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +0 -1
  815. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +0 -1
  816. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +0 -1
  817. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +0 -1
  818. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +0 -6
  819. package/dist/chunks/status-0.5.13-043z2z1k.mjs +0 -1
  820. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +0 -1
  821. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +0 -1
  822. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +0 -1
  823. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +0 -1
  824. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +0 -1
  825. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +0 -1
  826. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +0 -1
  827. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +0 -1
  828. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +0 -1
  829. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +0 -1
  830. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +0 -1
  831. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +0 -1
  832. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +0 -1
  833. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +0 -1
  834. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +0 -69
  835. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +0 -4
  836. package/dist/chunks/update-0.5.13-r5daertf.mjs +0 -86
  837. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +0 -1
  838. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +0 -14
  839. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +0 -1
  840. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +0 -1
  841. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +0 -1
  842. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +0 -1
  843. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +0 -1
  844. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +0 -1
  845. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +0 -132
  846. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +0 -1
  847. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +0 -1
  848. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +0 -7
  849. /package/dist/chunks/{cli-0.5.13-c4q1pthh.mjs → cli-0.5.14-0603yw8e.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.5.13-07hv5jdz.mjs → cli-0.5.14-erhk4f70.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.5.13-epw9z05w.mjs → cli-0.5.14-jayg77dr.mjs} +0 -0
@@ -1,12 +0,0 @@
1
- import{wg as _Z,xg as SZ,yg as vz}from"./cli-0.5.13-n30tm5c8.mjs";import{ah as ZJ,bh as oQ}from"./cli-0.5.13-0zgpx8rh.mjs";import{fh as JJ,gh as tQ}from"./cli-0.5.13-efbkgz8j.mjs";import{$x as EZ,At as GQ,Bt as LQ,CQ as eJ,Ct as vQ,Dm as aJ,Dt as yQ,EN as RQ,Fi as UJ,Gi as jJ,Hm as Cz,Ht as FQ,IN as xQ,It as KQ,JN as $Q,LN as $Z,MN as fQ,Ni as SJ,ON as d0,PN as uQ,RN as gJ,SN as mJ,TN as pQ,UN as dQ,Uq as qJ,Ut as _Q,Vl as lJ,WN as FZ,Wl as bz,Xt as qX,Yq as Bz,aj as xZ,ay as CZ,bj as JX,bm as bQ,by as bZ,cm as zX,cy as kJ,dy as IQ,ey as IJ,jQ as sJ,ky as o0,ly as TJ,my as hJ,nN as hQ,nQ as XQ,ny as RJ,ox as SQ,oy as wz,px as YX,qQ as kZ,rm as rJ,tm as yZ,wi as UZ,wx as kQ,xi as MQ,xx as VX}from"./cli-0.5.13-2vy5qjm5.mjs";import{UR as CQ,bS as WX}from"./cli-0.5.13-h04mqqtv.mjs";import{BV as tZ,FV as rQ,GV as OZ,HV as XX,kV as BZ,lV as oZ}from"./cli-0.5.13-qrn019we.mjs";import{CW as PZ,UV as aZ,VV as lQ,aY as f0,cW as x0,oX as EQ,pX as QX,vX as C,wX as HQ,xX as g,yW as p0,yX as gz}from"./cli-0.5.13-tr9s34te.mjs";import{EZ as $0,FZ as B,GZ as $,HZ as L0}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as R0}from"./cli-0.5.13-d1xn4v80.mjs";import{E3 as nJ,O3 as iJ,b3 as BQ,c3 as cz,h3 as s0,h4 as Ez,k3 as e0}from"./cli-0.5.13-p4f4h0g7.mjs";import{D4 as RZ,E4 as ez}from"./cli-0.5.13-5tva2fr1.mjs";import{F4 as sZ,G4 as eZ,H4 as aQ}from"./cli-0.5.13-16khcs2m.mjs";import{C9 as jQ,D6 as v0,E6 as lZ,Qaa as wZ,W9 as ZX,g$ as VZ,iba as ZQ,o$ as rZ}from"./cli-0.5.13-p70x9j1v.mjs";import{Sca as NZ,Tca as MJ,bda as t0,ida as jz}from"./cli-0.5.13-sfjdg8y7.mjs";import{Gea as HZ,Lea as GZ,Mea as LZ,Yea as Vz,tea as vZ,uea as Mz}from"./cli-0.5.13-cwy43qr2.mjs";import{jga as c0,mga as dz}from"./cli-0.5.13-a9gqqmjh.mjs";import{Qga as UQ,_ga as sz}from"./cli-0.5.13-vhjxq97s.mjs";import{Xla as DQ,vma as tz}from"./cli-0.5.13-chdvhgrk.mjs";import{aoa as A0,eoa as N0}from"./cli-0.5.13-rmc7f4b8.mjs";function cZ(J){let Z=qZ.c(6),{children:Q}=J,[z,X]=F0.useState(null),[W,q]=F0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(pZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(uZ.Provider,{value:X,children:B(dZ.Provider,{value:q,children:B(fZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function gZ(){return F0.useContext(fZ)}function mZ(){return F0.useContext(pZ)}function DX(J){let Z=qZ.c(8),Q=F0.useContext(uZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}function UX(J){let Z=qZ.c(8),Q=F0.useContext(dZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];F0.useEffect(z,X),F0.useEffect(W,q)}var qZ,F0,fZ,uZ,pZ,dZ;var nZ=N0(()=>{L0();qZ=A0(x0(),1),F0=A0(R0(),1),fZ=F0.createContext(null),uZ=F0.createContext(null),pZ=F0.createContext(null),dZ=F0.createContext(null)});function YZ(J){return J.type==="attachment"&&iQ.has(J.attachment.type)}var nQ,iQ;var AZ=N0(()=>{nQ=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],iQ=new Set(nQ)});import{fileURLToPath as sQ}from"url";function pX(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function eQ(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Zz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Zz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function dX(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||YZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=eQ(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function cX(J){let Z=i0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:b}=BZ(),[_,N]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:N},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??zz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,S;if(Z[3]!==K||Z[4]!==Y)S=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=S;else S=Z[5];let H0=q0.useSyncExternalStore(E,S),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Jz,Y0),p0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Wz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let w0=Q0?0:1,T;if(Z[9]!==Q)T=B(DZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==w0)i=$(JJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:w0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=w0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(Xz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(C,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let k;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)k=$(C,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=k;else k=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(qz,{}),w=B(Yz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let U;if(Z[31]!==z)U=$(C,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(C,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==b||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(tZ,{value:{rows:O-iZ-1,columns:b-4,scrollRef:V??null},children:$(C,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-iZ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(C,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(b)})}),B(C,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=b,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==k||Z[39]!==U||Z[40]!==R)s=$(cZ,{children:[k,U,R]}),Z[38]=k,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$($0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Jz(){if(!p0())return;let J=aZ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Qz,()=>{J.onHyperlinkClick=void 0}}function Qz(J){if(J.startsWith("file:"))try{sZ(sQ(J))}catch{}else eZ(J)}function zz(){}function Xz(J){let Z=i0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${VZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(C,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(C,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Wz(J){let Z=i0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(C,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function qz(){let J=i0.c(4),Z=gZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(ZJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Yz(){let J=i0.c(2),Z=mZ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(C,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var i0,q0,iZ=2,DZ;var QJ=N0(()=>{lZ();rQ();nZ();oZ();tQ();lQ();f0();aQ();PZ();rZ();AZ();oQ();L0();i0=A0(x0(),1),q0=A0(R0(),1),DZ=q0.createContext({setStickyPrompt:()=>{}})});function zJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var XJ=()=>{};function WJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${HZ}`))return!1;if(UZ(Z.text,GZ)!=="completed")return!1;return UZ(Z.text,LZ)?.startsWith(qJ)??!1}function YJ(J,Z){if(!p0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(WJ(X)){let W=0;while(z<J.length&&WJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${HZ}><${GZ}>completed</${GZ}><${LZ}>${W} background commands completed</${LZ}></${HZ}>`}]}})}else Q.push(X),z++}return Q}var VJ=N0(()=>{Vz();Bz();PZ();FZ()});function BJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function HJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(BJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!BJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var GJ=()=>{};function LJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function FJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(LJ(z)){let X=0;while(Q<J.length&&LJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var KJ=()=>{};function Hz(J){let Z=NJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),NJ.set(J,Z);return Z}function jZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function wJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Hz(Z),X=new Map;for(let F of J){let P=jZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=jZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=jZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let b=O.message.content[0].id,_=V.get(b);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var NJ;var OJ=N0(()=>{NJ=new WeakMap});function KZ(J){let Z=DJ.get(J);if(Z!==void 0)return Z;let Q=Gz(J).toLowerCase();return DJ.set(J,Q),Q}function Gz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=PJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!PJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(Fz(J.toolUseResult));Z=W.join(`
2
- `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Lz(W.input)];return[]}).join(`
3
- `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
- `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
- `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
- `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(AJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+AJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Lz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
- `)}function Fz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
- `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
- `))}return Q.join(`
10
- `)}var AJ="</system-reminder>",PJ,DJ;var MZ=N0(()=>{FZ();PJ=new Set([UJ,jJ]),DJ=new WeakMap});function bJ(J){let Z=EJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Kz)))return null;let W=NZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(C,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Kz(J){return J.type==="text"}var EJ;var CJ=N0(()=>{MJ();f0();L0();EJ=A0(x0(),1)});function yJ(J){let Z=vJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(Nz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=C,V=NZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function Nz(J){return J.type==="text"}var vJ;var _J=N0(()=>{MJ();f0();L0();vJ=A0(x0(),1)});function fJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(EZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(EZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function Oz(J){let Z=xJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,b=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)D=N&&(bZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?kJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,S;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)S=_||N?[]:mJ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=S;else S=Z[14];let H0=S,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let k=_||N?SJ:gJ(Q,O);Y0=dJ(Q,K,Y,k,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let k;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let U=w.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];k=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=k}else k=Z[25];h=k}else if(N){let k;if(Z[28]!==Y||Z[29]!==Q)k=bZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=k;else k=Z[30];h=k}else{let k;if(Z[31]!==Y||Z[32]!==Q){let W0=d0(Q);k=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=k}else k=Z[33];h=k}let z0;if(Z[34]!==E||Z[35]!==b)z0=b&&E.type==="assistant"&&E.message.content.some(Az)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=b,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,w0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==b||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==w0||Z[52]!==W||Z[53]!==V)T=B(RJ,{message:Q,lookups:O,addMargin:X0,containerWidth:w0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:b,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=b,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=w0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let k;if(Z[55]!==i)k=B(o0,{children:i}),Z[55]=i,Z[56]=k;else k=Z[56];return k}let o;if(Z[57]!==E||Z[58]!==b)o=$(C,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(yJ,{message:E,isTranscriptMode:b}),B(bJ,{message:E,isTranscriptMode:b})]}),Z[57]=E,Z[58]=b,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(o0,{children:$(C,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function Az(J){return J.type==="text"}function Pz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).some((X)=>Z.has(X));let Q=d0(J);return!!Q&&Z.has(Q)}function Dz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return CZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=d0(J);return!Q||Z.has(Q)}function Uz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&hJ(Z.message))return!1;let X=Pz(J.message,J.streamingToolUseIDs),W=Dz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var xJ,$J,uJ;var pJ=N0(()=>{f0();IJ();FZ();wz();CJ();cJ();_J();TJ();L0();xJ=A0(x0(),1),$J=A0(R0(),1);uJ=$J.memo(Oz,Uz)});import{relative as yz}from"path";function oJ(J){return Rz.filter((Z)=>Z.isActive(J))}var _z,Sz,kz,Iz,Tz,hz,Rz;var tJ=N0(()=>{f0();eJ();lZ();Mz();jz();Ez();vz();Cz();bz();L0();_z={id:"large-memory-files",type:"warning",isActive:(J)=>kZ(J.memoryFiles).length>0,render:(J)=>{let Z=kZ(J.memoryFiles);return B($0,{children:Z.map((Q)=>{let z=Q.path.startsWith(vZ())?yz(vZ(),Q.path):Q.path;return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",t0(Q.content.length)," chars >"," ",t0(sJ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},Sz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=s0();return iJ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=s0();return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},kz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return!!nJ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0});return $(C,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},Iz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=e0({skipRetrievingKeyFromApiKeyHelper:!0}),Z=s0();return $(C,{flexDirection:"column",marginTop:1,children:[$(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(C,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},Tz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return SZ(J.agentDefinitions)>_Z},render:(J)=>{let Z=SZ(J.agentDefinitions);return $(C,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",t0(Z)," tokens >"," ",t0(_Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},hz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!rJ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=yZ();return Q!==null&&!lJ(Q)},render:()=>{let J=yZ(),Z=aJ(J);return $(C,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},Rz=[_z,Tz,Sz,kz,Iz,hz]});async function xz(){if(ZZ)return ZZ;return ZZ=XQ().then((J)=>{JZ=J}).finally(()=>{ZZ=null}),ZZ}function QQ(J){let Z=JQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=l0.useState(JZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(JZ.length>0){X(JZ);return}xz().then(()=>{X(JZ)})},Z[0]=W;else W=Z[0];l0.useEffect(W,[W]);let V={config:wZ(),agentDefinitions:Q,memoryFiles:z},Y=oJ(V);if(Y.length===0)return null;let K=C,F="column",P=1,v=Y.map((I)=>B(l0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var JQ,l0,JZ,ZZ=null;var zQ=N0(()=>{f0();eJ();ZQ();tJ();L0();JQ=A0(x0(),1),l0=A0(R0(),1),JZ=[]});function WQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??pz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let U=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(U/uz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,b=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),U=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let w=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);w[0]=0;for(let U=0;U<D;U++)w[U+1]=w[U]+(z.current.get(Z[U])??$z);q.current={arr:w,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,S;if(M)[E,S]=M,E=Math.min(E,D),S=Math.min(S,D);else if(_===0||O<0)E=Math.max(0,D-fz),S=D;else{if(N){let V0=_+r0;E=D;while(E>0&&J0-p[E-1]<V0)E--;S=D}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+b),g0=Math.max(O,O+b),y0=g0-M0,D0=y0>G0?b<0?g0-G0:M0:M0,I0=D0+Math.min(y0,G0),m0=Math.max(0,D0-V0),T0=I0-V0,b0=m0-r0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let n0=_+2*r0,a0=Math.min(D,E+QZ),_0=0;S=E;while(S<a0&&(_0<n0||p[S]<T0+_+r0))_0+=z.current.get(Z[S])??IZ,S++}let w=_+2*r0,U=Math.max(0,S-QZ),R=0;for(let V0=E;V0<S;V0++)R+=z.current.get(Z[V0])??IZ;while(E>U&&R<w)E--,R+=z.current.get(Z[E])??IZ;let s=P.current,O0=Math.abs(O-W.current)+Math.abs(b);if(s&&O0>_*2){let[V0,G0]=s;if(E<V0-zZ)E=V0-zZ;if(S>G0+zZ)S=G0+zZ;if(E>S)S=Math.min(E+zZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,S];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(S),l=E<H0?H0:E,h=S>Y0?Y0:S;if(l>h||N)l=E,h=S;if(b>0)h=S;if(h-l>QZ){let w=(p[l]+p[h])/2;if(O-I.current<w)h=l+QZ;else l=h-QZ}let z0=I.current,Q0=p[l],X0=l===0?0:Q0+z0,w0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,w0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let O0=s.yogaNode;if(!O0)continue;let V0=O0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(O0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((w)=>{let U=Y.current.get(w);if(!U)U=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let O0=s.getComputedHeight();if((O0>0||s.getComputedWidth()>0)&&z.current.get(w)!==O0)z.current.set(w,O0),X.current++}V.current.delete(w)}},Y.current.set(w,U);return U},[]),i=m.useCallback((w)=>{let U=V.current.get(Z[w])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),k=m.useCallback((w)=>{let U=q.current;if(w<0||w>=U.n)return;J.current?.scrollTo(U.arr[w]+I.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:k}}var m,$z=3,r0=80,fz=30,uz,IZ=1,QZ=300,zZ=25,pz=()=>{};var qQ=N0(()=>{m=A0(R0(),1),uz=r0>>1});function mz(J){let Z=YQ.get(J);if(Z!==void 0)return Z;let Q=KZ(J);return YQ.set(J,Q),Q}function iz(J){let Z=VQ.get(J);if(Z!==void 0)return Z;let Q=lz(J);return VQ.set(J,Q),Q}function lz(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
- `)}if(Z===null)return null;let Q=FQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function rz(J){let Z=NQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let b;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)b=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=b;else b=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let D;if(Z[19]!==_||Z[20]!==N)D=B(HQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==b||Z[28]!==D)p=B(C,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:b,children:D}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=b,Z[28]=D,Z[29]=p;else p=Z[29];return p}function wQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=mz,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),b=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==b.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));b.current=J,_.current=z;let N=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:S,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=WQ(Z,N,Q),[Q0,X0]=D,w0=y.useCallback((H)=>{if(h(H)===0)return!1;return GQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(f)=>v?.({uuid:f.uuid,msgType:f.type,expanded:!1,toolName:LQ(f)?.name}),L=F??-1,A=(f,n,a=w0)=>{for(let c=f;c>=0&&c<J.length;c+=n)if(a(c))return H(J[c]),!0;return!1},x=(f)=>w0(f)&&J[f].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,w0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),k=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),O0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-TZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let f=Math.max(0,Math.min(H,x.length-1)),n=x[f],a=T.current.getItemTop(A),c=L.getViewportTop(),e=a-L.getScrollTop(),h0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+h0)L.scrollTo(Math.max(0,a+n.row-TZ)),e=a-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:f});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+f+1;I?.(U0,j0),c0(`highlight(i=${A}, ord=${f}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,g0]=y.useState(0),y0=y.useCallback(()=>g0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,f=Z.current;if(!f)return;let{getItemElement:n,getItemTop:a,scrollToIndex:c}=T.current,e=n(L),h0=e?.yogaNode?.getComputedHeight()??0;if(!e||h0===0){if(x>1){i.current=null,c0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,f.scrollTo(Math.max(0,a(L)-TZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},c0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++k.current>20){k.current=0;return}w.current(A?-1:1);return}k.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,w.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:f,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let a=f(H),c=a?.yogaNode?.getComputedHeight()??0;if(a&&c>0)A.scrollTo(V0(H));else n(H);y0()}function I0(H){let L=R.current,{matches:A,prefixSum:x}=L,f=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,a=L.screenOrd+H;if(a>=0&&a<n.length){L.screenOrd=a,G0(a),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,c0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??f:x[c]+1;I?.(f,e)}w.current=I0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let S0=Y(U0[j0]),G=S0.indexOf(L),j=0;while(G>=0)j++,G=S0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let f=x.at(-1),n=0,a=Z.current,{offsets:c,start:e,getItemTop:h0}=T.current,P0=h0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&a){let U0=s.current>=0?s.current:a.getScrollTop(),j0=1/0;for(let S0=0;S0<A.length;S0++){let G=Math.abs(E0+c[A[S0]]-U0);if(G<=j0)j0=G,n=S0}c0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&a)a.scrollTo(s.current);I?.(f,A.length>0?x[n+1]??f:0)},nextMatch:()=>I0(1),prevMatch:()=>I0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(O0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await BQ(0);let a=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-a}let f=Math.round(performance.now()-x);return c0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${f}ms chunks=${Math.ceil(H.length/L)}`),O0.current=!0,Math.round(A)}}),[Z]);let[m0,T0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:T0});b0.current={onItemClick:W,setHoveredKey:T0};let n0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),a0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $($0,{children:[B(C,{ref:S,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],f=!!W&&(q?.(H)??!0),n=f&&m0===x,a=V?.(H);return B(rz,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:a,hovered:n,clickable:f,onClickK:n0,onEnterK:a0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(C,{height:J0,flexShrink:0}),K&&B(oz,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function oz({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(DZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??az,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let D=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let N=Q-1;N>=Z;N--){let D=X(N);if(D>=0){if(D<F)break;v=D}P=N}let M=-1,I=null;if(P>0&&!K)for(let N=P-1;N>=0;N--){let D=iz(J[N]);if(D===null)continue;let p=X(N);if(p>=0&&p+1>=F)continue;M=N,I=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),b=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(b.current==="armed"){b.current="force";return}let N=b.current==="force";if(b.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let D=I.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,nz).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,S=d;V({text:J0,scrollTo:()=>{V("clicked"),b.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(S),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var NQ,y,TZ=3,YQ,nz=500,VQ,az=()=>{};var OQ=N0(()=>{qQ();f0();gz();QJ();dz();cz();MZ();KQ();L0();NQ=A0(x0(),1),y=A0(R0(),1),YQ=new WeakMap;VQ=new WeakMap});function LX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function FX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function wX(J,Z,Q=KX,z=NX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function PQ(J){return(J.type==="assistant"||J.type==="user"?d0(J):null)??J.uuid}function AX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function dJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=d0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(pQ(q,"PostToolUse",W))return!1;return zJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var TQ,XZ,u,BX,HX=null,AQ=null,GX=null,hZ=30,KX=200,NX=50,OX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,streamingText:b,isBriefOnly:_=!1,unseenDivider:N,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=BZ(),w0=bQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=u.useMemo(()=>$Z(J).filter(RQ),[J]),i=u.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=u.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let r=B0.length-1;r>=0;r--)if(B0[r]?.type==="thinking")return`${j.uuid}:${r}`}else if(j?.type==="user"){if(!j.message.content.some((r)=>r.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=u.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let r of B0)if(r.type==="text"){let K0=r.text;if(K0.startsWith("<bash-stdout")||K0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),k=u.useMemo(()=>dQ(T),[T]),W0=u.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!k.has(G.contentBlock.id)),[F,q,k]),w=u.useMemo(()=>W0.flatMap((G)=>{let j=hQ({content:[G.contentBlock]});return j.uuid=MQ(G.contentBlock.id,0),$Z([j])}),[W0]),U=K==="transcript",R=u.useMemo(()=>UQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,O0=U&&!P&&!s,V0=u.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:g0,hiddenMessageCount:y0}=u.useMemo(()=>{let G=z||p0()?T:xQ(T,{includeSnipped:!0}),j=fQ(G.filter((k0)=>k0.type!=="progress").filter((k0)=>!YZ(k0)).filter((k0)=>$Q(k0,U)),w),B0=[AQ,GX].filter((k0)=>k0!==null),r=[AQ].filter((k0)=>k0!==null),K0=B0.length>0&&!U?_?LX(j,B0):r.length>0?FX(j,r):j:j,C0=O0?K0.slice(-hZ):K0,WZ=O0&&K0.length>hZ,{messages:u0}=wJ(C0,Z,z),cQ=YJ(HJ(FJ(IQ(u0,Z))),z),gQ=uQ(T,C0),mQ=j.length-hZ;return{collapsed:cQ,lookups:gQ,hasTruncatedMessages:WZ,hiddenMessageCount:mQ}},[z,T,U,w,O0,Z,_]),D0=u.useMemo(()=>{let j=!s&&!Y0?wX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),I0=u.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),m0=_Q((G)=>G.tasks),T0=M0.asyncLaunchedToolUseIDs,b0=u.useMemo(()=>{if(T0.size===0)return null;let G=new Set;for(let[j,B0]of T0){let r=m0?.[B0]?.status;if(r==="running"||r==="requested"||r==="queued")G.add(j)}return G.size>0?G:null},[m0,T0]),n0=u.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),a0=u.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[N,D0]),_0=u.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=u.useState(()=>new Set),A=u.useCallback((G)=>{let j=PQ(G);L((B0)=>{let r=new Set(B0);if(r.has(j))r.delete(j);else r.add(j);return r})},[]),x=u.useCallback((G)=>H.size>0&&H.has(PQ(G)),[H]),f=u.useRef(M0);f.current=M0;let n=u.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let K0=G.message.content[0];return K0!=null&&CQ(K0)&&K0.type==="advisor_tool_result"&&K0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=f.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?xZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),a=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=n0.size>0,{progress:e}=EQ(),h0=u.useRef(null),P0=wZ().terminalProgressBarEnabled&&!DQ()&&!(HX?.isProactiveActive()??!1);u.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(h0.current===G)return;h0.current=G,e(G)},[e,P0,c]),u.useEffect(()=>{return()=>e(null)},[e]);let E0=u.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,r=G.type==="user"&&B0==="user",K0=G.type==="collapsed_read_search"&&(!!b||fJ(D0,j,Z,I0)),C0=E0(G),WZ=B(uJ,{message:G,isUserContinuation:r,hasContentAfter:K0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:n0,streamingToolUseIDs:I0,screen:K,canAnimate:a,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),u0=B(vQ.Provider,{value:j===_0,children:WZ},C0);if(N&&j===a0)return[B(C,{marginTop:1,children:B(OZ,{title:`${N.count} new ${VZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),u0];return u0},j0=u.useRef(new WeakMap),S0=u.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=KZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let K0=G.message.content.find((C0)=>C0.type==="tool_result");if(K0&&"tool_use_id"in K0){let C0=M0.toolUseByToolUseID.get(K0.tool_use_id),u0=(C0&&xZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(u0!==void 0)B0=u0}}let r=B0.toLowerCase();return j0.current.set(G,r),r},[Z,M0]);return $($0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(BX,{agentDefinitions:v}),g0&&B(OZ,{title:`${w0} to show ${RZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(OZ,{title:`${w0} to hide ${RZ.bold(y0)} previous messages`,width:X0}),s?B(yQ.Provider,{value:!0,children:B(wQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:S,setPositions:H0,extractSearchText:S0})}):D0.flatMap(U0),b&&!_&&B(C,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(C,{flexDirection:"row",children:[B(C,{minWidth:2,children:B(g,{color:"text",children:jQ})}),B(C,{flexDirection:"column",children:B(SQ,{children:b})})]})}),i&&O&&!_&&B(C,{marginTop:1,children:B(kQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},C8;var cJ=N0(()=>{ez();XJ();tz();ZX();oZ();QX();f0();zX();qX();JX();WX();VJ();GJ();IJ();KJ();ZQ();sz();PZ();OJ();FZ();rZ();MZ();XX();YX();pJ();KQ();VX();AZ();TJ();zQ();OQ();L0();TQ=A0(x0(),1),XZ=A0(R0(),1),u=A0(R0(),1),BX=XZ.memo(function(Z){let Q=TQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(o0,{children:$(C,{flexDirection:"column",gap:1,children:[X,B(XZ.Suspense,{fallback:null,children:B(QQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});C8=XZ.memo(OX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(AX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
- export{DX as He,UX as Ie,nZ as Je,pX as Ke,dX as Le,cX as Me,QJ as Ne,C8 as Oe,cJ as Pe};
@@ -1,2 +0,0 @@
1
- import{K as D}from"./cli-0.5.13-epw9z05w.mjs";import{U as x}from"./cli-0.5.13-9r26f53q.mjs";import{nb as A}from"./cli-0.5.13-426cpksk.mjs";import{ob as L}from"./cli-0.5.13-xzeqt5b9.mjs";import{$m as p,GQ as b,HQ as u,Wm as k,Xm as U,_m as F}from"./cli-0.5.13-2vy5qjm5.mjs";import{ER as O,HR as c}from"./cli-0.5.13-rrqv533k.mjs";import{B2 as w,C2 as M,C3 as E,D3 as G,h4 as m,r0 as Y,w0 as I}from"./cli-0.5.13-p4f4h0g7.mjs";import{kaa as X,laa as B,qca as $,tca as z}from"./cli-0.5.13-p70x9j1v.mjs";import{tea as _,uea as y}from"./cli-0.5.13-cwy43qr2.mjs";import{jga as K,mga as T}from"./cli-0.5.13-a9gqqmjh.mjs";import{Dga as V,Kga as S}from"./cli-0.5.13-ywwd10c0.mjs";import{Qga as J,Sga as N,_ga as v}from"./cli-0.5.13-vhjxq97s.mjs";import{Hna as j,pna as W}from"./cli-0.5.13-667jxcab.mjs";v();c();u();z();m();p();y();j();T();S();I();B();var C=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let R of P.server.remotes??[]){let Q=h(R.url);if(Q)H.add(Q)}C=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}M();U();function Xq(){if(J(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||N())return;O(),b(),x(),A();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))G();if(q==="vertex"&&!J(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))E();if(F(_(),AbortSignal.timeout(3000),[]),D(),Z(),w(),k.initialize(),!N())L.initialize()}
2
- export{Xq as I};
@@ -1,4 +0,0 @@
1
- import{$ma as K,ona as Y}from"./cli-0.5.13-sww17qtj.mjs";import{eoa as X}from"./cli-0.5.13-rmc7f4b8.mjs";function T(j){return j instanceof Q||j instanceof K||j instanceof Error&&j.name==="AbortError"}function D(j,z){return j instanceof Error&&j.message===z}function U(j){return j instanceof Error?j:Error(String(j))}function B(j){return j instanceof Error?j.message:String(j)}function V(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function O(j){return V(j)==="ENOENT"}function P(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function R(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
- `),H=G[0]??j.message,J=G.slice(1).filter((W)=>W.trim().startsWith("at "));if(J.length<=z)return j.stack;return[H,...J.slice(0,z)].join(`
3
- `)}function b(j){let z=V(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function N(j){let z=B(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var Z,_,Q,$,q,v,w;var I=X(()=>{Y();Z=class Z extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};_=class _ extends Error{};Q=class Q extends Error{constructor(j){super(j);this.name="AbortError"}};$=class $ extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};q=class q extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};v=class v extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};w=class w extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
- export{Z as tga,_ as uga,Q as vga,T as wga,$ as xga,q as yga,v as zga,w as Aga,D as Bga,U as Cga,B as Dga,V as Ega,O as Fga,P as Gga,R as Hga,b as Iga,N as Jga,I as Kga};
@@ -1,2 +0,0 @@
1
- import{aY as k,cW as Z,xX as K}from"./cli-0.5.13-tr9s34te.mjs";import{GZ as J,HZ as H}from"./cli-0.5.13-f1e673b2.mjs";import{D6 as v,E6 as Y}from"./cli-0.5.13-p70x9j1v.mjs";import{aoa as V,eoa as X}from"./cli-0.5.13-rmc7f4b8.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
- export{N as hg,C as ig};
@@ -1,2 +0,0 @@
1
- import{J3 as q,h4 as D}from"./cli-0.5.13-p4f4h0g7.mjs";import{ffa as m,gfa as z}from"./cli-0.5.13-vee98ybt.mjs";import{eoa as x}from"./cli-0.5.13-rmc7f4b8.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
2
- export{E as re,F as se,K as te,M as ue,G as ve};
@@ -1,3 +0,0 @@
1
- import{$na as C,Vna as x,Xna as y}from"./cli-0.5.13-epjykaww.mjs";import{coa as k}from"./cli-0.5.13-rmc7f4b8.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
- `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as m6};
@@ -1,4 +0,0 @@
1
- import{og as LJ,pg as WQ}from"./cli-0.5.13-0fhxw4ng.mjs";import{qg as hJ,rg as RQ}from"./cli-0.5.13-6yehabyw.mjs";import{sg as PJ,tg as hQ}from"./cli-0.5.13-mwrgy706.mjs";import{ug as aq,vg as lJ}from"./cli-0.5.13-8yj2mydb.mjs";import{wg as Fq,xg as iq,yg as $J}from"./cli-0.5.13-n30tm5c8.mjs";import{Ag as HQ,zg as WJ}from"./cli-0.5.13-5n0sdsbk.mjs";import{CQ as nJ,GG as HJ,HG as RJ,HM as eq,IG as wQ,JM as iJ,Km as GJ,Lm as KQ,Ut as g,VM as Aq,Xt as yQ,YM as oJ,fn as P,gn as Tq,jQ as wq,nQ as sq,pE as vq,qE as BQ,qQ as tq,rE as UJ,sE as FJ,tE as wJ,tt as uq,uE as FQ,ut as mq,vr as KJ,wr as VQ,wt as pq,xr as VJ,xt as fJ,yr as XJ,zr as XQ}from"./cli-0.5.13-2vy5qjm5.mjs";import{jR as yJ,lR as NJ,oR as NQ}from"./cli-0.5.13-7je48sax.mjs";import{lT as BJ,pT as UQ}from"./cli-0.5.13-a86qe2vz.mjs";import{yU as YJ,zU as YQ}from"./cli-0.5.13-teedketa.mjs";import{AV as zQ,IV as Mq,JV as GQ,zV as zJ}from"./cli-0.5.13-qrn019we.mjs";import{aY as Oq,cW as Pq,vX as y,xX as Q}from"./cli-0.5.13-tr9s34te.mjs";import{EZ as h,FZ as Y,GZ as Z,HZ as c}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as ZQ}from"./cli-0.5.13-d1xn4v80.mjs";import{A2 as cJ,O2 as ZJ,P2 as QQ,b2 as rq}from"./cli-0.5.13-p4f4h0g7.mjs";import{D6 as $,E6 as tJ,Q$ as QJ,V8 as qQ,_$ as JQ,c$ as gq,d$ as dJ,g$ as xq,o$ as TJ,z8 as Iq}from"./cli-0.5.13-p70x9j1v.mjs";import{Nga as JJ,_ga as sJ}from"./cli-0.5.13-vhjxq97s.mjs";import{Kia as qJ,vma as eJ}from"./cli-0.5.13-chdvhgrk.mjs";import{aoa as Bq,eoa as Uq}from"./cli-0.5.13-rmc7f4b8.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
2
- `)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
3
- `)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
4
- export{pZ as mg,cQ as ng};
@@ -1,50 +0,0 @@
1
- import{Xc as $a,Yc as nu}from"./cli-0.5.13-50cwkg00.mjs";import{$c as Ot,Zc as yn,_c as Gt,ad as Fa,cd as tu}from"./cli-0.5.13-tqs67xcg.mjs";import{dd as ot,gd as vc}from"./cli-0.5.13-athb0q85.mjs";import{$n as ia,BF as Dc,CF as jc,DD as Vt,ED as Bc,Hw as _a,Iw as qa,Jw as Pc,ND as V,OD as ec,Oo as Xa,PD as Ic,Po as Ec,Vt as Sa,Xn as ha,Xt as xc,Yn as Lc,Zn as ra,_n as ea,ao as la,bo as E,cE as xn,co as un,dE as Rc,do as pc,eE as Pn,eo as Ra,fE as Bn,gE as In,go as ya,hE as kc,ho as ka,jo as Ca,yF as Nn,zF as ic}from"./cli-0.5.13-2vy5qjm5.mjs";import{AV as Uc,IV as fa,JV as Wc,yV as tt}from"./cli-0.5.13-qrn019we.mjs";import{aY as Xn,vX as f,xX as e}from"./cli-0.5.13-tr9s34te.mjs";import{$Y as qn,ZY as Sn,_Y as _n,aZ as Fn,bZ as rc,eZ as $n,iZ as Ln,jZ as za,kZ as pn}from"./cli-0.5.13-898bb5x7.mjs";import{EZ as rt,FZ as u,GZ as C,HZ as qt}from"./cli-0.5.13-f1e673b2.mjs";import{IZ as $t}from"./cli-0.5.13-d1xn4v80.mjs";import{G4 as ta,H4 as Fc}from"./cli-0.5.13-16khcs2m.mjs";import{$ba as sn,Aba as ln,Bba as on,D6 as it,E6 as Zc,Fba as kn,Kba as tn,Lba as Kn,Mba as Hn,Nba as Lt,Oba as nn,Pba as Un,Qba as vt,Rba as Wn,Sba as En,Tba as zc,Uba as mn,Vba as jn,Wba as dn,Yba as vn,_ba as Aa,jba as ga,kba as lt,lba as Kc,mba as Qt,nba as D,nca as Hc,pba as J,qba as Mt,sba as wt,tba as en,uba as j,vba as yt,zba as Ct}from"./cli-0.5.13-p70x9j1v.mjs";import{Sga as v,_ga as cn}from"./cli-0.5.13-vhjxq97s.mjs";import{aoa as Ft,boa as Jc,eoa as W}from"./cli-0.5.13-rmc7f4b8.mjs";function oc(t,n=Bt){let a=D().find((r)=>r.provider==="openai"&&r.extras?.githubToken!==void 0);if(a)return yt(a.id,{provider:"openai",name:a.name,baseUrl:a.baseUrl,model:a.model||n,apiKey:t,extras:{...a.extras,githubToken:t}}),Ct(a.id),{mode:"updated"};return j({provider:"openai",name:"GitHub Copilot",baseUrl:lc,model:n,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Mn({onDone:t,onBack:n,onChangeAPIKey:a}){let r=$n()?.trim()?"already-authed":"menu",[l,m]=I.useState(r),[g,w]=I.useState(null),[R,s]=I.useState(null),z=I.useCallback(async(k,_=Bt,y)=>{let K=Ln(k,y);if(!K.success){w(K.warning??"Could not save token to secure storage."),m("error");return}oc(k,_),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),q=I.useCallback(async()=>{m("device-busy"),w(null),s(null);try{let k=await Sn();s({user_code:k.user_code,verification_uri:k.verification_uri}),await qn(k.verification_uri);let _=await _n(k.device_code,{initialInterval:k.interval,timeoutSeconds:k.expires_in}),y=await Fn(_);await z(y.token,Bt,_)}catch(k){w(k instanceof Error?k.message:String(k)),m("error")}},[z]);if(l==="already-authed")return C(f,{flexDirection:"column",gap:1,children:[u(e,{bold:!0,children:"GitHub Copilot"}),u(e,{children:"You are already signed in to GitHub Copilot."}),u(e,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:n?"Back to /provider menu":"Cancel",value:"back"}],onChange:(_)=>{if(_==="sign-in-again"){q();return}if(n){n();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(l==="error"&&g)return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"red",children:g}),u(V,{options:[{label:n?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(_)=>{if(_==="back"){if(n){n();return}m("menu"),w(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(l==="device-busy")return C(f,{flexDirection:"column",gap:1,children:[u(e,{children:"GitHub Copilot sign-in"}),R?C(rt,{children:[C(e,{children:["Enter code ",u(e,{bold:!0,children:R.user_code})," at"," ",R.verification_uri]}),u(e,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(e,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Nn,{})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{bold:!0,children:"GitHub Copilot setup"}),u(e,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:n?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(k)=>{if(k==="cancel"){if(n){n();return}t("GitHub onboard cancelled",{display:"system"});return}q()}})]})}var I,Bt="github:copilot",lc="https://api.githubcopilot.com";var Vn=W(()=>{ec();ic();Xn();rc();pn();kn();qt();I=Ft($t(),1)});function Qn(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function bt(t,n){return n.some((a)=>t.includes(a))}function yc(t){return!bt(Qn(t),Gn)}function Cc(t){return t.find(yc)??null}function It(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function bc(t){return(t.quantizationLevel??t.name).toLowerCase()}function wc(t,n,a){if(t===null)return a.push("unknown size"),0;if(n==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(n==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function Oc(t,n,a){let r=bc(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),n==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),n==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),n==="latency"?2:5;return 0}function gc(t,n,a){if(n.score!==t.score)return n.score-t.score;let r=It(t)??Number.POSITIVE_INFINITY,l=It(n)??Number.POSITIVE_INFINITY;if(a==="latency")return r-l;if(a==="coding")return l-r;let m=14;return Math.abs(r-m)-Math.abs(l-m)}function Dt(t,n){return t.map((a)=>{let r=Qn(a),l=[],m=0;if(bt(r,Gn))m-=40,l.push("not a chat-first model");if(bt(r,mc))m+=n==="coding"?24:n==="balanced"?10:4,l.push("coding-oriented model family");if(bt(r,dc))m+=n==="latency"?4:n==="coding"?6:8,l.push("strong general-purpose model family");if(bt(r,sc))m+=n==="latency"?2:6,l.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))m-=2,l.push("vision model adds extra overhead");m+=wc(It(a),n,l),m+=Oc(a,n,l);let g=l.slice(0,3).join(", ");return{...a,score:m,reasons:l,summary:g}}).sort((a,r)=>gc(a,r,n))}function Tn(t,n){return Cc(Dt(t,n))}var mc,dc,sc,Gn;var Yn=W(()=>{mc=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],dc=["llama","qwen","mistral","gemma","phi","deepseek"],sc=["instruct","chat","assistant"],Gn=["embed","embedding","rerank","bge","whisper"]});function fc(t){let n=t.toLowerCase();return Ac.some((a)=>n.includes(a))}function jt(t){try{let n=new URL(t);if(n.username)n.username="redacted";if(n.password)n.password="redacted";for(let a of n.searchParams.keys())if(fc(a))n.searchParams.set(a,"redacted");return n.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Ac;var Jn=W(()=>{Ac=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Xc(t){let n=`http://localhost:${t.port}/auth/callback`,a=new URL(`${tn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",nn()),a.searchParams.append("redirect_uri",n),a.searchParams.append("scope",Kn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",Hn),a.toString()}function Sc(){return`<!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Codex Login Complete</title>
6
- <style>
7
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
- h1 { margin: 0 0 12px; font-size: 22px; }
9
- p { margin: 0 0 10px; }
10
- </style>
11
- </head>
12
- <body>
13
- <h1>Codex login complete</h1>
14
- <p>You can return to Claudin now.</p>
15
- <p>Claudin will finish activating your new Codex OAuth login.</p>
16
- </body>
17
- </html>`}function _c(t){return`<!doctype html>
18
- <html lang="en">
19
- <head>
20
- <meta charset="utf-8" />
21
- <title>Codex Login Failed</title>
22
- <style>
23
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
- h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
- p { margin: 0 0 10px; }
26
- </style>
27
- </head>
28
- <body>
29
- <h1>Codex login failed</h1>
30
- <p>${Wn(t)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function Zn(){return`<!doctype html>
34
- <html lang="en">
35
- <head>
36
- <meta charset="utf-8" />
37
- <title>Codex Login Cancelled</title>
38
- <style>
39
- body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
- h1 { margin: 0 0 12px; font-size: 22px; }
41
- p { margin: 0 0 10px; }
42
- </style>
43
- </head>
44
- <body>
45
- <h1>Codex login cancelled</h1>
46
- <p>You can close this window and retry in Claudin.</p>
47
- </body>
48
- </html>`}async function qc(t){let n=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:n,client_id:nn(),code_verifier:t.codeVerifier}),r=await fetch(`${tn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let s=await r.text().catch(()=>"");throw Error(s.trim()?`Codex OAuth token exchange failed (${r.status}): ${s.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let l=await r.json(),m=Lt(l.access_token),g=Lt(l.refresh_token);if(!m||!g)throw Error("Codex OAuth completed, but the token response was missing credentials.");let w=Lt(l.id_token);return{apiKey:w?await En(w).catch(()=>{return}):void 0,accessToken:m,refreshToken:g,idToken:w,accountId:vt(w)??vt(m)}}class an{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let n=Pn(),a=Un(),r=new xn("/auth/callback");this.authCodeListener=r,this.port=null;try{let l=await r.start(a);this.port=l;let m=In(),g=await Bn(n),w=Xc({port:l,codeChallenge:g,state:m});try{let R=await r.waitForAuthorization(m,async()=>{await t(w)}),s=new AbortController;this.tokenExchangeAbortController=s;let z;try{z=await qc({authorizationCode:R,codeVerifier:n,port:l,signal:s.signal})}finally{if(this.tokenExchangeAbortController===s)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end(Sc())}),z}catch(R){let s=this.authCodeListener===r?R:this.buildCancellationError();if(r.hasPendingResponse()){let z=s instanceof Error&&s.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((q)=>{q.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),q.end(z?Zn():_c(s instanceof Error?s.message:String(s)))})}throw s}finally{this.cleanup()}}catch(l){let m=l instanceof Error?l.message:String(l);if(m.includes("EADDRINUSE")||m.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw l}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((n)=>{n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(Zn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var Dn=W(()=>{Rc();kc();zc()});function $c(){return new an}function na(t){let{onAuthenticated:n}=t,a=t.deps?.createOAuthService??$c,r=t.deps?.openBrowser??ta,l=t.deps?.saveCodexCredentials??jn,m=t.deps?.isBareMode??v,[g,w]=pt.useState({state:"starting"});return pt.useEffect(()=>{if(m()){w({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let R=!1,s=a();return s.startOAuthFlow(async(z)=>{if(R)return;w({state:"waiting",authUrl:z,browserOpened:null});let q=await r(z);if(R)return;w({state:"waiting",authUrl:z,browserOpened:q})}).then(async(z)=>{if(R)return;await n(z,(M)=>{let k=l({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:M?.profileId});if(!k.success)throw Error(k.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(R)return;w({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{R=!0,s.cleanup()}},[a,m,n,r,l]),g}var pt;var aa=W(()=>{Dn();Fc();vn();cn();pt=Ft($t(),1)});function da(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ha()}}function ua(t,n){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:n}function Gc(t,n){if(n?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{n?.removeEventListener("abort",l),a()},t),l=()=>{clearTimeout(r),a()};n?.addEventListener("abort",l,{once:!0})})}async function Qc(t){let n=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await n(ea,{method:"POST",headers:da(),body:new URLSearchParams({client_id:un(),scope:la}).toString(),signal:a});if(!r.ok){let R=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${R?`: ${R.trim()}`:""}`)}let l=await r.json(),m=E(l.device_code),g=E(l.user_code),w=E(l.verification_uri);if(!m||!g||!w)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:g,verification_uri:w,verification_uri_complete:E(l.verification_uri_complete),expires_in:typeof l.expires_in==="number"&&l.expires_in>0?l.expires_in:ma/1000,interval:typeof l.interval==="number"&&l.interval>0?l.interval:oa/1000}}async function Tc(t,n){let a=n?.fetchImpl??fetch,r=n?.sleep??Gc,l=n?.now??(()=>Date.now()),m=ua(t.expires_in,ma),g=l()+m,w=Math.max(ua(t.interval,oa),Nc);while(l()<g){if(n?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let R=await a(ra,{method:"POST",headers:da(),body:new URLSearchParams({grant_type:ia,client_id:un(),device_code:t.device_code}).toString(),signal:n?.signal});if(R.ok){let M=await R.json(),k=E(M.access_token),_=E(M.refresh_token);if(!k||!_)throw Error("xAI OAuth completed, but the token response was missing credentials.");let y=typeof M.expires_in==="number"&&Number.isFinite(M.expires_in)&&M.expires_in>0?M.expires_in:3600;return{accessToken:k,refreshToken:_,idToken:E(M.id_token),expiresAt:l()+y*1000}}let s=await R.json().catch(()=>({})),z=Math.max(0,g-l());if(s.error==="authorization_pending"){await r(Math.min(w+ca,z),n?.signal);continue}if(s.error==="slow_down"){w=Math.min(w+Mc,Vc),await r(Math.min(w+ca,z),n?.signal);continue}if(s.error==="access_denied"||s.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(s.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let q=s.error_description??s.error??"";throw Error(`xAI device token exchange failed (${R.status})${q?`: ${q}`:""}`)}throw Error("xAI device authorization timed out.")}class hn{abortController=null;async startDeviceFlow(t){let n=new AbortController;this.abortController=n;try{let a=await Qc({signal:n.signal});return await t(a),await Tc(a,{signal:n.signal})}finally{if(this.abortController===n)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var oa=5000,Nc=1000,Mc=5000,Vc=60000,ma=300000,ca=3000;var sa=W(()=>{Lc();pc()});function Yc(){return new hn}function ba(t){let{onAuthenticated:n}=t,a=t.deps?.createOAuthService??Yc,r=t.deps?.saveXaiCredentials??ya,l=t.deps?.isBareMode??v,[m,g]=Nt.useState({state:"starting"});return Nt.useEffect(()=>{if(l()){g({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,R=a();return R.startDeviceFlow(async(s)=>{if(w)return;g({state:"waiting",userCode:s.user_code,verificationUri:s.verification_uri,verificationUriComplete:s.verification_uri_complete})}).then(async(s)=>{if(w)return;await n(s,(q)=>{let M=r({accessToken:s.accessToken,refreshToken:s.refreshToken,idToken:s.idToken,expiresAt:s.expiresAt,profileId:q?.profileId});if(!M.success)throw Error(M.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((s)=>{if(w)return;g({state:"error",message:s instanceof Error?s.message:String(s)})}),()=>{w=!0,R.cleanup()}},[a,l,n,r]),m}var Nt;var wa=W(()=>{sa();cn();Ca();Nt=Ft($t(),1)});function ru(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function eu(t){let n=Qt(t);return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function iu(t){let n={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let l=r.indexOf(":");if(l<=0)continue;let m=r.slice(0,l).trim(),g=r.slice(l+1).trim();if(m&&g)n[m]=g}return n}function lu(t){if(!t)return"";return Object.entries(t).map(([n,a])=>`${n}: ${a}`).join(`
49
- `)}function ou(t,n){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let l=t.gcpProject?.trim();if(l)a.gcpProject=l;let m=t.gcpRegion?.trim();if(m)a.gcpRegion=m;let g=t.azureResource?.trim();if(g)a.azureResource=g;let w=iu(n);if(Object.keys(w).length>0)a.customHeaders=w;return Object.keys(a).length>0?a:void 0}function du(t,n){let a=n?" (active)":"",r=t.apiKey?"key set":"no key",l=t.provider==="anthropic"?"anthropic":"openai-compatible",m=ga(t.model),g=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${l} · ${t.baseUrl} · ${g} · ${r}${a}`}function su(t,n){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${jt(n)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function yu(t,n){if(t.state==="unreachable")return`Could not reach Ollama at ${jt(n)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function rn(t,n){if(!n)return;return t.find((a)=>a.id===n)}function Oa(t,n){return Boolean(t&&n&&t.id===n)}function Cu({onBack:t,onConfigured:n}){let a=b.useCallback(async(l,m)=>{await n(l,m)},[n]);tt("confirm:no",t,[t]);let r=na({onAuthenticated:a});if(r.state==="error")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(e,{children:r.message}),u(e,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Codex OAuth"}),u(e,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(e,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?C(rt,{children:[u(e,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(e,{children:r.authUrl})]}):r.browserOpened===!0?C(rt,{children:[u(e,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(e,{children:r.authUrl})]}):u(e,{dimColor:!0,children:"Opening your browser..."}),u(e,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function bu({onBack:t,onConfigured:n}){let a=b.useCallback(async(l,m)=>{await n(l,m)},[n]);tt("confirm:no",t,[t]);let r=ba({onAuthenticated:a});if(r.state==="error")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(e,{children:r.message}),u(e,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(e,{dimColor:!0,children:"Requesting a device code from xAI..."}):C(rt,{children:[C(e,{children:["Open this URL on any device:"," ",u(e,{bold:!0,children:r.verificationUri})]}),C(e,{children:["Enter code ",u(e,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?C(e,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(e,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(e,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function yh({mode:t,onDone:n}){let a=Sa(),[r,l]=b.useState([]),[m,g]=b.useState(),[w,R]=b.useState(),[s,z]=b.useState(!1),[q,M]=b.useState(),k=b.useRef(0),[_,y]=b.useState(t==="first-run"?"select-preset":"menu"),[K,Tt]=b.useState(null),[Cn,bn]=b.useState("openai"),[G,x]=b.useState(()=>eu("ollama")),[Yt,gt]=b.useState({}),[wn,Jt]=b.useState(""),[La,pa]=b.useState(0),[Na,Ma]=b.useState(0),[Zt,On]=b.useState(null),[nt,mt]=b.useState(0),[at,P]=b.useState(0),[Va,B]=b.useState(0),[gn,L]=b.useState(),[ct,A]=b.useState(),[Ga,Qa]=b.useState(),[An,At]=b.useState(!1),[dt,st]=b.useState(),[H,ft]=b.useState({state:"idle"}),[U,zt]=b.useState({state:"idle"}),[Ta,Ya]=b.useState(!0),[Ja,Y]=b.useState(!1),Kt=b.useRef(!1),[Ht,Ut]=b.useState(()=>Ot()),[fn,Za]=b.useState(()=>Fa());b.useEffect(()=>{queueMicrotask(()=>{let c=D(),h=J()?.id;l(c),g(h),R(Mt()),M(en()),z(wt()),Ya(!1)})},[]);let ut=et[at]??et[0],Rt=ut.key,Ka=G[Rt],Wt=r.length>0,kt=Wt,zn=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Ht?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:q?`Currently: ${r.find((c)=>c.id===q)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!kt},{value:"activate-project",label:"Set active provider (Project)",description:w?`Currently: ${r.find((c)=>c.id===w)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!kt},...s?[{value:"clear-project-override",label:"Clear project provider override",description:w?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!Wt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!kt},...An?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[kt,Wt,An,Ht,q,w,r]),Et=b.useCallback(()=>{if(v()){k.current+=1,At(!1),st(void 0);return}let c=++k.current;(async()=>{let h=await mn();if(c!==k.current)return;At(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),st(h?.profileId)})()},[]);b.useEffect(()=>{return Et(),()=>{k.current+=1}},[Et]),b.useEffect(()=>{if(_!=="select-ollama-model")return;let c=!1;return ft({state:"loading"}),(async()=>{let h=await qa({baseUrl:G.baseUrl});if(h.state!=="ready"){if(!c)ft({state:"unavailable",message:yu(h,G.baseUrl)});return}let o=Dt(h.models,"balanced"),i=Tn(h.models,"balanced");if(!c)ft({state:"ready",defaultValue:i?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{c=!0}},[G.baseUrl,_]),b.useEffect(()=>{if(_!=="select-atomic-chat-model")return;let c=!1;return zt({state:"loading"}),(async()=>{let h=await _a({baseUrl:G.baseUrl});if(h.state!=="ready"){if(!c)zt({state:"unavailable",message:su(h,G.baseUrl)});return}if(!c)zt({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{c=!0}},[G.baseUrl,_]);function p(){if(Kt.current)return;Kt.current=!0,queueMicrotask(()=>{let c=D();l(c),g(J()?.id),R(Mt()),M(en()),z(wt()),Et(),Kt.current=!1})}function ht(){return null}function xt(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function Pt(c){if(c?.accessToken&&c.accountId)return null;let h=await mn();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function Rn(){Xa()}async function Ha(c){let h="provider";Y(!0),L("Activating provider...");try{await new Promise((Z)=>queueMicrotask(Z));let o=wt(),i=Ct(c);if(!i){A("Could not change active provider."),Y(!1),X();return}let d=o?J()??i:i,O=lt(d.model);if(!o)a((Z)=>({...Z,mainLoopModel:O,mainLoopModelForSession:null}));h=i.name;let S=ht(),Q=Oa(i,dt),$=Q?await Pt():null;p();let T=o&&d.id!==i.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=Q?xt({prefix:`Active provider: ${i.name}${T}`,activationWarning:$,warnings:[$,S?`could not clear startup provider override (${S})`:null].filter((Z)=>Boolean(Z))}):S?`Active provider: ${i.name}${T}. Warning: could not clear startup provider override (${S}).`:`Active provider: ${i.name}${T}`;L(F),Y(!1),n({action:"activated",activeProfileId:i.id,activeProviderName:i.name,activeProviderModel:O,message:`Provider switched to ${i.name} (${O})`}),X()}catch(o){p(),L(void 0),Y(!1);let i=o instanceof Error?o.message:String(o);A(`Could not finish activating ${h}: ${i}`),X()}}async function Ua(){Y(!0),L("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),ln(null),p();let c=J();if(c){let h=lt(c.model);ot(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),L(`Project override cleared. Using global default: ${c.name}.`),Y(!1),n({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:h,message:`Project override cleared — using ${c.name} (${h})`}),X()}else L("Project provider override cleared. No global default set."),Y(!1),n({action:"saved",message:"Project provider override cleared. No global default set."}),X()}catch(c){p(),L(void 0),Y(!1);let h=c instanceof Error?c.message:String(c);A(`Could not clear project provider override: ${h}`),X()}}async function Wa(c){let h="provider";Y(!0),L("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Mt(),i=ln(c);if(!i){A("Could not set project provider override."),Y(!1),X();return}let d=lt(i.model);if(o===i.id)ot();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=i.name;let O=ht(),S=Oa(i,dt),Q=S?await Pt():null;p();let $=`Active provider for this project: ${i.name}. Other projects keep the global default.`,T=S?xt({prefix:$,activationWarning:Q,warnings:[Q,O?`could not clear startup provider override (${O})`:null].filter((F)=>Boolean(F))}):O?`${$} Warning: could not clear startup provider override (${O}).`:$;L(T),Y(!1),n({action:"activated",activeProfileId:i.id,activeProviderName:i.name,activeProviderModel:d,message:`Provider switched to ${i.name} (${d}) for this project`}),X()}catch(o){p(),L(void 0),Y(!1);let i=o instanceof Error?o.message:String(o);A(`Could not finish setting ${h} for this project: ${i}`),X()}}function X(){Qa("done"),y("menu")}function Xt(c){n({action:"cancelled",message:c})}function Ea(c){let h=Qt(c),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Tt(null),bn(h.provider??"openai"),x(o),gt({}),Jt(""),On(c),P(0),mt(0),B(o.name.length),A(void 0),c==="ollama"){ft({state:"loading"}),y("select-ollama-model");return}if(c==="atomic-chat"){zt({state:"loading"}),y("select-atomic-chat-model");return}if(c==="anthropic"){y("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){y("cloud-extras");return}y("form")}function xa(c){let h=r.find((i)=>i.id===c);if(!h)return;let o=ru(h);Tt(c),bn(h.provider??"openai"),x(o),gt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Jt(lu(h.extras?.customHeaders)),On(null),P(0),mt(0),B(o.name.length),A(void 0),y("form")}function St(c=G){let h=ou(Yt,wn),o={provider:Cn,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:h},i=K?yt(K,o):j(o,{makeActive:!0});if(!i){A("Could not save provider. Fill all required fields.");return}let d=J()?.id===i.id;if(d)ot(),a((T)=>({...T,mainLoopModel:lt(i.model),mainLoopModelForSession:null}));let O=d?ht():null;p();let S=!K&&wt()&&!d,Q=S?J()?.name??"override target":null,$=K?`Updated provider: ${i.name}`:S?`Added provider: ${i.name} (now global default — project keeps using ${Q}; use "Clear project provider override" to apply here)`:`Added provider: ${i.name} (now active)`;if(L(O?`${$}. Warning: could not clear startup provider override (${O}).`:$),t==="first-run"){n({action:"saved",activeProfileId:i.id,message:`Provider configured: ${i.name}`});return}Tt(null),P(0),A(void 0),X()}function Pa(){if(U.state==="loading"||U.state==="idle")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(e,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(U.state==="unavailable")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(e,{dimColor:!0,children:U.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){P(0),B(G.name.length),y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:2})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(e,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:U.options,defaultValue:U.defaultValue,defaultFocusValue:U.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,U.options.length),onChange:(c)=>{let h={...G,model:c};x(h),St(h)},onCancel:()=>y("select-preset")})]})}function Ba(){if(H.state==="loading"||H.state==="idle")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Checking Ollama"}),u(e,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(H.state==="unavailable")return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Ollama setup"}),u(e,{dimColor:!0,children:H.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){P(0),B(G.name.length),y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:2})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(e,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:H.options,defaultValue:H.defaultValue,defaultFocusValue:H.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,H.options.length),onChange:(c)=>{let h={...G,model:c};x(h),St(h)},onCancel:()=>y("select-preset")})]})}function Ia(c){let h=c.trim();if(!ut.optional&&h.length===0){A(`${ut.label} is required.`);return}let o={...G,[Rt]:h};if(x(o),A(void 0),at<et.length-1){let i=at+1,d=et[i]?.key??"name";P(i),B(o[d].length);return}if((Zt==="anthropic"||Zt==="custom")&&_==="form"){x(o),y("custom-headers");return}St(o)}function Da(){if(A(void 0),at>0){let c=at-1,h=et[c]?.key??"name";P(c),B(G[h].length);return}if(t==="first-run"){y("select-preset");return}X()}tt("confirm:no",Da,{context:"Settings",isActive:_==="form"});function ja(){if(A(void 0),nt>0){mt(nt-1);return}y("select-preset")}tt("confirm:no",ja,{context:"Settings",isActive:_==="cloud-extras"}),tt("confirm:no",()=>y("form"),{context:"Settings",isActive:_==="custom-headers"}),tt("confirm:no",()=>y("select-preset"),{context:"Settings",isActive:_==="anthropic-auth-choice"||_==="anthropic-oauth"});function va(){let c=!v(),h=[...Ht?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(e,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Xt("Provider setup skipped");return}if(o==="codex-oauth"){y("codex-oauth");return}if(o==="xai-oauth"){y("xai-oauth");return}if(o==="github-onboard"){y("github-onboard");return}if(o==="import-legacy"){(async()=>{let i=await yn({force:!0});Ut(Ot()),p();let d=Gt(i);if(i.errors.length>0){A(d);return}let O=J();if(t==="first-run"&&O){n({action:"saved",activeProfileId:O.id,activeProviderName:O.name,activeProviderModel:O.model,message:d});return}if(L(d),A(void 0),t==="manage")X()})();return}Ea(o)},onCancel:()=>{if(t==="first-run"){Xt("Provider setup skipped");return}X()},visibleOptionCount:Math.min(13,h.length)})]})}function tc(){return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(e,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){y("anthropic-oauth");return}if(c==="apiKey"){y("form");return}y("select-preset")},onCancel:()=>y("select-preset"),visibleOptionCount:3})]})}function nc(){let c=(jc(),Jc(Dc)).ConsoleOAuthFlow;return u(f,{flexDirection:"column",gap:1,children:u(c,{mode:"login",onDone:()=>{let h=Qt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},i=j(o,{makeActive:!0});if(!i){A("OAuth completed, but the Anthropic profile could not be saved."),y("select-preset");return}let d=`Anthropic OAuth configured: ${i.name}`;if(p(),t==="first-run"){n({action:"saved",activeProfileId:i.id,message:d});return}L(d),A(void 0),X()}})})}function ac(){let c=Zt;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let h=mu[c],o=h[nt]??h[0],i=Yt[o.key]??"";function d(O){let S=O.trim();if(S.length===0){A(`${o.label} is required.`);return}let Q={...Yt,[o.key]:S};if(gt(Q),A(void 0),nt<h.length-1){mt(nt+1);return}mt(0),y("form")}return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(e,{dimColor:!0,children:o.helpText}),C(e,{dimColor:!0,children:["Step ",nt+1," of ",h.length,": ",o.label]}),C(f,{flexDirection:"row",gap:1,children:[u(e,{children:it.pointer}),u(Vt,{value:i,onChange:(O)=>gt((S)=>({...S,[o.key]:O})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${it.ellipsis}`,columns:80,cursorOffset:La,onChangeCursorOffset:pa})]}),ct&&u(e,{color:"error",children:ct}),u(e,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function cc(){return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Custom headers (optional)"}),C(e,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(e,{children:"Header: Value"}),". Leave empty to skip."]}),C(f,{flexDirection:"row",gap:1,children:[u(e,{children:it.pointer}),u(Vt,{value:wn,onChange:Jt,onSubmit:()=>St(G),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Na,onChangeCursorOffset:Ma})]}),ct&&u(e,{color:"error",children:ct}),u(e,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function uc(){return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:K?"Edit provider profile":"Create provider profile"}),u(e,{dimColor:!0,children:ut.helpText}),C(e,{dimColor:!0,children:["Provider type:"," ",Cn==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),C(e,{dimColor:!0,children:["Step ",at+1," of ",et.length,": ",ut.label]}),C(f,{flexDirection:"row",gap:1,children:[u(e,{children:it.pointer}),u(Vt,{value:Ka,onChange:(c)=>x((h)=>({...h,[Rt]:c})),onSubmit:Ia,focus:!0,showCursor:!0,placeholder:`${ut.placeholder}${it.ellipsis}`,mask:Rt==="apiKey"?"*":void 0,columns:80,cursorOffset:Va,onChangeCursorOffset:B})]}),ct&&u(e,{color:"error",children:ct}),u(e,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function hc(){let c=r.length>0,h=c;return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Provider manager"}),u(e,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),gn&&u(e,{children:gn}),u(f,{flexDirection:"column",children:r.length===0?u(e,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>C(e,{dimColor:!0,children:["- ",o.name,": ",du(o,o.id===m)]},o.id))}),u(V,{options:zn,onChange:(o)=>{switch(A(void 0),o){case"add":y("select-preset");break;case"import-legacy":{(async()=>{let i=await yn({force:!0});if(Ut(Ot()),p(),i.errors.length>0)A(Gt(i));else L(Gt(i))})();break}case"activate":if(h)y("select-active");break;case"activate-project":if(h)y("select-active-project");break;case"clear-project-override":Ua();break;case"edit":if(c)y("select-edit");break;case"delete":if(h)y("select-delete");break;case"logout-codex-oauth":{let i=dn();if(!i.success){A(i.warning??"Could not clear Codex OAuth credentials.");break}At(!1),st(void 0);let d=rn(D(),dt),O=null;if(d){let S=on(d.id);if(!S.removed){A("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),p();break}Rn(),O=S.activeProfileId?ht():null}p(),L(O?`Codex OAuth logged out. Warning: could not clear startup provider override (${O}).`:"Codex OAuth logged out.");break}default:Xt("Provider manager closed");break}},onCancel:()=>Xt("Provider manager closed"),defaultFocusValue:Ga,visibleOptionCount:zn.length})]})}function _t(c,h,o){let i=r.map((d)=>{let O=[];if(d.id===m)O.push("active");if(w&&d.id===w)O.push("this project");if(q&&d.id===q)O.push("global default");let S=O.length>0?` (${O.join(", ")})`:"";return{value:d.id,label:`${d.name}${S}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(i.length===0)return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:c}),u(e,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>X(),onCancel:()=>X(),visibleOptionCount:1})]});return C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:c}),u(V,{options:i,onChange:o,onCancel:()=>X(),visibleOptionCount:Math.min(10,Math.max(2,i.length))})]})}let N;switch(_){case"select-preset":N=va();break;case"select-ollama-model":N=Ba();break;case"select-atomic-chat-model":N=Pa();break;case"codex-oauth":N=u(Cu,{onBack:()=>y("select-preset"),onConfigured:async(c,h)=>{let o={provider:"openai",name:au,baseUrl:Aa,model:cu,apiKey:""},i=rn(D(),dt),d=i?yt(i.id,o):j(o,{makeActive:!0});if(!d){A("Codex OAuth login finished, but the provider profile could not be saved."),X();return}let O=i&&m!==d.id?Ct(d.id):d;if(!O){A("Codex OAuth login finished, but the provider could not be set as the startup provider."),X();return}h({profileId:d.id});let S=ht(),Q=await Pt(c);At(!0),st(d.id),p();let $=[Q,S?`could not clear startup provider override (${S})`:null].filter((F)=>Boolean(F)),T=xt({prefix:"Codex OAuth configured",activationWarning:Q,warnings:$});if(t==="first-run"){n({action:"saved",activeProfileId:O.id,message:T});return}L(T),A(void 0),X()}});break;case"xai-oauth":N=u(bu,{onBack:()=>y("select-preset"),onConfigured:async(c,h)=>{let i=j({provider:"openai",name:uu,baseUrl:sn,model:hu,apiKey:""},{makeActive:!0});if(!i){A("xAI OAuth login finished, but the provider profile could not be saved."),X();return}try{h({profileId:i.id})}catch(O){A(O instanceof Error?O.message:String(O)),X();return}p();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){n({action:"saved",activeProfileId:i.id,message:d});return}L(d),A(void 0),X()}});break;case"github-onboard":N=u(Mn,{onDone:(c)=>{if(c)L(c),A(void 0);p(),X()},onBack:()=>y("select-preset"),onChangeAPIKey:p});break;case"anthropic-auth-choice":N=tc();break;case"anthropic-oauth":N=nc();break;case"cloud-extras":N=ac();break;case"custom-headers":N=cc();break;case"form":N=uc();break;case"select-active":N=_t("Set active provider (Global)","No providers available. Add one first.",(c)=>{Ha(c)});break;case"select-active-project":N=_t("Set active provider (Project)","No providers available. Add one first.",(c)=>{Wa(c)});break;case"select-edit":N=_t("Edit provider","No providers available. Add one first.",(c)=>{xa(c)});break;case"select-delete":N=_t("Delete provider","No providers available. Add one first.",(c)=>{let h=r.find(($)=>$.id===c),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,i=rn(r,dt)?.id===c,d=Ra()?.profileId,O=h?.provider==="openai"&&h.baseUrl===sn&&!h.apiKey&&d===c,S=J()?.id===c,Q=on(c);if(!Q.removed)A("Could not delete provider.");else{let $=[];if(i){let F=dn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else st(void 0);Rn()}if(o){let F=za();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(O){let F=ka();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let T=Q.activeProfileId?ht():null;if(T)$.push(`could not clear startup provider override (${T})`);if(p(),S){let F=J();if(F)ot(),a((Z)=>({...Z,mainLoopModel:lt(F.model),mainLoopModelForSession:null}));else ot(),a((Z)=>({...Z,mainLoopModel:null,mainLoopModelForSession:null}))}L($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}X()});break;case"menu":default:N=hc();break}return C(fa,{color:"permission",children:[u($a,{enabled:fn,onDismiss:(c)=>{Ut(Ot()),Za(!1),p();let h=J();if(c==="migrated"&&t==="first-run"&&h)n({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),fn?null:Ta?C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Loading providers..."}),u(e,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Ja?C(f,{flexDirection:"column",gap:1,children:[u(e,{color:"remember",bold:!0,children:"Activating provider..."}),u(e,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):N]})}var b,et,au="Codex OAuth",cu="codexplan",uu="xAI / Grok (OAuth)",hu="grok-4",mu;var wu=W(()=>{Zc();Vn();Hc();Xn();Uc();xc();vc();vn();cn();Kc();Ec();kn();pn();Pc();Yn();Jn();Ic();Wc();nu();Bc();aa();wa();Ca();tu();qt();b=Ft($t(),1),et=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0}];mu={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
- export{jt as Sc,Jn as Tc,iu as Uc,yh as Vc,wu as Wc};