@claudiolabs/claudin 1.1.13 → 1.1.15

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 (902) hide show
  1. package/README.md +15 -0
  2. package/dist/chunks/AgentTool-1.1.15-gx8fc8ee.mjs +1 -0
  3. package/dist/chunks/App-1.1.15-qpr6dmbc.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.15-rtnhqcns.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.15-s7er4t5d.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.15-kr2k1h8a.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.15-hw9nhwyy.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.15-0x92en6s.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.15-d6xm1gwy.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.15-c7mf2z38.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.15-0epyn26c.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.15-ctfaxbr1.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.15-e0tff61r.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.15-yd169vrz.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.15-n45xnvpn.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.15-k01hesh9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.15-asr4k8v7.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.15-hrth7zcv.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.15-zbv78tw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.15-nx65m66j.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.15-ywaycst9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.15-etyznx6r.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.15-0fg2psza.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.15-rse3qrff.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.15-v5yc09rw.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.15-yf6w94dh.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.15-8wp0rdty.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.15-gsenj0tc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.15-gdh1b8nf.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.15-j0xgsz6j.mjs +1 -0
  31. package/dist/chunks/agents-1.1.15-5492tnsb.mjs +3 -0
  32. package/dist/chunks/agents-1.1.15-7hc1h2ch.mjs +110 -0
  33. package/dist/chunks/api-1.1.15-xk3v2kp8.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.15-e2v4yew0.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.15-nw8cp5g9.mjs +1 -0
  36. package/dist/chunks/auth-1.1.15-e4p3txt8.mjs +1 -0
  37. package/dist/chunks/auth-1.1.15-mwc856q9.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.15-a9fb2v1b.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.15-5wavzb5n.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.15-83x041z8.mjs +1 -0
  41. package/dist/chunks/branch-1.1.15-91a0yyws.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.15-5da0fvad.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.15-tg57j3bm.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.15-d4nwdh4g.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.15-rmb5208z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.15-rn0mx8rq.mjs +1 -0
  47. package/dist/chunks/btw-1.1.15-0jmj5h91.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.15-smncbttv.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.15-tcd6d5ha.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.15-nhmnthg5.mjs +4 -0
  51. package/dist/chunks/caches-1.1.15-ef0rrkeh.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.15-mhq3r4nw.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.15-khb8ybx5.mjs +1 -0
  54. package/dist/chunks/clear-1.1.15-8pawqyx1.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.15-xt8nj2kp.mjs +1 -0
  56. package/dist/chunks/cli-1.1.15-08shmxg9.mjs +2 -0
  57. package/dist/chunks/cli-1.1.15-0dyh92xq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.15-0h2kcmr1.mjs +18 -0
  59. package/dist/chunks/cli-1.1.15-0pfa5bmf.mjs +2 -0
  60. package/dist/chunks/cli-1.1.15-0rfyjnzd.mjs +2 -0
  61. package/dist/chunks/cli-1.1.15-0we6hqxv.mjs +2 -0
  62. package/dist/chunks/cli-1.1.15-10px11sw.mjs +3 -0
  63. package/dist/chunks/cli-1.1.15-13a7c1kp.mjs +42 -0
  64. package/dist/chunks/cli-1.1.15-1686x3bq.mjs +2 -0
  65. package/dist/chunks/cli-1.1.15-180mwt3m.mjs +12 -0
  66. package/dist/chunks/cli-1.1.15-198p1q51.mjs +2 -0
  67. package/dist/chunks/cli-1.1.15-1dxkde62.mjs +24 -0
  68. package/dist/chunks/cli-1.1.15-1j51w5q4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.15-1kjb39xj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.15-23s6jgky.mjs +2 -0
  71. package/dist/chunks/cli-1.1.15-28rcg0zk.mjs +2 -0
  72. package/dist/chunks/cli-1.1.15-2a8j57jc.mjs +3 -0
  73. package/dist/chunks/cli-1.1.15-2cqj7ng5.mjs +2 -0
  74. package/dist/chunks/cli-1.1.15-2ds94snw.mjs +2 -0
  75. package/dist/chunks/cli-1.1.15-2h049njx.mjs +2 -0
  76. package/dist/chunks/cli-1.1.15-2hm1vd94.mjs +2 -0
  77. package/dist/chunks/cli-1.1.15-2y7wsmne.mjs +4 -0
  78. package/dist/chunks/cli-1.1.15-336vzqmv.mjs +2 -0
  79. package/dist/chunks/cli-1.1.15-37qaz9g1.mjs +2 -0
  80. package/dist/chunks/cli-1.1.15-3ehpt6h2.mjs +2 -0
  81. package/dist/chunks/cli-1.1.15-3j79dbx9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.15-3rdskywh.mjs +39 -0
  83. package/dist/chunks/cli-1.1.15-3vx70sys.mjs +24 -0
  84. package/dist/chunks/cli-1.1.15-49wq39yd.mjs +2 -0
  85. package/dist/chunks/cli-1.1.15-4efmr7vy.mjs +2 -0
  86. package/dist/chunks/cli-1.1.15-4gknk1rg.mjs +18 -0
  87. package/dist/chunks/cli-1.1.15-4hpce0rc.mjs +2 -0
  88. package/dist/chunks/cli-1.1.15-4yp9xqth.mjs +2 -0
  89. package/dist/chunks/cli-1.1.15-59jq5mvw.mjs +2 -0
  90. package/dist/chunks/cli-1.1.15-59t4k8sr.mjs +66 -0
  91. package/dist/chunks/cli-1.1.15-5cr53mcj.mjs +2 -0
  92. package/dist/chunks/cli-1.1.15-5gp5r54s.mjs +58 -0
  93. package/dist/chunks/cli-1.1.15-657rhkrw.mjs +4 -0
  94. package/dist/chunks/cli-1.1.15-6g08vy98.mjs +2 -0
  95. package/dist/chunks/cli-1.1.15-6txc31rr.mjs +2 -0
  96. package/dist/chunks/cli-1.1.15-6w168zj1.mjs +2 -0
  97. package/dist/chunks/cli-1.1.15-716m1dh6.mjs +3 -0
  98. package/dist/chunks/cli-1.1.15-736kw6rq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.15-78j1ffsw.mjs +2 -0
  100. package/dist/chunks/cli-1.1.15-7enkgabc.mjs +2 -0
  101. package/dist/chunks/cli-1.1.15-7g1qck6b.mjs +2 -0
  102. package/dist/chunks/cli-1.1.15-7pdnxwtt.mjs +2 -0
  103. package/dist/chunks/cli-1.1.15-7sppxsya.mjs +2 -0
  104. package/dist/chunks/cli-1.1.15-7z4ctjx7.mjs +4 -0
  105. package/dist/chunks/cli-1.1.15-82j4qb2a.mjs +2 -0
  106. package/dist/chunks/cli-1.1.15-83qj7w53.mjs +2 -0
  107. package/dist/chunks/cli-1.1.15-89z8afvw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.15-8mpc9ecv.mjs +2 -0
  109. package/dist/chunks/cli-1.1.15-8w8262sk.mjs +2 -0
  110. package/dist/chunks/cli-1.1.15-937n7y0j.mjs +2 -0
  111. package/dist/chunks/cli-1.1.15-9ec5jmz5.mjs +2 -0
  112. package/dist/chunks/cli-1.1.15-9mbbz0a1.mjs +6 -0
  113. package/dist/chunks/cli-1.1.15-9vzy8b6c.mjs +2 -0
  114. package/dist/chunks/cli-1.1.15-a2yw7vw1.mjs +2 -0
  115. package/dist/chunks/cli-1.1.15-a3xwxptj.mjs +3 -0
  116. package/dist/chunks/cli-1.1.15-a6p2wwtc.mjs +2 -0
  117. package/dist/chunks/cli-1.1.15-a9y6yf7g.mjs +45 -0
  118. package/dist/chunks/cli-1.1.15-ae2hn1xh.mjs +12 -0
  119. package/dist/chunks/cli-1.1.15-akhz6et5.mjs +3 -0
  120. package/dist/chunks/cli-1.1.15-arysgyep.mjs +3 -0
  121. package/dist/chunks/cli-1.1.15-axdksp5m.mjs +15 -0
  122. package/dist/chunks/cli-1.1.15-b16e0ajk.mjs +5440 -0
  123. package/dist/chunks/cli-1.1.15-ba6p63pk.mjs +2 -0
  124. package/dist/chunks/cli-1.1.15-baktd8w0.mjs +8 -0
  125. package/dist/chunks/cli-1.1.15-bhxf1gde.mjs +2 -0
  126. package/dist/chunks/cli-1.1.15-bkenrcdp.mjs +9 -0
  127. package/dist/chunks/cli-1.1.15-bkk9d70e.mjs +2 -0
  128. package/dist/chunks/cli-1.1.15-c0e6k21y.mjs +2 -0
  129. package/dist/chunks/cli-1.1.15-c6h2gge7.mjs +202 -0
  130. package/dist/chunks/cli-1.1.15-c74jnte8.mjs +6 -0
  131. package/dist/chunks/cli-1.1.15-c985ap3y.mjs +2 -0
  132. package/dist/chunks/cli-1.1.15-cagegn51.mjs +2 -0
  133. package/dist/chunks/cli-1.1.15-chxsepr7.mjs +2 -0
  134. package/dist/chunks/cli-1.1.15-cj6zmtng.mjs +2 -0
  135. package/dist/chunks/cli-1.1.15-cvwkywg9.mjs +2 -0
  136. package/dist/chunks/cli-1.1.15-cx3reatp.mjs +4 -0
  137. package/dist/chunks/cli-1.1.15-czbvbd5n.mjs +2 -0
  138. package/dist/chunks/cli-1.1.15-d4stmd3a.mjs +2 -0
  139. package/dist/chunks/cli-1.1.15-d4xme5sm.mjs +15 -0
  140. package/dist/chunks/cli-1.1.15-dbnqj3tk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.15-dpxcysrc.mjs +2 -0
  142. package/dist/chunks/cli-1.1.15-dv1zb375.mjs +4 -0
  143. package/dist/chunks/cli-1.1.15-dw51tkmc.mjs +3 -0
  144. package/dist/chunks/cli-1.1.15-e0wdjxcm.mjs +2 -0
  145. package/dist/chunks/cli-1.1.15-e69gmp99.mjs +2 -0
  146. package/dist/chunks/cli-1.1.15-e7t7w0n4.mjs +2 -0
  147. package/dist/chunks/cli-1.1.15-emegjc48.mjs +2 -0
  148. package/dist/chunks/cli-1.1.15-engyyzpk.mjs +2 -0
  149. package/dist/chunks/cli-1.1.15-erwqj4vs.mjs +34 -0
  150. package/dist/chunks/cli-1.1.15-evwsdckr.mjs +2 -0
  151. package/dist/chunks/cli-1.1.15-ewmcb0r7.mjs +133 -0
  152. package/dist/chunks/cli-1.1.15-ez7210ck.mjs +2 -0
  153. package/dist/chunks/cli-1.1.15-f0xy8ndf.mjs +2 -0
  154. package/dist/chunks/cli-1.1.15-f146m97m.mjs +2 -0
  155. package/dist/chunks/cli-1.1.15-f9eqbjqc.mjs +2 -0
  156. package/dist/chunks/cli-1.1.15-fcgk3maq.mjs +3 -0
  157. package/dist/chunks/cli-1.1.15-ffs08nv9.mjs +2 -0
  158. package/dist/chunks/cli-1.1.15-fk3ac4gc.mjs +2 -0
  159. package/dist/chunks/cli-1.1.15-fm6herjr.mjs +2 -0
  160. package/dist/chunks/cli-1.1.15-fnh28phg.mjs +24 -0
  161. package/dist/chunks/cli-1.1.15-fr6qfqgh.mjs +2 -0
  162. package/dist/chunks/cli-1.1.15-fyy1ehtf.mjs +3 -0
  163. package/dist/chunks/cli-1.1.15-g7tjhqzb.mjs +2 -0
  164. package/dist/chunks/cli-1.1.15-g9e4rkeg.mjs +2 -0
  165. package/dist/chunks/cli-1.1.15-gbrgyagf.mjs +7 -0
  166. package/dist/chunks/cli-1.1.15-gk6d4ahd.mjs +21 -0
  167. package/dist/chunks/cli-1.1.15-gngz1xbk.mjs +6 -0
  168. package/dist/chunks/cli-1.1.15-gpks2b5v.mjs +4 -0
  169. package/dist/chunks/cli-1.1.15-gq3wg30t.mjs +2 -0
  170. package/dist/chunks/cli-1.1.15-gs56p0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.15-gw258rrk.mjs +50 -0
  172. package/dist/chunks/cli-1.1.15-gwgwd5hm.mjs +4 -0
  173. package/dist/chunks/cli-1.1.15-h3y5qymm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.15-h6ev26yt.mjs +2 -0
  175. package/dist/chunks/cli-1.1.15-hf65t2c2.mjs +2 -0
  176. package/dist/chunks/cli-1.1.15-hq3xwfa3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.15-j8xzj86y.mjs +15 -0
  178. package/dist/chunks/cli-1.1.15-jd4x21q0.mjs +2 -0
  179. package/dist/chunks/cli-1.1.15-jdkggndk.mjs +2 -0
  180. package/dist/chunks/cli-1.1.15-jeqz3hde.mjs +24 -0
  181. package/dist/chunks/cli-1.1.15-jfe29j4s.mjs +2 -0
  182. package/dist/chunks/cli-1.1.15-jfs5gybd.mjs +2 -0
  183. package/dist/chunks/cli-1.1.15-jmt39vvh.mjs +2 -0
  184. package/dist/chunks/cli-1.1.15-jzw1d4vb.mjs +2 -0
  185. package/dist/chunks/cli-1.1.15-k1836ne2.mjs +16 -0
  186. package/dist/chunks/cli-1.1.15-k3j7z8yp.mjs +20 -0
  187. package/dist/chunks/cli-1.1.15-k8spwbtd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.15-kb70x0yv.mjs +3 -0
  189. package/dist/chunks/cli-1.1.15-kgm2pw8x.mjs +2 -0
  190. package/dist/chunks/cli-1.1.15-kr36eh1x.mjs +59 -0
  191. package/dist/chunks/cli-1.1.15-kvc672d5.mjs +2 -0
  192. package/dist/chunks/cli-1.1.15-m33mdt7b.mjs +3 -0
  193. package/dist/chunks/cli-1.1.15-m9er763b.mjs +2 -0
  194. package/dist/chunks/cli-1.1.15-mrgk4vjn.mjs +2 -0
  195. package/dist/chunks/cli-1.1.15-n7rft8vb.mjs +2 -0
  196. package/dist/chunks/cli-1.1.15-nffng52m.mjs +2 -0
  197. package/dist/chunks/cli-1.1.15-nnbd4as2.mjs +25 -0
  198. package/dist/chunks/cli-1.1.15-p1trn7j2.mjs +4 -0
  199. package/dist/chunks/cli-1.1.15-p7vaw3hv.mjs +2 -0
  200. package/dist/chunks/cli-1.1.15-pakg6t79.mjs +2 -0
  201. package/dist/chunks/cli-1.1.15-pf3rvvj5.mjs +3 -0
  202. package/dist/chunks/cli-1.1.15-pg56x579.mjs +2 -0
  203. package/dist/chunks/cli-1.1.15-pgqqjddw.mjs +4 -0
  204. package/dist/chunks/cli-1.1.15-ph9jfwh3.mjs +2 -0
  205. package/dist/chunks/cli-1.1.15-q5cap7nt.mjs +3 -0
  206. package/dist/chunks/cli-1.1.15-q6nb88hp.mjs +2 -0
  207. package/dist/chunks/cli-1.1.15-qga6k32k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.15-qnxzqj1z.mjs +2 -0
  209. package/dist/chunks/cli-1.1.15-qxhpqndj.mjs +5 -0
  210. package/dist/chunks/cli-1.1.15-qxprwvyg.mjs +2 -0
  211. package/dist/chunks/cli-1.1.15-r4y8m1sf.mjs +2 -0
  212. package/dist/chunks/cli-1.1.15-rdq10bn2.mjs +2 -0
  213. package/dist/chunks/cli-1.1.15-rhz9fv4x.mjs +4 -0
  214. package/dist/chunks/cli-1.1.15-rkfqf782.mjs +2 -0
  215. package/dist/chunks/cli-1.1.15-rqw4p0ke.mjs +2 -0
  216. package/dist/chunks/cli-1.1.15-rtcyrbsg.mjs +1 -0
  217. package/dist/chunks/cli-1.1.15-rvg56jwp.mjs +2 -0
  218. package/dist/chunks/cli-1.1.15-s28sb1ga.mjs +2 -0
  219. package/dist/chunks/cli-1.1.15-stmx3k3w.mjs +2 -0
  220. package/dist/chunks/cli-1.1.15-swf7050w.mjs +3 -0
  221. package/dist/chunks/cli-1.1.15-syqaq4nv.mjs +2 -0
  222. package/dist/chunks/cli-1.1.15-t0xrcfbr.mjs +2 -0
  223. package/dist/chunks/cli-1.1.15-t3rgyeam.mjs +2 -0
  224. package/dist/chunks/cli-1.1.15-t61ax3rg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.15-t80k8k17.mjs +2 -0
  226. package/dist/chunks/cli-1.1.15-t8xsja3r.mjs +6 -0
  227. package/dist/chunks/cli-1.1.15-tc86fw6x.mjs +2 -0
  228. package/dist/chunks/cli-1.1.15-tmp788zk.mjs +2 -0
  229. package/dist/chunks/cli-1.1.15-tpbkevjz.mjs +2 -0
  230. package/dist/chunks/cli-1.1.15-tv01zd9c.mjs +2 -0
  231. package/dist/chunks/cli-1.1.15-vsctpke4.mjs +2 -0
  232. package/dist/chunks/cli-1.1.15-vvc5kd0e.mjs +6 -0
  233. package/dist/chunks/cli-1.1.15-w1xsnsrr.mjs +2 -0
  234. package/dist/chunks/cli-1.1.15-w79kpn9z.mjs +17 -0
  235. package/dist/chunks/cli-1.1.15-w957aq1a.mjs +2 -0
  236. package/dist/chunks/cli-1.1.15-wbqj4f48.mjs +133 -0
  237. package/dist/chunks/cli-1.1.15-wkxn6fq7.mjs +9 -0
  238. package/dist/chunks/cli-1.1.15-wq860b6c.mjs +2 -0
  239. package/dist/chunks/cli-1.1.15-x4dh9ra2.mjs +2 -0
  240. package/dist/chunks/cli-1.1.15-x6z56vxt.mjs +2 -0
  241. package/dist/chunks/cli-1.1.15-xh72g5md.mjs +25 -0
  242. package/dist/chunks/cli-1.1.15-xmm250at.mjs +2 -0
  243. package/dist/chunks/cli-1.1.15-xn5kcp4k.mjs +2 -0
  244. package/dist/chunks/cli-1.1.15-xrdr3a8j.mjs +2 -0
  245. package/dist/chunks/cli-1.1.15-xtf04fdy.mjs +5 -0
  246. package/dist/chunks/cli-1.1.15-xvwbdkk2.mjs +2 -0
  247. package/dist/chunks/cli-1.1.15-y4jpgjpy.mjs +6 -0
  248. package/dist/chunks/cli-1.1.15-ya3zmpbf.mjs +2 -0
  249. package/dist/chunks/cli-1.1.15-ybhmmbr3.mjs +2 -0
  250. package/dist/chunks/cli-1.1.15-z9szqcyg.mjs +17 -0
  251. package/dist/chunks/cli-1.1.15-zg7csyzz.mjs +2 -0
  252. package/dist/chunks/cli-1.1.15-zm1sx1vh.mjs +2 -0
  253. package/dist/chunks/cli-1.1.15-zm9a5m0b.mjs +2 -0
  254. package/dist/chunks/cli-1.1.15-zpt8yv0b.mjs +2 -0
  255. package/dist/chunks/cli-1.1.15-zrabw726.mjs +2 -0
  256. package/dist/chunks/cli-1.1.15-ztgk02re.mjs +4 -0
  257. package/dist/chunks/cli-1.1.15-zw3cc5m8.mjs +2 -0
  258. package/dist/chunks/client-1.1.15-7zxfy90s.mjs +1 -0
  259. package/dist/chunks/color-1.1.15-v6smmkca.mjs +1 -0
  260. package/dist/chunks/compact-1.1.15-mey332ra.mjs +3 -0
  261. package/dist/chunks/config-1.1.15-jcwja4eb.mjs +1 -0
  262. package/dist/chunks/config-1.1.15-pafh429c.mjs +1 -0
  263. package/dist/chunks/constants-1.1.15-qvh9m3yg.mjs +1 -0
  264. package/dist/chunks/context-1.1.15-gef0rkyp.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.1.15-y4tcdh2q.mjs +1 -0
  266. package/dist/chunks/conversation-1.1.15-r506ktpr.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.1.15-nwyxv1c6.mjs +1 -0
  268. package/dist/chunks/copy-1.1.15-bm5qhs38.mjs +9 -0
  269. package/dist/chunks/cost-1.1.15-9en5vp81.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.1.15-46chvft6.mjs +1 -0
  271. package/dist/chunks/createSession-1.1.15-pxd63w9x.mjs +1 -0
  272. package/dist/chunks/debug-1.1.15-8nbm2xpt.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.1.15-wxt2kmzg.mjs +1526 -0
  274. package/dist/chunks/desktop-1.1.15-gdsmr24w.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.1.15-cdm0wycs.mjs +1 -0
  276. package/dist/chunks/detection-1.1.15-ftsf9hbz.mjs +1 -0
  277. package/dist/chunks/diff-1.1.15-q3a5dtec.mjs +1 -0
  278. package/dist/chunks/doctor-1.1.15-p6cn9vhk.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.1.15-1bqd038t.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.1.15-h3s4mc10.mjs +1 -0
  281. package/dist/chunks/effort-1.1.15-ntfkkphx.mjs +13 -0
  282. package/dist/chunks/engine-1.1.15-bafn3xae.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.1.15-jyzc1ek9.mjs +1 -0
  284. package/dist/chunks/envUtils-1.1.15-djhm9sn3.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.1.15-dk14rrw7.mjs +1 -0
  286. package/dist/chunks/environments-1.1.15-dgwyaqx6.mjs +1 -0
  287. package/dist/chunks/errors-1.1.15-dv0cz15v.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.1.15-263nxjc7.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.1.15-cgv6pwrz.mjs +1 -0
  290. package/dist/chunks/exit-1.1.15-7jy2eyny.mjs +1 -0
  291. package/dist/chunks/explorer-1.1.15-3cqntxjp.mjs +1 -0
  292. package/dist/chunks/export-1.1.15-w57hsyes.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.1.15-caapnsf9.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.1.15-2hrhqvj4.mjs +1 -0
  295. package/dist/chunks/fast-1.1.15-556g3z6s.mjs +1 -0
  296. package/dist/chunks/feedback-1.1.15-g0fbb2v3.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.1.15-5d6tk014.mjs +1 -0
  298. package/dist/chunks/git-1.1.15-xzay0ztr.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.1.15-4py0k74v.mjs +1 -0
  300. package/dist/chunks/goal-1.1.15-e1em0116.mjs +4 -0
  301. package/dist/chunks/growthbook-1.1.15-6xn6q0sp.mjs +1 -0
  302. package/dist/chunks/headless-1.1.15-rafx8eee.mjs +2 -0
  303. package/dist/chunks/heapdump-1.1.15-6q8q4788.mjs +6 -0
  304. package/dist/chunks/help-1.1.15-zs3pgg4k.mjs +1 -0
  305. package/dist/chunks/hookChains-1.1.15-9a6pb5w5.mjs +3 -0
  306. package/dist/chunks/hooks-1.1.15-b9gs32vb.mjs +1 -0
  307. package/dist/chunks/hooks-1.1.15-hfwjnas3.mjs +79 -0
  308. package/dist/chunks/ide-1.1.15-ece17mva.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.1.15-fejg7fwn.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.1.15-pk7rphxz.mjs +1 -0
  311. package/dist/chunks/index-1.1.15-2vvc784g.mjs +5 -0
  312. package/dist/chunks/index-1.1.15-58q8vth9.mjs +30 -0
  313. package/dist/chunks/index-1.1.15-61gtszck.mjs +23 -0
  314. package/dist/chunks/index-1.1.15-63sm4p3b.mjs +1 -0
  315. package/dist/chunks/index-1.1.15-bqgefxac.mjs +2 -0
  316. package/dist/chunks/index-1.1.15-cmeghrr8.mjs +1 -0
  317. package/dist/chunks/index-1.1.15-dh3eqcj6.mjs +1 -0
  318. package/dist/chunks/index-1.1.15-gt3z8ez8.mjs +2 -0
  319. package/dist/chunks/index-1.1.15-hngbp5j9.mjs +1 -0
  320. package/dist/chunks/index-1.1.15-hv4e77y5.mjs +1 -0
  321. package/dist/chunks/index-1.1.15-jbcn1htw.mjs +1 -0
  322. package/dist/chunks/index-1.1.15-jsq8t7gh.mjs +1 -0
  323. package/dist/chunks/index-1.1.15-jxrabdxb.mjs +9 -0
  324. package/dist/chunks/index-1.1.15-k2qf0p34.mjs +1 -0
  325. package/dist/chunks/index-1.1.15-kegec7g7.mjs +1 -0
  326. package/dist/chunks/index-1.1.15-px3s42jj.mjs +1 -0
  327. package/dist/chunks/index-1.1.15-qa2n341d.mjs +1 -0
  328. package/dist/chunks/index-1.1.15-rb6gwjnr.mjs +9 -0
  329. package/dist/chunks/index-1.1.15-v1jbnyfv.mjs +1 -0
  330. package/dist/chunks/index-1.1.15-v3xjhkgg.mjs +1 -0
  331. package/dist/chunks/index-1.1.15-wn5dzvtp.mjs +1 -0
  332. package/dist/chunks/index-1.1.15-yxqqa2q5.mjs +1 -0
  333. package/dist/chunks/index-1.1.15-ztxh3p91.mjs +1 -0
  334. package/dist/chunks/init-1.1.15-s0513abb.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.1.15-nfxwvhxr.mjs +1 -0
  336. package/dist/chunks/ink-1.1.15-06g53x2d.mjs +1 -0
  337. package/dist/chunks/insights-1.1.15-2ttbvk7c.mjs +870 -0
  338. package/dist/chunks/install-1.1.15-w5d46eyw.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.1.15-tqjywtyy.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.1.15-7qyq36aa.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.1.15-5nywr7k6.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.1.15-9akt8s2v.mjs +1 -0
  343. package/dist/chunks/keybindings-1.1.15-1tvzezk8.mjs +2 -0
  344. package/dist/chunks/knowledge-1.1.15-bkkcs3a3.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.1.15-2ksjmrzy.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.1.15-95r643y9.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.1.15-h3znhdpc.mjs +1 -0
  348. package/dist/chunks/log-1.1.15-efrp1hpn.mjs +1 -0
  349. package/dist/chunks/main-1.1.15-ba7dtwzz.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.1.15-5b44apg9.mjs +1 -0
  351. package/dist/chunks/mcp-1.1.15-219ec2vw.mjs +4 -0
  352. package/dist/chunks/mcp-1.1.15-84m4prhz.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.15-9f3zyt67.mjs +17 -0
  354. package/dist/chunks/mcpb-1.1.15-ykxze1k6.mjs +1 -0
  355. package/dist/chunks/memory-1.1.15-96pdt13p.mjs +72 -0
  356. package/dist/chunks/model-1.1.15-b40xd4h1.mjs +1 -0
  357. package/dist/chunks/model-1.1.15-pvecp9fh.mjs +2 -0
  358. package/dist/chunks/node-1.1.15-e5eqx52s.mjs +12 -0
  359. package/dist/chunks/oauth-1.1.15-7fxj0bcf.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.1.15-dq3fghyq.mjs +14 -0
  361. package/dist/chunks/output-style-1.1.15-e7ttz7b5.mjs +1 -0
  362. package/dist/chunks/package-L37ZVTF4-1.1.15-kss8kwyd.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.1.15-km2j6z0r.mjs +1 -0
  364. package/dist/chunks/parser-1.1.15-2x7mpppq.mjs +1 -0
  365. package/dist/chunks/passes-1.1.15-8x4mva12.mjs +1 -0
  366. package/dist/chunks/permissions-1.1.15-134fj94y.mjs +1 -0
  367. package/dist/chunks/permissions-1.1.15-a2d8pgtp.mjs +3 -0
  368. package/dist/chunks/plan-1.1.15-swdve0xr.mjs +1 -0
  369. package/dist/chunks/plist-1.1.15-5ged16we.mjs +1 -0
  370. package/dist/chunks/plugin-1.1.15-kcpdt96s.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.1.15-aazppe92.mjs +1 -0
  372. package/dist/chunks/plugins-1.1.15-atzwgc9x.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.1.15-611jrgf1.mjs +2 -0
  374. package/dist/chunks/print-1.1.15-ma7jjc0w.mjs +57 -0
  375. package/dist/chunks/process-1.1.15-6rbhzpg0.mjs +1 -0
  376. package/dist/chunks/processBashCommand-1.1.15-aamrz1kj.mjs +1 -0
  377. package/dist/chunks/processSlashCommand-1.1.15-azxvy7pb.mjs +9 -0
  378. package/dist/chunks/prompt-1.1.15-1k4m318a.mjs +1 -0
  379. package/dist/chunks/prompt-1.1.15-xe79z4pr.mjs +1 -0
  380. package/dist/chunks/prompts-1.1.15-wte4x7e4.mjs +1 -0
  381. package/dist/chunks/protocolHandler-1.1.15-88zg9mk8.mjs +13 -0
  382. package/dist/chunks/provider-1.1.15-c8z6c4xj.mjs +2 -0
  383. package/dist/chunks/providerProfiles-1.1.15-srn11t8e.mjs +1 -0
  384. package/dist/chunks/providerValidation-1.1.15-yef6qwy2.mjs +6 -0
  385. package/dist/chunks/rate-limit-options-1.1.15-dk2mf38m.mjs +1 -0
  386. package/dist/chunks/registerSubcommands-1.1.15-v5kze215.mjs +26 -0
  387. package/dist/chunks/registry-1.1.15-jnsk0t9a.mjs +1 -0
  388. package/dist/chunks/release-notes-1.1.15-nbmmmwbh.mjs +5 -0
  389. package/dist/chunks/reload-plugins-1.1.15-thmm1n66.mjs +2 -0
  390. package/dist/chunks/remote-env-1.1.15-mt6r7s6d.mjs +1 -0
  391. package/dist/chunks/remoteBridgeCore-1.1.15-28aykv35.mjs +1 -0
  392. package/dist/chunks/remoteSession-1.1.15-br9mvf70.mjs +1 -0
  393. package/dist/chunks/rename-1.1.15-4cnm57qq.mjs +1 -0
  394. package/dist/chunks/replBridgeHandle-1.1.15-554c9pxz.mjs +1 -0
  395. package/dist/chunks/replLauncher-1.1.15-0ymjxtxx.mjs +1 -0
  396. package/dist/chunks/resume-1.1.15-tka4a9rz.mjs +2 -0
  397. package/dist/chunks/rewind-1.1.15-pskzwz2n.mjs +1 -0
  398. package/dist/chunks/rootOptions-1.1.15-k8vyvzs4.mjs +1 -0
  399. package/dist/chunks/runWorkflowHeadless-1.1.15-2sgm9477.mjs +10 -0
  400. package/dist/chunks/sandbox-adapter-1.1.15-jjpkvd4w.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.1.15-e2bqcnkv.mjs +1 -0
  402. package/dist/chunks/session-1.1.15-p4vbgb6n.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.1.15-krx4yyg5.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.1.15-gmsn6pxt.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.1.15-7b040mx5.mjs +1 -0
  406. package/dist/chunks/settings-1.1.15-ekfty1pj.mjs +1 -0
  407. package/dist/chunks/setup-1.1.15-zep22435.mjs +5 -0
  408. package/dist/chunks/sinks-1.1.15-5b2jbvzk.mjs +1 -0
  409. package/dist/chunks/skills-1.1.15-tqfym88e.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.1.15-x5r52mgd.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.1.15-zvm4gj9j.mjs +1 -0
  412. package/dist/chunks/state-1.1.15-92brngf3.mjs +1 -0
  413. package/dist/chunks/stats-1.1.15-83zt06hn.mjs +6 -0
  414. package/dist/chunks/status-1.1.15-z168hre8.mjs +1 -0
  415. package/dist/chunks/stickers-1.1.15-7hf6025s.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.1.15-vsw2gnsy.mjs +1 -0
  417. package/dist/chunks/tasks-1.1.15-0jrt2qg7.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.1.15-k13jejzh.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.1.15-s9t0zyne.mjs +1 -0
  420. package/dist/chunks/teleport-1.1.15-9dd1smb0.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.1.15-qc30y99e.mjs +1 -0
  422. package/dist/chunks/theme-1.1.15-6q2jy7n3.mjs +1 -0
  423. package/dist/chunks/thinkback-1.1.15-nm1h90a9.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.1.15-f67z5b5k.mjs +1 -0
  425. package/dist/chunks/toolPool-1.1.15-tfcesaq1.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.1.15-8ta5a4z3.mjs +1 -0
  427. package/dist/chunks/tools-1.1.15-y5hj8rpq.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.1.15-8tfqjnhv.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.1.15-hh9kd6yr.mjs +69 -0
  430. package/dist/chunks/types-1.1.15-9baqmv4a.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.1.15-pgr4087d.mjs +4 -0
  432. package/dist/chunks/update-1.1.15-3g32jxm9.mjs +72 -0
  433. package/dist/chunks/upgrade-1.1.15-n01mknp0.mjs +1 -0
  434. package/dist/chunks/upload-1.1.15-7swxydm4.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.1.15-0kwe084a.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.1.15-6zmtv9xn.mjs +1 -0
  437. package/dist/chunks/usage-1.1.15-24aqj3m1.mjs +1 -0
  438. package/dist/chunks/util-1.1.15-5jq3gm50.mjs +1 -0
  439. package/dist/chunks/utils-1.1.15-w1h2z3bz.mjs +1 -0
  440. package/dist/chunks/vim-1.1.15-saehb9jw.mjs +1 -0
  441. package/dist/chunks/watchLoop-1.1.15-5whne0rd.mjs +13 -0
  442. package/dist/chunks/watcher-1.1.15-jgbek4vd.mjs +1 -0
  443. package/dist/chunks/wiki-1.1.15-d8an1sjy.mjs +132 -0
  444. package/dist/chunks/workflows-1.1.15-hxrpwge7.mjs +1 -0
  445. package/dist/chunks/worktree-1.1.15-1es3bab6.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.1.15-c62gcjdh.mjs +1 -0
  447. package/dist/chunks/wrapper-1.1.15-jn7yrxqc.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +9 -9
  450. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
  451. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
  458. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
  459. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
  461. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
  467. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
  477. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
  479. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
  480. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
  481. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
  482. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
  483. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
  484. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
  485. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
  486. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
  489. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
  490. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
  495. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
  496. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
  497. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
  498. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
  499. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
  500. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
  501. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
  502. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
  503. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
  504. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
  505. package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
  506. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
  507. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
  508. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
  510. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
  511. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
  512. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
  513. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
  514. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
  517. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
  518. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
  519. package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
  520. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
  521. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
  522. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
  524. package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
  525. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
  526. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
  529. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
  530. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
  531. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
  532. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
  533. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
  535. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
  537. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
  538. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
  539. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
  540. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
  541. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
  542. package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
  543. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
  544. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
  545. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
  546. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
  547. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
  548. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
  549. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
  550. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
  551. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
  553. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
  554. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
  556. package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
  557. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
  559. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
  560. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
  561. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
  562. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
  563. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
  564. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
  565. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
  566. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
  567. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
  568. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
  569. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
  570. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
  571. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
  573. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
  574. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
  575. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
  576. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
  577. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
  578. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
  579. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
  580. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
  581. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
  582. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
  583. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
  584. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
  585. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
  586. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
  587. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
  588. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
  589. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
  590. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
  591. package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
  592. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
  593. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
  594. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
  595. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
  596. package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
  597. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
  598. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
  600. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
  601. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
  602. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
  603. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
  604. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
  605. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
  606. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
  607. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
  608. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
  609. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
  610. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
  611. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
  612. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
  614. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
  615. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
  616. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
  617. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
  618. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
  619. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
  620. package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
  621. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
  622. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
  623. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
  624. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
  625. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
  626. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
  627. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
  628. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
  629. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
  630. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
  631. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
  632. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
  633. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
  634. package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
  635. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
  636. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
  637. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
  638. package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
  640. package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
  642. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
  643. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
  644. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
  645. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
  646. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
  647. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
  648. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
  649. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
  650. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
  651. package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
  652. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
  653. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
  654. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
  655. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
  656. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
  657. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
  658. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
  659. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
  660. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
  661. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
  662. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
  663. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
  664. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
  665. package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
  666. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
  667. package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
  668. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
  669. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
  670. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
  671. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
  672. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
  673. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
  674. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
  675. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
  676. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
  677. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
  678. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
  680. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
  681. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
  682. package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
  683. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
  684. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
  685. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
  686. package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
  687. package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
  688. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
  690. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
  691. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
  692. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
  693. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
  694. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
  695. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
  696. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
  697. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
  698. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
  700. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
  701. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
  702. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
  703. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
  704. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
  705. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
  706. package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
  707. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
  708. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
  709. package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
  710. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
  711. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
  712. package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
  713. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
  714. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
  715. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
  716. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
  717. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
  718. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
  719. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
  720. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
  721. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
  722. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
  723. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
  724. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
  725. package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
  726. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
  727. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
  728. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
  729. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
  730. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
  731. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
  732. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
  733. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
  734. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
  735. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
  736. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
  737. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
  738. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
  739. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
  740. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
  741. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
  742. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
  743. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
  744. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
  745. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
  746. package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
  747. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
  748. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
  749. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
  750. package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
  751. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
  752. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
  753. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
  754. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
  755. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
  756. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
  757. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
  758. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
  759. package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
  760. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
  761. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
  762. package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
  763. package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
  764. package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
  765. package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
  766. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
  767. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
  768. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
  769. package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
  770. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
  771. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
  772. package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
  773. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
  774. package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
  775. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
  776. package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
  777. package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
  778. package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
  779. package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
  780. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
  781. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
  782. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
  783. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
  784. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
  785. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
  786. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
  787. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
  788. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
  789. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
  790. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
  791. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
  792. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
  793. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
  794. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
  796. package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
  797. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
  799. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
  800. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
  801. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
  802. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
  803. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
  804. package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
  805. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
  806. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
  807. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
  809. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
  810. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
  812. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
  813. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
  814. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
  815. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
  816. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
  817. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
  818. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
  820. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
  822. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
  823. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
  824. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
  825. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
  826. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
  827. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
  828. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
  829. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
  830. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
  831. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
  832. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
  833. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
  834. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
  835. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
  836. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
  837. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
  838. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
  839. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
  840. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
  841. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
  842. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
  843. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
  844. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
  845. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
  846. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
  847. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
  848. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
  850. package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
  854. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
  855. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
  856. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
  857. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
  860. package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
  861. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
  862. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
  863. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
  865. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
  868. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
  870. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
  871. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
  873. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
  875. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
  878. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
  880. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
  881. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
  882. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
  885. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
  886. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
  887. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
  888. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
  889. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
  890. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
  891. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
  892. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
  893. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
  894. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
  895. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
  896. /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.15-7rhgft7r.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.15-a86ebv4c.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.15-bwy6nhdk.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.15-g9n3fyq0.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.15-h58yf3xj.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.15-r64a0n76.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.15-yrmh6ksq.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{R9 as Z,V9 as _,W9 as w}from"./cli-1.1.13-0yte5zpd.mjs";import{F_ as Y,G_ as U,R_ as $,Rea as j,caa as k,s$ as T,tea as W,wea as V,zaa as D}from"./cli-1.1.13-2mrqqgcm.mjs";import{uka as N,xka as M}from"./cli-1.1.13-ayx92dtj.mjs";import{Sqa as O,Zma as X}from"./cli-1.1.13-0y4933cs.mjs";O();j();M();w();D();U();T();import{realpath as x}from"fs/promises";async function y(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await x(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function f(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function l(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
2
- export{y as Sb,f as Tb,P as Ub,d as Vb,l as Wb};
@@ -1,6 +0,0 @@
1
- import{Esa as b}from"./cli-1.1.13-jdcqc6bd.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 Q2,oq as R2};
@@ -1,2 +0,0 @@
1
- import{I0 as Y,K0 as u,jZ as u2,n1 as e2,sZ as Z}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as t,M3 as o,N3 as U}from"./cli-1.1.13-b9sg0jsz.mjs";import{fba as X,hba as j}from"./cli-1.1.13-2mrqqgcm.mjs";import{Asa as s}from"./cli-1.1.13-jdcqc6bd.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,O,R,k,A,a,I,i,V;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.13"," "]})]}),O=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),R=t(u,{children:" "}),k=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),l[2]=c,l[3]=O,l[4]=R,l[5]=k,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=V;else c=l[2],O=l[3],R=l[4],k=l[5],A=l[6],a=l[7],I=l[8],i=l[9],V=l[10];let M;if(l[11]===Symbol.for("react.memo_cache_sentinel"))M=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=M;else M=l[11];let E,W;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),W=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=W;else E=l[12],W=l[13];let N;if(l[14]===Symbol.for("react.memo_cache_sentinel"))N=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=N;else N=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let P;if(l[16]===Symbol.for("react.memo_cache_sentinel"))P=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=P;else P=l[16];let v;if(l[17]===Symbol.for("react.memo_cache_sentinel"))v=t(Y,{width:K,children:o(u,{children:[c,O,R,k,A,a,I,i,V,M,E,W,N,L,P,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=v;else v=l[17];return v}let B,r,D,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))B=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.13"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),D=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=B,l[19]=r,l[20]=D,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else B=l[18],r=l[19],D=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let p;if(l[34]===Symbol.for("react.memo_cache_sentinel"))p=t(Y,{width:K,children:o(u,{children:[B,r,D,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=p;else p=l[34];return p}function t2(l){let e=Q.c(44),{theme:B,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(B)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.13"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let V,M,E,W,N,L,P,v;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),W=t(u,{children:" "}),N=t(u,{children:" "}),L=t(u,{children:" "}),P=t(u,{children:" ░░░░░░ "}),v=t(u,{children:" ░░░ ░░░░░░░░░░ "}),V=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),e[5]=V,e[6]=M,e[7]=E,e[8]=W,e[9]=N,e[10]=L,e[11]=P,e[12]=v;else V=e[5],M=e[6],E=e[7],W=e[8],N=e[9],L=e[10],P=e[11],v=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,W,N,L,P,v,V,M,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.13"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,p;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),p=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=p;else C=e[33],S=e[34],w=e[35],g=e[36],p=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let O;if(e[39]===Symbol.for("react.memo_cache_sentinel"))O=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=O;else O=e[39];let R;if(e[40]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=R;else R=e[40];let k;if(e[41]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=k;else k=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,p,c,O,R,k]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as ba};
@@ -1,6 +0,0 @@
1
- import{Dh as qq,Eh as Jq,Fh as Zq,Gh as vq}from"./cli-1.1.13-tx4y2gtw.mjs";import{Hh as $q,Ih as Pq}from"./cli-1.1.13-y6vdh2z1.mjs";import{Cz as p,wz as m,xz as y}from"./cli-1.1.13-x79qava2.mjs";import{I0 as F,K0 as K,n1 as Iq}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as Y,M3 as D,N3 as Xq}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as j}from"./cli-1.1.13-wmpc2gzg.mjs";import{Oca as a,T_ as w,V_ as f,Wca as Vq,a$ as c,d_ as I,e_ as e,s$ as Uq}from"./cli-1.1.13-2mrqqgcm.mjs";import{Fga as Mq,Gga as g,Uga as Eq}from"./cli-1.1.13-kbf9vss4.mjs";import{Asa as T,Esa as L}from"./cli-1.1.13-jdcqc6bd.mjs";function u(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,B=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:B,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var h=L(()=>{p();b=T(j(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),B=q.join(`
2
- `),X=J.join(`
3
- `);O.useEffect(()=>{let V=!1;M(!0);async function N(){let _=B?B.split(`
4
- `):[],v=X?X.split(`
5
- `):[],E=(await Promise.all(v.map((G)=>f(G)))).flat(),P=w(E).filter((G)=>!_.includes(G)).sort((G,C)=>S(G).localeCompare(S(C))),k=w([..._,...P]),Yq=await Promise.all(k.map(async(G)=>{let[C,x,Aq]=await Promise.all([m(G),y(G),c(G)]);return{root:G,name:S(G),branch:Aq,files:C?u(C,x):[],hunks:x}}));if(!V)z(Yq),Z(k),M(!1)}return N().catch(()=>{if(!V)z([]),Z([]),M(!1)}),()=>{V=!0}},[B,X,U]);let W=O.useCallback(()=>H((V)=>V+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=L(()=>{Uq();p();h();O=T(j(),1)});import{basename as n}from"path";function d(q,J,$){if(q===0)return"";return J.join("")+($?Bq:l)}function r(q){return{name:q,dirs:new Map,files:[]}}function Nq(q){let J=r("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=r(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function i(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>n(X.path).localeCompare(n(W.path))),B=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],V=W.name,N=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;V=`${V}/${P.name}`,N=`${N}/${P.name}`,W=P}let _=X===U.length-1&&!B,v=`${Q}\x00${N}`,E=z.has(v);if(A.push({kind:"dir",key:v,label:V,depth:$,collapsed:E,guides:d($,M,_)}),!E){let P=$>=1?[...M,_?Gq:l]:M;i(W,N,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],V=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:d($,M,V)})}}function _q(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${a(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}i(Nq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var l="│ ",Bq="└ ",Gq=" ";var o=L(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return R[Math.abs(J)%R.length]}function t(q){let J=R.length;return R[(q%J+J)%J]}var R;var s=L(()=>{R=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function zq(){let q=$q();return{enabled:q,fileIcon:(J)=>q?Zq(J):"",folderIcon:(J)=>q?J?Jq:qq:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var Qq=L(()=>{e();vq();Pq()});import{basename as Dq}from"path";function Lq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function ZJ(q){return q.flatMap((J)=>J.files)}function $J({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo(zq,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Lq(M,J,$),B=[];for(let X=U;X<H;X++){let W=q[X];B.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return D(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),B,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let _=J?`${z.pointer} `:" ",v=q.collapsed?I.triangleRight:I.triangleDown;return D(K,{dimColor:!J,bold:J,children:[`${_}${v} `,z.repoIcon&&Y(K,{color:t(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let _=q.collapsed?I.triangleRight:I.triangleDown,v=z.folderIcon(!q.collapsed),E=v?`${v} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=g(q.label,P);return D(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:D(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${_} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),B=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,V=Math.max(4,$-U-X.length-(B?2:0)-W-1),N=q.label?g(q.label,V):Mq(Dq(q.file.path),V);return D(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:D(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,B,Q&&!J?Y(K,{color:Q,children:N}):N]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq,JJ=80;var Rq=L(()=>{e();Iq();Eq();s();o();Qq();Xq();Wq=T(j(),1)});
6
- export{wq as Sf,Hq as Tf,zq as Uf,Qq as Vf,hq as Wf,s as Xf,_q as Yf,o as Zf,JJ as _f,ZJ as $f,$J as ag,Rq as bg};
@@ -1,2 +0,0 @@
1
- import{Ac as U,Bc as $,wc as O,xc as Q}from"./cli-1.1.13-j7dbk8te.mjs";import{hG as N,jG as _}from"./cli-1.1.13-x79qava2.mjs";import{I0 as G,K0 as z,n1 as Z}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as q,M3 as F,N3 as K}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as Y}from"./cli-1.1.13-wmpc2gzg.mjs";import{Asa as W,Esa as X}from"./cli-1.1.13-jdcqc6bd.mjs";function R({enabled:J,onDismiss:H}){let[w,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||w.kind==="hidden")return null;if(w.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(z,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(w.kind==="success"||w.kind==="error"){let I=w.kind==="success"?"success":"warning",E=w.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:I,bold:!0,children:E}),q(z,{children:Q(w.report)})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(z,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
2
- export{R as uc,f as vc};
@@ -1,2 +0,0 @@
1
- import{Qh as g,Rh as Uf}from"./cli-1.1.13-e4k7980n.mjs";import{Vh as A,Xh as Kf}from"./cli-1.1.13-zmb192fn.mjs";import{AD as u,Bm as Vf,CE as c,DD as bf,DE as jf,Dl as y,Fj as W,KS as S,NR as l,OC as I,PC as $f,SE as v,Sj as w,Tj as zf,XS as p,Yl as Jf,ZE as Df,cT as k,et as h,ft as Yf,im as N,iz as C,mz as T,nS as Ff,nv as m,oT as Hf,om as Qf,ov as Zf,pT as d,qz as _f,us as E,vs as P,wl as Bf,wm as L,ws as Xf,xl as Gf,zC as M}from"./cli-1.1.13-x79qava2.mjs";import{pga as R,xga as ff}from"./cli-1.1.13-2mrqqgcm.mjs";import{rja as O,uja as e}from"./cli-1.1.13-zgnxf8h2.mjs";import{Hpa as H,Sqa as s,Tma as U,Uma as q,Una as F,Zma as x}from"./cli-1.1.13-0y4933cs.mjs";import{Bsa as K,Esa as t}from"./cli-1.1.13-jdcqc6bd.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:c(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as Oh,xf as Ph};
@@ -1,4 +0,0 @@
1
- import{Gg as nJ,Hg as tY}from"./cli-1.1.13-d4z9sv3g.mjs";import{Ig as aJ,Jg as sJ,Kg as s0,Mg as qX}from"./cli-1.1.13-a3s5tdea.mjs";import{Og as sX}from"./cli-1.1.13-fkvcsg0a.mjs";import{ah as a0,bh as aY,ch as iJ,dh as sY}from"./cli-1.1.13-61mygvzg.mjs";import{eh as lJ,fh as oY}from"./cli-1.1.13-7k2bp2pf.mjs";import{gh as rJ,hh as eY,ih as oJ,jh as ZX}from"./cli-1.1.13-6b845car.mjs";import{kh as VY,lh as O0,nh as cJ,oh as uJ}from"./cli-1.1.13-82y6dszx.mjs";import{Ri as JY,Si as rX}from"./cli-1.1.13-ewxej7em.mjs";import{$G as Tq,$K as tq,AP as vQ,BI as xJ,CI as iY,Cj as Oq,Ep as bJ,FP as _X,Fp as dY,Hj as wX,Hx as EZ,Ix as vJ,JT as JQ,Jx as gJ,KT as QQ,Kx as yq,NT as YX,Pn as PZ,Qn as cY,Rn as T,Sn as cZ,TK as o0,Tn as qZ,UK as nY,US as dq,Un as E0,Xn as dZ,YK as U0,Yn as g0,ZF as JJ,ZK as aq,_F as jY,_K as sq,aH as jq,bH as $q,cH as wq,co as r0,dH as _q,eH as bq,fH as vq,gH as gq,go as _J,hG as lZ,hH as mq,hN as sZ,iG as fY,iH as pq,iN as Qq,jG as lq,jH as LY,nz as Aq,oz as bZ,pT as hY,pm as ZY,qm as iX,qz as aX,ro as uY,tm as qY,um as nX,wy as oX,zT as qQ,zj as bQ}from"./cli-1.1.13-x79qava2.mjs";import{JU as mJ,KU as pJ,OU as lY}from"./cli-1.1.13-e68npf24.mjs";import{GW as rY,yW as dJ}from"./cli-1.1.13-fr4zp0cx.mjs";import{VX as RZ,WX as X0,hY as b,iY as wJ,jY as iZ,mY as XY,nY as qG,pY as uZ,qY as T0,sY as M0,vY as GY,wY as JG}from"./cli-1.1.13-r2qnta4s.mjs";import{AZ as lX,HZ as n0,I0 as U,IZ as jJ,K0 as K,MZ as xY,U0 as eQ,jZ as $Z,m0 as $J,n1 as SZ,sZ as xZ,tZ as TJ,yZ as f0}from"./cli-1.1.13-aac9pss7.mjs";import{K3 as WZ,L3 as G,M3 as z,N3 as x}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as FZ}from"./cli-1.1.13-wmpc2gzg.mjs";import{Z3 as CQ,_3 as kX}from"./cli-1.1.13-2txesqy8.mjs";import{B6 as fJ,D5 as Y0,E5 as l0,F4 as sQ,G5 as CJ,H5 as i0,J5 as SJ,J6 as k0,L4 as uX,N6 as yJ,O5 as hJ,X5 as pY,h8 as tQ,k5 as nZ,l5 as mY,w6 as Pq,w8 as dX}from"./cli-1.1.13-gznvgt6g.mjs";import{S8 as KZ,T8 as OJ}from"./cli-1.1.13-hg8x8693.mjs";import{Cea as BJ,Cfa as GQ,Fda as gY,Ffa as VQ,Gea as UJ,Gfa as XX,Hba as PJ,Hea as kJ,Iba as AJ,Ifa as KQ,Jba as LJ,Kba as MJ,Pba as vY,Pfa as HQ,Rea as IJ,Rfa as WQ,Vfa as zQ,Zfa as GX,aga as wZ,d_ as CZ,dga as EJ,e_ as v0,pga as MZ,rda as u0,tda as ZZ,tea as y,wda as d0,wea as f,xea as RJ,xga as I0}from"./cli-1.1.13-2mrqqgcm.mjs";import{Mga as D0,Nga as LZ,Oga as aQ,Tga as S0,Uga as Jq}from"./cli-1.1.13-kbf9vss4.mjs";import{kha as NJ}from"./cli-1.1.13-h1v6cap9.mjs";import{Hha as bY,vha as FJ}from"./cli-1.1.13-86kjp502.mjs";import{Dia as L0,Fia as fq}from"./cli-1.1.13-ykzv8nyq.mjs";import{rja as S,uja as _Y}from"./cli-1.1.13-zgnxf8h2.mjs";import{cka as cX,uka as _Z,xka as qq}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as $X,Zka as Dq}from"./cli-1.1.13-6c4qxmj3.mjs";import{fla as zJ,hla as XQ,nla as DJ}from"./cli-1.1.13-2m39r998.mjs";import{Gna as nQ,Hna as rQ,Sqa as hq,Tma as Sq,Tna as Nq,Toa as c0,Uoa as WJ,coa as oQ,ina as dQ,jna as lQ,mna as iQ}from"./cli-1.1.13-0y4933cs.mjs";import{Asa as u,Esa as r}from"./cli-1.1.13-jdcqc6bd.mjs";function MY(){let q=Sq(),Q=dq(q)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.13"},{label:"Session name",value:Q},{label:"Session ID",value:q},{label:"cwd",value:L0()},...gq(),...mq()]}function RY({mainLoopModel:q,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:pq(q)},...jq(Z.clients,Y.options.ideInstallationStatus,Q),...$q(Z.clients,Q),...Tq(),..._q()]}async function xq(){return[...await bq(),...await vq(),...await wq()]}function BY(q){let Z=R0.c(8),{value:Q}=q;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let W;if(Z[2]!==Q.length)W=(D,N)=>z(K,{children:[D,N<Q.length-1?",":""]},N),Z[2]=Q.length,Z[3]=W;else W=Z[3];Y=Q.map(W),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(U,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function cq(q){let Z=R0.c(20),{context:Q,diagnosticsPromise:Y}=q,V=EZ(EY),W=EZ(IY),[D]=xZ(),N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=MY(),Z[0]=N;else N=Z[0];let L;if(Z[1]!==Q||Z[2]!==V||Z[3]!==W||Z[4]!==D)L=RY({mainLoopModel:V,mcp:W,theme:D,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=W,Z[4]=D,Z[5]=L;else L=Z[5];let M;if(Z[6]!==L)M=[N,L],Z[6]=L,Z[7]=M;else M=Z[7];let H=M,O=uZ()?1:void 0,F;if(Z[8]!==H)F=H.map(UY),Z[8]=H,Z[9]=F;else F=Z[9];let P;if(Z[10]!==Y)P=G(B0.Suspense,{fallback:null,children:G(CY,{promise:Y})}),Z[10]=Y,Z[11]=P;else P=Z[11];let R;if(Z[12]!==O||Z[13]!==F||Z[14]!==P)R=z(U,{flexDirection:"column",gap:1,flexGrow:O,children:[F,P]}),Z[12]=O,Z[13]=F,Z[14]=P,Z[15]=R;else R=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==O||Z[18]!==R)k=z(U,{flexDirection:"column",flexGrow:O,children:[R,I]}),Z[17]=O,Z[18]=R,Z[19]=k;else k=Z[19];return k}function UY(q,Z){return q.length>0&&G(U,{flexDirection:"column",children:q.map(kY)},Z)}function kY(q,Z){let{label:Q,value:Y}=q;return z(U,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(BY,{value:Y})]},Z)}function IY(q){return q.mcp}function EY(q){return q.mainLoopModel}function CY(q){let Z=R0.c(5),{promise:Q}=q,Y=B0.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let W;if(Z[1]!==Y)W=Y.map(SY),Z[1]=Y,Z[2]=W;else W=Z[2];let D;if(Z[3]!==W)D=z(U,{flexDirection:"column",paddingBottom:1,children:[V,W]}),Z[3]=W,Z[4]=D;else D=Z[4];return D}function SY(q,Z){return z(U,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:CZ.warning}),typeof q==="string"?G(K,{wrap:"wrap",children:q}):q]},Z)}var R0,B0;var uq=r(()=>{v0();hq();M0();SZ();yq();fq();hY();LY();cZ();x();R0=u($Z(),1),B0=u(FZ(),1)});function nq(q){let Z=iq.c(17),{currentVersion:Q,onChoice:Y}=q,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let W=V,D;if(Z[2]!==Y)D=function(){Y("cancel")},Z[2]=Y,Z[3]=D;else D=Z[3];let N=D,L;if(Z[4]!==Q)L=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=L;else L=Z[5];let M;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=M;else M=Z[6];let H;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))H={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=H;else H=Z[7];let O=`Stay on current version (${Q}) until stable catches up`,F;if(Z[8]!==O)F=[H,{label:O,value:"stay"}],Z[8]=O,Z[9]=F;else F=Z[9];let P;if(Z[10]!==W||Z[11]!==F)P=G(lZ,{options:F,onChange:W}),Z[10]=W,Z[11]=F,Z[12]=P;else P=Z[12];let R;if(Z[13]!==N||Z[14]!==L||Z[15]!==P)R=z(dZ,{title:"Switch to Stable Channel",onCancel:N,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[L,M,P]}),Z[13]=N,Z[14]=L,Z[15]=P,Z[16]=R;else R=Z[16];return R}var iq;var rq=r(()=>{SZ();lq();g0();x();iq=u($Z(),1)});function oq(q){return Object.entries(q).map(([Z,Q])=>({label:Q?.name??yY,value:Z,description:Q?.description??TY}))}function ZJ(q){let Z=eq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:W}=q,D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D=[],Z[0]=D;else D=Z[0];let[N,L]=q0.useState(D),[M,H]=q0.useState(!0),O,F;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))O=()=>{sq(L0()).then((d)=>{let m=oq(d);L(m),H(!1)}).catch(()=>{let d=oq(aq);L(d),H(!1)})},F=[],Z[1]=O,Z[2]=F;else O=Z[1],F=Z[2];q0.useEffect(O,F);let P;if(Z[3]!==Y)P=(d)=>{Y(d)},Z[3]=Y,Z[4]=P;else P=Z[4];let R=P,I=!W,k=!W,_;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))_=G(U,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=_;else _=Z[5];let t;if(Z[6]!==R||Z[7]!==Q||Z[8]!==M||Z[9]!==N)t=z(U,{flexDirection:"column",gap:1,children:[_,M?G(K,{dimColor:!0,children:"Loading output styles…"}):G(lZ,{options:N,onChange:R,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=R,Z[7]=Q,Z[8]=M,Z[9]=N,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(dZ,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var eq,q0,yY="Default",TY="Claudin completes coding tasks efficiently and provides concise responses";var qJ=r(()=>{tq();SZ();fq();fY();g0();x();eq=u($Z(),1),q0=u(FZ(),1)});function YJ(q){let Z=QJ.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=q,[W,D]=m0.useState(Q),[N,L]=m0.useState((Q??"").length),M;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))M={context:"Settings"},Z[0]=M;else M=Z[0];b("confirm:no",V,M);let H;if(Z[1]!==W||Z[2]!==Y)H=function(){let w=W?.trim();Y(w||void 0)},Z[1]=W,Z[2]=Y,Z[3]=H;else H=Z[3];let O=H,F;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))F=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=F;else F=Z[4];let P;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))P=G(K,{children:CZ.pointer}),Z[5]=P;else P=Z[5];let R=W??"",I;if(Z[6]!==N||Z[7]!==O||Z[8]!==R)I=z(U,{flexDirection:"row",gap:1,children:[P,G(JJ,{value:R,onChange:D,onSubmit:O,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${CZ.ellipsis}`,columns:60,cursorOffset:N,onChangeCursorOffset:L})]}),Z[6]=N,Z[7]=O,Z[8]=R,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let _;if(Z[11]!==I)_=z(U,{flexDirection:"column",gap:1,children:[F,I,k]}),Z[11]=I,Z[12]=_;else _=Z[12];return _}var QJ,m0;var XJ=r(()=>{v0();SZ();iZ();jY();x();QJ=u($Z(),1),m0=u(FZ(),1)});function GJ(q,{grouped:Z=!0}={}){if(!Z)return q.map((W)=>({kind:"setting",id:W.id,item:W}));let Q=new Map;for(let W of q){let D=Q.get(W.id);if(D)D.push(W);else Q.set(W.id,[W])}let Y=[],V=(W,D)=>{if(D.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${W.id}`});Y.push({kind:"header",id:`header:${W.id}`,label:W.label});for(let N of D)Y.push({kind:"setting",id:N.id,item:N})};for(let W of $Y){let D=[];for(let N of W.settingIds){let L=Q.get(N);if(!L)continue;D.push(...L),Q.delete(N)}V(W,D)}return V(wY,[...Q.values()].flat()),Y}function hZ(q){return q?.kind==="setting"}function Q0(q){return q.findIndex((Z)=>hZ(Z))}function p0(q){for(let Z=q.length-1;Z>=0;Z--)if(hZ(q[Z]))return Z;return-1}function J0(q,Z,Q){for(let Y=Z+Q;Y>=0&&Y<q.length;Y+=Q)if(hZ(q[Y]))return Y;return hZ(q[Z])?Z:Q0(q)}function VJ(q,Z,Q){if(Q===1){for(let V=Z+1;V<q.length;V++)if(q[V]?.kind==="header")return J0(q,V,1);return p0(q)}let Y=-1;for(let V=Z-1;V>=0;V--)if(q[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(q[V]?.kind==="header")return J0(q,V,1);return Q0(q)}function x0(q){return q.reduce((Z,Q)=>hZ(Q)?Z+1:Z,0)}var $Y,wY;var KJ=r(()=>{$Y=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","collapseFileWritesEnabled","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],wY={id:"other",label:"Other",settingIds:[]}});function eJ({onClose:q,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:W,focusHeader:D}=cJ(),N=uZ(),[,L]=xZ(),M=TJ(),[H,O]=v.useState(f()),F=i.useRef(f()),[P,R]=v.useState(d0()),I=i.useRef(d0()),[k,_]=v.useState(P?.outputStyle||U0),t=i.useRef(k),[w,d]=v.useState(P?.language),m=i.useRef(w),[j,QZ]=v.useState(0),[o,YZ]=v.useState(0),[n,zZ]=v.useState(!0),jZ=$J(),[e]=v.useState(()=>n0()),{rows:vZ,columns:XZ}=RZ(),F0=Math.max(24,Math.min(44,XZ-18)),C=V??Math.min(Math.floor(vZ*0.8),30),p=Math.max(5,C-10),BZ=EZ((J)=>J.mainLoopModel),N0=EZ((J)=>J.verbose),gZ=EZ((J)=>J.thinkingEnabled),mZ=EZ((J)=>Y0()?J.fastMode:!1),pZ=EZ((J)=>J.promptSuggestionEnabled),j0=!1,GZ=vJ(),[tZ,E]=v.useState({}),$=i.useRef(gZ),[a]=v.useState(()=>u0("localSettings")),[VZ]=v.useState(()=>u0("userSettings")),HZ=i.useRef(M),eZ=gJ(),[UZ]=v.useState(()=>{let J=eZ.getState();return{mainLoopModel:J.mainLoopModel,mainLoopModelForSession:J.mainLoopModelForSession,verbose:J.verbose,thinkingEnabled:J.thinkingEnabled,fastMode:J.fastMode,promptSuggestionEnabled:J.promptSuggestionEnabled,isBriefOnly:J.isBriefOnly,replBridgeEnabled:J.replBridgeEnabled,replBridgeOutboundOnly:J.replBridgeOutboundOnly,settings:J.settings}}),[$0]=v.useState(()=>c0()),NZ=i.useRef(!1),[HY,Z0]=v.useState(!1),[l,g]=v.useState(null),{query:kZ,setQuery:P0,cursorOffset:WY}=oJ({isActive:n&&l===null&&!W,onExit:()=>zZ(!1),onExitUp:D,passthroughCtrlKeys:["c","d"]}),Mq=n&&!W;i.useEffect(()=>{Y?.(Mq)},[Mq,Y]);let zY=_J(Z.options.mcpClients),DY=!zJ(process.env.CLAUDIN_DISABLE_FILE_CHECKPOINTING),Rq=i.use(qQ(!0)),OY=QQ(Rq),IZ=kJ();function Bq(J){S("",{from_model:BZ,to_model:J}),GZ((A)=>({...A,mainLoopModel:J,mainLoopModelForSession:null})),E((A)=>{let B=k0(J)+(iJ(J,!1,fJ())?" · Billed as extra usage":"");if("model"in A){let{model:h,...DZ}=A;return{...DZ,model:B}}return{...A,model:B}})}function FY(J){y((X)=>({...X,verbose:J})),O({...f(),verbose:J}),GZ((X)=>({...X,verbose:J})),E((X)=>{if("verbose"in X){let{verbose:A,...B}=X;return B}return{...X,verbose:J}})}let w0=[{id:"autoCompactEnabled",label:"Auto-compact",value:H.autoCompactEnabled,type:"boolean",onChange(J){y((X)=>({...X,autoCompactEnabled:J})),O({...f(),autoCompactEnabled:J}),S("",{enabled:J})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:H.thinkingHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,thinkingHistoryRedactionEnabled:J})),O({...f(),thinkingHistoryRedactionEnabled:J}),S("claudin_thinking_history_redaction_setting_changed",{enabled:J})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:H.narrationHistoryRedactionEnabled,type:"boolean",onChange(J){y((X)=>({...X,narrationHistoryRedactionEnabled:J})),O({...f(),narrationHistoryRedactionEnabled:J}),S("claudin_narration_history_redaction_setting_changed",{enabled:J})}},{id:"showCacheStats",label:"Cache stats display",value:H.showCacheStats,options:["off","compact","full"],type:"enum",onChange(J){let X=J==="off"||J==="compact"||J==="full"?J:"compact";y((A)=>({...A,showCacheStats:X})),O({...f(),showCacheStats:X}),S("",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:H.toolResultSummarizerEnabled,type:"boolean",onChange(J){y((X)=>({...X,toolResultSummarizerEnabled:J})),O({...f(),toolResultSummarizerEnabled:J}),S("claudin_tool_result_summarizer_setting_changed",{enabled:J})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:H.bashOutputFilterEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,bashOutputFilterEnabled:J})),O({...f(),bashOutputFilterEnabled:J}),S("claudin_bash_output_filter_setting_changed",{enabled:J})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:H.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(J){y((X)=>({...X,autoBackgroundAgentsEnabled:J})),O({...f(),autoBackgroundAgentsEnabled:J}),S("claudin_auto_background_agents_setting_changed",{enabled:J})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:H.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,repeatedFailureHintEnabled:J})),O({...f(),repeatedFailureHintEnabled:J}),S("claudin_repeated_failure_hint_setting_changed",{enabled:J})}},{id:"collapseFileWritesEnabled",label:"Collapse file writes",value:H.collapseFileWritesEnabled!==!1,type:"boolean",onChange(J){y((X)=>({...X,collapseFileWritesEnabled:J})),O({...f(),collapseFileWritesEnabled:J}),S("claudin_collapse_file_writes_setting_changed",{enabled:J})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:H.workflowsDefaultBackground===!0,type:"boolean",onChange(J){y((X)=>({...X,workflowsDefaultBackground:J})),O({...f(),workflowsDefaultBackground:J})}},{id:"inlineImagesMode",label:"Inline terminal images",value:H.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(J){let X=J==="auto"||J==="enable"||J==="disable"?J:"auto";y((A)=>({...A,inlineImagesMode:X})),O({...f(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:P?.spinnerTipsEnabled??!0,type:"boolean",onChange(J){ZZ("localSettings",{spinnerTipsEnabled:J}),R((X)=>({...X,spinnerTipsEnabled:J})),S("",{enabled:J})}},{id:"prefersReducedMotion",label:"Reduce motion",value:P?.prefersReducedMotion??!1,type:"boolean",onChange(J){ZZ("localSettings",{prefersReducedMotion:J}),R((X)=>({...X,prefersReducedMotion:J})),GZ((X)=>({...X,settings:{...X.settings,prefersReducedMotion:J}})),S("",{enabled:J})}},{id:"thinkingEnabled",label:"Thinking mode",value:gZ??!0,type:"boolean",onChange(J){GZ((X)=>({...X,thinkingEnabled:J})),ZZ("userSettings",{alwaysThinkingEnabled:J?void 0:!1}),S("",{enabled:J})}},...Y0()&&l0()?[{id:"fastMode",label:`Fast mode (${CJ} only)`,value:!!mZ,type:"boolean",onChange(J){if(hJ(),ZZ("userSettings",{fastMode:J?!0:void 0}),J)GZ((X)=>({...X,mainLoopModel:i0(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:i0(),"Fast mode":"ON"}));else GZ((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:pZ,type:"boolean",onChange(J){GZ((X)=>({...X,promptSuggestionEnabled:J})),ZZ("userSettings",{promptSuggestionEnabled:J?void 0:!1})}},...DY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:H.fileCheckpointingEnabled,type:"boolean",onChange(J){y((X)=>({...X,fileCheckpointingEnabled:J})),O({...f(),fileCheckpointingEnabled:J}),S("",{enabled:J})}}]:[],{id:"verbose",label:"Verbose output",value:N0,type:"boolean",onChange:FY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:H.terminalProgressBarEnabled,type:"boolean",onChange(J){y((X)=>({...X,terminalProgressBarEnabled:J})),O({...f(),terminalProgressBarEnabled:J}),S("",{enabled:J})}},...FJ("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:H.showStatusInTerminalTab??!1,type:"boolean",onChange(J){y((X)=>({...X,showStatusInTerminalTab:J})),O({...f(),showStatusInTerminalTab:J}),S("",{enabled:J})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:H.showTurnDuration,type:"boolean",onChange(J){y((X)=>({...X,showTurnDuration:J})),O({...f(),showTurnDuration:J}),S("",{enabled:J})}},{id:"defaultPermissionMode",label:"Default permission mode",value:P?.permissions?.defaultMode||"default",options:(()=>{let J=["default","plan"],X=NJ,A=["bypassPermissions"];return[...J,...X.filter((B)=>!J.includes(B)&&!A.includes(B))]})(),type:"enum",onChange(J){let X=LJ(J),A=PJ(X)?AJ(X):X,B=ZZ("userSettings",{permissions:{...P?.permissions,defaultMode:A}});if(B.error){MZ(B.error);return}R((h)=>({...h,permissions:{...h?.permissions,defaultMode:A}})),E((h)=>({...h,defaultPermissionMode:J})),S("",{setting:"defaultPermissionMode",value:J})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:P?.useAutoModeDuringPlan??!0,type:"boolean",onChange(J){ZZ("userSettings",{useAutoModeDuringPlan:J}),R((X)=>({...X,useAutoModeDuringPlan:J})),GZ((X)=>{let A=o0(X.toolPermissionContext);if(A===X.toolPermissionContext)return X;return{...X,toolPermissionContext:A}}),E((X)=>({...X,"Use auto mode during plan":J}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:H.respectGitignore,type:"boolean",onChange(J){y((X)=>({...X,respectGitignore:J})),O({...f(),respectGitignore:J}),S("",{enabled:J})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:H.copyFullResponse,type:"boolean",onChange(J){y((X)=>({...X,copyFullResponse:J})),O({...f(),copyFullResponse:J}),S("",{setting:"copyFullResponse",value:String(J)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:H.copyOnSelect??!0,type:"boolean",onChange(J){y((X)=>({...X,copyOnSelect:J})),O({...f(),copyOnSelect:J}),S("",{setting:"copyOnSelect",value:String(J)})}}]:[],{id:"terminalRenderer",label:jJ()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:n0()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(J){let X=J==="fullscreen";y((A)=>({...A,flickerFreeMode:X})),O({...f(),flickerFreeMode:X}),S("",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:sJ()?`Frame rate (env, ${s0()}fps)`:`Frame rate (${s0()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:H.renderFrameRate??"auto",options:[...aJ],type:"enum",onChange(J){y((X)=>({...X,renderFrameRate:J})),O({...f(),renderFrameRate:J}),S("",{setting:"renderFrameRate",value:String(J)})}},IZ?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:P?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:M,type:"managedEnum",onChange:L},{id:"notifChannel",label:"Notifications",value:H.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(J){y((X)=>({...X,preferredNotifChannel:J})),O({...f(),preferredNotifChannel:J})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:H.editorMode==="emacs"?"normal":H.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(J){y((X)=>({...X,editorMode:J})),O({...f(),editorMode:J}),S("",{mode:J,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:H.prStatusFooterEnabled??!0,type:"boolean",onChange(J){y((X)=>{if(X.prStatusFooterEnabled===J)return X;return{...X,prStatusFooterEnabled:J}}),O({...f(),prStatusFooterEnabled:J}),S("",{enabled:J})}},{id:"model",label:"Model",value:BZ===null?"Default (recommended)":BZ,type:"managedEnum",onChange:Bq},...zY?[{id:"diffTool",label:"Diff tool",value:H.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(J){y((X)=>({...X,diffTool:J})),O({...f(),diffTool:J}),S("",{tool:J,source:"config_panel"})}}]:[],...!r0()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:H.autoConnectIde??!1,type:"boolean",onChange(J){y((X)=>({...X,autoConnectIde:J})),O({...f(),autoConnectIde:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...r0()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:H.autoInstallIdeExtension??!0,type:"boolean",onChange(J){y((X)=>({...X,autoInstallIdeExtension:J})),O({...f(),autoInstallIdeExtension:J}),S("",{enabled:J,source:"config_panel"})}}]:[],...bJ()?(()=>{let J=mJ();return[{id:"teammateMode",label:J?`Teammate mode [overridden: ${J}]`:"Teammate mode",value:H.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(A){if(A!=="auto"&&A!=="tmux"&&A!=="in-process")return;pJ(A),y((B)=>({...B,teammateMode:A})),O({...f(),teammateMode:A}),S("",{mode:A})}},{id:"teammateDefaultModel",label:"Default teammate model",value:HJ(H.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...dJ()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:H.remoteControlAtStartup===void 0?"default":String(H.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(J){if(J==="default")y((A)=>{if(A.remoteControlAtStartup===void 0)return A;let B={...A};return delete B.remoteControlAtStartup,B}),O({...f(),remoteControlAtStartup:void 0});else{let A=J==="true";y((B)=>{if(B.remoteControlAtStartup===A)return B;return{...B,remoteControlAtStartup:A}}),O({...f(),remoteControlAtStartup:A})}let X=RJ();GZ((A)=>{if(A.replBridgeEnabled===X&&!A.replBridgeOutboundOnly)return A;return{...A,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...OY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(BJ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let J=wZ(),X=J?.transport==="anthropic"?J.apiKey?.trim():void 0;if(!X)return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:nZ(X)})]}),searchText:"Use custom API key",value:Boolean(H.customApiKeyResponses?.approved?.includes(nZ(X))),type:"boolean",onChange(A){y((B)=>{let h={...B};if(!h.customApiKeyResponses)h.customApiKeyResponses={approved:[],rejected:[]};if(!h.customApiKeyResponses.approved)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[]};if(!h.customApiKeyResponses.rejected)h.customApiKeyResponses={...h.customApiKeyResponses,rejected:[]};{let DZ=nZ(X);if(A)h.customApiKeyResponses={...h.customApiKeyResponses,approved:[...(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),DZ],rejected:(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ)};else h.customApiKeyResponses={...h.customApiKeyResponses,approved:(h.customApiKeyResponses.approved??[]).filter((OZ)=>OZ!==DZ),rejected:[...(h.customApiKeyResponses.rejected??[]).filter((OZ)=>OZ!==DZ),DZ]}}return h}),O(f())}}]})()],Uq=i.useMemo(()=>{if(!kZ)return w0;let J=kZ.toLowerCase();return w0.filter((X)=>{if(X.id.toLowerCase().includes(J))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(J)})},[w0,kZ]),s=i.useMemo(()=>GJ(Uq,{grouped:kZ===""}),[Uq,kZ]),kq=x0(s.slice(0,o)),Iq=x0(s.slice(o+p));i.useEffect(()=>{if(j>=s.length){let J=Math.max(0,p0(s));QZ(J),YZ(Math.max(0,J-p+1));return}if(!hZ(s[j])){let J=Math.max(0,J0(s,j,1));QZ(J),YZ((X)=>J>=X+p?J-p+1:X);return}YZ((J)=>{if(j<J)return j;if(j>=J+p)return j-p+1;return J})},[s,j,p]);let _0=v.useCallback((J)=>{YZ((X)=>{if(J<X)return J;if(J>=X+p)return J-p+1;return X})},[p]),NY=v.useCallback(()=>{if(l!==null)return;let J=Object.entries(tZ).map(([OZ,Cq])=>{return S("",{key:OZ,value:Cq}),`Set ${OZ} to ${KZ.bold(Cq)}`}),X=wZ(),B=X?.transport==="anthropic"?X.apiKey?.trim():void 0,h=Boolean(B&&F.current.customApiKeyResponses?.approved?.includes(nZ(B))),DZ=Boolean(B&&H.customApiKeyResponses?.approved?.includes(nZ(B)));if(h!==DZ)J.push(`${DZ?"Enabled":"Disabled"} custom API key`),S("",{key:"env.ANTHROPIC_API_KEY",value:DZ});if(H.theme!==F.current.theme)J.push(`Set theme to ${KZ.bold(H.theme)}`);if(H.preferredNotifChannel!==F.current.preferredNotifChannel)J.push(`Set notifications to ${KZ.bold(H.preferredNotifChannel)}`);if(k!==t.current)J.push(`Set output style to ${KZ.bold(k)}`);if(w!==m.current)J.push(`Set response language to ${KZ.bold(w??"Default (English)")}`);if(H.editorMode!==F.current.editorMode)J.push(`Set editor mode to ${KZ.bold(H.editorMode||"emacs")}`);if(H.diffTool!==F.current.diffTool)J.push(`Set diff tool to ${KZ.bold(H.diffTool)}`);if(H.autoConnectIde!==F.current.autoConnectIde)J.push(`${H.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(H.autoInstallIdeExtension!==F.current.autoInstallIdeExtension)J.push(`${H.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(H.autoCompactEnabled!==F.current.autoCompactEnabled)J.push(`${H.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(H.thinkingHistoryRedactionEnabled!==F.current.thinkingHistoryRedactionEnabled)J.push(`${H.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(H.narrationHistoryRedactionEnabled!==F.current.narrationHistoryRedactionEnabled)J.push(`${H.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(H.toolResultSummarizerEnabled!==F.current.toolResultSummarizerEnabled)J.push(`${H.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(H.autoBackgroundAgentsEnabled!==F.current.autoBackgroundAgentsEnabled)J.push(`${H.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(H.workflowsDefaultBackground!==F.current.workflowsDefaultBackground)J.push(`${H.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(H.bashOutputFilterEnabled!==F.current.bashOutputFilterEnabled)J.push(`${H.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(H.repeatedFailureHintEnabled!==F.current.repeatedFailureHintEnabled)J.push(`${H.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(H.collapseFileWritesEnabled!==F.current.collapseFileWritesEnabled)J.push(`${H.collapseFileWritesEnabled!==!1?"Enabled":"Disabled"} collapse file writes`);if(H.respectGitignore!==F.current.respectGitignore)J.push(`${H.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(H.copyFullResponse!==F.current.copyFullResponse)J.push(`${H.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(H.copyOnSelect!==F.current.copyOnSelect)J.push(`${H.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(H.flickerFreeMode!==F.current.flickerFreeMode)J.push(`Set terminal UI renderer to ${KZ.bold(H.flickerFreeMode?"fullscreen":"default")}`);if(H.renderFrameRate!==F.current.renderFrameRate)J.push(`Set frame rate to ${KZ.bold(H.renderFrameRate??"auto")} (applies on restart)`);if(H.terminalProgressBarEnabled!==F.current.terminalProgressBarEnabled)J.push(`${H.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(H.showStatusInTerminalTab!==F.current.showStatusInTerminalTab)J.push(`${H.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(H.showTurnDuration!==F.current.showTurnDuration)J.push(`${H.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(H.remoteControlAtStartup!==F.current.remoteControlAtStartup){let OZ=H.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${H.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;J.push(OZ)}if(P?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)J.push(`Set auto-update channel to ${KZ.bold(P?.autoUpdatesChannel??"latest")}`);if(J.length>0)q(J.join(`
2
- `));else q("Config dialog dismissed",{display:"system"})},[l,tZ,H,BZ,k,w,P?.autoUpdatesChannel,Y0()?P?.fastMode:void 0,q]),Eq=v.useCallback(()=>{if(M!==HZ.current)L(HZ.current);y(()=>F.current);let J=a;ZZ("localSettings",{spinnerTipsEnabled:J?.spinnerTipsEnabled,prefersReducedMotion:J?.prefersReducedMotion,defaultView:J?.defaultView,outputStyle:J?.outputStyle});let X=VZ;ZZ("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let A=UZ;if(GZ((B)=>({...B,mainLoopModel:A.mainLoopModel,mainLoopModelForSession:A.mainLoopModelForSession,verbose:A.verbose,thinkingEnabled:A.thinkingEnabled,fastMode:A.fastMode,promptSuggestionEnabled:A.promptSuggestionEnabled,isBriefOnly:A.isBriefOnly,replBridgeEnabled:A.replBridgeEnabled,replBridgeOutboundOnly:A.replBridgeOutboundOnly,settings:A.settings,toolPermissionContext:o0(B.toolPermissionContext)})),c0()!==$0)WJ($0)},[M,L,a,VZ,UZ,$0,GZ]),PY=v.useCallback(()=>{if(l!==null)return;if(NZ.current)Eq();q("Config dialog dismissed",{display:"system"})},[l,Eq,q]);b("confirm:no",PY,{context:"Settings",isActive:l===null&&!n&&!W}),b("settings:close",NY,{context:"Settings",isActive:l===null&&!n&&!W});let b0=v.useCallback(()=>{let J=s[j];if(!hZ(J))return;let X=J.item;if(!X.onChange)return;if(X.type==="boolean"){if(NZ.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===$.current)Z0(!1);else if(Z.messages.some((h)=>h.type==="assistant"))Z0(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(IZ){g("EnableAutoUpdates"),Q(!0);return}if((P?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else NZ.current=!0,ZZ("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),R((B)=>({...B,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("",{channel:"latest"});return}if(X.type==="enum"){NZ.current=!0;let B=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[B]);return}},[IZ,s,j,P?.autoUpdatesChannel,Q]),A0=(J)=>{Z0(!1);let X=J0(s,j,J);if(X<0)return;QZ(X),_0(X)};wJ({"select:previous":()=>{let J=Q0(s);if(J<0||j<=J)Z0(!1),zZ(!0),YZ(0);else A0(-1)},"select:next":()=>A0(1),"scroll:lineUp":()=>A0(-1),"scroll:lineDown":()=>A0(1),"select:accept":b0,"settings:search":()=>{zZ(!0),P0("")}},{context:"Settings",isActive:l===null&&!n&&!W});let AY=v.useCallback((J)=>{if(l!==null)return;if(W)return;if(n){if(J.key==="escape"){if(J.preventDefault(),kZ.length>0)P0("");else zZ(!1);return}if(J.key==="return"||J.key==="down"||J.key==="wheeldown")J.preventDefault(),zZ(!1),QZ(Math.max(0,Q0(s))),YZ(0);return}if(J.key==="left"||J.key==="right"||J.key==="tab"){J.preventDefault(),b0();return}if(J.key==="["||J.key==="]"){J.preventDefault();let X=VJ(s,j,J.key==="["?-1:1);if(X>=0)Z0(!1),QZ(X),_0(X);return}if(J.ctrl||J.meta)return;if(J.key==="j"||J.key==="k"||J.key==="/")return;if(J.key.length===1&&J.key!==" ")J.preventDefault(),zZ(!0),P0(J.key)},[l,W,n,kZ,P0,b0,s,j,_0]);return G(U,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:AY,children:l==="Theme"?z(WZ,{children:[G(lJ,{onThemeSelect:(J)=>{NZ.current=!0,L(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(U,{children:G(K,{dimColor:!0,italic:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):l==="Model"?z(WZ,{children:[G(a0,{initial:BZ,onSelect:(J,X)=>{NZ.current=!0,Bq(J),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:Y0()?mZ&&SJ(BZ)&&l0():!1}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):l==="TeammateModel"?z(WZ,{children:[G(a0,{initial:H.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(J,X)=>{if(g(null),Q(!1),H.teammateDefaultModel===void 0&&J===null)return;NZ.current=!0,y((A)=>A.teammateDefaultModel===J?A:{...A,teammateDefaultModel:J}),O({...f(),teammateDefaultModel:J}),E((A)=>({...A,teammateDefaultModel:HJ(J)})),S("",{model:J})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):l==="ExternalIncludes"?z(WZ,{children:[G(nJ,{onDone:()=>{g(null),Q(!1)},externalIncludes:JQ(Rq)}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):l==="OutputStyle"?z(WZ,{children:[G(ZJ,{initialStyle:k,onComplete:(J)=>{NZ.current=!0,_(J??U0),g(null),Q(!1),ZZ("localSettings",{outputStyle:J}),S("",{style:J??U0,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):l==="Language"?z(WZ,{children:[G(YJ,{initialLanguage:w,onComplete:(J)=>{NZ.current=!0,d(J),g(null),Q(!1),ZZ("userSettings",{language:J}),S("",{language:J??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):l==="EnableAutoUpdates"?G(dZ,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:IZ?.type!=="config"?z(WZ,{children:[G(K,{children:IZ?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),IZ?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",IZ.envVar," to re-enable auto-updates."]})]}):G(lZ,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(J)=>{NZ.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),O({...f(),autoUpdates:!0}),ZZ("userSettings",{autoUpdatesChannel:J,minimumVersion:void 0}),R((X)=>({...X,autoUpdatesChannel:J,minimumVersion:void 0})),S("",{channel:J})}})}):l==="ChannelDowngrade"?G(nq,{currentVersion:"99.0.0",onChoice:(J)=>{if(g(null),Q(!1),J==="cancel")return;NZ.current=!0;let X={autoUpdatesChannel:"stable"};if(J==="stay")X.minimumVersion="99.0.0";ZZ("userSettings",X),R((A)=>({...A,...X})),S("",{channel:"stable",minimum_version_set:J==="stay"})}}):z(U,{flexDirection:"column",gap:1,marginY:N?void 0:1,children:[G(rJ,{query:kZ,isFocused:n&&!W,isTerminalFocused:jZ,cursorOffset:WY,placeholder:"Search settings…"}),G(U,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',kZ,'"']}):z(WZ,{children:[kq>0&&z(K,{dimColor:!0,children:[CZ.arrowUp," ",kq," more above"]}),s.slice(o,o+p).map((J,X)=>{let A=o+X;if(J.kind==="spacer")return G(K,{children:" "},J.id);if(J.kind==="header")return z(K,{dimColor:!0,children:[" ",J.label]},J.id);let B=J.item,h=A===j&&!W&&!n;return G(i.Fragment,{children:z(U,{children:[G(U,{width:F0,flexShrink:0,paddingRight:1,children:z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:[h?CZ.pointer:" "," ",B.label]})}),G(U,{children:B.type==="boolean"?z(WZ,{children:[G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()}),HY&&B.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):B.id==="theme"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:JX[B.value.toString()]??B.value.toString()}):B.id==="notifChannel"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:G(QX,{value:B.value.toString()})}):B.id==="defaultPermissionMode"?G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:MJ(B.value)}):B.id==="autoUpdatesChannel"&&IZ?z(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",UJ(IZ),")"]})]}):G(K,{color:h?"suggestion":void 0,wrap:"truncate-end",children:B.value.toString()})},h?"selected":"unselected")]})},B.id)}),Iq>0&&z(K,{dimColor:!0,children:[CZ.arrowDown," ",Iq," more below"]})]})}),W?G(K,{dimColor:!0,children:z(qZ,{children:[G(PZ,{shortcut:"←/→ tab",action:"switch"}),G(PZ,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(qZ,{children:[G(K,{children:"Type to filter"}),G(PZ,{shortcut:"Enter/↓",action:"select"}),G(PZ,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function HJ(q){if(q===void 0)return k0(xJ());if(q===null)return"Default (leader's model)";return k0(q)}function QX(q){let Z=tJ.c(4),{value:Q}=q;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var tJ,i,v,JX;var ZQ=r(()=>{SZ();iZ();v0();IJ();mY();EJ();IJ();OJ();vY();nY();I0();_Y();rY();oY();yq();aY();yJ();sY();tY();rq();g0();lq();qJ();XJ();YX();cY();cZ();E0();uJ();M0();eY();uY();gY();hq();tq();DJ();bY();dY();lY();iY();ZX();X0();pY();xY();qX();KJ();x();tJ=u($Z(),1),i=u(FZ(),1),v=u(FZ(),1);JX={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)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function V0(q){return typeof q==="object"&&q!==null}function AZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function rZ(q){return typeof q==="number"&&Number.isFinite(q)?q:void 0}function t0(q){return typeof q==="boolean"?q:void 0}function e0(q){let Z=rZ(q);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function C0(q){if(!V0(q))return;let Z=rZ(q.used_percent)??rZ(q.usedPercent);if(Z===void 0)return;let Q=rZ(q.window_minutes)??rZ(q.windowDurationMins)??(()=>{let V=rZ(q.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=e0(q.resets_at)??e0(q.resetsAt)??e0(q.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(q){if(!V0(q))return;let Z=t0(q.has_credits)??t0(q.hasCredits)??!1,Q=t0(q.unlimited)??!1,Y=AZ(q.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function G0(q,Z){if(!V0(q))return;let Q=AZ(q.limit_name)??AZ(q.limitName)??AZ(q.limit_id)??AZ(q.limitId)??Z,Y=C0(q.primary)??C0(q.primary_window),V=C0(q.secondary)??C0(q.secondary_window),W=DQ(q.credits);if(!Y&&!V&&!W)return;return{limitName:Q,primary:Y,secondary:V,credits:W}}function Zq(q,Z="codex"){if(Array.isArray(q))return q.map((Q,Y)=>G0(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!V0(q))return[];return Object.entries(q).map(([Q,Y])=>G0(Y,Q)).filter((Q)=>Q!==void 0)}function VX(q){let Z=AZ(q.plan_type)??AZ(q.planType),Q=[],Y=DQ(q.credits),V=G0(q.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let W=G0(q.code_review_rate_limit,"code review");if(W)Q.push(W);return Q.push(...Zq(q.additional_rate_limits??q.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function KX(q){if(Array.isArray(q))return{snapshots:Zq(q)};if(!V0(q))return{snapshots:[]};if("rate_limit"in q||"code_review_rate_limit"in q||"additional_rate_limits"in q||"credits"in q)return VX(q);let Z=q.rate_limits??q.rateLimits??q.rate_limits_by_limit_id??q.rateLimitsByLimitId;if(Z!==void 0)return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Zq(Z)};let Q=G0(q,"codex");return{planType:AZ(q.plan_type)??AZ(q.planType),snapshots:Q?[Q]:[]}}function oZ(q){if(!q)return q;return q[0].toUpperCase()+q.slice(1)}function YQ(q,Z){if(q===void 0||q<=0)return Z;if(q===10080)return"weekly";if(q%1440===0)return`${q/1440}d`;if(q%60===0)return`${q/60}h`;return`${q}m`}function HX(q){let Z=q?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function WX(q){if(!q?.hasCredits)return;if(q.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=HX(q.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function OQ(q){let Z=[];for(let Q of q){let Y=Q.limitName.trim()||"codex",V=WX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let D=Y.toLowerCase()!=="codex",N=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),L=D&&N===1;if(D&&!L)Z.push({kind:"text",label:`${oZ(Y)} limit`,value:""});if(Q.primary){let M=oZ(YQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let M=oZ(YQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:L?`${oZ(Y)} ${M} limit`:`${M} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function FQ(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>oZ(Z.toLowerCase())).join(" ")}function zX(q=KQ){return new URL("/backend-api/wham/usage",q).toString()}async function NQ(){let q=await VQ().catch(async(V)=>{return _Z(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await GQ()}}),Z=WQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=zQ({storedCredentials:q.credentials});if(!Q.apiKey){let V=XQ()?"":", choose Codex OAuth in /provider",W=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${W}.`)}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 Y=await fetch(zX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return KX(await Y.json())}var PQ=r(()=>{XX();qq();DJ();GX()});function DX({label:q,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),W=`${Math.floor(V)}% used`,D=Q?`Resets ${S0(Q,!0,!0)}`:void 0;if(Y>=62)return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:q}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]}),D?G(K,{dimColor:!0,children:D}):null]});return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),D?z(WZ,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",D]})]}):null]}),G(sZ,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:W})]})}function OX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function LQ(){let[q,Z]=aZ.useState(null),[Q,Y]=aZ.useState(null),[V,W]=aZ.useState(!0),{columns:D}=RZ(),N=D-2,L=Math.min(N,80),M=AQ.useCallback(async()=>{W(!0),Y(null);try{Z(await NQ())}catch(F){MZ(F),Y(F instanceof Error?F.message:"Failed to load Codex usage")}finally{W(!1)}},[]);if(aZ.useEffect(()=>{M()},[M]),b("settings:retry",()=>{M()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let H=OQ(q.snapshots),O=FQ(q.planType);return z(U,{flexDirection:"column",gap:1,width:"100%",children:[O?z(K,{dimColor:!0,children:["Plan: ",O]}):null,H.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,H.map((F,P)=>F.kind==="window"?G(DX,{label:F.label,usedPercent:F.usedPercent,resetsAt:F.resetsAt,maxWidth:L},`${F.label}-${P}`):G(OX,{label:F.label,value:F.value},`${F.label}-${P}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var AQ,aZ;var MQ=r(()=>{X0();SZ();iZ();PQ();Jq();I0();cZ();E0();Qq();x();AQ=u(FZ(),1),aZ=u(FZ(),1)});var K0="https://api.minimax.io/v1",H0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var Yq=()=>{};function fZ(q){return typeof q==="object"&&q!==null}function JZ(q){return typeof q==="string"&&q.trim()?q.trim():void 0}function Gq(q){if(typeof q==="number"&&Number.isFinite(q))return q;if(typeof q==="string"&&q.trim()){let Z=Number.parseFloat(q);if(Number.isFinite(Z))return Z}return}function h0(q){return Math.max(0,Math.min(100,Math.round(q)))}function FX(q){if(typeof q==="string"){let Y=Date.parse(q);return Number.isNaN(Y)?q:new Date(Y).toISOString()}let Z=Gq(q);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(q,Z){let Q=Gq(q);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return FX(q)}function W0(q,Z){for(let Q of Z){let Y=Gq(q[Q]);if(Y!==void 0)return Y}return}function PX(q,Z){for(let Q of Z)if(q[Q]!==void 0)return NX(q[Q],Q);return}function z0(q,Z){return Z.some((Q)=>q[Q]!==void 0)}function UQ(q){return q?q[0].toUpperCase()+q.slice(1):q}function AX(q){if(!q)return"MiniMax";let Z=q.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>UQ(Q.toLowerCase())).join(" ")}function LX(q){if(!q)return;return q.split(/[_\s-]+/).filter(Boolean).map((Z)=>UQ(Z.toLowerCase())).join(" ")}function kQ(q,Z){let Q=W0(q,Z.percentKeys),Y=W0(q,Z.remainingPercentKeys),V=W0(q,Z.totalKeys),W=W0(q,Z.remainingKeys),D=W0(q,Z.usedKeys),N=V!==void 0&&D!==void 0?V-D:W,L;if(V!==void 0&&V>0&&D!==void 0)L=h0(D/V*100);else if(V!==void 0&&V>0&&W!==void 0)L=h0((V-W)/V*100);else if(Q!==void 0)L=h0(Q);else if(Y!==void 0)L=h0(100-Y);if(L===void 0)return;return{label:Z.label,usedPercent:L,remaining:N,total:V,resetsAt:PX(q,Z.resetKeys)}}function MX(q){let Z=JZ(q.label)??JZ(q.name)??JZ(q.window_name)??JZ(q.windowName)??"Limit";return kQ(q,{label:Z,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 BX(q){if(z0(q,RX))return!0;return IQ.some((Z)=>z0(q,Z.totalKeys)||z0(q,Z.remainingKeys)||z0(q,Z.usedKeys)||z0(q,Z.percentKeys))}function Xq(q,Z){if(!fZ(q))return;let Q=IQ.map((V)=>kQ(q,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=MX(q);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:JZ(q.limit_name)??JZ(q.limitName)??JZ(q.model_name)??JZ(q.modelName)??JZ(q.name)??Z,windows:Q}}function RQ(q,Z="MiniMax"){if(Array.isArray(q))return q.map((Q,Y)=>Xq(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!fZ(q))return[];if(BX(q)){let Q=Xq(q,Z);return Q?[Q]:[]}return Object.entries(q).map(([Q,Y])=>Xq(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(q=H0,Z){return{availability:"unknown",planType:Z,snapshots:[],message:q}}function Vq(q){if(!fZ(q))return BQ();let Z=LX(JZ(q.plan_type)??JZ(q.planType)??JZ(q.subscription_type)??JZ(q.subscriptionType)??JZ(q.plan_name)??JZ(q.planName)),Y=[q.data,q.result,q.model_remains,q.modelRemains,q.remains,q.usage,q.quotas,q.models,fZ(q.data)?q.data.model_remains:void 0,fZ(q.data)?q.data.modelRemains:void 0,fZ(q.data)?q.data.models:void 0,fZ(q.data)?q.data.quotas:void 0,fZ(q.data)?q.data.remains:void 0].flatMap((W)=>RQ(W)).filter((W,D,N)=>{let L=`${W.limitName}:${W.windows.map((M)=>M.label).join("|")}`;return N.findIndex((M)=>`${M.limitName}:${M.windows.map((H)=>H.label).join("|")}`===L)===D});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(q);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function UX(q){if(q.remaining===void 0||q.total===void 0||q.total<=0)return;return`${q.remaining}/${q.total} remaining`}function Kq(q){let Z=[];for(let Q of q){let Y=AX(Q.limitName),V=Y.toLowerCase()!=="minimax",W=V&&Q.windows.length===1;if(V&&!W)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let D of Q.windows)Z.push({kind:"window",label:W?`${Y} ${D.label}`:D.label,usedPercent:D.usedPercent,resetsAt:D.resetsAt,extraSubtext:UX(D)})}return Z}var IQ,RX;var Hq=r(()=>{Yq();IQ=[{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"]}],RX=["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 IX(q){return q.replace(/\/+$/,"")}function EX(q=wZ()?.baseUrl??K0){let Z=q.trim();return Z?IX(Z):K0}function CX(q){let Z=q??wZ()?.baseUrl;if(!Z?.trim())return{baseUrl:K0,usedDefault:!0};return{baseUrl:EX(Z),usedDefault:!1}}function EQ(q){return{availability:"unknown",snapshots:[],message:q}}function SQ(q){let{baseUrl:Z,usedDefault:Q}=CX(q);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${K0}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function Wq(){let q=wZ()?.apiKey;if(!q)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=SQ(),Q=[],Y=null;for(let V of Z){let W;try{W=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${q}`,"Content-Type":"application/json","User-Agent":CQ()},signal:AbortSignal.timeout(5000)})}catch(N){_Z(`[minimax] usage request failed for ${V}: ${N instanceof Error?N.message:String(N)}`,{level:"warn"}),Y=N instanceof Error?N:Error(String(N));continue}if(!W.ok){let N=await W.text().catch(()=>"");if([400,401,403,404].includes(W.status)){Q.push({status:W.status,body:N});continue}Y=Error(`MiniMax usage error ${W.status}: ${N||"unknown error"}`);continue}let D=Vq(await W.json());if(D.availability==="available")return D}if(Q.length>0){let V=Q[Q.length-1];return _Z(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),EQ(H0)}if(Y)throw Y;return EQ(H0)}var hQ=r(()=>{EJ();qq();kX();Yq();Hq()});var fQ=r(()=>{Hq();hQ()});function fX(q){let Z=Math.max(1,Math.ceil(q/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function yX(q,Z){if(!q)return;let Q=Date.parse(q);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${fX(Y)}`}function TX({label:q,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:W}){let D=Math.max(0,Math.min(100,Z)),N=`${Math.floor(D)}% used`,L=yX(Q,W),M=[N,Y].filter((H)=>Boolean(H));return z(U,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:q}),L?z(K,{dimColor:!0,children:[" · ",L]}):null]}),z(U,{flexDirection:"row",gap:1,children:[G(sZ,{ratio:D/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),M.length>0?G(K,{dimColor:!0,children:M.join(" · ")}):null]})]})}function jX({label:q,value:Z}){if(!Z)return G(K,{bold:!0,children:q});return z(K,{children:[G(K,{bold:!0,children:q}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function TQ(){let[q,Z]=yZ.useState(null),[Q,Y]=yZ.useState(null),[V,W]=yZ.useState(!0),[D,N]=yZ.useState(()=>Date.now()),{columns:L}=RZ(),M=L-2,H=Math.min(M,80),O=yQ.useCallback(async()=>{W(!0),Y(null);try{Z(await Wq())}catch(P){MZ(P),Y(P instanceof Error?P.message:"Failed to load MiniMax usage")}finally{W(!1)}},[]);if(yZ.useEffect(()=>{O()},[O]),yZ.useEffect(()=>{let P=setInterval(()=>{N(Date.now())},SX);return()=>clearInterval(P)},[]),b("settings:retry",()=>{O()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(U,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(qZ,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!q)return z(U,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let F=q.availability==="available"?Kq(q.snapshots):[];return z(U,{flexDirection:"column",gap:1,width:"100%",children:[q.planType?z(K,{dimColor:!0,children:["Plan: ",q.planType]}):null,q.availability==="unknown"?G(K,{dimColor:!0,children:q.message}):F.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,F.map((P,R)=>P.kind==="window"?G(TX,{label:P.label,usedPercent:P.usedPercent,resetsAt:P.resetsAt,extraSubtext:P.extraSubtext,maxWidth:H,nowMs:D},`${P.label}-${R}`):G(jX,{label:P.label,value:P.value},`${P.label}-${R}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var yQ,yZ,SX=30000,hX=18;var jQ=r(()=>{X0();SZ();iZ();fQ();I0();cZ();E0();Qq();x();yQ=u(FZ(),1),yZ=u(FZ(),1)});function $Q({providerLabel:q}){return z(U,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",q,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var wQ=r(()=>{SZ();cZ();x()});import{readdir as gQ,readFile as mQ}from"fs/promises";import{join as zq}from"path";async function _Q(q,Z){let Q;try{Q=await mQ(q,"utf-8")}catch(V){if(!Dq(V))_Z(`usageContribution: skip ${q}: ${String(V)}`);return 0}if(Q.length>Oq)return 0;let Y=0;for(let V of Q.split(`
3
- `)){if(!V)continue;let W;try{W=JSON.parse(V)}catch{continue}if(W.type!=="assistant")continue;if(!W.timestamp)continue;let D=Date.parse(W.timestamp);if(Number.isNaN(D)||D<Z)continue;let N=W.message?.usage;if(!N)continue;Y+=(N.input_tokens??0)+(N.output_tokens??0)+(N.cache_creation_input_tokens??0)+(N.cache_read_input_tokens??0)}return Y}async function pQ(q){let Z;try{Z=await gQ(q,{withFileTypes:!0})}catch(Y){if(Dq(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=zq(q,Y.name);if(Y.isDirectory())Q.push(...await pQ(V));else if(Y.isFile()&&pX.test(Y.name))Q.push(V)}return Q}async function xX(q){let Z=q.replace(/\.jsonl$/,".meta.json");try{let Q=await mQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function Fq(q){let Z=Date.now()-bX[q],Q={window:q,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=bQ(),V;try{V=await gQ(Y,{withFileTypes:!0})}catch{return Q}let W=V.filter((O)=>O.isDirectory()).map((O)=>zq(Y,O.name)),D=0,N=0,L=0,M=new Map;for(let O=0;O<W.length;O++){let F=W[O],P=await vQ(F);for(let[R,I]of P){if(I.mtime<Z)continue;let k=I.size>Oq?0:await _Q(I.path,Z),_=0,t=zq(F,R,"subagents");for(let d of await pQ(t)){let m=await _Q(d,Z);if(m<=0)continue;_+=m;let j=await xX(d);M.set(j,(M.get(j)??0)+m)}let w=k+_;if(w<=0)continue;if(L++,D+=w,_/w>vX)N+=w}if(O%10===9)await new Promise((R)=>setImmediate(R))}if(D===0)return Q;let H=[...M.entries()].map(([O,F])=>({agentType:O,tokens:F,pct:F/D*100})).filter((O)=>O.tokens/D>=gX).sort((O,F)=>F.tokens-O.tokens).slice(0,mX);return{window:q,totalTokens:D,sessionCount:L,subagentHeavyPct:N/D*100,agentBreakdown:H}}var bX,vX=0.5,gX=0.05,mX=5,pX;var xQ=r(()=>{qq();$X();wX();_X();bX={day:86400000,week:604800000},pX=/^agent-.*\.jsonl$/});function cQ(q){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:W,linesRemoved:D,modelUsage:N,unknownCost:L,bytesSaved:M}=q,H=Object.entries(N);if(Q===0&&H.length===0&&W===0&&D===0)return null;let O={};for(let[P,R]of H){let I=Pq(P);if(!O[I])O[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=O[I];k.inputTokens+=R.inputTokens,k.outputTokens+=R.outputTokens,k.cacheReadInputTokens+=R.cacheReadInputTokens,k.cacheCreationInputTokens+=R.cacheCreationInputTokens,k.webSearchRequests+=R.webSearchRequests,k.costUSD+=R.costUSD}let F=Object.entries(O);return z(U,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:bZ(Q)}),L&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",D0(Y)]}),z(K,{children:["Total duration (wall): ",D0(V)]}),z(K,{children:["Total code changes: ",W," ",W===1?"line":"lines"," added, ",D," ",D===1?"line":"lines"," removed"]}),M!==void 0&&M>0&&z(K,{children:["Context tokens saved: ~",aQ(M/ZY)," tokens"]}),F.length>0&&G(K,{children:"Usage by model:"}),F.map(([P,R])=>{let I=`${LZ(R.inputTokens)} input, ${LZ(R.outputTokens)} output`;if(R.cacheReadInputTokens>0)I+=`, ${LZ(R.cacheReadInputTokens)} cache read`;if(R.cacheCreationInputTokens>0)I+=`, ${LZ(R.cacheCreationInputTokens)} cache write`;if(R.webSearchRequests>0)I+=`, ${LZ(R.webSearchRequests)} web search`;return I+=` (${bZ(R.costUSD)})`,z(K,{children:[`${P}:`.padStart(21)," ",I]},P)})]})}function uQ(q={}){let Z=q.view??"global",[,Q]=c.useReducer((D)=>D+1,0);c.useEffect(()=>{let D=setInterval(()=>Q(),1000);return()=>clearInterval(D)},[]);let Y=Nq();if(Z==="session"){let D=dQ(),N=oQ(),L=nQ(),M=rQ();return G(cQ,{title:"Current session",totalCost:D,apiDuration:lQ(),wallDuration:iQ(),linesAdded:L,linesRemoved:M,modelUsage:N,unknownCost:Y,bytesSaved:qY()})}let V=Aq();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(U,{flexDirection:"column",gap:1,children:[G(cQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function Lq(q={}){if((q.view??"global")==="session")return G(U,{flexDirection:"column",gap:1,width:"100%",children:G(uQ,{view:"session"})});let Q=sQ();if(Q==="firstParty")return G(ZG,{});let Y;if(Q==="codex")Y=G(LQ,{});else if(Q==="minimax")Y=G(TQ,{});else{let V={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";Y=G($Q,{providerLabel:V})}return z(U,{flexDirection:"column",gap:1,width:"100%",children:[G(uQ,{view:"global"}),Y,G(eX,{})]})}function eX(){let[q,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,W]=c.useState(!0),D=y0.useCallback(async(M)=>{W(!0);try{Y(await Fq(M))}catch(H){MZ(H),Y(null)}finally{W(!1)}},[]);c.useEffect(()=>{D(q)},[D,q]),b("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),b("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let N=q==="day"?"last 24h":"last week",L=Q?.agentBreakdown[0];return z(U,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${N[0].toUpperCase()}${N.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${N}.`}):z(U,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(U,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:QY})]}),L&&G(U,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(L.pct)}% of your token usage came from subagents under '${L.agentType}'.`})}),Q.agentBreakdown.length>0&&z(U,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((M)=>z(K,{children:[G(K,{children:M.agentType.padEnd(24)}),G(K,{children:`${Math.round(M.pct)}%`})]},M.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function ZG(){let q=xZ(),Z=RZ(),{columns:Q}=Z,{rows:Y}=T0(Z),V=Math.min(Math.max(20,Q-2),80),W=Math.min(50,Math.max(20,V-14)),D=Math.max(15,Math.min(Math.floor(Y*0.8),30)),N=Math.max(5,D-3),[L,M]=c.useState(null),[H,O]=c.useState(null),[F,P]=c.useState(!0),[R,I]=c.useState("day"),[k,_]=c.useState(null),[t,w]=c.useState(!0),[d,m]=c.useState(0),[,j]=c.useReducer((E)=>E+1,0),QZ=y0.useCallback(async()=>{P(!0),O(null);try{M(await JY())}catch(E){MZ(E),O(E?.message||"Failed to load usage data")}finally{P(!1)}},[]),o=y0.useCallback(async(E)=>{w(!0);try{_(await Fq(E))}catch($){MZ($),_(null)}finally{w(!1)}},[]);c.useEffect(()=>{QZ()},[QZ]),c.useEffect(()=>{o(R)},[o,R]),c.useEffect(()=>{let E=setInterval(()=>j(),1000);return()=>clearInterval(E)},[]);let YZ=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),zZ=()=>m((E)=>Math.max(0,E-N)),jZ=()=>m((E)=>E+N),e={context:"Settings",isActive:!0};b("select:previous",YZ,e),b("select:next",n,e),b("scroll:lineUp",YZ,e),b("scroll:lineDown",n,e),b("scroll:pageUp",zZ,e),b("scroll:pageDown",jZ,e),b("settings:usageDay",()=>I("day"),e),b("settings:usageWeek",()=>I("week"),e),b("settings:retry",()=>{QZ(),o(R)},{context:"Settings",isActive:!!H&&!F});let vZ=(E)=>KZ.bold(E),XZ=(E)=>KZ.dim(E),F0=(E)=>{let $=Math.min(1,Math.max(0,E)),a=Math.floor($*W),VZ="█".repeat(a),HZ=" ".repeat(Math.max(0,W-a));return f0(VZ,q.rate_limit_fill,"foreground")+f0(HZ,q.rate_limit_empty,"background")},C=[],p=Aq();C.push(vZ("Project total (all sessions)")),C.push("Total cost: "+bZ(p.totalCost)+(Nq()?XZ(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+D0(p.totalAPIDuration)),C.push("Total duration (wall): "+D0(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let BZ={};for(let[E,$]of Object.entries(p.modelUsage)){let a=Pq(E),VZ=BZ[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};VZ.inputTokens+=$.inputTokens,VZ.outputTokens+=$.outputTokens,VZ.cacheReadInputTokens+=$.cacheReadInputTokens,VZ.cacheCreationInputTokens+=$.cacheCreationInputTokens,VZ.webSearchRequests+=$.webSearchRequests,VZ.costUSD+=$.costUSD}let N0=Object.entries(BZ);if(N0.length>0)C.push("Usage by model:");for(let[E,$]of N0){let a=`${LZ($.inputTokens)} input, ${LZ($.outputTokens)} output`;if($.cacheReadInputTokens>0)a+=`, ${LZ($.cacheReadInputTokens)} cache read`;if($.cacheCreationInputTokens>0)a+=`, ${LZ($.cacheCreationInputTokens)} cache write`;if($.webSearchRequests>0)a+=`, ${LZ($.webSearchRequests)} web search`;a+=` (${bZ($.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(XZ("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),F&&!L)C.push(XZ("Loading usage data…"));else if(H)C.push(f0(`Could not load rate-limit data: ${H}`,q.error,"foreground")),C.push(XZ("(cost/usage totals above are unaffected) · r to retry"));else if(L){let E=tQ(),$=E==="max"||E==="team"||E===null,a=[["Current session",L.five_hour],["Current week (all models)",L.seven_day],...$?[["Current week (Sonnet only)",L.seven_day_sonnet]]:[]];if(!a.some(([,eZ])=>eZ))C.push(XZ("/usage is only available for subscription plans."));let VZ=!0;for(let[eZ,UZ]of a){if(!UZ||UZ.utilization===null)continue;if(!VZ)C.push("");if(VZ=!1,C.push(vZ(eZ)),C.push(`${F0(UZ.utilization/100)} ${Math.floor(UZ.utilization)}% used`),UZ.resets_at)C.push(XZ(`Resets ${S0(UZ.resets_at,!0,!0)}`))}let HZ=L.extra_usage;if(HZ?.is_enabled&&typeof HZ.used_credits==="number"&&typeof HZ.utilization==="number"&&HZ.monthly_limit!=null)C.push(""),C.push(vZ("Extra usage")),C.push(`${F0(HZ.utilization/100)} ${Math.floor(HZ.utilization)}% used`),C.push(XZ(`${bZ(HZ.used_credits/100,2)} / ${bZ(HZ.monthly_limit/100,2)} spent`))}C.push("");let gZ=R==="day"?"last 24h":"last week";if(C.push(vZ("What's driving your token usage?")),C.push(XZ("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(XZ(`${gZ[0].toUpperCase()}${gZ.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(XZ("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(XZ(`No local session activity in the ${gZ}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(XZ(QY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let $ of k.agentBreakdown)C.push($.agentType.padEnd(24)+`${Math.round($.pct)}%`)}}let mZ=Math.max(0,C.length-N);if(d>mZ)m(mZ);let pZ=Math.min(d,mZ),j0=C.slice(pZ,pZ+N),GZ=pZ,tZ=C.length-(pZ+j0.length);return z(U,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:GZ>0?`↑ ${GZ} more above`:" "}),G(eQ,{lines:j0,width:V}),G(K,{dimColor:!0,children:tZ>0?`↓ ${tZ} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var tX,y0,c,QY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var YY=r(()=>{oX();aX();yJ();Jq();nX();iX();dX();OJ();X0();SZ();lX();M0();iZ();rX();Jq();I0();uX();cX();cZ();E0();Qq();sX();MQ();jQ();wQ();xQ();x();tX=u($Z(),1),y0=u(FZ(),1),c=u(FZ(),1)});function N9(q){let Z=KY.c(25),{onClose:Q,context:Y,defaultTab:V}=q,[W,D]=TZ.useState(V),[N,L]=TZ.useState(!1),[M,H]=TZ.useState(!1),[O,F]=TZ.useState(!1),P=uZ(),{rows:R}=T0(RZ()),I=P?R+1:Math.max(15,Math.min(Math.floor(R*0.8),30)),[k]=TZ.useState(QG);XY();let _;if(Z[0]!==Q||Z[1]!==N)_=()=>{if(N)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=N,Z[2]=_;else _=Z[2];let t=_,w=!N&&!(W==="Config"&&M)&&!(W==="Gates"&&O),d;if(Z[3]!==w)d={context:"Settings",isActive:w},Z[3]=w,Z[4]=d;else d=Z[4];b("confirm:no",t,d);let m;if(Z[5]!==Y||Z[6]!==k)m=G(O0,{title:"Status",children:G(cq,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let j;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)j=G(O0,{title:"Config",children:G(TZ.Suspense,{fallback:null,children:G(eJ,{context:Y,onClose:Q,setTabsHidden:L,onIsSearchModeChange:H,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=j;else j=Z[11];let QZ;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))QZ=[G(O0,{title:"Usage",children:G(Lq,{view:"global"})},"usage"),G(O0,{title:"Session",children:G(Lq,{view:"session"})},"session")],Z[12]=QZ;else QZ=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let YZ;if(Z[15]!==m||Z[16]!==j||Z[17]!==o)YZ=[m,j,...QZ,...o],Z[15]=m,Z[16]=j,Z[17]=o,Z[18]=YZ;else YZ=Z[18];let n=YZ,zZ=V!=="Config"&&V!=="Gates",jZ=N||P?void 0:I,e;if(Z[19]!==W||Z[20]!==jZ||Z[21]!==zZ||Z[22]!==n||Z[23]!==N)e=G(GY,{color:"permission",children:G(VY,{color:"permission",selectedTab:W,onTabChange:D,hidden:N,initialHeaderFocused:zZ,contentHeight:jZ,children:n})}),Z[19]=W,Z[20]=jZ,Z[21]=zZ,Z[22]=n,Z[23]=N,Z[24]=e;else e=Z[24];return e}function QG(){return xq().catch(YG)}function YG(){return[]}var KY,TZ;var XG=r(()=>{iZ();qG();X0();M0();JG();uJ();uq();ZQ();YY();x();KY=u($Z(),1),TZ=u(FZ(),1)});
4
- export{N9 as Eg,XG as Fg};
@@ -1,2 +0,0 @@
1
- import{fla as B,gla as H,nla as V}from"./cli-1.1.13-2m39r998.mjs";import{Esa as Q}from"./cli-1.1.13-jdcqc6bd.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
- export{$ as Hh,Y as Ih};
@@ -1,2 +0,0 @@
1
- import{Sqa as I,Zma as z,bna as F}from"./cli-1.1.13-0y4933cs.mjs";import{Esa as E}from"./cli-1.1.13-jdcqc6bd.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{U as Bia,K as Cia,V as Dia,W as Eia,M as Fia,Y as Gia,Z as Hia,$ as Iia,j as Jia,q as Kia,B as Lia,L as Mia,R as Nia,_ as Oia,b as Pia,x as Qia,A as Ria,T as Sia,k as Tia,p as Uia,u as Via,v as Wia,y as Xia,f as Yia,C as Zia,S as _ia,O as $ia,m as aja,g as bja,h as cja,l as dja,w as eja,c as fja,N as gja};