@claudiolabs/claudin 0.5.8 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (844) hide show
  1. package/bin/claudin +62 -0
  2. package/dist/chunks/AgentTool-0.5.10-k5mymxpj.mjs +1 -0
  3. package/dist/chunks/App-0.5.10-yzg0d70f.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.5.10-mpm24aq5.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.5.10-jbgn5s9r.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.5.10-f4wd3yew.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.5.10-f28xdhns.mjs +3 -0
  11. package/dist/chunks/Doctor-0.5.10-dz3ndek3.mjs +1 -0
  12. package/dist/chunks/Grove-0.5.10-f2m596r7.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.5.10-k9sjxv27.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.5.10-d5f0ba3j.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.5.10-vyexdzf7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.5.10-fxhfd566.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.5.10-61c4a01v.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.5.10-mhnze07c.mjs +1 -0
  19. package/dist/chunks/REPL-0.5.10-qag06ykw.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.5.10-ax66yat2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.5.10-mkzs7881.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.5.10-762m6e6b.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.5.10-mr8ddjsn.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.5.10-rs9vs3j0.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.5.10-s7yrx34h.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.5.10-8tejm808.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.5.10-v09an4xe.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.5.10-1c68rtzb.mjs +1 -0
  29. package/dist/chunks/add-dir-0.5.10-6hyjyege.mjs +1 -0
  30. package/dist/chunks/agents-0.5.10-34zhsd0m.mjs +110 -0
  31. package/dist/chunks/agents-0.5.10-fa6mrf84.mjs +3 -0
  32. package/dist/chunks/api-0.5.10-hvafwq9b.mjs +1 -0
  33. package/dist/chunks/asciicast-0.5.10-c2nfaps4.mjs +1 -0
  34. package/dist/chunks/assistant-0.5.10-w55twa4a.mjs +1 -0
  35. package/dist/chunks/auth-0.5.10-dmv8dcy1.mjs +1 -0
  36. package/dist/chunks/auth-0.5.10-tqm37j6k.mjs +1 -0
  37. package/dist/chunks/autoMode-0.5.10-bew44c3j.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.5.10-dav9gs0x.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.5.10-rsyjn0x7.mjs +1 -0
  40. package/dist/chunks/branch-0.5.10-k81z6new.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.5.10-h727df9t.mjs +1 -0
  42. package/dist/chunks/btw-0.5.10-f1syxkz1.mjs +1 -0
  43. package/dist/chunks/buddy-0.5.10-a15r3a8e.mjs +3 -0
  44. package/dist/chunks/cacache-0.5.10-1hz9d6s8.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.5.10-fcxj2wy5.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.5.10-vedv1qp4.mjs +4 -0
  47. package/dist/chunks/caches-0.5.10-fmadrqb1.mjs +1 -0
  48. package/dist/chunks/claudeDesktop-0.5.10-mz1s1yqp.mjs +1 -0
  49. package/dist/chunks/claudemd-0.5.10-9mb95kbb.mjs +1 -0
  50. package/dist/chunks/clear-0.5.10-tshbmj0g.mjs +1 -0
  51. package/dist/chunks/clearTerminal-0.5.10-bjqnvfmf.mjs +1 -0
  52. package/dist/chunks/cli-0.5.10-0ar26ct8.mjs +2 -0
  53. package/dist/chunks/cli-0.5.10-0p24d24e.mjs +2 -0
  54. package/dist/chunks/cli-0.5.10-0sg20shr.mjs +2 -0
  55. package/dist/chunks/cli-0.5.10-0twjtft5.mjs +2 -0
  56. package/dist/chunks/cli-0.5.10-0vs5gmpe.mjs +4 -0
  57. package/dist/chunks/cli-0.5.10-0xb1405m.mjs +2 -0
  58. package/dist/chunks/cli-0.5.10-0yn5x3m6.mjs +2 -0
  59. package/dist/chunks/cli-0.5.10-1gafefn2.mjs +3 -0
  60. package/dist/chunks/cli-0.5.10-1sd567wn.mjs +2 -0
  61. package/dist/chunks/cli-0.5.10-207502x5.mjs +2 -0
  62. package/dist/chunks/cli-0.5.10-20w5v1ja.mjs +2 -0
  63. package/dist/chunks/cli-0.5.10-20x96vwq.mjs +2 -0
  64. package/dist/chunks/cli-0.5.10-2c19pn7b.mjs +2 -0
  65. package/dist/chunks/cli-0.5.10-2es9q9n1.mjs +2 -0
  66. package/dist/chunks/cli-0.5.10-2fqes7gy.mjs +193 -0
  67. package/dist/chunks/cli-0.5.10-2qxn5ad9.mjs +2 -0
  68. package/dist/chunks/cli-0.5.10-2yqdkew6.mjs +3 -0
  69. package/dist/chunks/cli-0.5.10-2yrgbmd1.mjs +9 -0
  70. package/dist/chunks/cli-0.5.10-347yjq4a.mjs +2 -0
  71. package/dist/chunks/cli-0.5.10-3xnh04c6.mjs +2 -0
  72. package/dist/chunks/cli-0.5.10-4ekf1v4x.mjs +2 -0
  73. package/dist/chunks/cli-0.5.10-57andxje.mjs +26 -0
  74. package/dist/chunks/cli-0.5.10-58erwwbz.mjs +3 -0
  75. package/dist/chunks/cli-0.5.10-5m76kmzk.mjs +2 -0
  76. package/dist/chunks/cli-0.5.10-5mp7dx81.mjs +2 -0
  77. package/dist/chunks/cli-0.5.10-5nzsgwh2.mjs +2 -0
  78. package/dist/chunks/cli-0.5.10-5stz3dbm.mjs +2 -0
  79. package/dist/chunks/cli-0.5.10-5w3eaafz.mjs +2 -0
  80. package/dist/chunks/cli-0.5.10-661g0gft.mjs +2 -0
  81. package/dist/chunks/cli-0.5.10-68wvhytx.mjs +10 -0
  82. package/dist/chunks/cli-0.5.10-6c055y30.mjs +2 -0
  83. package/dist/chunks/cli-0.5.10-6g0257t2.mjs +2 -0
  84. package/dist/chunks/cli-0.5.10-6jarntdq.mjs +2 -0
  85. package/dist/chunks/cli-0.5.10-6twsf5qs.mjs +2 -0
  86. package/dist/chunks/cli-0.5.10-6wzddpjt.mjs +42 -0
  87. package/dist/chunks/cli-0.5.10-6y9d3fye.mjs +45 -0
  88. package/dist/chunks/cli-0.5.10-6z4j2qja.mjs +24 -0
  89. package/dist/chunks/cli-0.5.10-6zwxmza2.mjs +4 -0
  90. package/dist/chunks/cli-0.5.10-7f5q1zvk.mjs +2 -0
  91. package/dist/chunks/cli-0.5.10-7j4590js.mjs +2 -0
  92. package/dist/chunks/cli-0.5.10-7shp24xv.mjs +3 -0
  93. package/dist/chunks/cli-0.5.10-7tpa30tv.mjs +3 -0
  94. package/dist/chunks/cli-0.5.10-84q7z5hq.mjs +2 -0
  95. package/dist/chunks/cli-0.5.10-84z0ztsf.mjs +18 -0
  96. package/dist/chunks/cli-0.5.10-87sd2pqh.mjs +3 -0
  97. package/dist/chunks/cli-0.5.10-8f53zcp3.mjs +2 -0
  98. package/dist/chunks/cli-0.5.10-8jjacn05.mjs +5262 -0
  99. package/dist/chunks/cli-0.5.10-8kpt6897.mjs +3 -0
  100. package/dist/chunks/cli-0.5.10-8wqagr68.mjs +4 -0
  101. package/dist/chunks/cli-0.5.10-8zwd1xme.mjs +25 -0
  102. package/dist/chunks/cli-0.5.10-948wwm63.mjs +2 -0
  103. package/dist/chunks/cli-0.5.10-9dazv3hg.mjs +2 -0
  104. package/dist/chunks/cli-0.5.10-9ek8f4vk.mjs +2 -0
  105. package/dist/chunks/cli-0.5.10-9h23hhgb.mjs +2 -0
  106. package/dist/chunks/cli-0.5.10-9mt7ynrh.mjs +2 -0
  107. package/dist/chunks/cli-0.5.10-9xc8zhxg.mjs +59 -0
  108. package/dist/chunks/cli-0.5.10-9ynpb3y0.mjs +21 -0
  109. package/dist/chunks/cli-0.5.10-a1hh6v31.mjs +2 -0
  110. package/dist/chunks/cli-0.5.10-a38pnxbz.mjs +2 -0
  111. package/dist/chunks/cli-0.5.10-a542fww1.mjs +2 -0
  112. package/dist/chunks/cli-0.5.10-a8ecfnq0.mjs +2 -0
  113. package/dist/chunks/cli-0.5.10-atkghjt0.mjs +2 -0
  114. package/dist/chunks/cli-0.5.10-ax0fmeqk.mjs +2 -0
  115. package/dist/chunks/cli-0.5.10-azhfv28d.mjs +2 -0
  116. package/dist/chunks/cli-0.5.10-b4j3x063.mjs +4 -0
  117. package/dist/chunks/cli-0.5.10-b761m5q2.mjs +2 -0
  118. package/dist/chunks/cli-0.5.10-b7r8mjbd.mjs +9 -0
  119. package/dist/chunks/cli-0.5.10-ba15gakh.mjs +2 -0
  120. package/dist/chunks/cli-0.5.10-bad3yv4c.mjs +2 -0
  121. package/dist/chunks/cli-0.5.10-bhb8rt9y.mjs +2 -0
  122. package/dist/chunks/cli-0.5.10-bj0bm26b.mjs +4 -0
  123. package/dist/chunks/cli-0.5.10-bmc43e4g.mjs +2 -0
  124. package/dist/chunks/cli-0.5.10-bsqvacka.mjs +2 -0
  125. package/dist/chunks/cli-0.5.10-c0xtw3q0.mjs +34 -0
  126. package/dist/chunks/cli-0.5.10-c82cgdm7.mjs +133 -0
  127. package/dist/chunks/cli-0.5.10-c9z4tdw2.mjs +2 -0
  128. package/dist/chunks/cli-0.5.10-cm0r4pkd.mjs +3 -0
  129. package/dist/chunks/cli-0.5.10-cw4ykvbj.mjs +2 -0
  130. package/dist/chunks/cli-0.5.10-cz6csv1p.mjs +2 -0
  131. package/dist/chunks/cli-0.5.10-d1y749qy.mjs +2 -0
  132. package/dist/chunks/cli-0.5.10-d2cw91xn.mjs +3 -0
  133. package/dist/chunks/cli-0.5.10-d4d9x2de.mjs +2 -0
  134. package/dist/chunks/cli-0.5.10-d609fanf.mjs +2 -0
  135. package/dist/chunks/cli-0.5.10-d64hr722.mjs +3 -0
  136. package/dist/chunks/cli-0.5.10-d9xf1jnz.mjs +12 -0
  137. package/dist/chunks/cli-0.5.10-dkt8bbmm.mjs +3 -0
  138. package/dist/chunks/cli-0.5.10-dmmckmyf.mjs +12 -0
  139. package/dist/chunks/cli-0.5.10-dvmddb7c.mjs +6 -0
  140. package/dist/chunks/cli-0.5.10-dz26120x.mjs +2 -0
  141. package/dist/chunks/cli-0.5.10-dzr8kmx4.mjs +2 -0
  142. package/dist/chunks/cli-0.5.10-e8tz9596.mjs +2 -0
  143. package/dist/chunks/cli-0.5.10-e8wz8kc0.mjs +58 -0
  144. package/dist/chunks/cli-0.5.10-eh9hq9n3.mjs +2 -0
  145. package/dist/chunks/cli-0.5.10-ewcdy4pj.mjs +2 -0
  146. package/dist/chunks/cli-0.5.10-f3fj7f3q.mjs +2 -0
  147. package/dist/chunks/cli-0.5.10-fcbrnw81.mjs +2 -0
  148. package/dist/chunks/cli-0.5.10-fjvz4bt0.mjs +8 -0
  149. package/dist/chunks/cli-0.5.10-fzx10svb.mjs +2 -0
  150. package/dist/chunks/cli-0.5.10-g4khh98h.mjs +2 -0
  151. package/dist/chunks/cli-0.5.10-gekw3xnm.mjs +2 -0
  152. package/dist/chunks/cli-0.5.10-gk9n4zev.mjs +2 -0
  153. package/dist/chunks/cli-0.5.10-gs8dx67v.mjs +2 -0
  154. package/dist/chunks/cli-0.5.10-hmp23q7z.mjs +2 -0
  155. package/dist/chunks/cli-0.5.10-hzh8tpg0.mjs +2 -0
  156. package/dist/chunks/cli-0.5.10-j1aznw8b.mjs +2 -0
  157. package/dist/chunks/cli-0.5.10-jd7ff66n.mjs +2 -0
  158. package/dist/chunks/cli-0.5.10-jhtht51h.mjs +4 -0
  159. package/dist/chunks/cli-0.5.10-jsnrvena.mjs +2 -0
  160. package/dist/chunks/cli-0.5.10-k0mnqs0g.mjs +15 -0
  161. package/dist/chunks/cli-0.5.10-k1s62rww.mjs +2 -0
  162. package/dist/chunks/cli-0.5.10-k3qbvfj5.mjs +2 -0
  163. package/dist/chunks/cli-0.5.10-kj2g5r8c.mjs +15 -0
  164. package/dist/chunks/cli-0.5.10-kyt82zt5.mjs +2 -0
  165. package/dist/chunks/cli-0.5.10-m0hghx42.mjs +2 -0
  166. package/dist/chunks/cli-0.5.10-mcw01p8b.mjs +2 -0
  167. package/dist/chunks/cli-0.5.10-mgkc1jay.mjs +15 -0
  168. package/dist/chunks/cli-0.5.10-mrgw2c00.mjs +2 -0
  169. package/dist/chunks/cli-0.5.10-mvckg6zv.mjs +17 -0
  170. package/dist/chunks/cli-0.5.10-mxzdkm6r.mjs +2 -0
  171. package/dist/chunks/cli-0.5.10-n70d8n1f.mjs +2 -0
  172. package/dist/chunks/cli-0.5.10-neaex6bh.mjs +2 -0
  173. package/dist/chunks/cli-0.5.10-npmmxjts.mjs +5 -0
  174. package/dist/chunks/cli-0.5.10-nqvng39w.mjs +2 -0
  175. package/dist/chunks/cli-0.5.10-nvmq8pez.mjs +2 -0
  176. package/dist/chunks/cli-0.5.10-nx3m5sa2.mjs +2 -0
  177. package/dist/chunks/cli-0.5.10-p3g04417.mjs +20 -0
  178. package/dist/chunks/cli-0.5.10-p4wmnjhz.mjs +6 -0
  179. package/dist/chunks/cli-0.5.10-p5j82v0t.mjs +2 -0
  180. package/dist/chunks/cli-0.5.10-p7jd1z33.mjs +2 -0
  181. package/dist/chunks/cli-0.5.10-p8hbe96w.mjs +133 -0
  182. package/dist/chunks/cli-0.5.10-pk91q3s6.mjs +4 -0
  183. package/dist/chunks/cli-0.5.10-pq8nhdeq.mjs +2 -0
  184. package/dist/chunks/cli-0.5.10-pr0nkqpw.mjs +2 -0
  185. package/dist/chunks/cli-0.5.10-pr8yqs5v.mjs +2 -0
  186. package/dist/chunks/cli-0.5.10-pxhw9mwz.mjs +2 -0
  187. package/dist/chunks/cli-0.5.10-qvp1fb5n.mjs +2 -0
  188. package/dist/chunks/cli-0.5.10-qw9y3mst.mjs +2 -0
  189. package/dist/chunks/cli-0.5.10-qx17jbqj.mjs +2 -0
  190. package/dist/chunks/cli-0.5.10-r0jt3zrj.mjs +2 -0
  191. package/dist/chunks/cli-0.5.10-ra711jkk.mjs +2 -0
  192. package/dist/chunks/cli-0.5.10-rhmrff22.mjs +2 -0
  193. package/dist/chunks/cli-0.5.10-rk7at2tn.mjs +2 -0
  194. package/dist/chunks/cli-0.5.10-rq5mv7xq.mjs +2 -0
  195. package/dist/chunks/cli-0.5.10-rwqvbtg3.mjs +18 -0
  196. package/dist/chunks/cli-0.5.10-rxnwkka5.mjs +24 -0
  197. package/dist/chunks/cli-0.5.10-rzshk2m6.mjs +6 -0
  198. package/dist/chunks/cli-0.5.10-rzz4tgvw.mjs +12 -0
  199. package/dist/chunks/cli-0.5.10-s8bv5q7m.mjs +2 -0
  200. package/dist/chunks/cli-0.5.10-srd78kpc.mjs +7 -0
  201. package/dist/chunks/cli-0.5.10-syb1bnb2.mjs +4 -0
  202. package/dist/chunks/cli-0.5.10-t11my4jb.mjs +2 -0
  203. package/dist/chunks/cli-0.5.10-t2s1mxyn.mjs +2 -0
  204. package/dist/chunks/cli-0.5.10-t9d916t1.mjs +39 -0
  205. package/dist/chunks/cli-0.5.10-tbpqmp1s.mjs +2 -0
  206. package/dist/chunks/cli-0.5.10-tkjtbv56.mjs +2 -0
  207. package/dist/chunks/cli-0.5.10-tqpg21eq.mjs +2 -0
  208. package/dist/chunks/cli-0.5.10-tqyytkxn.mjs +2 -0
  209. package/dist/chunks/cli-0.5.10-tr692cqd.mjs +2 -0
  210. package/dist/chunks/cli-0.5.10-v36c5nnr.mjs +2 -0
  211. package/dist/chunks/cli-0.5.10-v6kj3ej2.mjs +2 -0
  212. package/dist/chunks/cli-0.5.10-vhn14p7a.mjs +2 -0
  213. package/dist/chunks/cli-0.5.10-vhrqqvdz.mjs +5 -0
  214. package/dist/chunks/cli-0.5.10-vpfctkxf.mjs +2 -0
  215. package/dist/chunks/cli-0.5.10-vqkn3pgf.mjs +17 -0
  216. package/dist/chunks/cli-0.5.10-vqrqhas6.mjs +2 -0
  217. package/dist/chunks/cli-0.5.10-vsgznv7p.mjs +2 -0
  218. package/dist/chunks/cli-0.5.10-vyem3gpm.mjs +2 -0
  219. package/dist/chunks/cli-0.5.10-w29mv5e9.mjs +4 -0
  220. package/dist/chunks/cli-0.5.10-w41wxn5f.mjs +50 -0
  221. package/dist/chunks/cli-0.5.10-w698y5mp.mjs +5 -0
  222. package/dist/chunks/cli-0.5.10-w93v7bhm.mjs +2 -0
  223. package/dist/chunks/cli-0.5.10-xfqxbzc6.mjs +4 -0
  224. package/dist/chunks/cli-0.5.10-xg27xawf.mjs +2 -0
  225. package/dist/chunks/cli-0.5.10-xhy1yx61.mjs +2 -0
  226. package/dist/chunks/cli-0.5.10-xk6v4sy0.mjs +2 -0
  227. package/dist/chunks/cli-0.5.10-xnmg1qwd.mjs +2 -0
  228. package/dist/chunks/cli-0.5.10-xrwj7982.mjs +67 -0
  229. package/dist/chunks/cli-0.5.10-xy780m03.mjs +2 -0
  230. package/dist/chunks/cli-0.5.10-xyscak5q.mjs +16 -0
  231. package/dist/chunks/cli-0.5.10-y0sfzz9t.mjs +2 -0
  232. package/dist/chunks/cli-0.5.10-y0sr20nf.mjs +2 -0
  233. package/dist/chunks/cli-0.5.10-y4tn070k.mjs +1 -0
  234. package/dist/chunks/cli-0.5.10-y7j4tsb5.mjs +2 -0
  235. package/dist/chunks/cli-0.5.10-y9qd4psg.mjs +2 -0
  236. package/dist/chunks/cli-0.5.10-ytqna8q4.mjs +2 -0
  237. package/dist/chunks/cli-0.5.10-yvjnvgky.mjs +2 -0
  238. package/dist/chunks/cli-0.5.10-yxxbgd59.mjs +2 -0
  239. package/dist/chunks/cli-0.5.10-yzqkgb55.mjs +2 -0
  240. package/dist/chunks/cli-0.5.10-z4bzn8vh.mjs +2 -0
  241. package/dist/chunks/cli-0.5.10-z5ysspq8.mjs +2 -0
  242. package/dist/chunks/cli-0.5.10-zk1h67jm.mjs +2 -0
  243. package/dist/chunks/client-0.5.10-a5rmwz53.mjs +1 -0
  244. package/dist/chunks/color-0.5.10-3mtfm5rv.mjs +1 -0
  245. package/dist/chunks/compact-0.5.10-7zdm8hke.mjs +3 -0
  246. package/dist/chunks/config-0.5.10-ns9jcqxp.mjs +1 -0
  247. package/dist/chunks/config-0.5.10-vtf1kzhz.mjs +1 -0
  248. package/dist/chunks/context-0.5.10-qjjyyqx9.mjs +1 -0
  249. package/dist/chunks/context-noninteractive-0.5.10-244bgmbj.mjs +1 -0
  250. package/dist/chunks/conversation-0.5.10-zza66sgq.mjs +1 -0
  251. package/dist/chunks/copy-0.5.10-d6nstaxy.mjs +9 -0
  252. package/dist/chunks/cost-0.5.10-k89r76j7.mjs +1 -0
  253. package/dist/chunks/createSSHSession-0.5.10-xy3z3tdw.mjs +1 -0
  254. package/dist/chunks/createSession-0.5.10-ntrenxk4.mjs +1 -0
  255. package/dist/chunks/debug-0.5.10-bxkhvfc6.mjs +1 -0
  256. package/dist/chunks/defaultActionDeps-0.5.10-h673vq05.mjs +1177 -0
  257. package/dist/chunks/desktop-0.5.10-v0j5w6e8.mjs +1 -0
  258. package/dist/chunks/detectRepository-0.5.10-z29dy30r.mjs +1 -0
  259. package/dist/chunks/detection-0.5.10-jhy1kffq.mjs +1 -0
  260. package/dist/chunks/diff-0.5.10-14m8b77v.mjs +1 -0
  261. package/dist/chunks/doctor-0.5.10-pn374er7.mjs +1 -0
  262. package/dist/chunks/doctorDiagnostic-0.5.10-wkjtp4z5.mjs +1 -0
  263. package/dist/chunks/earlyInput-0.5.10-9nxfn64h.mjs +1 -0
  264. package/dist/chunks/effort-0.5.10-sjn55ka6.mjs +10 -0
  265. package/dist/chunks/envUtils-0.5.10-sdrg5j2r.mjs +1 -0
  266. package/dist/chunks/environmentSelection-0.5.10-nkxtjsa6.mjs +1 -0
  267. package/dist/chunks/environments-0.5.10-j3cwt63g.mjs +1 -0
  268. package/dist/chunks/errors-0.5.10-k3a2vs5j.mjs +1 -0
  269. package/dist/chunks/exampleCommands-0.5.10-s4q3ndpx.mjs +1 -0
  270. package/dist/chunks/exit-0.5.10-aaqjsrb3.mjs +1 -0
  271. package/dist/chunks/export-0.5.10-g3n84jha.mjs +2 -0
  272. package/dist/chunks/extra-usage-0.5.10-1k8453hn.mjs +1 -0
  273. package/dist/chunks/extra-usage-noninteractive-0.5.10-h0s4j23t.mjs +1 -0
  274. package/dist/chunks/fast-0.5.10-6jg8q83t.mjs +1 -0
  275. package/dist/chunks/feedback-0.5.10-f4cms77n.mjs +14 -0
  276. package/dist/chunks/firstPartyEventLogger-0.5.10-mtcdee5x.mjs +1 -0
  277. package/dist/chunks/git-0.5.10-5yr5z4ap.mjs +1 -0
  278. package/dist/chunks/githubModelsCredentials-0.5.10-pfeadzx7.mjs +1 -0
  279. package/dist/chunks/grove-0.5.10-4vzycmmm.mjs +1 -0
  280. package/dist/chunks/growthbook-0.5.10-nf8eqz7k.mjs +1 -0
  281. package/dist/chunks/headless-0.5.10-kqpgc4q6.mjs +2 -0
  282. package/dist/chunks/heapdump-0.5.10-zedkfpnn.mjs +6 -0
  283. package/dist/chunks/help-0.5.10-a3vhmv05.mjs +1 -0
  284. package/dist/chunks/hookChains-0.5.10-yc93jx3d.mjs +3 -0
  285. package/dist/chunks/hooks-0.5.10-negsdbpw.mjs +1 -0
  286. package/dist/chunks/hooks-0.5.10-t26wz67x.mjs +79 -0
  287. package/dist/chunks/ide-0.5.10-qsh8k0we.mjs +3 -0
  288. package/dist/chunks/image-processor-napi-0.5.10-8kz0m2nd.mjs +1 -0
  289. package/dist/chunks/index-0.5.10-0j9kz8a6.mjs +1 -0
  290. package/dist/chunks/index-0.5.10-0wzdjjzk.mjs +5 -0
  291. package/dist/chunks/index-0.5.10-5fsxcv9a.mjs +1 -0
  292. package/dist/chunks/index-0.5.10-6v1h8fb2.mjs +17 -0
  293. package/dist/chunks/index-0.5.10-7t36m4fw.mjs +30 -0
  294. package/dist/chunks/index-0.5.10-8t5phmpa.mjs +9 -0
  295. package/dist/chunks/index-0.5.10-ak9fnp4h.mjs +2 -0
  296. package/dist/chunks/index-0.5.10-asj7h5d6.mjs +9 -0
  297. package/dist/chunks/index-0.5.10-dxkhh5bg.mjs +1 -0
  298. package/dist/chunks/index-0.5.10-eh8w8ayw.mjs +2 -0
  299. package/dist/chunks/index-0.5.10-fjf8d5vq.mjs +1 -0
  300. package/dist/chunks/index-0.5.10-fyt0d84h.mjs +1 -0
  301. package/dist/chunks/index-0.5.10-m8cjzf6y.mjs +1 -0
  302. package/dist/chunks/index-0.5.10-marrtwvx.mjs +1 -0
  303. package/dist/chunks/index-0.5.10-n7zsm7mc.mjs +1 -0
  304. package/dist/chunks/index-0.5.10-p69q9n6x.mjs +1 -0
  305. package/dist/chunks/index-0.5.10-rv6kfzr0.mjs +1 -0
  306. package/dist/chunks/index-0.5.10-s5ttsdnm.mjs +1 -0
  307. package/dist/chunks/index-0.5.10-thyhdy51.mjs +1 -0
  308. package/dist/chunks/index-0.5.10-tncm271j.mjs +1 -0
  309. package/dist/chunks/index-0.5.10-wzxzkrhk.mjs +1 -0
  310. package/dist/chunks/index-0.5.10-x3apane6.mjs +1 -0
  311. package/dist/chunks/init-0.5.10-ef7yaw4p.mjs +1 -0
  312. package/dist/chunks/initReplBridge-0.5.10-we7sga8z.mjs +1 -0
  313. package/dist/chunks/ink-0.5.10-chpcjhk0.mjs +1 -0
  314. package/dist/chunks/insights-0.5.10-advkjwjk.mjs +870 -0
  315. package/dist/chunks/install-0.5.10-znt3x5wn.mjs +1 -0
  316. package/dist/chunks/install-github-app-0.5.10-jg0eqhv0.mjs +149 -0
  317. package/dist/chunks/install-slack-app-0.5.10-ryvy8j96.mjs +1 -0
  318. package/dist/chunks/instrumentation-0.5.10-36atfc3f.mjs +1 -0
  319. package/dist/chunks/interactiveHelpers-0.5.10-asvens6h.mjs +1 -0
  320. package/dist/chunks/keybindings-0.5.10-csc1yzpg.mjs +2 -0
  321. package/dist/chunks/knowledge-0.5.10-tg7cvbym.mjs +2 -0
  322. package/dist/chunks/latestVersionCache-0.5.10-wjt7dbqy.mjs +1 -0
  323. package/dist/chunks/loadAgentsDir-0.5.10-7zwxynjb.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.5.10-c8kk1n2h.mjs +1 -0
  325. package/dist/chunks/loadPluginHooks-0.5.10-qx8rwccw.mjs +1 -0
  326. package/dist/chunks/log-0.5.10-ews8b6yn.mjs +1 -0
  327. package/dist/chunks/main-0.5.10-dxwhwf46.mjs +1 -0
  328. package/dist/chunks/managedEnv-0.5.10-5jce9mqj.mjs +1 -0
  329. package/dist/chunks/mcp-0.5.10-1wxhgtsr.mjs +17 -0
  330. package/dist/chunks/mcp-0.5.10-5wsj8fv2.mjs +1 -0
  331. package/dist/chunks/mcp-0.5.10-ydcjrb4p.mjs +4 -0
  332. package/dist/chunks/mcpb-0.5.10-120rqrb1.mjs +1 -0
  333. package/dist/chunks/memory-0.5.10-0pqjdjed.mjs +3 -0
  334. package/dist/chunks/mobile-0.5.10-kp63nfej.mjs +2 -0
  335. package/dist/chunks/model-0.5.10-9zszn74v.mjs +2 -0
  336. package/dist/chunks/model-0.5.10-b64fg4gd.mjs +1 -0
  337. package/dist/chunks/node-0.5.10-tny076t5.mjs +12 -0
  338. package/dist/chunks/oauth-0.5.10-fccp2x7y.mjs +1 -0
  339. package/dist/chunks/openaiShim-0.5.10-gwjyjn7m.mjs +14 -0
  340. package/dist/chunks/output-style-0.5.10-526tregy.mjs +1 -0
  341. package/dist/chunks/package-D6422PQU-0.5.10-we8amhca.mjs +1 -0
  342. package/dist/chunks/parseConnectUrl-0.5.10-nhkxeakd.mjs +1 -0
  343. package/dist/chunks/parser-0.5.10-m4aj9jm7.mjs +1 -0
  344. package/dist/chunks/passes-0.5.10-vwhmhxn9.mjs +1 -0
  345. package/dist/chunks/permissions-0.5.10-b7p2zxt8.mjs +3 -0
  346. package/dist/chunks/plan-0.5.10-s8612fw1.mjs +1 -0
  347. package/dist/chunks/plist-0.5.10-e8k2gtwm.mjs +1 -0
  348. package/dist/chunks/plugin-0.5.10-pjh90f93.mjs +29 -0
  349. package/dist/chunks/pluginStartupCheck-0.5.10-mamzxaj6.mjs +1 -0
  350. package/dist/chunks/plugins-0.5.10-3zq96m7k.mjs +9 -0
  351. package/dist/chunks/preActionHook-0.5.10-6x12np60.mjs +2 -0
  352. package/dist/chunks/print-0.5.10-5a31vx9j.mjs +57 -0
  353. package/dist/chunks/privacy-settings-0.5.10-rdfd63af.mjs +1 -0
  354. package/dist/chunks/process-0.5.10-nf4cmk34.mjs +1 -0
  355. package/dist/chunks/processBashCommand-0.5.10-mw974xep.mjs +1 -0
  356. package/dist/chunks/processSlashCommand-0.5.10-e8c6n292.mjs +9 -0
  357. package/dist/chunks/prompt-0.5.10-6pbxq1g3.mjs +1 -0
  358. package/dist/chunks/prompt-0.5.10-n31de4d4.mjs +1 -0
  359. package/dist/chunks/prompts-0.5.10-0cxg5rvf.mjs +1 -0
  360. package/dist/chunks/protocolHandler-0.5.10-n15zj80n.mjs +13 -0
  361. package/dist/chunks/provider-0.5.10-0chtqqq3.mjs +2 -0
  362. package/dist/chunks/providerProfiles-0.5.10-kk39f15h.mjs +1 -0
  363. package/dist/chunks/providerValidation-0.5.10-5b2bmm6k.mjs +6 -0
  364. package/dist/chunks/rate-limit-options-0.5.10-qen28djd.mjs +1 -0
  365. package/dist/chunks/registerSubcommands-0.5.10-xmgpzx1a.mjs +34 -0
  366. package/dist/chunks/registry-0.5.10-q3yb1jt6.mjs +1 -0
  367. package/dist/chunks/release-notes-0.5.10-3m0mwzvq.mjs +5 -0
  368. package/dist/chunks/reload-plugins-0.5.10-2ngnamq3.mjs +2 -0
  369. package/dist/chunks/remote-env-0.5.10-gm9a4ms5.mjs +1 -0
  370. package/dist/chunks/remoteBridgeCore-0.5.10-s9tnpv93.mjs +1 -0
  371. package/dist/chunks/remoteSession-0.5.10-mk8be8a3.mjs +1 -0
  372. package/dist/chunks/rename-0.5.10-9ecwm2ar.mjs +1 -0
  373. package/dist/chunks/replBridgeHandle-0.5.10-9956kd4a.mjs +1 -0
  374. package/dist/chunks/replLauncher-0.5.10-94wyag0m.mjs +1 -0
  375. package/dist/chunks/resume-0.5.10-nc3z5h15.mjs +2 -0
  376. package/dist/chunks/rewind-0.5.10-wbs4stfg.mjs +1 -0
  377. package/dist/chunks/rootOptions-0.5.10-8ky1y6hv.mjs +1 -0
  378. package/dist/chunks/sandbox-adapter-0.5.10-jg0fj7ss.mjs +1 -0
  379. package/dist/chunks/sandbox-toggle-0.5.10-yy9272d9.mjs +1 -0
  380. package/dist/chunks/session-0.5.10-jqzxp3r3.mjs +2 -0
  381. package/dist/chunks/sessionDiscovery-0.5.10-7va0srxq.mjs +1 -0
  382. package/dist/chunks/sessionFileAccessHooks-0.5.10-bykpya1w.mjs +1 -0
  383. package/dist/chunks/sessionStorage-0.5.10-yy69cv78.mjs +1 -0
  384. package/dist/chunks/settings-0.5.10-kx3ep0z5.mjs +1 -0
  385. package/dist/chunks/setup-0.5.10-w0byw3fs.mjs +5 -0
  386. package/dist/chunks/sinks-0.5.10-289qngp8.mjs +1 -0
  387. package/dist/chunks/skills-0.5.10-6kvsqc69.mjs +1 -0
  388. package/dist/chunks/startupProfiler-0.5.10-e0mg4v8r.mjs +1 -0
  389. package/dist/chunks/startupUpdateCheck-0.5.10-08eextv5.mjs +1 -0
  390. package/dist/chunks/state-0.5.10-7xqjnrdw.mjs +1 -0
  391. package/dist/chunks/stats-0.5.10-fafdyc91.mjs +6 -0
  392. package/dist/chunks/status-0.5.10-y9t6rf31.mjs +1 -0
  393. package/dist/chunks/stickers-0.5.10-ta1pq624.mjs +1 -0
  394. package/dist/chunks/subprocessEnv-0.5.10-zv2wcv5q.mjs +1 -0
  395. package/dist/chunks/tasks-0.5.10-d0y0wvjj.mjs +1 -0
  396. package/dist/chunks/teamHelpers-0.5.10-qpwpfv94.mjs +1 -0
  397. package/dist/chunks/teammateModeSnapshot-0.5.10-92d1devr.mjs +1 -0
  398. package/dist/chunks/teleport-0.5.10-rkxj6c9z.mjs +1 -0
  399. package/dist/chunks/terminalSetup-0.5.10-xtrfcff1.mjs +1 -0
  400. package/dist/chunks/theme-0.5.10-5rz8k2g9.mjs +1 -0
  401. package/dist/chunks/thinkback-0.5.10-pmdfhfhz.mjs +1 -0
  402. package/dist/chunks/thinkback-play-0.5.10-051qtb4m.mjs +1 -0
  403. package/dist/chunks/toolPool-0.5.10-702w7qvh.mjs +1 -0
  404. package/dist/chunks/toolSearch-0.5.10-emqjgdkv.mjs +1 -0
  405. package/dist/chunks/tools-0.5.10-2msmk0nf.mjs +1 -0
  406. package/dist/chunks/trustedDevice-0.5.10-rc23c6gy.mjs +1 -0
  407. package/dist/chunks/turndown.cjs-0.5.10-a87sftz7.mjs +69 -0
  408. package/dist/chunks/ultrareviewCommand-0.5.10-z29nftnt.mjs +4 -0
  409. package/dist/chunks/update-0.5.10-52yyras3.mjs +86 -0
  410. package/dist/chunks/upgrade-0.5.10-xqdpemsf.mjs +1 -0
  411. package/dist/chunks/upstreamproxy-0.5.10-154q742m.mjs +14 -0
  412. package/dist/chunks/url-handler-napi-0.5.10-8af5etcc.mjs +1 -0
  413. package/dist/chunks/usage-0.5.10-hhg47trs.mjs +1 -0
  414. package/dist/chunks/util-0.5.10-0zqyyf2e.mjs +1 -0
  415. package/dist/chunks/utils-0.5.10-36gnsqbk.mjs +1 -0
  416. package/dist/chunks/vim-0.5.10-0zas1t6x.mjs +1 -0
  417. package/dist/chunks/watcher-0.5.10-9etw516s.mjs +1 -0
  418. package/dist/chunks/wiki-0.5.10-rwktf7fm.mjs +132 -0
  419. package/dist/chunks/worktree-0.5.10-afdnv059.mjs +1 -0
  420. package/dist/chunks/worktreeModeEnabled-0.5.10-n0bmqq02.mjs +1 -0
  421. package/dist/chunks/wrapper-0.5.10-0bca9c3g.mjs +7 -0
  422. package/dist/claudin-vscode.vsix +0 -0
  423. package/dist/cli.mjs +2 -2
  424. package/package.json +24 -24
  425. package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +0 -1
  426. package/dist/chunks/App-0.5.8-s4939y9q.mjs +0 -1
  427. package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +0 -1
  428. package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +0 -1
  429. package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +0 -1
  430. package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +0 -1
  431. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +0 -1
  432. package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +0 -1
  433. package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +0 -3
  434. package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +0 -1
  435. package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +0 -1
  436. package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +0 -1
  437. package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +0 -1
  438. package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +0 -1
  439. package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +0 -1
  440. package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +0 -1
  441. package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +0 -1
  442. package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +0 -1
  443. package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +0 -1
  444. package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +0 -1
  445. package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +0 -1
  446. package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +0 -1
  447. package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +0 -1
  448. package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +0 -9
  449. package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +0 -1
  450. package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +0 -1
  451. package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +0 -1
  452. package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +0 -1
  453. package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +0 -3
  454. package/dist/chunks/agents-0.5.8-qg1s69va.mjs +0 -110
  455. package/dist/chunks/api-0.5.8-pcde65dc.mjs +0 -1
  456. package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +0 -1
  457. package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +0 -1
  458. package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +0 -1
  459. package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +0 -1
  460. package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +0 -48
  461. package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +0 -1
  462. package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +0 -1
  463. package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +0 -4
  464. package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +0 -1
  465. package/dist/chunks/btw-0.5.8-0yftty6m.mjs +0 -1
  466. package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +0 -3
  467. package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +0 -1
  468. package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +0 -21
  469. package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +0 -4
  470. package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +0 -1
  471. package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +0 -1
  472. package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +0 -1
  473. package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +0 -1
  474. package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +0 -1
  475. package/dist/chunks/cli-0.5.8-01yjahnz.mjs +0 -2
  476. package/dist/chunks/cli-0.5.8-07dyymev.mjs +0 -2
  477. package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +0 -2
  478. package/dist/chunks/cli-0.5.8-0bys4xae.mjs +0 -2
  479. package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +0 -2
  480. package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +0 -2
  481. package/dist/chunks/cli-0.5.8-0hybhk72.mjs +0 -2
  482. package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +0 -2
  483. package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +0 -2
  484. package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +0 -2
  485. package/dist/chunks/cli-0.5.8-1heha1zs.mjs +0 -2
  486. package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +0 -2
  487. package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +0 -2
  488. package/dist/chunks/cli-0.5.8-221e7v67.mjs +0 -2
  489. package/dist/chunks/cli-0.5.8-23ep6z70.mjs +0 -2
  490. package/dist/chunks/cli-0.5.8-2bq72da9.mjs +0 -2
  491. package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +0 -2
  492. package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +0 -2
  493. package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +0 -2
  494. package/dist/chunks/cli-0.5.8-396k3ymm.mjs +0 -25
  495. package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +0 -58
  496. package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +0 -2
  497. package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +0 -2
  498. package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +0 -2
  499. package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +0 -2
  500. package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +0 -2
  501. package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +0 -2
  502. package/dist/chunks/cli-0.5.8-402vctdy.mjs +0 -2
  503. package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +0 -2
  504. package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +0 -5286
  505. package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +0 -9
  506. package/dist/chunks/cli-0.5.8-4mn881k7.mjs +0 -2
  507. package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +0 -2
  508. package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +0 -6
  509. package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +0 -8
  510. package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +0 -2
  511. package/dist/chunks/cli-0.5.8-510vqc09.mjs +0 -4
  512. package/dist/chunks/cli-0.5.8-57qan5v8.mjs +0 -2
  513. package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +0 -2
  514. package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +0 -2
  515. package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +0 -2
  516. package/dist/chunks/cli-0.5.8-5h92528m.mjs +0 -4
  517. package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +0 -2
  518. package/dist/chunks/cli-0.5.8-60e57smp.mjs +0 -2
  519. package/dist/chunks/cli-0.5.8-665mfjfq.mjs +0 -5
  520. package/dist/chunks/cli-0.5.8-69frkjjq.mjs +0 -2
  521. package/dist/chunks/cli-0.5.8-69swpyae.mjs +0 -2
  522. package/dist/chunks/cli-0.5.8-6epmns99.mjs +0 -2
  523. package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +0 -3
  524. package/dist/chunks/cli-0.5.8-6t480jt6.mjs +0 -2
  525. package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +0 -2
  526. package/dist/chunks/cli-0.5.8-78y711gq.mjs +0 -7
  527. package/dist/chunks/cli-0.5.8-7fm71y20.mjs +0 -2
  528. package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +0 -3
  529. package/dist/chunks/cli-0.5.8-7teqphwt.mjs +0 -2
  530. package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +0 -2
  531. package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +0 -2
  532. package/dist/chunks/cli-0.5.8-8b40nd32.mjs +0 -3
  533. package/dist/chunks/cli-0.5.8-8c0hade9.mjs +0 -2
  534. package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +0 -2
  535. package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +0 -24
  536. package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +0 -2
  537. package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +0 -4
  538. package/dist/chunks/cli-0.5.8-903jgg2t.mjs +0 -2
  539. package/dist/chunks/cli-0.5.8-959n5v33.mjs +0 -44
  540. package/dist/chunks/cli-0.5.8-96p83b7z.mjs +0 -2
  541. package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +0 -2
  542. package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +0 -2
  543. package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +0 -2
  544. package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +0 -2
  545. package/dist/chunks/cli-0.5.8-a03sqccb.mjs +0 -2
  546. package/dist/chunks/cli-0.5.8-at01jfw3.mjs +0 -2
  547. package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +0 -2
  548. package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +0 -2
  549. package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +0 -2
  550. package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +0 -67
  551. package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +0 -18
  552. package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +0 -2
  553. package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +0 -2
  554. package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +0 -2
  555. package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +0 -12
  556. package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +0 -2
  557. package/dist/chunks/cli-0.5.8-cctz1t07.mjs +0 -2
  558. package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +0 -2
  559. package/dist/chunks/cli-0.5.8-chb0m9py.mjs +0 -17
  560. package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +0 -15
  561. package/dist/chunks/cli-0.5.8-cm551a1y.mjs +0 -2
  562. package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +0 -2
  563. package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +0 -2
  564. package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +0 -2
  565. package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +0 -2
  566. package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +0 -2
  567. package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +0 -39
  568. package/dist/chunks/cli-0.5.8-edf7e65a.mjs +0 -2
  569. package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +0 -133
  570. package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +0 -3
  571. package/dist/chunks/cli-0.5.8-et8r95zv.mjs +0 -15
  572. package/dist/chunks/cli-0.5.8-etf1n11s.mjs +0 -2
  573. package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +0 -3
  574. package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +0 -34
  575. package/dist/chunks/cli-0.5.8-f1znt77k.mjs +0 -2
  576. package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +0 -4
  577. package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +0 -2
  578. package/dist/chunks/cli-0.5.8-fhebd13f.mjs +0 -12
  579. package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +0 -18
  580. package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +0 -4
  581. package/dist/chunks/cli-0.5.8-gf6svxra.mjs +0 -27
  582. package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +0 -2
  583. package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +0 -3
  584. package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +0 -2
  585. package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +0 -21
  586. package/dist/chunks/cli-0.5.8-haddssvq.mjs +0 -17
  587. package/dist/chunks/cli-0.5.8-he3sfaey.mjs +0 -2
  588. package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +0 -2
  589. package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +0 -2
  590. package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +0 -2
  591. package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +0 -2
  592. package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +0 -6
  593. package/dist/chunks/cli-0.5.8-je6yq94p.mjs +0 -2
  594. package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +0 -10
  595. package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +0 -9
  596. package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +0 -2
  597. package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +0 -2
  598. package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +0 -2
  599. package/dist/chunks/cli-0.5.8-m3186fr3.mjs +0 -5
  600. package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +0 -2
  601. package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +0 -4
  602. package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +0 -2
  603. package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +0 -3
  604. package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +0 -4
  605. package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +0 -59
  606. package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +0 -2
  607. package/dist/chunks/cli-0.5.8-p596xr80.mjs +0 -2
  608. package/dist/chunks/cli-0.5.8-p72phgsn.mjs +0 -2
  609. package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +0 -2
  610. package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +0 -2
  611. package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +0 -133
  612. package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +0 -2
  613. package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +0 -2
  614. package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +0 -2
  615. package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +0 -2
  616. package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +0 -193
  617. package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +0 -3
  618. package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +0 -2
  619. package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +0 -2
  620. package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +0 -2
  621. package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +0 -2
  622. package/dist/chunks/cli-0.5.8-r88abafr.mjs +0 -15
  623. package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +0 -16
  624. package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +0 -4
  625. package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +0 -2
  626. package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +0 -12
  627. package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +0 -3
  628. package/dist/chunks/cli-0.5.8-s7px34xg.mjs +0 -2
  629. package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +0 -2
  630. package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +0 -2
  631. package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +0 -2
  632. package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +0 -24
  633. package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +0 -4
  634. package/dist/chunks/cli-0.5.8-v274erpp.mjs +0 -2
  635. package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +0 -2
  636. package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +0 -2
  637. package/dist/chunks/cli-0.5.8-vck50j66.mjs +0 -2
  638. package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +0 -45
  639. package/dist/chunks/cli-0.5.8-w36atn94.mjs +0 -2
  640. package/dist/chunks/cli-0.5.8-w75qbypx.mjs +0 -2
  641. package/dist/chunks/cli-0.5.8-w7g735pf.mjs +0 -2
  642. package/dist/chunks/cli-0.5.8-was67jgw.mjs +0 -2
  643. package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +0 -50
  644. package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +0 -2
  645. package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +0 -3
  646. package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +0 -2
  647. package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +0 -2
  648. package/dist/chunks/cli-0.5.8-wtz636rz.mjs +0 -20
  649. package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +0 -2
  650. package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +0 -2
  651. package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +0 -6
  652. package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +0 -2
  653. package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +0 -2
  654. package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +0 -2
  655. package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +0 -2
  656. package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +0 -2
  657. package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +0 -2
  658. package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +0 -3
  659. package/dist/chunks/cli-0.5.8-z447z8t0.mjs +0 -2
  660. package/dist/chunks/cli-0.5.8-zervw1k3.mjs +0 -5
  661. package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +0 -1
  662. package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +0 -2
  663. package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +0 -2
  664. package/dist/chunks/cli-0.5.8-zy590bkh.mjs +0 -2
  665. package/dist/chunks/client-0.5.8-9axd4w58.mjs +0 -1
  666. package/dist/chunks/color-0.5.8-resv1z9m.mjs +0 -1
  667. package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +0 -3
  668. package/dist/chunks/config-0.5.8-1j4xyj57.mjs +0 -1
  669. package/dist/chunks/config-0.5.8-ettscama.mjs +0 -1
  670. package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +0 -1
  671. package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +0 -1
  672. package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +0 -1
  673. package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +0 -9
  674. package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +0 -1
  675. package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +0 -1
  676. package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +0 -1
  677. package/dist/chunks/debug-0.5.8-c84dbamw.mjs +0 -1
  678. package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +0 -1177
  679. package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +0 -1
  680. package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +0 -1
  681. package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +0 -1
  682. package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +0 -1
  683. package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +0 -1
  684. package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +0 -1
  685. package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +0 -1
  686. package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +0 -10
  687. package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +0 -1
  688. package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +0 -1
  689. package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +0 -1
  690. package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +0 -1
  691. package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +0 -1
  692. package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +0 -1
  693. package/dist/chunks/export-0.5.8-a8fg7991.mjs +0 -2
  694. package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +0 -1
  695. package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +0 -1
  696. package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +0 -1
  697. package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +0 -14
  698. package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +0 -1
  699. package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +0 -1
  700. package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +0 -1
  701. package/dist/chunks/grove-0.5.8-rewcpbks.mjs +0 -1
  702. package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +0 -1
  703. package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +0 -2
  704. package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +0 -6
  705. package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +0 -1
  706. package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +0 -3
  707. package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +0 -1
  708. package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +0 -79
  709. package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +0 -3
  710. package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +0 -1
  711. package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +0 -9
  712. package/dist/chunks/index-0.5.8-26yrjbk0.mjs +0 -1
  713. package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +0 -1
  714. package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +0 -1
  715. package/dist/chunks/index-0.5.8-b4p3af9y.mjs +0 -1
  716. package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +0 -2
  717. package/dist/chunks/index-0.5.8-bk6ejev9.mjs +0 -1
  718. package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +0 -9
  719. package/dist/chunks/index-0.5.8-egkksjaj.mjs +0 -1
  720. package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +0 -1
  721. package/dist/chunks/index-0.5.8-jf20nzsg.mjs +0 -1
  722. package/dist/chunks/index-0.5.8-m6exk6z6.mjs +0 -30
  723. package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +0 -5
  724. package/dist/chunks/index-0.5.8-nt058ay0.mjs +0 -1
  725. package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +0 -10
  726. package/dist/chunks/index-0.5.8-rdk757cq.mjs +0 -1
  727. package/dist/chunks/index-0.5.8-red1reev.mjs +0 -1
  728. package/dist/chunks/index-0.5.8-rehfpmcw.mjs +0 -1
  729. package/dist/chunks/index-0.5.8-s3k17n65.mjs +0 -1
  730. package/dist/chunks/index-0.5.8-xpaaycp7.mjs +0 -1
  731. package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +0 -2
  732. package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +0 -1
  733. package/dist/chunks/init-0.5.8-kmfn7vay.mjs +0 -1
  734. package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +0 -1
  735. package/dist/chunks/ink-0.5.8-y01565nf.mjs +0 -1
  736. package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +0 -870
  737. package/dist/chunks/install-0.5.8-se0j5qte.mjs +0 -1
  738. package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +0 -149
  739. package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +0 -1
  740. package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +0 -1
  742. package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +0 -2
  743. package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +0 -2
  744. package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +0 -1
  745. package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +0 -1
  747. package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +0 -1
  748. package/dist/chunks/log-0.5.8-78h0x7qg.mjs +0 -1
  749. package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +0 -1
  750. package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +0 -1
  751. package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +0 -4
  752. package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +0 -17
  753. package/dist/chunks/mcp-0.5.8-md6hzter.mjs +0 -1
  754. package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +0 -1
  755. package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +0 -3
  756. package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +0 -2
  757. package/dist/chunks/model-0.5.8-aqzt03nd.mjs +0 -1
  758. package/dist/chunks/model-0.5.8-nmcrv393.mjs +0 -2
  759. package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +0 -1
  760. package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +0 -14
  761. package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +0 -1
  762. package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +0 -1
  763. package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +0 -1
  764. package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +0 -1
  765. package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +0 -1
  766. package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +0 -3
  767. package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +0 -1
  768. package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +0 -1
  769. package/dist/chunks/plugin-0.5.8-meszp93t.mjs +0 -29
  770. package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +0 -1
  771. package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +0 -9
  772. package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +0 -2
  773. package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +0 -57
  774. package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +0 -1
  775. package/dist/chunks/process-0.5.8-1yf78q4y.mjs +0 -1
  776. package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +0 -1
  777. package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +0 -9
  778. package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +0 -1
  779. package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +0 -1
  780. package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +0 -1
  781. package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +0 -13
  782. package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +0 -2
  783. package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +0 -1
  784. package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +0 -6
  785. package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +0 -1
  786. package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +0 -34
  787. package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +0 -1
  788. package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +0 -5
  789. package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +0 -2
  790. package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +0 -1
  791. package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +0 -1
  792. package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +0 -1
  793. package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +0 -1
  794. package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +0 -1
  795. package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +0 -1
  796. package/dist/chunks/resume-0.5.8-373epwyd.mjs +0 -2
  797. package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +0 -1
  798. package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +0 -1
  799. package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +0 -1
  800. package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +0 -1
  801. package/dist/chunks/session-0.5.8-rxft524k.mjs +0 -2
  802. package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +0 -1
  803. package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +0 -1
  804. package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +0 -1
  805. package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +0 -1
  806. package/dist/chunks/setup-0.5.8-769vnffz.mjs +0 -5
  807. package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +0 -1
  808. package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +0 -1
  809. package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +0 -1
  810. package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +0 -1
  811. package/dist/chunks/state-0.5.8-cppqmrbf.mjs +0 -1
  812. package/dist/chunks/stats-0.5.8-zcfm59db.mjs +0 -6
  813. package/dist/chunks/status-0.5.8-5v4y485z.mjs +0 -1
  814. package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +0 -1
  815. package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +0 -1
  816. package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +0 -1
  817. package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +0 -1
  818. package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +0 -1
  819. package/dist/chunks/teleport-0.5.8-650m4rks.mjs +0 -1
  820. package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +0 -1
  821. package/dist/chunks/theme-0.5.8-7a06760x.mjs +0 -1
  822. package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +0 -1
  823. package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +0 -1
  824. package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +0 -1
  825. package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +0 -1
  826. package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +0 -1
  827. package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +0 -1
  828. package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +0 -69
  829. package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +0 -4
  830. package/dist/chunks/update-0.5.8-a285y5j4.mjs +0 -86
  831. package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +0 -1
  832. package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +0 -14
  833. package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +0 -1
  834. package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +0 -1
  835. package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +0 -1
  836. package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +0 -1
  837. package/dist/chunks/vim-0.5.8-pgsav8je.mjs +0 -1
  838. package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +0 -1
  839. package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +0 -132
  840. package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +0 -1
  841. package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +0 -1
  842. package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +0 -7
  843. /package/dist/chunks/{cli-0.5.8-kegk7gdp.mjs → cli-0.5.10-5kz0qdsz.mjs} +0 -0
  844. /package/dist/chunks/{cli-0.5.8-j77twbsq.mjs → cli-0.5.10-n8pz2na8.mjs} +0 -0
@@ -0,0 +1,6 @@
1
+ import{Lna as b}from"./cli-0.5.10-1sd567wn.mjs";var K$,L$,F$=(_)=>typeof _==="string"?{...L$,name:_}:{...L$,..._};var S_=b(()=>{K$=Symbol("Let zodToJsonSchema decide on which parser to use"),L$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O,f$,B,T=(_)=>{switch(typeof _){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(_)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":if(Array.isArray(_))return B.array;if(_===null)return B.null;if(_.then&&typeof _.then==="function"&&_.catch&&typeof _.catch==="function")return B.promise;if(typeof Map<"u"&&_ instanceof Map)return B.map;if(typeof Set<"u"&&_ instanceof Set)return B.set;if(typeof Date<"u"&&_ instanceof Date)return B.date;return B.object;default:return B.unknown}};var __=b(()=>{(function(_){_.assertEqual=(W)=>{};function $(W){}_.assertIs=$;function q(W){throw Error()}_.assertNever=q,_.arrayToEnum=(W)=>{let X={};for(let H of W)X[H]=H;return X},_.getValidEnumValues=(W)=>{let X=_.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),H={};for(let Y of X)H[Y]=W[Y];return _.objectValues(H)},_.objectValues=(W)=>{return _.objectKeys(W).map(function(X){return W[X]})},_.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let X=[];for(let H in W)if(Object.prototype.hasOwnProperty.call(W,H))X.push(H);return X},_.find=(W,X)=>{for(let H of W)if(X(H))return H;return},_.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function J(W,X=" | "){return W.map((H)=>typeof H==="string"?`'${H}'`:H).join(X)}_.joinValues=J,_.jsonStringifyReplacer=(W,X)=>{if(typeof X==="bigint")return X.toString();return X}})(O||(O={}));(function(_){_.mergeShapes=($,q)=>{return{...$,...q}}})(f$||(f$={}));B=O.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var G,f;var v_=b(()=>{__();G=O.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);f=class f extends Error{get errors(){return this.issues}constructor(_){super();this.issues=[],this.addIssue=(q)=>{this.issues=[...this.issues,q]},this.addIssues=(q=[])=>{this.issues=[...this.issues,...q]};let $=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,$);else this.__proto__=$;this.name="ZodError",this.issues=_}format(_){let $=_||function(W){return W.message},q={_errors:[]},J=(W)=>{for(let X of W.issues)if(X.code==="invalid_union")X.unionErrors.map(J);else if(X.code==="invalid_return_type")J(X.returnTypeError);else if(X.code==="invalid_arguments")J(X.argumentsError);else if(X.path.length===0)q._errors.push($(X));else{let H=q,Y=0;while(Y<X.path.length){let Q=X.path[Y];if(Y!==X.path.length-1)H[Q]=H[Q]||{_errors:[]};else H[Q]=H[Q]||{_errors:[]},H[Q]._errors.push($(X));H=H[Q],Y++}}};return J(this),q}static assert(_){if(!(_ instanceof f))throw Error(`Not a ZodError: ${_}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,O.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(_=($)=>$.message){let $=Object.create(null),q=[];for(let J of this.issues)if(J.path.length>0){let W=J.path[0];$[W]=$[W]||[],$[W].push(_(J))}else q.push(_(J));return{formErrors:q,fieldErrors:$}}get formErrors(){return this.flatten()}};f.create=(_)=>{return new f(_)}});var bq=(_,$)=>{let q;switch(_.code){case G.invalid_type:if(_.received===B.undefined)q="Required";else q=`Expected ${_.expected}, received ${_.received}`;break;case G.invalid_literal:q=`Invalid literal value, expected ${JSON.stringify(_.expected,O.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:q=`Unrecognized key(s) in object: ${O.joinValues(_.keys,", ")}`;break;case G.invalid_union:q="Invalid input";break;case G.invalid_union_discriminator:q=`Invalid discriminator value. Expected ${O.joinValues(_.options)}`;break;case G.invalid_enum_value:q=`Invalid enum value. Expected ${O.joinValues(_.options)}, received '${_.received}'`;break;case G.invalid_arguments:q="Invalid function arguments";break;case G.invalid_return_type:q="Invalid function return type";break;case G.invalid_date:q="Invalid date";break;case G.invalid_string:if(typeof _.validation==="object")if("includes"in _.validation){if(q=`Invalid input: must include "${_.validation.includes}"`,typeof _.validation.position==="number")q=`${q} at one or more positions greater than or equal to ${_.validation.position}`}else if("startsWith"in _.validation)q=`Invalid input: must start with "${_.validation.startsWith}"`;else if("endsWith"in _.validation)q=`Invalid input: must end with "${_.validation.endsWith}"`;else O.assertNever(_.validation);else if(_.validation!=="regex")q=`Invalid ${_.validation}`;else q="Invalid";break;case G.too_small:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at least":"more than"} ${_.minimum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at least":"over"} ${_.minimum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="bigint")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(_.minimum))}`;else q="Invalid input";break;case G.too_big:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at most":"less than"} ${_.maximum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at most":"under"} ${_.maximum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="bigint")q=`BigInt must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly":_.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(_.maximum))}`;else q="Invalid input";break;case G.custom:q="Invalid input";break;case G.invalid_intersection_types:q="Intersection results could not be merged";break;case G.not_multiple_of:q=`Number must be a multiple of ${_.multipleOf}`;break;case G.not_finite:q="Number must be finite";break;default:q=$.defaultError,O.assertNever(_)}return{message:q}},Z;var y_=b(()=>{v_();__();Z=bq});function $_(){return zq}var zq;var j_=b(()=>{y_();zq=Z});function D(_,$){let q=$_(),J=A_({issueData:$,data:_.data,path:_.path,errorMaps:[_.common.contextualErrorMap,_.schemaErrorMap,q,q===Z?void 0:Z].filter((W)=>!!W)});_.common.issues.push(J)}class L{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(_,$){let q=[];for(let J of $){if(J.status==="aborted")return z;if(J.status==="dirty")_.dirty();q.push(J.value)}return{status:_.value,value:q}}static async mergeObjectAsync(_,$){let q=[];for(let J of $){let W=await J.key,X=await J.value;q.push({key:W,value:X})}return L.mergeObjectSync(_,q)}static mergeObjectSync(_,$){let q={};for(let J of $){let{key:W,value:X}=J;if(W.status==="aborted")return z;if(X.status==="aborted")return z;if(W.status==="dirty")_.dirty();if(X.status==="dirty")_.dirty();if(W.value!=="__proto__"&&(typeof X.value<"u"||J.alwaysSet))q[W.value]=X.value}return{status:_.value,value:q}}}var A_=(_)=>{let{data:$,path:q,errorMaps:J,issueData:W}=_,X=[...q,...W.path||[]],H={...W,path:X};if(W.message!==void 0)return{...W,path:X,message:W.message};let Y="",Q=J.filter((v)=>!!v).slice().reverse();for(let v of Q)Y=v(H,{data:$,defaultError:Y}).message;return{...W,path:X,message:Y}},z,c=(_)=>({status:"dirty",value:_}),K=(_)=>({status:"valid",value:_}),x_=(_)=>_.status==="aborted",n_=(_)=>_.status==="dirty",i=(_)=>_.status==="valid",q_=(_)=>typeof Promise<"u"&&_ instanceof Promise;var Z_=b(()=>{j_();y_();z=Object.freeze({status:"aborted"})});var g$=()=>{};var w;var C$=b(()=>{(function(_){_.errToObj=($)=>typeof $==="string"?{message:$}:$||{},_.toString=($)=>typeof $==="string"?$:$?.message})(w||(w={}))});class C{constructor(_,$,q,J){this._cachedPath=[],this.parent=_,this.data=$,this._path=q,this._key=J}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function j(_){if(!_)return{};let{errorMap:$,invalid_type_error:q,required_error:J,description:W}=_;if($&&(q||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if($)return{errorMap:$,description:W};return{errorMap:(H,Y)=>{let{message:Q}=_;if(H.code==="invalid_enum_value")return{message:Q??Y.defaultError};if(typeof Y.data>"u")return{message:Q??J??Y.defaultError};if(H.code!=="invalid_type")return{message:Y.defaultError};return{message:Q??q??Y.defaultError}},description:W}}class A{get description(){return this._def.description}_getType(_){return T(_.data)}_getOrReturnCtx(_,$){return $||{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}_processInputParams(_){return{status:new L,ctx:{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}}_parseSync(_){let $=this._parse(_);if(q_($))throw Error("Synchronous parse encountered promise.");return $}_parseAsync(_){let $=this._parse(_);return Promise.resolve($)}parse(_,$){let q=this.safeParse(_,$);if(q.success)return q.data;throw q.error}safeParse(_,$){let q={common:{issues:[],async:$?.async??!1,contextualErrorMap:$?.errorMap},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parseSync({data:_,path:q.path,parent:q});return k$(q,J)}"~validate"(_){let $={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)};if(!this["~standard"].async)try{let q=this._parseSync({data:_,path:[],parent:$});return i(q)?{value:q.value}:{issues:$.common.issues}}catch(q){if(q?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;$.common={issues:[],async:!0}}return this._parseAsync({data:_,path:[],parent:$}).then((q)=>i(q)?{value:q.value}:{issues:$.common.issues})}async parseAsync(_,$){let q=await this.safeParseAsync(_,$);if(q.success)return q.data;throw q.error}async safeParseAsync(_,$){let q={common:{issues:[],contextualErrorMap:$?.errorMap,async:!0},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parse({data:_,path:q.path,parent:q}),W=await(q_(J)?J:Promise.resolve(J));return k$(q,W)}refine(_,$){let q=(J)=>{if(typeof $==="string"||typeof $>"u")return{message:$};else if(typeof $==="function")return $(J);else return $};return this._refinement((J,W)=>{let X=_(J),H=()=>W.addIssue({code:G.custom,...q(J)});if(typeof Promise<"u"&&X instanceof Promise)return X.then((Y)=>{if(!Y)return H(),!1;else return!0});if(!X)return H(),!1;else return!0})}refinement(_,$){return this._refinement((q,J)=>{if(!_(q))return J.addIssue(typeof $==="function"?$(q,J):$),!1;else return!0})}_refinement(_){return new l({schema:this,typeName:M.ZodEffects,effect:{type:"refinement",refinement:_}})}superRefine(_){return this._refinement(_)}constructor(_){this.spa=this.safeParseAsync,this._def=_,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:($)=>this["~validate"]($)}}optional(){return m.create(this,this._def)}nullable(){return u.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return P.create(this)}promise(){return e.create(this,this._def)}or(_){return Q_.create([this,_],this._def)}and(_){return Y_.create(this,_,this._def)}transform(_){return new l({...j(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:_}})}default(_){let $=typeof _==="function"?_:()=>_;return new D_({...j(this._def),innerType:this,defaultValue:$,typeName:M.ZodDefault})}brand(){return new r_({typeName:M.ZodBranded,type:this,...j(this._def)})}catch(_){let $=typeof _==="function"?_:()=>_;return new w_({...j(this._def),innerType:this,catchValue:$,typeName:M.ZodCatch})}describe(_){return new this.constructor({...this._def,description:_})}pipe(_){return K_.create(this,_)}readonly(){return b_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function P$(_){let $="[0-5]\\d";if(_.precision)$=`${$}\\.\\d{${_.precision}}`;else if(_.precision==null)$=`${$}(\\.\\d+)?`;let q=_.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${$})${q}`}function kq(_){return new RegExp(`^${P$(_)}$`)}function Iq(_){let $=`${I$}T${P$(_)}`,q=[];if(q.push(_.local?"Z?":"Z"),_.offset)q.push("([+-]\\d{2}:?\\d{2})");return $=`${$}(${q.join("|")})`,new RegExp(`^${$}$`)}function Pq(_,$){if(($==="v4"||!$)&&Rq.test(_))return!0;if(($==="v6"||!$)&&Kq.test(_))return!0;return!1}function mq(_,$){if(!Nq.test(_))return!1;try{let[q]=_.split(".");if(!q)return!1;let J=q.replace(/-/g,"+").replace(/_/g,"/").padEnd(q.length+(4-q.length%4)%4,"="),W=JSON.parse(atob(J));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if($&&W.alg!==$)return!1;return!0}catch{return!1}}function lq(_,$){if(($==="v4"||!$)&&Lq.test(_))return!0;if(($==="v6"||!$)&&Fq.test(_))return!0;return!1}function Tq(_,$){let q=(_.toString().split(".")[1]||"").length,J=($.toString().split(".")[1]||"").length,W=q>J?q:J,X=Number.parseInt(_.toFixed(W).replace(".","")),H=Number.parseInt($.toFixed(W).replace(".",""));return X%H/10**W}function d(_){if(_ instanceof U){let $={};for(let q in _.shape){let J=_.shape[q];$[q]=m.create(d(J))}return new U({..._._def,shape:()=>$})}else if(_ instanceof P)return new P({..._._def,type:d(_.element)});else if(_ instanceof m)return m.create(d(_.unwrap()));else if(_ instanceof u)return u.create(d(_.unwrap()));else if(_ instanceof n)return n.create(_.items.map(($)=>d($)));else return _}function p_(_,$){let q=T(_),J=T($);if(_===$)return{valid:!0,data:_};else if(q===B.object&&J===B.object){let W=O.objectKeys($),X=O.objectKeys(_).filter((Y)=>W.indexOf(Y)!==-1),H={..._,...$};for(let Y of X){let Q=p_(_[Y],$[Y]);if(!Q.valid)return{valid:!1};H[Y]=Q.data}return{valid:!0,data:H}}else if(q===B.array&&J===B.array){if(_.length!==$.length)return{valid:!1};let W=[];for(let X=0;X<_.length;X++){let H=_[X],Y=$[X],Q=p_(H,Y);if(!Q.valid)return{valid:!1};W.push(Q.data)}return{valid:!0,data:W}}else if(q===B.date&&J===B.date&&+_===+$)return{valid:!0,data:_};else return{valid:!1}}function m$(_,$){return new o({values:_,typeName:M.ZodEnum,...j($)})}var k$=(_,$)=>{if(i($))return{success:!0,data:$.value};else{if(!_.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let q=new f(_.common.issues);return this._error=q,this._error}}}},Sq,vq,jq,Aq,Oq,Nq,Eq,Uq,Vq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",u_,Rq,Lq,Kq,Fq,fq,gq,I$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Cq,y,t,a,O_,W_,N_,X_,H_,E_,r,x,U_,P,U,Q_,h=(_)=>{if(_ instanceof G_)return h(_.schema);else if(_ instanceof l)return h(_.innerType());else if(_ instanceof M_)return[_.value];else if(_ instanceof o)return _.options;else if(_ instanceof B_)return O.objectValues(_.enum);else if(_ instanceof D_)return h(_._def.innerType);else if(_ instanceof X_)return[void 0];else if(_ instanceof H_)return[null];else if(_ instanceof m)return[void 0,...h(_.unwrap())];else if(_ instanceof u)return[null,...h(_.unwrap())];else if(_ instanceof r_)return h(_.unwrap());else if(_ instanceof b_)return h(_.unwrap());else if(_ instanceof w_)return h(_._def.innerType);else return[]},i_,Y_,n,V_,R_,s,J_,G_,M_,o,B_,e,l,m,u,D_,w_,L_,D3,r_,K_,b_,w3,M,b3,z3,S3,v3,j3,A3,O3,N3,E3,U3,V3,R3,L3,K3,F3,f3,g3,C3,k3,I3,P3,m3,l3,T3,h3,y3,x3,n3,Z3,u3,p3,i3,r3,o3;var l$=b(()=>{v_();j_();C$();Z_();__();Sq=/^c[^\s-]{8,}$/i,vq=/^[0-9a-z]+$/,jq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Aq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Oq=/^[a-z0-9_-]{21}$/i,Nq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Eq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Uq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Rq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Kq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Cq=new RegExp(`^${I$}$`);y=class y extends A{_parse(_){if(this._def.coerce)_.data=String(_.data);if(this._getType(_)!==B.string){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.string,received:W.parsedType}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.length<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="max"){if(_.data.length>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="length"){let X=_.data.length>W.value,H=_.data.length<W.value;if(X||H){if(J=this._getOrReturnCtx(_,J),X)D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(H)D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});q.dirty()}}else if(W.kind==="email"){if(!Uq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"email",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="emoji"){if(!u_)u_=new RegExp(Vq,"u");if(!u_.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"emoji",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="uuid"){if(!Aq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"uuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="nanoid"){if(!Oq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"nanoid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid"){if(!Sq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid2"){if(!vq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid2",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ulid"){if(!jq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"ulid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="url")try{new URL(_.data)}catch{J=this._getOrReturnCtx(_,J),D(J,{validation:"url",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"regex",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="trim")_.data=_.data.trim();else if(W.kind==="includes"){if(!_.data.includes(W.value,W.position))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),q.dirty()}else if(W.kind==="toLowerCase")_.data=_.data.toLowerCase();else if(W.kind==="toUpperCase")_.data=_.data.toUpperCase();else if(W.kind==="startsWith"){if(!_.data.startsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{startsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="endsWith"){if(!_.data.endsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{endsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="datetime"){if(!Iq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"datetime",message:W.message}),q.dirty()}else if(W.kind==="date"){if(!Cq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"date",message:W.message}),q.dirty()}else if(W.kind==="time"){if(!kq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"time",message:W.message}),q.dirty()}else if(W.kind==="duration"){if(!Eq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"duration",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ip"){if(!Pq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"ip",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="jwt"){if(!mq(_.data,W.alg))J=this._getOrReturnCtx(_,J),D(J,{validation:"jwt",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cidr"){if(!lq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"cidr",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64"){if(!fq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64url"){if(!gq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64url",code:G.invalid_string,message:W.message}),q.dirty()}else O.assertNever(W);return{status:q.value,value:_.data}}_regex(_,$,q){return this.refinement((J)=>_.test(J),{validation:$,code:G.invalid_string,...w.errToObj(q)})}_addCheck(_){return new y({...this._def,checks:[...this._def.checks,_]})}email(_){return this._addCheck({kind:"email",...w.errToObj(_)})}url(_){return this._addCheck({kind:"url",...w.errToObj(_)})}emoji(_){return this._addCheck({kind:"emoji",...w.errToObj(_)})}uuid(_){return this._addCheck({kind:"uuid",...w.errToObj(_)})}nanoid(_){return this._addCheck({kind:"nanoid",...w.errToObj(_)})}cuid(_){return this._addCheck({kind:"cuid",...w.errToObj(_)})}cuid2(_){return this._addCheck({kind:"cuid2",...w.errToObj(_)})}ulid(_){return this._addCheck({kind:"ulid",...w.errToObj(_)})}base64(_){return this._addCheck({kind:"base64",...w.errToObj(_)})}base64url(_){return this._addCheck({kind:"base64url",...w.errToObj(_)})}jwt(_){return this._addCheck({kind:"jwt",...w.errToObj(_)})}ip(_){return this._addCheck({kind:"ip",...w.errToObj(_)})}cidr(_){return this._addCheck({kind:"cidr",...w.errToObj(_)})}datetime(_){if(typeof _==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:_});return this._addCheck({kind:"datetime",precision:typeof _?.precision>"u"?null:_?.precision,offset:_?.offset??!1,local:_?.local??!1,...w.errToObj(_?.message)})}date(_){return this._addCheck({kind:"date",message:_})}time(_){if(typeof _==="string")return this._addCheck({kind:"time",precision:null,message:_});return this._addCheck({kind:"time",precision:typeof _?.precision>"u"?null:_?.precision,...w.errToObj(_?.message)})}duration(_){return this._addCheck({kind:"duration",...w.errToObj(_)})}regex(_,$){return this._addCheck({kind:"regex",regex:_,...w.errToObj($)})}includes(_,$){return this._addCheck({kind:"includes",value:_,position:$?.position,...w.errToObj($?.message)})}startsWith(_,$){return this._addCheck({kind:"startsWith",value:_,...w.errToObj($)})}endsWith(_,$){return this._addCheck({kind:"endsWith",value:_,...w.errToObj($)})}min(_,$){return this._addCheck({kind:"min",value:_,...w.errToObj($)})}max(_,$){return this._addCheck({kind:"max",value:_,...w.errToObj($)})}length(_,$){return this._addCheck({kind:"length",value:_,...w.errToObj($)})}nonempty(_){return this.min(1,w.errToObj(_))}trim(){return new y({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new y({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((_)=>_.kind==="datetime")}get isDate(){return!!this._def.checks.find((_)=>_.kind==="date")}get isTime(){return!!this._def.checks.find((_)=>_.kind==="time")}get isDuration(){return!!this._def.checks.find((_)=>_.kind==="duration")}get isEmail(){return!!this._def.checks.find((_)=>_.kind==="email")}get isURL(){return!!this._def.checks.find((_)=>_.kind==="url")}get isEmoji(){return!!this._def.checks.find((_)=>_.kind==="emoji")}get isUUID(){return!!this._def.checks.find((_)=>_.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((_)=>_.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((_)=>_.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((_)=>_.kind==="cuid2")}get isULID(){return!!this._def.checks.find((_)=>_.kind==="ulid")}get isIP(){return!!this._def.checks.find((_)=>_.kind==="ip")}get isCIDR(){return!!this._def.checks.find((_)=>_.kind==="cidr")}get isBase64(){return!!this._def.checks.find((_)=>_.kind==="base64")}get isBase64url(){return!!this._def.checks.find((_)=>_.kind==="base64url")}get minLength(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxLength(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};y.create=(_)=>{return new y({checks:[],typeName:M.ZodString,coerce:_?.coerce??!1,...j(_)})};t=class t extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(_){if(this._def.coerce)_.data=Number(_.data);if(this._getType(_)!==B.number){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.number,received:W.parsedType}),z}let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="int"){if(!O.isInteger(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.invalid_type,expected:"integer",received:"float",message:W.message}),J.dirty()}else if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(Tq(_.data,W.value)!==0)q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else if(W.kind==="finite"){if(!Number.isFinite(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_finite,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new t({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new t({...this._def,checks:[...this._def.checks,_]})}int(_){return this._addCheck({kind:"int",message:w.toString(_)})}positive(_){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}finite(_){return this._addCheck({kind:"finite",message:w.toString(_)})}safe(_){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(_)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(_)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}get isInt(){return!!this._def.checks.find((_)=>_.kind==="int"||_.kind==="multipleOf"&&O.isInteger(_.value))}get isFinite(){let _=null,$=null;for(let q of this._def.checks)if(q.kind==="finite"||q.kind==="int"||q.kind==="multipleOf")return!0;else if(q.kind==="min"){if($===null||q.value>$)$=q.value}else if(q.kind==="max"){if(_===null||q.value<_)_=q.value}return Number.isFinite($)&&Number.isFinite(_)}};t.create=(_)=>{return new t({checks:[],typeName:M.ZodNumber,coerce:_?.coerce||!1,...j(_)})};a=class a extends A{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(_){if(this._def.coerce)try{_.data=BigInt(_.data)}catch{return this._getInvalidInput(_)}if(this._getType(_)!==B.bigint)return this._getInvalidInput(_);let q=void 0,J=new L;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(_.data%W.value!==BigInt(0))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}_getInvalidInput(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.bigint,received:$.parsedType}),z}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new a({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new a({...this._def,checks:[...this._def.checks,_]})}positive(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};a.create=(_)=>{return new a({checks:[],typeName:M.ZodBigInt,coerce:_?.coerce??!1,...j(_)})};O_=class O_ extends A{_parse(_){if(this._def.coerce)_.data=Boolean(_.data);if(this._getType(_)!==B.boolean){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.boolean,received:q.parsedType}),z}return K(_.data)}};O_.create=(_)=>{return new O_({typeName:M.ZodBoolean,coerce:_?.coerce||!1,...j(_)})};W_=class W_ extends A{_parse(_){if(this._def.coerce)_.data=new Date(_.data);if(this._getType(_)!==B.date){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.date,received:W.parsedType}),z}if(Number.isNaN(_.data.getTime())){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_date}),z}let q=new L,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.getTime()<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),q.dirty()}else if(W.kind==="max"){if(_.data.getTime()>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),q.dirty()}else O.assertNever(W);return{status:q.value,value:new Date(_.data.getTime())}}_addCheck(_){return new W_({...this._def,checks:[...this._def.checks,_]})}min(_,$){return this._addCheck({kind:"min",value:_.getTime(),message:w.toString($)})}max(_,$){return this._addCheck({kind:"max",value:_.getTime(),message:w.toString($)})}get minDate(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _!=null?new Date(_):null}get maxDate(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _!=null?new Date(_):null}};W_.create=(_)=>{return new W_({checks:[],coerce:_?.coerce||!1,typeName:M.ZodDate,...j(_)})};N_=class N_ extends A{_parse(_){if(this._getType(_)!==B.symbol){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.symbol,received:q.parsedType}),z}return K(_.data)}};N_.create=(_)=>{return new N_({typeName:M.ZodSymbol,...j(_)})};X_=class X_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.undefined,received:q.parsedType}),z}return K(_.data)}};X_.create=(_)=>{return new X_({typeName:M.ZodUndefined,...j(_)})};H_=class H_ extends A{_parse(_){if(this._getType(_)!==B.null){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.null,received:q.parsedType}),z}return K(_.data)}};H_.create=(_)=>{return new H_({typeName:M.ZodNull,...j(_)})};E_=class E_ extends A{constructor(){super(...arguments);this._any=!0}_parse(_){return K(_.data)}};E_.create=(_)=>{return new E_({typeName:M.ZodAny,...j(_)})};r=class r extends A{constructor(){super(...arguments);this._unknown=!0}_parse(_){return K(_.data)}};r.create=(_)=>{return new r({typeName:M.ZodUnknown,...j(_)})};x=class x extends A{_parse(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.never,received:$.parsedType}),z}};x.create=(_)=>{return new x({typeName:M.ZodNever,...j(_)})};U_=class U_ extends A{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.void,received:q.parsedType}),z}return K(_.data)}};U_.create=(_)=>{return new U_({typeName:M.ZodVoid,...j(_)})};P=class P extends A{_parse(_){let{ctx:$,status:q}=this._processInputParams(_),J=this._def;if($.parsedType!==B.array)return D($,{code:G.invalid_type,expected:B.array,received:$.parsedType}),z;if(J.exactLength!==null){let X=$.data.length>J.exactLength.value,H=$.data.length<J.exactLength.value;if(X||H)D($,{code:X?G.too_big:G.too_small,minimum:H?J.exactLength.value:void 0,maximum:X?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),q.dirty()}if(J.minLength!==null){if($.data.length<J.minLength.value)D($,{code:G.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),q.dirty()}if(J.maxLength!==null){if($.data.length>J.maxLength.value)D($,{code:G.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),q.dirty()}if($.common.async)return Promise.all([...$.data].map((X,H)=>{return J.type._parseAsync(new C($,X,$.path,H))})).then((X)=>{return L.mergeArray(q,X)});let W=[...$.data].map((X,H)=>{return J.type._parseSync(new C($,X,$.path,H))});return L.mergeArray(q,W)}get element(){return this._def.type}min(_,$){return new P({...this._def,minLength:{value:_,message:w.toString($)}})}max(_,$){return new P({...this._def,maxLength:{value:_,message:w.toString($)}})}length(_,$){return new P({...this._def,exactLength:{value:_,message:w.toString($)}})}nonempty(_){return this.min(1,_)}};P.create=(_,$)=>{return new P({type:_,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...j($)})};U=class U extends A{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let _=this._def.shape(),$=O.objectKeys(_);return this._cached={shape:_,keys:$},this._cached}_parse(_){if(this._getType(_)!==B.object){let Q=this._getOrReturnCtx(_);return D(Q,{code:G.invalid_type,expected:B.object,received:Q.parsedType}),z}let{status:q,ctx:J}=this._processInputParams(_),{shape:W,keys:X}=this._getCached(),H=[];if(!(this._def.catchall instanceof x&&this._def.unknownKeys==="strip")){for(let Q in J.data)if(!X.includes(Q))H.push(Q)}let Y=[];for(let Q of X){let v=W[Q],R=J.data[Q];Y.push({key:{status:"valid",value:Q},value:v._parse(new C(J,R,J.path,Q)),alwaysSet:Q in J.data})}if(this._def.catchall instanceof x){let Q=this._def.unknownKeys;if(Q==="passthrough")for(let v of H)Y.push({key:{status:"valid",value:v},value:{status:"valid",value:J.data[v]}});else if(Q==="strict"){if(H.length>0)D(J,{code:G.unrecognized_keys,keys:H}),q.dirty()}else if(Q==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let Q=this._def.catchall;for(let v of H){let R=J.data[v];Y.push({key:{status:"valid",value:v},value:Q._parse(new C(J,R,J.path,v)),alwaysSet:v in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let Q=[];for(let v of Y){let R=await v.key,R$=await v.value;Q.push({key:R,value:R$,alwaysSet:v.alwaysSet})}return Q}).then((Q)=>{return L.mergeObjectSync(q,Q)});else return L.mergeObjectSync(q,Y)}get shape(){return this._def.shape()}strict(_){return w.errToObj,new U({...this._def,unknownKeys:"strict",..._!==void 0?{errorMap:($,q)=>{let J=this._def.errorMap?.($,q).message??q.defaultError;if($.code==="unrecognized_keys")return{message:w.errToObj(_).message??J};return{message:J}}}:{}})}strip(){return new U({...this._def,unknownKeys:"strip"})}passthrough(){return new U({...this._def,unknownKeys:"passthrough"})}extend(_){return new U({...this._def,shape:()=>({...this._def.shape(),..._})})}merge(_){return new U({unknownKeys:_._def.unknownKeys,catchall:_._def.catchall,shape:()=>({...this._def.shape(),..._._def.shape()}),typeName:M.ZodObject})}setKey(_,$){return this.augment({[_]:$})}catchall(_){return new U({...this._def,catchall:_})}pick(_){let $={};for(let q of O.objectKeys(_))if(_[q]&&this.shape[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}omit(_){let $={};for(let q of O.objectKeys(this.shape))if(!_[q])$[q]=this.shape[q];return new U({...this._def,shape:()=>$})}deepPartial(){return d(this)}partial(_){let $={};for(let q of O.objectKeys(this.shape)){let J=this.shape[q];if(_&&!_[q])$[q]=J;else $[q]=J.optional()}return new U({...this._def,shape:()=>$})}required(_){let $={};for(let q of O.objectKeys(this.shape))if(_&&!_[q])$[q]=this.shape[q];else{let W=this.shape[q];while(W instanceof m)W=W._def.innerType;$[q]=W}return new U({...this._def,shape:()=>$})}keyof(){return m$(O.objectKeys(this.shape))}};U.create=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.strictCreate=(_,$)=>{return new U({shape:()=>_,unknownKeys:"strict",catchall:x.create(),typeName:M.ZodObject,...j($)})};U.lazycreate=(_,$)=>{return new U({shape:_,unknownKeys:"strip",catchall:x.create(),typeName:M.ZodObject,...j($)})};Q_=class Q_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=this._def.options;function J(W){for(let H of W)if(H.result.status==="valid")return H.result;for(let H of W)if(H.result.status==="dirty")return $.common.issues.push(...H.ctx.common.issues),H.result;let X=W.map((H)=>new f(H.ctx.common.issues));return D($,{code:G.invalid_union,unionErrors:X}),z}if($.common.async)return Promise.all(q.map(async(W)=>{let X={...$,common:{...$.common,issues:[]},parent:null};return{result:await W._parseAsync({data:$.data,path:$.path,parent:X}),ctx:X}})).then(J);else{let W=void 0,X=[];for(let Y of q){let Q={...$,common:{...$.common,issues:[]},parent:null},v=Y._parseSync({data:$.data,path:$.path,parent:Q});if(v.status==="valid")return v;else if(v.status==="dirty"&&!W)W={result:v,ctx:Q};if(Q.common.issues.length)X.push(Q.common.issues)}if(W)return $.common.issues.push(...W.ctx.common.issues),W.result;let H=X.map((Y)=>new f(Y));return D($,{code:G.invalid_union,unionErrors:H}),z}}get options(){return this._def.options}};Q_.create=(_,$)=>{return new Q_({options:_,typeName:M.ZodUnion,...j($)})};i_=class i_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.object)return D($,{code:G.invalid_type,expected:B.object,received:$.parsedType}),z;let q=this.discriminator,J=$.data[q],W=this.optionsMap.get(J);if(!W)return D($,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[q]}),z;if($.common.async)return W._parseAsync({data:$.data,path:$.path,parent:$});else return W._parseSync({data:$.data,path:$.path,parent:$})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(_,$,q){let J=new Map;for(let W of $){let X=h(W.shape[_]);if(!X.length)throw Error(`A discriminator value for key \`${_}\` could not be extracted from all schema options`);for(let H of X){if(J.has(H))throw Error(`Discriminator property ${String(_)} has duplicate value ${String(H)}`);J.set(H,W)}}return new i_({typeName:M.ZodDiscriminatedUnion,discriminator:_,options:$,optionsMap:J,...j(q)})}};Y_=class Y_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=(W,X)=>{if(x_(W)||x_(X))return z;let H=p_(W.value,X.value);if(!H.valid)return D(q,{code:G.invalid_intersection_types}),z;if(n_(W)||n_(X))$.dirty();return{status:$.value,value:H.data}};if(q.common.async)return Promise.all([this._def.left._parseAsync({data:q.data,path:q.path,parent:q}),this._def.right._parseAsync({data:q.data,path:q.path,parent:q})]).then(([W,X])=>J(W,X));else return J(this._def.left._parseSync({data:q.data,path:q.path,parent:q}),this._def.right._parseSync({data:q.data,path:q.path,parent:q}))}};Y_.create=(_,$,q)=>{return new Y_({left:_,right:$,typeName:M.ZodIntersection,...j(q)})};n=class n extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.array)return D(q,{code:G.invalid_type,expected:B.array,received:q.parsedType}),z;if(q.data.length<this._def.items.length)return D(q,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),z;if(!this._def.rest&&q.data.length>this._def.items.length)D(q,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$.dirty();let W=[...q.data].map((X,H)=>{let Y=this._def.items[H]||this._def.rest;if(!Y)return null;return Y._parse(new C(q,X,q.path,H))}).filter((X)=>!!X);if(q.common.async)return Promise.all(W).then((X)=>{return L.mergeArray($,X)});else return L.mergeArray($,W)}get items(){return this._def.items}rest(_){return new n({...this._def,rest:_})}};n.create=(_,$)=>{if(!Array.isArray(_))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new n({items:_,typeName:M.ZodTuple,rest:null,...j($)})};V_=class V_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.object)return D(q,{code:G.invalid_type,expected:B.object,received:q.parsedType}),z;let J=[],W=this._def.keyType,X=this._def.valueType;for(let H in q.data)J.push({key:W._parse(new C(q,H,q.path,H)),value:X._parse(new C(q,q.data[H],q.path,H)),alwaysSet:H in q.data});if(q.common.async)return L.mergeObjectAsync($,J);else return L.mergeObjectSync($,J)}get element(){return this._def.valueType}static create(_,$,q){if($ instanceof A)return new V_({keyType:_,valueType:$,typeName:M.ZodRecord,...j(q)});return new V_({keyType:y.create(),valueType:_,typeName:M.ZodRecord,...j($)})}};R_=class R_ extends A{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.map)return D(q,{code:G.invalid_type,expected:B.map,received:q.parsedType}),z;let J=this._def.keyType,W=this._def.valueType,X=[...q.data.entries()].map(([H,Y],Q)=>{return{key:J._parse(new C(q,H,q.path,[Q,"key"])),value:W._parse(new C(q,Y,q.path,[Q,"value"]))}});if(q.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let Y of X){let Q=await Y.key,v=await Y.value;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}})}else{let H=new Map;for(let Y of X){let{key:Q,value:v}=Y;if(Q.status==="aborted"||v.status==="aborted")return z;if(Q.status==="dirty"||v.status==="dirty")$.dirty();H.set(Q.value,v.value)}return{status:$.value,value:H}}}};R_.create=(_,$,q)=>{return new R_({valueType:$,keyType:_,typeName:M.ZodMap,...j(q)})};s=class s extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.set)return D(q,{code:G.invalid_type,expected:B.set,received:q.parsedType}),z;let J=this._def;if(J.minSize!==null){if(q.data.size<J.minSize.value)D(q,{code:G.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),$.dirty()}if(J.maxSize!==null){if(q.data.size>J.maxSize.value)D(q,{code:G.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),$.dirty()}let W=this._def.valueType;function X(Y){let Q=new Set;for(let v of Y){if(v.status==="aborted")return z;if(v.status==="dirty")$.dirty();Q.add(v.value)}return{status:$.value,value:Q}}let H=[...q.data.values()].map((Y,Q)=>W._parse(new C(q,Y,q.path,Q)));if(q.common.async)return Promise.all(H).then((Y)=>X(Y));else return X(H)}min(_,$){return new s({...this._def,minSize:{value:_,message:w.toString($)}})}max(_,$){return new s({...this._def,maxSize:{value:_,message:w.toString($)}})}size(_,$){return this.min(_,$).max(_,$)}nonempty(_){return this.min(1,_)}};s.create=(_,$)=>{return new s({valueType:_,minSize:null,maxSize:null,typeName:M.ZodSet,...j($)})};J_=class J_ extends A{constructor(){super(...arguments);this.validate=this.implement}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.function)return D($,{code:G.invalid_type,expected:B.function,received:$.parsedType}),z;function q(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_arguments,argumentsError:Y}})}function J(H,Y){return A_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_return_type,returnTypeError:Y}})}let W={errorMap:$.common.contextualErrorMap},X=$.data;if(this._def.returns instanceof e){let H=this;return K(async function(...Y){let Q=new f([]),v=await H._def.args.parseAsync(Y,W).catch((h_)=>{throw Q.addIssue(q(Y,h_)),Q}),R=await Reflect.apply(X,this,v);return await H._def.returns._def.type.parseAsync(R,W).catch((h_)=>{throw Q.addIssue(J(R,h_)),Q})})}else{let H=this;return K(function(...Y){let Q=H._def.args.safeParse(Y,W);if(!Q.success)throw new f([q(Y,Q.error)]);let v=Reflect.apply(X,this,Q.data),R=H._def.returns.safeParse(v,W);if(!R.success)throw new f([J(v,R.error)]);return R.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(..._){return new J_({...this._def,args:n.create(_).rest(r.create())})}returns(_){return new J_({...this._def,returns:_})}implement(_){return this.parse(_)}strictImplement(_){return this.parse(_)}static create(_,$,q){return new J_({args:_?_:n.create([]).rest(r.create()),returns:$||r.create(),typeName:M.ZodFunction,...j(q)})}};G_=class G_ extends A{get schema(){return this._def.getter()}_parse(_){let{ctx:$}=this._processInputParams(_);return this._def.getter()._parse({data:$.data,path:$.path,parent:$})}};G_.create=(_,$)=>{return new G_({getter:_,typeName:M.ZodLazy,...j($)})};M_=class M_ extends A{_parse(_){if(_.data!==this._def.value){let $=this._getOrReturnCtx(_);return D($,{received:$.data,code:G.invalid_literal,expected:this._def.value}),z}return{status:"valid",value:_.data}}get value(){return this._def.value}};M_.create=(_,$)=>{return new M_({value:_,typeName:M.ZodLiteral,...j($)})};o=class o extends A{_parse(_){if(typeof _.data!=="string"){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{expected:O.joinValues(q),received:$.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(_.data)){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{received:$.data,code:G.invalid_enum_value,options:q}),z}return K(_.data)}get options(){return this._def.values}get enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Values(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}extract(_,$=this._def){return o.create(_,{...this._def,...$})}exclude(_,$=this._def){return o.create(this.options.filter((q)=>!_.includes(q)),{...this._def,...$})}};o.create=m$;B_=class B_ extends A{_parse(_){let $=O.getValidEnumValues(this._def.values),q=this._getOrReturnCtx(_);if(q.parsedType!==B.string&&q.parsedType!==B.number){let J=O.objectValues($);return D(q,{expected:O.joinValues(J),received:q.parsedType,code:G.invalid_type}),z}if(!this._cache)this._cache=new Set(O.getValidEnumValues(this._def.values));if(!this._cache.has(_.data)){let J=O.objectValues($);return D(q,{received:q.data,code:G.invalid_enum_value,options:J}),z}return K(_.data)}get enum(){return this._def.values}};B_.create=(_,$)=>{return new B_({values:_,typeName:M.ZodNativeEnum,...j($)})};e=class e extends A{unwrap(){return this._def.type}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.promise&&$.common.async===!1)return D($,{code:G.invalid_type,expected:B.promise,received:$.parsedType}),z;let q=$.parsedType===B.promise?$.data:Promise.resolve($.data);return K(q.then((J)=>{return this._def.type.parseAsync(J,{path:$.path,errorMap:$.common.contextualErrorMap})}))}};e.create=(_,$)=>{return new e({type:_,typeName:M.ZodPromise,...j($)})};l=class l extends A{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=this._def.effect||null,W={addIssue:(X)=>{if(D(q,X),X.fatal)$.abort();else $.dirty()},get path(){return q.path}};if(W.addIssue=W.addIssue.bind(W),J.type==="preprocess"){let X=J.transform(q.data,W);if(q.common.async)return Promise.resolve(X).then(async(H)=>{if($.value==="aborted")return z;let Y=await this._def.schema._parseAsync({data:H,path:q.path,parent:q});if(Y.status==="aborted")return z;if(Y.status==="dirty")return c(Y.value);if($.value==="dirty")return c(Y.value);return Y});else{if($.value==="aborted")return z;let H=this._def.schema._parseSync({data:X,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")return c(H.value);if($.value==="dirty")return c(H.value);return H}}if(J.type==="refinement"){let X=(H)=>{let Y=J.refinement(H,W);if(q.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(q.common.async===!1){let H=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value),{status:$.value,value:H.value}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((H)=>{if(H.status==="aborted")return z;if(H.status==="dirty")$.dirty();return X(H.value).then(()=>{return{status:$.value,value:H.value}})})}if(J.type==="transform")if(q.common.async===!1){let X=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(!i(X))return z;let H=J.transform(X.value,W);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:$.value,value:H}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((X)=>{if(!i(X))return z;return Promise.resolve(J.transform(X.value,W)).then((H)=>({status:$.value,value:H}))});O.assertNever(J)}};l.create=(_,$,q)=>{return new l({schema:_,typeName:M.ZodEffects,effect:$,...j(q)})};l.createWithPreprocess=(_,$,q)=>{return new l({schema:$,effect:{type:"preprocess",transform:_},typeName:M.ZodEffects,...j(q)})};m=class m extends A{_parse(_){if(this._getType(_)===B.undefined)return K(void 0);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};m.create=(_,$)=>{return new m({innerType:_,typeName:M.ZodOptional,...j($)})};u=class u extends A{_parse(_){if(this._getType(_)===B.null)return K(null);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};u.create=(_,$)=>{return new u({innerType:_,typeName:M.ZodNullable,...j($)})};D_=class D_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;if($.parsedType===B.undefined)q=this._def.defaultValue();return this._def.innerType._parse({data:q,path:$.path,parent:$})}removeDefault(){return this._def.innerType}};D_.create=(_,$)=>{return new D_({innerType:_,typeName:M.ZodDefault,defaultValue:typeof $.default==="function"?$.default:()=>$.default,...j($)})};w_=class w_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q={...$,common:{...$.common,issues:[]}},J=this._def.innerType._parse({data:q.data,path:q.path,parent:{...q}});if(q_(J))return J.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}}removeCatch(){return this._def.innerType}};w_.create=(_,$)=>{return new w_({innerType:_,typeName:M.ZodCatch,catchValue:typeof $.catch==="function"?$.catch:()=>$.catch,...j($)})};L_=class L_ extends A{_parse(_){if(this._getType(_)!==B.nan){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.nan,received:q.parsedType}),z}return{status:"valid",value:_.data}}};L_.create=(_)=>{return new L_({typeName:M.ZodNaN,...j(_)})};D3=Symbol("zod_brand");r_=class r_ extends A{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;return this._def.type._parse({data:q,path:$.path,parent:$})}unwrap(){return this._def.type}};K_=class K_ extends A{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:q.data,path:q.path,parent:q});if(W.status==="aborted")return z;if(W.status==="dirty")return $.dirty(),c(W.value);else return this._def.out._parseAsync({data:W.value,path:q.path,parent:q})})();else{let J=this._def.in._parseSync({data:q.data,path:q.path,parent:q});if(J.status==="aborted")return z;if(J.status==="dirty")return $.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:q.path,parent:q})}}static create(_,$){return new K_({in:_,out:$,typeName:M.ZodPipeline})}};b_=class b_ extends A{_parse(_){let $=this._def.innerType._parse(_),q=(J)=>{if(i(J))J.value=Object.freeze(J.value);return J};return q_($)?$.then((J)=>q(J)):q($)}unwrap(){return this._def.innerType}};b_.create=(_,$)=>{return new b_({innerType:_,typeName:M.ZodReadonly,...j($)})};w3={object:U.lazycreate};(function(_){_.ZodString="ZodString",_.ZodNumber="ZodNumber",_.ZodNaN="ZodNaN",_.ZodBigInt="ZodBigInt",_.ZodBoolean="ZodBoolean",_.ZodDate="ZodDate",_.ZodSymbol="ZodSymbol",_.ZodUndefined="ZodUndefined",_.ZodNull="ZodNull",_.ZodAny="ZodAny",_.ZodUnknown="ZodUnknown",_.ZodNever="ZodNever",_.ZodVoid="ZodVoid",_.ZodArray="ZodArray",_.ZodObject="ZodObject",_.ZodUnion="ZodUnion",_.ZodDiscriminatedUnion="ZodDiscriminatedUnion",_.ZodIntersection="ZodIntersection",_.ZodTuple="ZodTuple",_.ZodRecord="ZodRecord",_.ZodMap="ZodMap",_.ZodSet="ZodSet",_.ZodFunction="ZodFunction",_.ZodLazy="ZodLazy",_.ZodLiteral="ZodLiteral",_.ZodEnum="ZodEnum",_.ZodEffects="ZodEffects",_.ZodNativeEnum="ZodNativeEnum",_.ZodOptional="ZodOptional",_.ZodNullable="ZodNullable",_.ZodDefault="ZodDefault",_.ZodCatch="ZodCatch",_.ZodPromise="ZodPromise",_.ZodBranded="ZodBranded",_.ZodPipeline="ZodPipeline",_.ZodReadonly="ZodReadonly"})(M||(M={}));b3=y.create,z3=t.create,S3=L_.create,v3=a.create,j3=O_.create,A3=W_.create,O3=N_.create,N3=X_.create,E3=H_.create,U3=E_.create,V3=r.create,R3=x.create,L3=U_.create,K3=P.create,F3=U.create,f3=U.strictCreate,g3=Q_.create,C3=i_.create,k3=Y_.create,I3=n.create,P3=V_.create,m3=R_.create,l3=s.create,T3=J_.create,h3=G_.create,y3=M_.create,x3=o.create,n3=B_.create,Z3=e.create,u3=l.create,p3=m.create,i3=u.create,r3=l.createWithPreprocess,o3=K_.create});var T$=b(()=>{j_();Z_();g$();__();l$();v_()});var F_=b(()=>{T$()});var f_=(_,$)=>{let q=0;for(;q<_.length&&q<$.length;q++)if(_[q]!==$[q])break;return[(_.length-q).toString(),...$.slice(q)].join("/")};var g_=()=>{};function E(_){if(_.target!=="openAi")return{};let $=[..._.basePath,_.definitionPath,_.openAiAnyTypeName];return _.flags.hasReferencedOpenAiAnyType=!0,{$ref:_.$refStrategy==="relative"?f_($,_.currentPath):$.join("/")}}var g=b(()=>{g_()});function o_(_,$,q,J){if(!J?.errorMessages)return;if(q)_.errorMessage={..._.errorMessage,[$]:q}}function N(_,$,q,J,W){_[$]=q,o_(_,$,J,W)}var p=()=>{};function h$(_,$){let q={type:"array"};if(_.type?._def&&_.type?._def?.typeName!==M.ZodAny)q.items=S(_.type._def,{...$,currentPath:[...$.currentPath,"items"]});if(_.minLength)N(q,"minItems",_.minLength.value,_.minLength.message,$);if(_.maxLength)N(q,"maxItems",_.maxLength.value,_.maxLength.message,$);if(_.exactLength)N(q,"minItems",_.exactLength.value,_.exactLength.message,$),N(q,"maxItems",_.exactLength.value,_.exactLength.message,$);return q}var c_=b(()=>{F_();p();V()});function y$(_,$){let q={type:"integer",format:"int64"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var d_=b(()=>{p()});function x$(){return{type:"boolean"}}var t_=()=>{};function C_(_,$){return S(_.type._def,$)}var k_=b(()=>{V()});var n$=(_,$)=>{return S(_.innerType._def,$)};var a_=b(()=>{V()});function s_(_,$,q){let J=q??$.dateStrategy;if(Array.isArray(J))return{anyOf:J.map((W,X)=>s_(_,$,W))};switch(J){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return hq(_,$)}}var hq=(_,$)=>{let q={type:"integer",format:"unix-time"};if($.target==="openApi3")return q;for(let J of _.checks)switch(J.kind){case"min":N(q,"minimum",J.value,J.message,$);break;case"max":N(q,"maximum",J.value,J.message,$);break}return q};var e_=b(()=>{p()});function Z$(_,$){return{...S(_.innerType._def,$),default:_.defaultValue()}}var _$=b(()=>{V()});function u$(_,$){return $.effectStrategy==="input"?S(_.schema._def,$):E($)}var $$=b(()=>{V();g()});function p$(_){return{type:"string",enum:Array.from(_.values)}}var q$=()=>{};function i$(_,$){let q=[S(_.left._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),S(_.right._def,{...$,currentPath:[...$.currentPath,"allOf","1"]})].filter((X)=>!!X),J=$.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,W=[];return q.forEach((X)=>{if(yq(X)){if(W.push(...X.allOf),X.unevaluatedProperties===void 0)J=void 0}else{let H=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Y,...Q}=X;H=Q}else J=void 0;W.push(H)}}),W.length?{allOf:W,...J}:void 0}var yq=(_)=>{if("type"in _&&_.type==="string")return!1;return"allOf"in _};var J$=b(()=>{V()});function r$(_,$){let q=typeof _.value;if(q!=="bigint"&&q!=="number"&&q!=="boolean"&&q!=="string")return{type:Array.isArray(_.value)?"array":"object"};if($.target==="openApi3")return{type:q==="bigint"?"integer":q,enum:[_.value]};return{type:q==="bigint"?"integer":q,const:_.value}}var W$=()=>{};function I_(_,$){let q={type:"string"};if(_.checks)for(let J of _.checks)switch(J.kind){case"min":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$);break;case"max":N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"email":switch($.emailStrategy){case"format:email":I(q,"email",J.message,$);break;case"format:idn-email":I(q,"idn-email",J.message,$);break;case"pattern:zod":F(q,k.email,J.message,$);break}break;case"url":I(q,"uri",J.message,$);break;case"uuid":I(q,"uuid",J.message,$);break;case"regex":F(q,J.regex,J.message,$);break;case"cuid":F(q,k.cuid,J.message,$);break;case"cuid2":F(q,k.cuid2,J.message,$);break;case"startsWith":F(q,RegExp(`^${H$(J.value,$)}`),J.message,$);break;case"endsWith":F(q,RegExp(`${H$(J.value,$)}$`),J.message,$);break;case"datetime":I(q,"date-time",J.message,$);break;case"date":I(q,"date",J.message,$);break;case"time":I(q,"time",J.message,$);break;case"duration":I(q,"duration",J.message,$);break;case"length":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$),N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"includes":{F(q,RegExp(H$(J.value,$)),J.message,$);break}case"ip":{if(J.version!=="v6")I(q,"ipv4",J.message,$);if(J.version!=="v4")I(q,"ipv6",J.message,$);break}case"base64url":F(q,k.base64url,J.message,$);break;case"jwt":F(q,k.jwt,J.message,$);break;case"cidr":{if(J.version!=="v6")F(q,k.ipv4Cidr,J.message,$);if(J.version!=="v4")F(q,k.ipv6Cidr,J.message,$);break}case"emoji":F(q,k.emoji(),J.message,$);break;case"ulid":{F(q,k.ulid,J.message,$);break}case"base64":{switch($.base64Strategy){case"format:binary":{I(q,"binary",J.message,$);break}case"contentEncoding:base64":{N(q,"contentEncoding","base64",J.message,$);break}case"pattern:zod":{F(q,k.base64,J.message,$);break}}break}case"nanoid":F(q,k.nanoid,J.message,$);case"toLowerCase":case"toUpperCase":case"trim":break;default:((W)=>{})(J)}return q}function H$(_,$){return $.patternStrategy==="escape"?nq(_):_}function nq(_){let $="";for(let q=0;q<_.length;q++){if(!xq.has(_[q]))$+="\\";$+=_[q]}return $}function I(_,$,q,J){if(_.format||_.anyOf?.some((W)=>W.format)){if(!_.anyOf)_.anyOf=[];if(_.format){if(_.anyOf.push({format:_.format,..._.errorMessage&&J.errorMessages&&{errorMessage:{format:_.errorMessage.format}}}),delete _.format,_.errorMessage){if(delete _.errorMessage.format,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.anyOf.push({format:$,...q&&J.errorMessages&&{errorMessage:{format:q}}})}else N(_,"format",$,q,J)}function F(_,$,q,J){if(_.pattern||_.allOf?.some((W)=>W.pattern)){if(!_.allOf)_.allOf=[];if(_.pattern){if(_.allOf.push({pattern:_.pattern,..._.errorMessage&&J.errorMessages&&{errorMessage:{pattern:_.errorMessage.pattern}}}),delete _.pattern,_.errorMessage){if(delete _.errorMessage.pattern,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.allOf.push({pattern:o$($,J),...q&&J.errorMessages&&{errorMessage:{pattern:q}}})}else N(_,"pattern",o$($,J),q,J)}function o$(_,$){if(!$.applyRegexFlags||!_.flags)return _.source;let q={i:_.flags.includes("i"),m:_.flags.includes("m"),s:_.flags.includes("s")},J=q.i?_.source.toLowerCase():_.source,W="",X=!1,H=!1,Y=!1;for(let Q=0;Q<J.length;Q++){if(X){W+=J[Q],X=!1;continue}if(q.i){if(H){if(J[Q].match(/[a-z]/)){if(Y)W+=J[Q],W+=`${J[Q-2]}-${J[Q]}`.toUpperCase(),Y=!1;else if(J[Q+1]==="-"&&J[Q+2]?.match(/[a-z]/))W+=J[Q],Y=!0;else W+=`${J[Q]}${J[Q].toUpperCase()}`;continue}}else if(J[Q].match(/[a-z]/)){W+=`[${J[Q]}${J[Q].toUpperCase()}]`;continue}}if(q.m){if(J[Q]==="^"){W+=`(^|(?<=[\r
2
+ ]))`;continue}else if(J[Q]==="$"){W+=`($|(?=[\r
3
+ ]))`;continue}}if(q.s&&J[Q]==="."){W+=H?`${J[Q]}\r
4
+ `:`[${J[Q]}\r
5
+ ]`;continue}if(W+=J[Q],J[Q]==="\\")X=!0;else if(H&&J[Q]==="]")H=!1;else if(!H&&J[Q]==="[")H=!0}try{new RegExp(W)}catch{return console.warn(`Could not convert regex pattern at ${$.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),_.source}return W}var X$=void 0,k,xq;var P_=b(()=>{p();k={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(X$===void 0)X$=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return X$},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};xq=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function m_(_,$){if($.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if($.target==="openApi3"&&_.keyType?._def.typeName===M.ZodEnum)return{type:"object",required:_.keyType._def.values,properties:_.keyType._def.values.reduce((J,W)=>({...J,[W]:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"properties",W]})??E($)}),{}),additionalProperties:$.rejectedAdditionalProperties};let q={type:"object",additionalProperties:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]})??$.allowedAdditionalProperties};if($.target==="openApi3")return q;if(_.keyType?._def.typeName===M.ZodString&&_.keyType._def.checks?.length){let{type:J,...W}=I_(_.keyType._def,$);return{...q,propertyNames:W}}else if(_.keyType?._def.typeName===M.ZodEnum)return{...q,propertyNames:{enum:_.keyType._def.values}};else if(_.keyType?._def.typeName===M.ZodBranded&&_.keyType._def.type._def.typeName===M.ZodString&&_.keyType._def.type._def.checks?.length){let{type:J,...W}=C_(_.keyType._def,$);return{...q,propertyNames:W}}return q}var l_=b(()=>{F_();V();P_();k_();g()});function c$(_,$){if($.mapStrategy==="record")return m_(_,$);let q=S(_.keyType._def,{...$,currentPath:[...$.currentPath,"items","items","0"]})||E($),J=S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items","items","1"]})||E($);return{type:"array",maxItems:125,items:{type:"array",items:[q,J],minItems:2,maxItems:2}}}var Q$=b(()=>{V();l_();g()});function d$(_){let $=_.values,J=Object.keys(_.values).filter((X)=>{return typeof $[$[X]]!=="number"}).map((X)=>$[X]),W=Array.from(new Set(J.map((X)=>typeof X)));return{type:W.length===1?W[0]==="string"?"string":"number":["string","number"],enum:J}}var Y$=()=>{};function t$(_){return _.target==="openAi"?void 0:{not:E({..._,currentPath:[..._.currentPath,"not"]})}}var G$=b(()=>{g()});function a$(_){return _.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var M$=()=>{};function e$(_,$){if($.target==="openApi3")return s$(_,$);let q=_.options instanceof Map?Array.from(_.options.values()):_.options;if(q.every((J)=>(J._def.typeName in z_)&&(!J._def.checks||!J._def.checks.length))){let J=q.reduce((W,X)=>{let H=z_[X._def.typeName];return H&&!W.includes(H)?[...W,H]:W},[]);return{type:J.length>1?J:J[0]}}else if(q.every((J)=>J._def.typeName==="ZodLiteral"&&!J.description)){let J=q.reduce((W,X)=>{let H=typeof X._def.value;switch(H){case"string":case"number":case"boolean":return[...W,H];case"bigint":return[...W,"integer"];case"object":if(X._def.value===null)return[...W,"null"];case"symbol":case"undefined":case"function":default:return W}},[]);if(J.length===q.length){let W=J.filter((X,H,Y)=>Y.indexOf(X)===H);return{type:W.length>1?W:W[0],enum:q.reduce((X,H)=>{return X.includes(H._def.value)?X:[...X,H._def.value]},[])}}}else if(q.every((J)=>J._def.typeName==="ZodEnum"))return{type:"string",enum:q.reduce((J,W)=>[...J,...W._def.values.filter((X)=>!J.includes(X))],[])};return s$(_,$)}var z_,s$=(_,$)=>{let q=(_.options instanceof Map?Array.from(_.options.values()):_.options).map((J,W)=>S(J._def,{...$,currentPath:[...$.currentPath,"anyOf",`${W}`]})).filter((J)=>!!J&&(!$.strictUnions||typeof J==="object"&&Object.keys(J).length>0));return q.length?{anyOf:q}:void 0};var T_=b(()=>{V();z_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function _q(_,$){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(_.innerType._def.typeName)&&(!_.innerType._def.checks||!_.innerType._def.checks.length)){if($.target==="openApi3")return{type:z_[_.innerType._def.typeName],nullable:!0};return{type:[z_[_.innerType._def.typeName],"null"]}}if($.target==="openApi3"){let J=S(_.innerType._def,{...$,currentPath:[...$.currentPath]});if(J&&"$ref"in J)return{allOf:[J],nullable:!0};return J&&{...J,nullable:!0}}let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","0"]});return q&&{anyOf:[q,{type:"null"}]}}var B$=b(()=>{V();T_()});function $q(_,$){let q={type:"number"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"int":q.type="integer",o_(q,"type",J.message,$);break;case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var D$=b(()=>{p()});function qq(_,$){let q=$.target==="openAi",J={type:"object",properties:{}},W=[],X=_.shape();for(let Y in X){let Q=X[Y];if(Q===void 0||Q._def===void 0)continue;let v=uq(Q);if(v&&q){if(Q._def.typeName==="ZodOptional")Q=Q._def.innerType;if(!Q.isNullable())Q=Q.nullable();v=!1}let R=S(Q._def,{...$,currentPath:[...$.currentPath,"properties",Y],propertyPath:[...$.currentPath,"properties",Y]});if(R===void 0)continue;if(J.properties[Y]=R,!v)W.push(Y)}if(W.length)J.required=W;let H=Zq(_,$);if(H!==void 0)J.additionalProperties=H;return J}function Zq(_,$){if(_.catchall._def.typeName!=="ZodNever")return S(_.catchall._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]});switch(_.unknownKeys){case"passthrough":return $.allowedAdditionalProperties;case"strict":return $.rejectedAdditionalProperties;case"strip":return $.removeAdditionalStrategy==="strict"?$.allowedAdditionalProperties:$.rejectedAdditionalProperties}}function uq(_){try{return _.isOptional()}catch{return!0}}var w$=b(()=>{V()});var Jq=(_,$)=>{if($.currentPath.toString()===$.propertyPath?.toString())return S(_.innerType._def,$);let q=S(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","1"]});return q?{anyOf:[{not:E($)},q]}:E($)};var b$=b(()=>{V();g()});var Wq=(_,$)=>{if($.pipeStrategy==="input")return S(_.in._def,$);else if($.pipeStrategy==="output")return S(_.out._def,$);let q=S(_.in._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),J=S(_.out._def,{...$,currentPath:[...$.currentPath,"allOf",q?"1":"0"]});return{allOf:[q,J].filter((W)=>W!==void 0)}};var z$=b(()=>{V()});function Xq(_,$){return S(_.type._def,$)}var S$=b(()=>{V()});function Hq(_,$){let J={type:"array",uniqueItems:!0,items:S(_.valueType._def,{...$,currentPath:[...$.currentPath,"items"]})};if(_.minSize)N(J,"minItems",_.minSize.value,_.minSize.message,$);if(_.maxSize)N(J,"maxItems",_.maxSize.value,_.maxSize.message,$);return J}var v$=b(()=>{p();V()});function Qq(_,$){if(_.rest)return{type:"array",minItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[]),additionalItems:S(_.rest._def,{...$,currentPath:[...$.currentPath,"additionalItems"]})};else return{type:"array",minItems:_.items.length,maxItems:_.items.length,items:_.items.map((q,J)=>S(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[])}}var j$=b(()=>{V()});function Yq(_){return{not:E(_)}}var A$=b(()=>{g()});function Gq(_){return E(_)}var O$=b(()=>{g()});var Mq=(_,$)=>{return S(_.innerType._def,$)};var N$=b(()=>{V()});var Bq=(_,$,q)=>{switch($){case M.ZodString:return I_(_,q);case M.ZodNumber:return $q(_,q);case M.ZodObject:return qq(_,q);case M.ZodBigInt:return y$(_,q);case M.ZodBoolean:return x$();case M.ZodDate:return s_(_,q);case M.ZodUndefined:return Yq(q);case M.ZodNull:return a$(q);case M.ZodArray:return h$(_,q);case M.ZodUnion:case M.ZodDiscriminatedUnion:return e$(_,q);case M.ZodIntersection:return i$(_,q);case M.ZodTuple:return Qq(_,q);case M.ZodRecord:return m_(_,q);case M.ZodLiteral:return r$(_,q);case M.ZodEnum:return p$(_);case M.ZodNativeEnum:return d$(_);case M.ZodNullable:return _q(_,q);case M.ZodOptional:return Jq(_,q);case M.ZodMap:return c$(_,q);case M.ZodSet:return Hq(_,q);case M.ZodLazy:return()=>_.getter()._def;case M.ZodPromise:return Xq(_,q);case M.ZodNaN:case M.ZodNever:return t$(q);case M.ZodEffects:return u$(_,q);case M.ZodAny:return E(q);case M.ZodUnknown:return Gq(q);case M.ZodDefault:return Z$(_,q);case M.ZodBranded:return C_(_,q);case M.ZodReadonly:return Mq(_,q);case M.ZodCatch:return n$(_,q);case M.ZodPipeline:return Wq(_,q);case M.ZodFunction:case M.ZodVoid:case M.ZodSymbol:return;default:return((J)=>{return})($)}};var E$=b(()=>{F_();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();l_();v$();P_();j$();A$();T_();O$();N$()});function S(_,$,q=!1){let J=$.seen.get(_);if($.override){let Y=$.override?.(_,$,J,q);if(Y!==K$)return Y}if(J&&!q){let Y=pq(J,$);if(Y!==void 0)return Y}let W={def:_,path:$.currentPath,jsonSchema:void 0};$.seen.set(_,W);let X=Bq(_,_.typeName,$),H=typeof X==="function"?S(X(),$):X;if(H)iq(_,$,H);if($.postProcess){let Y=$.postProcess(H,_,$);return W.jsonSchema=H,Y}return W.jsonSchema=H,H}var pq=(_,$)=>{switch($.$refStrategy){case"root":return{$ref:_.path.join("/")};case"relative":return{$ref:f_($.currentPath,_.path)};case"none":case"seen":{if(_.path.length<$.currentPath.length&&_.path.every((q,J)=>$.currentPath[J]===q))return console.warn(`Recursive reference detected at ${$.currentPath.join("/")}! Defaulting to any`),E($);return $.$refStrategy==="seen"?E($):void 0}}},iq=(_,$,q)=>{if(_.description){if(q.description=_.description,$.markdownDescription)q.markdownDescription=_.description}return q};var V=b(()=>{S_();E$();g_();g()});var Dq=(_)=>{let $=F$(_),q=$.name!==void 0?[...$.basePath,$.definitionPath,$.name]:$.basePath;return{...$,flags:{hasReferencedOpenAiAnyType:!1},currentPath:q,propertyPath:void 0,seen:new Map(Object.entries($.definitions).map(([J,W])=>[W._def,{def:W._def,path:[...$.basePath,$.definitionPath,J],jsonSchema:void 0}]))}};var U$=b(()=>{S_()});var rq=(_,$)=>{let q=Dq($),J=typeof $==="object"&&$.definitions?Object.entries($.definitions).reduce((Q,[v,R])=>({...Q,[v]:S(R._def,{...q,currentPath:[...q.basePath,q.definitionPath,v]},!0)??E(q)}),{}):void 0,W=typeof $==="string"?$:$?.nameStrategy==="title"?void 0:$?.name,X=S(_._def,W===void 0?q:{...q,currentPath:[...q.basePath,q.definitionPath,W]},!1)??E(q),H=typeof $==="object"&&$.name!==void 0&&$.nameStrategy==="title"?$.name:void 0;if(H!==void 0)X.title=H;if(q.flags.hasReferencedOpenAiAnyType){if(!J)J={};if(!J[q.openAiAnyTypeName])J[q.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:q.$refStrategy==="relative"?"1":[...q.basePath,q.definitionPath,q.openAiAnyTypeName].join("/")}}}let Y=W===void 0?J?{...X,[q.definitionPath]:J}:X:{$ref:[...q.$refStrategy==="relative"?[]:q.basePath,q.definitionPath,W].join("/"),[q.definitionPath]:{...J,[W]:X}};if(q.target==="jsonSchema7")Y.$schema="http://json-schema.org/draft-07/schema#";else if(q.target==="jsonSchema2019-09"||q.target==="openAi")Y.$schema="https://json-schema.org/draft/2019-09/schema#";if(q.target==="openAi"&&(("anyOf"in Y)||("oneOf"in Y)||("allOf"in Y)||("type"in Y)&&Array.isArray(Y.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return Y};var V$=b(()=>{V();U$();g()});var wq=()=>{};var oq=b(()=>{V$();S_();U$();p();g_();V();wq();g();c_();d_();t_();k_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();N$();l_();v$();P_();j$();A$();T_();O$();E$();V$()});
6
+ export{rq as UY,oq as VY};
@@ -0,0 +1,2 @@
1
+ import{gn as Z,ln as G}from"./cli-0.5.10-8jjacn05.mjs";import{kca as X,sca as R}from"./cli-0.5.10-2fqes7gy.mjs";import{Cfa as C,Gfa as M,Qfa as U,Tfa as O,tfa as v,ufa as B,yfa as A}from"./cli-0.5.10-p4wmnjhz.mjs";import{Lna as b}from"./cli-0.5.10-1sd567wn.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
+ export{o as qc,c as rc,p as sc,d as tc,g as uc,w as vc};
@@ -0,0 +1,2 @@
1
+ import{JX as y,LV as m,RW as k,SW as FQ,cX as p,eX as u,kX as UQ,yX as h}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as S,nZ as $,oZ as j}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as f}from"./cli-0.5.10-9ek8f4vk.mjs";import{xca as GQ,yca as PQ}from"./cli-0.5.10-6zwxmza2.mjs";import{Hna as W,Lna as P}from"./cli-0.5.10-1sd567wn.mjs";function d(){let X=c.useContext(k);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var c;var a=P(()=>{FQ();c=W(f(),1)});function o(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var s=()=>{};function r(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function IQ(X){if(X===" ")return[r("space")];return X.trim().split(/\s+/).map(r)}function BQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=EQ(X.key);return Q.push(V),Q.join("+")}function EQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function b(X){return X.map(BQ).join(" ")}function jQ(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:IQ(Z),action:Y,context:V.context});return Q}var i=()=>{};function n(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?b(Z.chord):void 0}function zQ(X,Q){let V=o(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function t(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function NQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function SQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!t(Z,Y))return!1}return!0}function e(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=zQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),I=Z.filter((U)=>q.has(U.context)),F=new Map;for(let U of I)if(U.chord.length>G.length&&NQ(G,U))F.set(b(U.chord),U.action);let B=!1;for(let U of F.values())if(U!==null){B=!0;break}if(B)return{type:"chord_started",pending:G};let H;for(let U of I)if(SQ(G,U))H=U;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var QQ=P(()=>{s();i()});function $Q(X){let Q=x.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,handlerRegistryRef:F,children:B}=X,H;if(Q[0]!==V)H=(L,O)=>n(L,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let U=H,_;if(Q[2]!==F)_=(L)=>{let O=F.current;if(!O)return _Q;if(!O.has(L.action))O.set(L.action,new Set);return O.get(L.action).add(L),()=>{let D=O.get(L.action);if(D){if(D.delete(L),D.size===0)O.delete(L.action)}}},Q[2]=F,Q[3]=_;else _=Q[3];let v=_,A;if(Q[4]!==G||Q[5]!==F)A=(L)=>{let O=F.current;if(!O)return!1;let D=O.get(L);if(!D||D.size===0)return!1;for(let g of D)if(G.has(g.context))return g.handler(),!0;return!1},Q[4]=G,Q[5]=F,Q[6]=A;else A=Q[6];let R=A,z;if(Q[7]!==V||Q[8]!==Z)z=(L,O,D)=>e(L,O,D,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=z;else z=Q[9];let w;if(Q[10]!==G||Q[11]!==V||Q[12]!==U||Q[13]!==R||Q[14]!==Y||Q[15]!==q||Q[16]!==v||Q[17]!==J||Q[18]!==z||Q[19]!==I)w={resolve:z,setPendingChord:J,getDisplayText:U,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:I,registerHandler:v,invokeAction:R},Q[10]=G,Q[11]=V,Q[12]=U,Q[13]=R,Q[14]=Y,Q[15]=q,Q[16]=v,Q[17]=J,Q[18]=z,Q[19]=I,Q[20]=w;else w=Q[20];let N=w,E;if(Q[21]!==B||Q[22]!==N)E=S(VQ.Provider,{value:N,children:B}),Q[21]=B,Q[22]=N,Q[23]=E;else E=Q[23];return E}function _Q(){}function C(){return T.useContext(VQ)}function pQ(X,Q){let V=x.c(5),Z=Q===void 0?!0:Q,Y=C(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];T.useLayoutEffect(J,G)}var x,T,VQ;var XQ=P(()=>{QQ();j();x=W(m(),1),T=W(f(),1),VQ=T.createContext(null)});function lQ(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=C();M.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=M.useCallback((q,I,F)=>{if(!J)return;let B=[...J.activeContexts,Z,"Global"],H=[...new Set(B)],U=J.resolve(q,I,H);switch(U.type){case"match":if(J.setPendingChord(null),U.action===X){if(Q()!==!1)F.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(U.pending),F.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),F.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);h(G,{isActive:Y})}function gQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=C();M.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,I]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:I}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=M.useCallback((G,q,I)=>{if(!Y)return;let F=[...Y.activeContexts,V,"Global"],B=[...new Set(F)],H=Y.resolve(G,q,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let U=X[H.action];if(U&&U()!==!1)I.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),I.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),I.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);h(J,{isActive:Z})}var M;var DQ=P(()=>{y();XQ();M=W(f(),1)});function ZQ(){return K.useContext(l)!==null}function cQ(X){let Q=YQ.c(3),V=K.useContext(l),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function dQ(){return K.useContext(l)?.scrollRef??null}var YQ,K,l;var JQ=P(()=>{YQ=W(m(),1),K=W(f(),1),l=K.createContext(null)});function HQ(X){let Q=qQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,I=J===void 0?0:J,{columns:F}=d(),B=Math.max(0,(V??F)-I);if(G){let v=GQ(G)+2,A=Math.max(0,B-v),R=Math.floor(A/2),z=A-R,w=!Z,N;if(Q[0]!==q||Q[1]!==R)N=q.repeat(R),Q[0]=q,Q[1]=R,Q[2]=N;else N=Q[2];let E;if(Q[3]!==G)E=S(u,{dimColor:!0,children:S(UQ,{children:G})}),Q[3]=G,Q[4]=E;else E=Q[4];let L;if(Q[5]!==q||Q[6]!==z)L=q.repeat(z),Q[5]=q,Q[6]=z,Q[7]=L;else L=Q[7];let O;if(Q[8]!==Z||Q[9]!==w||Q[10]!==N||Q[11]!==E||Q[12]!==L)O=$(u,{color:Z,dimColor:w,children:[N," ",E," ",L]}),Q[8]=Z,Q[9]=w,Q[10]=N,Q[11]=E,Q[12]=L,Q[13]=O;else O=Q[13];return O}let H=!Z,U;if(Q[14]!==q||Q[15]!==B)U=q.repeat(B),Q[14]=q,Q[15]=B,Q[16]=U;else U=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==U)_=S(u,{color:Z,dimColor:H,children:U}),Q[17]=Z,Q[18]=H,Q[19]=U,Q[20]=_;else _=Q[20];return _}var qQ;var LQ=P(()=>{a();PQ();y();j();qQ=W(m(),1)});function VV(X){let Q=OQ.c(9),{children:V,color:Z}=X;if(ZQ()){let q;if(Q[0]!==V)q=S(p,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(HQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(p,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=$(p,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var OQ;var RQ=P(()=>{JQ();y();LQ();j();OQ=W(m(),1)});
2
+ export{d as TU,a as UU,r as VU,IQ as WU,b as XU,jQ as YU,i as ZU,n as _U,e as $U,QQ as aV,$Q as bV,C as cV,pQ as dV,XQ as eV,lQ as fV,gQ as gV,DQ as hV,l as iV,ZQ as jV,cQ as kV,dQ as lV,JQ as mV,HQ as nV,LQ as oV,VV as pV,RQ as qV};
@@ -0,0 +1,2 @@
1
+ import{Lna as t}from"./cli-0.5.10-1sd567wn.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.25.2",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.16.1",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0"}}}}})});
2
+ export{n as Sg,a as Tg};
@@ -0,0 +1,58 @@
1
+ import{DN as a,Kh as $,Nh as m,XM as F,Xu as U,Zu as h,jA as A,kA as p,kN as L,uy as k,vy as I}from"./cli-0.5.10-8jjacn05.mjs";import{RZ as O,SZ as f}from"./cli-0.5.10-xyscak5q.mjs";import{Cfa as S,Gfa as E}from"./cli-0.5.10-p4wmnjhz.mjs";import{nga as b,pga as T}from"./cli-0.5.10-8wqagr68.mjs";import{Fga as C,sga as y}from"./cli-0.5.10-jsnrvena.mjs";import{Lna as N}from"./cli-0.5.10-1sd567wn.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
+ export{Xw as Lg,Zw as Mg,s as Ng};
@@ -0,0 +1,2 @@
1
+ import{LV as O}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as X,oZ as Q}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as b}from"./cli-0.5.10-9ek8f4vk.mjs";import{Eaa as W,Raa as P}from"./cli-0.5.10-2fqes7gy.mjs";import{Hna as U}from"./cli-0.5.10-1sd567wn.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as fa,C as ga};
@@ -0,0 +1,2 @@
1
+ import{yJ as Q,zJ as $}from"./cli-0.5.10-8jjacn05.mjs";import{Sga as V,Tga as P,Uha as W,Vha as E}from"./cli-0.5.10-atkghjt0.mjs";import{Lna as L}from"./cli-0.5.10-1sd567wn.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as ac,C as bc};
@@ -0,0 +1,2 @@
1
+ import{Lna as B}from"./cli-0.5.10-1sd567wn.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as wh,C as xh};
@@ -0,0 +1,2 @@
1
+ import{DN as R,Gk as W,Jk as P,Oi as Q,Pi as I,WM as Y}from"./cli-0.5.10-8jjacn05.mjs";import{vca as B,wca as f}from"./cli-0.5.10-6zwxmza2.mjs";import{Dea as F,gea as H,hea as J}from"./cli-0.5.10-d609fanf.mjs";import{ama as $,jia as v}from"./cli-0.5.10-atkghjt0.mjs";import{Lna as Z}from"./cli-0.5.10-1sd567wn.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as Dd,V as Ed,X as Fd,r as Gd,w as Hd,T as Id,G as Jd};
@@ -0,0 +1,8 @@
1
+ import{ob as b}from"./cli-0.5.10-vsgznv7p.mjs";import{lf as zK,qf as dK}from"./cli-0.5.10-1gafefn2.mjs";import{Bu as Cz,GI as ez,II as cK,Iu as xK,RL as Ez,ZG as wz,_L as FK,bl as rz,dl as bK,en as M,fH as MK,fn as vK,hn as iz,jG as hK,kG as mK,ln as SK,mQ as j,ny as oz,oQ as uK,py as sz,qI as tz,qy as fK,rI as pK}from"./cli-0.5.10-8jjacn05.mjs";import{AV as GK,tV as Kz,yV as AK,zV as Qz}from"./cli-0.5.10-9xc8zhxg.mjs";import{F3 as Tz,H3 as Mz,J3 as R,T1 as Uz,T3 as xz,U1 as lz,_1 as Dz,b0 as U,d2 as I,f2 as _z,g0 as O,k2 as k,v2 as nz,z2 as jK}from"./cli-0.5.10-xyscak5q.mjs";import{n4 as G,o4 as _K}from"./cli-0.5.10-rzshk2m6.mjs";import{$6 as cz,$8 as zz,B$ as Jz,Daa as Wz,Eaa as Bz,F8 as t,Faa as az,H$ as _,K8 as LK,Q8 as e,Raa as L,U8 as UK,V6 as $z,X6 as TK,b9 as DK,kca as V,oaa as gz,p6 as Zz,p7 as dz,q6 as RK,s$ as q,sca as A,u$ as H,uaa as $,w$ as uz,w7 as EK,x$ as S,x6 as T,xaa as W,y$ as kz,z6 as CK}from"./cli-0.5.10-2fqes7gy.mjs";import{Uca as E,Zca as kK}from"./cli-0.5.10-6zwxmza2.mjs";import{$da as PK,_da as pz}from"./cli-0.5.10-d609fanf.mjs";import{Oea as Z,Qea as N}from"./cli-0.5.10-y9qd4psg.mjs";import{Cfa as o,Gfa as BK,wfa as r,yfa as WK,zfa as i}from"./cli-0.5.10-p4wmnjhz.mjs";import{Yfa as s,Zfa as NK}from"./cli-0.5.10-xhy1yx61.mjs";import{iga as y,kga as n,pga as VK}from"./cli-0.5.10-8wqagr68.mjs";import{Dga as mz,Fga as yK,uga as C,vga as v,xga as hz}from"./cli-0.5.10-jsnrvena.mjs";import{Ika as l,Yja as Sz,aia as F,ama as w,eia as JK,ika as fz,pka as a,uja as Iz,vja as bz,wja as Oz,yja as vz}from"./cli-0.5.10-atkghjt0.mjs";import{Ina as wK}from"./cli-0.5.10-1sd567wn.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
+ `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
+ `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
+ `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
+ `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
+ `);return[K,Q].filter(Boolean).join(`
7
+ `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
+ export{ZQ as M,$Q as N,qQ as O,HQ as P,nX as Q,rX as R,iX as S,oX as T,sX as U,tX as V,eX as W,zY as X,KY as Y,QY as Z};
@@ -0,0 +1,2 @@
1
+ import{RS as M,TS as X}from"./cli-0.5.10-bhb8rt9y.mjs";import{H$ as W,L8 as B,U8 as V,s$ as K,y$ as L}from"./cli-0.5.10-2fqes7gy.mjs";import{Lna as Q}from"./cli-0.5.10-1sd567wn.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as Mb,Y as Nb};
@@ -0,0 +1,2 @@
1
+ import{g7 as Q,w7 as _}from"./cli-0.5.10-2fqes7gy.mjs";import{$da as X,_da as I}from"./cli-0.5.10-d609fanf.mjs";import{Qfa as B,Tfa as V}from"./cli-0.5.10-p4wmnjhz.mjs";import{Lna as T}from"./cli-0.5.10-1sd567wn.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
2
+ export{j as X5,P as Y5,Y as Z5,S as _5,O as $5,D as a6,Z as b6};
@@ -0,0 +1,2 @@
1
+ import{Bt as C,Et as X}from"./cli-0.5.10-8jjacn05.mjs";import{pZ as W}from"./cli-0.5.10-9ek8f4vk.mjs";import{T1 as I,d2 as J,k2 as V}from"./cli-0.5.10-xyscak5q.mjs";import{Cda as H,Xda as T}from"./cli-0.5.10-rk7at2tn.mjs";import{Hna as P,Lna as Q}from"./cli-0.5.10-1sd567wn.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
+ export{v as cc,Y as dc};
@@ -0,0 +1,2 @@
1
+ import{Gh as M,HK as O,Hh as W,IK as P,JK as Q,KK as U,NK as X}from"./cli-0.5.10-8jjacn05.mjs";import{Lna as V}from"./cli-0.5.10-1sd567wn.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
+ export{F as tg,$ as ug};
@@ -0,0 +1,2 @@
1
+ import{Lna as l}from"./cli-0.5.10-1sd567wn.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as lZ,E as mZ,a as nZ,c as oZ};
@@ -0,0 +1,2 @@
1
+ import{eh as Vq,fh as fq}from"./cli-0.5.10-4ekf1v4x.mjs";import{TU as Pq,UU as mq,gV as o,hV as pq,jV as Qq,lV as Uq,mV as Hq}from"./cli-0.5.10-dzr8kmx4.mjs";import{JX as Wq,LV as Sq,cX as M,eX as g}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as Z,nZ as F,oZ as Jq}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as _q}from"./cli-0.5.10-9ek8f4vk.mjs";import{xca as s,yca as jq}from"./cli-0.5.10-6zwxmza2.mjs";import{Hna as Lq,Lna as wq}from"./cli-0.5.10-1sd567wn.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
2
+ export{lq as bg,oq as cg,sq as dg,aq as eg,Tq as fg};
@@ -0,0 +1,2 @@
1
+ import{LV as f}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as p,oZ as c}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as M}from"./cli-0.5.10-9ek8f4vk.mjs";import{Hna as o}from"./cli-0.5.10-1sd567wn.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
+ export{a as pb,l as qb};
@@ -0,0 +1,2 @@
1
+ import{af as bG,bf as iG,hf as nG}from"./cli-0.5.10-jhtht51h.mjs";import{$I as o,$J as cG,AJ as s,BJ as sG,Bt as l,Ct as jG,Dt as HG,Et as mG,Fl as vG,JI as LG,KI as WG,MI as lG,Mp as uG,OI as qG,PI as DG,UI as a,YI as kG,YJ as $G,_I as R,aJ as aG,cJ as _G,dK as f,eK as c,fK as r,gK as v,hJ as UG,hK as i,jq as dG,kK as u,oK as rG,qJ as oG,ql as FG,rl as OG,vl as VG,yC as KG,zC as pG}from"./cli-0.5.10-8jjacn05.mjs";import{LV as QJ}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as wG,oZ as PG}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as BG}from"./cli-0.5.10-9ek8f4vk.mjs";import{oca as I,pca as k,sca as fG,t_ as YG,y_ as gG}from"./cli-0.5.10-2fqes7gy.mjs";import{Xda as TG}from"./cli-0.5.10-rk7at2tn.mjs";import{Oea as w,Qea as MG}from"./cli-0.5.10-y9qd4psg.mjs";import{Qfa as zG,Tfa as CG,yfa as NG}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as x,pga as SG}from"./cli-0.5.10-8wqagr68.mjs";import{ama as ZG,jia as XG}from"./cli-0.5.10-atkghjt0.mjs";import{Hna as n,Lna as p}from"./cli-0.5.10-1sd567wn.mjs";var GG=p(()=>{NG();TG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((D)=>{let h=new Set(D.plugins.errors.map((H)=>JG(H))),P=B.filter((H)=>!h.has(JG(H)));if(P.length===0)return D;return{...D,plugins:{...D.plugins,errors:[...D.plugins.errors,...P]}}})}function EG(F,B=!1){let D=HG(),h=l((G)=>G.authVersion),P=l((G)=>G.mcp.pluginReconnectKey),H=jG(),K=q.useRef(new Map),N=q.useRef(new Set),S=q.useRef(null);q.useEffect(()=>{},[H]);let{addNotification:T}=KG(),RG=16,d=q.useRef([]),y=q.useRef(null),C=q.useCallback(()=>{y.current=null;let G=d.current;if(G.length===0)return;d.current=[],H((Y)=>{let z=Y.mcp;for(let L of G){let{tools:Q,commands:O,resources:W,...J}=L,V=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,j=YG(J.name),g=z.clients.findIndex((E)=>E.name===J.name)===-1?[...z.clients,J]:z.clients.map((E)=>E.name===J.name?J:E),b=V===void 0?z.tools:[...s(z.tools,(E)=>E.name?.startsWith(j)),...V],m=X===void 0?z.commands:[...s(z.commands,(E)=>_G(E,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:g,tools:b,commands:m,resources:hG}}return{...Y,mcp:z}})},[H]),_=q.useCallback((G)=>{if(d.current.push(G),y.current===null)y.current=setTimeout(C,RG)},[C]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:L})=>{switch(_({...G,tools:Y,commands:z,resources:L}),G.type){case"connected":{if($G(G.client,G.name,H),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){k(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=JJ(Q);k(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=K.current.get(G.name);if(W)clearTimeout(W),K.current.delete(G.name);(async()=>{for(let V=1;V<=A;V++){if(R(G.name)){k(G.name,"Server disabled during reconnection, stopping retry"),K.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:V,maxReconnectAttempts:A});let X=Date.now();try{let j=await v(G.name,G.config),$=Date.now()-X;if(j.client.type==="connected"){k(G.name,`${O} reconnection successful after ${$}ms (attempt ${V})`),K.current.delete(G.name),U(j);return}if(k(G.name,`${O} reconnection attempt ${V} completed with status: ${j.client.type}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),U(j);return}}catch(j){let $=Date.now()-X;if(I(G.name,`${O} reconnection attempt ${V} failed after ${$}ms: ${j}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(eG*Math.pow(2,V-1),GJ);k(G.name,`Scheduling reconnection attempt ${V+1} in ${Z}ms`),await new Promise((j)=>{let $=setTimeout(j,Z);K.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{k(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=f.cache.get(G.name);f.cache.delete(G.name);let O=await f(G),W=O.length;if(Q)Q.then((J)=>{w("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{w("tengu_mcp_list_changed",{type:"tools",newCount:W})});else w("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){I(G.name,`Failed to refresh tools after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{k(G.name,"Received prompts/list_changed notification, refreshing prompts"),w("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),tG?.()}catch(Q){I(G.name,`Failed to refresh prompts after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{k(G.name,"Received resources/list_changed notification, refreshing resources"),w("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){I(G.name,`Failed to refresh resources after list_changed notification: ${x(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),L={...Y,...F};QG(H,z),H((Q)=>{let{stale:O,...W}=UG(Q.mcp,L);for(let X of O){let Z=K.current.get(X.name);if(Z)clearTimeout(Z),K.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,u(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),V=Object.entries(L).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(V.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...V]}}})}G().catch((Y)=>{I("useManageMCPConnections",`Failed to initialize servers as pending: ${x(Y)}`)})},[B,F,H,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else WG(),z=LG();let{servers:L,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(H,Q);let O={...L,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{I("useManageMcpConnections",`Failed to get MCP resources: ${x(Z)}`)});let J={};if(!B){if(J=DG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=qG(J,O);J=Z}if(Object.keys(J).length>0){H((j)=>{let $=new Set(j.mcp.clients.map((b)=>b.name)),g=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,m])=>({name:b,type:R(b)?"disabled":"pending",config:m}));if(g.length===0)return j;return{...j,mcp:{...j.mcp,clients:[...j.mcp.clients,...g]}}});let Z=Object.fromEntries(Object.entries(J).filter(([j])=>!R(j)));i(U,Z).catch((j)=>{I("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${x(j)}`)})}}let V={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(V))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;w("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,H,h,e,P]),q.useEffect(()=>{let G=K.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,C()}},[C]);let yG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=K.current.get(G);if(z)clearTimeout(z),K.current.delete(G);let L=await v(G,Y.config);return U(L),L},[D,U]),AG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((L)=>L.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let L=K.current.get(G);if(L)clearTimeout(L),K.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let L=await v(G,Y.config);U(L)}},[D,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function JJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,tG=null,A=5,eG=1000,GJ=30000;var IG=p(()=>{ZG();rG();vG();iG();sG();MG();aG();CG();ZG();pG();mG();SG();fG();dG();nG();GG();lG();cG();gG();oG();uG();q=n(BG(),1)});function aJ(){let F=M.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function oJ(){let F=M.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function sJ(F){let B=xG.c(6),{children:D,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:H,toggleMcpServer:K}=EG(h,P),N;if(B[0]!==H||B[1]!==K)N={reconnectMcpServer:H,toggleMcpServer:K},B[0]=H,B[1]=K,B[2]=N;else N=B[2];let S=N,T;if(B[3]!==D||B[4]!==S)T=wG(t.Provider,{value:S,children:D}),B[3]=D,B[4]=S,B[5]=T;else T=B[5];return T}var xG,M,t;var XJ=p(()=>{IG();PG();xG=n(QJ(),1),M=n(BG(),1),t=M.createContext(null)});
2
+ export{GG as Xe,aJ as Ye,oJ as Ze,sJ as _e,XJ as $e};
@@ -0,0 +1,2 @@
1
+ import{Lna as M}from"./cli-0.5.10-1sd567wn.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
2
+ export{W as Eea,Q as Fea,K as Gea,X as Hea,Y as Iea,Z as Jea,y as Kea,G as Lea,h as Mea,w as Nea};
@@ -0,0 +1,4 @@
1
+ import{An as G,Dn as a,MB as k,NB as HJ,Ql as R,Rl as BJ,tq as D,uq as hJ}from"./cli-0.5.10-8jjacn05.mjs";import{E3 as $J,T3 as bJ,t3 as ZJ}from"./cli-0.5.10-xyscak5q.mjs";import{H$ as jJ,M7 as C,N7 as GJ,O7 as h,P7 as FJ,Q7 as u,R7 as kJ,s$ as WJ}from"./cli-0.5.10-2fqes7gy.mjs";import{Ada as Y,Bda as r,xda as q,zda as s}from"./cli-0.5.10-xrwj7982.mjs";import{Lda as x,Xda as gJ}from"./cli-0.5.10-rk7at2tn.mjs";import{Dea as yJ,yea as M}from"./cli-0.5.10-d609fanf.mjs";import{afa as o,bfa as CJ,kfa as n,lfa as EJ,qfa as l,rfa as TJ}from"./cli-0.5.10-p4wmnjhz.mjs";import{Iha as c,Jha as OJ,Lla as QJ,Mha as H,Nha as F,Oha as I,Pha as YJ,Qga as g,Qha as P,Rga as zJ,Rha as XJ,Sga as A,Tga as wJ,ama as mJ,cha as f,dha as PJ}from"./cli-0.5.10-atkghjt0.mjs";import{jma as K,kma as DJ}from"./cli-0.5.10-c9z4tdw2.mjs";import{Lna as B}from"./cli-0.5.10-1sd567wn.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as af,_J as bf,JJ as cf,bQ as df,uQ as ef,cJ as ff,iQ as gf,oJ as hf};
@@ -0,0 +1,2 @@
1
+ import{Ama as Y,zma as M}from"./cli-0.5.10-c9z4tdw2.mjs";import{Lna as W}from"./cli-0.5.10-1sd567wn.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
+ export{$ as qga,N as rga,X as sga,_ as tga,j as uga,U as vga,I as wga,S as xga,T as yga,c as zga,L as Aga,w as Bga,z as Cga,O as Dga,x as Ega,k as Fga};
@@ -0,0 +1,15 @@
1
+ import{CY as o,FY as OJ}from"./cli-0.5.10-9h23hhgb.mjs";import{C6 as K,D6 as I,H$ as HJ,Raa as D,g9 as G,i9 as BJ,kca as q,sca as E,uaa as v,x$ as i}from"./cli-0.5.10-2fqes7gy.mjs";import{Oea as A,Qea as XJ}from"./cli-0.5.10-y9qd4psg.mjs";import{Cfa as y,Gfa as F,Qfa as W,Tfa as zJ,tfa as k,ufa as j,yfa as C}from"./cli-0.5.10-p4wmnjhz.mjs";import{_fa as l,jga as O,kga as w,nga as p,pga as R}from"./cli-0.5.10-8wqagr68.mjs";import{Fga as b,sga as H}from"./cli-0.5.10-jsnrvena.mjs";import{Lna as M}from"./cli-0.5.10-1sd567wn.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
2
+ exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
3
+ `)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
4
+ `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
+ Error: Windows NPM detected in WSL
6
+
7
+ You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
+ This configuration is not supported for updates.
9
+
10
+ To fix this issue:
11
+ 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
+ 2. Make sure Linux NPM is in your PATH before the Windows version
13
+ 3. Try updating again with 'claude update'
14
+ `),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
15
+ export{DJ as yQ,EJ as zQ,PJ as AQ,fJ as BQ,mJ as CQ,u as DQ,V as EQ,g as FQ,x as GQ,n as HQ,NJ as IQ,nJ as JQ,s as KQ,zQ as LQ,BQ as MQ,HQ as NQ,OQ,e as PQ,SJ as QQ,yQ as RQ,GQ as SQ,_Q as TQ,vQ as UQ,wQ as VQ,MQ as WQ,UJ as XQ};
@@ -0,0 +1,2 @@
1
+ import{J6 as X,N6 as k,a7 as Y,w7 as x}from"./cli-0.5.10-2fqes7gy.mjs";import{Pca as $}from"./cli-0.5.10-6zwxmza2.mjs";import{Lna as Z}from"./cli-0.5.10-1sd567wn.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
+ export{H as zb,M as Ab};
@@ -0,0 +1,2 @@
1
+ import{Cn as _,Dn as S,aI as R,eI as b,hI as w,nI as M,pI as P,uI as m,vI as h,xn as L,yn as D,zI as c,zn as O}from"./cli-0.5.10-8jjacn05.mjs";import{H$ as E,g_ as x,kca as N,o_ as T,s$ as B,sca as j,u$ as A,x$ as C}from"./cli-0.5.10-2fqes7gy.mjs";import{$da as v,_da as U}from"./cli-0.5.10-d609fanf.mjs";import{Qfa as G,Tfa as F}from"./cli-0.5.10-p4wmnjhz.mjs";import{Lna as y}from"./cli-0.5.10-1sd567wn.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
2
+ export{qq as Zd,zq as _d,Jq as $d,Kq as ae,p as be,Qq as ce,Vq as de,a as ee};