@claudiolabs/claudin 1.1.32 → 1.1.34

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 (836) hide show
  1. package/dist/chunks/App-1.1.34-5bkzspjw.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +1 -0
  27. package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +3 -0
  28. package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +110 -0
  29. package/dist/chunks/api-1.1.34-99hm00p0.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +1 -0
  31. package/dist/chunks/auth-1.1.34-32n80bwr.mjs +1 -0
  32. package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +1 -0
  37. package/dist/chunks/branch-1.1.34-949t9ara.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +88 -0
  42. package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +1 -0
  43. package/dist/chunks/btw-1.1.34-4246e84n.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +4 -0
  47. package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +1 -0
  48. package/dist/chunks/cd-1.1.34-6458ex95.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +1 -0
  50. package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +1 -0
  51. package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +1 -0
  52. package/dist/chunks/cli-1.1.34-00hxx56p.mjs +2 -0
  53. package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +9 -0
  54. package/dist/chunks/cli-1.1.34-0f5qa0q0.mjs +2 -0
  55. package/dist/chunks/cli-1.1.34-0h4whfas.mjs +6 -0
  56. package/dist/chunks/cli-1.1.34-0kkae10p.mjs +2 -0
  57. package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +2 -0
  58. package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.34-0zqthr52.mjs +2 -0
  60. package/dist/chunks/cli-1.1.34-1229x70a.mjs +2 -0
  61. package/dist/chunks/cli-1.1.34-1426jsf4.mjs +3 -0
  62. package/dist/chunks/cli-1.1.34-166q8s04.mjs +24 -0
  63. package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +3 -0
  64. package/dist/chunks/cli-1.1.34-1ategs07.mjs +2 -0
  65. package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +2 -0
  66. package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +3 -0
  67. package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +12 -0
  68. package/dist/chunks/cli-1.1.34-20femz8z.mjs +2 -0
  69. package/dist/chunks/cli-1.1.34-20p72tmb.mjs +20 -0
  70. package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +5 -0
  71. package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +2 -0
  72. package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +2 -0
  73. package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.34-372a0qyj.mjs +2 -0
  75. package/dist/chunks/cli-1.1.34-37g65vk7.mjs +2 -0
  76. package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +2 -0
  77. package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +2 -0
  78. package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +2 -0
  79. package/dist/chunks/cli-1.1.34-3rcacat5.mjs +3 -0
  80. package/dist/chunks/cli-1.1.34-4v8eanby.mjs +2 -0
  81. package/dist/chunks/cli-1.1.34-4x915j9t.mjs +2 -0
  82. package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +2 -0
  83. package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +2 -0
  84. package/dist/chunks/cli-1.1.34-58ergrxf.mjs +7 -0
  85. package/dist/chunks/cli-1.1.34-59csbz1a.mjs +60 -0
  86. package/dist/chunks/cli-1.1.34-5ec767fj.mjs +2 -0
  87. package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +3 -0
  88. package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +2 -0
  90. package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +2 -0
  91. package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +2 -0
  92. package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +2 -0
  93. package/dist/chunks/cli-1.1.34-5vktvncs.mjs +2 -0
  94. package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +4 -0
  95. package/dist/chunks/cli-1.1.34-643n510j.mjs +2 -0
  96. package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +2 -0
  97. package/dist/chunks/cli-1.1.34-6ndxsqp1.mjs +2 -0
  98. package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +133 -0
  99. package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +2 -0
  100. package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +2 -0
  101. package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +2 -0
  102. package/dist/chunks/cli-1.1.34-7bxexffs.mjs +6 -0
  103. package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +2 -0
  104. package/dist/chunks/cli-1.1.34-7npd3as5.mjs +18 -0
  105. package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +3 -0
  106. package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +2 -0
  107. package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +2 -0
  108. package/dist/chunks/cli-1.1.34-84707tma.mjs +5491 -0
  109. package/dist/chunks/cli-1.1.34-859ap6f7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +2 -0
  111. package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +39 -0
  112. package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +2 -0
  113. package/dist/chunks/cli-1.1.34-92kps6jn.mjs +63 -0
  114. package/dist/chunks/cli-1.1.34-9jn997h8.mjs +2 -0
  115. package/dist/chunks/cli-1.1.34-9tctqya9.mjs +6 -0
  116. package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +2 -0
  117. package/dist/chunks/cli-1.1.34-9z887t80.mjs +2 -0
  118. package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +2 -0
  119. package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +2 -0
  120. package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +2 -0
  121. package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +2 -0
  122. package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +2 -0
  123. package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +2 -0
  124. package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +2 -0
  125. package/dist/chunks/cli-1.1.34-c3w48hst.mjs +2 -0
  126. package/dist/chunks/cli-1.1.34-cp457g25.mjs +11 -0
  127. package/dist/chunks/cli-1.1.34-cptp243m.mjs +2 -0
  128. package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +2 -0
  129. package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +2 -0
  130. package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +2 -0
  131. package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +4 -0
  132. package/dist/chunks/cli-1.1.34-d5enzbca.mjs +2 -0
  133. package/dist/chunks/cli-1.1.34-d8bccy48.mjs +7 -0
  134. package/dist/chunks/cli-1.1.34-dceap5rk.mjs +4 -0
  135. package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +3 -0
  136. package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +2 -0
  137. package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +2 -0
  139. package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +2 -0
  140. package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +2 -0
  142. package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +2 -0
  143. package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +2 -0
  144. package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +2 -0
  145. package/dist/chunks/cli-1.1.34-f806gv2e.mjs +7 -0
  146. package/dist/chunks/cli-1.1.34-faavcjnj.mjs +2 -0
  147. package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +2 -0
  148. package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +2 -0
  149. package/dist/chunks/cli-1.1.34-ffs3510y.mjs +2 -0
  150. package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +17 -0
  151. package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +34 -0
  152. package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +2 -0
  153. package/dist/chunks/cli-1.1.34-fnds3msv.mjs +6 -0
  154. package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +2 -0
  155. package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +2 -0
  156. package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +2 -0
  157. package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +2 -0
  158. package/dist/chunks/cli-1.1.34-g888fgsj.mjs +4 -0
  159. package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +2 -0
  160. package/dist/chunks/cli-1.1.34-gmaedxb1.mjs +26 -0
  161. package/dist/chunks/cli-1.1.34-gsrndv90.mjs +2 -0
  162. package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +4 -0
  163. package/dist/chunks/cli-1.1.34-h7927ctg.mjs +2 -0
  164. package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +2 -0
  165. package/dist/chunks/cli-1.1.34-h9h6119y.mjs +2 -0
  166. package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +10 -0
  167. package/dist/chunks/cli-1.1.34-he92bjvt.mjs +2 -0
  168. package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +2 -0
  169. package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.34-hrw37per.mjs +8 -0
  171. package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +24 -0
  172. package/dist/chunks/cli-1.1.34-hyya784q.mjs +2 -0
  173. package/dist/chunks/cli-1.1.34-j8ab267c.mjs +2 -0
  174. package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +2 -0
  175. package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +4 -0
  176. package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +2 -0
  177. package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +15 -0
  178. package/dist/chunks/cli-1.1.34-k761g5m2.mjs +2 -0
  179. package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +2 -0
  180. package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +6 -0
  181. package/dist/chunks/cli-1.1.34-mhjjf878.mjs +5 -0
  182. package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +2 -0
  183. package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +42 -0
  184. package/dist/chunks/cli-1.1.34-ncz9dava.mjs +2 -0
  185. package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +25 -0
  186. package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +2 -0
  187. package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +4 -0
  188. package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +2 -0
  189. package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +2 -0
  190. package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +2 -0
  191. package/dist/chunks/cli-1.1.34-q83yydqv.mjs +133 -0
  192. package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +2 -0
  193. package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +10 -0
  194. package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +2 -0
  195. package/dist/chunks/cli-1.1.34-qs805z7n.mjs +9 -0
  196. package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +2 -0
  197. package/dist/chunks/cli-1.1.34-r222exkd.mjs +2 -0
  198. package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +2 -0
  199. package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +2 -0
  200. package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +45 -0
  201. package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +4 -0
  202. package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +2 -0
  203. package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +2 -0
  204. package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +21 -0
  205. package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +3 -0
  206. package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +3 -0
  208. package/dist/chunks/cli-1.1.34-shm51n5s.mjs +2 -0
  209. package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.34-sq51za8b.mjs +2 -0
  211. package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +2 -0
  212. package/dist/chunks/cli-1.1.34-syx85e6f.mjs +15 -0
  213. package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +2 -0
  214. package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +2 -0
  215. package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +2 -0
  216. package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +3 -0
  217. package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +50 -0
  218. package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +15 -0
  219. package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +2 -0
  220. package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +2 -0
  221. package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +2 -0
  222. package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +2 -0
  223. package/dist/chunks/cli-1.1.34-vz14r55x.mjs +3 -0
  224. package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.34-webjc1s3.mjs +2 -0
  227. package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +2 -0
  228. package/dist/chunks/cli-1.1.34-wh74w227.mjs +2 -0
  229. package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +24 -0
  230. package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +2 -0
  231. package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +203 -0
  232. package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +2 -0
  233. package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +2 -0
  234. package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +5 -0
  235. package/dist/chunks/cli-1.1.34-xx555z7d.mjs +25 -0
  236. package/dist/chunks/cli-1.1.34-yfasvar9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.34-yk56k2na.mjs +2 -0
  238. package/dist/chunks/cli-1.1.34-yqryw36t.mjs +2 -0
  239. package/dist/chunks/cli-1.1.34-yqyrt954.mjs +2 -0
  240. package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +16 -0
  241. package/dist/chunks/cli-1.1.34-z14xw89f.mjs +2 -0
  242. package/dist/chunks/cli-1.1.34-z1htezxg.mjs +2 -0
  243. package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +2 -0
  244. package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +2 -0
  245. package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +17 -0
  246. package/dist/chunks/client-1.1.34-4exntck8.mjs +1 -0
  247. package/dist/chunks/color-1.1.34-d4199wch.mjs +1 -0
  248. package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +2 -0
  249. package/dist/chunks/config-1.1.34-acewhfv4.mjs +1 -0
  250. package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +1 -0
  251. package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +1 -0
  252. package/dist/chunks/context-1.1.34-wc822wp5.mjs +1 -0
  253. package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +1 -0
  254. package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +1 -0
  255. package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +1 -0
  256. package/dist/chunks/copy-1.1.34-efb24nm3.mjs +9 -0
  257. package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +1 -0
  258. package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +1 -0
  259. package/dist/chunks/debug-1.1.34-k568mcye.mjs +1 -0
  260. package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +1480 -0
  261. package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +2 -0
  262. package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +1 -0
  263. package/dist/chunks/detection-1.1.34-5xfznq79.mjs +1 -0
  264. package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +1 -0
  265. package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +1 -0
  266. package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +1 -0
  267. package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +1 -0
  268. package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +13 -0
  269. package/dist/chunks/engine-1.1.34-y28mg4na.mjs +1 -0
  270. package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +1 -0
  271. package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +1 -0
  272. package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +1 -0
  273. package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +1 -0
  274. package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +1 -0
  275. package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +1 -0
  276. package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +1 -0
  277. package/dist/chunks/export-1.1.34-1hyv5efm.mjs +2 -0
  278. package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +1 -0
  279. package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +16 -0
  280. package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +1 -0
  281. package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +1 -0
  282. package/dist/chunks/goal-1.1.34-m6dge19b.mjs +4 -0
  283. package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +2 -0
  284. package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +6 -0
  285. package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +1 -0
  286. package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +1 -0
  287. package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +79 -0
  288. package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +3 -0
  289. package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +1 -0
  290. package/dist/chunks/import-1.1.34-4j35p307.mjs +261 -0
  291. package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +1 -0
  292. package/dist/chunks/index-1.1.34-086aty1n.mjs +1 -0
  293. package/dist/chunks/index-1.1.34-0q46c1bj.mjs +1 -0
  294. package/dist/chunks/index-1.1.34-2j48ar1m.mjs +1 -0
  295. package/dist/chunks/index-1.1.34-427npr7a.mjs +1 -0
  296. package/dist/chunks/index-1.1.34-50d0rg8h.mjs +5 -0
  297. package/dist/chunks/index-1.1.34-50j6q6gr.mjs +1 -0
  298. package/dist/chunks/index-1.1.34-ehvgt047.mjs +1 -0
  299. package/dist/chunks/index-1.1.34-faq1af2v.mjs +1 -0
  300. package/dist/chunks/index-1.1.34-fvrswew9.mjs +2 -0
  301. package/dist/chunks/index-1.1.34-mx39dxjj.mjs +30 -0
  302. package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +9 -0
  303. package/dist/chunks/index-1.1.34-nye63dch.mjs +1 -0
  304. package/dist/chunks/index-1.1.34-qmmg0npy.mjs +2 -0
  305. package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +1 -0
  306. package/dist/chunks/index-1.1.34-snehdv50.mjs +1 -0
  307. package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +1 -0
  308. package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +1 -0
  309. package/dist/chunks/index-1.1.34-wz64a3d4.mjs +9 -0
  310. package/dist/chunks/index-1.1.34-x83gwj6g.mjs +23 -0
  311. package/dist/chunks/index-1.1.34-xa114b8t.mjs +1 -0
  312. package/dist/chunks/index-1.1.34-y10pcdv1.mjs +1 -0
  313. package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +1 -0
  314. package/dist/chunks/index-1.1.34-yxzywg42.mjs +1 -0
  315. package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +2 -0
  316. package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +1 -0
  317. package/dist/chunks/ink-1.1.34-yb3z87en.mjs +1 -0
  318. package/dist/chunks/insights-1.1.34-a321wxgf.mjs +870 -0
  319. package/dist/chunks/install-1.1.34-064wyxwb.mjs +1 -0
  320. package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +149 -0
  321. package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +1 -0
  322. package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +1 -0
  323. package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +2 -0
  324. package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +1 -0
  325. package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +1 -0
  326. package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +1 -0
  327. package/dist/chunks/log-1.1.34-n41t6etn.mjs +1 -0
  328. package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +1 -0
  329. package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +1 -0
  330. package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +17 -0
  331. package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +4 -0
  332. package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +1 -0
  333. package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +1 -0
  334. package/dist/chunks/memory-1.1.34-sys90hns.mjs +128 -0
  335. package/dist/chunks/model-1.1.34-v1r14fy7.mjs +1 -0
  336. package/dist/chunks/model-1.1.34-vks7w05g.mjs +2 -0
  337. package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +1 -0
  338. package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +15 -0
  339. package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +1 -0
  340. package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +14 -0
  341. package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +1 -0
  342. package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +1 -0
  343. package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +1 -0
  344. package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +3 -0
  345. package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +1 -0
  346. package/dist/chunks/plist-1.1.34-ykta36sg.mjs +1 -0
  347. package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +1 -0
  349. package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +9 -0
  350. package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +2 -0
  351. package/dist/chunks/print-1.1.34-2gdkw86g.mjs +57 -0
  352. package/dist/chunks/process-1.1.34-fms89mxv.mjs +1 -0
  353. package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +1 -0
  354. package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +9 -0
  355. package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +1 -0
  356. package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +1 -0
  357. package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +1 -0
  358. package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +2 -0
  359. package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +1 -0
  360. package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +6 -0
  361. package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +26 -0
  362. package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +1 -0
  363. package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +5 -0
  364. package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +2 -0
  365. package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +1 -0
  366. package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +1 -0
  367. package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +1 -0
  368. package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +1 -0
  369. package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +2 -0
  370. package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +1 -0
  371. package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +1 -0
  372. package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +10 -0
  373. package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +1 -0
  374. package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +1 -0
  375. package/dist/chunks/session-1.1.34-h46ywygv.mjs +2 -0
  376. package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +1 -0
  377. package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +1 -0
  378. package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +12 -0
  379. package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +1 -0
  380. package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +1 -0
  381. package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +1 -0
  382. package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +1 -0
  383. package/dist/chunks/state-1.1.34-pymefs1m.mjs +1 -0
  384. package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +1 -0
  385. package/dist/chunks/status-1.1.34-r120pa8k.mjs +1 -0
  386. package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +1 -0
  387. package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +1 -0
  388. package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +1 -0
  389. package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +1 -0
  390. package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +1 -0
  391. package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +1 -0
  392. package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +1 -0
  393. package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +1 -0
  394. package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +1 -0
  395. package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +1 -0
  396. package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +1 -0
  397. package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +1 -0
  398. package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +1 -0
  399. package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +1 -0
  400. package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +69 -0
  401. package/dist/chunks/types-1.1.34-0as4p0wf.mjs +1 -0
  402. package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +4 -0
  403. package/dist/chunks/update-1.1.34-wnetpcv6.mjs +72 -0
  404. package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +7 -0
  405. package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +14 -0
  406. package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +1 -0
  407. package/dist/chunks/util-1.1.34-7ctz504f.mjs +1 -0
  408. package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +1 -0
  409. package/dist/chunks/vim-1.1.34-4y4504z8.mjs +1 -0
  410. package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +13 -0
  411. package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +132 -0
  412. package/dist/chunks/workflows-1.1.34-zefy425g.mjs +1 -0
  413. package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +1 -0
  414. package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +1 -0
  415. package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +7 -0
  416. package/dist/cli.mjs +2 -2
  417. package/package.json +9 -9
  418. package/dist/chunks/App-1.1.32-x0g3m6v6.mjs +0 -1
  419. package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +0 -1
  420. package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +0 -1
  421. package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +0 -1
  422. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +0 -1
  423. package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +0 -1
  424. package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +0 -6
  425. package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +0 -1
  426. package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +0 -6
  427. package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +0 -1
  428. package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +0 -1
  429. package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +0 -1
  430. package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +0 -1
  431. package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +0 -1
  432. package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +0 -1
  433. package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +0 -1
  434. package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +0 -1
  435. package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +0 -1
  436. package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +0 -1
  437. package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +0 -1
  438. package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +0 -9
  439. package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +0 -1
  440. package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +0 -1
  441. package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +0 -1
  442. package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +0 -1
  443. package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +0 -1
  444. package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +0 -110
  445. package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +0 -3
  446. package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +0 -1
  447. package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +0 -1
  448. package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +0 -1
  449. package/dist/chunks/auth-1.1.32-s83fshpf.mjs +0 -1
  450. package/dist/chunks/autoMode-1.1.32-e680w683.mjs +0 -52
  451. package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +0 -44
  452. package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +0 -1
  453. package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +0 -1
  454. package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +0 -4
  455. package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +0 -2
  456. package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +0 -1
  457. package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +0 -1
  458. package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +0 -88
  459. package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +0 -1
  460. package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +0 -1
  461. package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +0 -3
  462. package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +0 -21
  463. package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +0 -4
  464. package/dist/chunks/caches-1.1.32-va3h1efn.mjs +0 -1
  465. package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +0 -3
  466. package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +0 -1
  467. package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +0 -1
  468. package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +0 -1
  469. package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +0 -1
  470. package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +0 -2
  471. package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +0 -42
  472. package/dist/chunks/cli-1.1.32-1913x5jp.mjs +0 -15
  473. package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +0 -2
  474. package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +0 -9
  475. package/dist/chunks/cli-1.1.32-1rackf2c.mjs +0 -4
  476. package/dist/chunks/cli-1.1.32-1rprka6j.mjs +0 -2
  477. package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +0 -2
  478. package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +0 -2
  479. package/dist/chunks/cli-1.1.32-260jjrwt.mjs +0 -6
  480. package/dist/chunks/cli-1.1.32-26474ywa.mjs +0 -2
  481. package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +0 -2
  482. package/dist/chunks/cli-1.1.32-28x0bz68.mjs +0 -2
  483. package/dist/chunks/cli-1.1.32-2k074m5f.mjs +0 -2
  484. package/dist/chunks/cli-1.1.32-2kd689v0.mjs +0 -2
  485. package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +0 -2
  486. package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +0 -10
  487. package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +0 -17
  488. package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +0 -2
  489. package/dist/chunks/cli-1.1.32-336t9pmv.mjs +0 -2
  490. package/dist/chunks/cli-1.1.32-33jnyekk.mjs +0 -2
  491. package/dist/chunks/cli-1.1.32-36t0985q.mjs +0 -21
  492. package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +0 -2
  493. package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +0 -3
  494. package/dist/chunks/cli-1.1.32-41xx49ta.mjs +0 -2
  495. package/dist/chunks/cli-1.1.32-46wadmxk.mjs +0 -2
  496. package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +0 -25
  497. package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +0 -25
  498. package/dist/chunks/cli-1.1.32-4ft4m446.mjs +0 -2
  499. package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +0 -2
  500. package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +0 -2
  501. package/dist/chunks/cli-1.1.32-4yat84kg.mjs +0 -2
  502. package/dist/chunks/cli-1.1.32-5a158c45.mjs +0 -2
  503. package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +0 -2
  504. package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +0 -2
  505. package/dist/chunks/cli-1.1.32-5dq711bj.mjs +0 -2
  506. package/dist/chunks/cli-1.1.32-5j5n166h.mjs +0 -2
  507. package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +0 -133
  508. package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +0 -2
  509. package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +0 -2
  510. package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +0 -2
  511. package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +0 -2
  512. package/dist/chunks/cli-1.1.32-6317frxz.mjs +0 -2
  513. package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +0 -2
  514. package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +0 -2
  515. package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.32-6jxftegx.mjs +0 -6
  518. package/dist/chunks/cli-1.1.32-7566j53x.mjs +0 -2
  519. package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +0 -2
  520. package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +0 -2
  521. package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +0 -2
  522. package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +0 -2
  523. package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +0 -5
  524. package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +0 -2
  525. package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +0 -34
  526. package/dist/chunks/cli-1.1.32-97e0qadj.mjs +0 -2
  527. package/dist/chunks/cli-1.1.32-9c0an85r.mjs +0 -2
  528. package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.32-9jxkev29.mjs +0 -2
  530. package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +0 -11
  531. package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +0 -5490
  532. package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +0 -12
  533. package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +0 -2
  535. package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +0 -5
  536. package/dist/chunks/cli-1.1.32-aysp26sz.mjs +0 -45
  537. package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +0 -7
  538. package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +0 -2
  539. package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +0 -2
  540. package/dist/chunks/cli-1.1.32-bce46tmm.mjs +0 -2
  541. package/dist/chunks/cli-1.1.32-bnam9df8.mjs +0 -2
  542. package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +0 -2
  543. package/dist/chunks/cli-1.1.32-c4v8081j.mjs +0 -2
  544. package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +0 -2
  545. package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +0 -2
  546. package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +0 -2
  547. package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +0 -2
  548. package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +0 -2
  549. package/dist/chunks/cli-1.1.32-d47cvy98.mjs +0 -2
  550. package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +0 -2
  551. package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +0 -2
  552. package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +0 -2
  553. package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +0 -4
  554. package/dist/chunks/cli-1.1.32-e96q5k17.mjs +0 -2
  555. package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +0 -2
  556. package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +0 -2
  557. package/dist/chunks/cli-1.1.32-erw03mnm.mjs +0 -2
  558. package/dist/chunks/cli-1.1.32-f3895pf8.mjs +0 -2
  559. package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +0 -2
  560. package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +0 -2
  561. package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +0 -2
  562. package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +0 -2
  563. package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +0 -24
  564. package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +0 -8
  565. package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +0 -2
  566. package/dist/chunks/cli-1.1.32-gqbeasga.mjs +0 -2
  567. package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +0 -18
  568. package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +0 -2
  569. package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +0 -2
  570. package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +0 -4
  571. package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +0 -2
  572. package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +0 -2
  573. package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +0 -60
  574. package/dist/chunks/cli-1.1.32-hhd65der.mjs +0 -2
  575. package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +0 -3
  576. package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +0 -15
  577. package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +0 -2
  578. package/dist/chunks/cli-1.1.32-jjanec91.mjs +0 -2
  579. package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +0 -2
  581. package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +0 -2
  582. package/dist/chunks/cli-1.1.32-k5d30qej.mjs +0 -3
  583. package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +0 -2
  584. package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +0 -63
  585. package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +0 -4
  586. package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +0 -2
  587. package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +0 -3
  588. package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +0 -2
  589. package/dist/chunks/cli-1.1.32-merqy9t2.mjs +0 -2
  590. package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +0 -15
  591. package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +0 -2
  592. package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +0 -2
  593. package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +0 -2
  594. package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +0 -2
  595. package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +0 -4
  596. package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +0 -2
  597. package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +0 -2
  598. package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +0 -3
  599. package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +0 -20
  600. package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +0 -2
  601. package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +0 -7
  602. package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +0 -203
  603. package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +0 -2
  604. package/dist/chunks/cli-1.1.32-px6268dx.mjs +0 -2
  605. package/dist/chunks/cli-1.1.32-px93hhj4.mjs +0 -3
  606. package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +0 -2
  607. package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +0 -3
  609. package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +0 -6
  610. package/dist/chunks/cli-1.1.32-r6g8b118.mjs +0 -5
  611. package/dist/chunks/cli-1.1.32-r7020tw8.mjs +0 -4
  612. package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +0 -2
  613. package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +0 -3
  614. package/dist/chunks/cli-1.1.32-rswqkymv.mjs +0 -133
  615. package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +0 -2
  616. package/dist/chunks/cli-1.1.32-s4betse1.mjs +0 -2
  617. package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +0 -2
  618. package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +0 -2
  619. package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +0 -2
  620. package/dist/chunks/cli-1.1.32-th2r4378.mjs +0 -9
  621. package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +0 -2
  622. package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +0 -2
  623. package/dist/chunks/cli-1.1.32-tq108hv4.mjs +0 -2
  624. package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +0 -24
  625. package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +0 -6
  626. package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +0 -2
  627. package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +0 -2
  628. package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +0 -16
  629. package/dist/chunks/cli-1.1.32-vmr6f229.mjs +0 -2
  630. package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +0 -2
  631. package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +0 -3
  632. package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +0 -2
  633. package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +0 -4
  634. package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +0 -24
  635. package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +0 -2
  636. package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +0 -6
  637. package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +0 -2
  638. package/dist/chunks/cli-1.1.32-x23z7923.mjs +0 -2
  639. package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +0 -2
  640. package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +0 -2
  642. package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +0 -2
  643. package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +0 -17
  644. package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +0 -2
  645. package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +0 -12
  646. package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +0 -2
  647. package/dist/chunks/cli-1.1.32-yhftam6y.mjs +0 -50
  648. package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +0 -2
  649. package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +0 -2
  650. package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +0 -2
  651. package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +0 -2
  652. package/dist/chunks/cli-1.1.32-yw64r19c.mjs +0 -2
  653. package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +0 -4
  654. package/dist/chunks/cli-1.1.32-zegecv6e.mjs +0 -2
  655. package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +0 -2
  656. package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +0 -2
  657. package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +0 -26
  658. package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +0 -2
  659. package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +0 -3
  660. package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +0 -3
  661. package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +0 -2
  662. package/dist/chunks/cli-1.1.32-zrxqe296.mjs +0 -7
  663. package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +0 -2
  664. package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +0 -39
  665. package/dist/chunks/client-1.1.32-y4ehgz03.mjs +0 -1
  666. package/dist/chunks/color-1.1.32-an3gq6pv.mjs +0 -1
  667. package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +0 -2
  668. package/dist/chunks/config-1.1.32-9kqd30ca.mjs +0 -1
  669. package/dist/chunks/config-1.1.32-chryg3ab.mjs +0 -1
  670. package/dist/chunks/constants-1.1.32-azab2vra.mjs +0 -1
  671. package/dist/chunks/context-1.1.32-t6yf3tch.mjs +0 -1
  672. package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +0 -1
  673. package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +0 -1
  674. package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +0 -1
  675. package/dist/chunks/copy-1.1.32-2yk1zben.mjs +0 -9
  676. package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +0 -1
  677. package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +0 -1
  678. package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +0 -1
  679. package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +0 -1480
  680. package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +0 -2
  681. package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +0 -1
  682. package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +0 -1
  683. package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +0 -1
  684. package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +0 -1
  685. package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +0 -1
  686. package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +0 -1
  687. package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +0 -13
  688. package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +0 -1
  689. package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +0 -1
  690. package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +0 -1
  691. package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +0 -1
  692. package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +0 -1
  693. package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +0 -1
  694. package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +0 -1
  695. package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +0 -1
  696. package/dist/chunks/export-1.1.32-zt3yhqen.mjs +0 -2
  697. package/dist/chunks/fast-1.1.32-cms216af.mjs +0 -1
  698. package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +0 -16
  699. package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +0 -1
  701. package/dist/chunks/goal-1.1.32-bkjq4858.mjs +0 -4
  702. package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +0 -2
  703. package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +0 -6
  704. package/dist/chunks/help-1.1.32-5z54ce4t.mjs +0 -1
  705. package/dist/chunks/hooks-1.1.32-2mse496x.mjs +0 -1
  706. package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +0 -79
  707. package/dist/chunks/ide-1.1.32-tx45prsy.mjs +0 -3
  708. package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +0 -1
  709. package/dist/chunks/import-1.1.32-7w75n01b.mjs +0 -261
  710. package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +0 -1
  711. package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +0 -1
  712. package/dist/chunks/index-1.1.32-49p9ghn6.mjs +0 -1
  713. package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +0 -2
  714. package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +0 -9
  715. package/dist/chunks/index-1.1.32-az0sxjjn.mjs +0 -5
  716. package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +0 -1
  717. package/dist/chunks/index-1.1.32-bpzdp87c.mjs +0 -23
  718. package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +0 -1
  719. package/dist/chunks/index-1.1.32-cjq261cn.mjs +0 -9
  720. package/dist/chunks/index-1.1.32-crx2adff.mjs +0 -1
  721. package/dist/chunks/index-1.1.32-dn9thxs1.mjs +0 -30
  722. package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +0 -1
  723. package/dist/chunks/index-1.1.32-g58gm84f.mjs +0 -1
  724. package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +0 -1
  725. package/dist/chunks/index-1.1.32-m694vs1n.mjs +0 -1
  726. package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +0 -1
  727. package/dist/chunks/index-1.1.32-revsqy4q.mjs +0 -1
  728. package/dist/chunks/index-1.1.32-t011v5cn.mjs +0 -1
  729. package/dist/chunks/index-1.1.32-tv85kbw0.mjs +0 -1
  730. package/dist/chunks/index-1.1.32-v09n34s4.mjs +0 -1
  731. package/dist/chunks/index-1.1.32-vaknvmtk.mjs +0 -2
  732. package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +0 -1
  733. package/dist/chunks/index-1.1.32-zep1vry1.mjs +0 -1
  734. package/dist/chunks/init-1.1.32-xac664gq.mjs +0 -2
  735. package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +0 -1
  736. package/dist/chunks/ink-1.1.32-brepbf1s.mjs +0 -1
  737. package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +0 -870
  738. package/dist/chunks/install-1.1.32-xhcj1s97.mjs +0 -1
  739. package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +0 -149
  740. package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +0 -1
  742. package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +0 -2
  743. package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +0 -1
  744. package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +0 -1
  745. package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +0 -1
  746. package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +0 -1
  747. package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +0 -1
  748. package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +0 -1
  749. package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +0 -1
  750. package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +0 -17
  751. package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +0 -4
  752. package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +0 -1
  753. package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +0 -77
  754. package/dist/chunks/model-1.1.32-wjtssjq7.mjs +0 -1
  755. package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +0 -2
  756. package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +0 -15
  757. package/dist/chunks/node-1.1.32-pek9xbcv.mjs +0 -1
  758. package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +0 -1
  759. package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +0 -14
  760. package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +0 -1
  761. package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +0 -1
  762. package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +0 -3
  763. package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +0 -1
  764. package/dist/chunks/plan-1.1.32-remxpgv3.mjs +0 -1
  765. package/dist/chunks/plist-1.1.32-y2bh274p.mjs +0 -1
  766. package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +0 -29
  767. package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +0 -1
  768. package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +0 -9
  769. package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +0 -2
  770. package/dist/chunks/print-1.1.32-k37wv4h9.mjs +0 -57
  771. package/dist/chunks/process-1.1.32-tya6ctch.mjs +0 -1
  772. package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +0 -1
  773. package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +0 -9
  774. package/dist/chunks/prompt-1.1.32-crsv325t.mjs +0 -1
  775. package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +0 -1
  776. package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +0 -1
  777. package/dist/chunks/provider-1.1.32-c16c25q6.mjs +0 -2
  778. package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +0 -1
  779. package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +0 -6
  780. package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +0 -26
  781. package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +0 -1
  782. package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +0 -5
  783. package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +0 -2
  784. package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +0 -1
  785. package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +0 -1
  786. package/dist/chunks/rename-1.1.32-yww8w15q.mjs +0 -1
  787. package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +0 -1
  788. package/dist/chunks/resume-1.1.32-y7g779fj.mjs +0 -2
  789. package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +0 -1
  790. package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +0 -1
  791. package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +0 -10
  792. package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +0 -1
  793. package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +0 -1
  794. package/dist/chunks/session-1.1.32-07pqmcyz.mjs +0 -2
  795. package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +0 -1
  796. package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +0 -1
  797. package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +0 -1
  798. package/dist/chunks/setup-1.1.32-695k1eyn.mjs +0 -12
  799. package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +0 -1
  800. package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +0 -1
  801. package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +0 -1
  802. package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +0 -1
  803. package/dist/chunks/state-1.1.32-q2y7dv84.mjs +0 -1
  804. package/dist/chunks/stats-1.1.32-p79st2jy.mjs +0 -1
  805. package/dist/chunks/status-1.1.32-wsaad3gy.mjs +0 -1
  806. package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +0 -1
  807. package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +0 -1
  808. package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +0 -1
  809. package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +0 -1
  810. package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +0 -1
  811. package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +0 -1
  812. package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +0 -1
  813. package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +0 -1
  814. package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +0 -1
  815. package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +0 -1
  816. package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +0 -1
  817. package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +0 -1
  818. package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +0 -1
  819. package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +0 -1
  820. package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +0 -69
  821. package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +0 -1
  822. package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +0 -4
  823. package/dist/chunks/update-1.1.32-zz1tgpba.mjs +0 -72
  824. package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +0 -7
  825. package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +0 -14
  826. package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +0 -1
  827. package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +0 -1
  828. package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +0 -1
  829. package/dist/chunks/vim-1.1.32-mz41whem.mjs +0 -1
  830. package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +0 -13
  831. package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +0 -1
  832. package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +0 -132
  833. package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +0 -1
  834. package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +0 -1
  835. package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +0 -1
  836. package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +0 -7
@@ -1,24 +0,0 @@
1
- import{Tb as v0}from"./cli-1.1.32-c6n1kre3.mjs";import{ce as H0,fe as u9}from"./cli-1.1.32-rbvnjjkt.mjs";import{mi as QZ,ni as b6}from"./cli-1.1.32-gvv8h6dg.mjs";import{ej as O0,fj as o9}from"./cli-1.1.32-336t9pmv.mjs";import{$v as G0,AD as uZ,AP as $0,Al as KY,Am as CY,Ax as SY,BA as PZ,BD as xQ,BM as AY,Bl as $Q,Bt as K0,CA as TQ,CD as kQ,CE as y0,Cl as tQ,Ct as S9,DD as cZ,Dl as VY,Dx as EZ,ED as mZ,EE as r9,El as ZQ,Ex as xY,FD as dZ,Fl as sQ,GA as pY,GD as gZ,GK as g,GS as f0,Gl as GY,HD as lZ,HN as bZ,Hl as JY,ID as aZ,IK as t9,IM as k6,IP as F0,Il as m0,In as yQ,JD as nZ,KD as iZ,KN as mY,KP as b0,LD as rZ,Ln as OQ,MD as Z9,Mn as hZ,Mp as u0,OP as Q6,PS as M0,Pp as H6,Qr as lQ,Rr as h0,Sr as UQ,TS as N0,Tr as _0,Ux as jZ,Vx as kY,WS as B0,YL as U0,YQ as RQ,ZJ as r,ZL as s9,aR as CQ,aw as k9,dK as E0,ek as XQ,gM as P0,gu as IZ,hE as A0,hH as FZ,hM as e9,hk as _Z,hu as sY,iH as cY,iu as V0,ju as x9,kE as i9,kK as j0,mk as w0,mx as n0,nF as $Z,nx as O6,oF as uY,sR as _Q,vD as CZ,vM as DY,wD as SZ,wo as wY,xD as xZ,xK as J0,xM as _Y,xl as WY,xo as x6,yA as UZ,yD as kZ,yK as p9,yl as F6,yx as yZ,zD as pZ,zl as XY,zm as AZ,zr as D0,zx as OZ}from"./cli-1.1.32-9yka8m9x.mjs";import{LY as RY,SW as IY,cY as k,eY as f}from"./cli-1.1.32-hgjgfp8p.mjs";import{m2 as m,n2 as y,o2 as M,p2 as XZ}from"./cli-1.1.32-jjanec91.mjs";import{q2 as hY}from"./cli-1.1.32-6f9r9qcb.mjs";import{T3 as k0,X3 as G6,j6 as J6,s5 as p0}from"./cli-1.1.32-vf3r8a91.mjs";import{Dga as DZ,F$ as LY,Sca as qY,U9 as wQ,Uaa as C6,V9 as bY,W_ as X0,Y_ as C9,Zca as S6,__ as c0,aaa as R6,gea as x0,ida as C0,j$ as v6,jda as S0,lda as K6,p_ as a0,pba as fQ,rba as fY,rga as wZ,tea as V6,u_ as y6,uga as TY,xaa as zY,yga as o}from"./cli-1.1.32-pve0ffcp.mjs";import{Oga as GZ,Wga as JZ,aha as FY}from"./cli-1.1.32-1rackf2c.mjs";import{Lha as Q,Mha as GQ,Nha as L,Oha as AQ}from"./cli-1.1.32-kn0zs89y.mjs";import{$ha as vZ,Rha as R0,Tha as X6,Vha as MQ,Yha as HZ,Zha as NZ,_ha as BZ,bia as LZ,cia as zZ,oia as qZ,tia as MY}from"./cli-1.1.32-m7dxkbpn.mjs";import{Dja as T,Gia as l0,Gja as VQ,Iia as A6,gja as s,hja as Y0,lja as jQ}from"./cli-1.1.32-8jkgzjh4.mjs";import{Ija as W0,Mja as R9}from"./cli-1.1.32-zeyasrw5.mjs";import{Pja as Z0,bka as vY,cka as iQ,ika as cQ}from"./cli-1.1.32-z7x4jfeb.mjs";import{Hpa as JQ,Jna as I0,Koa as e0,Loa as LQ,Zka as L0,apa as QY,cla as HQ,cpa as ZY,dpa as eQ,fpa as YY,ila as ZZ,jla as g0}from"./cli-1.1.32-60pc6r2s.mjs";import{Sqa as VZ,Vqa as IQ,Wqa as DQ,Xqa as gQ}from"./cli-1.1.32-yw64r19c.mjs";var oY={};IQ(oY,{selectableUserMessagesFilter:()=>TZ,messagesAfterAreOnlySynthetic:()=>rY,MessageSelector:()=>gY});import{randomUUID as dY}from"crypto";import*as QQ from"path";function fZ(Y){return Y.type==="text"}function hQ(Y){return Y==="summarize"||Y==="summarize_up_to"}function gY({messages:Y,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:J,preselectedMessage:G}){let V=bZ((A)=>A.fileHistory),[B,v]=I.useState(void 0),N=UZ(),w=I.useMemo(dY,[]),O=I.useMemo(()=>[...Y.filter(TZ),{...r({content:""}),uuid:w}],[Y,w]),[$,z]=I.useState(O.length-1),h=Math.max(0,Math.min($-Math.floor(bQ/2),O.length-bQ)),E=O.length>1,[D,_]=I.useState(G),[R,F]=I.useState(void 0);I.useEffect(()=>{if(!G||!N)return;let A=!1;return TQ(V,G.uuid).then((S)=>{if(!A)F(S)}),()=>{A=!0}},[G,N,V]);let[j,U]=I.useState(!1),[c,d]=I.useState(null),[n,C]=I.useState("both"),[x,q]=I.useState(""),[b,P]=I.useState("");function H(A){let S=A?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return S.push({value:"summarize",label:"Summarize from here",...p,onChange:q}),S.push({value:"nevermind",label:"Never mind"}),S}async function l(A){Z(),U(!0);try{await W(A),U(!1),J()}catch(S){o(S),U(!1),v(`Failed to restore the conversation:
2
- ${S}`)}}async function i(A){let S=Y.indexOf(A),p=Y.length-1-S;if(!Y.includes(A)){J();return}if(!N){await l(A);return}let u=await TQ(V,A.uuid);_(A),F(u)}async function YQ(A){if(!D){v("Message not found.");return}if(A==="nevermind"){if(G)J();else _(void 0);return}if(hQ(A)){Z(),U(!0),d(A),v(void 0);try{let u=A==="summarize_up_to"?"up_to":"from",e=(u==="up_to"?b:x).trim()||void 0;await K(D,e,u),U(!1),d(null),_(void 0),J()}catch(u){o(u),U(!1),d(null),_(void 0),v(`Failed to summarize:
3
- ${u}`)}return}Z(),U(!0),v(void 0);let S=null,p=null;if(A==="code"||A==="both")try{await X(D)}catch(u){S=u,o(S)}if(A==="conversation"||A==="both")try{await W(D)}catch(u){p=u,o(p)}if(U(!1),_(void 0),p&&S)v(`Failed to restore the conversation and code:
4
- ${p}
5
- ${S}`);else if(p)v(`Failed to restore the conversation:
6
- ${p}`);else if(S)v(`Failed to restore the code:
7
- ${S}`);else J()}let WQ=EZ(),t=I.useCallback(()=>{if(D&&!G){_(void 0);return}J()},[J,D,G]),OY=I.useCallback(()=>z((A)=>Math.max(0,A-1)),[]),EY=I.useCallback(()=>z((A)=>Math.min(O.length-1,A+1)),[O.length]),jY=I.useCallback(()=>z(0),[]),UY=I.useCallback(()=>z(O.length-1),[O.length]),PY=I.useCallback(()=>{let A=O[$];if(A)i(A)},[O,$,i]);yZ("confirm:no",t,{context:"Confirmation",isActive:!D}),OZ({"messageSelector:up":OY,"messageSelector:down":EY,"messageSelector:top":jY,"messageSelector:bottom":UY,"messageSelector:select":PY},{context:"MessageSelector",isActive:!j&&!B&&!D&&E});let[YZ,WZ]=I.useState({});I.useEffect(()=>{async function A(){if(!N)return;Promise.all(O.map(async(S,p)=>{if(S.uuid!==w){let u=PZ(V,S.uuid),e=O.at(p+1),qQ=u?iY(Y,S.uuid,e?.uuid!==w?e?.uuid:void 0):void 0;if(qQ!==void 0)WZ((a)=>({...a,[p]:qQ}));else WZ((a)=>({...a,[p]:void 0}))}}))}A()},[O,Y,w,V,N]);let zQ=N&&R?.filesChanged&&R.filesChanged.length>0,$Y=!B&&!D&&!G&&E;return M(k,{flexDirection:"column",width:"100%",children:[y(jZ,{color:"suggestion"}),M(k,{flexDirection:"column",marginX:1,gap:1,children:[y(f,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(m,{children:M(f,{color:"error",children:["Error: ",B]})}),!E&&y(m,{children:y(f,{children:"Nothing to rewind to yet."})}),!B&&D&&E&&M(m,{children:[M(f,{children:["Confirm you want to restore"," ",!R&&"the conversation ","to the point before you sent this message:"]}),M(k,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(KZ,{userMessage:D,color:"text",isCurrent:!1}),M(f,{dimColor:!0,children:["(",JZ(new Date(D.timestamp)),")"]})]}),y(aY,{selectedRestoreOption:n,canRestoreCode:!!zQ,diffStatsForRestore:R}),j&&hQ(c)?M(k,{flexDirection:"row",gap:1,children:[y(FZ,{}),y(f,{children:"Summarizing…"})]}):y($Z,{isDisabled:j,options:H(!!zQ),defaultFocusValue:zQ?"both":"conversation",onFocus:(A)=>C(A),onChange:(A)=>YQ(A),onCancel:()=>G?J():_(void 0)}),zQ&&y(k,{marginBottom:1,children:M(f,{dimColor:!0,children:[wQ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),$Y&&M(m,{children:[N?y(f,{children:"Restore the code and/or conversation to the point before…"}):y(f,{children:"Restore and fork the conversation to the point before…"}),y(k,{width:"100%",flexDirection:"column",children:O.slice(h,h+bQ).map((A,S)=>{let p=h+S,u=p===$,e=A.uuid===w,qQ=p in YZ,a=YZ[p],FQ=a?.filesChanged&&a.filesChanged.length;return M(k,{height:N?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(k,{width:2,minWidth:2,children:u?M(f,{color:"permission",bold:!0,children:[wQ.pointer," "]}):y(f,{children:" "})}),M(k,{flexDirection:"column",children:[y(k,{flexShrink:1,height:1,overflow:"hidden",children:y(KZ,{userMessage:A,color:u?"suggestion":void 0,isCurrent:e,paddingRight:10})}),N&&qQ&&y(k,{height:1,flexDirection:"row",children:a?y(m,{children:y(f,{dimColor:!u,color:"inactive",children:FQ?M(m,{children:[FQ===1&&a.filesChanged[0]?`${QQ.basename(a.filesChanged[0])} `:`${FQ} files changed `,y(MZ,{diffStats:a})]}):y(m,{children:"No code changes"})})}):M(f,{dimColor:!0,color:"warning",children:[wQ.warning," No code restore"]})})]})]},A.uuid)})})]}),!D&&y(f,{dimColor:!0,italic:!0,children:WQ.pending?M(m,{children:["Press ",WQ.keyName," again to exit"]}):M(m,{children:[!B&&E&&"Enter to continue · ","Esc to exit"]})})]})]})}function lY(Y){switch(Y){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function aY(Y){let Z=KQ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Y,J=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=lY(W),Z[0]=W,Z[1]=G;else G=Z[1];let V;if(Z[2]!==G)V=y(f,{dimColor:!0,children:G}),Z[2]=G,Z[3]=V;else V=Z[3];let B;if(Z[4]!==K||Z[5]!==W||Z[6]!==J)B=!hQ(W)&&(J?y(nY,{diffStatsForRestore:K}):y(f,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=K,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let v;if(Z[8]!==V||Z[9]!==B)v=M(k,{flexDirection:"column",children:[V,B]}),Z[8]=V,Z[9]=B,Z[10]=v;else v=Z[10];return v}function nY(Y){let Z=KQ.c(14),{diffStatsForRestore:W}=Y;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=y(f,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=V;else V=Z[0];return V}let X=W.filesChanged.length,K;if(X===1){let V;if(Z[1]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=V;else V=Z[2];K=V}else if(X===2){let V;if(Z[3]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=V;else V=Z[4];let B=V,v;if(Z[5]!==W.filesChanged[1])v=QQ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=v;else v=Z[6];K=`${B} and ${v}`}else{let V;if(Z[7]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=V;else V=Z[8];K=`${V} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=y(MZ,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let G;if(Z[11]!==K||Z[12]!==J)G=y(m,{children:M(f,{dimColor:!0,children:["The code will be restored"," ",J," in ",K,"."]})}),Z[11]=K,Z[12]=J,Z[13]=G;else G=Z[13];return G}function MZ(Y){let Z=KQ.c(7),{diffStats:W}=Y;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(f,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=M(f,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let J;if(Z[4]!==X||Z[5]!==K)J=M(m,{children:[X,K]}),Z[4]=X,Z[5]=K,Z[6]=J;else J=Z[6];return J}function KZ(Y){let Z=KQ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:J,paddingRight:G}=Y,{columns:V}=AZ();if(J){let F;if(Z[0]!==X||Z[1]!==K)F=y(k,{width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"(current)"})}),Z[0]=X,Z[1]=K,Z[2]=F;else F=Z[2];return F}let B=W.message.content,v=typeof B==="string"?null:B[B.length-1],N,w,O,$,z,h,E,D;if(Z[3]!==X||Z[4]!==V||Z[5]!==B||Z[6]!==K||Z[7]!==v||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Q:{let F=typeof B==="string"?B.trim():v&&fZ(v)?v.text.trim():"(no prompt)",j=wZ(F);if(_Z(j)){let U;if(Z[17]!==X||Z[18]!==K)U=y(k,{flexDirection:"row",width:"100%",children:y(f,{italic:!0,color:X,dimColor:K,children:"((empty message))"})}),Z[17]=X,Z[18]=K,Z[19]=U;else U=Z[19];D=U;break Q}if(j.includes("<bash-input>")){let U=XQ(j,"bash-input");if(U){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(f,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];D=M(k,{flexDirection:"row",width:"100%",children:[c,M(f,{color:X,dimColor:K,children:[" ",U]})]});break Q}}if(j.includes(`<${MQ}>`)){let U=XQ(j,MQ),c=XQ(j,"command-args"),d=XQ(j,"skill-format")==="true";if(U)if(d){D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["Skill(",U,")"]})});break Q}else{D=y(k,{flexDirection:"row",width:"100%",children:M(f,{color:X,dimColor:K,children:["/",U," ",c]})});break Q}}w=k,h="row",E="100%",N=f,O=X,$=K,z=G?GZ(j,V-G,!0):j.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=X,Z[4]=V,Z[5]=B,Z[6]=K,Z[7]=v,Z[8]=G,Z[9]=N,Z[10]=w,Z[11]=O,Z[12]=$,Z[13]=z,Z[14]=h,Z[15]=E,Z[16]=D}else N=Z[9],w=Z[10],O=Z[11],$=Z[12],z=Z[13],h=Z[14],E=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let _;if(Z[21]!==N||Z[22]!==O||Z[23]!==$||Z[24]!==z)_=y(N,{color:O,dimColor:$,children:z}),Z[21]=N,Z[22]=O,Z[23]=$,Z[24]=z,Z[25]=_;else _=Z[25];let R;if(Z[26]!==w||Z[27]!==h||Z[28]!==E||Z[29]!==_)R=y(w,{flexDirection:h,width:E,children:_}),Z[26]=w,Z[27]=h,Z[28]=E,Z[29]=_,Z[30]=R;else R=Z[30];return R}function iY(Y,Z,W){let X=Y.findIndex((B)=>B.uuid===Z);if(X===-1)return;let K=W?Y.findIndex((B)=>B.uuid===W):Y.length;if(K===-1)K=Y.length;let J=[],G=0,V=0;for(let B=X+1;B<K;B++){let v=Y[B];if(!v||!CQ(v))continue;let N=v.toolUseResult;if(!N||!N.filePath||!N.structuredPatch)continue;if(!J.includes(N.filePath))J.push(N.filePath);try{if("type"in N&&N.type==="create")G+=N.content.split(/\r?\n/).length;else for(let w of N.structuredPatch){let O=fQ(w.lines,(z)=>z.startsWith("+")),$=fQ(w.lines,(z)=>z.startsWith("-"));G+=O,V+=$}}catch{continue}}return{filesChanged:J,insertions:G,deletions:V}}function TZ(Y){if(Y.type!=="user")return!1;if(Array.isArray(Y.message.content)&&Y.message.content[0]?.type==="tool_result")return!1;if(RQ(Y))return!1;if(Y.isMeta)return!1;if(Y.isCompactSummary||Y.isVisibleInTranscriptOnly)return!1;let Z=Y.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&fZ(W)?W.text.trim():"";if(X.indexOf(`<${BZ}>`)!==-1||X.indexOf(`<${vZ}>`)!==-1||X.indexOf(`<${HZ}>`)!==-1||X.indexOf(`<${NZ}>`)!==-1||X.indexOf(`<${zZ}>`)!==-1||X.indexOf(`<${LZ}>`)!==-1||X.indexOf(`<${qZ}`)!==-1)return!1;return!0}function rY(Y,Z){for(let W=Z+1;W<Y.length;W++){let X=Y[W];if(!X)continue;if(RQ(X))continue;if(CQ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var KQ,I,bQ=7;var tY=DQ(()=>{bY();mY();pY();DZ();xY();RY();SY();TY();_Q();uY();cY();CY();MY();fY();FY();kY();XZ();KQ=VZ(IY(),1),I=VZ(hY(),1)});var D6={};IQ(D6,{getCronJitterConfig:()=>w6});function w6(){let Y=c0("tengu_kairos_cron_config",ZQ,L6),Z=q6().safeParse(Y);return Z.success?Z.data:ZQ}var L6=60000,aQ=1800000,z6=2592000000,q6;var _6=DQ(()=>{GQ();v6();m0();AQ();q6=L(()=>Q.object({recurringFrac:Q.number().min(0).max(1),recurringCapMs:Q.number().int().min(0).max(aQ),oneShotMaxMs:Q.number().int().min(0).max(aQ),oneShotFloorMs:Q.number().int().min(0).max(aQ),oneShotMinuteMod:Q.number().int().min(1).max(60),recurringMaxAgeMs:Q.number().int().min(0).max(z6).default(ZQ.recurringMaxAgeMs)}).refine((Y)=>Y.oneShotFloorMs<=Y.oneShotMaxMs))});import{mkdir as E6,readFile as j6,unlink as i0,writeFile as rQ}from"fs/promises";import{dirname as U6,join as r0}from"path";function BQ(Y){return r0(Y??g0(),P6)}async function o0(Y){let Z;try{Z=await j6(BQ(Y),"utf8")}catch{return}let W=$6().safeParse(a0(Z,!1));return W.success?W.data:void 0}async function d0(Y,Z){let W=BQ(Z),X=s(Y);try{return await rQ(W,X,{flag:"wx"}),!0}catch(K){let J=iQ(K);if(J==="EEXIST")return!1;if(J==="ENOENT"){await E6(U6(W),{recursive:!0});try{return await rQ(W,X,{flag:"wx"}),!0}catch(G){if(iQ(G)==="EEXIST")return!1;throw G}}throw K}}function nQ(Y){PQ?.(),PQ=l0(async()=>{await vQ(Y)})}async function oQ(Y){let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await d0(X,Z))return NQ=void 0,nQ(Y),T(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await o0(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await rQ(BQ(Z),s(X)),nQ(Y);return!0}if(K&&n0(K.pid)){if(NQ!==K.sessionId)NQ=K.sessionId,T(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)T(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await i0(BQ(Z)).catch(()=>{}),await d0(X,Z))return NQ=void 0,nQ(Y),!0;return!1}async function vQ(Y){PQ?.(),PQ=void 0,NQ=void 0;let Z=Y?.dir,W=Y?.lockIdentity??HQ(),X=await o0(Z);if(!X||X.sessionId!==W)return;try{await i0(BQ(Z)),T("[ScheduledTasks] released scheduler lock")}catch{}}var P6,$6,PQ,NQ;var t0=DQ(()=>{GQ();JQ();A6();VQ();cQ();O6();y6();AQ();jQ();P6=r0(".claudin","scheduled_tasks.lock"),$6=L(()=>Q.object({sessionId:Q.string(),pid:Q.number(),acquiredAt:Q.number()}))});var h6={};IQ(h6,{takeDueSessionWakeup:()=>NY,isRecurringTaskAged:()=>HY,createCronScheduler:()=>T6,buildMissedTaskNotification:()=>BY});function HY(Y,Z,W){if(W===0)return!1;return Boolean(Y.recurring&&!Y.permanent&&Z-Y.createdAt>=W)}function NY(Y){let Z=eQ();if(!Z||Y<Z.fireAtMs)return null;return YY(),{prompt:QZ(Z.prompt),reason:Z.reason}}function T6(Y){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:J,onWakeupFire:G,dir:V,lockIdentity:B,getJitterConfig:v,isKilled:N,filter:w}=Y,O=V||B?{dir:V,lockIdentity:B}:void 0,$=[],z=new Map,h=new Set,E=new Set,D=null,_=null,R=null,F=null,j=!1,U=!1;async function c(C){let x=await KY(V);if(j)return;if($=x,!C)return;let q=Date.now(),b=JY(x,q).filter((P)=>!P.recurring&&!h.has(P.id)&&(!w||w(P)));if(b.length>0){for(let P of b)h.add(P.id),z.set(P.id,1/0);if(J)J(b);else Z(BY(b));tQ(b.map((P)=>P.id),V).catch((P)=>T(`[ScheduledTasks] failed to remove missed tasks: ${P}`)),T(`[ScheduledTasks] surfaced ${b.length} missed one-shot task(s)`)}}function d(){if(N?.())return;if(W()&&!X)return;let C=Date.now(),x=new Set,q=[],b=v?.()??ZQ;function P(H,l){if(w&&!w(H))return;if(x.add(H.id),E.has(H.id))return;let i=z.get(H.id);if(i===void 0)i=H.recurring?sQ(H.cron,H.lastFiredAt??H.createdAt,H.id,b)??1/0:GY(H.cron,H.createdAt,H.id,b)??1/0,z.set(H.id,i),T(`[ScheduledTasks] scheduled ${H.id} for ${i===1/0?"never":new Date(i).toISOString()}`);if(C<i)return;T(`[ScheduledTasks] firing ${H.id}${H.recurring?" (recurring)":""}`);let YQ=V===void 0?QZ(H.prompt,void 0,H.agentId):H.prompt;if(K)K(YQ===H.prompt?H:{...H,prompt:YQ});else Z(YQ);let WQ=HY(H,C,b.recurringMaxAgeMs);if(WQ){let t=Math.floor((C-H.createdAt)/1000/60/60);T(`[ScheduledTasks] recurring task ${H.id} aged out (${t}h since creation), deleting after final fire`)}if(H.recurring&&!WQ){let t=sQ(H.cron,C,H.id,b)??1/0;if(z.set(H.id,t),!l)q.push(H.id)}else if(l)ZY([H.id]),z.delete(H.id);else E.add(H.id),tQ([H.id],V).catch((t)=>T(`[ScheduledTasks] failed to remove task ${H.id}: ${t}`)).finally(()=>E.delete(H.id)),z.delete(H.id)}if(U){for(let H of $)P(H,!1);if(q.length>0){for(let H of q)E.add(H);VY(q,C,V).catch((H)=>T(`[ScheduledTasks] failed to persist lastFiredAt: ${H}`)).finally(()=>{for(let H of q)E.delete(H)})}}if(V===void 0){for(let l of QY())P(l,!0);let H=NY(C);if(H!==null)if(T("[ScheduledTasks] firing pending ScheduleWakeup"),G)G(H.prompt,H.reason);else Z(H.prompt)}if(x.size===0){z.clear();return}for(let H of z.keys())if(!x.has(H))z.delete(H)}async function n(){if(j)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-1.1.32-zep1vry1.mjs");if(j)return;if(U=await oQ(O).catch(()=>!1),j){if(U)U=!1,vQ(O);return}if(!U)R=setInterval(()=>{oQ(O).then((q)=>{if(j){if(q)vQ(O);return}if(q){if(U=!0,R)clearInterval(R),R=null}}).catch((q)=>T(String(q),{level:"error"}))},M6),R.unref?.();c(!0);let x=XY(V);F=C.watch(x,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:f6},ignorePermissionErrors:!0}),F.on("add",()=>void c(!1)),F.on("change",()=>void c(!1)),F.on("unlink",()=>{if(!j)$=[],z.clear()}),_=setInterval(d,s0),_.unref?.()}return{start(){if(j=!1,V!==void 0){T(`[ScheduledTasks] scheduler start() — dir=${V}, hasTasks=${$Q(V)}`),n();return}if(T(`[ScheduledTasks] scheduler start() — enabled=${LQ()}, hasTasks=${$Q()}`),!LQ()&&(X||$Q()))e0(!0);if(LQ()){n();return}D=setInterval((C)=>{if(LQ())C()},s0,n),D.unref?.()},stop(){if(j=!0,D)clearInterval(D),D=null;if(_)clearInterval(_),_=null;if(R)clearInterval(R),R=null;if(F?.close(),F=null,U)U=!1,vQ(O)},getNextFireTime(){let C=1/0;for(let x of z.values())if(x<C)C=x;if(V===void 0){let x=eQ();if(x&&x.fireAtMs<C)C=x.fireAtMs}return C===1/0?null:C}}}function BY(Y){let Z=Y.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Y.map((K)=>{let J=`[${WY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((B,v)=>Math.max(B,v.length),0),V="`".repeat(Math.max(3,G+1));return`${J}
12
- ${V}
13
- ${K.prompt}
14
- ${V}`});return`${W}
15
-
16
- ${X.join(`
17
-
18
- `)}`}var s0=1000,f6=300,M6=5000;var I6=DQ(()=>{JQ();F6();m0();t0();VQ();b6()});GQ();VQ();AQ();hZ();sY();var BW=L(()=>Q.object({tool_name:Q.string().describe("The name of the tool requesting permission"),input:Q.record(Q.string(),Q.unknown()).describe("The input for the tool"),tool_use_id:Q.string().optional().describe("The unique tool use request ID")})),RZ=L(()=>Q.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),eY=L(()=>Q.object({behavior:Q.literal("allow"),updatedInput:Q.record(Q.string(),Q.unknown()),updatedPermissions:Q.array(IZ()).optional().catch((Y)=>{T(`Malformed updatedPermissions from SDK host ignored: ${Y.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:Q.string().optional(),decisionClassification:RZ()})),Q9=L(()=>Q.object({behavior:Q.literal("deny"),message:Q.string(),interrupt:Q.boolean().optional(),toolUseID:Q.string().optional(),decisionClassification:RZ()})),SQ=L(()=>Q.union([eY(),Q9()]));function EQ(Y,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Y};if(Y.behavior==="allow"){let J=Y.updatedPermissions;if(J)X.setAppState((V)=>({...V,toolPermissionContext:yQ(V.toolPermissionContext,J)})),OQ(J);let G=Object.keys(Y.updatedInput).length>0?Y.updatedInput:W;return{...Y,updatedInput:G,decisionReason:K}}else if(Y.behavior==="deny"&&Y.interrupt)T(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Y.message}`),X.abortController.abort();return{...Y,decisionReason:K}}import{randomUUID as uQ}from"crypto";GQ();AQ();Z9();var Y9=L(()=>Q.unknown()),W9=L(()=>Q.object({matcher:Q.string().optional(),hookCallbackIds:Q.array(Q.string()),timeout:Q.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),X9=L(()=>Q.object({subtype:Q.literal("initialize"),hooks:Q.record(pZ(),Q.array(W9())).optional(),sdkMcpServers:Q.array(Q.string()).optional(),jsonSchema:Q.record(Q.string(),Q.unknown()).optional(),systemPrompt:Q.string().optional(),appendSystemPrompt:Q.string().optional(),agents:Q.record(Q.string(),dZ()).optional(),promptSuggestions:Q.boolean().optional(),agentProgressSummaries:Q.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),wW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),output_style:Q.string(),available_output_styles:Q.array(Q.string()),models:Q.array(cZ()),account:mZ(),pid:Q.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:rZ().optional()}).describe("Response from session initialization with available commands, models, and account info.")),K9=L(()=>Q.object({subtype:Q.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),V9=L(()=>Q.object({subtype:Q.literal("can_use_tool"),tool_name:Q.string(),input:Q.record(Q.string(),Q.unknown()),permission_suggestions:Q.array(xZ()).optional(),blocked_path:Q.string().optional(),decision_reason:Q.string().optional(),title:Q.string().optional(),display_name:Q.string().optional(),tool_use_id:Q.string(),agent_id:Q.string().optional(),description:Q.string().optional()}).describe("Requests permission to use a tool with the given input.")),G9=L(()=>Q.object({subtype:Q.literal("set_permission_mode"),mode:kZ()}).describe("Sets the permission mode for tool execution handling.")),J9=L(()=>Q.object({subtype:Q.literal("set_model"),model:Q.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),H9=L(()=>Q.object({subtype:Q.literal("set_max_thinking_tokens"),max_thinking_tokens:Q.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),N9=L(()=>Q.object({subtype:Q.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),B9=L(()=>Q.object({subtype:Q.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),v9=L(()=>Q.object({name:Q.string(),tokens:Q.number(),color:Q.string(),isDeferred:Q.boolean().optional()})),L9=L(()=>Q.object({color:Q.string(),isFilled:Q.boolean(),categoryName:Q.string(),tokens:Q.number(),percentage:Q.number(),squareFullness:Q.number()})),DW=L(()=>Q.object({categories:Q.array(v9()),totalTokens:Q.number(),maxTokens:Q.number(),rawMaxTokens:Q.number(),percentage:Q.number(),gridRows:Q.array(Q.array(L9())),model:Q.string(),memoryFiles:Q.array(Q.object({path:Q.string(),type:Q.string(),tokens:Q.number()})),mcpTools:Q.array(Q.object({name:Q.string(),serverName:Q.string(),tokens:Q.number(),isLoaded:Q.boolean().optional()})),deferredBuiltinTools:Q.array(Q.object({name:Q.string(),tokens:Q.number(),isLoaded:Q.boolean()})).optional(),systemTools:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),systemPromptSections:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),agents:Q.array(Q.object({agentType:Q.string(),source:Q.string(),tokens:Q.number()})),slashCommands:Q.object({totalCommands:Q.number(),includedCommands:Q.number(),tokens:Q.number()}).optional(),skills:Q.object({totalSkills:Q.number(),includedSkills:Q.number(),tokens:Q.number(),skillFrontmatter:Q.array(Q.object({name:Q.string(),source:Q.string(),tokens:Q.number()}))}).optional(),autoCompactThreshold:Q.number().optional(),isAutoCompactEnabled:Q.boolean(),messageBreakdown:Q.object({toolCallTokens:Q.number(),toolResultTokens:Q.number(),attachmentTokens:Q.number(),assistantMessageTokens:Q.number(),userMessageTokens:Q.number(),toolCallsByType:Q.array(Q.object({name:Q.string(),callTokens:Q.number(),resultTokens:Q.number()})),attachmentsByType:Q.array(Q.object({name:Q.string(),tokens:Q.number()}))}).optional(),apiUsage:Q.object({input_tokens:Q.number(),output_tokens:Q.number(),cache_creation_input_tokens:Q.number(),cache_read_input_tokens:Q.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),z9=L(()=>Q.object({subtype:Q.literal("rewind_files"),user_message_id:Q.string(),dry_run:Q.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),q9=L(()=>Q.object({subtype:Q.literal("cancel_async_message"),message_uuid:Q.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),w9=L(()=>Q.object({subtype:Q.literal("seed_read_state"),path:Q.string(),mtime:Q.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),D9=L(()=>Q.object({subtype:Q.literal("hook_callback"),callback_id:Q.string(),input:uZ(),tool_use_id:Q.string().optional()}).describe("Delivers a hook callback with its input data.")),_9=L(()=>Q.object({subtype:Q.literal("mcp_message"),server_name:Q.string(),message:Y9()}).describe("Sends a JSON-RPC message to a specific MCP server.")),A9=L(()=>Q.object({subtype:Q.literal("mcp_set_servers"),servers:Q.record(Q.string(),CZ())}).describe("Replaces the set of dynamically managed MCP servers.")),_W=L(()=>Q.object({added:Q.array(Q.string()),removed:Q.array(Q.string()),errors:Q.record(Q.string(),Q.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),y9=L(()=>Q.object({subtype:Q.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),AW=L(()=>Q.object({commands:Q.array(xQ()),agents:Q.array(kQ()),plugins:Q.array(Q.object({name:Q.string(),path:Q.string(),source:Q.string().optional()})),mcpServers:Q.array(SZ()),error_count:Q.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),O9=L(()=>Q.object({subtype:Q.literal("mcp_reconnect"),serverName:Q.string()}).describe("Reconnects a disconnected or failed MCP server.")),E9=L(()=>Q.object({subtype:Q.literal("mcp_toggle"),serverName:Q.string(),enabled:Q.boolean()}).describe("Enables or disables an MCP server.")),j9=L(()=>Q.object({subtype:Q.literal("stop_task"),task_id:Q.string()}).describe("Stops a running task.")),U9=L(()=>Q.object({subtype:Q.literal("apply_flag_settings"),settings:Q.record(Q.string(),Q.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),P9=L(()=>Q.object({subtype:Q.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),yW=L(()=>Q.object({effective:Q.record(Q.string(),Q.unknown()),sources:Q.array(Q.object({source:Q.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Q.record(Q.string(),Q.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Q.object({model:Q.string(),effort:Q.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),$9=L(()=>Q.object({subtype:Q.literal("elicitation"),mcp_server_name:Q.string(),message:Q.string(),mode:Q.enum(["form","url"]).optional(),url:Q.string().optional(),elicitation_id:Q.string().optional(),requested_schema:Q.record(Q.string(),Q.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),oZ=L(()=>Q.object({action:Q.enum(["accept","decline","cancel"]),content:Q.record(Q.string(),Q.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),F9=L(()=>Q.union([K9(),V9(),X9(),G9(),J9(),H9(),N9(),B9(),D9(),_9(),z9(),q9(),w9(),A9(),y9(),O9(),E9(),j9(),U9(),P9(),$9()])),pQ=L(()=>Q.object({type:Q.literal("control_request"),request_id:Q.string(),request:F9()})),b9=L(()=>Q.object({subtype:Q.literal("success"),request_id:Q.string(),response:Q.record(Q.string(),Q.unknown()).optional()})),f9=L(()=>Q.object({subtype:Q.literal("error"),request_id:Q.string(),error:Q.string(),pending_permission_requests:Q.array(Q.lazy(()=>pQ())).optional()})),tZ=L(()=>Q.object({type:Q.literal("control_response"),response:Q.union([b9(),f9()])})),M9=L(()=>Q.object({type:Q.literal("control_cancel_request"),request_id:Q.string()}).describe("Cancels a currently open control request.")),sZ=L(()=>Q.object({type:Q.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),T9=L(()=>Q.object({type:Q.literal("update_environment_variables"),variables:Q.record(Q.string(),Q.string())}).describe("Updates environment variables at runtime.")),OW=L(()=>Q.union([iZ(),lZ(),aZ(),nZ(),tZ(),pQ(),M9(),sZ()])),EW=L(()=>Q.union([gZ(),pQ(),tZ(),sZ(),T9()]));x9();VQ();C9();cQ();S9();R9();jQ();GQ();k9();B0();hZ();u9();jQ();p9();jQ();var h9=/\u2028|\u2029/g;function I9(Y){return Y.replace(h9,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function eZ(Y){return I9(s(Y))}var c9="SandboxNetworkAccess";function m9(Y){if(!Y)return;if(Y.type==="classifier")return Y.reason;switch(Y.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Y.reason}}function d9(Y,Z,W,X){let K;try{K=Y.getActivityDescription?.(Z)??Y.getToolUseSummary?.(Z)??Y.userFacingName(Z)}catch{K=Y.name}return{tool_name:Y.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var g9=1000;class l9{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new J0;constructor(Y,Z){this.input=Y;this.replayUserMessages=Z;this.input=Y,this.structuredInput=this.read()}trackResolvedToolUseId(Y){if(Y.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Y.request.tool_use_id),this.resolvedToolUseIds.size>g9){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Y){this.prependedLines.push(s({type:"user",session_id:"",message:{role:"user",content:Y},parent_tool_use_id:null})+`
19
- `)}async*read(){let Y="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Y=this.prependedLines.join("")+Y,this.prependedLines=[];let W=Y.indexOf(`
20
- `);if(W===-1)break;let X=Y.slice(0,W);Y=Y.slice(W+1);let K=await this.processLine(X);if(K)X0("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Y+=W,yield*Z();if(Y){let W=await this.processLine(Y);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Y)=>Y.request).filter((Y)=>Y.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Y){this.unexpectedResponseCallback=Y}injectControlResponse(Y){let Z=Y.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Y.response.subtype==="error")W.reject(Error(Y.response.error));else{let X=Y.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Y){this.onControlRequestSent=Y}setOnControlRequestResolved(Y){this.onControlRequestResolved=Y}async processLine(Y){if(!Y)return;try{let Z=v0(Y0(Y));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[K,J]of Object.entries(Z.variables))process.env[K]=J;T(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)G0(X,"completed");let K=this.pendingRequests.get(Z.response.request_id);if(!K){let V=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof V==="string"&&this.resolvedToolUseIds.has(V)){T(`Ignoring duplicate control_response for already-resolved toolUseID=${V} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(K.request),this.pendingRequests.delete(Z.response.request_id),K.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){K.reject(Error(Z.response.error));return}let J=Z.response.response;if(K.schema)try{K.resolve(K.schema.parse(J))}catch(G){K.reject(G)}else K.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){T(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)Q0("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let W=Z.message;if(W.role!=="user")Q0(`Error: Expected message role 'user', got '${String(W.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Y}: ${Z}`),process.exit(1)}}async write(Y){W0(eZ(Y)+`
21
- `)}async sendRequest(Y,Z,W,X=uQ()){let K={type:"control_request",request_id:X,request:Y};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Y.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new Z0)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((G,V)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Y},resolve:(B)=>{G(B)},reject:V,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Y){return async(Z,W,X,K,J,G)=>{let V=G??await K0(Z,W,X,K,J);if(V.behavior==="allow"||V.behavior==="deny")return V;let B=new AbortController,v=X.abortController.signal,N=()=>B.abort();v.addEventListener("abort",N,{once:!0});try{let w=a9(Z.name,J,W,X,V.suggestions).then((h)=>({source:"hook",decision:h})),O=uQ();Y?.(d9(Z,W,J,O));let $=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:V.suggestions,blocked_path:V.blockedPath,decision_reason:m9(V.decisionReason),tool_use_id:J,agent_id:X.agentId},SQ(),B.signal,O).then((h)=>({source:"sdk",result:h})),z=await Promise.race([w,$]);if(z.source==="hook"){if(z.decision)return $.catch(()=>{}),B.abort(),z.decision;let h=await $;return EQ(h.result,Z,W,X)}return EQ(z.result,Z,W,X)}catch(w){return EQ({behavior:"deny",message:`Tool permission request failed: ${w}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)H0("running");v.removeEventListener("abort",N)}}}createHookCallback(Y,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Y,input:W,tool_use_id:X||void 0},V0(),K)}catch(J){return console.error(`Error in hook callback ${Y}:`,J),{}}}}}async handleElicitation(Y,Z,W,X,K,J,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Y,message:Z,mode:K,url:J,elicitation_id:G,requested_schema:W},oZ(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Y)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:c9,input:{host:Y.host},tool_use_id:uQ(),description:`Allow network connection to ${Y.host}?`},SQ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Y,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Y,message:Z},Q.object({mcp_response:Q.any()}))).mcp_response}}function Q0(Y){console.error(Y),process.exit(1)}async function a9(Y,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,V=N0(Y,Z,W,X,G,K,X.abortController.signal);for await(let B of V)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let v=B.permissionRequestResult;if(v.behavior==="allow"){let N=v.updatedInput||W,w=v.updatedPermissions??[];if(w.length>0){OQ(w);let O=X.getAppState(),$=yQ(O.toolPermissionContext,w);X.setAppState((z)=>{if(z.toolPermissionContext===$)return z;return{...z,toolPermissionContext:$}})}return{behavior:"allow",updatedInput:N,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:v.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Q();Q6();s9();e9();r9();B0();_0();i9();_Q();t9();o9();import{randomUUID as Z6}from"crypto";JQ();_Q();import{randomUUID as n9}from"crypto";function z0(Y,Z,W,X,K,J,G){let V=n9();if(L0(V),Z.length>0){let v=typeof Y==="string"?Y.trim()?[{type:"text",text:Y}]:[]:Y;return{messages:[r({content:[...v,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Y,uuid:K,permissionMode:J,isMeta:G||void 0}),...X],shouldQuery:!0}}async function HX({input:Y,mode:Z,setToolJSX:W,context:X,pastedContents:K,ideSelection:J,messages:G,setUserInputOnProcessing:V,uuid:B,isAlreadyProcessing:v,querySource:N,canUseTool:w,skipSlashCommands:O,bridgeOrigin:$,isMeta:z,skipAttachments:h}){let E=typeof Y==="string"?Y:null;if(Z==="prompt"&&E!==null&&!z)V?.(E);g("query_process_user_input_base_start");let D=X.getAppState(),_=await Y6(Y,Z,W,X,K,J,G,B,v,N,w,D.toolPermissionContext.mode,O,$,z,h);if(g("query_process_user_input_base_end"),!_.shouldQuery)return _;g("query_hooks_start");let R=w0(Y)||"";for await(let F of M0(R,D.toolPermissionContext.mode,X,X.requestPrompt)){if(F.message?.type==="progress")continue;if(F.blockingError){let U=f0(F.blockingError);return{messages:[E0(`${U}
22
-
23
- Original prompt: ${Y}`,"warning")],shouldQuery:!1,allowedTools:_.allowedTools}}if(F.preventContinuation){let U=F.stopReason?`Operation stopped by hook: ${F.stopReason}`:"Operation stopped by hook";return _.messages.push(r({content:U})),_.shouldQuery=!1,_}if(F.additionalContexts&&F.additionalContexts.length>0)_.messages.push(D0({type:"hook_additional_context",content:F.additionalContexts.map(q0),hookName:"UserPromptSubmit",toolUseID:`hook-${Z6()}`,hookEvent:"UserPromptSubmit"}));let j=F.message;if(j&&j.type==="attachment")switch(j.attachment.type){case"hook_success":if(!j.attachment.content)break;_.messages.push({...j,attachment:{...j.attachment,content:q0(j.attachment.content)}});break;default:_.messages.push(j);break}else if(j)_.messages.push(j)}return g("query_hooks_end"),_}var mQ=1e4;function q0(Y){if(Y.length>mQ)return`${Y.substring(0,mQ)}… [output truncated - exceeded ${mQ} characters]`;return Y}async function Y6(Y,Z,W,X,K,J,G,V,B,v,N,w,O,$,z,h){let E=null,D=[],_=[],R=Y;if(typeof Y==="string")E=Y;else if(Y.length>0){g("query_image_processing_start");let q=[];for(let P of Y)if(P.type==="image"){let H=await lQ(P);if(H.dimensions){let l=UQ(H.dimensions);if(l)_.push(l)}q.push(H.block)}else q.push(P);R=q,g("query_image_processing_end");let b=q[q.length-1];if(b?.type==="text")E=b.text,D=q.slice(0,-1);else D=q}if(E===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let F=K?Object.values(K).filter(U0):[],j=F.map((q)=>q.id),U=K?await A0(K):new Map;g("query_pasted_image_processing_start");let c=await Promise.all(F.map(async(q)=>{let b={type:"image",source:{type:"base64",media_type:q.mediaType||"image/png",data:q.content}};return{resized:await lQ(b),originalDimensions:q.dimensions,sourcePath:q.sourcePath??U.get(q.id)}})),d=[];for(let{resized:q,originalDimensions:b,sourcePath:P}of c){if(q.dimensions){let H=UQ(q.dimensions,P);if(H)_.push(H)}else if(b){let H=UQ(b,P);if(H)_.push(H)}else if(P)_.push(`[Image source: ${P}]`);d.push(q.block)}g("query_pasted_image_processing_end");let n=O;if($&&E!==null&&E.startsWith("/")){let q=O0(E),b=q?b0(q.commandName,X.options.commands):void 0;if(b)if(F0(b))n=!1;else{let P=`/${$0(b)} isn't available over Remote Control.`;return{messages:[r({content:E,uuid:V}),j0(`<local-command-stdout>${P}</local-command-stdout>`)],shouldQuery:!1,resultText:P}}}let C=!h&&E!==null&&(Z!=="prompt"||n||!E.startsWith("/"));g("query_attachment_loading_start");let x=C?await y0(P0(E,X,J??null,[],G,v)):[];if(g("query_attachment_loading_end"),E!==null&&Z==="bash"){let{processBashCommand:q}=await import("./processBashCommand-1.1.32-hfk6nzmr.mjs");return dQ(await q(E,D,x,X,W),_)}if(E!==null&&!n&&E.startsWith("/")){let{processSlashCommand:q}=await import("./processSlashCommand-1.1.32-ga3g4qev.mjs"),b=await q(E,D,d,x,X,W,V,B,N);return dQ(b,_)}if(E!==null&&Z==="prompt"){let q=E.trim(),b=x.find((P)=>P.attachment.type==="agent_mention");if(b){let P=`@agent-${b.attachment.agentType}`,H=q===P,l=q.startsWith(P)&&!H}}return dQ(z0(R,d,j,x,V,w,z),_)}function dQ(Y,Z){if(Z.length>0)Y.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Y}_0();function vX(Y){if(Y.type!=="user")return;let Z=Y.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Y&&typeof Y.uuid==="string"?Y.uuid:void 0;return{content:Array.isArray(Z)?W6(Z):Z,uuid:W}}function W6(Y){if(!Y.some(T0))return Y;return Y.map((Z)=>{if(!T0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:h0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function T0(Y){if(Y.type!=="image"||Y.source?.type!=="base64")return!1;return!Y.source.media_type}JQ();H6();K6();J6();X6();G6();V6();import{randomUUID as N6}from"crypto";function B6(Y){return Y===C0?S0:Y}function EX(Y){let W=x0()?.outputStyle??u0,X={type:"system",subtype:"init",cwd:R0(),session_id:HQ(),tools:Y.tools.map((K)=>B6(K.name)),mcp_servers:Y.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Y.model,permissionMode:Y.permissionMode,slash_commands:Y.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:p0().source,betas:I0(),claude_code_version:"99.0.0",output_style:W,agents:Y.agents.map((K)=>K.agentType),skills:Y.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Y.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:N6()};return X.fast_mode_state=k0(Y.model,Y.fastMode),X}x6();JQ();VQ();cQ();R6();C6();DZ();k6();S6();import{isAbsolute as p6,resolve as u6}from"path";function c6(Y,Z,W){let X=[],K=[],J=[];for(let[G,V]of Object.entries(Y)){let B=Z[G],v=yY(V.source,W?.projectRoot);if(!B)X.push(G);else if(V.sourceIsFallback)J.push(G);else if(!wY(v,B.source))K.push({name:G,declaredSource:v,materializedSource:B.source});else J.push(G)}return{missing:X,sourceChanged:K,upToDate:J}}async function YK(Y){let Z=DY();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await _Y()}catch(N){o(N),W={}}let X=c6(Z,W,{projectRoot:ZZ()}),K=[...X.missing.map((N)=>({name:N,source:yY(Z[N].source),action:"install"})),...X.sourceChanged.map(({name:N,declaredSource:w})=>({name:N,source:w,action:"update"}))],J=[],G=[];for(let N of K){if(Y?.skip?.(N.name,N.source)){J.push(N.name);continue}if(N.action==="update"&&qY(N.source)&&!await LY(N.source.path)){T(`[reconcile] '${N.name}' declared path does not exist; keeping materialized entry`),J.push(N.name);continue}G.push(N)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};T(`[reconcile] ${G.length} marketplace(s): ${G.map((N)=>`${N.name}(${N.action})`).join(", ")}`);let V=[],B=[],v=[];for(let N=0;N<G.length;N++){let{name:w,source:O,action:$}=G[N];Y?.onProgress?.({type:"installing",name:w,action:$,index:N+1,total:G.length});try{let z=await AY(O);if($==="install")V.push(w);else B.push(w);Y?.onProgress?.({type:"installed",name:w,alreadyMaterialized:z.alreadyMaterialized})}catch(z){let h=vY(z);v.push({name:w,error:h}),Y?.onProgress?.({type:"failed",name:w,error:h}),o(z)}}return{installed:V,updated:B,failed:v,upToDate:X.upToDate,skipped:J}}function yY(Y,Z){if((Y.source==="directory"||Y.source==="file")&&!p6(Y.path)){let W=Z??ZZ(),X=zY(W);return{...Y,path:u6(X??W,Y.path)}}return Y}
24
- export{SQ as va,EQ as wa,eZ as xa,c9 as ya,l9 as za,gY as Aa,TZ as Ba,rY as Ca,oY as Da,tY as Ea,HX as Fa,vX as Ga,B6 as Ha,EX as Ia,c6 as Ja,YK as Ka,w6 as La,D6 as Ma,_6 as Na,T6 as Oa,h6 as Pa,I6 as Qa};
@@ -1,2 +0,0 @@
1
- import{__ as G,j$ as K}from"./cli-1.1.32-pve0ffcp.mjs";import{Lha as j,Mha as M,Nha as J,Oha as N}from"./cli-1.1.32-kn0zs89y.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
- export{q as fa,$ as ga};
@@ -1,6 +0,0 @@
1
- import{Wqa as z}from"./cli-1.1.32-yw64r19c.mjs";var K$,U$,F$=(_)=>typeof _==="string"?{...U$,name:_}:{...U$,..._};var S_=z(()=>{K$=Symbol("Let zodToJsonSchema decide on which parser to use"),U$={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 __=z(()=>{(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_=z(()=>{__();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],b=Y===X.path.length-1;if(Q==="_errors"){if(b)H._errors.push($(X));Y++;continue}if(!Object.prototype.hasOwnProperty.call(H,Q))if(Q==="__proto__")Object.defineProperty(H,Q,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0});else H[Q]={_errors:[]};if(H=H[Q],b)H._errors.push($(X));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 x_=z(()=>{v_();__();Z=bq});function $_(){return zq}var zq;var A_=z(()=>{x_();zq=Z});function D(_,$){let q=$_(),J=j_({issueData:$,data:_.data,path:_.path,errorMaps:[_.common.contextualErrorMap,_.schemaErrorMap,q,q===Z?void 0:Z].filter((W)=>!!W)});_.common.issues.push(J)}class U{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 S;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 U.mergeObjectSync(_,q)}static mergeObjectSync(_,$){let q={};for(let J of $){let{key:W,value:X}=J;if(W.status==="aborted")return S;if(X.status==="aborted")return S;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 j_=(_)=>{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((b)=>!!b).slice().reverse();for(let b of Q)Y=b(H,{data:$,defaultError:Y}).message;return{...W,path:X,message:Y}},S,o=(_)=>({status:"dirty",value:_}),K=(_)=>({status:"valid",value:_}),y_=(_)=>_.status==="aborted",n_=(_)=>_.status==="dirty",i=(_)=>_.status==="valid",q_=(_)=>typeof Promise<"u"&&_ instanceof Promise;var Z_=z(()=>{A_();x_();S=Object.freeze({status:"aborted"})});var C$=()=>{};var w;var k$=z(()=>{(function(_){_.errToObj=($)=>typeof $==="string"?{message:$}:$||{},_.toString=($)=>typeof $==="string"?$:$?.message})(w||(w={}))});class k{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 A(_){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 j{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 U,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 g$(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 g$(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({...A(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:_}})}default(_){let $=typeof _==="function"?_:()=>_;return new D_({...A(this._def),innerType:this,defaultValue:$,typeName:M.ZodDefault})}brand(){return new c_({typeName:M.ZodBranded,type:this,...A(this._def)})}catch(_){let $=typeof _==="function"?_:()=>_;return new w_({...A(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 gq(_){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"||!$)&&Lq.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"||!$)&&Uq.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 V){let $={};for(let q in _.shape){let J=_.shape[q];$[q]=m.create(d(J))}return new V({..._._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={..._,...$};if(Object.prototype.hasOwnProperty.call(H,"__proto__"))delete H.__proto__;for(let Y of X){if(Y==="__proto__")continue;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 r({values:_,typeName:M.ZodEnum,...A($)})}var g$=(_,$)=>{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,Aq,jq,Oq,Nq,Eq,Vq,Rq="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",u_,Lq,Uq,Kq,Fq,fq,Cq,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])))",kq,x,t,a,O_,W_,N_,X_,H_,E_,c,y,V_,P,V,Q_,h=(_)=>{if(_ instanceof G_)return h(_.schema);else if(_ instanceof l)return h(_.innerType());else if(_ instanceof M_)return[_.value];else if(_ instanceof r)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 c_)return h(_.unwrap());else if(_ instanceof b_)return h(_.unwrap());else if(_ instanceof w_)return h(_._def.innerType);else return[]},i_,Y_,n,R_,L_,s,J_,G_,M_,r,B_,e,l,m,u,D_,w_,U_,D3,c_,K_,b_,w3,M,b3,z3,S3,v3,A3,j3,O3,N3,E3,V3,R3,L3,U3,K3,F3,f3,C3,k3,g3,I3,P3,m3,l3,T3,h3,x3,y3,n3,Z3,u3,p3,i3,c3,r3;var l$=z(()=>{v_();A_();k$();Z_();__();Sq=/^c[^\s-]{8,}$/i,vq=/^[0-9a-z]+$/,Aq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jq=/^[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)?)??$/,Vq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,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])$/,Uq=/^(?:(?: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}=))?$/,Cq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kq=new RegExp(`^${I$}$`);x=class x extends j{_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}),S}let q=new U,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(!Vq.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(Rq,"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(!jq.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(!Aq.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(!kq.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(!gq(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(!Cq.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 x({...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 x({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new x({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new x({...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 _}};x.create=(_)=>{return new x({checks:[],typeName:M.ZodString,coerce:_?.coerce??!1,...A(_)})};t=class t extends j{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}),S}let q=void 0,J=new U;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,...A(_)})};a=class a extends j{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 U;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}),S}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,...A(_)})};O_=class O_ extends j{_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}),S}return K(_.data)}};O_.create=(_)=>{return new O_({typeName:M.ZodBoolean,coerce:_?.coerce||!1,...A(_)})};W_=class W_ extends j{_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}),S}if(Number.isNaN(_.data.getTime())){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_date}),S}let q=new U,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,...A(_)})};N_=class N_ extends j{_parse(_){if(this._getType(_)!==B.symbol){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.symbol,received:q.parsedType}),S}return K(_.data)}};N_.create=(_)=>{return new N_({typeName:M.ZodSymbol,...A(_)})};X_=class X_ extends j{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.undefined,received:q.parsedType}),S}return K(_.data)}};X_.create=(_)=>{return new X_({typeName:M.ZodUndefined,...A(_)})};H_=class H_ extends j{_parse(_){if(this._getType(_)!==B.null){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.null,received:q.parsedType}),S}return K(_.data)}};H_.create=(_)=>{return new H_({typeName:M.ZodNull,...A(_)})};E_=class E_ extends j{constructor(){super(...arguments);this._any=!0}_parse(_){return K(_.data)}};E_.create=(_)=>{return new E_({typeName:M.ZodAny,...A(_)})};c=class c extends j{constructor(){super(...arguments);this._unknown=!0}_parse(_){return K(_.data)}};c.create=(_)=>{return new c({typeName:M.ZodUnknown,...A(_)})};y=class y extends j{_parse(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.never,received:$.parsedType}),S}};y.create=(_)=>{return new y({typeName:M.ZodNever,...A(_)})};V_=class V_ extends j{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.void,received:q.parsedType}),S}return K(_.data)}};V_.create=(_)=>{return new V_({typeName:M.ZodVoid,...A(_)})};P=class P extends j{_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}),S;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 k($,X,$.path,H))})).then((X)=>{return U.mergeArray(q,X)});let W=[...$.data].map((X,H)=>{return J.type._parseSync(new k($,X,$.path,H))});return U.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,...A($)})};V=class V extends j{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}),S}let{status:q,ctx:J}=this._processInputParams(_),{shape:W,keys:X}=this._getCached(),H=[];if(!(this._def.catchall instanceof y&&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 b=W[Q],L=J.data[Q];Y.push({key:{status:"valid",value:Q},value:b._parse(new k(J,L,J.path,Q)),alwaysSet:Q in J.data})}if(this._def.catchall instanceof y){let Q=this._def.unknownKeys;if(Q==="passthrough")for(let b of H)Y.push({key:{status:"valid",value:b},value:{status:"valid",value:J.data[b]}});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 b of H){let L=J.data[b];Y.push({key:{status:"valid",value:b},value:Q._parse(new k(J,L,J.path,b)),alwaysSet:b in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let Q=[];for(let b of Y){let L=await b.key,L$=await b.value;Q.push({key:L,value:L$,alwaysSet:b.alwaysSet})}return Q}).then((Q)=>{return U.mergeObjectSync(q,Q)});else return U.mergeObjectSync(q,Y)}get shape(){return this._def.shape()}strict(_){return w.errToObj,new V({...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 V({...this._def,unknownKeys:"strip"})}passthrough(){return new V({...this._def,unknownKeys:"passthrough"})}extend(_){return new V({...this._def,shape:()=>({...this._def.shape(),..._})})}merge(_){return new V({unknownKeys:_._def.unknownKeys,catchall:_._def.catchall,shape:()=>({...this._def.shape(),..._._def.shape()}),typeName:M.ZodObject})}setKey(_,$){return this.augment({[_]:$})}catchall(_){return new V({...this._def,catchall:_})}pick(_){let $={};for(let q of O.objectKeys(_))if(_[q]&&this.shape[q])$[q]=this.shape[q];return new V({...this._def,shape:()=>$})}omit(_){let $={};for(let q of O.objectKeys(this.shape))if(!_[q])$[q]=this.shape[q];return new V({...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 V({...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 V({...this._def,shape:()=>$})}keyof(){return m$(O.objectKeys(this.shape))}};V.create=(_,$)=>{return new V({shape:()=>_,unknownKeys:"strip",catchall:y.create(),typeName:M.ZodObject,...A($)})};V.strictCreate=(_,$)=>{return new V({shape:()=>_,unknownKeys:"strict",catchall:y.create(),typeName:M.ZodObject,...A($)})};V.lazycreate=(_,$)=>{return new V({shape:_,unknownKeys:"strip",catchall:y.create(),typeName:M.ZodObject,...A($)})};Q_=class Q_ extends j{_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}),S}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},b=Y._parseSync({data:$.data,path:$.path,parent:Q});if(b.status==="valid")return b;else if(b.status==="dirty"&&!W)W={result:b,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}),S}}get options(){return this._def.options}};Q_.create=(_,$)=>{return new Q_({options:_,typeName:M.ZodUnion,...A($)})};i_=class i_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.object)return D($,{code:G.invalid_type,expected:B.object,received:$.parsedType}),S;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]}),S;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,...A(q)})}};Y_=class Y_ extends j{_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=(W,X)=>{if(y_(W)||y_(X))return S;let H=p_(W.value,X.value);if(!H.valid)return D(q,{code:G.invalid_intersection_types}),S;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,...A(q)})};n=class n extends j{_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}),S;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"}),S;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 k(q,X,q.path,H))}).filter((X)=>!!X);if(q.common.async)return Promise.all(W).then((X)=>{return U.mergeArray($,X)});else return U.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,...A($)})};R_=class R_ extends j{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}),S;let J=[],W=this._def.keyType,X=this._def.valueType;for(let H in q.data)J.push({key:W._parse(new k(q,H,q.path,H)),value:X._parse(new k(q,q.data[H],q.path,H)),alwaysSet:H in q.data});if(q.common.async)return U.mergeObjectAsync($,J);else return U.mergeObjectSync($,J)}get element(){return this._def.valueType}static create(_,$,q){if($ instanceof j)return new R_({keyType:_,valueType:$,typeName:M.ZodRecord,...A(q)});return new R_({keyType:x.create(),valueType:_,typeName:M.ZodRecord,...A($)})}};L_=class L_ extends j{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}),S;let J=this._def.keyType,W=this._def.valueType,X=[...q.data.entries()].map(([H,Y],Q)=>{return{key:J._parse(new k(q,H,q.path,[Q,"key"])),value:W._parse(new k(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,b=await Y.value;if(Q.status==="aborted"||b.status==="aborted")return S;if(Q.status==="dirty"||b.status==="dirty")$.dirty();H.set(Q.value,b.value)}return{status:$.value,value:H}})}else{let H=new Map;for(let Y of X){let{key:Q,value:b}=Y;if(Q.status==="aborted"||b.status==="aborted")return S;if(Q.status==="dirty"||b.status==="dirty")$.dirty();H.set(Q.value,b.value)}return{status:$.value,value:H}}}};L_.create=(_,$,q)=>{return new L_({valueType:$,keyType:_,typeName:M.ZodMap,...A(q)})};s=class s extends j{_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}),S;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 b of Y){if(b.status==="aborted")return S;if(b.status==="dirty")$.dirty();Q.add(b.value)}return{status:$.value,value:Q}}let H=[...q.data.values()].map((Y,Q)=>W._parse(new k(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,...A($)})};J_=class J_ extends j{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}),S;function q(H,Y){return j_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_arguments,argumentsError:Y}})}function J(H,Y){return j_({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([]),b=await H._def.args.parseAsync(Y,W).catch((h_)=>{throw Q.addIssue(q(Y,h_)),Q}),L=await Reflect.apply(X,this,b);return await H._def.returns._def.type.parseAsync(L,W).catch((h_)=>{throw Q.addIssue(J(L,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 b=Reflect.apply(X,this,Q.data),L=H._def.returns.safeParse(b,W);if(!L.success)throw new f([J(b,L.error)]);return L.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(..._){return new J_({...this._def,args:n.create(_).rest(c.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(c.create()),returns:$||c.create(),typeName:M.ZodFunction,...A(q)})}};G_=class G_ extends j{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,...A($)})};M_=class M_ extends j{_parse(_){if(_.data!==this._def.value){let $=this._getOrReturnCtx(_);return D($,{received:$.data,code:G.invalid_literal,expected:this._def.value}),S}return{status:"valid",value:_.data}}get value(){return this._def.value}};M_.create=(_,$)=>{return new M_({value:_,typeName:M.ZodLiteral,...A($)})};r=class r extends j{_parse(_){if(typeof _.data!=="string"){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{expected:O.joinValues(q),received:$.parsedType,code:G.invalid_type}),S}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}),S}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 r.create(_,{...this._def,...$})}exclude(_,$=this._def){return r.create(this.options.filter((q)=>!_.includes(q)),{...this._def,...$})}};r.create=m$;B_=class B_ extends j{_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}),S}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}),S}return K(_.data)}get enum(){return this._def.values}};B_.create=(_,$)=>{return new B_({values:_,typeName:M.ZodNativeEnum,...A($)})};e=class e extends j{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}),S;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,...A($)})};l=class l extends j{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 S;let Y=await this._def.schema._parseAsync({data:H,path:q.path,parent:q});if(Y.status==="aborted")return S;if(Y.status==="dirty")return o(Y.value);if($.value==="dirty")return o(Y.value);return Y});else{if($.value==="aborted")return S;let H=this._def.schema._parseSync({data:X,path:q.path,parent:q});if(H.status==="aborted")return S;if(H.status==="dirty")return o(H.value);if($.value==="dirty")return o(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 S;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 S;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 S;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 S;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:$,...A(q)})};l.createWithPreprocess=(_,$,q)=>{return new l({schema:$,effect:{type:"preprocess",transform:_},typeName:M.ZodEffects,...A(q)})};m=class m extends j{_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,...A($)})};u=class u extends j{_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,...A($)})};D_=class D_ extends j{_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,...A($)})};w_=class w_ extends j{_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,...A($)})};U_=class U_ extends j{_parse(_){if(this._getType(_)!==B.nan){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.nan,received:q.parsedType}),S}return{status:"valid",value:_.data}}};U_.create=(_)=>{return new U_({typeName:M.ZodNaN,...A(_)})};D3=Symbol("zod_brand");c_=class c_ extends j{_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 j{_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 S;if(W.status==="dirty")return $.dirty(),o(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 S;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 j{_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,...A($)})};w3={object:V.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=x.create,z3=t.create,S3=U_.create,v3=a.create,A3=O_.create,j3=W_.create,O3=N_.create,N3=X_.create,E3=H_.create,V3=E_.create,R3=c.create,L3=y.create,U3=V_.create,K3=P.create,F3=V.create,f3=V.strictCreate,C3=Q_.create,k3=i_.create,g3=Y_.create,I3=n.create,P3=R_.create,m3=L_.create,l3=s.create,T3=J_.create,h3=G_.create,x3=M_.create,y3=r.create,n3=B_.create,Z3=e.create,u3=l.create,p3=m.create,i3=u.create,c3=l.createWithPreprocess,r3=K_.create});var T$=z(()=>{A_();Z_();C$();__();l$();v_()});var F_=z(()=>{T$()});var f_=(_,$)=>{let q=0;for(;q<_.length&&q<$.length;q++)if(_[q]!==$[q])break;return[(_.length-q).toString(),...$.slice(q)].join("/")};var C_=()=>{};function E(_){if(_.target!=="openAi")return{};let $=[..._.basePath,_.definitionPath,_.openAiAnyTypeName];return _.flags.hasReferencedOpenAiAnyType=!0,{$ref:_.$refStrategy==="relative"?f_($,_.currentPath):$.join("/")}}var C=z(()=>{C_()});function r_(_,$,q,J){if(!J?.errorMessages)return;if(q)_.errorMessage={..._.errorMessage,[$]:q}}function N(_,$,q,J,W){_[$]=q,r_(_,$,J,W)}var p=()=>{};function h$(_,$){let q={type:"array"};if(_.type?._def&&_.type?._def?.typeName!==M.ZodAny)q.items=v(_.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 o_=z(()=>{F_();p();R()});function x$(_,$){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_=z(()=>{p()});function y$(){return{type:"boolean"}}var t_=()=>{};function k_(_,$){return v(_.type._def,$)}var g_=z(()=>{R()});var n$=(_,$)=>{return v(_.innerType._def,$)};var a_=z(()=>{R()});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_=z(()=>{p()});function Z$(_,$){return{...v(_.innerType._def,$),default:_.defaultValue()}}var _$=z(()=>{R()});function u$(_,$){return $.effectStrategy==="input"?v(_.schema._def,$):E($)}var $$=z(()=>{R();C()});function p$(_){return{type:"string",enum:Array.from(_.values)}}var q$=()=>{};function i$(_,$){let q=[v(_.left._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),v(_.right._def,{...$,currentPath:[...$.currentPath,"allOf","1"]})].filter((X)=>!!X),J=$.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,W=[];return q.forEach((X)=>{if(xq(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 xq=(_)=>{if("type"in _&&_.type==="string")return!1;return"allOf"in _};var J$=z(()=>{R()});function c$(_,$){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,g.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,g.cuid,J.message,$);break;case"cuid2":F(q,g.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,g.base64url,J.message,$);break;case"jwt":F(q,g.jwt,J.message,$);break;case"cidr":{if(J.version!=="v6")F(q,g.ipv4Cidr,J.message,$);if(J.version!=="v4")F(q,g.ipv6Cidr,J.message,$);break}case"emoji":F(q,g.emoji(),J.message,$);break;case"ulid":{F(q,g.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,g.base64,J.message,$);break}}break}case"nanoid":F(q,g.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(!yq.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:r$($,J),...q&&J.errorMessages&&{errorMessage:{pattern:q}}})}else N(_,"pattern",r$($,J),q,J)}function r$(_,$){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,g,yq;var P_=z(()=>{p();g={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-_]*$/};yq=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]:v(_.valueType._def,{...$,currentPath:[...$.currentPath,"properties",W]})??E($)}),{}),additionalProperties:$.rejectedAdditionalProperties};let q={type:"object",additionalProperties:v(_.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}=k_(_.keyType._def,$);return{...q,propertyNames:W}}return q}var l_=z(()=>{F_();R();P_();g_();C()});function o$(_,$){if($.mapStrategy==="record")return m_(_,$);let q=v(_.keyType._def,{...$,currentPath:[...$.currentPath,"items","items","0"]})||E($),J=v(_.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$=z(()=>{R();l_();C()});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$=z(()=>{C()});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)=>v(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_=z(()=>{R();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=v(_.innerType._def,{...$,currentPath:[...$.currentPath]});if(J&&"$ref"in J)return{allOf:[J],nullable:!0};return J&&{...J,nullable:!0}}let q=v(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","0"]});return q&&{anyOf:[q,{type:"null"}]}}var B$=z(()=>{R();T_()});function $q(_,$){let q={type:"number"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"int":q.type="integer",r_(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$=z(()=>{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 b=uq(Q);if(b&&q){if(Q._def.typeName==="ZodOptional")Q=Q._def.innerType;if(!Q.isNullable())Q=Q.nullable();b=!1}let L=v(Q._def,{...$,currentPath:[...$.currentPath,"properties",Y],propertyPath:[...$.currentPath,"properties",Y]});if(L===void 0)continue;if(J.properties[Y]=L,!b)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 v(_.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$=z(()=>{R()});var Jq=(_,$)=>{if($.currentPath.toString()===$.propertyPath?.toString())return v(_.innerType._def,$);let q=v(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","1"]});return q?{anyOf:[{not:E($)},q]}:E($)};var b$=z(()=>{R();C()});var Wq=(_,$)=>{if($.pipeStrategy==="input")return v(_.in._def,$);else if($.pipeStrategy==="output")return v(_.out._def,$);let q=v(_.in._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),J=v(_.out._def,{...$,currentPath:[...$.currentPath,"allOf",q?"1":"0"]});return{allOf:[q,J].filter((W)=>W!==void 0)}};var z$=z(()=>{R()});function Xq(_,$){return v(_.type._def,$)}var S$=z(()=>{R()});function Hq(_,$){let J={type:"array",uniqueItems:!0,items:v(_.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$=z(()=>{p();R()});function Qq(_,$){if(_.rest)return{type:"array",minItems:_.items.length,items:_.items.map((q,J)=>v(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[]),additionalItems:v(_.rest._def,{...$,currentPath:[...$.currentPath,"additionalItems"]})};else return{type:"array",minItems:_.items.length,maxItems:_.items.length,items:_.items.map((q,J)=>v(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[])}}var A$=z(()=>{R()});function Yq(_){return{not:E(_)}}var j$=z(()=>{C()});function Gq(_){return E(_)}var O$=z(()=>{C()});var Mq=(_,$)=>{return v(_.innerType._def,$)};var N$=z(()=>{R()});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 x$(_,q);case M.ZodBoolean:return y$();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 c$(_,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 o$(_,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 k_(_,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$=z(()=>{F_();C();o_();d_();t_();g_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();l_();v$();P_();A$();j$();T_();O$();N$()});function v(_,$,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"?v(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 R=z(()=>{S_();E$();C_();C()});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 V$=z(()=>{S_()});var cq=(_,$)=>{let q=Dq($),J=typeof $==="object"&&$.definitions?Object.entries($.definitions).reduce((Q,[b,L])=>({...Q,[b]:v(L._def,{...q,currentPath:[...q.basePath,q.definitionPath,b]},!0)??E(q)}),{}):void 0,W=typeof $==="string"?$:$?.nameStrategy==="title"?void 0:$?.name,X=v(_._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 R$=z(()=>{R();V$();C()});var wq=()=>{};var rq=z(()=>{R$();S_();V$();p();C_();R();wq();C();o_();d_();t_();g_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();N$();l_();v$();P_();A$();j$();T_();O$();E$();R$()});
6
- export{cq as r2,rq as s2};
@@ -1,2 +0,0 @@
1
- import{F as u0}from"./cli-1.1.32-vy2ngm3p.mjs";import{G as C0}from"./cli-1.1.32-7566j53x.mjs";import{rb as _0}from"./cli-1.1.32-4yat84kg.mjs";import{Ac as g0,zc as t}from"./cli-1.1.32-1yrmnphh.mjs";import{Qd as K0,Sd as wf}from"./cli-1.1.32-41xx49ta.mjs";import{Vd as x,Wd as qf}from"./cli-1.1.32-thsw9p6n.mjs";import{Yd as k0,Zd as ff}from"./cli-1.1.32-acgh1gj8.mjs";import{ah as E0,bh as Rf}from"./cli-1.1.32-28vx0a5m.mjs";import{EF as I,FF as F0,GF as P0,GN as E,HF as Ff,Hx as N,Ix as p0,Iz as T0,Jx as $,KN as L0,Kx as i0,Kz as o0,Lx as s,Mx as d0,Qz as h0,Yj as H0,Yx as D,Zx as l,_j as B0,_z as a0,ak as Tf,bT as y0,hT as A0,lF as r,lT as D0,mF as j0,mT as zf,nF as o,oT as b0,pG as I0,qG as Lf,qT as Gf,zF as x0}from"./cli-1.1.32-9yka8m9x.mjs";import{LY as j,SW as _,cY as v,eY as y,iY as d}from"./cli-1.1.32-hgjgfp8p.mjs";import{d1 as O0,o1 as hf}from"./cli-1.1.32-5j5n166h.mjs";import{m2 as S,n2 as F,o2 as M,p2 as Y}from"./cli-1.1.32-jjanec91.mjs";import{L2 as W0,P2 as t0,k3 as m0,l3 as e0}from"./cli-1.1.32-vf3r8a91.mjs";import{N_ as G0,P_ as J0,R_ as Q0,_aa as X0,cfa as s0,dea as W,f$ as U0,gea as O,h$ as V0,j$ as $0,jea as Y0,lea as Z0,nga as M0,qga as r0,tea as C}from"./cli-1.1.32-pve0ffcp.mjs";import{fha as X,jha as v0}from"./cli-1.1.32-1rackf2c.mjs";import{oka as z0,wka as S0}from"./cli-1.1.32-7zp3b6gq.mjs";import{Hpa as n0,bna as q0,gpa as w0}from"./cli-1.1.32-60pc6r2s.mjs";import{Sqa as u,Xqa as m}from"./cli-1.1.32-yw64r19c.mjs";Tf();n0();Gf();hf();F0();$0();r0();C();x0();l();var a=u(_(),1);j();Y();var g=u(_(),1);function A(){let T=g.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=M(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",F(d,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}Y();function n(T){let f=a.c(13),{serverName:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(Z){f:switch(Z){case"yes":case"yes_all":{let k=(O()||{}).enabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{enabledMcpjsonServers:[...k,h]});if(Z==="yes_all")W("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let k=(O()||{}).disabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{disabledMcpjsonServers:[...k,h]});L()}}},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q=`New MCP server found in .mcp.json: ${h}`,G;if(f[3]!==R)G=()=>R("no"),f[3]=R,f[4]=G;else G=f[4];let q;if(f[5]===Symbol.for("react.memo_cache_sentinel"))q=F(A,{}),f[5]=q;else q=f[5];let z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=z;else z=f[6];let J;if(f[7]!==R)J=F(o,{options:z,onChange:(V)=>R(V),onCancel:()=>R("no")}),f[7]=R,f[8]=J;else J=f[8];let U;if(f[9]!==Q||f[10]!==G||f[11]!==J)U=M(D,{title:Q,color:"warning",onCancel:G,children:[q,J]}),f[9]=Q,f[10]=G,f[11]=J,f[12]=U;else U=f[12];return U}g0();j();C();i0();j0();d0();l();p0();var e=u(_(),1);Y();function f0(T){let f=e.c(21),{serverNames:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(b){let K=O()||{},N0=K.enabledMcpjsonServers||[],c0=K.disabledMcpjsonServers||[],[p,i]=t(h,(P)=>b.includes(P));if(p.length>0){let P=[...new Set([...N0,...p])];W("localSettings",{enabledMcpjsonServers:P})}if(i.length>0){let P=[...new Set([...c0,...i])];W("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q;if(f[3]!==L||f[4]!==h)Q=()=>{let b=(O()||{}).disabledMcpjsonServers||[],K=[...new Set([...b,...h])];W("localSettings",{disabledMcpjsonServers:K}),L()},f[3]=L,f[4]=h,f[5]=Q;else Q=f[5];let G=Q,q=`${h.length} new MCP servers found in .mcp.json`,z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=F(A,{}),f[6]=z;else z=f[6];let J;if(f[7]!==h)J=h.map(l0),f[7]=h,f[8]=J;else J=f[8];let U;if(f[9]!==G||f[10]!==R||f[11]!==h||f[12]!==J)U=F(r,{options:J,defaultValue:h,onSubmit:R,onCancel:G,hideIndexes:!0}),f[9]=G,f[10]=R,f[11]=h,f[12]=J,f[13]=U;else U=f[13];let V;if(f[14]!==G||f[15]!==q||f[16]!==U)V=M(D,{title:q,subtitle:"Select any you wish to enable.",color:"warning",onCancel:G,hideInputGuide:!0,children:[z,U]}),f[14]=G,f[15]=q,f[16]=U,f[17]=V;else V=f[17];let Z;if(f[18]===Symbol.for("react.memo_cache_sentinel"))Z=F(v,{paddingX:1,children:F(y,{dimColor:!0,italic:!0,children:M(s,{children:[F(N,{shortcut:"Space",action:"select"}),F(N,{shortcut:"Enter",action:"confirm"}),F($,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=Z;else Z=f[18];let B;if(f[19]!==V)B=M(S,{children:[V,Z]}),f[19]=V,f[20]=B;else B=f[20];return B}function l0(T){return{label:T,value:T}}F0();L0();a0();o0();Y();async function R0(T){let{servers:f}=h0("project"),h=Object.keys(f).filter((L)=>T0(L)==="pending");if(h.length===0)return;await new Promise((L)=>{let w=()=>void L();if(h.length===1&&h[0]!==void 0){let R=h[0];T.render(F(E,{children:F(I,{children:F(n,{serverName:R,onDone:w})})}))}else T.render(F(E,{children:F(I,{children:F(f0,{serverNames:h,onDone:w})})}))})}L0();qf();e0();zf();s0();wf();S0();class c{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let h=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((G,q)=>q-G),w=Math.max(0,Math.ceil(L.length*0.01)-1),R=L[w],Q=R>0?1000/R:0;return{averageFps:Math.round(h*100)/100,low1PctFps:Math.round(Q*100)/100}}}ff();t0();Ff();Rf();Lf();C();v0();Y();function Jf(){G0((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Qf(T,f){return new Promise((h)=>{let L=(w)=>void h(w);T.render(f(L))})}async function YT(T,f,h){return Uf(T,f,{color:"error",beforeExit:h})}async function Uf(T,f,h){let{Text:L}=await import("./ink-1.1.32-brepbf1s.mjs"),w=h?.color,R=h?.exitCode??1;T.render(w?F(L,{color:w,children:f}):F(L,{children:f})),T.unmount(),await h?.beforeExit?.(),process.exit(R)}function H(T,f,h){return Qf(T,(L)=>F(E,{onChangeAppState:h?.onChangeAppState,children:F(I,{children:f(L)})}))}async function ZT(T,f){T.render(f),u0(),await T.waitUntilExit(),await B0(0)}async function MT(T,f,h,L,w){if(process.env.IS_DEMO)return!1;X("setupScreens_start");let R=W0(),Q=!1;if(K0()){let{MigrationDialog:q}=await import("./MigrationDialog-1.1.32-yytrpays.mjs");await H(T,(z)=>F(q,{onDone:()=>void z()}))}let G=J0();if(R&&(!G.theme||!G.hasCompletedOnboarding)){Q=!0;let{Onboarding:q}=await import("./Onboarding-1.1.32-c5yyxz32.mjs");await H(T,(z)=>F(q,{onDone:()=>{Jf(),z()}}),{onChangeAppState:x})}if(!z0(process.env.CLAUBBIT)){if(R&&!X0()){let{TrustDialog:q}=await import("./TrustDialog-1.1.32-33mkg42t.mjs");await H(T,(z)=>F(q,{commands:L,onDone:z}))}if(w0(!0),X("setupScreens_after_trust_accepted"),V0(),U0(),b0(),X("setupScreens_after_growthbook_kick"),R){let{errors:q}=I0();if(q.length===0)await R0(T);X("setupScreens_after_mcp_approvals");let z=await D0();if(X("setupScreens_after_claudemd_check"),z){let J=y0(await A0(!0)),{ClaudeMdExternalIncludesDialog:U}=await import("./ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs");await H(T,(V)=>F(U,{onDone:V,isStandaloneDialog:!0,externalIncludes:J}))}}}C0(),k0(),X("setupScreens_after_env_applied");{let q=M0();X("setupScreens_after_tryGetActiveProvider");let z=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(z){let J=m0(z),U=Q0(J);if(X("setupScreens_after_keyStatus"),U==="new"){let{ApproveApiKey:V}=await import("./ApproveApiKey-1.1.32-8x1yxm2f.mjs");await H(T,(Z)=>F(V,{customApiKeyTruncated:J,onDone:Z}),{onChangeAppState:x})}}}if(X("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||h)&&!Y0()){let{BypassPermissionsModeDialog:q}=await import("./BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs");await H(T,(z)=>F(q,{onAccept:z}))}if(f==="auto"&&!Z0()){let{AutoModeOptInDialog:q}=await import("./AutoModeOptInDialog-1.1.32-scm9btv0.mjs");await H(T,(z)=>F(q,{onAccept:z,onDecline:()=>H0(1),declineExits:!0}))}return X("setupScreens_end"),Q}function WT(T){E0();let f=0,h=P0(T),L=new c,w=_0();return q0(w),{getFpsMetrics:()=>L.getMetrics(),stats:w,renderOptions:{...h,onFrame:(R)=>{if(L.record(R.durationMs),w.observe("frame_duration_ms",R.durationMs),O0())return;for(let Q of R.flickers){if(Q.reason==="resize")continue;f=Date.now()}}}}}
2
- export{Jf as x,Qf as y,YT as z,Uf as A,H as B,ZT as C,MT as D,WT as E};
@@ -1,2 +0,0 @@
1
- import{Nd as O,Od as Q,Rd as U,Sd as $}from"./cli-1.1.32-41xx49ta.mjs";import{nF as N,zF as _}from"./cli-1.1.32-9yka8m9x.mjs";import{LY as Z,cY as G,eY as w}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as q,o2 as F,p2 as K}from"./cli-1.1.32-jjanec91.mjs";import{q2 as Y}from"./cli-1.1.32-6f9r9qcb.mjs";import{Sqa as W,Wqa as X}from"./cli-1.1.32-yw64r19c.mjs";function R({enabled:J,onDismiss:H}){let[z,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||z.kind==="hidden")return null;if(z.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(w,{dimColor:!0,children:"Copying API tokens and provider profiles."})]});if(z.kind==="success"||z.kind==="error"){let I=z.kind==="success"?"success":"warning",E=z.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:I,bold:!0,children:E}),q(w,{children:Q(z.report)}),q(w,{dimColor:!0,children:"Next: /import brings skills, MCP servers, agents and slash commands — from Claude Code, and from Codex, Gemini CLI, Qwen Code, opencode, Kimi CLI and Cursor."})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(w,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(w,{children:"Copy the Claude Code sign-in — API tokens and provider profiles — into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Copy my sign-in",description:"Tokens only. Run /import for skills, MCP, agents."},{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 Ld,f as Md};
@@ -1,2 +0,0 @@
1
- import{An as U,Ct as X,wk as M,xk as W,xn as O,yn as P,zn as Q}from"./cli-1.1.32-9yka8m9x.mjs";import{Wqa as V}from"./cli-1.1.32-yw64r19c.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
- export{F as og,$ as pg};
@@ -1,2 +0,0 @@
1
- import{Vr as J,Xr as Y}from"./cli-1.1.32-9yka8m9x.mjs";import{KV as G,MV as X}from"./cli-1.1.32-1c9z2mtv.mjs";import{Q5 as B,V5 as D,W5 as F,a3 as z,f3 as V,j6 as W}from"./cli-1.1.32-vf3r8a91.mjs";import{b9 as y,t9 as Q}from"./cli-1.1.32-g5dzf2w1.mjs";import{Cia as w,Dia as N}from"./cli-1.1.32-ajhvj43e.mjs";import{Wqa as M}from"./cli-1.1.32-yw64r19c.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
2
- export{f as xh,Z as yh};
@@ -1,2 +0,0 @@
1
- import{Ji as e,Mi as fq}from"./cli-1.1.32-26474ywa.mjs";import{Ni as t,Pi as Hq}from"./cli-1.1.32-33jnyekk.mjs";import{Ax as Nq,Hx as S,Ix as Vq,Jx as i,Kx as Wq,Lx as r,Mx as Yq,Qn as u,Rn as g,Sn as Zq,Yx as n,Zx as kq,gO as s,hO as Oq,nF as o,oF as Mq,yx as $}from"./cli-1.1.32-9yka8m9x.mjs";import{LY as Xq,SW as Qq,cY as M,eY as F,wY as c,xY as Uq}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as L,o2 as R,p2 as l}from"./cli-1.1.32-jjanec91.mjs";import{q2 as Lq}from"./cli-1.1.32-6f9r9qcb.mjs";import{U9 as a,V9 as Jq}from"./cli-1.1.32-pve0ffcp.mjs";import{Sqa as d,Wqa as Gq}from"./cli-1.1.32-yw64r19c.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claudin will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(s,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=_;else _=q[6];let zq=_,m;if(q[7]!==X||q[8]!==N)m=async(z)=>{let G=await u(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(g(G))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let K=m,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];$("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(o,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(n,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R(r,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(i,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Zq();Oq();Xq();Nq();fq();Wq();Mq();Yq();kq();Vq();Hq();l();T=d(Qq(),1),H=d(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
2
- export{lq as Hi,Fq as Ii};
@@ -1,2 +0,0 @@
1
- import{Wr as H,Xr as p,oC as I,qC as P,vC as t,wo as W,xo as n}from"./cli-1.1.32-9yka8m9x.mjs";import{KV as C,MV as i}from"./cli-1.1.32-1c9z2mtv.mjs";import{K2 as S,P2 as c,Q5 as R,W5 as V,j6 as l,r5 as v}from"./cli-1.1.32-vf3r8a91.mjs";import{b9 as Q,t9 as f}from"./cli-1.1.32-g5dzf2w1.mjs";import{Cea as E,Dga as m,Eea as u,N_ as $,P_ as X,cfa as O,cga as T,ega as Y,kga as y,nga as k,qga as g,yga as D}from"./cli-1.1.32-pve0ffcp.mjs";import{Lha as G,Mha as h,Nha as q,Oha as A}from"./cli-1.1.32-kn0zs89y.mjs";import{Cia as _,Dia as M,xia as Z}from"./cli-1.1.32-ajhvj43e.mjs";import{Dja as x,Gja as b}from"./cli-1.1.32-8jkgzjh4.mjs";import{Wqa as U}from"./cli-1.1.32-yw64r19c.mjs";async function s(){if(E())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),$((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{f();n();l();h();M();O();b();p();A();m();c();u();t();i();g();y();d=q(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
- export{Yj as lc,r as mc};
@@ -1,17 +0,0 @@
1
- import{f5 as x,l5 as K}from"./cli-1.1.32-vf3r8a91.mjs";import{Z_ as v,gea as w,j$ as I,tea as J}from"./cli-1.1.32-pve0ffcp.mjs";import{oka as q,wka as G}from"./cli-1.1.32-7zp3b6gq.mjs";import{Wqa as z}from"./cli-1.1.32-yw64r19c.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDIN_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
-
3
- You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
-
5
- Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
-
7
- Also call advisor:
8
- - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
- - When stuck -- errors recurring, approach not converging, results that don't fit.
10
- - When considering a change of approach.
11
-
12
- On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
-
14
- Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
-
16
- If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
- export{W as fU,k as gU,N as hU,X as iU,Z as jU,$ as kU,B as lU,D as mU,F as nU,O as oU};
@@ -1,2 +0,0 @@
1
- import{LY as k,SW as Z,eY as K}from"./cli-1.1.32-hgjgfp8p.mjs";import{o2 as J,p2 as H}from"./cli-1.1.32-jjanec91.mjs";import{U9 as v,V9 as Y}from"./cli-1.1.32-pve0ffcp.mjs";import{Sqa as V,Wqa as X}from"./cli-1.1.32-yw64r19c.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
- export{N as Eh,C as Fh};