@claudiolabs/claudin 0.6.10 → 0.6.11

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 (890) hide show
  1. package/dist/chunks/AgentTool-0.6.11-r8d0ds60.mjs +1 -0
  2. package/dist/chunks/App-0.6.11-31gtkew5.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.11-2xpxrqhj.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.11-s62gfmdn.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.11-g7memr9h.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.11-cm6p2qt6.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.11-z9chf7mf.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.11-z8rkxtp9.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.11-p0pgcety.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.11-k0qnn706.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.11-r03g3kvz.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.11-8d22h28t.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.11-pmh335cp.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.11-qxh6rxba.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.11-3vzkgyet.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.11-5a9bh8ga.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.11-bphsrszr.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.11-xbere7nd.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.11-fjyx81d3.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.11-c9gkrmf1.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.11-z0ahgcq3.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.11-a4jnsc85.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.11-fp47z50a.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.11-4j8x272k.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.11-vz6gt69a.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.11-n238hj6m.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.11-pnhxcp0r.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.11-gpv9357c.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.11-tx4w3jyc.mjs +1 -0
  30. package/dist/chunks/agents-0.6.11-2a9tyqet.mjs +3 -0
  31. package/dist/chunks/agents-0.6.11-vrf5te1h.mjs +110 -0
  32. package/dist/chunks/api-0.6.11-kfd2tz28.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.11-hkv84gkg.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.11-wpa7rt5b.mjs +1 -0
  35. package/dist/chunks/auth-0.6.11-0afa68y1.mjs +1 -0
  36. package/dist/chunks/auth-0.6.11-3bje6qr0.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.11-3wrcedp0.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.11-0vbkadyk.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.11-499vsbem.mjs +1 -0
  40. package/dist/chunks/branch-0.6.11-b6ddxdz4.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.11-s9q15zwp.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.11-aq9ss0nj.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.11-4xr76j32.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.11-0aqx1yv3.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.11-a7jrmhet.mjs +1 -0
  46. package/dist/chunks/btw-0.6.11-mep49mwv.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.11-aey0xb05.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.11-ztbestgj.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.11-g9j002w5.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.11-vv3h8pks.mjs +4 -0
  51. package/dist/chunks/caches-0.6.11-17mgtz55.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.11-5yfgvhrc.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.11-e8md3t8h.mjs +1 -0
  54. package/dist/chunks/clear-0.6.11-jx65n7qp.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.11-4mvdhkdp.mjs +1 -0
  56. package/dist/chunks/cli-0.6.11-00pzeepb.mjs +2 -0
  57. package/dist/chunks/cli-0.6.11-052bg705.mjs +2 -0
  58. package/dist/chunks/cli-0.6.11-0a1yneth.mjs +3 -0
  59. package/dist/chunks/cli-0.6.11-0a5nxb24.mjs +2 -0
  60. package/dist/chunks/cli-0.6.11-0c0dc88n.mjs +18 -0
  61. package/dist/chunks/cli-0.6.11-0fk53vjx.mjs +2 -0
  62. package/dist/chunks/cli-0.6.11-0hm8hzyd.mjs +2 -0
  63. package/dist/chunks/cli-0.6.11-0qyj157c.mjs +2 -0
  64. package/dist/chunks/cli-0.6.11-0y2xzq24.mjs +2 -0
  65. package/dist/chunks/cli-0.6.11-10w38yz0.mjs +2 -0
  66. package/dist/chunks/cli-0.6.11-15h0vp87.mjs +4 -0
  67. package/dist/chunks/cli-0.6.11-173vp64j.mjs +2 -0
  68. package/dist/chunks/cli-0.6.11-1j4wg380.mjs +2 -0
  69. package/dist/chunks/cli-0.6.11-1mvb95b1.mjs +2 -0
  70. package/dist/chunks/cli-0.6.11-1n2a62nt.mjs +59 -0
  71. package/dist/chunks/cli-0.6.11-1t2njyn0.mjs +2 -0
  72. package/dist/chunks/cli-0.6.11-1w8f6pcg.mjs +2 -0
  73. package/dist/chunks/cli-0.6.11-25jht58e.mjs +2 -0
  74. package/dist/chunks/cli-0.6.11-2c9khav6.mjs +3 -0
  75. package/dist/chunks/cli-0.6.11-2dzp9494.mjs +2 -0
  76. package/dist/chunks/cli-0.6.11-2kjpgwq8.mjs +2 -0
  77. package/dist/chunks/cli-0.6.11-2m6rny10.mjs +2 -0
  78. package/dist/chunks/cli-0.6.11-2qd0rf15.mjs +28 -0
  79. package/dist/chunks/cli-0.6.11-2qh8cr36.mjs +2 -0
  80. package/dist/chunks/cli-0.6.11-2rprqzgh.mjs +2 -0
  81. package/dist/chunks/cli-0.6.11-2zqez4wd.mjs +2 -0
  82. package/dist/chunks/cli-0.6.11-32hg380d.mjs +9 -0
  83. package/dist/chunks/cli-0.6.11-36ps870f.mjs +2 -0
  84. package/dist/chunks/cli-0.6.11-3qvr6h78.mjs +2 -0
  85. package/dist/chunks/cli-0.6.11-3zjz43qx.mjs +3 -0
  86. package/dist/chunks/cli-0.6.11-46vdysh0.mjs +3 -0
  87. package/dist/chunks/cli-0.6.11-4e5ar3bg.mjs +2 -0
  88. package/dist/chunks/cli-0.6.11-4gej9br3.mjs +17 -0
  89. package/dist/chunks/cli-0.6.11-4gpj4gsd.mjs +2 -0
  90. package/dist/chunks/cli-0.6.11-4hy3wgq8.mjs +2 -0
  91. package/dist/chunks/cli-0.6.11-4kfxn8yd.mjs +2 -0
  92. package/dist/chunks/cli-0.6.11-4q7czjpx.mjs +2 -0
  93. package/dist/chunks/cli-0.6.11-4wz0g55m.mjs +2 -0
  94. package/dist/chunks/cli-0.6.11-53d996vr.mjs +2 -0
  95. package/dist/chunks/cli-0.6.11-5b48xhwk.mjs +2 -0
  96. package/dist/chunks/cli-0.6.11-5c798z8d.mjs +10 -0
  97. package/dist/chunks/cli-0.6.11-5d4nqcar.mjs +4 -0
  98. package/dist/chunks/cli-0.6.11-5k9p5pks.mjs +2 -0
  99. package/dist/chunks/cli-0.6.11-5q70pnak.mjs +21 -0
  100. package/dist/chunks/cli-0.6.11-5rbq8w3k.mjs +2 -0
  101. package/dist/chunks/cli-0.6.11-5rmv3rjz.mjs +2 -0
  102. package/dist/chunks/cli-0.6.11-5s18vts2.mjs +2 -0
  103. package/dist/chunks/cli-0.6.11-64xw0etq.mjs +4 -0
  104. package/dist/chunks/cli-0.6.11-674bvc47.mjs +2 -0
  105. package/dist/chunks/cli-0.6.11-6c4r2426.mjs +2 -0
  106. package/dist/chunks/cli-0.6.11-6yp7zyby.mjs +15 -0
  107. package/dist/chunks/cli-0.6.11-716cqfeb.mjs +2 -0
  108. package/dist/chunks/cli-0.6.11-7eknaa64.mjs +3 -0
  109. package/dist/chunks/cli-0.6.11-7gxy0qb2.mjs +133 -0
  110. package/dist/chunks/cli-0.6.11-7hk2gber.mjs +2 -0
  111. package/dist/chunks/cli-0.6.11-7mnmrj04.mjs +2 -0
  112. package/dist/chunks/cli-0.6.11-7vypz42w.mjs +3 -0
  113. package/dist/chunks/cli-0.6.11-887jj6fe.mjs +2 -0
  114. package/dist/chunks/cli-0.6.11-8ar69w9a.mjs +2 -0
  115. package/dist/chunks/cli-0.6.11-8eerj3xn.mjs +2 -0
  116. package/dist/chunks/cli-0.6.11-8f0jfjxs.mjs +2 -0
  117. package/dist/chunks/cli-0.6.11-8ms0bjze.mjs +133 -0
  118. package/dist/chunks/cli-0.6.11-8n8a5y9t.mjs +3 -0
  119. package/dist/chunks/cli-0.6.11-8ph76y69.mjs +2 -0
  120. package/dist/chunks/cli-0.6.11-8yv9yjve.mjs +5 -0
  121. package/dist/chunks/cli-0.6.11-927enz8e.mjs +2 -0
  122. package/dist/chunks/cli-0.6.11-93mbpc2x.mjs +6 -0
  123. package/dist/chunks/cli-0.6.11-9d57wb7j.mjs +2 -0
  124. package/dist/chunks/cli-0.6.11-9dm066ew.mjs +16 -0
  125. package/dist/chunks/cli-0.6.11-9q72m1zw.mjs +2 -0
  126. package/dist/chunks/cli-0.6.11-9w5fs9qs.mjs +2 -0
  127. package/dist/chunks/cli-0.6.11-9wxvs847.mjs +2 -0
  128. package/dist/chunks/cli-0.6.11-a0g5x5vr.mjs +2 -0
  129. package/dist/chunks/cli-0.6.11-a1epsfk8.mjs +42 -0
  130. package/dist/chunks/cli-0.6.11-a2ansh6y.mjs +2 -0
  131. package/dist/chunks/cli-0.6.11-a78px81d.mjs +2 -0
  132. package/dist/chunks/cli-0.6.11-abv5tcf5.mjs +2 -0
  133. package/dist/chunks/cli-0.6.11-ag6c6pp0.mjs +2 -0
  134. package/dist/chunks/cli-0.6.11-ahfnvt9w.mjs +2 -0
  135. package/dist/chunks/cli-0.6.11-and7dqq1.mjs +2 -0
  136. package/dist/chunks/cli-0.6.11-apqqmhjs.mjs +2 -0
  137. package/dist/chunks/cli-0.6.11-ar9we9b3.mjs +6 -0
  138. package/dist/chunks/cli-0.6.11-asrrshp1.mjs +2 -0
  139. package/dist/chunks/cli-0.6.11-atkxdhw4.mjs +18 -0
  140. package/dist/chunks/cli-0.6.11-b1gbnjtd.mjs +3 -0
  141. package/dist/chunks/cli-0.6.11-bgrb1hm3.mjs +20 -0
  142. package/dist/chunks/cli-0.6.11-bk2qdg9h.mjs +2 -0
  143. package/dist/chunks/cli-0.6.11-bm8b1dzg.mjs +2 -0
  144. package/dist/chunks/cli-0.6.11-bzpyzzp5.mjs +2 -0
  145. package/dist/chunks/cli-0.6.11-cjsjjdxm.mjs +12 -0
  146. package/dist/chunks/cli-0.6.11-cncdrbgd.mjs +2 -0
  147. package/dist/chunks/cli-0.6.11-dar8tdfv.mjs +2 -0
  148. package/dist/chunks/cli-0.6.11-dhnnwew7.mjs +2 -0
  149. package/dist/chunks/cli-0.6.11-dr7edc1g.mjs +7 -0
  150. package/dist/chunks/cli-0.6.11-dth46pzp.mjs +4 -0
  151. package/dist/chunks/cli-0.6.11-e0vzetrn.mjs +1 -0
  152. package/dist/chunks/cli-0.6.11-e4pjzk3d.mjs +5 -0
  153. package/dist/chunks/cli-0.6.11-eacagr72.mjs +2 -0
  154. package/dist/chunks/cli-0.6.11-ec7158a2.mjs +15 -0
  155. package/dist/chunks/cli-0.6.11-egs8xqkf.mjs +4 -0
  156. package/dist/chunks/cli-0.6.11-eqjbate8.mjs +2 -0
  157. package/dist/chunks/cli-0.6.11-fgwrsd7h.mjs +2 -0
  158. package/dist/chunks/cli-0.6.11-fjf6a1gs.mjs +2 -0
  159. package/dist/chunks/cli-0.6.11-fp1tdhey.mjs +2 -0
  160. package/dist/chunks/cli-0.6.11-fq2qa1zj.mjs +2 -0
  161. package/dist/chunks/cli-0.6.11-g4kp283f.mjs +2 -0
  162. package/dist/chunks/cli-0.6.11-gk260gdw.mjs +2 -0
  163. package/dist/chunks/cli-0.6.11-gqjpdm6p.mjs +2 -0
  164. package/dist/chunks/cli-0.6.11-gqxm9jz1.mjs +2 -0
  165. package/dist/chunks/cli-0.6.11-grhakq5f.mjs +67 -0
  166. package/dist/chunks/cli-0.6.11-gsz2891g.mjs +2 -0
  167. package/dist/chunks/cli-0.6.11-gwzwm546.mjs +2 -0
  168. package/dist/chunks/cli-0.6.11-h3hyxwem.mjs +2 -0
  169. package/dist/chunks/cli-0.6.11-hez5dm92.mjs +2 -0
  170. package/dist/chunks/cli-0.6.11-hfc20b2b.mjs +2 -0
  171. package/dist/chunks/cli-0.6.11-hjact5zq.mjs +2 -0
  172. package/dist/chunks/cli-0.6.11-hr8t3q70.mjs +2 -0
  173. package/dist/chunks/cli-0.6.11-hwx276s9.mjs +2 -0
  174. package/dist/chunks/cli-0.6.11-j17p2txv.mjs +24 -0
  175. package/dist/chunks/cli-0.6.11-j255v7ry.mjs +2 -0
  176. package/dist/chunks/cli-0.6.11-j4nh0jma.mjs +2 -0
  177. package/dist/chunks/cli-0.6.11-j4z3561r.mjs +25 -0
  178. package/dist/chunks/cli-0.6.11-jpy86ktt.mjs +34 -0
  179. package/dist/chunks/cli-0.6.11-jysha43m.mjs +2 -0
  180. package/dist/chunks/cli-0.6.11-k4ny666v.mjs +4 -0
  181. package/dist/chunks/cli-0.6.11-ka6t3b6m.mjs +193 -0
  182. package/dist/chunks/cli-0.6.11-kcb9xgs5.mjs +58 -0
  183. package/dist/chunks/cli-0.6.11-ma5kx9e4.mjs +2 -0
  184. package/dist/chunks/cli-0.6.11-mjdvh04x.mjs +4 -0
  185. package/dist/chunks/cli-0.6.11-mz3jbzq0.mjs +2 -0
  186. package/dist/chunks/cli-0.6.11-n46bkq7s.mjs +2 -0
  187. package/dist/chunks/cli-0.6.11-nds6sctv.mjs +45 -0
  188. package/dist/chunks/cli-0.6.11-nmtz5xgh.mjs +4 -0
  189. package/dist/chunks/cli-0.6.11-nrpzkrbs.mjs +2 -0
  190. package/dist/chunks/cli-0.6.11-nwgarns7.mjs +24 -0
  191. package/dist/chunks/cli-0.6.11-p1r07bx9.mjs +2 -0
  192. package/dist/chunks/cli-0.6.11-p8kmd5p7.mjs +2 -0
  193. package/dist/chunks/cli-0.6.11-pj3s60na.mjs +4 -0
  194. package/dist/chunks/cli-0.6.11-pqw3gejv.mjs +2 -0
  195. package/dist/chunks/cli-0.6.11-prd8de37.mjs +2 -0
  196. package/dist/chunks/cli-0.6.11-pyq1vqen.mjs +12 -0
  197. package/dist/chunks/cli-0.6.11-q19kyk5m.mjs +2 -0
  198. package/dist/chunks/cli-0.6.11-q69dj7n7.mjs +2 -0
  199. package/dist/chunks/cli-0.6.11-qn8q28j0.mjs +2 -0
  200. package/dist/chunks/cli-0.6.11-qrepyyjz.mjs +2 -0
  201. package/dist/chunks/cli-0.6.11-qrpn4y6z.mjs +2 -0
  202. package/dist/chunks/cli-0.6.11-qvgvamtz.mjs +50 -0
  203. package/dist/chunks/cli-0.6.11-qwxvwqyy.mjs +2 -0
  204. package/dist/chunks/cli-0.6.11-r03wa9n7.mjs +2 -0
  205. package/dist/chunks/cli-0.6.11-r2k2ccbq.mjs +4 -0
  206. package/dist/chunks/cli-0.6.11-r47v4jpv.mjs +2 -0
  207. package/dist/chunks/cli-0.6.11-re85rfvm.mjs +2 -0
  208. package/dist/chunks/cli-0.6.11-rev9sza4.mjs +2 -0
  209. package/dist/chunks/cli-0.6.11-rhe8j9bj.mjs +6 -0
  210. package/dist/chunks/cli-0.6.11-rk3wv9rd.mjs +3 -0
  211. package/dist/chunks/cli-0.6.11-s08zp9vw.mjs +15 -0
  212. package/dist/chunks/cli-0.6.11-s70nfce8.mjs +2 -0
  213. package/dist/chunks/cli-0.6.11-saca1d95.mjs +2 -0
  214. package/dist/chunks/cli-0.6.11-sgfx77xv.mjs +12 -0
  215. package/dist/chunks/cli-0.6.11-sjew1xkt.mjs +3 -0
  216. package/dist/chunks/cli-0.6.11-str7ytsd.mjs +2 -0
  217. package/dist/chunks/cli-0.6.11-sw6n6a3c.mjs +2 -0
  218. package/dist/chunks/cli-0.6.11-t4cxwajg.mjs +39 -0
  219. package/dist/chunks/cli-0.6.11-t66hga70.mjs +2 -0
  220. package/dist/chunks/cli-0.6.11-tjkxcvmn.mjs +2 -0
  221. package/dist/chunks/cli-0.6.11-trf46709.mjs +17 -0
  222. package/dist/chunks/cli-0.6.11-tstjs83y.mjs +2 -0
  223. package/dist/chunks/cli-0.6.11-ttsapz1k.mjs +2 -0
  224. package/dist/chunks/cli-0.6.11-tz9vtvwj.mjs +2 -0
  225. package/dist/chunks/cli-0.6.11-tzg5rhz9.mjs +2 -0
  226. package/dist/chunks/cli-0.6.11-v2v9mbjf.mjs +8 -0
  227. package/dist/chunks/cli-0.6.11-vycwwxt9.mjs +2 -0
  228. package/dist/chunks/cli-0.6.11-w022v2hv.mjs +2 -0
  229. package/dist/chunks/cli-0.6.11-w30nfz69.mjs +2 -0
  230. package/dist/chunks/cli-0.6.11-wa5scsze.mjs +2 -0
  231. package/dist/chunks/cli-0.6.11-wc0n1413.mjs +2 -0
  232. package/dist/chunks/cli-0.6.11-wjhhh1h4.mjs +2 -0
  233. package/dist/chunks/cli-0.6.11-wk812e4g.mjs +2 -0
  234. package/dist/chunks/cli-0.6.11-wz5gb96r.mjs +6 -0
  235. package/dist/chunks/cli-0.6.11-x2cj7p54.mjs +2 -0
  236. package/dist/chunks/cli-0.6.11-x5jwra8g.mjs +2 -0
  237. package/dist/chunks/cli-0.6.11-x6xp82sp.mjs +2 -0
  238. package/dist/chunks/cli-0.6.11-xb91n8pp.mjs +2 -0
  239. package/dist/chunks/cli-0.6.11-xgt8n37g.mjs +3 -0
  240. package/dist/chunks/cli-0.6.11-xj7thtn5.mjs +5 -0
  241. package/dist/chunks/cli-0.6.11-xqxcv5e9.mjs +3 -0
  242. package/dist/chunks/cli-0.6.11-xvd614xn.mjs +2 -0
  243. package/dist/chunks/cli-0.6.11-xvs7cq58.mjs +2 -0
  244. package/dist/chunks/cli-0.6.11-y8gv4gse.mjs +2 -0
  245. package/dist/chunks/cli-0.6.11-y9amtdt3.mjs +2 -0
  246. package/dist/chunks/cli-0.6.11-yf5rhdnx.mjs +3 -0
  247. package/dist/chunks/cli-0.6.11-yg9ympxv.mjs +2 -0
  248. package/dist/chunks/cli-0.6.11-ytme2rx5.mjs +2 -0
  249. package/dist/chunks/cli-0.6.11-yzqbg956.mjs +5415 -0
  250. package/dist/chunks/cli-0.6.11-z04rjzvb.mjs +2 -0
  251. package/dist/chunks/cli-0.6.11-z9by0x32.mjs +2 -0
  252. package/dist/chunks/cli-0.6.11-ze1rqxq1.mjs +2 -0
  253. package/dist/chunks/client-0.6.11-70d4q0e6.mjs +1 -0
  254. package/dist/chunks/color-0.6.11-ez96t3xm.mjs +1 -0
  255. package/dist/chunks/compact-0.6.11-6rt721pq.mjs +3 -0
  256. package/dist/chunks/config-0.6.11-6k7gavp8.mjs +1 -0
  257. package/dist/chunks/config-0.6.11-v35w9a31.mjs +1 -0
  258. package/dist/chunks/constants-0.6.11-cjq1ykse.mjs +1 -0
  259. package/dist/chunks/context-0.6.11-qjxqzecw.mjs +1 -0
  260. package/dist/chunks/context-noninteractive-0.6.11-1y5v72m4.mjs +1 -0
  261. package/dist/chunks/conversation-0.6.11-9vhbnr3g.mjs +1 -0
  262. package/dist/chunks/copilotHeaders-0.6.11-z121ywxg.mjs +1 -0
  263. package/dist/chunks/copy-0.6.11-c340y93f.mjs +9 -0
  264. package/dist/chunks/cost-0.6.11-bcwdtx5t.mjs +1 -0
  265. package/dist/chunks/createSSHSession-0.6.11-yvqajzp0.mjs +1 -0
  266. package/dist/chunks/createSession-0.6.11-a0hj7qyz.mjs +1 -0
  267. package/dist/chunks/debug-0.6.11-scn5mq3z.mjs +1 -0
  268. package/dist/chunks/defaultActionDeps-0.6.11-s09sr4n7.mjs +1367 -0
  269. package/dist/chunks/desktop-0.6.11-sv5zqqeb.mjs +1 -0
  270. package/dist/chunks/detectRepository-0.6.11-d4p66cnz.mjs +1 -0
  271. package/dist/chunks/detection-0.6.11-x12e4v9d.mjs +1 -0
  272. package/dist/chunks/diff-0.6.11-mntxpz0q.mjs +1 -0
  273. package/dist/chunks/doctor-0.6.11-temdhyme.mjs +1 -0
  274. package/dist/chunks/doctorDiagnostic-0.6.11-07phqns6.mjs +1 -0
  275. package/dist/chunks/earlyInput-0.6.11-b6xjvyky.mjs +1 -0
  276. package/dist/chunks/effort-0.6.11-617qwj2q.mjs +10 -0
  277. package/dist/chunks/envLessBridgeConfig-0.6.11-ycbja2hk.mjs +1 -0
  278. package/dist/chunks/envUtils-0.6.11-rs6r44fg.mjs +1 -0
  279. package/dist/chunks/environmentSelection-0.6.11-f275n518.mjs +1 -0
  280. package/dist/chunks/environments-0.6.11-sv4dc6cc.mjs +1 -0
  281. package/dist/chunks/errors-0.6.11-qv66pggk.mjs +1 -0
  282. package/dist/chunks/exampleCommands-0.6.11-nbtbkykx.mjs +1 -0
  283. package/dist/chunks/exit-0.6.11-wr5rygrg.mjs +1 -0
  284. package/dist/chunks/explorer-0.6.11-tx8t57mr.mjs +1 -0
  285. package/dist/chunks/export-0.6.11-mfvdc9vw.mjs +2 -0
  286. package/dist/chunks/extra-usage-0.6.11-zj8syy1h.mjs +1 -0
  287. package/dist/chunks/extra-usage-noninteractive-0.6.11-82g1bzrd.mjs +1 -0
  288. package/dist/chunks/fast-0.6.11-85d74dx3.mjs +1 -0
  289. package/dist/chunks/feedback-0.6.11-xgh8n5yf.mjs +14 -0
  290. package/dist/chunks/firstPartyEventLogger-0.6.11-b1mhnkqp.mjs +1 -0
  291. package/dist/chunks/git-0.6.11-79jra9bb.mjs +1 -0
  292. package/dist/chunks/githubModelsCredentials-0.6.11-sxdewptt.mjs +1 -0
  293. package/dist/chunks/goal-0.6.11-40q7jjhs.mjs +4 -0
  294. package/dist/chunks/grove-0.6.11-v2m8yr2t.mjs +1 -0
  295. package/dist/chunks/growthbook-0.6.11-zrzzd6w1.mjs +1 -0
  296. package/dist/chunks/headless-0.6.11-r5gw4645.mjs +2 -0
  297. package/dist/chunks/heapdump-0.6.11-d3hzrj36.mjs +6 -0
  298. package/dist/chunks/help-0.6.11-c2skb7ad.mjs +1 -0
  299. package/dist/chunks/hookChains-0.6.11-g7m6r6me.mjs +3 -0
  300. package/dist/chunks/hooks-0.6.11-hwgx2kme.mjs +79 -0
  301. package/dist/chunks/hooks-0.6.11-j861y5dm.mjs +1 -0
  302. package/dist/chunks/ide-0.6.11-1fvfwrp1.mjs +3 -0
  303. package/dist/chunks/image-processor-napi-0.6.11-951qtc6g.mjs +1 -0
  304. package/dist/chunks/inboundAttachments-0.6.11-m9mp3gnn.mjs +1 -0
  305. package/dist/chunks/index-0.6.11-2dyp4cyd.mjs +2 -0
  306. package/dist/chunks/index-0.6.11-6hq069cp.mjs +1 -0
  307. package/dist/chunks/index-0.6.11-6rw1b8jg.mjs +1 -0
  308. package/dist/chunks/index-0.6.11-7sxsr7fc.mjs +2 -0
  309. package/dist/chunks/index-0.6.11-8c4kmbd2.mjs +1 -0
  310. package/dist/chunks/index-0.6.11-9jxn7k0q.mjs +1 -0
  311. package/dist/chunks/index-0.6.11-dj3r2mch.mjs +30 -0
  312. package/dist/chunks/index-0.6.11-eqjzpskp.mjs +1 -0
  313. package/dist/chunks/index-0.6.11-f1sxadym.mjs +1 -0
  314. package/dist/chunks/index-0.6.11-fb4brrb8.mjs +1 -0
  315. package/dist/chunks/index-0.6.11-gvpky3kb.mjs +1 -0
  316. package/dist/chunks/index-0.6.11-hbzfzedf.mjs +1 -0
  317. package/dist/chunks/index-0.6.11-hxgz43fr.mjs +1 -0
  318. package/dist/chunks/index-0.6.11-mh7t6qwv.mjs +1 -0
  319. package/dist/chunks/index-0.6.11-mjxjhv2r.mjs +9 -0
  320. package/dist/chunks/index-0.6.11-pk717ynw.mjs +1 -0
  321. package/dist/chunks/index-0.6.11-sv5aecsq.mjs +1 -0
  322. package/dist/chunks/index-0.6.11-t7ygqnf0.mjs +1 -0
  323. package/dist/chunks/index-0.6.11-tbavx2zw.mjs +9 -0
  324. package/dist/chunks/index-0.6.11-v6prk9pn.mjs +1 -0
  325. package/dist/chunks/index-0.6.11-wz5x5ga0.mjs +1 -0
  326. package/dist/chunks/index-0.6.11-xweg6a59.mjs +5 -0
  327. package/dist/chunks/index-0.6.11-yzrjwxa5.mjs +1 -0
  328. package/dist/chunks/init-0.6.11-2fjbym4j.mjs +1 -0
  329. package/dist/chunks/initReplBridge-0.6.11-a3jjmvj9.mjs +1 -0
  330. package/dist/chunks/ink-0.6.11-fx062wer.mjs +1 -0
  331. package/dist/chunks/insights-0.6.11-0kznq0t2.mjs +870 -0
  332. package/dist/chunks/install-0.6.11-j29zthcm.mjs +1 -0
  333. package/dist/chunks/install-github-app-0.6.11-79e0z625.mjs +149 -0
  334. package/dist/chunks/install-slack-app-0.6.11-7jw79s6f.mjs +1 -0
  335. package/dist/chunks/instrumentation-0.6.11-hfwskyr3.mjs +1 -0
  336. package/dist/chunks/interactiveHelpers-0.6.11-jfdpcyjm.mjs +1 -0
  337. package/dist/chunks/keybindings-0.6.11-bry9hazf.mjs +2 -0
  338. package/dist/chunks/knowledge-0.6.11-9gym9rk7.mjs +2 -0
  339. package/dist/chunks/latestVersionCache-0.6.11-zrkj03rn.mjs +1 -0
  340. package/dist/chunks/loadAgentsDir-0.6.11-v8cwy9nw.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.11-d87jkzcf.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.6.11-g80c3nw3.mjs +1 -0
  343. package/dist/chunks/log-0.6.11-1chsqxe9.mjs +1 -0
  344. package/dist/chunks/main-0.6.11-vrgnyy0m.mjs +1 -0
  345. package/dist/chunks/managedEnv-0.6.11-pxhywyps.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.11-1knwr5tf.mjs +17 -0
  347. package/dist/chunks/mcp-0.6.11-8tyamc3f.mjs +4 -0
  348. package/dist/chunks/mcp-0.6.11-94cbrpkx.mjs +1 -0
  349. package/dist/chunks/mcpb-0.6.11-6vnd31wy.mjs +1 -0
  350. package/dist/chunks/memory-0.6.11-cv64m2gh.mjs +3 -0
  351. package/dist/chunks/model-0.6.11-g7egtzfm.mjs +2 -0
  352. package/dist/chunks/model-0.6.11-rwp8jj5q.mjs +1 -0
  353. package/dist/chunks/node-0.6.11-pqx3daa2.mjs +12 -0
  354. package/dist/chunks/oauth-0.6.11-jw16eb9m.mjs +1 -0
  355. package/dist/chunks/openaiShim-0.6.11-06kyf6dn.mjs +14 -0
  356. package/dist/chunks/output-style-0.6.11-brn9j341.mjs +1 -0
  357. package/dist/chunks/package-FMOR3ELU-0.6.11-7aj7ev0m.mjs +1 -0
  358. package/dist/chunks/parseConnectUrl-0.6.11-280k236q.mjs +1 -0
  359. package/dist/chunks/parser-0.6.11-kqs391w7.mjs +1 -0
  360. package/dist/chunks/passes-0.6.11-hzcyq0t0.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.11-4c99d288.mjs +3 -0
  362. package/dist/chunks/permissions-0.6.11-acav3hp0.mjs +1 -0
  363. package/dist/chunks/plan-0.6.11-gjpg2790.mjs +1 -0
  364. package/dist/chunks/plist-0.6.11-w05ya36x.mjs +1 -0
  365. package/dist/chunks/plugin-0.6.11-03d13axt.mjs +29 -0
  366. package/dist/chunks/pluginStartupCheck-0.6.11-9pgbqg5d.mjs +1 -0
  367. package/dist/chunks/plugins-0.6.11-75h6xdqw.mjs +9 -0
  368. package/dist/chunks/preActionHook-0.6.11-s50nx3vz.mjs +2 -0
  369. package/dist/chunks/print-0.6.11-k4etj16x.mjs +57 -0
  370. package/dist/chunks/privacy-settings-0.6.11-wrefmptf.mjs +1 -0
  371. package/dist/chunks/process-0.6.11-1659ktyh.mjs +1 -0
  372. package/dist/chunks/processBashCommand-0.6.11-1vdvh812.mjs +1 -0
  373. package/dist/chunks/processSlashCommand-0.6.11-sgrrkz4h.mjs +9 -0
  374. package/dist/chunks/prompt-0.6.11-6vegx569.mjs +1 -0
  375. package/dist/chunks/prompt-0.6.11-fna890vw.mjs +1 -0
  376. package/dist/chunks/prompts-0.6.11-t47csfe1.mjs +1 -0
  377. package/dist/chunks/protocolHandler-0.6.11-j86echck.mjs +13 -0
  378. package/dist/chunks/provider-0.6.11-hb987r47.mjs +2 -0
  379. package/dist/chunks/providerProfiles-0.6.11-tgq134ma.mjs +1 -0
  380. package/dist/chunks/providerValidation-0.6.11-mt64512j.mjs +6 -0
  381. package/dist/chunks/rate-limit-options-0.6.11-kxa5nfj5.mjs +1 -0
  382. package/dist/chunks/registerSubcommands-0.6.11-b6er8zns.mjs +34 -0
  383. package/dist/chunks/registry-0.6.11-4fb806v3.mjs +1 -0
  384. package/dist/chunks/release-notes-0.6.11-fz4zz5yg.mjs +5 -0
  385. package/dist/chunks/reload-plugins-0.6.11-n4mpr219.mjs +2 -0
  386. package/dist/chunks/remote-env-0.6.11-ncb7g7d4.mjs +1 -0
  387. package/dist/chunks/remoteBridgeCore-0.6.11-x37cwgvg.mjs +1 -0
  388. package/dist/chunks/remoteSession-0.6.11-e9z7yjsw.mjs +1 -0
  389. package/dist/chunks/rename-0.6.11-c0w0b2m6.mjs +1 -0
  390. package/dist/chunks/replBridgeHandle-0.6.11-ee9w01cn.mjs +1 -0
  391. package/dist/chunks/replLauncher-0.6.11-xfdp6att.mjs +1 -0
  392. package/dist/chunks/resume-0.6.11-23kcn6jj.mjs +2 -0
  393. package/dist/chunks/rewind-0.6.11-q3akxk2q.mjs +1 -0
  394. package/dist/chunks/rootOptions-0.6.11-k2pf0f0y.mjs +1 -0
  395. package/dist/chunks/sandbox-adapter-0.6.11-0bvzn2v8.mjs +1 -0
  396. package/dist/chunks/sandbox-toggle-0.6.11-yzt81h2v.mjs +1 -0
  397. package/dist/chunks/session-0.6.11-08024vnp.mjs +2 -0
  398. package/dist/chunks/sessionDiscovery-0.6.11-xt43r5c8.mjs +1 -0
  399. package/dist/chunks/sessionFileAccessHooks-0.6.11-e0rtjx2z.mjs +1 -0
  400. package/dist/chunks/sessionStorage-0.6.11-bdqzcb2k.mjs +1 -0
  401. package/dist/chunks/settings-0.6.11-rj27fsx5.mjs +1 -0
  402. package/dist/chunks/setup-0.6.11-dq4adawj.mjs +5 -0
  403. package/dist/chunks/sinks-0.6.11-gmn5bprg.mjs +1 -0
  404. package/dist/chunks/skills-0.6.11-z0crf6nq.mjs +1 -0
  405. package/dist/chunks/startupProfiler-0.6.11-v4kbxysc.mjs +1 -0
  406. package/dist/chunks/startupUpdateCheck-0.6.11-jjwggzd7.mjs +1 -0
  407. package/dist/chunks/state-0.6.11-tecbf8py.mjs +1 -0
  408. package/dist/chunks/stats-0.6.11-d5wgq5tt.mjs +6 -0
  409. package/dist/chunks/status-0.6.11-5ae64prh.mjs +1 -0
  410. package/dist/chunks/stickers-0.6.11-jkr9x3cy.mjs +1 -0
  411. package/dist/chunks/subprocessEnv-0.6.11-qvhfja2s.mjs +1 -0
  412. package/dist/chunks/tasks-0.6.11-55xpmrgd.mjs +1 -0
  413. package/dist/chunks/teamHelpers-0.6.11-pxkdnqew.mjs +1 -0
  414. package/dist/chunks/teammateModeSnapshot-0.6.11-gmexf5zv.mjs +1 -0
  415. package/dist/chunks/teleport-0.6.11-ry1yzr4s.mjs +1 -0
  416. package/dist/chunks/terminalSetup-0.6.11-8tr8vzr8.mjs +1 -0
  417. package/dist/chunks/theme-0.6.11-xpbbnbzp.mjs +1 -0
  418. package/dist/chunks/thinkback-0.6.11-e1trmsb8.mjs +1 -0
  419. package/dist/chunks/thinkback-play-0.6.11-8f5rw6t4.mjs +1 -0
  420. package/dist/chunks/toolPool-0.6.11-8hyhwpnn.mjs +1 -0
  421. package/dist/chunks/toolSearch-0.6.11-s0gkr04e.mjs +1 -0
  422. package/dist/chunks/tools-0.6.11-z407md0d.mjs +1 -0
  423. package/dist/chunks/trustedDevice-0.6.11-m53tzan2.mjs +1 -0
  424. package/dist/chunks/turndown.cjs-0.6.11-djt9nf5m.mjs +69 -0
  425. package/dist/chunks/types-0.6.11-vbmyqmjq.mjs +1 -0
  426. package/dist/chunks/ultrareviewCommand-0.6.11-k4baarek.mjs +4 -0
  427. package/dist/chunks/update-0.6.11-0hmef5vs.mjs +86 -0
  428. package/dist/chunks/upgrade-0.6.11-37aswh99.mjs +1 -0
  429. package/dist/chunks/upload-0.6.11-gkfarr52.mjs +7 -0
  430. package/dist/chunks/upstreamproxy-0.6.11-4gkmsmz9.mjs +14 -0
  431. package/dist/chunks/url-handler-napi-0.6.11-tw7gxmkc.mjs +1 -0
  432. package/dist/chunks/usage-0.6.11-d6r3fpzd.mjs +1 -0
  433. package/dist/chunks/util-0.6.11-rdmkft2p.mjs +1 -0
  434. package/dist/chunks/utils-0.6.11-9mdps77k.mjs +1 -0
  435. package/dist/chunks/vim-0.6.11-19h6mmsw.mjs +1 -0
  436. package/dist/chunks/watcher-0.6.11-wbkacdcb.mjs +1 -0
  437. package/dist/chunks/wiki-0.6.11-ry1ctzqt.mjs +132 -0
  438. package/dist/chunks/worktree-0.6.11-j65v1emk.mjs +1 -0
  439. package/dist/chunks/worktreeModeEnabled-0.6.11-mj34d7de.mjs +1 -0
  440. package/dist/chunks/wrapper-0.6.11-shx80n4c.mjs +7 -0
  441. package/dist/claudin-vscode.vsix +0 -0
  442. package/dist/cli.mjs +2 -2
  443. package/package.json +1 -1
  444. package/dist/chunks/AgentTool-0.6.10-pc63a9d0.mjs +0 -1
  445. package/dist/chunks/App-0.6.10-q3xcd47r.mjs +0 -1
  446. package/dist/chunks/ApproveApiKey-0.6.10-w6fsssyp.mjs +0 -1
  447. package/dist/chunks/AssistantSessionChooser-0.6.10-4bd71ef1.mjs +0 -1
  448. package/dist/chunks/AutoModeOptInDialog-0.6.10-v0mg8ypk.mjs +0 -1
  449. package/dist/chunks/BypassPermissionsModeDialog-0.6.10-kbqv74m9.mjs +0 -1
  450. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.10-1n2n7jm7.mjs +0 -1
  451. package/dist/chunks/ConsoleOAuthFlow-0.6.10-aw1g8h4f.mjs +0 -1
  452. package/dist/chunks/DiffDialog-0.6.10-b2cwrvz7.mjs +0 -7
  453. package/dist/chunks/Doctor-0.6.10-ggfaar35.mjs +0 -1
  454. package/dist/chunks/ExplorerDialog-0.6.10-e692sh3q.mjs +0 -6
  455. package/dist/chunks/Grove-0.6.10-eavgjwkr.mjs +0 -1
  456. package/dist/chunks/ITermBackend-0.6.10-5h3fqa7n.mjs +0 -1
  457. package/dist/chunks/InvalidConfigDialog-0.6.10-4wm5hbn1.mjs +0 -1
  458. package/dist/chunks/InvalidSettingsDialog-0.6.10-2c9rvk27.mjs +0 -1
  459. package/dist/chunks/MigrationDialog-0.6.10-zhcbfmky.mjs +0 -1
  460. package/dist/chunks/Onboarding-0.6.10-x6tqmt67.mjs +0 -1
  461. package/dist/chunks/ProviderManager-0.6.10-vazqkyya.mjs +0 -1
  462. package/dist/chunks/REPL-0.6.10-s7sv4jaz.mjs +0 -1
  463. package/dist/chunks/ResumeConversation-0.6.10-r11yajt2.mjs +0 -1
  464. package/dist/chunks/SnapshotUpdateDialog-0.6.10-vc41e76h.mjs +0 -1
  465. package/dist/chunks/TeleportProgress-0.6.10-66zbwap8.mjs +0 -1
  466. package/dist/chunks/TeleportRepoMismatchDialog-0.6.10-67wymxzf.mjs +0 -1
  467. package/dist/chunks/TeleportResumeWrapper-0.6.10-xsnsqwdz.mjs +0 -1
  468. package/dist/chunks/TmuxBackend-0.6.10-wa4f54d8.mjs +0 -9
  469. package/dist/chunks/ToolSearchTool-0.6.10-anxny4hp.mjs +0 -1
  470. package/dist/chunks/TrustDialog-0.6.10-wdx9ym5t.mjs +0 -1
  471. package/dist/chunks/activeProvider-0.6.10-tfw5ne13.mjs +0 -1
  472. package/dist/chunks/add-dir-0.6.10-m2awyvem.mjs +0 -1
  473. package/dist/chunks/agents-0.6.10-dfnc3z0x.mjs +0 -110
  474. package/dist/chunks/agents-0.6.10-q6rwqt5n.mjs +0 -3
  475. package/dist/chunks/api-0.6.10-2kpxwpf7.mjs +0 -1
  476. package/dist/chunks/asciicast-0.6.10-phpj95t0.mjs +0 -1
  477. package/dist/chunks/assistant-0.6.10-bk619hgs.mjs +0 -1
  478. package/dist/chunks/auth-0.6.10-exndmshh.mjs +0 -1
  479. package/dist/chunks/auth-0.6.10-zwse97wh.mjs +0 -1
  480. package/dist/chunks/autoMode-0.6.10-r7cygq5e.mjs +0 -48
  481. package/dist/chunks/autoUpdater-0.6.10-pyp05p5g.mjs +0 -1
  482. package/dist/chunks/backgroundHousekeeping-0.6.10-rfs50a2d.mjs +0 -1
  483. package/dist/chunks/branch-0.6.10-nycehd04.mjs +0 -4
  484. package/dist/chunks/bridge-0.6.10-bra19vvb.mjs +0 -2
  485. package/dist/chunks/bridgeConfig-0.6.10-kmxyfzt6.mjs +0 -1
  486. package/dist/chunks/bridgeEnabled-0.6.10-405me6tc.mjs +0 -1
  487. package/dist/chunks/bridgeMain-0.6.10-m3hwnhak.mjs +0 -88
  488. package/dist/chunks/bridgePointer-0.6.10-sgr296jn.mjs +0 -1
  489. package/dist/chunks/btw-0.6.10-e8fae0g4.mjs +0 -1
  490. package/dist/chunks/buddy-0.6.10-y9g75nde.mjs +0 -3
  491. package/dist/chunks/cacache-0.6.10-8a56gyhe.mjs +0 -1
  492. package/dist/chunks/cache-probe-0.6.10-j5dv0ze8.mjs +0 -21
  493. package/dist/chunks/cacheStats-0.6.10-kn5hkwnr.mjs +0 -4
  494. package/dist/chunks/caches-0.6.10-hyfrtp91.mjs +0 -1
  495. package/dist/chunks/claudeDesktop-0.6.10-23mgx59s.mjs +0 -1
  496. package/dist/chunks/claudemd-0.6.10-znbbeehm.mjs +0 -1
  497. package/dist/chunks/clear-0.6.10-f4z7nb46.mjs +0 -1
  498. package/dist/chunks/clearTerminal-0.6.10-q3ntmyx6.mjs +0 -1
  499. package/dist/chunks/cli-0.6.10-007bw6rq.mjs +0 -2
  500. package/dist/chunks/cli-0.6.10-04xyjtqp.mjs +0 -18
  501. package/dist/chunks/cli-0.6.10-06yft8cy.mjs +0 -2
  502. package/dist/chunks/cli-0.6.10-09xkvgtb.mjs +0 -3
  503. package/dist/chunks/cli-0.6.10-0b7z3d0a.mjs +0 -2
  504. package/dist/chunks/cli-0.6.10-0fr4nchy.mjs +0 -17
  505. package/dist/chunks/cli-0.6.10-0h6a9dcq.mjs +0 -2
  506. package/dist/chunks/cli-0.6.10-0had63e0.mjs +0 -2
  507. package/dist/chunks/cli-0.6.10-0k8b5g3y.mjs +0 -2
  508. package/dist/chunks/cli-0.6.10-0w502raj.mjs +0 -12
  509. package/dist/chunks/cli-0.6.10-0xjd83ey.mjs +0 -25
  510. package/dist/chunks/cli-0.6.10-0xxezqeh.mjs +0 -21
  511. package/dist/chunks/cli-0.6.10-194zm15b.mjs +0 -2
  512. package/dist/chunks/cli-0.6.10-20dx8cv9.mjs +0 -2
  513. package/dist/chunks/cli-0.6.10-25arf7er.mjs +0 -15
  514. package/dist/chunks/cli-0.6.10-2rxbwttq.mjs +0 -5
  515. package/dist/chunks/cli-0.6.10-2trx2sqp.mjs +0 -1
  516. package/dist/chunks/cli-0.6.10-375wa3y2.mjs +0 -2
  517. package/dist/chunks/cli-0.6.10-3e7ajk04.mjs +0 -3
  518. package/dist/chunks/cli-0.6.10-3kakfn9p.mjs +0 -2
  519. package/dist/chunks/cli-0.6.10-3nht1qk2.mjs +0 -193
  520. package/dist/chunks/cli-0.6.10-3web3hbd.mjs +0 -2
  521. package/dist/chunks/cli-0.6.10-3ytqex80.mjs +0 -3
  522. package/dist/chunks/cli-0.6.10-4bwskbrr.mjs +0 -2
  523. package/dist/chunks/cli-0.6.10-4d9mssh1.mjs +0 -2
  524. package/dist/chunks/cli-0.6.10-4faavn4z.mjs +0 -2
  525. package/dist/chunks/cli-0.6.10-4fswsxhh.mjs +0 -2
  526. package/dist/chunks/cli-0.6.10-4paz5m54.mjs +0 -2
  527. package/dist/chunks/cli-0.6.10-4pptj4dt.mjs +0 -34
  528. package/dist/chunks/cli-0.6.10-4r4t8cq3.mjs +0 -2
  529. package/dist/chunks/cli-0.6.10-4rwy0hf2.mjs +0 -2
  530. package/dist/chunks/cli-0.6.10-4sd7w0ny.mjs +0 -2
  531. package/dist/chunks/cli-0.6.10-4tqfq3bh.mjs +0 -2
  532. package/dist/chunks/cli-0.6.10-4v3edm8v.mjs +0 -2
  533. package/dist/chunks/cli-0.6.10-5cz3150z.mjs +0 -8
  534. package/dist/chunks/cli-0.6.10-5fk9pv4j.mjs +0 -2
  535. package/dist/chunks/cli-0.6.10-5jaxzkj9.mjs +0 -4
  536. package/dist/chunks/cli-0.6.10-5qrbfb57.mjs +0 -3
  537. package/dist/chunks/cli-0.6.10-5rr1dmag.mjs +0 -6
  538. package/dist/chunks/cli-0.6.10-5v3ebsy8.mjs +0 -2
  539. package/dist/chunks/cli-0.6.10-5yr3hp7q.mjs +0 -2
  540. package/dist/chunks/cli-0.6.10-63mrsvws.mjs +0 -2
  541. package/dist/chunks/cli-0.6.10-6bnz1wsy.mjs +0 -2
  542. package/dist/chunks/cli-0.6.10-6q9gvpdq.mjs +0 -4
  543. package/dist/chunks/cli-0.6.10-6sssjkv6.mjs +0 -5
  544. package/dist/chunks/cli-0.6.10-6wxgepz0.mjs +0 -2
  545. package/dist/chunks/cli-0.6.10-6z9r1a31.mjs +0 -3
  546. package/dist/chunks/cli-0.6.10-71mkw30e.mjs +0 -2
  547. package/dist/chunks/cli-0.6.10-743jgjs6.mjs +0 -2
  548. package/dist/chunks/cli-0.6.10-74gxtz55.mjs +0 -2
  549. package/dist/chunks/cli-0.6.10-7as21ajf.mjs +0 -3
  550. package/dist/chunks/cli-0.6.10-7gxqhb8g.mjs +0 -133
  551. package/dist/chunks/cli-0.6.10-83yhdrwz.mjs +0 -2
  552. package/dist/chunks/cli-0.6.10-87cpzzxg.mjs +0 -4
  553. package/dist/chunks/cli-0.6.10-88w2c7gx.mjs +0 -2
  554. package/dist/chunks/cli-0.6.10-8kpb0kxt.mjs +0 -2
  555. package/dist/chunks/cli-0.6.10-8s6we29m.mjs +0 -4
  556. package/dist/chunks/cli-0.6.10-96nfaf30.mjs +0 -2
  557. package/dist/chunks/cli-0.6.10-99j1abq3.mjs +0 -2
  558. package/dist/chunks/cli-0.6.10-9f868v6c.mjs +0 -2
  559. package/dist/chunks/cli-0.6.10-9qweq8dd.mjs +0 -6
  560. package/dist/chunks/cli-0.6.10-9rcjng8s.mjs +0 -2
  561. package/dist/chunks/cli-0.6.10-9t8aqsnm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.10-a2byqzdb.mjs +0 -2
  563. package/dist/chunks/cli-0.6.10-ajjmvx3c.mjs +0 -59
  564. package/dist/chunks/cli-0.6.10-an35ek0n.mjs +0 -20
  565. package/dist/chunks/cli-0.6.10-aqf0kax9.mjs +0 -2
  566. package/dist/chunks/cli-0.6.10-b0ppj1eq.mjs +0 -2
  567. package/dist/chunks/cli-0.6.10-b3070g3s.mjs +0 -2
  568. package/dist/chunks/cli-0.6.10-b4qd3yag.mjs +0 -2
  569. package/dist/chunks/cli-0.6.10-b93fsrew.mjs +0 -2
  570. package/dist/chunks/cli-0.6.10-bgr2v2kx.mjs +0 -2
  571. package/dist/chunks/cli-0.6.10-bhj11561.mjs +0 -2
  572. package/dist/chunks/cli-0.6.10-bm2rzyr5.mjs +0 -2
  573. package/dist/chunks/cli-0.6.10-bmy2rmqm.mjs +0 -2
  574. package/dist/chunks/cli-0.6.10-bz35vcq0.mjs +0 -4
  575. package/dist/chunks/cli-0.6.10-c6ffp79z.mjs +0 -39
  576. package/dist/chunks/cli-0.6.10-c9e5xj4m.mjs +0 -5
  577. package/dist/chunks/cli-0.6.10-crqx6pmb.mjs +0 -3
  578. package/dist/chunks/cli-0.6.10-cs82frbp.mjs +0 -2
  579. package/dist/chunks/cli-0.6.10-d4b00jtd.mjs +0 -2
  580. package/dist/chunks/cli-0.6.10-ds086npj.mjs +0 -4
  581. package/dist/chunks/cli-0.6.10-dshvbx8m.mjs +0 -2
  582. package/dist/chunks/cli-0.6.10-dypx2apn.mjs +0 -2
  583. package/dist/chunks/cli-0.6.10-e2g2kwb3.mjs +0 -2
  584. package/dist/chunks/cli-0.6.10-e5n6kpjg.mjs +0 -2
  585. package/dist/chunks/cli-0.6.10-e5t2wkjj.mjs +0 -2
  586. package/dist/chunks/cli-0.6.10-e61zdre3.mjs +0 -2
  587. package/dist/chunks/cli-0.6.10-ec8zak20.mjs +0 -2
  588. package/dist/chunks/cli-0.6.10-ej031rhh.mjs +0 -2
  589. package/dist/chunks/cli-0.6.10-ew2xpxpt.mjs +0 -10
  590. package/dist/chunks/cli-0.6.10-fctpqtz9.mjs +0 -2
  591. package/dist/chunks/cli-0.6.10-fdhf61fm.mjs +0 -2
  592. package/dist/chunks/cli-0.6.10-feh3ehq8.mjs +0 -2
  593. package/dist/chunks/cli-0.6.10-fh0qe3jw.mjs +0 -5408
  594. package/dist/chunks/cli-0.6.10-fq0vvkgg.mjs +0 -2
  595. package/dist/chunks/cli-0.6.10-fv4b397t.mjs +0 -2
  596. package/dist/chunks/cli-0.6.10-fxvfvpfc.mjs +0 -2
  597. package/dist/chunks/cli-0.6.10-g42hbbyx.mjs +0 -2
  598. package/dist/chunks/cli-0.6.10-gfmq62a5.mjs +0 -2
  599. package/dist/chunks/cli-0.6.10-gfzq1xdw.mjs +0 -2
  600. package/dist/chunks/cli-0.6.10-gj0a1s24.mjs +0 -2
  601. package/dist/chunks/cli-0.6.10-gne1gsrc.mjs +0 -2
  602. package/dist/chunks/cli-0.6.10-gqpxsx7v.mjs +0 -2
  603. package/dist/chunks/cli-0.6.10-gzj1pee6.mjs +0 -2
  604. package/dist/chunks/cli-0.6.10-h1hfr2mp.mjs +0 -2
  605. package/dist/chunks/cli-0.6.10-hf96nx3k.mjs +0 -2
  606. package/dist/chunks/cli-0.6.10-hrefj58w.mjs +0 -2
  607. package/dist/chunks/cli-0.6.10-hwk82bpw.mjs +0 -2
  608. package/dist/chunks/cli-0.6.10-jax39fxj.mjs +0 -2
  609. package/dist/chunks/cli-0.6.10-jb5y0jfb.mjs +0 -2
  610. package/dist/chunks/cli-0.6.10-jrnddxjb.mjs +0 -2
  611. package/dist/chunks/cli-0.6.10-jrx0zpgt.mjs +0 -2
  612. package/dist/chunks/cli-0.6.10-k0bx2zac.mjs +0 -24
  613. package/dist/chunks/cli-0.6.10-k0qapztr.mjs +0 -17
  614. package/dist/chunks/cli-0.6.10-k3yqwnmf.mjs +0 -15
  615. package/dist/chunks/cli-0.6.10-k4mwvdt2.mjs +0 -3
  616. package/dist/chunks/cli-0.6.10-k5hnyqvs.mjs +0 -58
  617. package/dist/chunks/cli-0.6.10-kcg9xtd4.mjs +0 -2
  618. package/dist/chunks/cli-0.6.10-kfm5062s.mjs +0 -2
  619. package/dist/chunks/cli-0.6.10-kqqk6z5r.mjs +0 -18
  620. package/dist/chunks/cli-0.6.10-kr2hhxcp.mjs +0 -2
  621. package/dist/chunks/cli-0.6.10-kvy7e0hs.mjs +0 -24
  622. package/dist/chunks/cli-0.6.10-kwx06ffr.mjs +0 -133
  623. package/dist/chunks/cli-0.6.10-m2atbxmp.mjs +0 -2
  624. package/dist/chunks/cli-0.6.10-m56cm615.mjs +0 -2
  625. package/dist/chunks/cli-0.6.10-m6mnqx47.mjs +0 -2
  626. package/dist/chunks/cli-0.6.10-m8egkzv6.mjs +0 -4
  627. package/dist/chunks/cli-0.6.10-m8w0yqyk.mjs +0 -2
  628. package/dist/chunks/cli-0.6.10-ma1ft2z7.mjs +0 -12
  629. package/dist/chunks/cli-0.6.10-mdmda3yh.mjs +0 -2
  630. package/dist/chunks/cli-0.6.10-mhrx6w6c.mjs +0 -3
  631. package/dist/chunks/cli-0.6.10-n91j8t48.mjs +0 -2
  632. package/dist/chunks/cli-0.6.10-n9ad0dqs.mjs +0 -2
  633. package/dist/chunks/cli-0.6.10-nj568nb8.mjs +0 -2
  634. package/dist/chunks/cli-0.6.10-nnr6bgey.mjs +0 -2
  635. package/dist/chunks/cli-0.6.10-p4e34m9m.mjs +0 -2
  636. package/dist/chunks/cli-0.6.10-peshnw7x.mjs +0 -2
  637. package/dist/chunks/cli-0.6.10-pjybpta5.mjs +0 -2
  638. package/dist/chunks/cli-0.6.10-ps3qshm2.mjs +0 -2
  639. package/dist/chunks/cli-0.6.10-q3pn77m0.mjs +0 -2
  640. package/dist/chunks/cli-0.6.10-qdff7bwc.mjs +0 -2
  641. package/dist/chunks/cli-0.6.10-qhnh10xs.mjs +0 -2
  642. package/dist/chunks/cli-0.6.10-qpvrjcxj.mjs +0 -2
  643. package/dist/chunks/cli-0.6.10-r053kteh.mjs +0 -2
  644. package/dist/chunks/cli-0.6.10-r1zg8hjd.mjs +0 -4
  645. package/dist/chunks/cli-0.6.10-r261gqbz.mjs +0 -2
  646. package/dist/chunks/cli-0.6.10-r6n3t4y5.mjs +0 -2
  647. package/dist/chunks/cli-0.6.10-rpqzxn5n.mjs +0 -2
  648. package/dist/chunks/cli-0.6.10-rq0hdash.mjs +0 -4
  649. package/dist/chunks/cli-0.6.10-rtfnxx5g.mjs +0 -2
  650. package/dist/chunks/cli-0.6.10-rvt5834w.mjs +0 -2
  651. package/dist/chunks/cli-0.6.10-rvxxsgew.mjs +0 -3
  652. package/dist/chunks/cli-0.6.10-s48vqp7h.mjs +0 -3
  653. package/dist/chunks/cli-0.6.10-s9s4y4pe.mjs +0 -2
  654. package/dist/chunks/cli-0.6.10-sdbmeewb.mjs +0 -2
  655. package/dist/chunks/cli-0.6.10-seh7emsc.mjs +0 -2
  656. package/dist/chunks/cli-0.6.10-tarr1aa6.mjs +0 -2
  657. package/dist/chunks/cli-0.6.10-tbarj9ac.mjs +0 -12
  658. package/dist/chunks/cli-0.6.10-tgw0ne6b.mjs +0 -28
  659. package/dist/chunks/cli-0.6.10-twyctfxx.mjs +0 -2
  660. package/dist/chunks/cli-0.6.10-v6686g2y.mjs +0 -2
  661. package/dist/chunks/cli-0.6.10-vbc7veda.mjs +0 -2
  662. package/dist/chunks/cli-0.6.10-vevjmd3s.mjs +0 -2
  663. package/dist/chunks/cli-0.6.10-vpf2h2ys.mjs +0 -2
  664. package/dist/chunks/cli-0.6.10-vwy25zxd.mjs +0 -2
  665. package/dist/chunks/cli-0.6.10-vx8ghs2a.mjs +0 -2
  666. package/dist/chunks/cli-0.6.10-vytrd6pp.mjs +0 -2
  667. package/dist/chunks/cli-0.6.10-w0xpqx8x.mjs +0 -2
  668. package/dist/chunks/cli-0.6.10-w5ktgwb6.mjs +0 -2
  669. package/dist/chunks/cli-0.6.10-w6wtb66q.mjs +0 -7
  670. package/dist/chunks/cli-0.6.10-wchnn74m.mjs +0 -2
  671. package/dist/chunks/cli-0.6.10-wd70haac.mjs +0 -3
  672. package/dist/chunks/cli-0.6.10-wgqzy62m.mjs +0 -42
  673. package/dist/chunks/cli-0.6.10-wnwqatq5.mjs +0 -67
  674. package/dist/chunks/cli-0.6.10-wtzszqn5.mjs +0 -2
  675. package/dist/chunks/cli-0.6.10-x7r5d517.mjs +0 -9
  676. package/dist/chunks/cli-0.6.10-x8wy7g7p.mjs +0 -6
  677. package/dist/chunks/cli-0.6.10-xjymzbm2.mjs +0 -4
  678. package/dist/chunks/cli-0.6.10-xmthj4tb.mjs +0 -2
  679. package/dist/chunks/cli-0.6.10-xwjzecgn.mjs +0 -2
  680. package/dist/chunks/cli-0.6.10-y2tx5msk.mjs +0 -2
  681. package/dist/chunks/cli-0.6.10-y5m55y2e.mjs +0 -45
  682. package/dist/chunks/cli-0.6.10-yet22s9x.mjs +0 -2
  683. package/dist/chunks/cli-0.6.10-yr88z6pr.mjs +0 -2
  684. package/dist/chunks/cli-0.6.10-yrm9vds4.mjs +0 -2
  685. package/dist/chunks/cli-0.6.10-yy76qw7h.mjs +0 -2
  686. package/dist/chunks/cli-0.6.10-yz5cd33k.mjs +0 -15
  687. package/dist/chunks/cli-0.6.10-z43zd6gx.mjs +0 -2
  688. package/dist/chunks/cli-0.6.10-z59d7tmt.mjs +0 -3
  689. package/dist/chunks/cli-0.6.10-z5gp5z38.mjs +0 -50
  690. package/dist/chunks/cli-0.6.10-z663hb6c.mjs +0 -2
  691. package/dist/chunks/cli-0.6.10-z6n2741b.mjs +0 -2
  692. package/dist/chunks/cli-0.6.10-z94hfa8d.mjs +0 -2
  693. package/dist/chunks/cli-0.6.10-zngfmjtq.mjs +0 -2
  694. package/dist/chunks/cli-0.6.10-zqv22c50.mjs +0 -6
  695. package/dist/chunks/cli-0.6.10-zyvt1jxy.mjs +0 -16
  696. package/dist/chunks/client-0.6.10-e68bga3q.mjs +0 -1
  697. package/dist/chunks/color-0.6.10-jgca92d2.mjs +0 -1
  698. package/dist/chunks/compact-0.6.10-pga6j4et.mjs +0 -3
  699. package/dist/chunks/config-0.6.10-2kqc2t3y.mjs +0 -1
  700. package/dist/chunks/config-0.6.10-tcm75jey.mjs +0 -1
  701. package/dist/chunks/constants-0.6.10-sya0fxh4.mjs +0 -1
  702. package/dist/chunks/context-0.6.10-h4r1j554.mjs +0 -1
  703. package/dist/chunks/context-noninteractive-0.6.10-yg6kn1vx.mjs +0 -1
  704. package/dist/chunks/conversation-0.6.10-j15gzcdd.mjs +0 -1
  705. package/dist/chunks/copilotHeaders-0.6.10-kf7jcp6s.mjs +0 -1
  706. package/dist/chunks/copy-0.6.10-3kzpyps7.mjs +0 -9
  707. package/dist/chunks/cost-0.6.10-fnaq264n.mjs +0 -1
  708. package/dist/chunks/createSSHSession-0.6.10-k5ftya6a.mjs +0 -1
  709. package/dist/chunks/createSession-0.6.10-35y67jwe.mjs +0 -1
  710. package/dist/chunks/debug-0.6.10-n5x9y9vq.mjs +0 -1
  711. package/dist/chunks/defaultActionDeps-0.6.10-7gcm2ant.mjs +0 -1367
  712. package/dist/chunks/desktop-0.6.10-w10y9c6s.mjs +0 -1
  713. package/dist/chunks/detectRepository-0.6.10-91bht5eh.mjs +0 -1
  714. package/dist/chunks/detection-0.6.10-2rcvg6a7.mjs +0 -1
  715. package/dist/chunks/diff-0.6.10-37y80eve.mjs +0 -1
  716. package/dist/chunks/doctor-0.6.10-03khmb2e.mjs +0 -1
  717. package/dist/chunks/doctorDiagnostic-0.6.10-eh1pjv87.mjs +0 -1
  718. package/dist/chunks/earlyInput-0.6.10-jfrac0rt.mjs +0 -1
  719. package/dist/chunks/effort-0.6.10-np8ncze8.mjs +0 -10
  720. package/dist/chunks/envLessBridgeConfig-0.6.10-e7bn5pg5.mjs +0 -1
  721. package/dist/chunks/envUtils-0.6.10-a012cz9g.mjs +0 -1
  722. package/dist/chunks/environmentSelection-0.6.10-swhy83d9.mjs +0 -1
  723. package/dist/chunks/environments-0.6.10-zqjx2w2e.mjs +0 -1
  724. package/dist/chunks/errors-0.6.10-hm45ztbm.mjs +0 -1
  725. package/dist/chunks/exampleCommands-0.6.10-3446gnbr.mjs +0 -1
  726. package/dist/chunks/exit-0.6.10-vpeceb21.mjs +0 -1
  727. package/dist/chunks/explorer-0.6.10-zjjzxksb.mjs +0 -1
  728. package/dist/chunks/export-0.6.10-hnnqngd5.mjs +0 -2
  729. package/dist/chunks/extra-usage-0.6.10-gtda3wg0.mjs +0 -1
  730. package/dist/chunks/extra-usage-noninteractive-0.6.10-nz1j41qz.mjs +0 -1
  731. package/dist/chunks/fast-0.6.10-rd5z4x7d.mjs +0 -1
  732. package/dist/chunks/feedback-0.6.10-kc7f8az3.mjs +0 -14
  733. package/dist/chunks/firstPartyEventLogger-0.6.10-wk8nq6xn.mjs +0 -1
  734. package/dist/chunks/git-0.6.10-ah8x7bvn.mjs +0 -1
  735. package/dist/chunks/githubModelsCredentials-0.6.10-9ps0y1s1.mjs +0 -1
  736. package/dist/chunks/goal-0.6.10-z0xn3kbc.mjs +0 -4
  737. package/dist/chunks/grove-0.6.10-tzn8va81.mjs +0 -1
  738. package/dist/chunks/growthbook-0.6.10-d0bhv83x.mjs +0 -1
  739. package/dist/chunks/headless-0.6.10-j23342en.mjs +0 -2
  740. package/dist/chunks/heapdump-0.6.10-40jdp89t.mjs +0 -6
  741. package/dist/chunks/help-0.6.10-x5j1shx8.mjs +0 -1
  742. package/dist/chunks/hookChains-0.6.10-vz0kajv4.mjs +0 -3
  743. package/dist/chunks/hooks-0.6.10-cjctc3pk.mjs +0 -1
  744. package/dist/chunks/hooks-0.6.10-d4e5d4jq.mjs +0 -79
  745. package/dist/chunks/ide-0.6.10-c9vx5yyv.mjs +0 -3
  746. package/dist/chunks/image-processor-napi-0.6.10-j9xbdedd.mjs +0 -1
  747. package/dist/chunks/inboundAttachments-0.6.10-qvc8gtq1.mjs +0 -1
  748. package/dist/chunks/index-0.6.10-1ce12br9.mjs +0 -1
  749. package/dist/chunks/index-0.6.10-23bed64t.mjs +0 -1
  750. package/dist/chunks/index-0.6.10-2e15j6y7.mjs +0 -9
  751. package/dist/chunks/index-0.6.10-4ggrtp02.mjs +0 -1
  752. package/dist/chunks/index-0.6.10-5cgqvkpd.mjs +0 -1
  753. package/dist/chunks/index-0.6.10-7g3qxmqy.mjs +0 -1
  754. package/dist/chunks/index-0.6.10-7hb2kw34.mjs +0 -1
  755. package/dist/chunks/index-0.6.10-bwp7ejkw.mjs +0 -1
  756. package/dist/chunks/index-0.6.10-jeq5t7bt.mjs +0 -1
  757. package/dist/chunks/index-0.6.10-jhysvfs4.mjs +0 -1
  758. package/dist/chunks/index-0.6.10-k83tg0hk.mjs +0 -1
  759. package/dist/chunks/index-0.6.10-m4xrd2ck.mjs +0 -2
  760. package/dist/chunks/index-0.6.10-nvnk8f62.mjs +0 -1
  761. package/dist/chunks/index-0.6.10-p0npme3e.mjs +0 -9
  762. package/dist/chunks/index-0.6.10-pj7qk1ay.mjs +0 -1
  763. package/dist/chunks/index-0.6.10-rm91h20d.mjs +0 -1
  764. package/dist/chunks/index-0.6.10-s5e9thxx.mjs +0 -1
  765. package/dist/chunks/index-0.6.10-stt9s3ap.mjs +0 -1
  766. package/dist/chunks/index-0.6.10-v0x2gvb2.mjs +0 -1
  767. package/dist/chunks/index-0.6.10-w4pech08.mjs +0 -2
  768. package/dist/chunks/index-0.6.10-xa7j7j51.mjs +0 -1
  769. package/dist/chunks/index-0.6.10-xvpvs1cq.mjs +0 -30
  770. package/dist/chunks/index-0.6.10-yajn443n.mjs +0 -5
  771. package/dist/chunks/init-0.6.10-cx438e1r.mjs +0 -1
  772. package/dist/chunks/initReplBridge-0.6.10-yzeqrx1r.mjs +0 -1
  773. package/dist/chunks/ink-0.6.10-ehmdxdda.mjs +0 -1
  774. package/dist/chunks/insights-0.6.10-ymy0ax9s.mjs +0 -870
  775. package/dist/chunks/install-0.6.10-6xsxh8rw.mjs +0 -1
  776. package/dist/chunks/install-github-app-0.6.10-n0mqxv7y.mjs +0 -149
  777. package/dist/chunks/install-slack-app-0.6.10-vdzembtq.mjs +0 -1
  778. package/dist/chunks/instrumentation-0.6.10-ee94ynfg.mjs +0 -1
  779. package/dist/chunks/interactiveHelpers-0.6.10-dcfkv2ya.mjs +0 -1
  780. package/dist/chunks/keybindings-0.6.10-3xnrfxvh.mjs +0 -2
  781. package/dist/chunks/knowledge-0.6.10-0szdqkwe.mjs +0 -2
  782. package/dist/chunks/latestVersionCache-0.6.10-6ekyepyt.mjs +0 -1
  783. package/dist/chunks/loadAgentsDir-0.6.10-82jwqyyq.mjs +0 -1
  784. package/dist/chunks/loadPluginHooks-0.6.10-7fkt9ad8.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.10-fhqsm9y4.mjs +0 -1
  786. package/dist/chunks/log-0.6.10-78vjy53b.mjs +0 -1
  787. package/dist/chunks/main-0.6.10-4dvm6d6t.mjs +0 -1
  788. package/dist/chunks/managedEnv-0.6.10-zhfxjy3j.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.10-5f83tgd5.mjs +0 -4
  790. package/dist/chunks/mcp-0.6.10-b4snzba2.mjs +0 -17
  791. package/dist/chunks/mcp-0.6.10-kbj234ww.mjs +0 -1
  792. package/dist/chunks/mcpb-0.6.10-vag783ma.mjs +0 -1
  793. package/dist/chunks/memory-0.6.10-henf0b1g.mjs +0 -3
  794. package/dist/chunks/model-0.6.10-7160y81e.mjs +0 -2
  795. package/dist/chunks/model-0.6.10-9rdwx1ek.mjs +0 -1
  796. package/dist/chunks/node-0.6.10-2nyw5nh5.mjs +0 -12
  797. package/dist/chunks/oauth-0.6.10-rktmj1b2.mjs +0 -1
  798. package/dist/chunks/openaiShim-0.6.10-mv9eg82h.mjs +0 -14
  799. package/dist/chunks/output-style-0.6.10-0pav9q8w.mjs +0 -1
  800. package/dist/chunks/package-FMOR3ELU-0.6.10-5ar9yxr7.mjs +0 -1
  801. package/dist/chunks/parseConnectUrl-0.6.10-yz44fdhk.mjs +0 -1
  802. package/dist/chunks/parser-0.6.10-13sm7kqb.mjs +0 -1
  803. package/dist/chunks/passes-0.6.10-5h06jj2r.mjs +0 -1
  804. package/dist/chunks/permissions-0.6.10-k9dwtyqj.mjs +0 -3
  805. package/dist/chunks/permissions-0.6.10-twx9c8mp.mjs +0 -1
  806. package/dist/chunks/plan-0.6.10-z9h0c075.mjs +0 -1
  807. package/dist/chunks/plist-0.6.10-j533y42p.mjs +0 -1
  808. package/dist/chunks/plugin-0.6.10-erwx5c5x.mjs +0 -29
  809. package/dist/chunks/pluginStartupCheck-0.6.10-q85wj5v2.mjs +0 -1
  810. package/dist/chunks/plugins-0.6.10-jpsbbg01.mjs +0 -9
  811. package/dist/chunks/preActionHook-0.6.10-zpxbgrg4.mjs +0 -2
  812. package/dist/chunks/print-0.6.10-kbctj6hv.mjs +0 -57
  813. package/dist/chunks/privacy-settings-0.6.10-c0bv0th2.mjs +0 -1
  814. package/dist/chunks/process-0.6.10-dkct366y.mjs +0 -1
  815. package/dist/chunks/processBashCommand-0.6.10-5yz1hvk7.mjs +0 -1
  816. package/dist/chunks/processSlashCommand-0.6.10-71w6nfyj.mjs +0 -9
  817. package/dist/chunks/prompt-0.6.10-f9y98av4.mjs +0 -1
  818. package/dist/chunks/prompt-0.6.10-fgbs1m66.mjs +0 -1
  819. package/dist/chunks/prompts-0.6.10-676epz7k.mjs +0 -1
  820. package/dist/chunks/protocolHandler-0.6.10-773g9qer.mjs +0 -13
  821. package/dist/chunks/provider-0.6.10-5qsacwg4.mjs +0 -2
  822. package/dist/chunks/providerProfiles-0.6.10-p7hdwrt5.mjs +0 -1
  823. package/dist/chunks/providerValidation-0.6.10-0djsjgat.mjs +0 -6
  824. package/dist/chunks/rate-limit-options-0.6.10-sw7x1zh6.mjs +0 -1
  825. package/dist/chunks/registerSubcommands-0.6.10-qnj3g3nr.mjs +0 -34
  826. package/dist/chunks/registry-0.6.10-gbcb4fsk.mjs +0 -1
  827. package/dist/chunks/release-notes-0.6.10-ncd08wgw.mjs +0 -5
  828. package/dist/chunks/reload-plugins-0.6.10-c81xxbym.mjs +0 -2
  829. package/dist/chunks/remote-env-0.6.10-43xt4gtw.mjs +0 -1
  830. package/dist/chunks/remoteBridgeCore-0.6.10-wbf6j8px.mjs +0 -1
  831. package/dist/chunks/remoteSession-0.6.10-k6vbpv3e.mjs +0 -1
  832. package/dist/chunks/rename-0.6.10-4cdkqswx.mjs +0 -1
  833. package/dist/chunks/replBridgeHandle-0.6.10-xq933mdz.mjs +0 -1
  834. package/dist/chunks/replLauncher-0.6.10-cr3jja5a.mjs +0 -1
  835. package/dist/chunks/resume-0.6.10-c2j899e6.mjs +0 -2
  836. package/dist/chunks/rewind-0.6.10-n9fy7yby.mjs +0 -1
  837. package/dist/chunks/rootOptions-0.6.10-xz0vqcck.mjs +0 -1
  838. package/dist/chunks/sandbox-adapter-0.6.10-d5xfqw9c.mjs +0 -1
  839. package/dist/chunks/sandbox-toggle-0.6.10-spmpkwez.mjs +0 -1
  840. package/dist/chunks/session-0.6.10-ymz837t4.mjs +0 -2
  841. package/dist/chunks/sessionDiscovery-0.6.10-admkdc69.mjs +0 -1
  842. package/dist/chunks/sessionFileAccessHooks-0.6.10-r33t5jhr.mjs +0 -1
  843. package/dist/chunks/sessionStorage-0.6.10-49gm7w2n.mjs +0 -1
  844. package/dist/chunks/settings-0.6.10-wzzcwaad.mjs +0 -1
  845. package/dist/chunks/setup-0.6.10-bvhn26jk.mjs +0 -5
  846. package/dist/chunks/sinks-0.6.10-0fd872vw.mjs +0 -1
  847. package/dist/chunks/skills-0.6.10-km050qe9.mjs +0 -1
  848. package/dist/chunks/startupProfiler-0.6.10-f1cddfrv.mjs +0 -1
  849. package/dist/chunks/startupUpdateCheck-0.6.10-5e18qqrf.mjs +0 -1
  850. package/dist/chunks/state-0.6.10-mpkke4ym.mjs +0 -1
  851. package/dist/chunks/stats-0.6.10-28h5f8jt.mjs +0 -6
  852. package/dist/chunks/status-0.6.10-qv0herbz.mjs +0 -1
  853. package/dist/chunks/stickers-0.6.10-t6950ynt.mjs +0 -1
  854. package/dist/chunks/subprocessEnv-0.6.10-y41znt8f.mjs +0 -1
  855. package/dist/chunks/tasks-0.6.10-nzx570q8.mjs +0 -1
  856. package/dist/chunks/teamHelpers-0.6.10-423jdy2s.mjs +0 -1
  857. package/dist/chunks/teammateModeSnapshot-0.6.10-py06s880.mjs +0 -1
  858. package/dist/chunks/teleport-0.6.10-re7mans7.mjs +0 -1
  859. package/dist/chunks/terminalSetup-0.6.10-9drqbrvg.mjs +0 -1
  860. package/dist/chunks/theme-0.6.10-nfjdb2a2.mjs +0 -1
  861. package/dist/chunks/thinkback-0.6.10-s417vqj3.mjs +0 -1
  862. package/dist/chunks/thinkback-play-0.6.10-mfppeqst.mjs +0 -1
  863. package/dist/chunks/toolPool-0.6.10-592457ck.mjs +0 -1
  864. package/dist/chunks/toolSearch-0.6.10-cmsrw1tk.mjs +0 -1
  865. package/dist/chunks/tools-0.6.10-srv0bd3j.mjs +0 -1
  866. package/dist/chunks/trustedDevice-0.6.10-qbjy3xd7.mjs +0 -1
  867. package/dist/chunks/turndown.cjs-0.6.10-j32w9asd.mjs +0 -69
  868. package/dist/chunks/types-0.6.10-k6bfpqde.mjs +0 -1
  869. package/dist/chunks/ultrareviewCommand-0.6.10-fh4xtvd7.mjs +0 -4
  870. package/dist/chunks/update-0.6.10-29rz32zf.mjs +0 -86
  871. package/dist/chunks/upgrade-0.6.10-sf6fmrcg.mjs +0 -1
  872. package/dist/chunks/upload-0.6.10-vnxpnpf4.mjs +0 -7
  873. package/dist/chunks/upstreamproxy-0.6.10-jtxth348.mjs +0 -14
  874. package/dist/chunks/url-handler-napi-0.6.10-ma00svp5.mjs +0 -1
  875. package/dist/chunks/usage-0.6.10-rc7hv408.mjs +0 -1
  876. package/dist/chunks/util-0.6.10-vjjkrrxd.mjs +0 -1
  877. package/dist/chunks/utils-0.6.10-t87q7ghn.mjs +0 -1
  878. package/dist/chunks/vim-0.6.10-c84ddjyn.mjs +0 -1
  879. package/dist/chunks/watcher-0.6.10-yv6sjckm.mjs +0 -1
  880. package/dist/chunks/wiki-0.6.10-xffa4ex9.mjs +0 -132
  881. package/dist/chunks/worktree-0.6.10-91ksabjj.mjs +0 -1
  882. package/dist/chunks/worktreeModeEnabled-0.6.10-25q9hj62.mjs +0 -1
  883. package/dist/chunks/wrapper-0.6.10-3f51d8k0.mjs +0 -7
  884. /package/dist/chunks/{cli-0.6.10-8grbj06a.mjs → cli-0.6.11-4z1bgfpr.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.10-dn50fre7.mjs → cli-0.6.11-6wwzebtr.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.10-1cr6dzck.mjs → cli-0.6.11-dk5sskg3.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.10-dhp14pdf.mjs → cli-0.6.11-g6e4fqkd.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.10-aywg0dk7.mjs → cli-0.6.11-mczw6msm.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.10-xp9mthnh.mjs → cli-0.6.11-p24pya2r.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.10-9k81xmw8.mjs → cli-0.6.11-qbvxgfdn.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{V1 as N,W1 as V,X1 as D}from"./cli-0.6.10-q3pn77m0.mjs";import{D2 as Y,I2 as _,U5 as J,W5 as $,Z5 as B,s6 as x,t5 as Z}from"./cli-0.6.10-zyvt1jxy.mjs";import{Hga as Q,Nga as P}from"./cli-0.6.10-r6n3t4y5.mjs";import{cpa as X,upa as R}from"./cli-0.6.10-tgw0ne6b.mjs";import{Opa as W}from"./cli-0.6.10-yr88z6pr.mjs";function E(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",F=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${F})`}function I(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function w(){if(Y()==="firstParty")return`Claude-User (${N()}; +https://support.anthropic.com/)`;return`Claudin-User (${V()})`}function C(){if(B()){let F=J();if(!F?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${F.accessToken}`,"anthropic-beta":Q}}}let z=Z();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function O(z,F){try{return await z()}catch(G){if(!X.isAxiosError(G))throw G;let L=G.response?.status;if(!(L===401||F?.also403Revoked&&L===403&&typeof G.response?.data==="string"&&G.response.data.includes("OAuth token has been revoked")))throw G;let M=J()?.accessToken;if(!M)throw G;return await $(M),await z()}}var H=W(()=>{R();P();x();_();D()});
2
- export{E as P1,I as Q1,w as R1,C as S1,O as T1,H as U1};
@@ -1,9 +0,0 @@
1
- import{Fpa as V_,Gpa as su,Ipa as K_,Jpa as f_}from"./cli-0.6.10-0fr4nchy.mjs";import{Mpa as H,Ppa as $_}from"./cli-0.6.10-yr88z6pr.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
- versions published after the first week of January 2027
3
- will require node >=${E}. You are running node ${_}.
4
-
5
- To continue receiving updates to AWS services, bug fixes,
6
- and security updates please upgrade to node >=${E}.
7
-
8
- More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
- export{W_ as ypa,D_ as zpa,yu as Apa,ou as Bpa};
@@ -1,6 +0,0 @@
1
- import{Opa as j}from"./cli-0.6.10-yr88z6pr.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
- `:`
3
- `)+z,H=D+1,D=q.indexOf(`
4
- `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
- `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
- export{o as N6,O1 as O6,e as P6};
@@ -1,4 +0,0 @@
1
- import{cg as LJ,dg as WQ}from"./cli-0.6.10-s48vqp7h.mjs";import{eg as hJ,fg as RQ}from"./cli-0.6.10-fdhf61fm.mjs";import{gg as PJ,hg as hQ}from"./cli-0.6.10-74gxtz55.mjs";import{ig as aq,jg as lJ}from"./cli-0.6.10-jrx0zpgt.mjs";import{kg as Fq,lg as iq,mg as $J}from"./cli-0.6.10-4bwskbrr.mjs";import{ng as WJ,og as HQ}from"./cli-0.6.10-m56cm615.mjs";import{Bs as KJ,Cs as VQ,DO as Aq,Ds as VJ,Es as XJ,Fs as XQ,GO as oJ,Ku as uq,Lu as mq,Nu as pq,Ou as fJ,RF as vq,SF as BQ,TF as UJ,UF as FJ,VF as wJ,VR as wq,WF as FQ,ZR as sq,Zn as GJ,_n as KQ,aS as tq,mS as nJ,mv as g,nO as eq,oI as HJ,pI as RJ,pO as iJ,pv as yQ,qI as wQ,uo as P,vo as Tq}from"./cli-0.6.10-fh0qe3jw.mjs";import{VS as yJ,XS as NJ,_S as NQ}from"./cli-0.6.10-25arf7er.mjs";import{bV as BJ,fV as UQ}from"./cli-0.6.10-99j1abq3.mjs";import{EW as zJ,FW as zQ,IW as YJ,JW as YQ,RW as Mq,SW as GQ}from"./cli-0.6.10-r261gqbz.mjs";import{FX as Pq,FZ as Oq,_Y as y,aZ as Q}from"./cli-0.6.10-ajjmvx3c.mjs";import{K1 as h,L1 as Y,M1 as Z,N1 as c}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as ZQ}from"./cli-0.6.10-w0xpqx8x.mjs";import{L4 as cJ,Z4 as ZJ,_4 as QQ,m4 as rq}from"./cli-0.6.10-zyvt1jxy.mjs";import{$7 as tJ,Daa as gq,Eaa as dJ,Haa as xq,Paa as TJ,Z9 as Iq,_7 as $,pba as QJ,u_ as qQ,zba as JQ}from"./cli-0.6.10-3nht1qk2.mjs";import{Gia as sJ,tia as JJ}from"./cli-0.6.10-kr2hhxcp.mjs";import{hoa as eJ,qka as qJ}from"./cli-0.6.10-seh7emsc.mjs";import{Kpa as Bq,Opa as Uq}from"./cli-0.6.10-yr88z6pr.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 ag,cQ as bg};
@@ -1,2 +0,0 @@
1
- import{Rga as f}from"./cli-0.6.10-qhnh10xs.mjs";import{Uha as h}from"./cli-0.6.10-zqv22c50.mjs";import{Opa as Z}from"./cli-0.6.10-yr88z6pr.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var w=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(){}async function oz(z){if(!z||z.length>D)return null;return null}async function dz(z){if(!z||z.length>D)return null;return null}function nz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(l(J.text));else if(m.has(J.type))break}return X}function l(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,m,pz;var L=Z(()=>{f();h();w();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),m=new Set(["command_substitution","process_substitution"]);pz=Symbol("parse-aborted")});
2
- export{K as k1,w as l1,kz as m1,oz as n1,pz as o1,dz as p1,nz as q1,L as r1};
@@ -1,2 +0,0 @@
1
- import{$j as I,FP as R,Ul as W,XO as Y,Xl as P,_j as Q}from"./cli-0.6.10-fh0qe3jw.mjs";import{rea as B,sea as f}from"./cli-0.6.10-5jaxzkj9.mjs";import{Dga as F,gga as H,hga as J}from"./cli-0.6.10-4v3edm8v.mjs";import{hoa as $,kka as v}from"./cli-0.6.10-seh7emsc.mjs";import{Opa as Z}from"./cli-0.6.10-yr88z6pr.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
- export{S as Oe,V as Pe,X as Qe,r as Re,w as Se,T as Te,G as Ue};
@@ -1,2 +0,0 @@
1
- import{We as H,Ze as A}from"./cli-0.6.10-vx8ghs2a.mjs";import{lf as L,of as P,qf as _}from"./cli-0.6.10-4faavn4z.mjs";import{cpa as U,upa as F}from"./cli-0.6.10-tgw0ne6b.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
- export{j as ab,C as bb,y as cb,S as db,h as eb,f as fb};
@@ -1,45 +0,0 @@
1
- import{Be as BY,Ce as Bz}from"./cli-0.6.10-ma1ft2z7.mjs";import{xg as qY,yg as qz}from"./cli-0.6.10-yy76qw7h.mjs";import{$g as cY,Zg as $Y,_g as yz,ah as mz}from"./cli-0.6.10-dshvbx8m.mjs";import{$Q as dY,AR as XJ,BR as GZ,CR as X0,Dq as Zz,Eq as KK,HI as GY,MI as Gz,SR as V0,cH as hY,dF as uY,dH as Tz,eF as wz,kt as eY,lt as JK,nF as B0,oF as MY,pQ as lY,sn as UJ,tn as UY,un as AJ,vn as XY,wN as gY,wn as NJ,xN as Lz,xR as nY,xn as VY}from"./cli-0.6.10-fh0qe3jw.mjs";import{DW as $J,FW as KY,IW as SY,JW as jz,PW as pY,QW as Fz,pW as _Y,qW as Az}from"./cli-0.6.10-r261gqbz.mjs";import{EY as bY,FX as f0,FZ as U0,OX as LY,UX as IY,VX as Rz,VY as fY,XY as Ez,_Y as b,aZ as N,uZ as xY}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as U,M1 as m,N1 as bJ}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as b0}from"./cli-0.6.10-w0xpqx8x.mjs";import{L4 as ez,j4 as tY}from"./cli-0.6.10-zyvt1jxy.mjs";import{O6 as $0,P6 as Cz}from"./cli-0.6.10-x8wy7g7p.mjs";import{U9 as r0,W9 as tz,X8 as yY,dea as fJ,gea as l0,n9 as Mz,oea as mY}from"./cli-0.6.10-3nht1qk2.mjs";import{Hea as zY,Iea as c0,Lea as I0,tea as S0,uea as Hz,wea as G0}from"./cli-0.6.10-5jaxzkj9.mjs";import{Oga as $,Rga as Nz}from"./cli-0.6.10-qhnh10xs.mjs";import{Rha as CJ,Uha as oz,vha as oY,zha as sz}from"./cli-0.6.10-zqv22c50.mjs";import{hoa as TY,kka as wY,qka as H0}from"./cli-0.6.10-seh7emsc.mjs";import{Kpa as UZ,Opa as XZ}from"./cli-0.6.10-yr88z6pr.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=nY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
- ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
- ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
- ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
- ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await dY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(lY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var iY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();iY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
- ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
- `)}
8
-
9
- Search query: "${Z}"
10
-
11
- Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
-
13
- You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
-
15
- Each session may include:
16
- - Title (display name or custom title)
17
- - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
- - Branch (git branch name, shown as [branch: name])
19
- - Summary (AI-generated summary)
20
- - First message (beginning of the conversation)
21
- - Transcript (excerpt of conversation content)
22
-
23
- IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
-
25
- For each session, consider (in order of priority):
26
- 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
- 2. Partial tag matches or tag-related terms
28
- 3. Title matches (custom titles or first message content)
29
- 4. Branch name matches
30
- 5. Summary and transcript content matches
31
- 6. Semantic similarity and related concepts
32
-
33
- CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
- - Contain the query term anywhere in any field
35
- - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
- - Discuss topics that could be related to the query
37
- - Have transcripts that mention the concept even in passing
38
-
39
- When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
-
41
- Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
-
43
- Respond with ONLY the JSON object, no markdown formatting:
44
- {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
- export{YU as le,az as me,QU as ne,zK as oe,WU as pe,UK as qe};
@@ -1,2 +0,0 @@
1
- import{Dh as Vq,Eh as fq}from"./cli-0.6.10-n91j8t48.mjs";import{EW as o,FW as pq,LW as Qq,NW as Uq,OW as Hq,pW as Pq,qW as mq}from"./cli-0.6.10-r261gqbz.mjs";import{FX as Sq,FZ as Wq,_Y as M,aZ as g}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as Z,M1 as F,N1 as Jq}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as _q}from"./cli-0.6.10-w0xpqx8x.mjs";import{tea as s,uea as jq}from"./cli-0.6.10-5jaxzkj9.mjs";import{Kpa as Lq,Opa as wq}from"./cli-0.6.10-yr88z6pr.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
- export{lq as bh,oq as ch,sq as dh,aq as eh,Tq as fh};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as Kpa,A as Lpa,B as Mpa,C as Npa,D as Opa,F as Ppa,G as Qpa,H as Rpa};
@@ -1,2 +0,0 @@
1
- import{Hh as g,Ih as Uf}from"./cli-0.6.10-twyctfxx.mjs";import{Mh as A,Oh as Kf}from"./cli-0.6.10-kqqk6z5r.mjs";import{$l as L,Aj as w,BB as c,Bj as zf,CB as bf,Fl as Jf,GP as l,MD as v,RR as Hf,Rl as N,SR as d,TD as Df,Tt as m,Ut as Zf,XQ as S,Xl as Qf,Yr as h,Zr as Yf,dl as Bf,el as Gf,em as Vf,gQ as Ff,hu as C,iR as p,kl as y,lu as T,mB as I,nC as u,nj as W,nr as E,or as P,pR as k,pr as Xf,pu as _f,qC as jf,xw as M,yw as $f}from"./cli-0.6.10-fh0qe3jw.mjs";import{gea as R,oea as ff}from"./cli-0.6.10-3nht1qk2.mjs";import{Oga as O,Rga as e}from"./cli-0.6.10-qhnh10xs.mjs";import{Yma as H,hoa as s,jla as F,kka as U,lka as q,qka as x}from"./cli-0.6.10-seh7emsc.mjs";import{Lpa as K,Opa as t}from"./cli-0.6.10-yr88z6pr.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await I("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(M(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),c(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:m(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();$f();Df();Yf();zf();_f();Zf();Ff();ff();Kf();Qf();bf();jf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as Fh,xf as Gh};
@@ -1,2 +0,0 @@
1
- import{cH as U,dH as w}from"./cli-0.6.10-fh0qe3jw.mjs";import{FX as f,FZ as k,_Y as N,aZ as O}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as M,M1 as H,N1 as R}from"./cli-0.6.10-gj0a1s24.mjs";import{Kpa as Y,Opa as Z}from"./cli-0.6.10-yr88z6pr.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
- export{_ as xg,A as yg};
@@ -1,15 +0,0 @@
1
- import{FP as _,Oj as J,py as L,qy as k,xM as f,zM as z}from"./cli-0.6.10-fh0qe3jw.mjs";import{C_ as A,x_ as F}from"./cli-0.6.10-3nht1qk2.mjs";import{Tfa as Y,Vfa as h,Wfa as H,Xfa as X}from"./cli-0.6.10-wnwqatq5.mjs";import{Oga as W,Rga as M}from"./cli-0.6.10-qhnh10xs.mjs";import{Rha as D,Uha as R}from"./cli-0.6.10-zqv22c50.mjs";import{Zla as q,hoa as C}from"./cli-0.6.10-seh7emsc.mjs";import{Opa as V}from"./cli-0.6.10-yr88z6pr.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
- `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
-
4
- Return JSON with a single "title" field.
5
-
6
- Good examples:
7
- {"title": "Fix login button on mobile"}
8
- {"title": "Add OAuth authentication"}
9
- {"title": "Debug failing CI tests"}
10
- {"title": "Refactor API client error handling"}
11
-
12
- Bad (too vague): {"title": "Code changes"}
13
- Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
- Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
- export{S as ie,T as je,I as ke};
@@ -1,2 +0,0 @@
1
- import{U5 as q,s6 as D}from"./cli-0.6.10-zyvt1jxy.mjs";import{Mga as m,Nga as z}from"./cli-0.6.10-r6n3t4y5.mjs";import{Opa as x}from"./cli-0.6.10-yr88z6pr.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 ci,F as di,K as ei,M as fi,G as gi};
@@ -1,3 +0,0 @@
1
- import{Dpa as x,Fpa as y,Jpa as C}from"./cli-0.6.10-0fr4nchy.mjs";import{Mpa as k}from"./cli-0.6.10-yr88z6pr.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 J7};
@@ -1,50 +0,0 @@
1
- import{qc as Mc,rc as aa}from"./cli-0.6.10-rtfnxx5g.mjs";import{sc as bn,tc as Zt,uc as Rt,vc as Nc,xc as ua}from"./cli-0.6.10-06yft8cy.mjs";import{Bc as ca,yc as Ct}from"./cli-0.6.10-hrefj58w.mjs";import{EF as xn,FF as qu,GF as Dn,HF as jn,IF as vn,JF as Su,Pp as Sc,Qp as xu,cH as Gn,dF as ot,dH as du,dy as $c,eF as Qn,ey as Lc,fH as ta,fy as ju,gH as na,kp as ic,lp as Qu,mp as ec,nF as Y,np as oc,nv as Fc,oF as mu,op as mc,pF as vu,pp as dc,pv as Du,qp as I,rp as rn,sp as Gu,tp as _c,vp as wc,wp as qc,yp as Oc}from"./cli-0.6.10-fh0qe3jw.mjs";import{DW as ct,FW as pu,RW as kc,SW as Iu}from"./cli-0.6.10-r261gqbz.mjs";import{FZ as _n,_Y as g,aZ as l}from"./cli-0.6.10-ajjmvx3c.mjs";import{I0 as qn,J0 as Sn,K0 as Fn,L0 as $n,M0 as Ln,N0 as ou,Q0 as Nn,U0 as Mn,V0 as Xc,W0 as Vn}from"./cli-0.6.10-fv4b397t.mjs";import{K1 as et,L1 as a,M1 as y,N1 as Nt}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as Vt}from"./cli-0.6.10-w0xpqx8x.mjs";import{j2 as uc,k2 as Mu}from"./cli-0.6.10-5qrbfb57.mjs";import{A2 as Xn,C2 as eu}from"./cli-0.6.10-zyvt1jxy.mjs";import{$7 as Eu,$ca as gt,Bda as zc,Cda as sn,Lca as Rc,Mca as yt,Nca as Pu,Oca as Kt,Pca as v,Qda as Bu,Rca as T,Sca as Jt,Uca as ft,Vca as on,Wca as tt,Xca as Ot,_7 as dt,ada as mn,cda as dn,gda as kn,lda as cn,mda as En,nda as Pn,oda as Qt,pda as un,qda as Bn,rda as nn,sda as pn,tda as In,uda as _u,vda as yn,wda as nc,xda as Cn,zda as cc}from"./cli-0.6.10-3nht1qk2.mjs";import{Gia as hn,yia as nt}from"./cli-0.6.10-kr2hhxcp.mjs";import{Kpa as Mt,Lpa as Uu,Opa as p}from"./cli-0.6.10-yr88z6pr.mjs";function Cu(t,n=Dt,u){let h=v().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(h)return Ot(h.id,{provider:"openai",name:h.name,baseUrl:u||h.baseUrl,model:h.model||n,apiKey:t,extras:{...h.extras,githubToken:t}}),gt(h.id),{mode:"updated"};return tt({provider:"openai",name:"GitHub Copilot",baseUrl:u||yu,model:n,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Yn({onDone:t,onBack:n,onChangeAPIKey:u}){let h=Nn()?.trim()?"already-authed":"menu",[i,m]=E.useState(h),[A,w]=E.useState(null),[z,b]=E.useState(""),[R,q]=E.useState(0),[L,Z]=E.useState(null),V=E.useCallback(async(Q,_=Dt,x,S)=>{let W=Mn(Q,x,S?.enterpriseDomain);if(!W.success){w(W.warning??"Could not save token to secure storage."),m("error");return}Cu(Q,_,S?.baseUrl),Xn(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),C=E.useCallback(async(Q)=>{m("device-busy"),w(null),Z(null);try{let _=await Sn({domain:Q});Z({user_code:_.user_code,verification_uri:_.verification_uri}),await $n(_.verification_uri);let x=await Fn(_.device_code,{initialInterval:_.interval,timeoutSeconds:_.expires_in,domain:Q}),S=await Ln(x,{domain:Q});await V(S.token,Dt,x,{baseUrl:S.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Q})}catch(_){w(_ instanceof Error?_.message:String(_)),m("error")}},[V]);if(i==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot"}),a(l,{children:"You are already signed in to GitHub Copilot."}),a(l,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),a(Y,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"back"}],onChange:(_)=>{if(_==="sign-in-again"){C();return}if(_==="enterprise"){m("enterprise-domain");return}if(n){n();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Enterprise sign-in"}),a(l,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:">"}),a(ot,{value:z,onChange:b,onSubmit:()=>{let _=qn(z);if(!_){C();return}C(_)},onExit:()=>m(h),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:R,onChangeCursorOffset:q})]}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(i==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"red",children:A}),a(Y,{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(i==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[a(l,{children:"GitHub Copilot sign-in"}),L?y(et,{children:[y(l,{children:["Enter code ",a(l,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),a(l,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):a(l,{dimColor:!0,children:"Requesting device code from GitHub..."}),a(Gn,{})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot setup"}),a(l,{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."}),a(Y,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Q)=>{if(Q==="cancel"){if(n){n();return}t("GitHub onboard cancelled",{display:"system"});return}if(Q==="enterprise"){m("enterprise-domain");return}C()}})]})}var E,Dt="github:copilot",yu="https://api.githubcopilot.com";var Jn=p(()=>{mu();du();Qn();_n();ou();Vn();eu();kn();Nt();E=Mt(Vt(),1)});function Kn(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function At(t,n){return n.some((u)=>t.includes(u))}function Ou(t){return!At(Kn(t),Zn)}function gu(t){return t.find(Ou)??null}function jt(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Au(t){return(t.quantizationLevel??t.name).toLowerCase()}function fu(t,n,u){if(t===null)return u.push("unknown size"),0;if(n==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(n==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function Ru(t,n,u){let h=Au(t);if(h.includes("q4"))return u.push("efficient Q4 quantization"),n==="latency"?8:4;if(h.includes("q5"))return u.push("balanced Q5 quantization"),n==="latency"?6:5;if(h.includes("q8"))return u.push("higher quality Q8 quantization"),n==="latency"?2:5;return 0}function zu(t,n,u){if(n.score!==t.score)return n.score-t.score;let h=jt(t)??Number.POSITIVE_INFINITY,i=jt(n)??Number.POSITIVE_INFINITY;if(u==="latency")return h-i;if(u==="coding")return i-h;let m=14;return Math.abs(h-m)-Math.abs(i-m)}function vt(t,n){return t.map((u)=>{let h=Kn(u),i=[],m=0;if(At(h,Zn))m-=40,i.push("not a chat-first model");if(At(h,su))m+=n==="coding"?24:n==="balanced"?10:4,i.push("coding-oriented model family");if(At(h,bu))m+=n==="latency"?4:n==="coding"?6:8,i.push("strong general-purpose model family");if(At(h,wu))m+=n==="latency"?2:6,i.push("chat/instruct tuned");if(h.includes("vision")||h.includes("vl"))m-=2,i.push("vision model adds extra overhead");m+=fu(jt(u),n,i),m+=Ru(u,n,i);let A=i.slice(0,3).join(", ");return{...u,score:m,reasons:i,summary:A}}).sort((u,h)=>zu(u,h,n))}function Hn(t,n){return gu(vt(t,n))}var su,bu,wu,Zn;var Tn=p(()=>{su=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],bu=["llama","qwen","mistral","gemma","phi","deepseek"],wu=["instruct","chat","assistant"],Zn=["embed","embedding","rerank","bge","whisper"]});function Xu(t){let n=t.toLowerCase();return ku.some((u)=>n.includes(u))}function tn(t){try{let n=new URL(t);if(n.username)n.username="redacted";if(n.password)n.password="redacted";for(let u of n.searchParams.keys())if(Xu(u))n.searchParams.set(u,"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 ku;var Wn=p(()=>{ku=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Fu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URL(`${cn}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",un()),u.searchParams.append("redirect_uri",n),u.searchParams.append("scope",En),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Pn),u.toString()}function $u(){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 Lu(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>${pn(t)}</p>
31
- <p>You can close this window and try again in Claudin.</p>
32
- </body>
33
- </html>`}function Un(){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 Nu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:n,client_id:un(),code_verifier:t.codeVerifier}),h=await fetch(`${cn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!h.ok){let b=await h.text().catch(()=>"");throw Error(b.trim()?`Codex OAuth token exchange failed (${h.status}): ${b.trim()}`:`Codex OAuth token exchange failed with status ${h.status}.`)}let i=await h.json(),m=Qt(i.access_token),A=Qt(i.refresh_token);if(!m||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let w=Qt(i.id_token);return{apiKey:w?await In(w).catch(()=>{return}):void 0,accessToken:m,refreshToken:A,idToken:w,accountId:nn(w)??nn(m)}}class an{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let n=Dn(),u=Bn(),h=new xn("/auth/callback");this.authCodeListener=h,this.port=null;try{let i=await h.start(u);this.port=i;let m=vn(),A=await jn(n),w=Fu({port:i,codeChallenge:A,state:m});try{let z=await h.waitForAuthorization(m,async()=>{await t(w)}),b=new AbortController;this.tokenExchangeAbortController=b;let R;try{R=await Nu({authorizationCode:z,codeVerifier:n,port:i,signal:b.signal})}finally{if(this.tokenExchangeAbortController===b)this.tokenExchangeAbortController=null}if(this.authCodeListener!==h)throw this.buildCancellationError();return h.handleSuccessRedirect([],(q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($u())}),R}catch(z){let b=this.authCodeListener===h?z:this.buildCancellationError();if(h.hasPendingResponse()){let R=b instanceof Error&&b.message==="Codex OAuth flow was cancelled.";h.handleErrorRedirect((q)=>{q.writeHead(R?200:400,{"Content-Type":"text/html; charset=utf-8"}),q.end(R?Un():Lu(b instanceof Error?b.message:String(b)))})}throw b}finally{this.cleanup()}}catch(i){let m=i instanceof Error?i.message:String(i);if(m.includes("EADDRINUSE")||m.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw i}}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(Un())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var tc=p(()=>{qu();Su();_u()});function Vu(){return new an}function ac(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Vu,h=t.deps?.openBrowser??uc,i=t.deps?.saveCodexCredentials??nc,m=t.deps?.isBareMode??nt,[A,w]=Gt.useState({state:"starting"});return Gt.useEffect(()=>{if(m()){w({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let z=!1,b=u();return b.startOAuthFlow(async(R)=>{if(z)return;w({state:"waiting",authUrl:R,browserOpened:null});let q=await h(R);if(z)return;w({state:"waiting",authUrl:R,browserOpened:q})}).then(async(R)=>{if(z)return;await n(R,(L)=>{let Z=i({apiKey:R.apiKey,accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,accountId:R.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(z)return;w({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{z=!0,b.cleanup()}},[u,m,n,h,i]),A}var Gt;var hc=p(()=>{tc();Mu();cc();hn();Gt=Mt(Vt(),1)});function sc(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ic()}}function lc(t,n){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:n}function Ku(t,n){if(n?.aborted)return Promise.resolve();return new Promise((u)=>{let h=setTimeout(()=>{n?.removeEventListener("abort",i),u()},t),i=()=>{clearTimeout(h),u()};n?.addEventListener("abort",i,{once:!0})})}async function Hu(t){let n=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),h=await n(oc,{method:"POST",headers:sc(),body:new URLSearchParams({client_id:rn(),scope:dc}).toString(),signal:u});if(!h.ok){let z=await h.text().catch(()=>"");throw Error(`xAI device code request failed (${h.status})${z?`: ${z.trim()}`:""}`)}let i=await h.json(),m=I(i.device_code),A=I(i.user_code),w=I(i.verification_uri);if(!m||!A||!w)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:A,verification_uri:w,verification_uri_complete:I(i.verification_uri_complete),expires_in:typeof i.expires_in==="number"&&i.expires_in>0?i.expires_in:Cc/1000,interval:typeof i.interval==="number"&&i.interval>0?i.interval:yc/1000}}async function Tu(t,n){let u=n?.fetchImpl??fetch,h=n?.sleep??Ku,i=n?.now??(()=>Date.now()),m=lc(t.expires_in,Cc),A=i()+m,w=Math.max(lc(t.interval,yc),Yu);while(i()<A){if(n?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let z=await u(ec,{method:"POST",headers:sc(),body:new URLSearchParams({grant_type:mc,client_id:rn(),device_code:t.device_code}).toString(),signal:n?.signal});if(z.ok){let L=await z.json(),Z=I(L.access_token),V=I(L.refresh_token);if(!Z||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:V,idToken:I(L.id_token),expiresAt:i()+C*1000}}let b=await z.json().catch(()=>({})),R=Math.max(0,A-i());if(b.error==="authorization_pending"){await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="slow_down"){w=Math.min(w+Ju,Zu),await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="access_denied"||b.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(b.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let q=b.error_description??b.error??"";throw Error(`xAI device token exchange failed (${z.status})${q?`: ${q}`:""}`)}throw Error("xAI device authorization timed out.")}class ln{abortController=null;async startDeviceFlow(t){let n=new AbortController;this.abortController=n;try{let u=await Hu({signal:n.signal});return await t(u),await Tu(u,{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 yc=5000,Yu=1000,Ju=5000,Zu=60000,Cc=300000,rc=3000;var bc=p(()=>{Qu();Gu()});function Wu(){return new ln}function gc(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Wu,h=t.deps?.saveXaiCredentials??wc,i=t.deps?.isBareMode??nt,[m,A]=Yt.useState({state:"starting"});return Yt.useEffect(()=>{if(i()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,z=u();return z.startDeviceFlow(async(b)=>{if(w)return;A({state:"waiting",userCode:b.user_code,verificationUri:b.verification_uri,verificationUriComplete:b.verification_uri_complete})}).then(async(b)=>{if(w)return;await n(b,(q)=>{let L=h({accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,profileId:q?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((b)=>{if(w)return;A({state:"error",message:b instanceof Error?b.message:String(b)})}),()=>{w=!0,z.cleanup()}},[u,i,n,h]),m}var Yt;var Ac=p(()=>{bc();hn();Oc();Yt=Mt(Vt(),1)});function ea(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function oa(t){let n=Kt(t);return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function ma(t){let n={};for(let u of t.split(/\r?\n/)){let h=u.trim();if(!h)continue;let i=h.indexOf(":");if(i<=0)continue;let m=h.slice(0,i).trim(),A=h.slice(i+1).trim();if(m&&A)n[m]=A}return n}function da(t){if(!t)return"";return Object.entries(t).map(([n,u])=>`${n}: ${u}`).join(`
49
- `)}function ya(t,n){let u={},h=t.awsRegion?.trim();if(h)u.awsRegion=h;let i=t.gcpProject?.trim();if(i)u.gcpProject=i;let m=t.gcpRegion?.trim();if(m)u.gcpRegion=m;let A=t.azureResource?.trim();if(A)u.azureResource=A;let w=ma(n);if(Object.keys(w).length>0)u.customHeaders=w;return Object.keys(u).length>0?u:void 0}function sa(t,n){let u=n?" (active)":"",h=t.apiKey?"key set":"no key",i=t.provider==="anthropic"?"anthropic":"openai-compatible",m=Rc(t.model),A=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${i} · ${t.baseUrl} · ${A} · ${h}${u}`}function ba(t,n){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${tn(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 wa(t,n){if(t.state==="unreachable")return`Could not reach Ollama at ${tn(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 u=t.probeModel??"the selected model",h=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${h} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function en(t,n){if(!n)return;return t.find((u)=>u.id===n)}function fc(t,n){return Boolean(t&&n&&t.id===n)}function Oa({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=ac({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"Codex OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Codex OAuth"}),a(l,{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."}),h.state==="starting"?a(l,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):h.browserOpened===!1?y(et,{children:[a(l,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),a(l,{children:h.authUrl})]}):h.browserOpened===!0?y(et,{children:[a(l,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),a(l,{children:h.authUrl})]}):a(l,{dimColor:!0,children:"Opening your browser..."}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=gc({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"xAI OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),h.state==="starting"?a(l,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(et,{children:[y(l,{children:["Open this URL on any device:"," ",a(l,{bold:!0,children:h.verificationUri})]}),y(l,{children:["Enter code ",a(l,{bold:!0,children:h.userCode})]}),h.verificationUriComplete&&h.verificationUriComplete!==h.verificationUri?y(l,{dimColor:!0,children:["Or open this prefilled URL: ",h.verificationUriComplete]}):null,a(l,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function gh({mode:t,onDone:n}){let u=Fc(),[h,i]=s.useState([]),[m,A]=s.useState(),[w,z]=s.useState(),[b,R]=s.useState(!1),[q,L]=s.useState(),Z=s.useRef(0),[V,C]=s.useState(t==="first-run"?"select-preset":"menu"),[ut,Q]=s.useState(null),[_,x]=s.useState("openai"),[S,W]=s.useState(()=>oa("ollama")),[Ht,zt]=s.useState({}),[wn,Tt]=s.useState(""),[Vc,Qc]=s.useState(0),[Gc,Yc]=s.useState(0),[Wt,On]=s.useState(null),[at,st]=s.useState(0),[ht,D]=s.useState(0),[Jc,j]=s.useState(0),[gn,N]=s.useState(),[rt,f]=s.useState(),[Zc,Kc]=s.useState(),[An,kt]=s.useState(!1),[bt,wt]=s.useState(),[P,Xt]=s.useState({state:"idle"}),[B,_t]=s.useState({state:"idle"}),[Hc,Tc]=s.useState(!0),[Wc,H]=s.useState(!1),Ut=s.useRef(!1),[Et,Pt]=s.useState(()=>Rt()),[fn,Uc]=s.useState(()=>Nc());s.useEffect(()=>{queueMicrotask(()=>{let c=v(),r=T()?.id;i(c),A(r),z(Jt()),L(on()),R(ft()),Tc(!1)})},[]);let lt=mt[ht]??mt[0],qt=lt.key,Ec=S[qt],Bt=h.length>0,St=Bt,Rn=s.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Et?[{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: ${h.find((c)=>c.id===q)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!St},{value:"activate-project",label:"Set active provider (Project)",description:w?`Currently: ${h.find((c)=>c.id===w)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!St},...b?[{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:!Bt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!St},...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"}],[St,Bt,An,Et,q,w,h]),pt=s.useCallback(()=>{if(nt()){Z.current+=1,kt(!1),wt(void 0);return}let c=++Z.current;(async()=>{let r=await yn();if(c!==Z.current)return;kt(Boolean(r?.apiKey||r?.accessToken||r?.refreshToken||r?.idToken)),wt(r?.profileId)})()},[]);s.useEffect(()=>{return pt(),()=>{Z.current+=1}},[pt]),s.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Xt({state:"loading"}),(async()=>{let r=await Lc({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)Xt({state:"unavailable",message:wa(r,S.baseUrl)});return}let o=vt(r.models,"balanced"),e=Hn(r.models,"balanced");if(!c)Xt({state:"ready",defaultValue:e?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{c=!0}},[S.baseUrl,V]),s.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return _t({state:"loading"}),(async()=>{let r=await $c({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)_t({state:"unavailable",message:ba(r,S.baseUrl)});return}if(!c)_t({state:"ready",defaultValue:r.models[0],options:r.models.map((o)=>({label:o,value:o}))})})(),()=>{c=!0}},[S.baseUrl,V]);function M(){if(Ut.current)return;Ut.current=!0,queueMicrotask(()=>{let c=v();i(c),A(T()?.id),z(Jt()),L(on()),R(ft()),pt(),Ut.current=!1})}function it(){return null}function It(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 xt(c){if(c?.accessToken&&c.accountId)return null;let r=await yn();if(!r)return"stored Codex OAuth credentials could not be loaded";if(!r.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function zn(){Sc()}async function Pc(c){let r="provider";H(!0),N("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),e=gt(c);if(!e){f("Could not change active provider."),H(!1),k();return}let d=o?T()??e:e,O=yt(d.model);if(!o)u((U)=>({...U,mainLoopModel:O,mainLoopModelForSession:null}));r=e.name;let X=it(),J=fc(e,bt),$=J?await xt():null;M();let K=o&&d.id!==e.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?It({prefix:`Active provider: ${e.name}${K}`,activationWarning:$,warnings:[$,X?`could not clear startup provider override (${X})`:null].filter((U)=>Boolean(U))}):X?`Active provider: ${e.name}${K}. Warning: could not clear startup provider override (${X}).`:`Active provider: ${e.name}${K}`;N(F),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:O,message:`Provider switched to ${e.name} (${O})`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish activating ${r}: ${e}`),k()}}async function Bc(){H(!0),N("Clearing project provider override...");try{await new Promise((r)=>queueMicrotask(r)),mn(null),M();let c=T();if(c){let r=yt(c.model);Ct(),u((o)=>({...o,mainLoopModel:r,mainLoopModelForSession:null})),N(`Project override cleared. Using global default: ${c.name}.`),H(!1),n({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:r,message:`Project override cleared — using ${c.name} (${r})`}),k()}else N("Project provider override cleared. No global default set."),H(!1),n({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(c){M(),N(void 0),H(!1);let r=c instanceof Error?c.message:String(c);f(`Could not clear project provider override: ${r}`),k()}}async function pc(c){let r="provider";H(!0),N("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Jt(),e=mn(c);if(!e){f("Could not set project provider override."),H(!1),k();return}let d=yt(e.model);if(o===e.id)Ct();u((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),r=e.name;let O=it(),X=fc(e,bt),J=X?await xt():null;M();let $=`Active provider for this project: ${e.name}. Other projects keep the global default.`,K=X?It({prefix:$,activationWarning:J,warnings:[J,O?`could not clear startup provider override (${O})`:null].filter((F)=>Boolean(F))}):O?`${$} Warning: could not clear startup provider override (${O}).`:$;N(K),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:d,message:`Provider switched to ${e.name} (${d}) for this project`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish setting ${r} for this project: ${e}`),k()}}function k(){Kc("done"),C("menu")}function Ft(c){n({action:"cancelled",message:c})}function Ic(c){let r=Kt(c),o={name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey??""};if(Q(null),x(r.provider??"openai"),W(o),zt({}),Tt(""),On(c),D(0),st(0),j(o.name.length),f(void 0),c==="ollama"){Xt({state:"loading"}),C("select-ollama-model");return}if(c==="atomic-chat"){_t({state:"loading"}),C("select-atomic-chat-model");return}if(c==="anthropic"){C("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){C("cloud-extras");return}C("form")}function xc(c){let r=h.find((e)=>e.id===c);if(!r)return;let o=ea(r);Q(c),x(r.provider??"openai"),W(o),zt({awsRegion:r.extras?.awsRegion,gcpProject:r.extras?.gcpProject,gcpRegion:r.extras?.gcpRegion,azureResource:r.extras?.azureResource}),Tt(da(r.extras?.customHeaders)),On(null),D(0),st(0),j(o.name.length),f(void 0),C("form")}function $t(c=S){let r=ya(Ht,wn),o={provider:_,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:r},e=ut?Ot(ut,o):tt(o,{makeActive:!0});if(!e){f("Could not save provider. Fill all required fields.");return}let d=T()?.id===e.id;if(d)Ct(),u((K)=>({...K,mainLoopModel:yt(e.model),mainLoopModelForSession:null}));let O=d?it():null;M();let X=!ut&&ft()&&!d,J=X?T()?.name??"override target":null,$=ut?`Updated provider: ${e.name}`:X?`Added provider: ${e.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${e.name} (now active)`;if(N(O?`${$}. Warning: could not clear startup provider override (${O}).`:$),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:`Provider configured: ${e.name}`});return}Q(null),D(0),f(void 0),k()}function Dc(){if(B.state==="loading"||B.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),a(l,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(B.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Atomic Chat setup"}),a(l,{dimColor:!0,children:B.message}),a(Y,{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"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),a(l,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),a(Y,{options:B.options,defaultValue:B.defaultValue,defaultFocusValue:B.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,B.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function jc(){if(P.state==="loading"||P.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Ollama"}),a(l,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(P.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Ollama setup"}),a(l,{dimColor:!0,children:P.message}),a(Y,{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"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Ollama model"}),a(l,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),a(Y,{options:P.options,defaultValue:P.defaultValue,defaultFocusValue:P.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,P.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function vc(c){let r=c.trim();if(!lt.optional&&r.length===0){f(`${lt.label} is required.`);return}let o={...S,[qt]:r};if(W(o),f(void 0),ht<mt.length-1){let e=ht+1,d=mt[e]?.key??"name";D(e),j(o[d].length);return}if((Wt==="anthropic"||Wt==="custom")&&V==="form"){W(o),C("custom-headers");return}$t(o)}function tu(){if(f(void 0),ht>0){let c=ht-1,r=mt[c]?.key??"name";D(c),j(S[r].length);return}if(t==="first-run"){C("select-preset");return}k()}ct("confirm:no",tu,{context:"Settings",isActive:V==="form"});function nu(){if(f(void 0),at>0){st(at-1);return}C("select-preset")}ct("confirm:no",nu,{context:"Settings",isActive:V==="cloud-extras"}),ct("confirm:no",()=>C("form"),{context:"Settings",isActive:V==="custom-headers"}),ct("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"});function cu(){let c=!nt(),r=[...Et?[{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)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...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:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),a(l,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),a(Y,{options:r,onChange:(o)=>{if(o==="skip"){Ft("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let e=await bn({force:!0});Pt(Rt()),M();let d=Zt(e);if(e.errors.length>0){f(d);return}let O=T();if(t==="first-run"&&O){n({action:"saved",activeProfileId:O.id,activeProviderName:O.name,activeProviderModel:O.model,message:d});return}if(N(d),f(void 0),t==="manage")k()})();return}Ic(o)},onCancel:()=>{if(t==="first-run"){Ft("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,r.length)})]})}function uu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),a(l,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),a(Y,{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"){C("anthropic-oauth");return}if(c==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function au(){let c=(na(),Uu(ta)).ConsoleOAuthFlow;return a(g,{flexDirection:"column",gap:1,children:a(c,{mode:"login",onDone:()=>{let r=Kt("anthropic"),o={provider:"anthropic",name:r.name,baseUrl:r.baseUrl,model:r.model},e=tt(o,{makeActive:!0});if(!e){f("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${e.name}`;if(M(),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}})})}function hu(){let c=Wt;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let r=Ca[c],o=r[at]??r[0],e=Ht[o.key]??"";function d(O){let X=O.trim();if(X.length===0){f(`${o.label} is required.`);return}let J={...Ht,[o.key]:X};if(zt(J),f(void 0),at<r.length-1){st(at+1);return}st(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),a(l,{dimColor:!0,children:o.helpText}),y(l,{dimColor:!0,children:["Step ",at+1," of ",r.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:e,onChange:(O)=>zt((X)=>({...X,[o.key]:O})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${dt.ellipsis}`,columns:80,cursorOffset:Vc,onChangeCursorOffset:Qc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function ru(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(l,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",a(l,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:wn,onChange:Tt,onSubmit:()=>$t(S),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Gc,onChangeCursorOffset:Yc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function lu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:ut?"Edit provider profile":"Create provider profile"}),a(l,{dimColor:!0,children:lt.helpText}),y(l,{dimColor:!0,children:["Provider type:"," ",_==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(l,{dimColor:!0,children:["Step ",ht+1," of ",mt.length,": ",lt.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:Ec,onChange:(c)=>W((r)=>({...r,[qt]:c})),onSubmit:vc,focus:!0,showCursor:!0,placeholder:`${lt.placeholder}${dt.ellipsis}`,mask:qt==="apiKey"?"*":void 0,columns:80,cursorOffset:Jc,onChangeCursorOffset:j})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function iu(){let c=h.length>0,r=c;return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Provider manager"}),a(l,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),gn&&a(l,{children:gn}),a(g,{flexDirection:"column",children:h.length===0?a(l,{dimColor:!0,children:"No provider profiles configured yet."}):h.map((o)=>y(l,{dimColor:!0,children:["- ",o.name,": ",sa(o,o.id===m)]},o.id))}),a(Y,{options:Rn,onChange:(o)=>{switch(f(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let e=await bn({force:!0});if(Pt(Rt()),M(),e.errors.length>0)f(Zt(e));else N(Zt(e))})();break}case"activate":if(r)C("select-active");break;case"activate-project":if(r)C("select-active-project");break;case"clear-project-override":Bc();break;case"edit":if(c)C("select-edit");break;case"delete":if(r)C("select-delete");break;case"logout-codex-oauth":{let e=Cn();if(!e.success){f(e.warning??"Could not clear Codex OAuth credentials.");break}kt(!1),wt(void 0);let d=en(v(),bt),O=null;if(d){let X=dn(d.id);if(!X.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),M();break}zn(),O=X.activeProfileId?it():null}M(),N(O?`Codex OAuth logged out. Warning: could not clear startup provider override (${O}).`:"Codex OAuth logged out.");break}default:Ft("Provider manager closed");break}},onCancel:()=>Ft("Provider manager closed"),defaultFocusValue:Zc,visibleOptionCount:Rn.length})]})}function Lt(c,r,o){let e=h.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 X=O.length>0?` (${O.join(", ")})`:"";return{value:d.id,label:`${d.name}${X}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(e.length===0)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(l,{dimColor:!0,children:r}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(Y,{options:e,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,e.length))})]})}let G;switch(V){case"select-preset":G=cu();break;case"select-ollama-model":G=jc();break;case"select-atomic-chat-model":G=Dc();break;case"codex-oauth":G=a(Oa,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let o={provider:"openai",name:ha,baseUrl:zc,model:ra,apiKey:""},e=en(v(),bt),d=e?Ot(e.id,o):tt(o,{makeActive:!0});if(!d){f("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let O=e&&m!==d.id?gt(d.id):d;if(!O){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}r({profileId:d.id});let X=it(),J=await xt(c);kt(!0),wt(d.id),M();let $=[J,X?`could not clear startup provider override (${X})`:null].filter((F)=>Boolean(F)),K=It({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){n({action:"saved",activeProfileId:O.id,message:K});return}N(K),f(void 0),k()}});break;case"xai-oauth":G=a(ga,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let e=tt({provider:"openai",name:la,baseUrl:sn,model:ia,apiKey:""},{makeActive:!0});if(!e){f("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{r({profileId:e.id})}catch(O){f(O instanceof Error?O.message:String(O)),k();return}M();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}});break;case"github-onboard":G=a(Yn,{onDone:(c)=>{if(c)N(c),f(void 0);M(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:M});break;case"anthropic-auth-choice":G=uu();break;case"anthropic-oauth":G=au();break;case"cloud-extras":G=hu();break;case"custom-headers":G=ru();break;case"form":G=lu();break;case"select-active":G=Lt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Pc(c)});break;case"select-active-project":G=Lt("Set active provider (Project)","No providers available. Add one first.",(c)=>{pc(c)});break;case"select-edit":G=Lt("Edit provider","No providers available. Add one first.",(c)=>{xc(c)});break;case"select-delete":G=Lt("Delete provider","No providers available. Add one first.",(c)=>{let r=h.find(($)=>$.id===c),o=r?.provider==="openai"&&r?.extras?.githubToken!==void 0,e=en(h,bt)?.id===c,d=_c()?.profileId,O=r?.provider==="openai"&&r.baseUrl===sn&&!r.apiKey&&d===c,X=T()?.id===c,J=dn(c);if(!J.removed)f("Could not delete provider.");else{let $=[];if(e){let F=Cn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else wt(void 0);zn()}if(o){let F=Xc();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(O){let F=qc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?it():null;if(K)$.push(`could not clear startup provider override (${K})`);if(M(),X){let F=T();if(F)Ct(),u((U)=>({...U,mainLoopModel:yt(F.model),mainLoopModelForSession:null}));else Ct(),u((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}N($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=iu();break}return y(kc,{color:"permission",children:[a(Mc,{enabled:fn,onDismiss:(c)=>{Pt(Rt()),Uc(!1),M();let r=T();if(c==="migrated"&&t==="first-run"&&r)n({action:"saved",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:r.model})}}),fn?null:Hc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Loading providers..."}),a(l,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Wc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Activating provider..."}),a(l,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var s,mt,ha="Codex OAuth",ra="codexplan",la="xAI / Grok (OAuth)",ia="grok-4",Ca;var Aa=p(()=>{Eu();Jn();Bu();_n();pu();Du();ca();cc();hn();Pu();xu();kn();Vn();ju();Tn();Wn();vu();Iu();aa();Qn();hc();Ac();Oc();ua();Nt();s=Mt(Vt(),1),mt=[{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}];Ca={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{tn as lc,Wn as mc,ma as nc,gh as oc,Aa as pc};
@@ -1,2 +0,0 @@
1
- import{l8 as B,n8 as p}from"./cli-0.6.10-3nht1qk2.mjs";import{Oga as C,Rga as y}from"./cli-0.6.10-qhnh10xs.mjs";import{Rha as V,Uha as M,vha as T,zha as x}from"./cli-0.6.10-zqv22c50.mjs";import{jia as L,qia as c}from"./cli-0.6.10-87cpzzxg.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
- export{E as ub,I as vb};
@@ -1,2 +0,0 @@
1
- import{mv as C,pv as X}from"./cli-0.6.10-fh0qe3jw.mjs";import{O1 as W}from"./cli-0.6.10-w0xpqx8x.mjs";import{E4 as J,L4 as V,s4 as I}from"./cli-0.6.10-zyvt1jxy.mjs";import{Afa as T,ffa as H}from"./cli-0.6.10-3kakfn9p.mjs";import{Kpa as P,Opa as Q}from"./cli-0.6.10-yr88z6pr.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as $c,Y as ad};