@claudiolabs/claudin 0.5.11 → 0.5.13

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 (844) hide show
  1. package/dist/chunks/AgentTool-0.5.13-6dz2gvzt.mjs +1 -0
  2. package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
  10. package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
  11. package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
  18. package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
  28. package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
  29. package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
  30. package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
  31. package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
  32. package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
  33. package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
  34. package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
  35. package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
  36. package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
  39. package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
  41. package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
  42. package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
  43. package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
  46. package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
  49. package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
  51. package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
  52. package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
  53. package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
  54. package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
  55. package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
  56. package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
  57. package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
  58. package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
  59. package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
  60. package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
  61. package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
  62. package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
  63. package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
  64. package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
  65. package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
  66. package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
  67. package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
  68. package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
  69. package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
  71. package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
  72. package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
  73. package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
  74. package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
  75. package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
  76. package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
  77. package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
  78. package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
  79. package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
  80. package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
  81. package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
  82. package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
  83. package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
  84. package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
  85. package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
  86. package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
  87. package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
  88. package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
  89. package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
  90. package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
  91. package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
  92. package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
  93. package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
  94. package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
  95. package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
  96. package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
  97. package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
  98. package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
  99. package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
  100. package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
  101. package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
  102. package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
  103. package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
  104. package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
  105. package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
  106. package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
  107. package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
  108. package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
  109. package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
  110. package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
  111. package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
  112. package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
  113. package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
  114. package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
  115. package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
  116. package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
  117. package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
  119. package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
  120. package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
  121. package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
  122. package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
  123. package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
  124. package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
  125. package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
  126. package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
  127. package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
  128. package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
  129. package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
  130. package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
  131. package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
  132. package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
  133. package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
  134. package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
  135. package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
  136. package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
  137. package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
  138. package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
  139. package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
  140. package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
  141. package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
  142. package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
  143. package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
  144. package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
  145. package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
  146. package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
  147. package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
  148. package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
  149. package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
  150. package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
  151. package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
  152. package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
  153. package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
  154. package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
  155. package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
  156. package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
  157. package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
  158. package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
  159. package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
  160. package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
  161. package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
  162. package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
  163. package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
  164. package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
  165. package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
  166. package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
  167. package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
  168. package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
  169. package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
  170. package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
  171. package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
  172. package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
  173. package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
  174. package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
  175. package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
  176. package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
  177. package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
  178. package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
  179. package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
  180. package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
  181. package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
  182. package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
  183. package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
  184. package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
  185. package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
  186. package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
  187. package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
  188. package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
  189. package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
  190. package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
  191. package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
  192. package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
  193. package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
  194. package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
  195. package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
  196. package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
  197. package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
  198. package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
  199. package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
  200. package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
  201. package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
  202. package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
  203. package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
  204. package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
  205. package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
  206. package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
  207. package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
  208. package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
  209. package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
  210. package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
  211. package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
  212. package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
  213. package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
  214. package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
  215. package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
  216. package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
  217. package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
  218. package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
  219. package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
  220. package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
  221. package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
  222. package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
  223. package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
  224. package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
  225. package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
  226. package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
  227. package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
  228. package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
  229. package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
  230. package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
  231. package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
  232. package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
  233. package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
  234. package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
  235. package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
  236. package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
  237. package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
  238. package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
  239. package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
  240. package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
  241. package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
  242. package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
  243. package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
  244. package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
  245. package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
  246. package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
  247. package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
  248. package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
  249. package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
  250. package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
  252. package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
  253. package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
  255. package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
  257. package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
  258. package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
  259. package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
  262. package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
  263. package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
  265. package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
  266. package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
  268. package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
  269. package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
  272. package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
  273. package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
  275. package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
  277. package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
  278. package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
  279. package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
  280. package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
  281. package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
  282. package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
  283. package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
  284. package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
  285. package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
  286. package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
  287. package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
  288. package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
  289. package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
  290. package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
  291. package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
  292. package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
  293. package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
  294. package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
  295. package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
  296. package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
  297. package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
  298. package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
  299. package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
  300. package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
  301. package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
  302. package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
  303. package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
  304. package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
  305. package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
  306. package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
  307. package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
  308. package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
  309. package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
  310. package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
  311. package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
  312. package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
  313. package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
  314. package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
  315. package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
  316. package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
  318. package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
  319. package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
  320. package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
  321. package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
  322. package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
  324. package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
  325. package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
  326. package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
  327. package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
  328. package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
  329. package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
  330. package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
  331. package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
  332. package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
  333. package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
  334. package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
  335. package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
  336. package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
  337. package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
  338. package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
  339. package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
  340. package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
  341. package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
  342. package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
  343. package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
  344. package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
  345. package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
  346. package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
  347. package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
  348. package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
  349. package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
  350. package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
  351. package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
  352. package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
  353. package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
  355. package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
  356. package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
  357. package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
  358. package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
  359. package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
  360. package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
  361. package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
  362. package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
  363. package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
  364. package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
  365. package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
  366. package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
  367. package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
  368. package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
  369. package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
  370. package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
  371. package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
  372. package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
  373. package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
  374. package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
  375. package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
  376. package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
  377. package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
  378. package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
  379. package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
  380. package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
  381. package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
  382. package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
  383. package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
  384. package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
  385. package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
  386. package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
  387. package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
  388. package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
  389. package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
  390. package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
  391. package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
  392. package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
  393. package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
  394. package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
  395. package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
  396. package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
  397. package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
  398. package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
  399. package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
  400. package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
  401. package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
  402. package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
  403. package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
  404. package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
  405. package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
  406. package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
  407. package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
  408. package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
  409. package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
  410. package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
  411. package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
  412. package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
  413. package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
  414. package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
  415. package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
  416. package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
  417. package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
  418. package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
  419. package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
  420. package/dist/claudin-vscode.vsix +0 -0
  421. package/dist/cli.mjs +2 -2
  422. package/package.json +1 -1
  423. package/dist/chunks/AgentTool-0.5.11-pmpb4k0n.mjs +0 -1
  424. package/dist/chunks/App-0.5.11-p4tzrftk.mjs +0 -1
  425. package/dist/chunks/ApproveApiKey-0.5.11-x7app6e1.mjs +0 -1
  426. package/dist/chunks/AssistantSessionChooser-0.5.11-yt145aqf.mjs +0 -1
  427. package/dist/chunks/AutoModeOptInDialog-0.5.11-sk3f4q8k.mjs +0 -1
  428. package/dist/chunks/BypassPermissionsModeDialog-0.5.11-1jzt83mp.mjs +0 -1
  429. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.11-cz8d7m9a.mjs +0 -1
  430. package/dist/chunks/ConsoleOAuthFlow-0.5.11-8k1tknez.mjs +0 -1
  431. package/dist/chunks/DiffDialog-0.5.11-5ztck2sb.mjs +0 -3
  432. package/dist/chunks/Doctor-0.5.11-r555n4gr.mjs +0 -1
  433. package/dist/chunks/Grove-0.5.11-ecytagy8.mjs +0 -1
  434. package/dist/chunks/ITermBackend-0.5.11-gjvxwbqm.mjs +0 -1
  435. package/dist/chunks/InvalidConfigDialog-0.5.11-0xtcm9sp.mjs +0 -1
  436. package/dist/chunks/InvalidSettingsDialog-0.5.11-xyg9jj2t.mjs +0 -1
  437. package/dist/chunks/MigrationDialog-0.5.11-6yvk9aga.mjs +0 -1
  438. package/dist/chunks/Onboarding-0.5.11-jny18cnf.mjs +0 -1
  439. package/dist/chunks/ProviderManager-0.5.11-tgpz26nn.mjs +0 -1
  440. package/dist/chunks/REPL-0.5.11-z9jmkcrt.mjs +0 -1
  441. package/dist/chunks/ResumeConversation-0.5.11-ax7rppk3.mjs +0 -1
  442. package/dist/chunks/SnapshotUpdateDialog-0.5.11-fg6xs3n9.mjs +0 -1
  443. package/dist/chunks/TeleportProgress-0.5.11-rk53szn6.mjs +0 -1
  444. package/dist/chunks/TeleportRepoMismatchDialog-0.5.11-pbz4q489.mjs +0 -1
  445. package/dist/chunks/TeleportResumeWrapper-0.5.11-v36ecwet.mjs +0 -1
  446. package/dist/chunks/TmuxBackend-0.5.11-xjrg30c7.mjs +0 -9
  447. package/dist/chunks/ToolSearchTool-0.5.11-5pyscyx3.mjs +0 -1
  448. package/dist/chunks/TrustDialog-0.5.11-hv1tdzd1.mjs +0 -1
  449. package/dist/chunks/activeProvider-0.5.11-67twne4q.mjs +0 -1
  450. package/dist/chunks/add-dir-0.5.11-fmpend7m.mjs +0 -1
  451. package/dist/chunks/agents-0.5.11-3ws1bp5n.mjs +0 -110
  452. package/dist/chunks/agents-0.5.11-yk20asfy.mjs +0 -3
  453. package/dist/chunks/api-0.5.11-qvvgffdr.mjs +0 -1
  454. package/dist/chunks/asciicast-0.5.11-pnstf51y.mjs +0 -1
  455. package/dist/chunks/assistant-0.5.11-0zxxv4fd.mjs +0 -1
  456. package/dist/chunks/auth-0.5.11-pn0t92nv.mjs +0 -1
  457. package/dist/chunks/auth-0.5.11-tx8tvxpk.mjs +0 -1
  458. package/dist/chunks/autoMode-0.5.11-ygcr6fva.mjs +0 -48
  459. package/dist/chunks/autoUpdater-0.5.11-da327r2h.mjs +0 -1
  460. package/dist/chunks/backgroundHousekeeping-0.5.11-84fpj6rq.mjs +0 -1
  461. package/dist/chunks/branch-0.5.11-q05ek7pc.mjs +0 -4
  462. package/dist/chunks/bridgePointer-0.5.11-eg7x2d2q.mjs +0 -1
  463. package/dist/chunks/btw-0.5.11-kjg5crjx.mjs +0 -1
  464. package/dist/chunks/buddy-0.5.11-evv2c6jv.mjs +0 -3
  465. package/dist/chunks/cacache-0.5.11-s4mzxjey.mjs +0 -1
  466. package/dist/chunks/cache-probe-0.5.11-ef5dmcc3.mjs +0 -21
  467. package/dist/chunks/cacheStats-0.5.11-62wc6683.mjs +0 -4
  468. package/dist/chunks/caches-0.5.11-zxyz4192.mjs +0 -1
  469. package/dist/chunks/claudeDesktop-0.5.11-yt8a325q.mjs +0 -1
  470. package/dist/chunks/claudemd-0.5.11-zs4d4f7m.mjs +0 -1
  471. package/dist/chunks/clear-0.5.11-ard48ngp.mjs +0 -1
  472. package/dist/chunks/clearTerminal-0.5.11-0yznc101.mjs +0 -1
  473. package/dist/chunks/cli-0.5.11-0106vc0d.mjs +0 -2
  474. package/dist/chunks/cli-0.5.11-04v0g9wg.mjs +0 -2
  475. package/dist/chunks/cli-0.5.11-06ja50j0.mjs +0 -2
  476. package/dist/chunks/cli-0.5.11-07d4s05w.mjs +0 -3
  477. package/dist/chunks/cli-0.5.11-0ck34rvv.mjs +0 -2
  478. package/dist/chunks/cli-0.5.11-0gvkh06n.mjs +0 -2
  479. package/dist/chunks/cli-0.5.11-0k52dqga.mjs +0 -2
  480. package/dist/chunks/cli-0.5.11-0wk8chb6.mjs +0 -6
  481. package/dist/chunks/cli-0.5.11-0x25smnx.mjs +0 -2
  482. package/dist/chunks/cli-0.5.11-1azjwqgg.mjs +0 -2
  483. package/dist/chunks/cli-0.5.11-1bfxt461.mjs +0 -2
  484. package/dist/chunks/cli-0.5.11-1bky2wf4.mjs +0 -2
  485. package/dist/chunks/cli-0.5.11-1gj2erx8.mjs +0 -2
  486. package/dist/chunks/cli-0.5.11-1t8p5947.mjs +0 -2
  487. package/dist/chunks/cli-0.5.11-1wnqzd0b.mjs +0 -2
  488. package/dist/chunks/cli-0.5.11-1z9g6q16.mjs +0 -2
  489. package/dist/chunks/cli-0.5.11-25wrjhqm.mjs +0 -2
  490. package/dist/chunks/cli-0.5.11-27c1jc52.mjs +0 -2
  491. package/dist/chunks/cli-0.5.11-289bqxdd.mjs +0 -2
  492. package/dist/chunks/cli-0.5.11-2aaka946.mjs +0 -3
  493. package/dist/chunks/cli-0.5.11-2fzynn6p.mjs +0 -2
  494. package/dist/chunks/cli-0.5.11-2mt65qck.mjs +0 -2
  495. package/dist/chunks/cli-0.5.11-2nsyt9r7.mjs +0 -3
  496. package/dist/chunks/cli-0.5.11-3n2bpvhd.mjs +0 -10
  497. package/dist/chunks/cli-0.5.11-3p2grcnj.mjs +0 -2
  498. package/dist/chunks/cli-0.5.11-3vy23k9x.mjs +0 -2
  499. package/dist/chunks/cli-0.5.11-3x794mr8.mjs +0 -3
  500. package/dist/chunks/cli-0.5.11-4phhn68y.mjs +0 -12
  501. package/dist/chunks/cli-0.5.11-4pjrzfnw.mjs +0 -2
  502. package/dist/chunks/cli-0.5.11-4wkav9bz.mjs +0 -2
  503. package/dist/chunks/cli-0.5.11-548r9zkc.mjs +0 -2
  504. package/dist/chunks/cli-0.5.11-56ecxcc1.mjs +0 -2
  505. package/dist/chunks/cli-0.5.11-5dfdkpag.mjs +0 -3
  506. package/dist/chunks/cli-0.5.11-5h4mrqhf.mjs +0 -2
  507. package/dist/chunks/cli-0.5.11-5tgkhbf9.mjs +0 -1
  508. package/dist/chunks/cli-0.5.11-5vke4xgt.mjs +0 -2
  509. package/dist/chunks/cli-0.5.11-62qwtx2m.mjs +0 -2
  510. package/dist/chunks/cli-0.5.11-62vs6h7k.mjs +0 -4
  511. package/dist/chunks/cli-0.5.11-63t1ht1z.mjs +0 -2
  512. package/dist/chunks/cli-0.5.11-66pfv87z.mjs +0 -2
  513. package/dist/chunks/cli-0.5.11-67nc1re2.mjs +0 -2
  514. package/dist/chunks/cli-0.5.11-6bg7bcpd.mjs +0 -2
  515. package/dist/chunks/cli-0.5.11-6j344fat.mjs +0 -9
  516. package/dist/chunks/cli-0.5.11-6p6tzgws.mjs +0 -2
  517. package/dist/chunks/cli-0.5.11-6vqz68v0.mjs +0 -5270
  518. package/dist/chunks/cli-0.5.11-73qsyep8.mjs +0 -193
  519. package/dist/chunks/cli-0.5.11-76dw4jf0.mjs +0 -2
  520. package/dist/chunks/cli-0.5.11-7b60ejft.mjs +0 -2
  521. package/dist/chunks/cli-0.5.11-7dcw6f28.mjs +0 -2
  522. package/dist/chunks/cli-0.5.11-7dqqz76t.mjs +0 -2
  523. package/dist/chunks/cli-0.5.11-7kdrre6e.mjs +0 -2
  524. package/dist/chunks/cli-0.5.11-7wdkrgrs.mjs +0 -2
  525. package/dist/chunks/cli-0.5.11-7z95akn7.mjs +0 -2
  526. package/dist/chunks/cli-0.5.11-8wegt5tk.mjs +0 -2
  527. package/dist/chunks/cli-0.5.11-9gbtz4tf.mjs +0 -2
  528. package/dist/chunks/cli-0.5.11-9hpvrk4m.mjs +0 -2
  529. package/dist/chunks/cli-0.5.11-9p5t3q3q.mjs +0 -3
  530. package/dist/chunks/cli-0.5.11-a268xvck.mjs +0 -34
  531. package/dist/chunks/cli-0.5.11-a4mf9xhj.mjs +0 -2
  532. package/dist/chunks/cli-0.5.11-aa4nqg2h.mjs +0 -2
  533. package/dist/chunks/cli-0.5.11-afsaw4w9.mjs +0 -2
  534. package/dist/chunks/cli-0.5.11-anrx0gdd.mjs +0 -24
  535. package/dist/chunks/cli-0.5.11-ary0369d.mjs +0 -2
  536. package/dist/chunks/cli-0.5.11-asbzzvaj.mjs +0 -2
  537. package/dist/chunks/cli-0.5.11-b8p90en1.mjs +0 -2
  538. package/dist/chunks/cli-0.5.11-bfbde9jn.mjs +0 -25
  539. package/dist/chunks/cli-0.5.11-bgd5c05j.mjs +0 -17
  540. package/dist/chunks/cli-0.5.11-bqq1dcq2.mjs +0 -2
  541. package/dist/chunks/cli-0.5.11-brmcmmjd.mjs +0 -2
  542. package/dist/chunks/cli-0.5.11-bs62j31j.mjs +0 -2
  543. package/dist/chunks/cli-0.5.11-c5zt7nm9.mjs +0 -8
  544. package/dist/chunks/cli-0.5.11-c6rcvt4z.mjs +0 -42
  545. package/dist/chunks/cli-0.5.11-ct01zxnx.mjs +0 -2
  546. package/dist/chunks/cli-0.5.11-cycpk41p.mjs +0 -3
  547. package/dist/chunks/cli-0.5.11-d8n7yg2y.mjs +0 -17
  548. package/dist/chunks/cli-0.5.11-dh89qxs0.mjs +0 -2
  549. package/dist/chunks/cli-0.5.11-dpbhsnm8.mjs +0 -59
  550. package/dist/chunks/cli-0.5.11-dz7nvwja.mjs +0 -18
  551. package/dist/chunks/cli-0.5.11-e67s4crr.mjs +0 -2
  552. package/dist/chunks/cli-0.5.11-e6czba2y.mjs +0 -3
  553. package/dist/chunks/cli-0.5.11-ew50bww2.mjs +0 -2
  554. package/dist/chunks/cli-0.5.11-f524x1te.mjs +0 -2
  555. package/dist/chunks/cli-0.5.11-f53h946w.mjs +0 -2
  556. package/dist/chunks/cli-0.5.11-ff85kqc1.mjs +0 -2
  557. package/dist/chunks/cli-0.5.11-ffsf3kp2.mjs +0 -2
  558. package/dist/chunks/cli-0.5.11-fkv6m8b0.mjs +0 -4
  559. package/dist/chunks/cli-0.5.11-fydbgnx6.mjs +0 -16
  560. package/dist/chunks/cli-0.5.11-fz4zane5.mjs +0 -3
  561. package/dist/chunks/cli-0.5.11-g08827r2.mjs +0 -2
  562. package/dist/chunks/cli-0.5.11-g3zmdsrn.mjs +0 -2
  563. package/dist/chunks/cli-0.5.11-g46sacxw.mjs +0 -2
  564. package/dist/chunks/cli-0.5.11-gwq31814.mjs +0 -12
  565. package/dist/chunks/cli-0.5.11-gy904yyh.mjs +0 -2
  566. package/dist/chunks/cli-0.5.11-h20s4d8b.mjs +0 -2
  567. package/dist/chunks/cli-0.5.11-h34yntmn.mjs +0 -2
  568. package/dist/chunks/cli-0.5.11-h3fsqvd0.mjs +0 -2
  569. package/dist/chunks/cli-0.5.11-h4rjx6k5.mjs +0 -2
  570. package/dist/chunks/cli-0.5.11-h52bd7wh.mjs +0 -4
  571. package/dist/chunks/cli-0.5.11-h9h4hp34.mjs +0 -2
  572. package/dist/chunks/cli-0.5.11-hk69acdj.mjs +0 -2
  573. package/dist/chunks/cli-0.5.11-hmmth2y4.mjs +0 -2
  574. package/dist/chunks/cli-0.5.11-hph6a44c.mjs +0 -2
  575. package/dist/chunks/cli-0.5.11-hpr89c78.mjs +0 -2
  576. package/dist/chunks/cli-0.5.11-j04e539e.mjs +0 -2
  577. package/dist/chunks/cli-0.5.11-j2vqwct6.mjs +0 -9
  578. package/dist/chunks/cli-0.5.11-j4hdhvj9.mjs +0 -6
  579. package/dist/chunks/cli-0.5.11-jbh1h99z.mjs +0 -2
  580. package/dist/chunks/cli-0.5.11-jnfg5t1w.mjs +0 -24
  581. package/dist/chunks/cli-0.5.11-jpwjtezc.mjs +0 -2
  582. package/dist/chunks/cli-0.5.11-ks07hfg7.mjs +0 -2
  583. package/dist/chunks/cli-0.5.11-kwwy5esr.mjs +0 -2
  584. package/dist/chunks/cli-0.5.11-m1bxrtje.mjs +0 -2
  585. package/dist/chunks/cli-0.5.11-m3bm720s.mjs +0 -2
  586. package/dist/chunks/cli-0.5.11-m6mcarks.mjs +0 -67
  587. package/dist/chunks/cli-0.5.11-mb46e2vr.mjs +0 -2
  588. package/dist/chunks/cli-0.5.11-me9q2f4g.mjs +0 -4
  589. package/dist/chunks/cli-0.5.11-mrpnwxc8.mjs +0 -3
  590. package/dist/chunks/cli-0.5.11-myahqjfp.mjs +0 -2
  591. package/dist/chunks/cli-0.5.11-nfrcshnh.mjs +0 -2
  592. package/dist/chunks/cli-0.5.11-nkfafdwt.mjs +0 -2
  593. package/dist/chunks/cli-0.5.11-nmhfw726.mjs +0 -15
  594. package/dist/chunks/cli-0.5.11-nqvw9xja.mjs +0 -2
  595. package/dist/chunks/cli-0.5.11-ns8kex5x.mjs +0 -2
  596. package/dist/chunks/cli-0.5.11-nvgvygr9.mjs +0 -2
  597. package/dist/chunks/cli-0.5.11-nzn18pg0.mjs +0 -12
  598. package/dist/chunks/cli-0.5.11-p23fv6r3.mjs +0 -2
  599. package/dist/chunks/cli-0.5.11-p2pgcz8q.mjs +0 -50
  600. package/dist/chunks/cli-0.5.11-pgw75ed3.mjs +0 -2
  601. package/dist/chunks/cli-0.5.11-pk5ee3x4.mjs +0 -4
  602. package/dist/chunks/cli-0.5.11-pkn0kwxz.mjs +0 -2
  603. package/dist/chunks/cli-0.5.11-pqq6g9cn.mjs +0 -2
  604. package/dist/chunks/cli-0.5.11-q05234bd.mjs +0 -2
  605. package/dist/chunks/cli-0.5.11-q6gp4am8.mjs +0 -2
  606. package/dist/chunks/cli-0.5.11-q6qzmzqg.mjs +0 -5
  607. package/dist/chunks/cli-0.5.11-q9j45pmj.mjs +0 -2
  608. package/dist/chunks/cli-0.5.11-qfnx3qe3.mjs +0 -2
  609. package/dist/chunks/cli-0.5.11-qph0smd1.mjs +0 -2
  610. package/dist/chunks/cli-0.5.11-qwwyyrad.mjs +0 -2
  611. package/dist/chunks/cli-0.5.11-r00ghsbw.mjs +0 -2
  612. package/dist/chunks/cli-0.5.11-r373s3sw.mjs +0 -20
  613. package/dist/chunks/cli-0.5.11-r45vbzkw.mjs +0 -2
  614. package/dist/chunks/cli-0.5.11-rmpd1mg7.mjs +0 -4
  615. package/dist/chunks/cli-0.5.11-rr2bav99.mjs +0 -2
  616. package/dist/chunks/cli-0.5.11-rrdvykge.mjs +0 -2
  617. package/dist/chunks/cli-0.5.11-s6jp1y14.mjs +0 -133
  618. package/dist/chunks/cli-0.5.11-s91dmr8j.mjs +0 -4
  619. package/dist/chunks/cli-0.5.11-sa4wnm16.mjs +0 -2
  620. package/dist/chunks/cli-0.5.11-skxnn9rd.mjs +0 -2
  621. package/dist/chunks/cli-0.5.11-smx5e9cf.mjs +0 -15
  622. package/dist/chunks/cli-0.5.11-sv9jwzfm.mjs +0 -133
  623. package/dist/chunks/cli-0.5.11-t1h3zx23.mjs +0 -2
  624. package/dist/chunks/cli-0.5.11-t8q2hmsy.mjs +0 -4
  625. package/dist/chunks/cli-0.5.11-td124m66.mjs +0 -58
  626. package/dist/chunks/cli-0.5.11-tdb8rrd2.mjs +0 -2
  627. package/dist/chunks/cli-0.5.11-tdtjfv7g.mjs +0 -2
  628. package/dist/chunks/cli-0.5.11-tekvw7w4.mjs +0 -2
  629. package/dist/chunks/cli-0.5.11-tenygbfm.mjs +0 -2
  630. package/dist/chunks/cli-0.5.11-th6kdvtq.mjs +0 -5
  631. package/dist/chunks/cli-0.5.11-tkfz368s.mjs +0 -2
  632. package/dist/chunks/cli-0.5.11-tqkhjegk.mjs +0 -2
  633. package/dist/chunks/cli-0.5.11-tsqmkrym.mjs +0 -2
  634. package/dist/chunks/cli-0.5.11-ttk8weyx.mjs +0 -2
  635. package/dist/chunks/cli-0.5.11-tyzwy8ba.mjs +0 -2
  636. package/dist/chunks/cli-0.5.11-vbtwayd7.mjs +0 -2
  637. package/dist/chunks/cli-0.5.11-vf66nxmm.mjs +0 -45
  638. package/dist/chunks/cli-0.5.11-vg1ydgsg.mjs +0 -2
  639. package/dist/chunks/cli-0.5.11-vgwb1q0w.mjs +0 -21
  640. package/dist/chunks/cli-0.5.11-w1rpmy1q.mjs +0 -6
  641. package/dist/chunks/cli-0.5.11-w1ysdbgh.mjs +0 -4
  642. package/dist/chunks/cli-0.5.11-w2rzkzyn.mjs +0 -4
  643. package/dist/chunks/cli-0.5.11-w42sednt.mjs +0 -3
  644. package/dist/chunks/cli-0.5.11-w4j0wkkp.mjs +0 -2
  645. package/dist/chunks/cli-0.5.11-w755ks5r.mjs +0 -2
  646. package/dist/chunks/cli-0.5.11-wafsp0ws.mjs +0 -2
  647. package/dist/chunks/cli-0.5.11-wd33twrf.mjs +0 -2
  648. package/dist/chunks/cli-0.5.11-wgmh2v5q.mjs +0 -2
  649. package/dist/chunks/cli-0.5.11-wv71k7xf.mjs +0 -7
  650. package/dist/chunks/cli-0.5.11-wx3mzx0n.mjs +0 -18
  651. package/dist/chunks/cli-0.5.11-x4qv3sjs.mjs +0 -2
  652. package/dist/chunks/cli-0.5.11-x9r5c2fn.mjs +0 -2
  653. package/dist/chunks/cli-0.5.11-xasfev8k.mjs +0 -39
  654. package/dist/chunks/cli-0.5.11-xksnwsm3.mjs +0 -2
  655. package/dist/chunks/cli-0.5.11-xmpfn425.mjs +0 -15
  656. package/dist/chunks/cli-0.5.11-xqjh3bpr.mjs +0 -2
  657. package/dist/chunks/cli-0.5.11-y0ts1qt0.mjs +0 -2
  658. package/dist/chunks/cli-0.5.11-y8t19tjp.mjs +0 -5
  659. package/dist/chunks/cli-0.5.11-yeag4bs7.mjs +0 -3
  660. package/dist/chunks/cli-0.5.11-yj62weqd.mjs +0 -2
  661. package/dist/chunks/cli-0.5.11-z61mwq81.mjs +0 -2
  662. package/dist/chunks/cli-0.5.11-zx40f53c.mjs +0 -2
  663. package/dist/chunks/client-0.5.11-6kt04vx4.mjs +0 -1
  664. package/dist/chunks/color-0.5.11-av7a397w.mjs +0 -1
  665. package/dist/chunks/compact-0.5.11-cctysw7j.mjs +0 -3
  666. package/dist/chunks/config-0.5.11-hpjf6qx7.mjs +0 -1
  667. package/dist/chunks/config-0.5.11-zsb73hdf.mjs +0 -1
  668. package/dist/chunks/context-0.5.11-g2sh01rs.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.5.11-tjea4wr9.mjs +0 -1
  670. package/dist/chunks/conversation-0.5.11-hx51yee2.mjs +0 -1
  671. package/dist/chunks/copy-0.5.11-e8jg6b1x.mjs +0 -9
  672. package/dist/chunks/cost-0.5.11-tqp697tv.mjs +0 -1
  673. package/dist/chunks/createSSHSession-0.5.11-s35k3cx0.mjs +0 -1
  674. package/dist/chunks/createSession-0.5.11-bt3bpd8p.mjs +0 -1
  675. package/dist/chunks/debug-0.5.11-qh2jpe2b.mjs +0 -1
  676. package/dist/chunks/defaultActionDeps-0.5.11-x108pd3q.mjs +0 -1177
  677. package/dist/chunks/desktop-0.5.11-rs1a8d5a.mjs +0 -1
  678. package/dist/chunks/detectRepository-0.5.11-c1sg75rv.mjs +0 -1
  679. package/dist/chunks/detection-0.5.11-9atncamq.mjs +0 -1
  680. package/dist/chunks/diff-0.5.11-665a3hvr.mjs +0 -1
  681. package/dist/chunks/doctor-0.5.11-ggegwama.mjs +0 -1
  682. package/dist/chunks/doctorDiagnostic-0.5.11-mxs3236y.mjs +0 -1
  683. package/dist/chunks/earlyInput-0.5.11-pjds7ekg.mjs +0 -1
  684. package/dist/chunks/effort-0.5.11-dp44v8bt.mjs +0 -10
  685. package/dist/chunks/envUtils-0.5.11-vgrmx5s2.mjs +0 -1
  686. package/dist/chunks/environmentSelection-0.5.11-pe4mkdz7.mjs +0 -1
  687. package/dist/chunks/environments-0.5.11-m02k45kw.mjs +0 -1
  688. package/dist/chunks/errors-0.5.11-prtr2pp9.mjs +0 -1
  689. package/dist/chunks/exampleCommands-0.5.11-gc8kc8da.mjs +0 -1
  690. package/dist/chunks/exit-0.5.11-v9dmnmgv.mjs +0 -1
  691. package/dist/chunks/export-0.5.11-dq1sq5v5.mjs +0 -2
  692. package/dist/chunks/extra-usage-0.5.11-dg84qb19.mjs +0 -1
  693. package/dist/chunks/extra-usage-noninteractive-0.5.11-j7262a6a.mjs +0 -1
  694. package/dist/chunks/fast-0.5.11-ka1z4kaz.mjs +0 -1
  695. package/dist/chunks/feedback-0.5.11-pxtv6def.mjs +0 -14
  696. package/dist/chunks/firstPartyEventLogger-0.5.11-ajhncn3p.mjs +0 -1
  697. package/dist/chunks/git-0.5.11-dj08v964.mjs +0 -1
  698. package/dist/chunks/githubModelsCredentials-0.5.11-6z9h4mb2.mjs +0 -1
  699. package/dist/chunks/grove-0.5.11-s8a4wdhg.mjs +0 -1
  700. package/dist/chunks/growthbook-0.5.11-k631sh8z.mjs +0 -1
  701. package/dist/chunks/headless-0.5.11-hsfh25d9.mjs +0 -2
  702. package/dist/chunks/heapdump-0.5.11-73b0wcq4.mjs +0 -6
  703. package/dist/chunks/help-0.5.11-6gsfx8d2.mjs +0 -1
  704. package/dist/chunks/hookChains-0.5.11-bhapw13m.mjs +0 -3
  705. package/dist/chunks/hooks-0.5.11-0dvnmawz.mjs +0 -1
  706. package/dist/chunks/hooks-0.5.11-g8txz43p.mjs +0 -79
  707. package/dist/chunks/ide-0.5.11-jy359nf0.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-0.5.11-5zmk2zrb.mjs +0 -1
  709. package/dist/chunks/index-0.5.11-03kr034g.mjs +0 -1
  710. package/dist/chunks/index-0.5.11-26k11p3q.mjs +0 -1
  711. package/dist/chunks/index-0.5.11-5jghqtgm.mjs +0 -1
  712. package/dist/chunks/index-0.5.11-77n6s5pd.mjs +0 -5
  713. package/dist/chunks/index-0.5.11-8tgnnkeg.mjs +0 -2
  714. package/dist/chunks/index-0.5.11-c87n0ja2.mjs +0 -1
  715. package/dist/chunks/index-0.5.11-dxwfmzg0.mjs +0 -1
  716. package/dist/chunks/index-0.5.11-fryacz82.mjs +0 -9
  717. package/dist/chunks/index-0.5.11-fwa6fmmd.mjs +0 -1
  718. package/dist/chunks/index-0.5.11-gh3srf06.mjs +0 -1
  719. package/dist/chunks/index-0.5.11-hyys7amt.mjs +0 -9
  720. package/dist/chunks/index-0.5.11-jc0yz0f6.mjs +0 -1
  721. package/dist/chunks/index-0.5.11-kkadf9jc.mjs +0 -17
  722. package/dist/chunks/index-0.5.11-kn9xxk7b.mjs +0 -1
  723. package/dist/chunks/index-0.5.11-m6chyzrf.mjs +0 -1
  724. package/dist/chunks/index-0.5.11-ns25c6zn.mjs +0 -30
  725. package/dist/chunks/index-0.5.11-qdb9ycw6.mjs +0 -1
  726. package/dist/chunks/index-0.5.11-s8sm3x4k.mjs +0 -1
  727. package/dist/chunks/index-0.5.11-v30jbmnt.mjs +0 -1
  728. package/dist/chunks/index-0.5.11-w050c48y.mjs +0 -1
  729. package/dist/chunks/index-0.5.11-x08rv5p7.mjs +0 -1
  730. package/dist/chunks/index-0.5.11-xpg8pe4r.mjs +0 -2
  731. package/dist/chunks/init-0.5.11-r4js2amw.mjs +0 -1
  732. package/dist/chunks/initReplBridge-0.5.11-r500cxp6.mjs +0 -1
  733. package/dist/chunks/ink-0.5.11-fwq9v8r4.mjs +0 -1
  734. package/dist/chunks/insights-0.5.11-am4b9b4f.mjs +0 -870
  735. package/dist/chunks/install-0.5.11-1z5ssnd0.mjs +0 -1
  736. package/dist/chunks/install-github-app-0.5.11-9x845nn3.mjs +0 -149
  737. package/dist/chunks/install-slack-app-0.5.11-314pskhy.mjs +0 -1
  738. package/dist/chunks/instrumentation-0.5.11-bkpe80da.mjs +0 -1
  739. package/dist/chunks/interactiveHelpers-0.5.11-jjv3m46r.mjs +0 -1
  740. package/dist/chunks/keybindings-0.5.11-w27m8a4f.mjs +0 -2
  741. package/dist/chunks/knowledge-0.5.11-m1jjfbrr.mjs +0 -2
  742. package/dist/chunks/latestVersionCache-0.5.11-byv82xqt.mjs +0 -1
  743. package/dist/chunks/loadAgentsDir-0.5.11-77hzappy.mjs +0 -1
  744. package/dist/chunks/loadPluginHooks-0.5.11-8t1g8hx2.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-0.5.11-rsryd2ca.mjs +0 -1
  746. package/dist/chunks/log-0.5.11-v6s8asrk.mjs +0 -1
  747. package/dist/chunks/main-0.5.11-g5p3688x.mjs +0 -1
  748. package/dist/chunks/managedEnv-0.5.11-sz59vy9h.mjs +0 -1
  749. package/dist/chunks/mcp-0.5.11-1j37gyr0.mjs +0 -4
  750. package/dist/chunks/mcp-0.5.11-eg4n7meb.mjs +0 -17
  751. package/dist/chunks/mcp-0.5.11-mkvd43ta.mjs +0 -1
  752. package/dist/chunks/mcpb-0.5.11-8wsgzfsz.mjs +0 -1
  753. package/dist/chunks/memory-0.5.11-9a7ygpmz.mjs +0 -3
  754. package/dist/chunks/mobile-0.5.11-zw5vchq9.mjs +0 -2
  755. package/dist/chunks/model-0.5.11-fadfdvgs.mjs +0 -2
  756. package/dist/chunks/model-0.5.11-x0rspzhg.mjs +0 -1
  757. package/dist/chunks/node-0.5.11-egbs37er.mjs +0 -12
  758. package/dist/chunks/oauth-0.5.11-ef2e98vw.mjs +0 -1
  759. package/dist/chunks/openaiShim-0.5.11-vs9j1ah7.mjs +0 -14
  760. package/dist/chunks/output-style-0.5.11-31fqw52q.mjs +0 -1
  761. package/dist/chunks/package-D6422PQU-0.5.11-s3t77wxd.mjs +0 -1
  762. package/dist/chunks/parseConnectUrl-0.5.11-ncbcb45y.mjs +0 -1
  763. package/dist/chunks/parser-0.5.11-d4kafyq6.mjs +0 -1
  764. package/dist/chunks/passes-0.5.11-neyvc48p.mjs +0 -1
  765. package/dist/chunks/permissions-0.5.11-ctbpkyfj.mjs +0 -3
  766. package/dist/chunks/plan-0.5.11-ehpxpt94.mjs +0 -1
  767. package/dist/chunks/plist-0.5.11-9dnpvdsc.mjs +0 -1
  768. package/dist/chunks/plugin-0.5.11-w8gmb1nh.mjs +0 -29
  769. package/dist/chunks/pluginStartupCheck-0.5.11-w10xjq2y.mjs +0 -1
  770. package/dist/chunks/plugins-0.5.11-mbr36d35.mjs +0 -9
  771. package/dist/chunks/preActionHook-0.5.11-e43np4a7.mjs +0 -2
  772. package/dist/chunks/print-0.5.11-n103qj4a.mjs +0 -57
  773. package/dist/chunks/privacy-settings-0.5.11-yfawwnqs.mjs +0 -1
  774. package/dist/chunks/process-0.5.11-1xw1qddm.mjs +0 -1
  775. package/dist/chunks/processBashCommand-0.5.11-f3tacdey.mjs +0 -1
  776. package/dist/chunks/processSlashCommand-0.5.11-hrhgven3.mjs +0 -9
  777. package/dist/chunks/prompt-0.5.11-gsj4s4br.mjs +0 -1
  778. package/dist/chunks/prompt-0.5.11-zyr95pjq.mjs +0 -1
  779. package/dist/chunks/prompts-0.5.11-f3625yfw.mjs +0 -1
  780. package/dist/chunks/protocolHandler-0.5.11-a0ksae90.mjs +0 -13
  781. package/dist/chunks/provider-0.5.11-4rg89nse.mjs +0 -2
  782. package/dist/chunks/providerProfiles-0.5.11-e8neqwrk.mjs +0 -1
  783. package/dist/chunks/providerValidation-0.5.11-p09gpn3v.mjs +0 -6
  784. package/dist/chunks/rate-limit-options-0.5.11-3x48xvqs.mjs +0 -1
  785. package/dist/chunks/registerSubcommands-0.5.11-p3djfm32.mjs +0 -34
  786. package/dist/chunks/registry-0.5.11-evj7atta.mjs +0 -1
  787. package/dist/chunks/release-notes-0.5.11-k58zfyrp.mjs +0 -5
  788. package/dist/chunks/reload-plugins-0.5.11-ab84fv3b.mjs +0 -2
  789. package/dist/chunks/remote-env-0.5.11-zgj86xbg.mjs +0 -1
  790. package/dist/chunks/remoteBridgeCore-0.5.11-j2sn8dwd.mjs +0 -1
  791. package/dist/chunks/remoteSession-0.5.11-2fzc66s9.mjs +0 -1
  792. package/dist/chunks/rename-0.5.11-ty27xf9f.mjs +0 -1
  793. package/dist/chunks/replBridgeHandle-0.5.11-69hftvr7.mjs +0 -1
  794. package/dist/chunks/replLauncher-0.5.11-vavj4t5g.mjs +0 -1
  795. package/dist/chunks/resume-0.5.11-7smh6we7.mjs +0 -2
  796. package/dist/chunks/rewind-0.5.11-qsvc0s43.mjs +0 -1
  797. package/dist/chunks/rootOptions-0.5.11-7d4xe18h.mjs +0 -1
  798. package/dist/chunks/sandbox-adapter-0.5.11-q07733sx.mjs +0 -1
  799. package/dist/chunks/sandbox-toggle-0.5.11-2shdwkx7.mjs +0 -1
  800. package/dist/chunks/session-0.5.11-tk487p5z.mjs +0 -2
  801. package/dist/chunks/sessionDiscovery-0.5.11-qa9cqfqk.mjs +0 -1
  802. package/dist/chunks/sessionFileAccessHooks-0.5.11-ebvvszyz.mjs +0 -1
  803. package/dist/chunks/sessionStorage-0.5.11-gy55mmnv.mjs +0 -1
  804. package/dist/chunks/settings-0.5.11-jgag6j90.mjs +0 -1
  805. package/dist/chunks/setup-0.5.11-ryyk08k5.mjs +0 -5
  806. package/dist/chunks/sinks-0.5.11-f43swkmw.mjs +0 -1
  807. package/dist/chunks/skills-0.5.11-jby6d3qr.mjs +0 -1
  808. package/dist/chunks/startupProfiler-0.5.11-23ge2aqg.mjs +0 -1
  809. package/dist/chunks/startupUpdateCheck-0.5.11-kmwcprea.mjs +0 -1
  810. package/dist/chunks/state-0.5.11-agmeq9ee.mjs +0 -1
  811. package/dist/chunks/stats-0.5.11-cpjajj5w.mjs +0 -6
  812. package/dist/chunks/status-0.5.11-2xk50ttd.mjs +0 -1
  813. package/dist/chunks/stickers-0.5.11-p3497hz9.mjs +0 -1
  814. package/dist/chunks/subprocessEnv-0.5.11-6dykv4yq.mjs +0 -1
  815. package/dist/chunks/tasks-0.5.11-n91zs4e1.mjs +0 -1
  816. package/dist/chunks/teamHelpers-0.5.11-6m3x2may.mjs +0 -1
  817. package/dist/chunks/teammateModeSnapshot-0.5.11-9kjfr863.mjs +0 -1
  818. package/dist/chunks/teleport-0.5.11-4b9y25zn.mjs +0 -1
  819. package/dist/chunks/terminalSetup-0.5.11-8few84ad.mjs +0 -1
  820. package/dist/chunks/theme-0.5.11-bncyd59f.mjs +0 -1
  821. package/dist/chunks/thinkback-0.5.11-9ka6qndz.mjs +0 -1
  822. package/dist/chunks/thinkback-play-0.5.11-2yb4ahzb.mjs +0 -1
  823. package/dist/chunks/toolPool-0.5.11-3g5t55gv.mjs +0 -1
  824. package/dist/chunks/toolSearch-0.5.11-435rw828.mjs +0 -1
  825. package/dist/chunks/tools-0.5.11-5w8q65t2.mjs +0 -1
  826. package/dist/chunks/trustedDevice-0.5.11-et6r85tm.mjs +0 -1
  827. package/dist/chunks/turndown.cjs-0.5.11-cqg5qyp6.mjs +0 -69
  828. package/dist/chunks/ultrareviewCommand-0.5.11-9j3gxxh7.mjs +0 -4
  829. package/dist/chunks/update-0.5.11-fpmdjwwt.mjs +0 -86
  830. package/dist/chunks/upgrade-0.5.11-0n8zenbt.mjs +0 -1
  831. package/dist/chunks/upstreamproxy-0.5.11-zt41cjzx.mjs +0 -14
  832. package/dist/chunks/url-handler-napi-0.5.11-jted8zbt.mjs +0 -1
  833. package/dist/chunks/usage-0.5.11-a52s5bgj.mjs +0 -1
  834. package/dist/chunks/util-0.5.11-gb69vaxs.mjs +0 -1
  835. package/dist/chunks/utils-0.5.11-h1m9vt64.mjs +0 -1
  836. package/dist/chunks/vim-0.5.11-1h4tqzvw.mjs +0 -1
  837. package/dist/chunks/watcher-0.5.11-6r2epj25.mjs +0 -1
  838. package/dist/chunks/wiki-0.5.11-85fb0h4p.mjs +0 -132
  839. package/dist/chunks/worktree-0.5.11-n8k8r06z.mjs +0 -1
  840. package/dist/chunks/worktreeModeEnabled-0.5.11-2xed052w.mjs +0 -1
  841. package/dist/chunks/wrapper-0.5.11-sgchnzeq.mjs +0 -7
  842. /package/dist/chunks/{cli-0.5.11-x3t0d2vm.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
  843. /package/dist/chunks/{cli-0.5.11-b448985z.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.11-7grk38mj.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
@@ -1,3 +0,0 @@
1
- import{Ef as FY,Ff as AQ}from"./cli-0.5.11-gy904yyh.mjs";import{Lf as LQ}from"./cli-0.5.11-pqq6g9cn.mjs";import{Mf as Lq,Of as Pq,Pf as GX}from"./cli-0.5.11-tekvw7w4.mjs";import{Tf as IJ,Uf as kQ,Vf as zY,Wf as MQ}from"./cli-0.5.11-j04e539e.mjs";import{Xf as OY,Yf as PQ}from"./cli-0.5.11-p23fv6r3.mjs";import{$f as RY,Zf as NY,_f as UQ,ag as BQ}from"./cli-0.5.11-7z95akn7.mjs";import{bg as Eq,cg as l0,eg as HY,fg as DY}from"./cli-0.5.11-4wkav9bz.mjs";import{qh as Nq,rh as QX}from"./cli-0.5.11-h9h4hp34.mjs";import{$F as KY,AD as YQ,AH as IZ,BE as QZ,BH as EZ,CE as XZ,DE as GZ,EE as VZ,FE as WZ,GE as KZ,Gm as OQ,HE as HZ,IE as DZ,JD as T0,JE as OZ,KD as eq,KE as zZ,LD as PZ,LE as xq,LJ as R0,MJ as TJ,Qt as K0,Rt as XY,Sn as QY,St as GY,Tn as zQ,Tt as qZ,Ws as Fq,Xs as n0,Zs as qX,aG as NQ,cQ as tq,cm as J0,dm as DQ,em as C,fm as f0,gm as c,hm as XJ,jQ as MY,km as S0,lm as FJ,ox as Rq,px as XX,rP as LZ,rm as UJ,tH as BJ,tQ as AY,uH as RQ,uQ as UY,vm as qY,yH as YJ,yQ as fQ,zD as TZ,zH as BZ}from"./cli-0.5.11-6vqz68v0.mjs";import{KR as VY,LR as WY,PR as FQ}from"./cli-0.5.11-7kdrre6e.mjs";import{uU as Uq,vU as KX}from"./cli-0.5.11-h34yntmn.mjs";import{BV as zJ,EV as Iq,FV as HX,gV as V0,hV as v0,uV as l,vV as YY,wV as w0,yV as C0,zV as Bq}from"./cli-0.5.11-nkfafdwt.mjs";import{XW as ZY,YX as D0,_V as U0,hW as e0,iW as eZ,rX as U,tX as V,uW as JY,yW as HQ}from"./cli-0.5.11-dpbhsnm8.mjs";import{AZ as n,BZ as Q,CZ as D,DZ as g}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as s}from"./cli-0.5.11-9gbtz4tf.mjs";import{MZ as rY,NZ as iQ}from"./cli-0.5.11-wafsp0ws.mjs";import{H1 as KQ,Q3 as vJ,W0 as h0,X0 as WQ,d4 as YX,g2 as zq,k2 as sZ,n0 as Oq,n1 as m0,o1 as MJ,q1 as lZ,r1 as AJ,s0 as ZX,s2 as qJ,t1 as oZ,w2 as tZ,y1 as aZ}from"./cli-0.5.11-fydbgnx6.mjs";import{A4 as QQ,z4 as O0}from"./cli-0.5.11-w1rpmy1q.mjs";import{A6 as OJ,Bca as N0,H$ as PJ,J$ as x,Jaa as w,Jca as QJ,M$ as kJ,Maa as T,Qba as fY,Saa as uZ,T9 as mZ,Tba as CY,Uba as CQ,W$ as VQ,Waa as dZ,Wba as SY,X9 as vZ,Xaa as iZ,Y9 as cZ,Z9 as pZ,_9 as xZ,aca as TY,cca as wY,d_ as GQ,eba as rZ,fca as hY,jca as SQ,mca as B0,pca as nZ,z6 as H0}from"./cli-0.5.11-73qsyep8.mjs";import{Yca as mJ,Zca as g0,dda as VJ,eda as SJ}from"./cli-0.5.11-fkv6m8b0.mjs";import{aea as jZ,mea as XQ}from"./cli-0.5.11-m3bm720s.mjs";import{pea as t0,qea as YZ}from"./cli-0.5.11-1bfxt461.mjs";import{dfa as f,ffa as qQ}from"./cli-0.5.11-aa4nqg2h.mjs";import{Kfa as Dq,Pfa as JX,fga as p0,iga as EY}from"./cli-0.5.11-j4hdhvj9.mjs";import{Mga as gZ,Oga as IY,Tga as LJ,Wga as $Z}from"./cli-0.5.11-f524x1te.mjs";import{Aia as JZ,Jja as Hq,Ria as Qq,Sia as Xq,Tia as Gq,lja as Vq,mja as Wq,rma as ZZ,yja as Kq,yka as RJ,zka as _Z}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as $,aoa as p}from"./cli-0.5.11-hph6a44c.mjs";function uq(){let Z=JZ(),q=LZ(Z)??Q(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.5.11"},{label:"Session name",value:q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...DZ(),...OZ()]}function dq({mainLoopModel:Z,mcp:J,theme:q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,q),...GZ(J.clients,q),...QZ(),...WZ()]}async function FZ(){return[...await KZ(),...await HZ(),...await VZ()]}function iq(Z){let J=JJ.c(8),{value:q}=Z;if(Array.isArray(q)){let X;if(J[0]!==q){let O;if(J[2]!==q.length)O=(F,L)=>D(V,{children:[F,L<q.length-1?",":""]},L),J[2]=q.length,J[3]=O;else O=J[3];X=q.map(O),J[0]=q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Q(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof q==="string"){let X;if(J[6]!==q)X=Q(V,{children:q}),J[6]=q,J[7]=X;else X=J[7];return X}return q}function NZ(Z){let J=JJ.c(20),{context:q,diagnosticsPromise:X}=Z,W=K0(oq),O=K0(lq),[F]=e0(),L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=uq(),J[0]=L;else L=J[0];let k;if(J[1]!==q||J[2]!==W||J[3]!==O||J[4]!==F)k=dq({mainLoopModel:W,mcp:O,theme:F,context:q}),J[1]=q,J[2]=W,J[3]=O,J[4]=F,J[5]=k;else k=J[5];let P;if(J[6]!==k)P=[L,k],J[6]=k,J[7]=P;else P=J[7];let K=P,N=C0()?1:void 0,z;if(J[8]!==K)z=K.map(rq),J[8]=K,J[9]=z;else z=J[9];let H;if(J[10]!==X)H=Q(ZJ.Suspense,{fallback:null,children:Q(aq,{promise:X})}),J[10]=X,J[11]=H;else H=J[11];let R;if(J[12]!==N||J[13]!==z||J[14]!==H)R=D(U,{flexDirection:"column",gap:1,flexGrow:N,children:[z,H]}),J[12]=N,J[13]=z,J[14]=H,J[15]=R;else R=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let B;if(J[17]!==N||J[18]!==R)B=D(U,{flexDirection:"column",flexGrow:N,children:[R,A]}),J[17]=N,J[18]=R,J[19]=B;else B=J[19];return B}function rq(Z,J){return Z.length>0&&Q(U,{flexDirection:"column",children:Z.map(nq)},J)}function nq(Z,J){let{label:q,value:X}=Z;return D(U,{flexDirection:"row",gap:1,flexShrink:0,children:[q!==void 0&&D(V,{bold:!0,children:[q,":"]}),Q(iq,{value:X})]},J)}function lq(Z){return Z.mcp}function oq(Z){return Z.mainLoopModel}function aq(Z){let J=JJ.c(5),{promise:q}=Z,X=ZJ.use(q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Q(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let O;if(J[1]!==X)O=X.map(sq),J[1]=X,J[2]=O;else O=J[2];let F;if(J[3]!==O)F=D(U,{flexDirection:"column",paddingBottom:1,children:[W,O]}),J[3]=O,J[4]=F;else F=J[4];return F}function sq(Z,J){return D(U,{flexDirection:"row",gap:1,paddingX:1,children:[Q(V,{color:"error",children:H0.warning}),typeof Z==="string"?Q(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=p(()=>{OJ();ZZ();zJ();D0();qZ();YZ();tq();xq();f0();g();JJ=$(U0(),1),ZJ=$(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:q,onChoice:X}=Z,W;if(J[0]!==X)W=function(B){X(B)},J[0]=X,J[1]=W;else W=J[1];let O=W,F;if(J[2]!==X)F=function(){X("cancel")},J[2]=X,J[3]=F;else F=J[3];let L=F,k;if(J[4]!==q)k=D(V,{children:["The stable channel may have an older version than what you're currently running (",q,")."]}),J[4]=q,J[5]=k;else k=J[5];let P;if(J[6]===Symbol.for("react.memo_cache_sentinel"))P=Q(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=P;else P=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let N=`Stay on current version (${q}) until stable catches up`,z;if(J[8]!==N)z=[K,{label:N,value:"stay"}],J[8]=N,J[9]=z;else z=J[9];let H;if(J[10]!==O||J[11]!==z)H=Q(T0,{options:z,onChange:O}),J[10]=O,J[11]=z,J[12]=H;else H=J[12];let R;if(J[13]!==L||J[14]!==k||J[15]!==H)R=D(S0,{title:"Switch to Stable Channel",onCancel:L,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[k,P,H]}),J[13]=L,J[14]=k,J[15]=H,J[16]=R;else R=J[16];return R}var kZ;var AZ=p(()=>{D0();PZ();FJ();g();kZ=$(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,q])=>({label:q?.name??JQ,value:J,description:q?.description??ZQ}))}function CZ(Z){let J=fZ.c(16),{initialStyle:q,onComplete:X,onCancel:W,isStandaloneCommand:O}=Z,F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=[],J[0]=F;else F=J[0];let[L,k]=j0.useState(F),[P,K]=j0.useState(!0),N,z;if(J[1]===Symbol.for("react.memo_cache_sentinel"))N=()=>{IZ(t0()).then((d)=>{let t=UZ(d);k(t),K(!1)}).catch(()=>{let d=UZ(BZ);k(d),K(!1)})},z=[],J[1]=N,J[2]=z;else N=J[1],z=J[2];j0.useEffect(N,z);let H;if(J[3]!==X)H=(d)=>{X(d)},J[3]=X,J[4]=H;else H=J[4];let R=H,A=!O,B=!O,I;if(J[5]===Symbol.for("react.memo_cache_sentinel"))I=Q(U,{marginTop:1,children:Q(V,{dimColor:!0,children:"This changes how Claude Code communicates with you"})}),J[5]=I;else I=J[5];let h;if(J[6]!==R||J[7]!==q||J[8]!==P||J[9]!==L)h=D(U,{flexDirection:"column",gap:1,children:[I,P?Q(V,{dimColor:!0,children:"Loading output styles…"}):Q(T0,{options:L,onChange:R,visibleOptionCount:10,defaultValue:q})]}),J[6]=R,J[7]=q,J[8]=P,J[9]=L,J[10]=h;else h=J[10];let S;if(J[11]!==W||J[12]!==A||J[13]!==B||J[14]!==h)S=Q(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:B,children:h}),J[11]=W,J[12]=A,J[13]=B,J[14]=h,J[15]=S;else S=J[15];return S}var fZ,j0,JQ="Default",ZQ="Claude completes coding tasks efficiently and provides concise responses";var SZ=p(()=>{EZ();D0();YZ();eq();FJ();g();fZ=$(U0(),1),j0=$(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:q,onComplete:X,onCancel:W}=Z,[O,F]=NJ.useState(q),[L,k]=NJ.useState((q??"").length),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P={context:"Settings"},J[0]=P;else P=J[0];l("confirm:no",W,P);let K;if(J[1]!==O||J[2]!==X)K=function(){let S=O?.trim();X(S||void 0)},J[1]=O,J[2]=X,J[3]=K;else K=J[3];let N=K,z;if(J[4]===Symbol.for("react.memo_cache_sentinel"))z=Q(V,{children:"Enter your preferred response and voice language:"}),J[4]=z;else z=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=Q(V,{children:H0.pointer}),J[5]=H;else H=J[5];let R=O??"",A;if(J[6]!==L||J[7]!==N||J[8]!==R)A=D(U,{flexDirection:"row",gap:1,children:[H,Q(TZ,{value:R,onChange:F,onSubmit:N,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${H0.ellipsis}`,columns:60,cursorOffset:L,onChangeCursorOffset:k})]}),J[6]=L,J[7]=N,J[8]=R,J[9]=A;else A=J[9];let B;if(J[10]===Symbol.for("react.memo_cache_sentinel"))B=Q(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=B;else B=J[10];let I;if(J[11]!==A)I=D(U,{flexDirection:"column",gap:1,children:[z,A,B]}),J[11]=A,J[12]=I;else I=J[12];return I}var wZ,NJ;var bZ=p(()=>{OJ();D0();w0();YQ();g();wZ=$(U0(),1),NJ=$(s(),1)});function PY({onClose:Z,context:J,setTabsHidden:q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:O,focusHeader:F}=HY(),L=C0(),[,k]=e0(),P=eZ(),[K,N]=_.useState(T()),z=v.useRef(T()),[H,R]=_.useState(kJ()),A=v.useRef(kJ()),[B,I]=_.useState(H?.outputStyle||YJ),h=v.useRef(B),[S,d]=_.useState(H?.language),t=v.useRef(S),[j,F0]=_.useState(0),[i,Y0]=_.useState(0),[r,q0]=_.useState(!0),$0=ZY(),{rows:I0}=V0(),Cq=W??Math.min(Math.floor(I0*0.8),30),Q0=Math.max(5,Cq-10),E0=K0((Y)=>Y.mainLoopModel),Sq=K0((Y)=>Y.verbose),xJ=K0((Y)=>Y.thinkingEnabled),uJ=K0((Y)=>m0()?Y.fastMode:!1),Tq=K0((Y)=>Y.promptSuggestionEnabled),FX=!1,X0=XY(),[dJ,M0]=_.useState({}),wq=v.useRef(xJ),[iJ]=_.useState(()=>PJ("localSettings")),[rJ]=_.useState(()=>PJ("userSettings")),nJ=v.useRef(P),hq=GY(),[lJ]=_.useState(()=>{let Y=hq.getState();return{mainLoopModel:Y.mainLoopModel,mainLoopModelForSession:Y.mainLoopModelForSession,verbose:Y.verbose,thinkingEnabled:Y.thinkingEnabled,fastMode:Y.fastMode,promptSuggestionEnabled:Y.promptSuggestionEnabled,isBriefOnly:Y.isBriefOnly,replBridgeEnabled:Y.replBridgeEnabled,replBridgeOutboundOnly:Y.replBridgeOutboundOnly,settings:Y.settings}}),[KJ]=_.useState(()=>RJ()),e=v.useRef(!1),[bq,o0]=_.useState(!1),[m,y]=_.useState(null),{query:A0,setQuery:a0,cursorOffset:yq}=RY({isActive:r&&m===null&&!O,onExit:()=>q0(!1),onExitUp:F,passthroughCtrlKeys:["c","d"]}),oJ=r&&!O;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let _q=qY(J.options.mcpClients),gq=!gZ(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(MY(!0)),$q=UY(aJ),W0=iZ();function sJ(Y){f("tengu_config_model_changed",{from_model:E0,to_model:Y}),X0((M)=>({...M,mainLoopModel:Y,mainLoopModelForSession:null})),M0((M)=>{let E=qJ(Y)+(zY(Y,!1,sZ())?" · Billed as extra usage":"");if("model"in M){let{model:b,...o}=M;return{...o,model:E}}return{...M,model:E}})}function jq(Y){w((G)=>({...G,verbose:Y})),N({...T(),verbose:Y}),X0((G)=>({...G,verbose:Y})),M0((G)=>{if("verbose"in G){let{verbose:M,...E}=G;return E}return{...G,verbose:Y}})}let HJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(Y){w((G)=>({...G,autoCompactEnabled:Y})),N({...T(),autoCompactEnabled:Y}),f("tengu_auto_compact_setting_changed",{enabled:Y})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,thinkingHistoryRedactionEnabled:Y})),N({...T(),thinkingHistoryRedactionEnabled:Y}),f("claudin_thinking_history_redaction_setting_changed",{enabled:Y})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(Y){w((G)=>({...G,narrationHistoryRedactionEnabled:Y})),N({...T(),narrationHistoryRedactionEnabled:Y}),f("claudin_narration_history_redaction_setting_changed",{enabled:Y})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(Y){let G=Y==="off"||Y==="compact"||Y==="full"?Y:"compact";w((M)=>({...M,showCacheStats:G})),N({...T(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(Y){w((G)=>({...G,toolResultSummarizerEnabled:Y})),N({...T(),toolResultSummarizerEnabled:Y}),f("claudin_tool_result_summarizer_setting_changed",{enabled:Y})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y})),N({...T(),bashOutputFilterEnabled:Y,bashOutputFilterUserEnabled:Y}),f("claudin_bash_output_filter_setting_changed",{enabled:Y})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(Y){w((G)=>({...G,autoBackgroundAgentsEnabled:Y})),N({...T(),autoBackgroundAgentsEnabled:Y}),f("claudin_auto_background_agents_setting_changed",{enabled:Y})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(Y){let G=Y==="auto"||Y==="enable"||Y==="disable"?Y:"auto";w((M)=>({...M,inlineImagesMode:G})),N({...T(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:H?.spinnerTipsEnabled??!0,type:"boolean",onChange(Y){x("localSettings",{spinnerTipsEnabled:Y}),R((G)=>({...G,spinnerTipsEnabled:Y})),f("tengu_tips_setting_changed",{enabled:Y})}},{id:"prefersReducedMotion",label:"Reduce motion",value:H?.prefersReducedMotion??!1,type:"boolean",onChange(Y){x("localSettings",{prefersReducedMotion:Y}),R((G)=>({...G,prefersReducedMotion:Y})),X0((G)=>({...G,settings:{...G.settings,prefersReducedMotion:Y}})),f("tengu_reduce_motion_setting_changed",{enabled:Y})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(Y){X0((G)=>({...G,thinkingEnabled:Y})),x("userSettings",{alwaysThinkingEnabled:Y?void 0:!1}),f("tengu_thinking_toggled",{enabled:Y})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${lZ} only)`,value:!!uJ,type:"boolean",onChange(Y){if(aZ(),x("userSettings",{fastMode:Y?!0:void 0}),Y)X0((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else X0((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:Tq,type:"boolean",onChange(Y){X0((G)=>({...G,promptSuggestionEnabled:Y})),x("userSettings",{promptSuggestionEnabled:Y?void 0:!1})}},...gq?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(Y){w((G)=>({...G,fileCheckpointingEnabled:Y})),N({...T(),fileCheckpointingEnabled:Y}),f("tengu_file_history_snapshots_setting_changed",{enabled:Y})}}]:[],{id:"verbose",label:"Verbose output",value:Sq,type:"boolean",onChange:jq},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(Y){w((G)=>({...G,terminalProgressBarEnabled:Y})),N({...T(),terminalProgressBarEnabled:Y}),f("tengu_terminal_progress_bar_setting_changed",{enabled:Y})}},...jZ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(Y){w((G)=>({...G,showStatusInTerminalTab:Y})),N({...T(),showStatusInTerminalTab:Y}),f("tengu_terminal_tab_status_setting_changed",{enabled:Y})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(Y){w((G)=>({...G,showTurnDuration:Y})),N({...T(),showTurnDuration:Y}),f("tengu_show_turn_duration_setting_changed",{enabled:Y})}},{id:"defaultPermissionMode",label:"Default permission mode",value:H?.permissions?.defaultMode||"default",options:(()=>{let Y=["default","plan"],G=mZ,M=["bypassPermissions"];return[...Y,...G.filter((E)=>!Y.includes(E)&&!M.includes(E))]})(),type:"enum",onChange(Y){let G=pZ(Y),M=vZ(G)?cZ(G):G,E=x("userSettings",{permissions:{...H?.permissions,defaultMode:M}});if(E.error){N0(E.error);return}R((b)=>({...b,permissions:{...b?.permissions,defaultMode:M}})),M0((b)=>({...b,defaultPermissionMode:Y})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:Y})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:H?.useAutoModeDuringPlan??!0,type:"boolean",onChange(Y){x("userSettings",{useAutoModeDuringPlan:Y}),R((G)=>({...G,useAutoModeDuringPlan:Y})),X0((G)=>{let M=BJ(G.toolPermissionContext);if(M===G.toolPermissionContext)return G;return{...G,toolPermissionContext:M}}),M0((G)=>({...G,"Use auto mode during plan":Y}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(Y){w((G)=>({...G,respectGitignore:Y})),N({...T(),respectGitignore:Y}),f("tengu_respect_gitignore_setting_changed",{enabled:Y})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(Y){w((G)=>({...G,copyFullResponse:Y})),N({...T(),copyFullResponse:Y}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(Y)})}},...JY()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(Y){w((G)=>({...G,copyOnSelect:Y})),N({...T(),copyOnSelect:Y}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(Y)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(Y){w((G)=>({...G,flickerFreeMode:Y})),N({...T(),flickerFreeMode:Y}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(Y)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:H?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:P,type:"managedEnum",onChange:k},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(Y){w((G)=>({...G,preferredNotifChannel:Y})),N({...T(),preferredNotifChannel:Y})}},{id:"outputStyle",label:"Output style",value:B,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:S??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(Y){w((G)=>({...G,editorMode:Y})),N({...T(),editorMode:Y}),f("tengu_editor_mode_changed",{mode:Y,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(Y){w((G)=>{if(G.prStatusFooterEnabled===Y)return G;return{...G,prStatusFooterEnabled:Y}}),N({...T(),prStatusFooterEnabled:Y}),f("tengu_pr_status_footer_setting_changed",{enabled:Y})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},..._q?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(Y){w((G)=>({...G,diffTool:Y})),N({...T(),diffTool:Y}),f("tengu_diff_tool_changed",{tool:Y,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(Y){w((G)=>({...G,autoConnectIde:Y})),N({...T(),autoConnectIde:Y}),f("tengu_auto_connect_ide_changed",{enabled:Y,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(Y){w((G)=>({...G,autoInstallIdeExtension:Y})),N({...T(),autoInstallIdeExtension:Y}),f("tengu_auto_install_ide_extension_changed",{enabled:Y,source:"config_panel"})}}]:[],...QY()?(()=>{let Y=VY();return[{id:"teammateMode",label:Y?`Teammate mode [overridden: ${Y}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(M){if(M!=="auto"&&M!=="tmux"&&M!=="in-process")return;WY(M),w((E)=>({...E,teammateMode:M})),N({...T(),teammateMode:M}),f("tengu_teammate_mode_changed",{mode:M})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...$q?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(uZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let Y=B0(),G=Y?.transport==="anthropic"?Y.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:D(V,{children:["Use custom API key:"," ",Q(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(M){w((E)=>{let b={...E};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(M)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),N(T())}}]})()],G0=v.useMemo(()=>{if(!A0)return HJ;let Y=A0.toLowerCase();return HJ.filter((G)=>{if(G.id.toLowerCase().includes(Y))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(Y)})},[HJ,A0]);v.useEffect(()=>{if(j>=G0.length){let Y=Math.max(0,G0.length-1);F0(Y),Y0(Math.max(0,Y-Q0+1));return}Y0((Y)=>{if(j<Y)return j;if(j>=Y+Q0)return j-Q0+1;return Y})},[G0.length,j,Q0]);let mq=_.useCallback((Y)=>{Y0((G)=>{if(Y<G)return Y;if(Y>=G+Q0)return Y-Q0+1;return G})},[Q0]),vq=_.useCallback(()=>{if(m!==null)return;let Y=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${O0.bold(eJ)}`}),G=B0(),M=G?.transport==="anthropic"?G.apiKey?.trim():void 0,E=LJ()?void 0:M,b=Boolean(E&&z.current.customApiKeyResponses?.approved?.includes(h0(E))),o=Boolean(E&&K.customApiKeyResponses?.approved?.includes(h0(E)));if(b!==o)Y.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==z.current.theme)Y.push(`Set theme to ${O0.bold(K.theme)}`);if(K.preferredNotifChannel!==z.current.preferredNotifChannel)Y.push(`Set notifications to ${O0.bold(K.preferredNotifChannel)}`);if(B!==h.current)Y.push(`Set output style to ${O0.bold(B)}`);if(S!==t.current)Y.push(`Set response language to ${O0.bold(S??"Default (English)")}`);if(K.editorMode!==z.current.editorMode)Y.push(`Set editor mode to ${O0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==z.current.diffTool)Y.push(`Set diff tool to ${O0.bold(K.diffTool)}`);if(K.autoConnectIde!==z.current.autoConnectIde)Y.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==z.current.autoInstallIdeExtension)Y.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==z.current.autoCompactEnabled)Y.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==z.current.thinkingHistoryRedactionEnabled)Y.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==z.current.narrationHistoryRedactionEnabled)Y.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==z.current.toolResultSummarizerEnabled)Y.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==z.current.autoBackgroundAgentsEnabled)Y.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==z.current.bashOutputFilterEnabled)Y.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==z.current.respectGitignore)Y.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==z.current.copyFullResponse)Y.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==z.current.copyOnSelect)Y.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==z.current.terminalProgressBarEnabled)Y.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==z.current.showStatusInTerminalTab)Y.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==z.current.showTurnDuration)Y.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==z.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;Y.push(a)}if(H?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)Y.push(`Set auto-update channel to ${O0.bold(H?.autoUpdatesChannel??"latest")}`);if(Y.length>0)Z(Y.join(`
2
- `));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,B,S,H?.autoUpdatesChannel,m0()?H?.fastMode:void 0,Z]),tJ=_.useCallback(()=>{if(P!==nJ.current)k(nJ.current);w(()=>z.current);let Y=iJ;x("localSettings",{spinnerTipsEnabled:Y?.spinnerTipsEnabled,prefersReducedMotion:Y?.prefersReducedMotion,defaultView:Y?.defaultView,outputStyle:Y?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let M=lJ;if(X0((E)=>({...E,mainLoopModel:M.mainLoopModel,mainLoopModelForSession:M.mainLoopModelForSession,verbose:M.verbose,thinkingEnabled:M.thinkingEnabled,fastMode:M.fastMode,promptSuggestionEnabled:M.promptSuggestionEnabled,isBriefOnly:M.isBriefOnly,replBridgeEnabled:M.replBridgeEnabled,replBridgeOutboundOnly:M.replBridgeOutboundOnly,settings:M.settings,toolPermissionContext:BJ(E.toolPermissionContext)})),RJ()!==KJ)_Z(KJ)},[P,k,iJ,rJ,lJ,KJ,X0]),cq=_.useCallback(()=>{if(m!==null)return;if(e.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",cq,{context:"Settings",isActive:m===null&&!r&&!O}),l("settings:close",vq,{context:"Settings",isActive:m===null&&!r&&!O});let DJ=_.useCallback(()=>{let Y=G0[j];if(!Y||!Y.onChange)return;if(Y.type==="boolean"){if(e.current=!0,Y.onChange(!Y.value),Y.id==="thinkingEnabled"){if(!Y.value===wq.current)o0(!1);else if(J.messages.some((E)=>E.type==="assistant"))o0(!0)}return}if(Y.id==="theme"||Y.id==="model"||Y.id==="teammateDefaultModel"||Y.id==="showExternalIncludesDialog"||Y.id==="outputStyle"||Y.id==="language")switch(Y.id){case"theme":y("Theme"),q(!0);return;case"model":y("Model"),q(!0);return;case"teammateDefaultModel":y("TeammateModel"),q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),q(!0);return;case"outputStyle":y("OutputStyle"),q(!0);return;case"language":y("Language"),q(!0);return}if(Y.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),q(!0);return}if((H?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),q(!0);else e.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((M)=>({...M,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(Y.type==="enum"){e.current=!0;let M=(Y.options.indexOf(Y.value)+1)%Y.options.length;Y.onChange(Y.options[M]);return}},[W0,G0,j,H?.autoUpdatesChannel,q]),s0=(Y)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,j+Y));F0(G),mq(G)};YY({"select:previous":()=>{if(j===0)o0(!1),q0(!0),Y0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":DJ,"settings:search":()=>{q0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!O});let pq=_.useCallback((Y)=>{if(m!==null)return;if(O)return;if(r){if(Y.key==="escape"){if(Y.preventDefault(),A0.length>0)a0("");else q0(!1);return}if(Y.key==="return"||Y.key==="down"||Y.key==="wheeldown")Y.preventDefault(),q0(!1),F0(0),Y0(0);return}if(Y.key==="left"||Y.key==="right"||Y.key==="tab"){Y.preventDefault(),DJ();return}if(Y.ctrl||Y.meta)return;if(Y.key==="j"||Y.key==="k"||Y.key==="/")return;if(Y.key.length===1&&Y.key!==" ")Y.preventDefault(),q0(!0),a0(Y.key)},[m,O,r,A0,a0,DJ]);return Q(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:pq,children:m==="Theme"?D(n,{children:[Q(OY,{onThemeSelect:(Y)=>{e.current=!0,k(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Q(U,{children:Q(V,{dimColor:!0,italic:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"select"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?D(n,{children:[Q(IJ,{initial:E0,onSelect:(Y,G)=>{e.current=!0,sJ(Y),y(null),q(!1)},onCancel:()=>{y(null),q(!1)},showFastModeNotice:m0()?uJ&&oZ(E0)&&MJ():!1}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?D(n,{children:[Q(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(Y,G)=>{if(y(null),q(!1),K.teammateDefaultModel===void 0&&Y===null)return;e.current=!0,w((M)=>M.teammateDefaultModel===Y?M:{...M,teammateDefaultModel:Y}),N({...T(),teammateDefaultModel:Y}),M0((M)=>({...M,teammateDefaultModel:yZ(Y)})),f("tengu_teammate_default_model_changed",{model:Y})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?D(n,{children:[Q(FY,{onDone:()=>{y(null),q(!1)},externalIncludes:AY(aJ)}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?D(n,{children:[Q(CZ,{initialStyle:B,onComplete:(Y)=>{e.current=!0,I(Y??YJ),y(null),q(!1),x("localSettings",{outputStyle:Y}),f("tengu_output_style_changed",{style:Y??YJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?D(n,{children:[Q(hZ,{initialLanguage:S,onComplete:(Y)=>{e.current=!0,d(Y),y(null),q(!1),x("userSettings",{language:Y}),f("tengu_language_changed",{language:Y??"default",source:"config_panel"})},onCancel:()=>{y(null),q(!1)}}),Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"Enter",action:"confirm"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Q(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?D(n,{children:[Q(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&D(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Q(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(Y)=>{e.current=!0,y(null),q(!1),w((G)=>({...G,autoUpdates:!0})),N({...T(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:Y,minimumVersion:void 0}),R((G)=>({...G,autoUpdatesChannel:Y,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:Y})}})}):m==="ChannelDowngrade"?Q(MZ,{currentVersion:"99.0.0",onChoice:(Y)=>{if(y(null),q(!1),Y==="cancel")return;e.current=!0;let G={autoUpdatesChannel:"stable"};if(Y==="stay")G.minimumVersion="99.0.0";x("userSettings",G),R((M)=>({...M,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:Y==="stay"})}}):D(U,{flexDirection:"column",gap:1,marginY:L?void 0:1,children:[Q(NY,{query:A0,isFocused:r&&!O,isTerminalFocused:$0,cursorOffset:yq,placeholder:"Search settings…"}),Q(U,{flexDirection:"column",children:G0.length===0?D(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):D(n,{children:[i>0&&D(V,{dimColor:!0,children:[H0.arrowUp," ",i," more above"]}),G0.slice(i,i+Q0).map((Y,G)=>{let E=i+G===j&&!O&&!r;return Q(v.Fragment,{children:D(U,{children:[Q(U,{width:44,children:D(V,{color:E?"suggestion":void 0,children:[E?H0.pointer:" "," ",Y.label]})}),Q(U,{children:Y.type==="boolean"?D(n,{children:[Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()}),bq&&Y.id==="thinkingEnabled"&&D(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):Y.id==="theme"?Q(V,{color:E?"suggestion":void 0,children:IQ[Y.value.toString()]??Y.value.toString()}):Y.id==="notifChannel"?Q(V,{color:E?"suggestion":void 0,children:Q(EQ,{value:Y.value.toString()})}):Y.id==="defaultPermissionMode"?Q(V,{color:E?"suggestion":void 0,children:xZ(Y.value)}):Y.id==="autoUpdatesChannel"&&W0?D(U,{flexDirection:"column",children:[Q(V,{color:E?"suggestion":void 0,children:"disabled"}),D(V,{dimColor:!0,children:["(",dZ(W0),")"]})]}):Q(V,{color:E?"suggestion":void 0,children:Y.value.toString()})},E?"selected":"unselected")]})},Y.id)}),i+Q0<G0.length&&D(V,{dimColor:!0,children:[H0.arrowDown," ",G0.length-i-Q0," ","more below"]})]})}),O?Q(V,{dimColor:!0,children:D(c,{children:[Q(J0,{shortcut:"←/→ tab",action:"switch"}),Q(J0,{shortcut:"↓",action:"return"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Q(V,{dimColor:!0,children:D(c,{children:[Q(V,{children:"Type to filter"}),Q(J0,{shortcut:"Enter/↓",action:"select"}),Q(J0,{shortcut:"↑",action:"tabs"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Q(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Q(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return qJ(KY());if(Z===null)return"Default (leader's model)";return qJ(Z)}function EQ(Z){let J=LY.c(4),{value:q}=Z;switch(q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["iTerm2 ",Q(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Terminal Bell ",Q(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Kitty ",Q(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=D(V,{children:["Ghostty ",Q(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return q}}var LY,v,_,IQ;var kY=p(()=>{D0();w0();OJ();rZ();WQ();nZ();rZ();QQ();GQ();RQ();QJ();qQ();LQ();PQ();qZ();kQ();tZ();MQ();AQ();AZ();FJ();PZ();SZ();bZ();fQ();DQ();f0();XJ();DY();zJ();UQ();OQ();VQ();ZZ();EZ();$Z();XQ();zQ();FQ();NQ();BQ();v0();KQ();HQ();g();LY=$(U0(),1),v=$(s(),1),_=$(s(),1);IQ={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)"}});function x0(Z){return typeof Z==="object"&&Z!==null}function Z0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:q,resetsAt:X}}function bY(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,q=EJ(Z.unlimited)??!1,X=Z0(Z.balance);if(!J&&!q&&!X)return;return{hasCredits:J,unlimited:q,balance:X}}function c0(Z,J){if(!x0(Z))return;let q=Z0(Z.limit_name)??Z0(Z.limitName)??Z0(Z.limit_id)??Z0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),O=bY(Z.credits);if(!X&&!W&&!O)return;return{limitName:q,primary:X,secondary:W,credits:O}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((q,X)=>c0(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([q,X])=>c0(X,q)).filter((q)=>q!==void 0)}function TQ(Z){let J=Z0(Z.plan_type)??Z0(Z.planType),q=[],X=bY(Z.credits),W=c0(Z.rate_limit,"codex");if(W)W.credits??=X,q.push(W);else if(X)q.push({limitName:"codex",credits:X});let O=c0(Z.code_review_rate_limit,"code review");if(O)q.push(O);return q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:q}}function wQ(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return TQ(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:CJ(J)};let q=c0(Z,"codex");return{planType:Z0(Z.plan_type)??Z0(Z.planType),snapshots:q?[q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function BY(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function hQ(Z){let J=Z?.trim();if(!J)return;let q=Number.parseInt(J,10);if(Number.isFinite(q)&&`${q}`===J&&q>0)return`${q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function bQ(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=hQ(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function yY(Z){let J=[];for(let q of Z){let X=q.limitName.trim()||"codex",W=bQ(q.credits);if(!(q.primary!==void 0||q.secondary!==void 0||W!==void 0))continue;let F=X.toLowerCase()!=="codex",L=Number(q.primary!==void 0)+Number(q.secondary!==void 0),k=F&&L===1;if(F&&!k)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(q.primary){let P=y0(BY(q.primary.windowMinutes,"5h"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.primary.usedPercent,resetsAt:q.primary.resetsAt})}if(q.secondary){let P=y0(BY(q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:k?`${y0(X)} ${P} limit`:`${P} limit`,usedPercent:q.secondary.usedPercent,resetsAt:q.secondary.resetsAt})}if(W)J.push(W)}return J}function _Y(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function yQ(Z=SY){return new URL("/backend-api/wham/usage",Z).toString()}async function gY(){let Z=await CY().catch(async(W)=>{return p0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await fY()}}),J=wY();if(!TY(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let q=hY({storedCredentials:Z.credentials});if(!q.apiKey){let W=IY()?"":", choose Codex OAuth in /provider",O=q.authPath?`${W} or place a Codex auth.json at ${q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${O}.`)}if(!q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let X=await fetch(yQ(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q.apiKey}`,"chatgpt-account-id":q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return wQ(await X.json())}var $Y=p(()=>{CQ();EY();$Z();SQ()});function _Q({label:Z,usedPercent:J,resetsAt:q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),O=`${Math.floor(W)}% used`,F=q?`Resets ${VJ(q,!0,!0)}`:void 0;if(X>=62)return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:Z}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]}),F?Q(V,{dimColor:!0,children:F}):null]});return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),F?D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",F]})]}):null]}),Q(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Q(V,{children:O})]})}function gQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function mY(){let[Z,J]=_0.useState(null),[q,X]=_0.useState(null),[W,O]=_0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=jY.useCallback(async()=>{O(!0),X(null);try{J(await gY())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load Codex usage")}finally{O(!1)}},[]);if(_0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading Codex usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=yY(Z.snapshots),N=_Y(Z.planType);return D(U,{flexDirection:"column",gap:1,width:"100%",children:[N?D(V,{dimColor:!0,children:["Plan: ",N]}):null,K.length===0?Q(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((z,H)=>z.kind==="window"?Q(_Q,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,maxWidth:k},`${z.label}-${H}`):Q(gQ,{label:z.label,value:z.value},`${z.label}-${H}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var jY,_0;var vY=p(()=>{v0();D0();w0();$Y();SJ();QJ();f0();XJ();TJ();g();jY=$(s(),1),_0=$(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function $Q(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let q=J>1000000000000?J:J*1000;return new Date(q).toISOString()}function jQ(Z,J){let q=bJ(Z);if(/remains?_time/i.test(J)&&q!==void 0){let X=q>604800?q:q*1000;return new Date(Date.now()+X).toISOString()}return $Q(Z)}function i0(Z,J){for(let q of J){let X=bJ(Z[q]);if(X!==void 0)return X}return}function mQ(Z,J){for(let q of J)if(Z[q]!==void 0)return jQ(Z[q],q);return}function r0(Z,J){return J.some((q)=>Z[q]!==void 0)}function xY(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function vQ(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((q)=>xY(q.toLowerCase())).join(" ")}function cQ(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>xY(J.toLowerCase())).join(" ")}function uY(Z,J){let q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),O=i0(Z,J.remainingKeys),F=i0(Z,J.usedKeys),L=W!==void 0&&F!==void 0?W-F:O,k;if(W!==void 0&&W>0&&F!==void 0)k=WJ(F/W*100);else if(W!==void 0&&W>0&&O!==void 0)k=WJ((W-O)/W*100);else if(q!==void 0)k=WJ(q);else if(X!==void 0)k=WJ(100-X);if(k===void 0)return;return{label:J.label,usedPercent:k,remaining:L,total:W,resetsAt:mQ(Z,J.resetKeys)}}function pQ(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return uY(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function uQ(Z){if(r0(Z,xQ))return!0;return dY.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let q=dY.map((W)=>uY(Z,W)).filter((W)=>W!==void 0);if(q.length===0){let W=pQ(Z);if(W)q.push(W)}if(q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:q}}function cY(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((q,X)=>hJ(q,X===0?J:`${J}-${X+1}`)).filter((q)=>q!==void 0);if(!L0(Z))return[];if(uQ(Z)){let q=hJ(Z,J);return q?[q]:[]}return Object.entries(Z).map(([q,X])=>hJ(X,q)).filter((q)=>q!==void 0)}function pY(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return pY();let J=cQ(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((O)=>cY(O)).filter((O,F,L)=>{let k=`${O.limitName}:${O.windows.map((P)=>P.label).join("|")}`;return L.findIndex((P)=>`${P.limitName}:${P.windows.map((K)=>K.label).join("|")}`===k)===F});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=cY(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return pY(void 0,J)}function dQ(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function _J(Z){let J=[];for(let q of Z){let X=vQ(q.limitName),W=X.toLowerCase()!=="minimax",O=W&&q.windows.length===1;if(W&&!O)J.push({kind:"text",label:`${X} quota`,value:""});for(let F of q.windows)J.push({kind:"window",label:O?`${X} ${F.label}`:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,extraSubtext:dQ(F)})}return J}var dY,xQ;var gJ=p(()=>{wJ();dY=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],xQ=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function rQ(Z){return Z.replace(/\/+$/,"")}function nY(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?rQ(J):u0}function nQ(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:nY(J),usedDefault:!1}}function iY(Z){return{availability:"unknown",snapshots:[],message:Z}}function lY(Z){let{baseUrl:J,usedDefault:q}=nQ(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function $J(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=lY(),q=[],X=null;for(let W of J){let O;try{O=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":rY()},signal:AbortSignal.timeout(5000)})}catch(L){p0(`[minimax] usage request failed for ${W}: ${L instanceof Error?L.message:String(L)}`,{level:"warn"}),X=L instanceof Error?L:Error(String(L));continue}if(!O.ok){let L=await O.text().catch(()=>"");if([400,401,403,404].includes(O.status)){q.push({status:O.status,body:L});continue}X=Error(`MiniMax usage error ${O.status}: ${L||"unknown error"}`);continue}let F=yJ(await O.json());if(F.availability==="available")return F}if(q.length>0){let W=q[q.length-1];return p0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),iY(d0)}if(X)throw X;return iY(d0)}var oY=p(()=>{nZ();EY();iQ();wJ();gJ()});var aY=p(()=>{gJ();oY()});function aQ(Z){let J=Math.max(1,Math.ceil(Z/60000)),q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(q>0)return X>0?`${q}d ${X}h`:`${q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function sQ(Z,J){if(!Z)return;let q=Date.parse(Z);if(!Number.isFinite(q))return;let X=q-J;if(X<=0)return"Resetting now";return`Resets in ${aQ(X)}`}function tQ({label:Z,usedPercent:J,resetsAt:q,extraSubtext:X,maxWidth:W,nowMs:O}){let F=Math.max(0,Math.min(100,J)),L=`${Math.floor(F)}% used`,k=sQ(q,O),P=[L,X].filter((K)=>Boolean(K));return D(U,{flexDirection:"column",children:[D(V,{children:[Q(V,{bold:!0,children:Z}),k?D(V,{dimColor:!0,children:[" · ",k]}):null]}),D(U,{flexDirection:"row",gap:1,children:[Q(R0,{ratio:F/100,width:Math.min(oQ,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),P.length>0?Q(V,{dimColor:!0,children:P.join(" · ")}):null]})]})}function eQ({label:Z,value:J}){if(!J)return Q(V,{bold:!0,children:Z});return D(V,{children:[Q(V,{bold:!0,children:Z}),D(V,{dimColor:!0,children:[" · ",J]})]})}function tY(){let[Z,J]=P0.useState(null),[q,X]=P0.useState(null),[W,O]=P0.useState(!0),[F,L]=P0.useState(()=>Date.now()),{columns:k}=V0(),P=k-2,K=Math.min(P,80),N=sY.useCallback(async()=>{O(!0),X(null);try{J(await $J())}catch(H){N0(H),X(H instanceof Error?H.message:"Failed to load MiniMax usage")}finally{O(!1)}},[]);if(P0.useEffect(()=>{N()},[N]),P0.useEffect(()=>{let H=setInterval(()=>{L(Date.now())},lQ);return()=>clearInterval(H)},[]),l("settings:retry",()=>{N()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Error: ",q]}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let z=Z.availability==="available"?_J(Z.snapshots):[];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?D(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Q(V,{dimColor:!0,children:Z.message}):z.length===0?Q(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,z.map((H,R)=>H.kind==="window"?Q(tQ,{label:H.label,usedPercent:H.usedPercent,resetsAt:H.resetsAt,extraSubtext:H.extraSubtext,maxWidth:K,nowMs:F},`${H.label}-${R}`):Q(eQ,{label:H.label,value:H.value},`${H.label}-${R}`)),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var sY,P0,lQ=30000,oQ=18;var eY=p(()=>{v0();D0();w0();aY();QJ();f0();XJ();TJ();g();sY=$(s(),1),P0=$(s(),1)});function Jq({providerLabel:Z}){return D(U,{flexDirection:"column",gap:1,children:[D(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var Zq=p(()=>{D0();f0();g()});function Mq(Z){let J=cJ.c(34),{title:q,limit:X,maxWidth:W,showTimeInReset:O,extraSubtext:F}=Z,L=O===void 0?!0:O,{utilization:k,resets_at:P}=X;if(k===null)return null;let K=`${Math.floor(k)}% used`,N;if(P){let z;if(J[0]!==P||J[1]!==L)z=VJ(P,!0,L),J[0]=P,J[1]=L,J[2]=z;else z=J[2];N=`Resets ${z}`}if(F)if(N)N=`${F} · ${N}`;else N=F;if(W>=62){let z;if(J[3]!==q)z=Q(V,{bold:!0,children:q}),J[3]=q,J[4]=z;else z=J[4];let H=k/100,R;if(J[5]!==H)R=Q(R0,{ratio:H,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=H,J[6]=R;else R=J[6];let A;if(J[7]!==K)A=Q(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let B;if(J[9]!==R||J[10]!==A)B=D(U,{flexDirection:"row",gap:1,children:[R,A]}),J[9]=R,J[10]=A,J[11]=B;else B=J[11];let I;if(J[12]!==N)I=N&&Q(V,{dimColor:!0,children:N}),J[12]=N,J[13]=I;else I=J[13];let h;if(J[14]!==z||J[15]!==B||J[16]!==I)h=D(U,{flexDirection:"column",children:[z,B,I]}),J[14]=z,J[15]=B,J[16]=I,J[17]=h;else h=J[17];return h}else{let z;if(J[18]!==q)z=Q(V,{bold:!0,children:q}),J[18]=q,J[19]=z;else z=J[19];let H;if(J[20]!==N)H=N&&D(n,{children:[Q(V,{children:" "}),D(V,{dimColor:!0,children:["· ",N]})]}),J[20]=N,J[21]=H;else H=J[21];let R;if(J[22]!==z||J[23]!==H)R=D(V,{children:[z,H]}),J[22]=z,J[23]=H,J[24]=R;else R=J[24];let A=k/100,B;if(J[25]!==W||J[26]!==A)B=Q(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=B;else B=J[27];let I;if(J[28]!==K)I=Q(V,{children:K}),J[28]=K,J[29]=I;else I=J[29];let h;if(J[30]!==R||J[31]!==B||J[32]!==I)h=D(U,{flexDirection:"column",children:[R,B,I]}),J[30]=R,J[31]=B,J[32]=I,J[33]=h;else h=J[33];return h}}function VX(){let[Z,J]=z0.useState(null),[q,X]=z0.useState(null),[W,O]=z0.useState(!0),{columns:F}=V0(),L=F-2,k=Math.min(L,80),P=kq.useCallback(async()=>{O(!0),X(null);try{let H=await Nq();J(H)}catch(H){N0(H);let R=H,A=R.response?.data,B=R.response?.status,I;if(A?.error?.type==="rate_limit_error")I=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)I=A.error.message;else if(B)I=`HTTP ${B} — ${Dq(R.response?.data??{})}`;else I=H?.message||"Failed to load usage data";X(I)}finally{O(!1)}},[]);if(z0.useEffect(()=>{P()},[P]),l("settings:retry",()=>{P()},{context:"Settings",isActive:!!q&&!W}),q)return D(U,{flexDirection:"column",gap:1,children:[D(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",q]}),Q(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Q(V,{dimColor:!0,children:D(c,{children:[Q(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return D(U,{flexDirection:"column",gap:1,children:[Q(V,{dimColor:!0,children:"Loading usage data…"}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),N=K==="max"||K==="team"||K===null,z=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...N?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return D(U,{flexDirection:"column",gap:1,width:"100%",children:[z.some(({limit:H})=>H)||Q(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),z.map(({title:H,limit:R})=>R&&Q(Mq,{title:H,limit:R,maxWidth:k},H)),Z.extra_usage&&Q(WX,{extraUsage:Z.extra_usage,maxWidth:k}),Lq()&&Q(Pq,{maxWidth:k}),Q(V,{dimColor:!0,children:Q(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function Yq(Z){let{title:J,totalCost:q,apiDuration:X,wallDuration:W,linesAdded:O,linesRemoved:F,modelUsage:L,unknownCost:k}=Z,P=Object.entries(L);if(q===0&&P.length===0&&O===0&&F===0)return null;let K={};for(let[z,H]of P){let R=zq(z);if(!K[R])K[R]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let A=K[R];A.inputTokens+=H.inputTokens,A.outputTokens+=H.outputTokens,A.cacheReadInputTokens+=H.cacheReadInputTokens,A.cacheCreationInputTokens+=H.cacheCreationInputTokens,A.webSearchRequests+=H.webSearchRequests,A.costUSD+=H.costUSD}let N=Object.entries(K);return D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:J}),D(V,{children:[Q(V,{children:"Total cost: "}),Q(V,{children:n0(q)}),k&&Q(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),D(V,{children:["Total duration (API): ",mJ(X)]}),D(V,{children:["Total duration (wall): ",mJ(W)]}),D(V,{children:["Total code changes: ",O," ",O===1?"line":"lines"," added, ",F," ",F===1?"line":"lines"," removed"]}),N.length>0&&Q(V,{children:"Usage by model:"}),N.map(([z,H])=>{let R=`${g0(H.inputTokens)} input, ${g0(H.outputTokens)} output`;if(H.cacheReadInputTokens>0)R+=`, ${g0(H.cacheReadInputTokens)} cache read`;if(H.cacheCreationInputTokens>0)R+=`, ${g0(H.cacheCreationInputTokens)} cache write`;if(H.webSearchRequests>0)R+=`, ${g0(H.webSearchRequests)} web search`;return R+=` (${n0(H.costUSD)})`,D(V,{children:[`${z}:`.padStart(21)," ",R]},z)})]})}function qq(Z={}){let J=Z.view??"global",[,q]=z0.useReducer((F)=>F+1,0);z0.useEffect(()=>{let F=setInterval(()=>q(),1000);return()=>clearInterval(F)},[]);let X=Kq();if(J==="session"){let F=Qq(),L=Hq(),k=Vq(),P=Wq();return Q(Yq,{title:"Current session",totalCost:F,apiDuration:Xq(),wallDuration:Gq(),linesAdded:k,linesRemoved:P,modelUsage:L,unknownCost:X})}let W=Fq();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return D(U,{flexDirection:"column",gap:1,children:[Q(Yq,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Q(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function pJ(Z={}){if((Z.view??"global")==="session")return Q(U,{flexDirection:"column",gap:1,width:"100%",children:Q(qq,{view:"session"})});let q=Oq(),X;if(q==="codex")X=Q(mY,{});else if(q==="minimax")X=Q(tY,{});else if(q!=="firstParty"){let W={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[q]??"this provider";X=Q(Jq,{providerLabel:W})}else X=Q(VX,{});return D(U,{flexDirection:"column",gap:1,width:"100%",children:[Q(qq,{view:"global"}),X]})}function WX(Z){let J=cJ.c(20),{extraUsage:q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!q.is_enabled){if(Rq.isEnabled()){let S;if(J[0]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=S;else S=J[0];return S}return null}if(q.monthly_limit===null){let S;if(J[1]===Symbol.for("react.memo_cache_sentinel"))S=D(U,{flexDirection:"column",children:[Q(V,{bold:!0,children:jJ}),Q(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=S;else S=J[1];return S}if(typeof q.used_credits!=="number"||typeof q.utilization!=="number")return null;let F=q.used_credits/100,L;if(J[2]!==F)L=n0(F,2),J[2]=F,J[3]=L;else L=J[3];let k=L,P=q.monthly_limit/100,K;if(J[4]!==P)K=n0(P,2),J[4]=P,J[5]=K;else K=J[5];let N=K,z,H,R,A;if(J[6]!==q.utilization){let S=new Date,d=new Date(S.getFullYear(),S.getMonth()+1,1);z=Mq,A=jJ,H=q.utilization,R=d.toISOString(),J[6]=q.utilization,J[7]=z,J[8]=H,J[9]=R,J[10]=A}else z=J[7],H=J[8],R=J[9],A=J[10];let B;if(J[11]!==H||J[12]!==R)B={utilization:H,resets_at:R},J[11]=H,J[12]=R,J[13]=B;else B=J[13];let I=`${k} / ${N} spent`,h;if(J[14]!==z||J[15]!==X||J[16]!==A||J[17]!==B||J[18]!==I)h=Q(z,{title:A,limit:B,showTimeInReset:!1,extraSubtext:I,maxWidth:X}),J[14]=z,J[15]=X,J[16]=A,J[17]=B,J[18]=I,J[19]=h;else h=J[19];return h}var cJ,kq,z0,jJ="Extra usage";var Aq=p(()=>{XX();qX();tZ();SJ();YX();v0();D0();w0();QX();SJ();QJ();ZX();JX();f0();XJ();TJ();GX();vY();eY();Zq();g();cJ=$(U0(),1),kq=$(s(),1),z0=$(s(),1)});function GW(Z){let J=fq.c(25),{onClose:q,context:X,defaultTab:W}=Z,[O,F]=k0.useState(W),[L,k]=k0.useState(!1),[P,K]=k0.useState(!1),[N,z]=k0.useState(!1),H=C0(),{rows:R}=Bq(V0()),A=H?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[B]=k0.useState(DX);Uq();let I;if(J[0]!==q||J[1]!==L)I=()=>{if(L)return;q("Status dialog dismissed",{display:"system"})},J[0]=q,J[1]=L,J[2]=I;else I=J[2];let h=I,S=!L&&!(O==="Config"&&P)&&!(O==="Gates"&&N),d;if(J[3]!==S)d={context:"Settings",isActive:S},J[3]=S,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==B)t=Q(l0,{title:"Status",children:Q(NZ,{context:X,diagnosticsPromise:B})},"status"),J[5]=X,J[6]=B,J[7]=t;else t=J[7];let j;if(J[8]!==A||J[9]!==X||J[10]!==q)j=Q(l0,{title:"Config",children:Q(k0.Suspense,{fallback:null,children:Q(PY,{context:X,onClose:q,setTabsHidden:k,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=q,J[11]=j;else j=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Q(l0,{title:"Usage",children:Q(pJ,{view:"global"})},"usage"),Q(l0,{title:"Session",children:Q(pJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let Y0;if(J[15]!==t||J[16]!==j||J[17]!==i)Y0=[t,j,...F0,...i],J[15]=t,J[16]=j,J[17]=i,J[18]=Y0;else Y0=J[18];let r=Y0,q0=W!=="Config"&&W!=="Gates",$0=L||H?void 0:A,I0;if(J[19]!==O||J[20]!==$0||J[21]!==q0||J[22]!==r||J[23]!==L)I0=Q(Iq,{color:"permission",children:Q(Eq,{color:"permission",selectedTab:O,onTabChange:F,hidden:L,initialHeaderFocused:q0,contentHeight:$0,children:r})}),J[19]=O,J[20]=$0,J[21]=q0,J[22]=r,J[23]=L,J[24]=I0;else I0=J[24];return I0}function DX(){return FZ().catch(OX)}function OX(){return[]}var fq,k0;var zX=p(()=>{w0();KX();v0();zJ();HX();DY();RZ();kY();Aq();g();fq=$(U0(),1),k0=$(s(),1)});
3
- export{GW as Cf,zX as Df};
@@ -1,2 +0,0 @@
1
- import{aoa as q}from"./cli-0.5.11-hph6a44c.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
- export{x as Dc,y as Ec,w as Fc};
@@ -1,2 +0,0 @@
1
- import{JD as h,LD as I,km as g,lm as k}from"./cli-0.5.11-6vqz68v0.mjs";import{YX as _,_V as S,tX as s}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as c,CZ as m,DZ as T}from"./cli-0.5.11-ffsf3kp2.mjs";import{Jaa as b,eba as P}from"./cli-0.5.11-73qsyep8.mjs";import{Yna as D}from"./cli-0.5.11-hph6a44c.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
- export{E as ca};
@@ -1,2 +0,0 @@
1
- import{aoa as M}from"./cli-0.5.11-hph6a44c.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
- export{W as Vea,Q as Wea,K as Xea,X as Yea,Y as Zea,Z as _ea,y as $ea,G as afa,h as bfa,w as cfa};
@@ -1,6 +0,0 @@
1
- import{aoa as b}from"./cli-0.5.11-hph6a44c.mjs";var K$,L$,F$=(_)=>typeof _==="string"?{...L$,name:_}:{...L$,..._};var S_=b(()=>{K$=Symbol("Let zodToJsonSchema decide on which parser to use"),L$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O,f$,B,T=(_)=>{switch(typeof _){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(_)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":if(Array.isArray(_))return B.array;if(_===null)return B.null;if(_.then&&typeof _.then==="function"&&_.catch&&typeof _.catch==="function")return B.promise;if(typeof Map<"u"&&_ instanceof Map)return B.map;if(typeof Set<"u"&&_ instanceof Set)return B.set;if(typeof Date<"u"&&_ instanceof Date)return B.date;return B.object;default:return B.unknown}};var __=b(()=>{(function(_){_.assertEqual=(W)=>{};function $(W){}_.assertIs=$;function q(W){throw Error()}_.assertNever=q,_.arrayToEnum=(W)=>{let X={};for(let H of W)X[H]=H;return X},_.getValidEnumValues=(W)=>{let X=_.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),H={};for(let Y of X)H[Y]=W[Y];return _.objectValues(H)},_.objectValues=(W)=>{return _.objectKeys(W).map(function(X){return W[X]})},_.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let X=[];for(let H in W)if(Object.prototype.hasOwnProperty.call(W,H))X.push(H);return X},_.find=(W,X)=>{for(let H of W)if(X(H))return H;return},_.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function J(W,X=" | "){return W.map((H)=>typeof H==="string"?`'${H}'`:H).join(X)}_.joinValues=J,_.jsonStringifyReplacer=(W,X)=>{if(typeof X==="bigint")return X.toString();return X}})(O||(O={}));(function(_){_.mergeShapes=($,q)=>{return{...$,...q}}})(f$||(f$={}));B=O.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var G,f;var v_=b(()=>{__();G=O.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);f=class f extends Error{get errors(){return this.issues}constructor(_){super();this.issues=[],this.addIssue=(q)=>{this.issues=[...this.issues,q]},this.addIssues=(q=[])=>{this.issues=[...this.issues,...q]};let $=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,$);else this.__proto__=$;this.name="ZodError",this.issues=_}format(_){let $=_||function(W){return W.message},q={_errors:[]},J=(W)=>{for(let X of W.issues)if(X.code==="invalid_union")X.unionErrors.map(J);else if(X.code==="invalid_return_type")J(X.returnTypeError);else if(X.code==="invalid_arguments")J(X.argumentsError);else if(X.path.length===0)q._errors.push($(X));else{let H=q,Y=0;while(Y<X.path.length){let Q=X.path[Y];if(Y!==X.path.length-1)H[Q]=H[Q]||{_errors:[]};else H[Q]=H[Q]||{_errors:[]},H[Q]._errors.push($(X));H=H[Q],Y++}}};return J(this),q}static assert(_){if(!(_ instanceof f))throw Error(`Not a ZodError: ${_}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,O.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(_=($)=>$.message){let $=Object.create(null),q=[];for(let J of this.issues)if(J.path.length>0){let W=J.path[0];$[W]=$[W]||[],$[W].push(_(J))}else q.push(_(J));return{formErrors:q,fieldErrors:$}}get formErrors(){return this.flatten()}};f.create=(_)=>{return new f(_)}});var bq=(_,$)=>{let q;switch(_.code){case G.invalid_type:if(_.received===B.undefined)q="Required";else q=`Expected ${_.expected}, received ${_.received}`;break;case G.invalid_literal:q=`Invalid literal value, expected ${JSON.stringify(_.expected,O.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:q=`Unrecognized key(s) in object: ${O.joinValues(_.keys,", ")}`;break;case G.invalid_union:q="Invalid input";break;case G.invalid_union_discriminator:q=`Invalid discriminator value. Expected ${O.joinValues(_.options)}`;break;case G.invalid_enum_value:q=`Invalid enum value. Expected ${O.joinValues(_.options)}, received '${_.received}'`;break;case G.invalid_arguments:q="Invalid function arguments";break;case G.invalid_return_type:q="Invalid function return type";break;case G.invalid_date:q="Invalid date";break;case G.invalid_string:if(typeof _.validation==="object")if("includes"in _.validation){if(q=`Invalid input: must include "${_.validation.includes}"`,typeof _.validation.position==="number")q=`${q} at one or more positions greater than or equal to ${_.validation.position}`}else if("startsWith"in _.validation)q=`Invalid input: must start with "${_.validation.startsWith}"`;else if("endsWith"in _.validation)q=`Invalid input: must end with "${_.validation.endsWith}"`;else O.assertNever(_.validation);else if(_.validation!=="regex")q=`Invalid ${_.validation}`;else q="Invalid";break;case G.too_small:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at least":"more than"} ${_.minimum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at least":"over"} ${_.minimum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="bigint")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(_.minimum))}`;else q="Invalid input";break;case G.too_big:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at most":"less than"} ${_.maximum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at most":"under"} ${_.maximum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="bigint")q=`BigInt must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly":_.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(_.maximum))}`;else q="Invalid input";break;case G.custom:q="Invalid input";break;case G.invalid_intersection_types:q="Intersection results could not be merged";break;case G.not_multiple_of:q=`Number must be a multiple of ${_.multipleOf}`;break;case G.not_finite:q="Number must be finite";break;default:q=$.defaultError,O.assertNever(_)}return{message:q}},Z;var y_=b(()=>{v_();__();Z=bq});function $_(){return zq}var zq;var j_=b(()=>{y_();zq=Z});function D(_,$){let q=$_(),J=A_({issueData:$,data:_.data,path:_.path,errorMaps:[_.common.contextualErrorMap,_.schemaErrorMap,q,q===Z?void 0:Z].filter((W)=>!!W)});_.common.issues.push(J)}class L{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(_,$){let q=[];for(let J of $){if(J.status==="aborted")return z;if(J.status==="dirty")_.dirty();q.push(J.value)}return{status:_.value,value:q}}static async mergeObjectAsync(_,$){let q=[];for(let J of $){let W=await J.key,X=await J.value;q.push({key:W,value:X})}return L.mergeObjectSync(_,q)}static mergeObjectSync(_,$){let q={};for(let J of $){let{key:W,value:X}=J;if(W.status==="aborted")return z;if(X.status==="aborted")return z;if(W.status==="dirty")_.dirty();if(X.status==="dirty")_.dirty();if(W.value!=="__proto__"&&(typeof X.value<"u"||J.alwaysSet))q[W.value]=X.value}return{status:_.value,value:q}}}var A_=(_)=>{let{data:$,path:q,errorMaps:J,issueData:W}=_,X=[...q,...W.path||[]],H={...W,path:X};if(W.message!==void 0)return{...W,path:X,message:W.message};let Y="",Q=J.filter((v)=>!!v).slice().reverse();for(let v of Q)Y=v(H,{data:$,defaultError:Y}).message;return{...W,path:X,message:Y}},z,c=(_)=>({status:"dirty",value:_}),K=(_)=>({status:"valid",value:_}),x_=(_)=>_.status==="aborted",n_=(_)=>_.status==="dirty",i=(_)=>_.status==="valid",q_=(_)=>typeof Promise<"u"&&_ instanceof Promise;var Z_=b(()=>{j_();y_();z=Object.freeze({status:"aborted"})});var g$=()=>{};var w;var C$=b(()=>{(function(_){_.errToObj=($)=>typeof $==="string"?{message:$}:$||{},_.toString=($)=>typeof $==="string"?$:$?.message})(w||(w={}))});class C{constructor(_,$,q,J){this._cachedPath=[],this.parent=_,this.data=$,this._path=q,this._key=J}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function j(_){if(!_)return{};let{errorMap:$,invalid_type_error:q,required_error:J,description:W}=_;if($&&(q||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if($)return{errorMap:$,description:W};return{errorMap:(H,Y)=>{let{message:Q}=_;if(H.code==="invalid_enum_value")return{message:Q??Y.defaultError};if(typeof Y.data>"u")return{message:Q??J??Y.defaultError};if(H.code!=="invalid_type")return{message:Y.defaultError};return{message:Q??q??Y.defaultError}},description:W}}class A{get description(){return this._def.description}_getType(_){return T(_.data)}_getOrReturnCtx(_,$){return $||{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}_processInputParams(_){return{status:new L,ctx:{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}}_parseSync(_){let $=this._parse(_);if(q_($))throw Error("Synchronous parse encountered promise.");return $}_parseAsync(_){let $=this._parse(_);return Promise.resolve($)}parse(_,$){let q=this.safeParse(_,$);if(q.success)return q.data;throw q.error}safeParse(_,$){let q={common:{issues:[],async:$?.async??!1,contextualErrorMap:$?.errorMap},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parseSync({data:_,path:q.path,parent:q});return k$(q,J)}"~validate"(_){let $={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)};if(!this["~standard"].async)try{let q=this._parseSync({data:_,path:[],parent:$});return i(q)?{value:q.value}:{issues:$.common.issues}}catch(q){if(q?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;$.common={issues:[],async:!0}}return this._parseAsync({data:_,path:[],parent:$}).then((q)=>i(q)?{value:q.value}:{issues:$.common.issues})}async parseAsync(_,$){let q=await this.safeParseAsync(_,$);if(q.success)return q.data;throw q.error}async safeParseAsync(_,$){let q={common:{issues:[],contextualErrorMap:$?.errorMap,async:!0},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parse({data:_,path:q.path,parent:q}),W=await(q_(J)?J:Promise.resolve(J));return k$(q,W)}refine(_,$){let q=(J)=>{if(typeof $==="string"||typeof $>"u")return{message:$};else if(typeof $==="function")return $(J);else return $};return this._refinement((J,W)=>{let X=_(J),H=()=>W.addIssue({code:G.custom,...q(J)});if(typeof Promise<"u"&&X instanceof Promise)return X.then((Y)=>{if(!Y)return H(),!1;else return!0});if(!X)return H(),!1;else return!0})}refinement(_,$){return this._refinement((q,J)=>{if(!_(q))return J.addIssue(typeof $==="function"?$(q,J):$),!1;else return!0})}_refinement(_){return new l({schema:this,typeName:M.ZodEffects,effect:{type:"refinement",refinement:_}})}superRefine(_){return this._refinement(_)}constructor(_){this.spa=this.safeParseAsync,this._def=_,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:($)=>this["~validate"]($)}}optional(){return m.create(this,this._def)}nullable(){return u.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return P.create(this)}promise(){return e.create(this,this._def)}or(_){return Q_.create([this,_],this._def)}and(_){return Y_.create(this,_,this._def)}transform(_){return new l({...j(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:_}})}default(_){let $=typeof _==="function"?_:()=>_;return new D_({...j(this._def),innerType:this,defaultValue:$,typeName:M.ZodDefault})}brand(){return new r_({typeName:M.ZodBranded,type:this,...j(this._def)})}catch(_){let $=typeof _==="function"?_:()=>_;return new w_({...j(this._def),innerType:this,catchValue:$,typeName:M.ZodCatch})}describe(_){return new this.constructor({...this._def,description:_})}pipe(_){return K_.create(this,_)}readonly(){return b_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function P$(_){let $="[0-5]\\d";if(_.precision)$=`${$}\\.\\d{${_.precision}}`;else if(_.precision==null)$=`${$}(\\.\\d+)?`;let q=_.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${$})${q}`}function kq(_){return new RegExp(`^${P$(_)}$`)}function Iq(_){let $=`${I$}T${P$(_)}`,q=[];if(q.push(_.local?"Z?":"Z"),_.offset)q.push("([+-]\\d{2}:?\\d{2})");return $=`${$}(${q.join("|")})`,new RegExp(`^${$}$`)}function Pq(_,$){if(($==="v4"||!$)&&Rq.test(_))return!0;if(($==="v6"||!$)&&Kq.test(_))return!0;return!1}function mq(_,$){if(!Nq.test(_))return!1;try{let[q]=_.split(".");if(!q)return!1;let J=q.replace(/-/g,"+").replace(/_/g,"/").padEnd(q.length+(4-q.length%4)%4,"="),W=JSON.parse(atob(J));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if($&&W.alg!==$)return!1;return!0}catch{return!1}}function lq(_,$){if(($==="v4"||!$)&&Lq.test(_))return!0;if(($==="v6"||!$)&&Fq.test(_))return!0;return!1}function Tq(_,$){let q=(_.toString().split(".")[1]||"").length,J=($.toString().split(".")[1]||"").length,W=q>J?q:J,X=Number.parseInt(_.toFixed(W).replace(".","")),H=Number.parseInt($.toFixed(W).replace(".",""));return X%H/10**W}function d(_){if(_ instanceof U){let $={};for(let q in _.shape){let J=_.shape[q];$[q]=m.create(d(J))}return new U({..._._def,shape:()=>$})}else if(_ instanceof P)return new P({..._._def,type:d(_.element)});else if(_ instanceof m)return m.create(d(_.unwrap()));else if(_ instanceof u)return u.create(d(_.unwrap()));else if(_ instanceof n)return n.create(_.items.map(($)=>d($)));else return _}function p_(_,$){let q=T(_),J=T($);if(_===$)return{valid:!0,data:_};else if(q===B.object&&J===B.object){let W=O.objectKeys($),X=O.objectKeys(_).filter((Y)=>W.indexOf(Y)!==-1),H={..._,...$};for(let Y of X){let Q=p_(_[Y],$[Y]);if(!Q.valid)return{valid:!1};H[Y]=Q.data}return{valid:!0,data:H}}else if(q===B.array&&J===B.array){if(_.length!==$.length)return{valid:!1};let W=[];for(let X=0;X<_.length;X++){let H=_[X],Y=$[X],Q=p_(H,Y);if(!Q.valid)return{valid:!1};W.push(Q.data)}return{valid:!0,data:W}}else if(q===B.date&&J===B.date&&+_===+$)return{valid:!0,data:_};else return{valid:!1}}function m$(_,$){return new o({values:_,typeName:M.ZodEnum,...j($)})}var k$=(_,$)=>{if(i($))return{success:!0,data:$.value};else{if(!_.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let q=new f(_.common.issues);return this._error=q,this._error}}}},Sq,vq,jq,Aq,Oq,Nq,Eq,Uq,Vq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",u_,Rq,Lq,Kq,Fq,fq,gq,I$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Cq,y,t,a,O_,W_,N_,X_,H_,E_,r,x,U_,P,U,Q_,h=(_)=>{if(_ instanceof G_)return h(_.schema);else if(_ instanceof l)return h(_.innerType());else if(_ instanceof M_)return[_.value];else if(_ instanceof o)return _.options;else if(_ instanceof B_)return O.objectValues(_.enum);else if(_ instanceof D_)return h(_._def.innerType);else if(_ instanceof X_)return[void 0];else if(_ instanceof H_)return[null];else if(_ instanceof m)return[void 0,...h(_.unwrap())];else if(_ instanceof u)return[null,...h(_.unwrap())];else if(_ instanceof r_)return h(_.unwrap());else if(_ instanceof b_)return h(_.unwrap());else if(_ instanceof w_)return h(_._def.innerType);else return[]},i_,Y_,n,V_,R_,s,J_,G_,M_,o,B_,e,l,m,u,D_,w_,L_,D3,r_,K_,b_,w3,M,b3,z3,S3,v3,j3,A3,O3,N3,E3,U3,V3,R3,L3,K3,F3,f3,g3,C3,k3,I3,P3,m3,l3,T3,h3,y3,x3,n3,Z3,u3,p3,i3,r3,o3;var l$=b(()=>{v_();j_();C$();Z_();__();Sq=/^c[^\s-]{8,}$/i,vq=/^[0-9a-z]+$/,jq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Aq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Oq=/^[a-z0-9_-]{21}$/i,Nq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Eq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Rq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Kq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Cq=new RegExp(`^${I$}$`);y=class y extends A{_parse(_){if(this._def.coerce)_.data=String(_.data);if(this._getType(_)!==B.string){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.string,received:W.parsedType}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.length<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="max"){if(_.data.length>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="length"){let X=_.data.length>W.value,H=_.data.length<W.value;if(X||H){if(J=this._getOrReturnCtx(_,J),X)D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(H)D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});q.dirty()}}else if(W.kind==="email"){if(!Uq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"email",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="emoji"){if(!u_)u_=new RegExp(Vq,"u");if(!u_.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"emoji",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="uuid"){if(!Aq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"uuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="nanoid"){if(!Oq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"nanoid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid"){if(!Sq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid2"){if(!vq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid2",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ulid"){if(!jq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"ulid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="url")try{new URL(_.data)}catch{J=this._getOrReturnCtx(_,J),D(J,{validation:"url",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"regex",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="trim")_.data=_.data.trim();else if(W.kind==="includes"){if(!_.data.includes(W.value,W.position))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),q.dirty()}else if(W.kind==="toLowerCase")_.data=_.data.toLowerCase();else if(W.kind==="toUpperCase")_.data=_.data.toUpperCase();else if(W.kind==="startsWith"){if(!_.data.startsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{startsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="endsWith"){if(!_.data.endsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{endsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="datetime"){if(!Iq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"datetime",message:W.message}),q.dirty()}else if(W.kind==="date"){if(!Cq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"date",message:W.message}),q.dirty()}else if(W.kind==="time"){if(!kq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"time",message:W.message}),q.dirty()}else if(W.kind==="duration"){if(!Eq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"duration",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ip"){if(!Pq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"ip",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="jwt"){if(!mq(_.data,W.alg))J=this._getOrReturnCtx(_,J),D(J,{validation:"jwt",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cidr"){if(!lq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"cidr",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64"){if(!fq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64url"){if(!gq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64url",code:G.invalid_string,message:W.message}),q.dirty()}else O.assertNever(W);return{status:q.value,value:_.data}}_regex(_,$,q){return this.refinement((J)=>_.test(J),{validation:$,code:G.invalid_string,...w.errToObj(q)})}_addCheck(_){return new y({...this._def,checks:[...this._def.checks,_]})}email(_){return this._addCheck({kind:"email",...w.errToObj(_)})}url(_){return this._addCheck({kind:"url",...w.errToObj(_)})}emoji(_){return this._addCheck({kind:"emoji",...w.errToObj(_)})}uuid(_){return this._addCheck({kind:"uuid",...w.errToObj(_)})}nanoid(_){return this._addCheck({kind:"nanoid",...w.errToObj(_)})}cuid(_){return this._addCheck({kind:"cuid",...w.errToObj(_)})}cuid2(_){return this._addCheck({kind:"cuid2",...w.errToObj(_)})}ulid(_){return this._addCheck({kind:"ulid",...w.errToObj(_)})}base64(_){return this._addCheck({kind:"base64",...w.errToObj(_)})}base64url(_){return this._addCheck({kind:"base64url",...w.errToObj(_)})}jwt(_){return this._addCheck({kind:"jwt",...w.errToObj(_)})}ip(_){return this._addCheck({kind:"ip",...w.errToObj(_)})}cidr(_){return this._addCheck({kind:"cidr",...w.errToObj(_)})}datetime(_){if(typeof _==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:_});return this._addCheck({kind:"datetime",precision:typeof _?.precision>"u"?null:_?.precision,offset:_?.offset??!1,local:_?.local??!1,...w.errToObj(_?.message)})}date(_){return this._addCheck({kind:"date",message:_})}time(_){if(typeof _==="string")return this._addCheck({kind:"time",precision:null,message:_});return this._addCheck({kind:"time",precision:typeof _?.precision>"u"?null:_?.precision,...w.errToObj(_?.message)})}duration(_){return this._addCheck({kind:"duration",...w.errToObj(_)})}regex(_,$){return this._addCheck({kind:"regex",regex:_,...w.errToObj($)})}includes(_,$){return this._addCheck({kind:"includes",value:_,position:$?.position,...w.errToObj($?.message)})}startsWith(_,$){return this._addCheck({kind:"startsWith",value:_,...w.errToObj($)})}endsWith(_,$){return this._addCheck({kind:"endsWith",value:_,...w.errToObj($)})}min(_,$){return this._addCheck({kind:"min",value:_,...w.errToObj($)})}max(_,$){return this._addCheck({kind:"max",value:_,...w.errToObj($)})}length(_,$){return this._addCheck({kind:"length",value:_,...w.errToObj($)})}nonempty(_){return this.min(1,w.errToObj(_))}trim(){return new y({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((_)=>_.kind==="datetime")}get isDate(){return!!this._def.checks.find((_)=>_.kind==="date")}get isTime(){return!!this._def.checks.find((_)=>_.kind==="time")}get isDuration(){return!!this._def.checks.find((_)=>_.kind==="duration")}get isEmail(){return!!this._def.checks.find((_)=>_.kind==="email")}get isURL(){return!!this._def.checks.find((_)=>_.kind==="url")}get isEmoji(){return!!this._def.checks.find((_)=>_.kind==="emoji")}get isUUID(){return!!this._def.checks.find((_)=>_.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((_)=>_.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((_)=>_.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((_)=>_.kind==="cuid2")}get isULID(){return!!this._def.checks.find((_)=>_.kind==="ulid")}get isIP(){return!!this._def.checks.find((_)=>_.kind==="ip")}get isCIDR(){return!!this._def.checks.find((_)=>_.kind==="cidr")}get isBase64(){return!!this._def.checks.find((_)=>_.kind==="base64")}get isBase64url(){return!!this._def.checks.find((_)=>_.kind==="base64url")}get minLength(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxLength(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};y.create=(_)=>{return new y({checks:[],typeName:M.ZodString,coerce:_?.coerce??!1,...j(_)})};t=class t extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(_){if(this._def.coerce)_.data=Number(_.data);if(this._getType(_)!==B.number){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.number,received:W.parsedType}),z}let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="int"){if(!O.isInteger(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.invalid_type,expected:"integer",received:"float",message:W.message}),J.dirty()}else if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(Tq(_.data,W.value)!==0)q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else if(W.kind==="finite"){if(!Number.isFinite(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_finite,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new t({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new t({...this._def,checks:[...this._def.checks,_]})}int(_){return this._addCheck({kind:"int",message:w.toString(_)})}positive(_){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}finite(_){return this._addCheck({kind:"finite",message:w.toString(_)})}safe(_){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(_)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(_)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}get isInt(){return!!this._def.checks.find((_)=>_.kind==="int"||_.kind==="multipleOf"&&O.isInteger(_.value))}get isFinite(){let _=null,$=null;for(let q of this._def.checks)if(q.kind==="finite"||q.kind==="int"||q.kind==="multipleOf")return!0;else if(q.kind==="min"){if($===null||q.value>$)$=q.value}else if(q.kind==="max"){if(_===null||q.value<_)_=q.value}return Number.isFinite($)&&Number.isFinite(_)}};t.create=(_)=>{return new t({checks:[],typeName:M.ZodNumber,coerce:_?.coerce||!1,...j(_)})};a=class a extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(_){if(this._def.coerce)try{_.data=BigInt(_.data)}catch{return this._getInvalidInput(_)}if(this._getType(_)!==B.bigint)return this._getInvalidInput(_);let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(_.data%W.value!==BigInt(0))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}_getInvalidInput(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.bigint,received:$.parsedType}),z}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new a({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new a({...this._def,checks:[...this._def.checks,_]})}positive(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};a.create=(_)=>{return new a({checks:[],typeName:M.ZodBigInt,coerce:_?.coerce??!1,...j(_)})};O_=class O_ extends A{_parse(_){if(this._def.coerce)_.data=Boolean(_.data);if(this._getType(_)!==B.boolean){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.boolean,received:q.parsedType}),z}return K(_.data)}};O_.create=(_)=>{return new O_({typeName:M.ZodBoolean,coerce:_?.coerce||!1,...j(_)})};W_=class W_ extends A{_parse(_){if(this._def.coerce)_.data=new Date(_.data);if(this._getType(_)!==B.date){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.date,received:W.parsedType}),z}if(Number.isNaN(_.data.getTime())){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_date}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.getTime()<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),q.dirty()}else if(W.kind==="max"){if(_.data.getTime()>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),q.dirty()}else O.assertNever(W);return{status:q.value,value:new Date(_.data.getTime())}}_addCheck(_){return new W_({...this._def,checks:[...this._def.checks,_]})}min(_,$){return this._addCheck({kind:"min",value:_.getTime(),message:w.toString($)})}max(_,$){return this._addCheck({kind:"max",value:_.getTime(),message:w.toString($)})}get minDate(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _!=null?new Date(_):null}get maxDate(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _!=null?new Date(_):null}};W_.create=(_)=>{return new W_({checks:[],coerce:_?.coerce||!1,typeName:M.ZodDate,...j(_)})};N_=class N_ extends A{_parse(_){if(this._getType(_)!==B.symbol){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.symbol,received:q.parsedType}),z}return K(_.data)}};N_.create=(_)=>{return new N_({typeName:M.ZodSymbol,...j(_)})};X_=class X_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.undefined,received:q.parsedType}),z}return K(_.data)}};X_.create=(_)=>{return new X_({typeName:M.ZodUndefined,...j(_)})};H_=class H_ extends A{_parse(_){if(this._getType(_)!==B.null){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.null,received:q.parsedType}),z}return K(_.data)}};H_.create=(_)=>{return new H_({typeName:M.ZodNull,...j(_)})};E_=class E_ extends A{constructor(){super(...arguments);this._any=!0}_parse(_){return K(_.data)}};E_.create=(_)=>{return new E_({typeName:M.ZodAny,...j(_)})};r=class r extends A{constructor(){super(...arguments);this._unknown=!0}_parse(_){return K(_.data)}};r.create=(_)=>{return new r({typeName:M.ZodUnknown,...j(_)})};x=class x extends A{_parse(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.never,received:$.parsedType}),z}};x.create=(_)=>{return new x({typeName:M.ZodNever,...j(_)})};U_=class U_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.void,received:q.parsedType}),z}return K(_.data)}};U_.create=(_)=>{return new U_({typeName:M.ZodVoid,...j(_)})};P=class P extends A{_parse(_){let{ctx:$,status:q}=this._processInputParams(_),J=this._def;if($.parsedType!==B.array)return D($,{code:G.invalid_type,expected:B.array,received:$.parsedType}),z;if(J.exactLength!==null){let X=$.data.length>J.exactLength.value,H=$.data.length<J.exactLength.value;if(X||H)D($,{code:X?G.too_big:G.too_small,minimum:H?J.exactLength.value:void 0,maximum:X?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),q.dirty()}if(J.minLength!==null){if($.data.length<J.minLength.value)D($,{code:G.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),q.dirty()}if(J.maxLength!==null){if($.data.length>J.maxLength.value)D($,{code:G.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),q.dirty()}if($.common.async)return Promise.all([...$.data].map((X,H)=>{return J.type._parseAsync(new C($,X,$.path,H))})).then((X)=>{return L.mergeArray(q,X)});let W=[...$.data].map((X,H)=>{return J.type._parseSync(new C($,X,$.path,H))});return L.mergeArray(q,W)}get element(){return this._def.type}min(_,$){return new P({...this._def,minLength:{value:_,message:w.toString($)}})}max(_,$){return new P({...this._def,maxLength:{value:_,message:w.toString($)}})}length(_,$){return new P({...this._def,exactLength:{value:_,message:w.toString($)}})}nonempty(_){return this.min(1,_)}};P.create=(_,$)=>{return new P({type:_,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...j($)})};U=class U extends A{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let _=this._def.shape(),$=O.objectKeys(_);return this._cached={shape:_,keys:$},this._cached}_parse(_){if(this._getType(_)!==B.object){let Q=this._getOrReturnCtx(_);return D(Q,{code:G.invalid_type,expected:B.object,received:Q.parsedType}),z}let{status:q,ctx:J}=this._processInputParams(_),{shape:W,keys:X}=this._getCached(),H=[];if(!(this._def.catchall instanceof x&&this._def.unknownKeys==="strip")){for(let Q in J.data)if(!X.includes(Q))H.push(Q)}let Y=[];for(let Q of X){let v=W[Q],R=J.data[Q];Y.push({key:{status:"valid",value:Q},value:v._parse(new C(J,R,J.path,Q)),alwaysSet:Q in J.data})}if(this._def.catchall instanceof x){let Q=this._def.unknownKeys;if(Q==="passthrough")for(let v of H)Y.push({key:{status:"valid",value:v},value:{status:"valid",value:J.data[v]}});else if(Q==="strict"){if(H.length>0)D(J,{code:G.unrecognized_keys,keys:H}),q.dirty()}else if(Q==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let Q=this._def.catchall;for(let v of H){let R=J.data[v];Y.push({key:{status:"valid",value:v},value:Q._parse(new C(J,R,J.path,v)),alwaysSet:v in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let Q=[];for(let v of Y){let R=await v.key,R$=await v.value;Q.push({key:R,value:R$,alwaysSet:v.alwaysSet})}return Q}).then((Q)=>{return L.mergeObjectSync(q,Q)});else return L.mergeObjectSync(q,Y)}get shape(){return this._def.shape()}strict(_){return w.errToObj,new U({...this._def,unknownKeys:"strict",..._!==void 0?{errorMap:($,q)=>{let J=this._def.errorMap?.($,q).message??q.defaultError;if($.code==="unrecognized_keys")return{message:w.errToObj(_).message??J};return{message:J}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(_){return new U({...this._def,shape:()=>({...this._def.shape(),..._})})}merge(_){return new U({unknownKeys:_._def.unknownKeys,catchall:_._def.catchall,shape:()=>({...this._def.shape(),..._._def.shape()}),typeName:M.ZodObject})}setKey(_,$){return this.augment({[_]:$})}catchall(_){return new U({...this._def,catchall:_})}pick(_){let $={};for(let q of O.objectKeys(_))if(_[q]&&this.shape[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}omit(_){let $={};for(let q of O.objectKeys(this.shape))if(!_[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}deepPartial(){return d(this)}partial(_){let $={};for(let q of O.objectKeys(this.shape)){let J=this.shape[q];if(_&&!_[q])$[q]=J;else $[q]=J.optional()}return new U({...this._def,shape:()=>$})}required(_){let $={};for(let q of O.objectKeys(this.shape))if(_&&!_[q])$[q]=this.shape[q];else{let W=this.shape[q];while(W instanceof m)W=W._def.innerType;$[q]=W}return new U({...this._def,shape:()=>$})}keyof(){return m$(O.objectKeys(this.shape))}};U.create=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.strictCreate=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strict",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.lazycreate=(_,$)=>{return new U({shape:_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};Q_=class Q_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=this._def.options;function J(W){for(let H of W)if(H.result.status==="valid")return H.result;for(let H of W)if(H.result.status==="dirty")return $.common.issues.push(...H.ctx.common.issues),H.result;let X=W.map((H)=>new f(H.ctx.common.issues));return D($,{code:G.invalid_union,unionErrors:X}),z}if($.common.async)return Promise.all(q.map(async(W)=>{let X={...$,common:{...$.common,issues:[]},parent:null};return{result:await W._parseAsync({data:$.data,path:$.path,parent:X}),ctx:X}})).then(J);else{let W=void 0,X=[];for(let Y of q){let Q={...$,common:{...$.common,issues:[]},parent:null},v=Y._parseSync({data:$.data,path:$.path,parent:Q});if(v.status==="valid")return v;else if(v.status==="dirty"&&!W)W={result:v,ctx:Q};if(Q.common.issues.length)X.push(Q.common.issues)}if(W)return $.common.issues.push(...W.ctx.common.issues),W.result;let H=X.map((Y)=>new f(Y));return D($,{code:G.invalid_union,unionErrors:H}),z}}get options(){return this._def.options}};Q_.create=(_,$)=>{return new Q_({options:_,typeName:M.ZodUnion,...j($)})};i_=class i_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.object)return D($,{code:G.invalid_type,expected:B.object,received:$.parsedType}),z;let q=this.discriminator,J=$.data[q],W=this.optionsMap.get(J);if(!W)return D($,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[q]}),z;if($.common.async)return W._parseAsync({data:$.data,path:$.path,parent:$});else return W._parseSync({data:$.data,path:$.path,parent:$})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(_,$,q){let J=new Map;for(let W of $){let X=h(W.shape[_]);if(!X.length)throw Error(`A discriminator value for key \`${_}\` could not be extracted from all schema options`);for(let H of X){if(J.has(H))throw Error(`Discriminator property ${String(_)} has duplicate value ${String(H)}`);J.set(H,W)}}return new i_({typeName:M.ZodDiscriminatedUnion,discriminator:_,options:$,optionsMap:J,...j(q)})}};Y_=class Y_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=(W,X)=>{if(x_(W)||x_(X))return z;let H=p_(W.value,X.value);if(!H.valid)return D(q,{code:G.invalid_intersection_types}),z;if(n_(W)||n_(X))$.dirty();return{status:$.value,value:H.data}};if(q.common.async)return Promise.all([this._def.left._parseAsync({data:q.data,path:q.path,parent:q}),this._def.right._parseAsync({data:q.data,path:q.path,parent:q})]).then(([W,X])=>J(W,X));else return J(this._def.left._parseSync({data:q.data,path:q.path,parent:q}),this._def.right._parseSync({data:q.data,path:q.path,parent:q}))}};Y_.create=(_,$,q)=>{return new Y_({left:_,right:$,typeName:M.ZodIntersection,...j(q)})};n=class n extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.array)return D(q,{code:G.invalid_type,expected:B.array,received:q.parsedType}),z;if(q.data.length<this._def.items.length)return D(q,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;if(!this._def.rest&&q.data.length>this._def.items.length)D(q,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$.dirty();let W=[...q.data].map((X,H)=>{let Y=this._def.items[H]||this._def.rest;if(!Y)return null;return Y._parse(new C(q,X,q.path,H))}).filter((X)=>!!X);if(q.common.async)return Promise.all(W).then((X)=>{return L.mergeArray($,X)});else return L.mergeArray($,W)}get items(){return this._def.items}rest(_){return new n({...this._def,rest:_})}};n.create=(_,$)=>{if(!Array.isArray(_))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new n({items:_,typeName:M.ZodTuple,rest:null,...j($)})};V_=class V_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.object)return D(q,{code:G.invalid_type,expected:B.object,received:q.parsedType}),z;let J=[],W=this._def.keyType,X=this._def.valueType;for(let H in q.data)J.push({key:W._parse(new C(q,H,q.path,H)),value:X._parse(new C(q,q.data[H],q.path,H)),alwaysSet:H in q.data});if(q.common.async)return L.mergeObjectAsync($,J);else return L.mergeObjectSync($,J)}get element(){return this._def.valueType}static create(_,$,q){if($ instanceof A)return new V_({keyType:_,valueType:$,typeName:M.ZodRecord,...j(q)});return new V_({keyType:y.create(),valueType:_,typeName:M.ZodRecord,...j($)})}};R_=class R_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.map)return D(q,{code:G.invalid_type,expected:B.map,received:q.parsedType}),z;let J=this._def.keyType,W=this._def.valueType,X=[...q.data.entries()].map(([H,Y],Q)=>{return{key:J._parse(new C(q,H,q.path,[Q,"key"])),value:W._parse(new C(q,Y,q.path,[Q,"value"]))}});if(q.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let Y of X){let Q=await Y.key,v=await Y.value;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}})}else{let H=new Map;for(let Y of X){let{key:Q,value:v}=Y;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}}}};R_.create=(_,$,q)=>{return new R_({valueType:$,keyType:_,typeName:M.ZodMap,...j(q)})};s=class s extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.set)return D(q,{code:G.invalid_type,expected:B.set,received:q.parsedType}),z;let J=this._def;if(J.minSize!==null){if(q.data.size<J.minSize.value)D(q,{code:G.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),$.dirty()}if(J.maxSize!==null){if(q.data.size>J.maxSize.value)D(q,{code:G.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),$.dirty()}let W=this._def.valueType;function X(Y){let Q=new Set;for(let v of Y){if(v.status==="aborted")return z;if(v.status==="dirty")$.dirty();Q.add(v.value)}return{status:$.value,value:Q}}let H=[...q.data.values()].map((Y,Q)=>W._parse(new C(q,Y,q.path,Q)));if(q.common.async)return Promise.all(H).then((Y)=>X(Y));else return X(H)}min(_,$){return new s({...this._def,minSize:{value:_,message:w.toString($)}})}max(_,$){return new s({...this._def,maxSize:{value:_,message:w.toString($)}})}size(_,$){return this.min(_,$).max(_,$)}nonempty(_){return this.min(1,_)}};s.create=(_,$)=>{return new s({valueType:_,minSize:null,maxSize:null,typeName:M.ZodSet,...j($)})};J_=class J_ extends A{constructor(){super(...arguments);this.validate=this.implement}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.function)return D($,{code:G.invalid_type,expected:B.function,received:$.parsedType}),z;function q(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_arguments,argumentsError:Y}})}function J(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_return_type,returnTypeError:Y}})}let W={errorMap:$.common.contextualErrorMap},X=$.data;if(this._def.returns instanceof e){let H=this;return K(async function(...Y){let Q=new f([]),v=await H._def.args.parseAsync(Y,W).catch((h_)=>{throw Q.addIssue(q(Y,h_)),Q}),R=await Reflect.apply(X,this,v);return await H._def.returns._def.type.parseAsync(R,W).catch((h_)=>{throw Q.addIssue(J(R,h_)),Q})})}else{let H=this;return K(function(...Y){let Q=H._def.args.safeParse(Y,W);if(!Q.success)throw new f([q(Y,Q.error)]);let v=Reflect.apply(X,this,Q.data),R=H._def.returns.safeParse(v,W);if(!R.success)throw new f([J(v,R.error)]);return R.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(..._){return new J_({...this._def,args:n.create(_).rest(r.create())})}returns(_){return new J_({...this._def,returns:_})}implement(_){return this.parse(_)}strictImplement(_){return this.parse(_)}static create(_,$,q){return new J_({args:_?_:n.create([]).rest(r.create()),returns:$||r.create(),typeName:M.ZodFunction,...j(q)})}};G_=class G_ extends A{get schema(){return this._def.getter()}_parse(_){let{ctx:$}=this._processInputParams(_);return this._def.getter()._parse({data:$.data,path:$.path,parent:$})}};G_.create=(_,$)=>{return new G_({getter:_,typeName:M.ZodLazy,...j($)})};M_=class M_ extends A{_parse(_){if(_.data!==this._def.value){let $=this._getOrReturnCtx(_);return D($,{received:$.data,code:G.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:_.data}}get value(){return this._def.value}};M_.create=(_,$)=>{return new M_({value:_,typeName:M.ZodLiteral,...j($)})};o=class o extends A{_parse(_){if(typeof _.data!=="string"){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{expected:O.joinValues(q),received:$.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(_.data)){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{received:$.data,code:G.invalid_enum_value,options:q}),z}return K(_.data)}get options(){return this._def.values}get enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Values(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}extract(_,$=this._def){return o.create(_,{...this._def,...$})}exclude(_,$=this._def){return o.create(this.options.filter((q)=>!_.includes(q)),{...this._def,...$})}};o.create=m$;B_=class B_ extends A{_parse(_){let $=O.getValidEnumValues(this._def.values),q=this._getOrReturnCtx(_);if(q.parsedType!==B.string&&q.parsedType!==B.number){let J=O.objectValues($);return D(q,{expected:O.joinValues(J),received:q.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(O.getValidEnumValues(this._def.values));if(!this._cache.has(_.data)){let J=O.objectValues($);return D(q,{received:q.data,code:G.invalid_enum_value,options:J}),z}return K(_.data)}get enum(){return this._def.values}};B_.create=(_,$)=>{return new B_({values:_,typeName:M.ZodNativeEnum,...j($)})};e=class e extends A{unwrap(){return this._def.type}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.promise&&$.common.async===!1)return D($,{code:G.invalid_type,expected:B.promise,received:$.parsedType}),z;let q=$.parsedType===B.promise?$.data:Promise.resolve($.data);return K(q.then((J)=>{return this._def.type.parseAsync(J,{path:$.path,errorMap:$.common.contextualErrorMap})}))}};e.create=(_,$)=>{return new e({type:_,typeName:M.ZodPromise,...j($)})};l=class l extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=this._def.effect||null,W={addIssue:(X)=>{if(D(q,X),X.fatal)$.abort();else $.dirty()},get path(){return q.path}};if(W.addIssue=W.addIssue.bind(W),J.type==="preprocess"){let X=J.transform(q.data,W);if(q.common.async)return Promise.resolve(X).then(async(H)=>{if($.value==="aborted")return z;let Y=await this._def.schema._parseAsync({data:H,path:q.path,parent:q});if(Y.status==="aborted")return z;if(Y.status==="dirty")return c(Y.value);if($.value==="dirty")return c(Y.value);return Y});else{if($.value==="aborted")return z;let H=this._def.schema._parseSync({data:X,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")return c(H.value);if($.value==="dirty")return c(H.value);return H}}if(J.type==="refinement"){let X=(H)=>{let Y=J.refinement(H,W);if(q.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(q.common.async===!1){let H=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value),{status:$.value,value:H.value}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((H)=>{if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value).then(()=>{return{status:$.value,value:H.value}})})}if(J.type==="transform")if(q.common.async===!1){let X=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(!i(X))return z;let H=J.transform(X.value,W);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:$.value,value:H}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((X)=>{if(!i(X))return z;return Promise.resolve(J.transform(X.value,W)).then((H)=>({status:$.value,value:H}))});O.assertNever(J)}};l.create=(_,$,q)=>{return new l({schema:_,typeName:M.ZodEffects,effect:$,...j(q)})};l.createWithPreprocess=(_,$,q)=>{return new l({schema:$,effect:{type:"preprocess",transform:_},typeName:M.ZodEffects,...j(q)})};m=class m extends A{_parse(_){if(this._getType(_)===B.undefined)return K(void 0);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};m.create=(_,$)=>{return new m({innerType:_,typeName:M.ZodOptional,...j($)})};u=class u extends A{_parse(_){if(this._getType(_)===B.null)return K(null);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};u.create=(_,$)=>{return new u({innerType:_,typeName:M.ZodNullable,...j($)})};D_=class D_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;if($.parsedType===B.undefined)q=this._def.defaultValue();return this._def.innerType._parse({data:q,path:$.path,parent:$})}removeDefault(){return this._def.innerType}};D_.create=(_,$)=>{return new D_({innerType:_,typeName:M.ZodDefault,defaultValue:typeof $.default==="function"?$.default:()=>$.default,...j($)})};w_=class w_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q={...$,common:{...$.common,issues:[]}},J=this._def.innerType._parse({data:q.data,path:q.path,parent:{...q}});if(q_(J))return J.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}}removeCatch(){return this._def.innerType}};w_.create=(_,$)=>{return new w_({innerType:_,typeName:M.ZodCatch,catchValue:typeof $.catch==="function"?$.catch:()=>$.catch,...j($)})};L_=class L_ extends A{_parse(_){if(this._getType(_)!==B.nan){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.nan,received:q.parsedType}),z}return{status:"valid",value:_.data}}};L_.create=(_)=>{return new L_({typeName:M.ZodNaN,...j(_)})};D3=Symbol("zod_brand");r_=class r_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;return this._def.type._parse({data:q,path:$.path,parent:$})}unwrap(){return this._def.type}};K_=class K_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:q.data,path:q.path,parent:q});if(W.status==="aborted")return z;if(W.status==="dirty")return $.dirty(),c(W.value);else return this._def.out._parseAsync({data:W.value,path:q.path,parent:q})})();else{let J=this._def.in._parseSync({data:q.data,path:q.path,parent:q});if(J.status==="aborted")return z;if(J.status==="dirty")return $.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:q.path,parent:q})}}static create(_,$){return new K_({in:_,out:$,typeName:M.ZodPipeline})}};b_=class b_ extends A{_parse(_){let $=this._def.innerType._parse(_),q=(J)=>{if(i(J))J.value=Object.freeze(J.value);return J};return q_($)?$.then((J)=>q(J)):q($)}unwrap(){return this._def.innerType}};b_.create=(_,$)=>{return new b_({innerType:_,typeName:M.ZodReadonly,...j($)})};w3={object:U.lazycreate};(function(_){_.ZodString="ZodString",_.ZodNumber="ZodNumber",_.ZodNaN="ZodNaN",_.ZodBigInt="ZodBigInt",_.ZodBoolean="ZodBoolean",_.ZodDate="ZodDate",_.ZodSymbol="ZodSymbol",_.ZodUndefined="ZodUndefined",_.ZodNull="ZodNull",_.ZodAny="ZodAny",_.ZodUnknown="ZodUnknown",_.ZodNever="ZodNever",_.ZodVoid="ZodVoid",_.ZodArray="ZodArray",_.ZodObject="ZodObject",_.ZodUnion="ZodUnion",_.ZodDiscriminatedUnion="ZodDiscriminatedUnion",_.ZodIntersection="ZodIntersection",_.ZodTuple="ZodTuple",_.ZodRecord="ZodRecord",_.ZodMap="ZodMap",_.ZodSet="ZodSet",_.ZodFunction="ZodFunction",_.ZodLazy="ZodLazy",_.ZodLiteral="ZodLiteral",_.ZodEnum="ZodEnum",_.ZodEffects="ZodEffects",_.ZodNativeEnum="ZodNativeEnum",_.ZodOptional="ZodOptional",_.ZodNullable="ZodNullable",_.ZodDefault="ZodDefault",_.ZodCatch="ZodCatch",_.ZodPromise="ZodPromise",_.ZodBranded="ZodBranded",_.ZodPipeline="ZodPipeline",_.ZodReadonly="ZodReadonly"})(M||(M={}));b3=y.create,z3=t.create,S3=L_.create,v3=a.create,j3=O_.create,A3=W_.create,O3=N_.create,N3=X_.create,E3=H_.create,U3=E_.create,V3=r.create,R3=x.create,L3=U_.create,K3=P.create,F3=U.create,f3=U.strictCreate,g3=Q_.create,C3=i_.create,k3=Y_.create,I3=n.create,P3=V_.create,m3=R_.create,l3=s.create,T3=J_.create,h3=G_.create,y3=M_.create,x3=o.create,n3=B_.create,Z3=e.create,u3=l.create,p3=m.create,i3=u.create,r3=l.createWithPreprocess,o3=K_.create});var T$=b(()=>{j_();Z_();g$();__();l$();v_()});var F_=b(()=>{T$()});var f_=(_,$)=>{let q=0;for(;q<_.length&&q<$.length;q++)if(_[q]!==$[q])break;return[(_.length-q).toString(),...$.slice(q)].join("/")};var g_=()=>{};function E(_){if(_.target!=="openAi")return{};let $=[..._.basePath,_.definitionPath,_.openAiAnyTypeName];return _.flags.hasReferencedOpenAiAnyType=!0,{$ref:_.$refStrategy==="relative"?f_($,_.currentPath):$.join("/")}}var g=b(()=>{g_()});function o_(_,$,q,J){if(!J?.errorMessages)return;if(q)_.errorMessage={..._.errorMessage,[$]:q}}function N(_,$,q,J,W){_[$]=q,o_(_,$,J,W)}var p=()=>{};function h$(_,$){let q={type:"array"};if(_.type?._def&&_.type?._def?.typeName!==M.ZodAny)q.items=S(_.type._def,{...$,currentPath:[...$.currentPath,"items"]});if(_.minLength)N(q,"minItems",_.minLength.value,_.minLength.message,$);if(_.maxLength)N(q,"maxItems",_.maxLength.value,_.maxLength.message,$);if(_.exactLength)N(q,"minItems",_.exactLength.value,_.exactLength.message,$),N(q,"maxItems",_.exactLength.value,_.exactLength.message,$);return q}var c_=b(()=>{F_();p();V()});function y$(_,$){let q={type:"integer",format:"int64"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var d_=b(()=>{p()});function x$(){return{type:"boolean"}}var t_=()=>{};function C_(_,$){return S(_.type._def,$)}var k_=b(()=>{V()});var n$=(_,$)=>{return S(_.innerType._def,$)};var a_=b(()=>{V()});function s_(_,$,q){let J=q??$.dateStrategy;if(Array.isArray(J))return{anyOf:J.map((W,X)=>s_(_,$,W))};switch(J){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return hq(_,$)}}var hq=(_,$)=>{let q={type:"integer",format:"unix-time"};if($.target==="openApi3")return q;for(let J of _.checks)switch(J.kind){case"min":N(q,"minimum",J.value,J.message,$);break;case"max":N(q,"maximum",J.value,J.message,$);break}return q};var e_=b(()=>{p()});function Z$(_,$){return{...S(_.innerType._def,$),default:_.defaultValue()}}var _$=b(()=>{V()});function u$(_,$){return $.effectStrategy==="input"?S(_.schema._def,$):E($)}var $$=b(()=>{V();g()});function p$(_){return{type:"string",enum:Array.from(_.values)}}var q$=()=>{};function i$(_,$){let q=[S(_.left._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),S(_.right._def,{...$,currentPath:[...$.currentPath,"allOf","1"]})].filter((X)=>!!X),J=$.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,W=[];return q.forEach((X)=>{if(yq(X)){if(W.push(...X.allOf),X.unevaluatedProperties===void 0)J=void 0}else{let H=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Y,...Q}=X;H=Q}else J=void 0;W.push(H)}}),W.length?{allOf:W,...J}:void 0}var yq=(_)=>{if("type"in _&&_.type==="string")return!1;return"allOf"in _};var J$=b(()=>{V()});function r$(_,$){let q=typeof _.value;if(q!=="bigint"&&q!=="number"&&q!=="boolean"&&q!=="string")return{type:Array.isArray(_.value)?"array":"object"};if($.target==="openApi3")return{type:q==="bigint"?"integer":q,enum:[_.value]};return{type:q==="bigint"?"integer":q,const:_.value}}var W$=()=>{};function I_(_,$){let q={type:"string"};if(_.checks)for(let J of _.checks)switch(J.kind){case"min":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$);break;case"max":N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"email":switch($.emailStrategy){case"format:email":I(q,"email",J.message,$);break;case"format:idn-email":I(q,"idn-email",J.message,$);break;case"pattern:zod":F(q,k.email,J.message,$);break}break;case"url":I(q,"uri",J.message,$);break;case"uuid":I(q,"uuid",J.message,$);break;case"regex":F(q,J.regex,J.message,$);break;case"cuid":F(q,k.cuid,J.message,$);break;case"cuid2":F(q,k.cuid2,J.message,$);break;case"startsWith":F(q,RegExp(`^${H$(J.value,$)}`),J.message,$);break;case"endsWith":F(q,RegExp(`${H$(J.value,$)}$`),J.message,$);break;case"datetime":I(q,"date-time",J.message,$);break;case"date":I(q,"date",J.message,$);break;case"time":I(q,"time",J.message,$);break;case"duration":I(q,"duration",J.message,$);break;case"length":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$),N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"includes":{F(q,RegExp(H$(J.value,$)),J.message,$);break}case"ip":{if(J.version!=="v6")I(q,"ipv4",J.message,$);if(J.version!=="v4")I(q,"ipv6",J.message,$);break}case"base64url":F(q,k.base64url,J.message,$);break;case"jwt":F(q,k.jwt,J.message,$);break;case"cidr":{if(J.version!=="v6")F(q,k.ipv4Cidr,J.message,$);if(J.version!=="v4")F(q,k.ipv6Cidr,J.message,$);break}case"emoji":F(q,k.emoji(),J.message,$);break;case"ulid":{F(q,k.ulid,J.message,$);break}case"base64":{switch($.base64Strategy){case"format:binary":{I(q,"binary",J.message,$);break}case"contentEncoding:base64":{N(q,"contentEncoding","base64",J.message,$);break}case"pattern:zod":{F(q,k.base64,J.message,$);break}}break}case"nanoid":F(q,k.nanoid,J.message,$);case"toLowerCase":case"toUpperCase":case"trim":break;default:((W)=>{})(J)}return q}function H$(_,$){return $.patternStrategy==="escape"?nq(_):_}function nq(_){let $="";for(let q=0;q<_.length;q++){if(!xq.has(_[q]))$+="\\";$+=_[q]}return $}function I(_,$,q,J){if(_.format||_.anyOf?.some((W)=>W.format)){if(!_.anyOf)_.anyOf=[];if(_.format){if(_.anyOf.push({format:_.format,..._.errorMessage&&J.errorMessages&&{errorMessage:{format:_.errorMessage.format}}}),delete _.format,_.errorMessage){if(delete _.errorMessage.format,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.anyOf.push({format:$,...q&&J.errorMessages&&{errorMessage:{format:q}}})}else N(_,"format",$,q,J)}function F(_,$,q,J){if(_.pattern||_.allOf?.some((W)=>W.pattern)){if(!_.allOf)_.allOf=[];if(_.pattern){if(_.allOf.push({pattern:_.pattern,..._.errorMessage&&J.errorMessages&&{errorMessage:{pattern:_.errorMessage.pattern}}}),delete _.pattern,_.errorMessage){if(delete _.errorMessage.pattern,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.allOf.push({pattern:o$($,J),...q&&J.errorMessages&&{errorMessage:{pattern:q}}})}else N(_,"pattern",o$($,J),q,J)}function o$(_,$){if(!$.applyRegexFlags||!_.flags)return _.source;let q={i:_.flags.includes("i"),m:_.flags.includes("m"),s:_.flags.includes("s")},J=q.i?_.source.toLowerCase():_.source,W="",X=!1,H=!1,Y=!1;for(let Q=0;Q<J.length;Q++){if(X){W+=J[Q],X=!1;continue}if(q.i){if(H){if(J[Q].match(/[a-z]/)){if(Y)W+=J[Q],W+=`${J[Q-2]}-${J[Q]}`.toUpperCase(),Y=!1;else if(J[Q+1]==="-"&&J[Q+2]?.match(/[a-z]/))W+=J[Q],Y=!0;else W+=`${J[Q]}${J[Q].toUpperCase()}`;continue}}else if(J[Q].match(/[a-z]/)){W+=`[${J[Q]}${J[Q].toUpperCase()}]`;continue}}if(q.m){if(J[Q]==="^"){W+=`(^|(?<=[\r
2
- ]))`;continue}else if(J[Q]==="$"){W+=`($|(?=[\r
3
- ]))`;continue}}if(q.s&&J[Q]==="."){W+=H?`${J[Q]}\r
4
- `:`[${J[Q]}\r
5
- ]`;continue}if(W+=J[Q],J[Q]==="\\")X=!0;else if(H&&J[Q]==="]")H=!1;else if(!H&&J[Q]==="[")H=!0}try{new RegExp(W)}catch{return console.warn(`Could not convert regex pattern at ${$.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),_.source}return W}var X$=void 0,k,xq;var P_=b(()=>{p();k={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(X$===void 0)X$=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return X$},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};xq=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function m_(_,$){if($.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if($.target==="openApi3"&&_.keyType?._def.typeName===M.ZodEnum)return{type:"object",required:_.keyType._def.values,properties:_.keyType._def.values.reduce((J,W)=>({...J,[W]:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"properties",W]})??E($)}),{}),additionalProperties:$.rejectedAdditionalProperties};let q={type:"object",additionalProperties:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]})??$.allowedAdditionalProperties};if($.target==="openApi3")return q;if(_.keyType?._def.typeName===M.ZodString&&_.keyType._def.checks?.length){let{type:J,...W}=I_(_.keyType._def,$);return{...q,propertyNames:W}}else if(_.keyType?._def.typeName===M.ZodEnum)return{...q,propertyNames:{enum:_.keyType._def.values}};else if(_.keyType?._def.typeName===M.ZodBranded&&_.keyType._def.type._def.typeName===M.ZodString&&_.keyType._def.type._def.checks?.length){let{type:J,...W}=C_(_.keyType._def,$);return{...q,propertyNames:W}}return q}var l_=b(()=>{F_();V();P_();k_();g()});function c$(_,$){if($.mapStrategy==="record")return m_(_,$);let q=S(_.keyType._def,{...$,currentPath:[...$.currentPath,"items","items","0"]})||E($),J=S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items","items","1"]})||E($);return{type:"array",maxItems:125,items:{type:"array",items:[q,J],minItems:2,maxItems:2}}}var Q$=b(()=>{V();l_();g()});function d$(_){let $=_.values,J=Object.keys(_.values).filter((X)=>{return typeof $[$[X]]!=="number"}).map((X)=>$[X]),W=Array.from(new Set(J.map((X)=>typeof X)));return{type:W.length===1?W[0]==="string"?"string":"number":["string","number"],enum:J}}var Y$=()=>{};function t$(_){return _.target==="openAi"?void 0:{not:E({..._,currentPath:[..._.currentPath,"not"]})}}var G$=b(()=>{g()});function a$(_){return _.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var M$=()=>{};function e$(_,$){if($.target==="openApi3")return s$(_,$);let q=_.options instanceof Map?Array.from(_.options.values()):_.options;if(q.every((J)=>(J._def.typeName in z_)&&(!J._def.checks||!J._def.checks.length))){let J=q.reduce((W,X)=>{let H=z_[X._def.typeName];return H&&!W.includes(H)?[...W,H]:W},[]);return{type:J.length>1?J:J[0]}}else if(q.every((J)=>J._def.typeName==="ZodLiteral"&&!J.description)){let J=q.reduce((W,X)=>{let H=typeof X._def.value;switch(H){case"string":case"number":case"boolean":return[...W,H];case"bigint":return[...W,"integer"];case"object":if(X._def.value===null)return[...W,"null"];case"symbol":case"undefined":case"function":default:return W}},[]);if(J.length===q.length){let W=J.filter((X,H,Y)=>Y.indexOf(X)===H);return{type:W.length>1?W:W[0],enum:q.reduce((X,H)=>{return X.includes(H._def.value)?X:[...X,H._def.value]},[])}}}else if(q.every((J)=>J._def.typeName==="ZodEnum"))return{type:"string",enum:q.reduce((J,W)=>[...J,...W._def.values.filter((X)=>!J.includes(X))],[])};return s$(_,$)}var z_,s$=(_,$)=>{let q=(_.options instanceof Map?Array.from(_.options.values()):_.options).map((J,W)=>S(J._def,{...$,currentPath:[...$.currentPath,"anyOf",`${W}`]})).filter((J)=>!!J&&(!$.strictUnions||typeof J==="object"&&Object.keys(J).length>0));return q.length?{anyOf:q}:void 0};var T_=b(()=>{V();z_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function _q(_,$){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(_.innerType._def.typeName)&&(!_.innerType._def.checks||!_.innerType._def.checks.length)){if($.target==="openApi3")return{type:z_[_.innerType._def.typeName],nullable:!0};return{type:[z_[_.innerType._def.typeName],"null"]}}if($.target==="openApi3"){let J=S(_.innerType._def,{...$,currentPath:[...$.currentPath]});if(J&&"$ref"in J)return{allOf:[J],nullable:!0};return J&&{...J,nullable:!0}}let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","0"]});return q&&{anyOf:[q,{type:"null"}]}}var B$=b(()=>{V();T_()});function $q(_,$){let q={type:"number"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"int":q.type="integer",o_(q,"type",J.message,$);break;case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var D$=b(()=>{p()});function qq(_,$){let q=$.target==="openAi",J={type:"object",properties:{}},W=[],X=_.shape();for(let Y in X){let Q=X[Y];if(Q===void 0||Q._def===void 0)continue;let v=uq(Q);if(v&&q){if(Q._def.typeName==="ZodOptional")Q=Q._def.innerType;if(!Q.isNullable())Q=Q.nullable();v=!1}let R=S(Q._def,{...$,currentPath:[...$.currentPath,"properties",Y],propertyPath:[...$.currentPath,"properties",Y]});if(R===void 0)continue;if(J.properties[Y]=R,!v)W.push(Y)}if(W.length)J.required=W;let H=Zq(_,$);if(H!==void 0)J.additionalProperties=H;return J}function Zq(_,$){if(_.catchall._def.typeName!=="ZodNever")return S(_.catchall._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]});switch(_.unknownKeys){case"passthrough":return $.allowedAdditionalProperties;case"strict":return $.rejectedAdditionalProperties;case"strip":return $.removeAdditionalStrategy==="strict"?$.allowedAdditionalProperties:$.rejectedAdditionalProperties}}function uq(_){try{return _.isOptional()}catch{return!0}}var w$=b(()=>{V()});var Jq=(_,$)=>{if($.currentPath.toString()===$.propertyPath?.toString())return S(_.innerType._def,$);let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","1"]});return q?{anyOf:[{not:E($)},q]}:E($)};var b$=b(()=>{V();g()});var Wq=(_,$)=>{if($.pipeStrategy==="input")return S(_.in._def,$);else if($.pipeStrategy==="output")return S(_.out._def,$);let q=S(_.in._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),J=S(_.out._def,{...$,currentPath:[...$.currentPath,"allOf",q?"1":"0"]});return{allOf:[q,J].filter((W)=>W!==void 0)}};var z$=b(()=>{V()});function Xq(_,$){return S(_.type._def,$)}var S$=b(()=>{V()});function Hq(_,$){let J={type:"array",uniqueItems:!0,items:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items"]})};if(_.minSize)N(J,"minItems",_.minSize.value,_.minSize.message,$);if(_.maxSize)N(J,"maxItems",_.maxSize.value,_.maxSize.message,$);return J}var v$=b(()=>{p();V()});function Qq(_,$){if(_.rest)return{type:"array",minItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[]),additionalItems:S(_.rest._def,{...$,currentPath:[...$.currentPath,"additionalItems"]})};else return{type:"array",minItems:_.items.length,maxItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[])}}var j$=b(()=>{V()});function Yq(_){return{not:E(_)}}var A$=b(()=>{g()});function Gq(_){return E(_)}var O$=b(()=>{g()});var Mq=(_,$)=>{return S(_.innerType._def,$)};var N$=b(()=>{V()});var Bq=(_,$,q)=>{switch($){case M.ZodString:return I_(_,q);case M.ZodNumber:return $q(_,q);case M.ZodObject:return qq(_,q);case M.ZodBigInt:return y$(_,q);case M.ZodBoolean:return x$();case M.ZodDate:return s_(_,q);case M.ZodUndefined:return Yq(q);case M.ZodNull:return a$(q);case M.ZodArray:return h$(_,q);case M.ZodUnion:case M.ZodDiscriminatedUnion:return e$(_,q);case M.ZodIntersection:return i$(_,q);case M.ZodTuple:return Qq(_,q);case M.ZodRecord:return m_(_,q);case M.ZodLiteral:return r$(_,q);case M.ZodEnum:return p$(_);case M.ZodNativeEnum:return d$(_);case M.ZodNullable:return _q(_,q);case M.ZodOptional:return Jq(_,q);case M.ZodMap:return c$(_,q);case M.ZodSet:return Hq(_,q);case M.ZodLazy:return()=>_.getter()._def;case M.ZodPromise:return Xq(_,q);case M.ZodNaN:case M.ZodNever:return t$(q);case M.ZodEffects:return u$(_,q);case M.ZodAny:return E(q);case M.ZodUnknown:return Gq(q);case M.ZodDefault:return Z$(_,q);case M.ZodBranded:return C_(_,q);case M.ZodReadonly:return Mq(_,q);case M.ZodCatch:return n$(_,q);case M.ZodPipeline:return Wq(_,q);case M.ZodFunction:case M.ZodVoid:case M.ZodSymbol:return;default:return((J)=>{return})($)}};var E$=b(()=>{F_();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();l_();v$();P_();j$();A$();T_();O$();N$()});function S(_,$,q=!1){let J=$.seen.get(_);if($.override){let Y=$.override?.(_,$,J,q);if(Y!==K$)return Y}if(J&&!q){let Y=pq(J,$);if(Y!==void 0)return Y}let W={def:_,path:$.currentPath,jsonSchema:void 0};$.seen.set(_,W);let X=Bq(_,_.typeName,$),H=typeof X==="function"?S(X(),$):X;if(H)iq(_,$,H);if($.postProcess){let Y=$.postProcess(H,_,$);return W.jsonSchema=H,Y}return W.jsonSchema=H,H}var pq=(_,$)=>{switch($.$refStrategy){case"root":return{$ref:_.path.join("/")};case"relative":return{$ref:f_($.currentPath,_.path)};case"none":case"seen":{if(_.path.length<$.currentPath.length&&_.path.every((q,J)=>$.currentPath[J]===q))return console.warn(`Recursive reference detected at ${$.currentPath.join("/")}! Defaulting to any`),E($);return $.$refStrategy==="seen"?E($):void 0}}},iq=(_,$,q)=>{if(_.description){if(q.description=_.description,$.markdownDescription)q.markdownDescription=_.description}return q};var V=b(()=>{S_();E$();g_();g()});var Dq=(_)=>{let $=F$(_),q=$.name!==void 0?[...$.basePath,$.definitionPath,$.name]:$.basePath;return{...$,flags:{hasReferencedOpenAiAnyType:!1},currentPath:q,propertyPath:void 0,seen:new Map(Object.entries($.definitions).map(([J,W])=>[W._def,{def:W._def,path:[...$.basePath,$.definitionPath,J],jsonSchema:void 0}]))}};var U$=b(()=>{S_()});var rq=(_,$)=>{let q=Dq($),J=typeof $==="object"&&$.definitions?Object.entries($.definitions).reduce((Q,[v,R])=>({...Q,[v]:S(R._def,{...q,currentPath:[...q.basePath,q.definitionPath,v]},!0)??E(q)}),{}):void 0,W=typeof $==="string"?$:$?.nameStrategy==="title"?void 0:$?.name,X=S(_._def,W===void 0?q:{...q,currentPath:[...q.basePath,q.definitionPath,W]},!1)??E(q),H=typeof $==="object"&&$.name!==void 0&&$.nameStrategy==="title"?$.name:void 0;if(H!==void 0)X.title=H;if(q.flags.hasReferencedOpenAiAnyType){if(!J)J={};if(!J[q.openAiAnyTypeName])J[q.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:q.$refStrategy==="relative"?"1":[...q.basePath,q.definitionPath,q.openAiAnyTypeName].join("/")}}}let Y=W===void 0?J?{...X,[q.definitionPath]:J}:X:{$ref:[...q.$refStrategy==="relative"?[]:q.basePath,q.definitionPath,W].join("/"),[q.definitionPath]:{...J,[W]:X}};if(q.target==="jsonSchema7")Y.$schema="http://json-schema.org/draft-07/schema#";else if(q.target==="jsonSchema2019-09"||q.target==="openAi")Y.$schema="https://json-schema.org/draft/2019-09/schema#";if(q.target==="openAi"&&(("anyOf"in Y)||("oneOf"in Y)||("allOf"in Y)||("type"in Y)&&Array.isArray(Y.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return Y};var V$=b(()=>{V();U$();g()});var wq=()=>{};var oq=b(()=>{V$();S_();U$();p();g_();V();wq();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();N$();l_();v$();P_();j$();A$();T_();O$();E$();V$()});
6
- export{rq as hZ,oq as iZ};
@@ -1,2 +0,0 @@
1
- import{$W as v,LW as T,MW as X,NW as I,PW as Y,QW as p,aX as Z,bX as D}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as P,DZ as V}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as H}from"./cli-0.5.11-9gbtz4tf.mjs";import{Gja as W,rma as F}from"./cli-0.5.11-tyzwy8ba.mjs";import{Yna as A,aoa as C}from"./cli-0.5.11-hph6a44c.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as eh,M as fh};
@@ -1,2 +0,0 @@
1
- import{LZ as N,MZ as V,NZ as D}from"./cli-0.5.11-wafsp0ws.mjs";import{F3 as J,H3 as $,K3 as B,d4 as x,e3 as Z,n0 as Y,s0 as _}from"./cli-0.5.11-fydbgnx6.mjs";import{Yea as Q,cfa as P}from"./cli-0.5.11-0k52dqga.mjs";import{Dna as R,lna as X}from"./cli-0.5.11-dz7nvwja.mjs";import{aoa as W}from"./cli-0.5.11-hph6a44c.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 FZ,I as GZ,w as HZ,C as IZ,O as JZ,H as KZ};
@@ -1,2 +0,0 @@
1
- import{Gia as z,Kia as B,rma as H}from"./cli-0.5.11-tyzwy8ba.mjs";import{aoa as x}from"./cli-0.5.11-hph6a44c.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{Q as nea,J as oea,R as pea,K as qea,U as rea,V as sea,W as tea,X as uea,Y as vea,Z as wea,$ as xea,j as yea,q as zea,A as Aea,G as Bea,L as Cea,_ as Dea,b as Eea,k as Fea,p as Gea,v as Hea,C as Iea,O as Jea,y as Kea,S as Lea,f as Mea,m as Nea,u as Oea,h as Pea,l as Qea,w as Rea,g as Sea,d as Tea,M as Uea};
@@ -1,2 +0,0 @@
1
- import{Gh as M,Hh as W,WK as O,XK as P,YK as Q,ZK as U,aL as X}from"./cli-0.5.11-6vqz68v0.mjs";import{aoa as V}from"./cli-0.5.11-hph6a44c.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as tg,$ as ug};
@@ -1,2 +0,0 @@
1
- import{_V as f}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as p,DZ as c}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as M}from"./cli-0.5.11-9gbtz4tf.mjs";import{Yna as o}from"./cli-0.5.11-hph6a44c.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
- export{a as pb,l as qb};
@@ -1,2 +0,0 @@
1
- import{ih as a,jh as l}from"./cli-0.5.11-7dqqz76t.mjs";import{kh as m,lh as c}from"./cli-0.5.11-jpwjtezc.mjs";import{BZ as e,DZ as n}from"./cli-0.5.11-ffsf3kp2.mjs";import{aoa as s}from"./cli-0.5.11-hph6a44c.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
2
- export{f as gh,g as hh};
@@ -1,2 +0,0 @@
1
- import{UZ as N,ZZ as $}from"./cli-0.5.11-xqjh3bpr.mjs";import{F3 as M,O0 as L,R0 as Y,d4 as Z}from"./cli-0.5.11-fydbgnx6.mjs";import{Bca as Q,Jca as X}from"./cli-0.5.11-73qsyep8.mjs";import{bfa as J,cfa as V}from"./cli-0.5.11-0k52dqga.mjs";import{Gga as S,yga as P}from"./cli-0.5.11-t8q2hmsy.mjs";import{Dna as W,lna as K}from"./cli-0.5.11-dz7nvwja.mjs";import{aoa as R}from"./cli-0.5.11-hph6a44c.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{C as eT,j as fT,b as gT};
@@ -1,2 +0,0 @@
1
- import{Cq as X,zq as I}from"./cli-0.5.11-6vqz68v0.mjs";import{Mga as H,Wga as W}from"./cli-0.5.11-f524x1te.mjs";import{aoa as V}from"./cli-0.5.11-hph6a44c.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as jd,F as kd,K as ld,Q as md,R as nd,_ as od,j as pd,Y as qd};
@@ -1,2 +0,0 @@
1
- import{$e as VP,Ye as N0,Ze as U0}from"./cli-0.5.11-7dcw6f28.mjs";import{AD as mP,DK as pP,FJ as u0,JD as L0,LD as i0,Qt as J0,Rt as QP,Tt as j0,aK as ZP,bK as m0,cm as h,dK as qP,dm as c0,em as p,fm as w0,gJ as WP,gm as r,hm as W0,iK as CP,km as O0,lm as EP,pJ as cP,qJ as fP,sJ as M0,tJ as h0,uF as G0,uJ as T0,vF as YP,vJ as d0,yJ as R0,zD as XP,zK as C0}from"./cli-0.5.11-6vqz68v0.mjs";import{uU as D0,vU as LP}from"./cli-0.5.11-h34yntmn.mjs";import{gV as JP,hV as hP,uV as z0,wV as TP}from"./cli-0.5.11-nkfafdwt.mjs";import{NX as GP,UV as PP,YX as q0,ZV as AP,_V as I0,hW as k0,pX as C,rX as X,tX as L,xX as F0}from"./cli-0.5.11-dpbhsnm8.mjs";import{AZ as n,BZ as J,CZ as Q,DZ as a}from"./cli-0.5.11-ffsf3kp2.mjs";import{EZ as $0}from"./cli-0.5.11-9gbtz4tf.mjs";import{N3 as e0,d4 as gP}from"./cli-0.5.11-fydbgnx6.mjs";import{C4 as A0,D4 as dP}from"./cli-0.5.11-mrpnwxc8.mjs";import{A6 as r0,Gca as s0,Jca as SP,L_ as y0,M_ as B0,N_ as KP,b$ as H0,c$ as zP,k$ as p0,z6 as _}from"./cli-0.5.11-73qsyep8.mjs";import{bfa as g0,cfa as _P}from"./cli-0.5.11-0k52dqga.mjs";import{dfa as m,ffa as IP}from"./cli-0.5.11-aa4nqg2h.mjs";import{Gga as t0,zga as f0}from"./cli-0.5.11-t8q2hmsy.mjs";import{Yna as e,aoa as P0}from"./cli-0.5.11-hph6a44c.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
- export{bG as Pe,$P as Qe,uG as Re,jP as Se,tG as Te,uP as Ue,VJ as Ve,aP as We};
@@ -1,2 +0,0 @@
1
- import{uF as U,vF as w}from"./cli-0.5.11-6vqz68v0.mjs";import{YX as k,_V as f,rX as N,tX as O}from"./cli-0.5.11-dpbhsnm8.mjs";import{BZ as M,CZ as H,DZ as R}from"./cli-0.5.11-ffsf3kp2.mjs";import{Yna as Y,aoa as Z}from"./cli-0.5.11-hph6a44c.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 Qg,A as Rg};
@@ -1,2 +0,0 @@
1
- import{xe as V,ze as B}from"./cli-0.5.11-nmhfw726.mjs";import{Ci as L,NK as U,PK as w,Pw as Q,Qw as q,SN as F}from"./cli-0.5.11-6vqz68v0.mjs";import{U8 as K,Z8 as k}from"./cli-0.5.11-73qsyep8.mjs";import{fga as I,iga as $}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gga as _,zga as G}from"./cli-0.5.11-t8q2hmsy.mjs";import{aoa as Z}from"./cli-0.5.11-hph6a44c.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
- export{h as ve,D as we};
@@ -1,3 +0,0 @@
1
- import{q as j,r as v}from"./cli-0.5.11-wv71k7xf.mjs";import{Lf as C}from"./cli-0.5.11-pqq6g9cn.mjs";import{nR as S,oR as b}from"./cli-0.5.11-67nc1re2.mjs";import{SY as R,UY as E}from"./cli-0.5.11-548r9zkc.mjs";import{Oda as Z,Qda as U,Rda as w,Sda as z}from"./cli-0.5.11-m6mcarks.mjs";import{$da as L,mea as I}from"./cli-0.5.11-m3bm720s.mjs";import{Kfa as D,Lfa as T,Pfa as u,fga as M,iga as l}from"./cli-0.5.11-j4hdhvj9.mjs";import{Gga as p,zga as f}from"./cli-0.5.11-t8q2hmsy.mjs";import{Dna as h,lna as k}from"./cli-0.5.11-dz7nvwja.mjs";U();I();z();E();C();var F={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},m=w(()=>Z.object({init_retry_max_attempts:Z.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:Z.number().int().min(100).default(500),init_retry_jitter_fraction:Z.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:Z.number().int().min(500).default(4000),http_timeout_ms:Z.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:Z.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:Z.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:Z.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:Z.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:Z.number().int().min(500).max(2000).default(1500),connect_timeout_ms:Z.number().int().min(5000).max(60000).default(15000),min_version:Z.string().refine((J)=>{try{return R(J,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:Z.boolean().default(!1)}));async function y(){let J=await L("tengu_bridge_repl_v2_config",F),K=m().safeParse(J);return K.success?K.data:F}async function o(){let J=await y();if(J.min_version&&R("99.0.0",J.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${J.min_version} or higher is required. Run \`claudin update\` to update.`;return null}h();u();function JJ(J){let K=Buffer.from(J,"base64url").toString("utf-8"),X=T(K);if(!X||typeof X!=="object"||!("version"in X)||X.version!==1)throw Error(`Unsupported work secret version: ${X&&typeof X==="object"&&"version"in X?X.version:"unknown"}`);let Y=X;if(typeof Y.session_ingress_token!=="string"||Y.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Y.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return X}function KJ(J,K){let X=new URL(J).hostname,Y=X==="localhost"||X==="127.0.0.1",x=Y?"ws":"wss",H=Y?"v2":"v1",P=J.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${x}://${P}/${H}/session_ingress/ws/${K}`}function QJ(J,K){if(J===K)return!0;let X=J.slice(J.lastIndexOf("_")+1),Y=K.slice(K.lastIndexOf("_")+1);return X.length>=4&&X===Y}function XJ(J,K){return`${J.replace(/\/+$/,"")}/v1/code/sessions/${K}`}async function B(J,K){let X=await k.post(`${J}/worker/register`,{},{headers:{Authorization:`Bearer ${K}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Y=X.data?.worker_epoch,x=typeof Y==="string"?Number(Y):Y;if(typeof x!=="number"||!Number.isFinite(x)||!Number.isSafeInteger(x))throw Error(`registerWorker: invalid worker_epoch in response: ${D(X.data)}`);return x}l();p();b();function WJ(J){return{write:(K)=>J.write(K),writeBatch:(K)=>J.writeBatch(K),close:()=>J.close(),isConnectedStatus:()=>J.isConnectedStatus(),getStateLabel:()=>J.getStateLabel(),setOnData:(K)=>J.setOnData(K),setOnClose:(K)=>J.setOnClose(K),setOnConnect:(K)=>J.setOnConnect(K),connect:()=>void J.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return J.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function HJ(J){let{sessionUrl:K,ingressToken:X,sessionId:Y,initialSequenceNum:x,getAuthToken:H}=J,P;if(H)P=()=>{let Q=H();if(!Q)return{};return{Authorization:`Bearer ${Q}`}};else S(X);let O=J.epoch??await B(K,X);M(`[bridge:repl] CCR v2: worker sessionId=${Y} epoch=${O}${J.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(K);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let q=new v(V,{},Y,void 0,x,P),G,$=new j(q,new URL(K),{getAuthHeaders:P,heartbeatIntervalMs:J.heartbeatIntervalMs,heartbeatJitterFraction:J.heartbeatJitterFraction,onEpochMismatch:()=>{M("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{$.close(),q.close(),G?.(4090)}catch(Q){M(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${f(Q)}`,{level:"error"})}throw Error("epoch superseded")}});q.setOnEvent((Q)=>{$.reportDelivery(Q.event_id,"received"),$.reportDelivery(Q.event_id,"processed")});let _,N=!1,A=!1;return{write(Q){return $.writeEvent(Q)},async writeBatch(Q){for(let W of Q){if(A)break;await $.writeEvent(W)}},close(){A=!0,$.close(),q.close()},isConnectedStatus(){return N},getStateLabel(){if(q.isClosedStatus())return"closed";if(q.isConnectedStatus())return N?"connected":"init";return"connecting"},setOnData(Q){q.setOnData(Q)},setOnClose(Q){G=Q,q.setOnClose((W)=>{$.close(),Q(W??4092)})},setOnConnect(Q){_=Q},getLastSequenceNum(){return q.getLastSequenceNum()},droppedBatchCount:0,reportState(Q){$.reportState(Q)},reportMetadata(Q){$.reportMetadata(Q)},reportDelivery(Q,W){$.reportDelivery(Q,W)},flush(){return $.flush()},connect(){if(!J.outboundOnly)q.connect();$.initialize(O).then(()=>{N=!0,M(`[bridge:repl] v2 transport ready for writes (epoch=${O}, sse=${q.isConnectedStatus()?"open":"opening"})`),_?.()},(Q)=>{M(`[bridge:repl] CCR v2 initialize failed: ${f(Q)}`,{level:"error"}),$.close(),q.close(),G?.(4091)})}}}class g{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...J){if(!this._active)return!1;return this._pending.push(...J),!0}drop(){this._active=!1;let J=this._pending.length;return this._pending.length=0,J}deactivate(){this._active=!1}}
3
- export{y as e,o as f,JJ as g,KJ as h,QJ as i,XJ as j,WJ as k,HJ as l,g as m};