@claudiolabs/claudin 1.1.2 → 1.1.4

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 (914) hide show
  1. package/README.md +28 -24
  2. package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +1 -0
  3. package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +7 -0
  11. package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +6 -0
  13. package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +1 -0
  14. package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +1 -0
  18. package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +1 -0
  19. package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +1 -0
  20. package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +1 -0
  28. package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +1 -0
  29. package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +1 -0
  30. package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +1 -0
  31. package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +1 -0
  32. package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +110 -0
  33. package/dist/chunks/agents-1.1.4-w929h9g2.mjs +3 -0
  34. package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +1 -0
  35. package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +1 -0
  36. package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +1 -0
  37. package/dist/chunks/auth-1.1.4-d8jp870f.mjs +1 -0
  38. package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +1 -0
  39. package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +48 -0
  40. package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +1 -0
  42. package/dist/chunks/branch-1.1.4-m28a3gah.mjs +4 -0
  43. package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +1 -0
  48. package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +1 -0
  49. package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +3 -0
  50. package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +1 -0
  51. package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +21 -0
  52. package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +4 -0
  53. package/dist/chunks/caches-1.1.4-smgwny8k.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +1 -0
  55. package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +1 -0
  56. package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +1 -0
  57. package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +1 -0
  58. package/dist/chunks/cli-1.1.4-081g3k6v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +18 -0
  61. package/dist/chunks/cli-1.1.4-0earmzgk.mjs +12 -0
  62. package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +18 -0
  63. package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +2 -0
  64. package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +133 -0
  65. package/dist/chunks/cli-1.1.4-0r232fpm.mjs +2 -0
  66. package/dist/chunks/cli-1.1.4-0smy947g.mjs +2 -0
  67. package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +2 -0
  68. package/dist/chunks/cli-1.1.4-114zcxgj.mjs +2 -0
  69. package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +2 -0
  70. package/dist/chunks/cli-1.1.4-181vbtfh.mjs +2 -0
  71. package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +4 -0
  72. package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +2 -0
  73. package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +2 -0
  74. package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +2 -0
  75. package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +2 -0
  76. package/dist/chunks/cli-1.1.4-31av4ynk.mjs +2 -0
  77. package/dist/chunks/cli-1.1.4-3556r6d1.mjs +2 -0
  78. package/dist/chunks/cli-1.1.4-3d01w53d.mjs +2 -0
  79. package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +2 -0
  80. package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +2 -0
  81. package/dist/chunks/cli-1.1.4-40z19hth.mjs +2 -0
  82. package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +2 -0
  83. package/dist/chunks/cli-1.1.4-4esthaz8.mjs +21 -0
  84. package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +2 -0
  85. package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +3 -0
  86. package/dist/chunks/cli-1.1.4-4yte7brd.mjs +25 -0
  87. package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +2 -0
  88. package/dist/chunks/cli-1.1.4-53fvpymg.mjs +6 -0
  89. package/dist/chunks/cli-1.1.4-56nffz3p.mjs +17 -0
  90. package/dist/chunks/cli-1.1.4-5dc9c513.mjs +3 -0
  91. package/dist/chunks/cli-1.1.4-5ebh6981.mjs +2 -0
  92. package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.4-5hz878ns.mjs +2 -0
  94. package/dist/chunks/cli-1.1.4-64y9aspn.mjs +2 -0
  95. package/dist/chunks/cli-1.1.4-6c3fshef.mjs +202 -0
  96. package/dist/chunks/cli-1.1.4-6c5tryej.mjs +2 -0
  97. package/dist/chunks/cli-1.1.4-6eacj91j.mjs +2 -0
  98. package/dist/chunks/cli-1.1.4-6f472s2j.mjs +2 -0
  99. package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +2 -0
  100. package/dist/chunks/cli-1.1.4-6raycx0k.mjs +2 -0
  101. package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +2 -0
  102. package/dist/chunks/cli-1.1.4-6z69geef.mjs +5649 -0
  103. package/dist/chunks/cli-1.1.4-788c63fn.mjs +7 -0
  104. package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +4 -0
  105. package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +2 -0
  106. package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +2 -0
  107. package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +2 -0
  108. package/dist/chunks/cli-1.1.4-8kx358k9.mjs +2 -0
  109. package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +4 -0
  110. package/dist/chunks/cli-1.1.4-99ept1n4.mjs +2 -0
  111. package/dist/chunks/cli-1.1.4-9cw2608s.mjs +2 -0
  112. package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +2 -0
  113. package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +2 -0
  114. package/dist/chunks/cli-1.1.4-9x9a885k.mjs +17 -0
  115. package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +2 -0
  116. package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +24 -0
  117. package/dist/chunks/cli-1.1.4-axp071a4.mjs +2 -0
  118. package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +1 -0
  119. package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +2 -0
  120. package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +2 -0
  121. package/dist/chunks/cli-1.1.4-bxd06hws.mjs +2 -0
  122. package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +2 -0
  123. package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +2 -0
  124. package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +2 -0
  125. package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +2 -0
  126. package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +2 -0
  127. package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +6 -0
  128. package/dist/chunks/cli-1.1.4-cp707f4g.mjs +2 -0
  129. package/dist/chunks/cli-1.1.4-cst0a515.mjs +3 -0
  130. package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +2 -0
  131. package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +2 -0
  132. package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +2 -0
  133. package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +2 -0
  134. package/dist/chunks/cli-1.1.4-da50kprz.mjs +2 -0
  135. package/dist/chunks/cli-1.1.4-dapq2czd.mjs +3 -0
  136. package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +3 -0
  137. package/dist/chunks/cli-1.1.4-dwez6b01.mjs +2 -0
  138. package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +4 -0
  139. package/dist/chunks/cli-1.1.4-edegax48.mjs +2 -0
  140. package/dist/chunks/cli-1.1.4-ekbns70t.mjs +2 -0
  141. package/dist/chunks/cli-1.1.4-esw78wsd.mjs +2 -0
  142. package/dist/chunks/cli-1.1.4-etajychz.mjs +2 -0
  143. package/dist/chunks/cli-1.1.4-evye603x.mjs +5 -0
  144. package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +24 -0
  145. package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +2 -0
  146. package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +2 -0
  147. package/dist/chunks/cli-1.1.4-fa18654s.mjs +2 -0
  148. package/dist/chunks/cli-1.1.4-fap2565a.mjs +15 -0
  149. package/dist/chunks/cli-1.1.4-fejb0548.mjs +2 -0
  150. package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +133 -0
  151. package/dist/chunks/cli-1.1.4-fk420f57.mjs +16 -0
  152. package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +9 -0
  153. package/dist/chunks/cli-1.1.4-g6nryz17.mjs +2 -0
  154. package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +2 -0
  155. package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +2 -0
  156. package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +2 -0
  157. package/dist/chunks/cli-1.1.4-gey397p1.mjs +2 -0
  158. package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +20 -0
  160. package/dist/chunks/cli-1.1.4-gpskbg68.mjs +2 -0
  161. package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +18 -0
  162. package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +12 -0
  163. package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +58 -0
  164. package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +2 -0
  165. package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +2 -0
  166. package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +25 -0
  167. package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +2 -0
  168. package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +12 -0
  169. package/dist/chunks/cli-1.1.4-hzx821eq.mjs +4 -0
  170. package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +2 -0
  171. package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +2 -0
  173. package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +2 -0
  174. package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +2 -0
  175. package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +24 -0
  176. package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +2 -0
  177. package/dist/chunks/cli-1.1.4-jscqx4px.mjs +2 -0
  178. package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +9 -0
  179. package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +2 -0
  180. package/dist/chunks/cli-1.1.4-kcm529kx.mjs +2 -0
  181. package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +2 -0
  182. package/dist/chunks/cli-1.1.4-m312ygm6.mjs +2 -0
  183. package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +2 -0
  184. package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +2 -0
  185. package/dist/chunks/cli-1.1.4-memqhcjv.mjs +2 -0
  186. package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +50 -0
  187. package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +2 -0
  188. package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +2 -0
  189. package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +3 -0
  190. package/dist/chunks/cli-1.1.4-my1g33fn.mjs +3 -0
  191. package/dist/chunks/cli-1.1.4-mzzr964a.mjs +67 -0
  192. package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +2 -0
  193. package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +2 -0
  194. package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +59 -0
  195. package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +5 -0
  196. package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +2 -0
  197. package/dist/chunks/cli-1.1.4-p2223zcm.mjs +2 -0
  198. package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +6 -0
  199. package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +2 -0
  200. package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +8 -0
  201. package/dist/chunks/cli-1.1.4-phjb22vy.mjs +2 -0
  202. package/dist/chunks/cli-1.1.4-phv78vpk.mjs +2 -0
  203. package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +15 -0
  204. package/dist/chunks/cli-1.1.4-q0acv376.mjs +3 -0
  205. package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.4-qe35eyha.mjs +6 -0
  207. package/dist/chunks/cli-1.1.4-qecgken2.mjs +2 -0
  208. package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +2 -0
  209. package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +2 -0
  210. package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +4 -0
  211. package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +2 -0
  212. package/dist/chunks/cli-1.1.4-rhexcyth.mjs +2 -0
  213. package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +42 -0
  214. package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +2 -0
  215. package/dist/chunks/cli-1.1.4-rv3se129.mjs +2 -0
  216. package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +2 -0
  217. package/dist/chunks/cli-1.1.4-s26ny46b.mjs +4 -0
  218. package/dist/chunks/cli-1.1.4-scm26s6m.mjs +34 -0
  219. package/dist/chunks/cli-1.1.4-shrznr3s.mjs +2 -0
  220. package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +6 -0
  221. package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +4 -0
  222. package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +2 -0
  223. package/dist/chunks/cli-1.1.4-te2372tc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +2 -0
  227. package/dist/chunks/cli-1.1.4-v85q5z49.mjs +3 -0
  228. package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +4 -0
  229. package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +2 -0
  230. package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +2 -0
  231. package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +2 -0
  232. package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +39 -0
  234. package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +4 -0
  235. package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +2 -0
  236. package/dist/chunks/cli-1.1.4-vye1xark.mjs +2 -0
  237. package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +2 -0
  238. package/dist/chunks/cli-1.1.4-w11nd4na.mjs +2 -0
  239. package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +2 -0
  240. package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +2 -0
  242. package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +2 -0
  243. package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +4 -0
  244. package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +3 -0
  245. package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +2 -0
  246. package/dist/chunks/cli-1.1.4-x8m7spde.mjs +2 -0
  247. package/dist/chunks/cli-1.1.4-x90d3r95.mjs +2 -0
  248. package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +45 -0
  249. package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +2 -0
  250. package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +2 -0
  251. package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +2 -0
  252. package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +2 -0
  253. package/dist/chunks/cli-1.1.4-yprszvr2.mjs +2 -0
  254. package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +2 -0
  255. package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +2 -0
  256. package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +12 -0
  257. package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +15 -0
  258. package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +2 -0
  259. package/dist/chunks/cli-1.1.4-zc29khqe.mjs +3 -0
  260. package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +3 -0
  261. package/dist/chunks/client-1.1.4-pb5ebapt.mjs +1 -0
  262. package/dist/chunks/color-1.1.4-f1seyygj.mjs +1 -0
  263. package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +3 -0
  264. package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +1 -0
  265. package/dist/chunks/config-1.1.4-jb46a3qp.mjs +1 -0
  266. package/dist/chunks/constants-1.1.4-cspjb06k.mjs +1 -0
  267. package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +1 -0
  269. package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +1 -0
  271. package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +9 -0
  272. package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +1 -0
  274. package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +1 -0
  275. package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +1446 -0
  277. package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +1 -0
  279. package/dist/chunks/detection-1.1.4-knvchyz7.mjs +1 -0
  280. package/dist/chunks/diff-1.1.4-9k603anv.mjs +1 -0
  281. package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +1 -0
  284. package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +13 -0
  285. package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +1 -0
  287. package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +1 -0
  289. package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +1 -0
  290. package/dist/chunks/errors-1.1.4-k81rbfst.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +1 -0
  292. package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +1 -0
  293. package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +1 -0
  294. package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +1 -0
  295. package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +2 -0
  296. package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +1 -0
  297. package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +1 -0
  298. package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +1 -0
  299. package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +14 -0
  300. package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +1 -0
  301. package/dist/chunks/git-1.1.4-ress16mq.mjs +1 -0
  302. package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +1 -0
  303. package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +4 -0
  304. package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +1 -0
  305. package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +1 -0
  306. package/dist/chunks/headless-1.1.4-833q6qkz.mjs +2 -0
  307. package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +6 -0
  308. package/dist/chunks/help-1.1.4-35bcy608.mjs +1 -0
  309. package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +3 -0
  310. package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +1 -0
  311. package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +79 -0
  312. package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +3 -0
  313. package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +1 -0
  314. package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +1 -0
  315. package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +1 -0
  316. package/dist/chunks/index-1.1.4-0tamkcjt.mjs +1 -0
  317. package/dist/chunks/index-1.1.4-2czk0cj2.mjs +2 -0
  318. package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +1 -0
  319. package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +1 -0
  320. package/dist/chunks/index-1.1.4-6gmnecfx.mjs +1 -0
  321. package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +1 -0
  322. package/dist/chunks/index-1.1.4-9yayje25.mjs +1 -0
  323. package/dist/chunks/index-1.1.4-ekp3k254.mjs +1 -0
  324. package/dist/chunks/index-1.1.4-g4bsry7f.mjs +1 -0
  325. package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +1 -0
  326. package/dist/chunks/index-1.1.4-jk66219f.mjs +30 -0
  327. package/dist/chunks/index-1.1.4-m5859ars.mjs +5 -0
  328. package/dist/chunks/index-1.1.4-m5kxdznq.mjs +1 -0
  329. package/dist/chunks/index-1.1.4-mr07jhdc.mjs +1 -0
  330. package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +17 -0
  331. package/dist/chunks/index-1.1.4-nx0c7851.mjs +9 -0
  332. package/dist/chunks/index-1.1.4-p4az8jd4.mjs +9 -0
  333. package/dist/chunks/index-1.1.4-s48qa1fv.mjs +1 -0
  334. package/dist/chunks/index-1.1.4-svjv72c1.mjs +1 -0
  335. package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +1 -0
  336. package/dist/chunks/index-1.1.4-v1z11db7.mjs +1 -0
  337. package/dist/chunks/index-1.1.4-wkgybs2k.mjs +2 -0
  338. package/dist/chunks/init-1.1.4-gggf2npg.mjs +1 -0
  339. package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +1 -0
  340. package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +1 -0
  341. package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +870 -0
  342. package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +1 -0
  343. package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +149 -0
  344. package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +1 -0
  345. package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +1 -0
  346. package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +1 -0
  347. package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +2 -0
  348. package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +2 -0
  349. package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +1 -0
  350. package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +1 -0
  352. package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +1 -0
  353. package/dist/chunks/log-1.1.4-2xexxfy0.mjs +1 -0
  354. package/dist/chunks/main-1.1.4-wapb45da.mjs +1 -0
  355. package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +4 -0
  358. package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +17 -0
  359. package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +1 -0
  360. package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +72 -0
  361. package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +2 -0
  362. package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +1 -0
  363. package/dist/chunks/node-1.1.4-zfc18psp.mjs +12 -0
  364. package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +1 -0
  365. package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +14 -0
  366. package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +1 -0
  367. package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +1 -0
  368. package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +1 -0
  369. package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +1 -0
  370. package/dist/chunks/passes-1.1.4-fps8mejy.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +3 -0
  372. package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +1 -0
  373. package/dist/chunks/plan-1.1.4-66evqh4y.mjs +1 -0
  374. package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +1 -0
  375. package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +29 -0
  376. package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +1 -0
  377. package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +9 -0
  378. package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +2 -0
  379. package/dist/chunks/print-1.1.4-fxrwvp78.mjs +57 -0
  380. package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +1 -0
  381. package/dist/chunks/process-1.1.4-pjq03ry2.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.4-26y972y6.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +13 -0
  388. package/dist/chunks/provider-1.1.4-g97havfk.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +34 -0
  393. package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +1 -0
  399. package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +1 -0
  402. package/dist/chunks/resume-1.1.4-3qy136p1.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +1 -0
  408. package/dist/chunks/session-1.1.4-5504ewv9.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +1 -0
  412. package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +1 -0
  413. package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +1 -0
  415. package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +1 -0
  418. package/dist/chunks/state-1.1.4-rm5651xg.mjs +1 -0
  419. package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +6 -0
  420. package/dist/chunks/status-1.1.4-v47t86mv.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +1 -0
  428. package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +1 -0
  433. package/dist/chunks/tools-1.1.4-g181kv47.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +69 -0
  436. package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +4 -0
  438. package/dist/chunks/update-1.1.4-z8g0pneq.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +1 -0
  440. package/dist/chunks/upload-1.1.4-2av9969z.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +1 -0
  443. package/dist/chunks/usage-1.1.4-wc38b22t.mjs +1 -0
  444. package/dist/chunks/util-1.1.4-re2ggpra.mjs +1 -0
  445. package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +1 -0
  446. package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/package.json +9 -9
  456. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +0 -1
  457. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +0 -1
  458. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +0 -1
  459. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +0 -1
  460. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +0 -1
  461. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +0 -1
  462. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +0 -1
  463. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +0 -1
  464. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +0 -7
  465. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +0 -1
  466. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +0 -6
  467. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +0 -1
  468. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +0 -1
  469. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +0 -1
  470. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +0 -1
  471. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +0 -1
  472. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +0 -1
  473. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +0 -1
  474. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +0 -1
  475. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +0 -1
  476. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +0 -1
  477. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +0 -1
  478. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +0 -1
  479. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +0 -1
  480. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +0 -9
  481. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +0 -1
  482. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +0 -1
  483. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +0 -1
  484. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +0 -1
  485. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +0 -1
  486. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +0 -3
  487. package/dist/chunks/agents-1.1.2-rxkey856.mjs +0 -110
  488. package/dist/chunks/api-1.1.2-fpd74byc.mjs +0 -1
  489. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +0 -1
  490. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +0 -1
  491. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +0 -1
  492. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +0 -1
  493. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +0 -48
  494. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +0 -1
  495. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +0 -1
  496. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +0 -4
  497. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +0 -2
  498. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +0 -1
  499. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +0 -1
  500. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +0 -88
  501. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +0 -1
  502. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +0 -1
  503. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +0 -3
  504. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +0 -1
  505. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +0 -21
  506. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +0 -4
  507. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +0 -1
  508. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +0 -1
  509. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +0 -1
  510. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +0 -1
  511. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +0 -1
  512. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +0 -9
  513. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +0 -2
  514. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +0 -2
  515. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +0 -2
  516. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +0 -2
  517. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +0 -2
  518. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +0 -2
  519. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +0 -2
  520. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +0 -133
  521. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +0 -2
  522. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +0 -2
  523. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +0 -17
  524. package/dist/chunks/cli-1.1.2-26xrf159.mjs +0 -2
  525. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +0 -25
  526. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +0 -3
  527. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +0 -4
  528. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +0 -2
  529. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +0 -15
  530. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +0 -3
  531. package/dist/chunks/cli-1.1.2-312r29db.mjs +0 -2
  532. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +0 -2
  533. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +0 -24
  534. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +0 -2
  535. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +0 -2
  536. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +0 -2
  537. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +0 -2
  538. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +0 -2
  539. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +0 -2
  540. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +0 -2
  541. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +0 -2
  542. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +0 -6
  543. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +0 -67
  544. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +0 -2
  545. package/dist/chunks/cli-1.1.2-526csky8.mjs +0 -2
  546. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +0 -12
  547. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +0 -25
  548. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +0 -2
  549. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +0 -2
  550. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +0 -4
  551. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +0 -2
  552. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +0 -2
  553. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +0 -5638
  554. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +0 -18
  556. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +0 -7
  557. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +0 -2
  558. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +0 -2
  559. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +0 -2
  561. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +0 -2
  562. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +0 -24
  563. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +0 -20
  564. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +0 -2
  567. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +0 -3
  568. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +0 -2
  569. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +0 -2
  570. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +0 -2
  571. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +0 -2
  572. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +0 -2
  573. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +0 -2
  574. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +0 -2
  575. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +0 -2
  576. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +0 -2
  577. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +0 -4
  578. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +0 -2
  579. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +0 -2
  580. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +0 -2
  581. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +0 -21
  582. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +0 -4
  583. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +0 -2
  584. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +0 -2
  585. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +0 -2
  586. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +0 -4
  587. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +0 -2
  588. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +0 -2
  589. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +0 -4
  590. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +0 -2
  591. package/dist/chunks/cli-1.1.2-efe0402v.mjs +0 -2
  592. package/dist/chunks/cli-1.1.2-em7hye78.mjs +0 -4
  593. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +0 -2
  594. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +0 -2
  595. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +0 -2
  596. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +0 -16
  597. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +0 -2
  598. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +0 -2
  599. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +0 -2
  600. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +0 -2
  601. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +0 -2
  602. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +0 -15
  603. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +0 -3
  604. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +0 -2
  605. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +0 -2
  606. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +0 -24
  607. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +0 -2
  608. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +0 -2
  609. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +0 -2
  610. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +0 -2
  612. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +0 -6
  613. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +0 -9
  614. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +0 -2
  615. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +0 -4
  616. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +0 -2
  617. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +0 -2
  618. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +0 -3
  619. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +0 -17
  620. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +0 -2
  621. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +0 -59
  622. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +0 -2
  623. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +0 -3
  624. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +0 -2
  625. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +0 -2
  626. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +0 -2
  627. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +0 -2
  628. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +0 -3
  629. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +0 -2
  630. package/dist/chunks/cli-1.1.2-kav702qr.mjs +0 -2
  631. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +0 -2
  632. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +0 -3
  633. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +0 -2
  634. package/dist/chunks/cli-1.1.2-m0529q09.mjs +0 -45
  635. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +0 -18
  636. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +0 -2
  637. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +0 -2
  638. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +0 -2
  639. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +0 -12
  640. package/dist/chunks/cli-1.1.2-mr55880g.mjs +0 -2
  641. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +0 -2
  642. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +0 -2
  643. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +0 -2
  644. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +0 -2
  645. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +0 -5
  646. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +0 -4
  647. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +0 -2
  648. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +0 -2
  649. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +0 -2
  650. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +0 -2
  651. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +0 -4
  652. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +0 -2
  653. package/dist/chunks/cli-1.1.2-r32per66.mjs +0 -2
  654. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +0 -2
  655. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +0 -6
  656. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +0 -2
  657. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +0 -8
  659. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +0 -15
  660. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +0 -2
  661. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +0 -2
  662. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +0 -2
  663. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +0 -2
  664. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +0 -2
  665. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +0 -34
  666. package/dist/chunks/cli-1.1.2-se3yz188.mjs +0 -2
  667. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +0 -2
  668. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +0 -133
  669. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +0 -2
  670. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +0 -2
  671. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +0 -2
  672. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +0 -2
  673. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +0 -12
  674. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +0 -6
  675. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +0 -2
  676. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +0 -2
  677. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +0 -2
  678. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +0 -4
  679. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +0 -2
  680. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +0 -3
  681. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +0 -39
  682. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +0 -2
  683. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +0 -2
  684. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +0 -2
  685. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +0 -5
  686. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +0 -2
  687. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +0 -2
  688. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +0 -42
  689. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +0 -2
  690. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +0 -2
  691. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +0 -2
  692. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +0 -58
  693. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +0 -3
  694. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +0 -50
  695. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +0 -2
  696. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +0 -2
  697. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +0 -2
  698. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +0 -2
  699. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +0 -12
  700. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +0 -18
  701. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +0 -2
  702. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +0 -2
  703. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +0 -2
  704. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +0 -202
  705. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +0 -3
  706. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +0 -2
  707. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +0 -1
  708. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +0 -2
  709. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +0 -2
  710. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +0 -6
  711. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +0 -3
  712. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +0 -2
  713. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +0 -2
  714. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +0 -2
  715. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +0 -1
  716. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +0 -1
  717. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +0 -3
  718. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +0 -1
  719. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +0 -1
  720. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +0 -1
  721. package/dist/chunks/context-1.1.2-rw4msk80.mjs +0 -1
  722. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +0 -1
  723. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +0 -1
  724. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +0 -1
  725. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +0 -9
  726. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +0 -1
  727. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +0 -1
  728. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +0 -1
  729. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +0 -1
  730. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +0 -1446
  731. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +0 -1
  732. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +0 -1
  733. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +0 -1
  734. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +0 -1
  735. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +0 -1
  736. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +0 -1
  737. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +0 -1
  738. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +0 -13
  739. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +0 -1
  740. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +0 -1
  741. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +0 -1
  742. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +0 -1
  743. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +0 -1
  744. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +0 -1
  745. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +0 -1
  746. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +0 -1
  747. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +0 -1
  748. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +0 -1
  749. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +0 -2
  750. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +0 -1
  752. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +0 -1
  753. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +0 -1
  755. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +0 -1
  757. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +0 -4
  758. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +0 -1
  759. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +0 -1
  760. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +0 -2
  761. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +0 -6
  762. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +0 -1
  763. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +0 -3
  764. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +0 -79
  765. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +0 -1
  766. package/dist/chunks/ide-1.1.2-je812srr.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +0 -1
  769. package/dist/chunks/index-1.1.2-3evh58r7.mjs +0 -1
  770. package/dist/chunks/index-1.1.2-69bhefzj.mjs +0 -1
  771. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +0 -1
  772. package/dist/chunks/index-1.1.2-7sphewt0.mjs +0 -5
  773. package/dist/chunks/index-1.1.2-947wna4y.mjs +0 -1
  774. package/dist/chunks/index-1.1.2-95c20hmc.mjs +0 -1
  775. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +0 -1
  776. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +0 -2
  777. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +0 -1
  778. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +0 -9
  779. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +0 -1
  780. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +0 -1
  781. package/dist/chunks/index-1.1.2-kzzb5289.mjs +0 -1
  782. package/dist/chunks/index-1.1.2-madt9yt1.mjs +0 -1
  783. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +0 -2
  784. package/dist/chunks/index-1.1.2-pzx0977r.mjs +0 -1
  785. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +0 -1
  786. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +0 -1
  787. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +0 -1
  788. package/dist/chunks/index-1.1.2-thaazk19.mjs +0 -17
  789. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +0 -30
  790. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +0 -1
  791. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +0 -9
  792. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +0 -1
  793. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +0 -1
  794. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +0 -1
  795. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +0 -870
  796. package/dist/chunks/install-1.1.2-89hhj53e.mjs +0 -1
  797. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +0 -149
  798. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +0 -1
  799. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +0 -1
  801. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +0 -2
  802. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +0 -1
  807. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +0 -1
  808. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +0 -1
  809. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +0 -1
  811. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +0 -17
  812. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +0 -4
  813. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +0 -1
  814. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +0 -72
  815. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +0 -1
  816. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +0 -2
  817. package/dist/chunks/node-1.1.2-msn09mvf.mjs +0 -12
  818. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +0 -1
  819. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +0 -14
  820. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +0 -1
  821. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +0 -1
  823. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +0 -1
  824. package/dist/chunks/passes-1.1.2-z98me43k.mjs +0 -1
  825. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +0 -3
  826. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +0 -1
  827. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +0 -1
  828. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +0 -1
  829. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +0 -1
  831. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +0 -9
  832. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +0 -2
  833. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +0 -57
  834. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +0 -1
  835. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +0 -1
  836. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +0 -9
  838. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +0 -1
  839. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +0 -1
  840. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +0 -1
  841. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +0 -13
  842. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +0 -2
  843. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +0 -1
  844. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +0 -34
  847. package/dist/chunks/registry-1.1.2-bteqae43.mjs +0 -1
  848. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +0 -5
  849. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +0 -2
  850. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +0 -1
  852. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +0 -1
  853. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +0 -1
  855. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +0 -1
  856. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +0 -2
  857. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +0 -1
  858. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +0 -1
  859. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +0 -10
  860. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +0 -1
  861. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +0 -1
  862. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +0 -2
  863. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +0 -1
  864. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +0 -1
  865. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +0 -1
  866. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +0 -1
  867. package/dist/chunks/setup-1.1.2-5f344krn.mjs +0 -5
  868. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +0 -1
  869. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +0 -1
  870. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +0 -1
  871. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +0 -1
  872. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +0 -1
  873. package/dist/chunks/stats-1.1.2-x2men93c.mjs +0 -6
  874. package/dist/chunks/status-1.1.2-k6342tq7.mjs +0 -1
  875. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +0 -1
  876. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +0 -1
  877. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +0 -1
  878. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +0 -1
  879. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +0 -1
  880. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +0 -1
  881. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +0 -1
  882. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +0 -1
  883. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +0 -1
  884. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +0 -1
  885. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +0 -1
  886. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +0 -1
  887. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +0 -1
  888. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +0 -1
  889. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +0 -69
  890. package/dist/chunks/types-1.1.2-vst16v9y.mjs +0 -1
  891. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +0 -4
  892. package/dist/chunks/update-1.1.2-7daxbkja.mjs +0 -72
  893. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +0 -1
  894. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +0 -7
  895. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +0 -14
  896. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +0 -1
  897. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +0 -1
  898. package/dist/chunks/util-1.1.2-790z163z.mjs +0 -1
  899. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +0 -1
  900. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +0 -1
  901. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +0 -13
  902. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +0 -1
  903. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +0 -132
  904. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +0 -1
  905. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +0 -1
  906. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +0 -1
  907. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +0 -7
  908. /package/dist/chunks/{cli-1.1.2-8t8veykp.mjs → cli-1.1.4-1f3p70jj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.2-3vyt3jw9.mjs → cli-1.1.4-ez4xtmvg.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.2-6jbsqbdw.mjs → cli-1.1.4-gp99zrz4.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.2-btgmqahb.mjs → cli-1.1.4-gpvz5jfv.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.2-6d3jf0sj.mjs → cli-1.1.4-n0dzwv49.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.2-r4rfggdk.mjs → cli-1.1.4-q1mcaeav.mjs} +0 -0
  914. /package/dist/chunks/{cli-1.1.2-pgz05ddc.mjs → cli-1.1.4-tg5t7jrb.mjs} +0 -0
@@ -0,0 +1,7 @@
1
+ import{Wb as d}from"./cli-1.1.4-2sdcr2b4.mjs";import{IW as y,JW as U,LW as f,MW as h,NW as c,SW as i}from"./cli-1.1.4-4qsk7zj5.mjs";import{A4 as b,y4 as O}from"./cli-1.1.4-v67jx2fw.mjs";import{W7 as B,X7 as M}from"./cli-1.1.4-fk420f57.mjs";import{n9 as I,u9 as u}from"./cli-1.1.4-0earmzgk.mjs";import{P_ as V,R_ as v}from"./cli-1.1.4-6c3fshef.mjs";import{Cka as D,cka as H,dka as m,hka as T,zka as G}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as q,_ka as S,ela as F}from"./cli-1.1.4-hzx821eq.mjs";import{Tra as p,jsa as s}from"./cli-1.1.4-0a20jx5n.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
+
3
+ `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
+ `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
+ `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
+ `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
+ export{R as Nb,k as Ob,a as Pb,YJ as Qb};
@@ -0,0 +1,4 @@
1
+ import{Xg as l,Yg as Uy}from"./cli-1.1.4-vye1xark.mjs";import{Qi as d,Si as o,Ti as hy}from"./cli-1.1.4-5hz878ns.mjs";import{$q as A,Ao as Qy,Dr as Xy,Ht as Zy,JT as Hy,OL as K,PL as vy,PP as _,Sq as u,XL as x,fM as Ny,gr as E,jo as V,lo as Y,mM as g,nT as e,no as D,or as Wy,qM as Py,qo as M,ro as C,sl as L,so as T,uo as f,wl as Jy,yy as q,zr as s,zt as O,zy as $y}from"./cli-1.1.4-6z69geef.mjs";import{QX as n,RX as Ry}from"./cli-1.1.4-aj4f4c5s.mjs";import{SY as a,TY as t,UY as c,YY as py}from"./cli-1.1.4-k6ebhyp0.mjs";import{cZ as i,iZ as Oy}from"./cli-1.1.4-scm26s6m.mjs";import{$0 as Ky,_0 as k}from"./cli-1.1.4-nh3sscxn.mjs";import{J8 as X,S6 as B,T6 as F,a9 as Iy,r7 as zy}from"./cli-1.1.4-fk420f57.mjs";import{w9 as H,x9 as Gy}from"./cli-1.1.4-sm3xmtbn.mjs";import{Fba as j,Hba as ky,L$ as b,Rda as m,S$ as Sy,U$ as W,Uea as v,V$ as jy,Wda as R,Xda as h,Xea as w,eea as qy,qfa as N,v$ as $}from"./cli-1.1.4-6c3fshef.mjs";import{Yha as z,iia as wy}from"./cli-1.1.4-qecgken2.mjs";import{Cka as ry,zka as p}from"./cli-1.1.4-53fvpymg.mjs";N();function Yy(y){let r=w().numStartups;v((G)=>{let S=G.tipsHistory??{};if(S[y]===r)return G;return{...G,tipsHistory:{...S,[y]:r}}})}function P(y){let r=w(),G=r.tipsHistory?.[y];if(!G)return 1/0;return r.numStartups-G}Gy();ry();Zy();qy();Oy();Ky();Uy();$y();Jy();Iy();Ry();N();Wy();ky();Xy();Sy();Qy();zy();jy();Py();Ny();vy();Hy();wy();hy();py();var Q;async function by(){if(Q!==void 0)return Q;let y=await x();return Q=K in y,Q}async function U(y,r,G){if(!await by())return!1;if(g(`${y}@${K}`))return!1;let{bashTools:S}=r??{};if(G.cli&&S?.size){if(G.cli.some((I)=>S.has(I)))return!0}if(G.filePath&&r?.readFileState){if(s(r.readFileState).some((Z)=>G.filePath.test(Z)))return!0}return!1}var my=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return w().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=w();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=w(),r=h(),G=Boolean(y.lastPlanModeUse),S=Boolean(r?.permissions?.defaultMode);return G&&!S}catch(y){return p(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=w();return await b()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${q("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await $()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${q("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await $()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${q("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=w();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(e())return!1;return await n()>=2}},{id:"terminal-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=w();if(j.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>j.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=w();return Boolean((j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!i())return!1;let y=w();return!(j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return w().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&H.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>W()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>h().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return w().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${j.terminal==="vscode"?"code":j.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!V())return!1;if(W()!=="macos")return!1;switch(j.terminal){case"vscode":return!await T();case"cursor":return!await M();case"windsurf":return!await C();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Y())return!1;if((await D()).length!==0)return!1;return(await f()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!w().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!w().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return w().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>W()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>_()&&w().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return w().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=w(),G=B()==="opusplan",S=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return G&&S>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
+ ${k("suggestion",y.theme)(`/plugin install frontend-design@${K}`)}`},cooldownSessions:3,isRelevant:async(y)=>U("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
+ ${k("suggestion",y.theme)(`/plugin install vercel@${K}`)}`},cooldownSessions:3,isRelevant:async(y)=>U("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let G=k("suggestion",y.theme)("/effort high");return z("tengu_tide_elm","off")==="copy_b"?`Use ${G} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${G} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;if(!u(F()))return!1;if(m("policySettings")?.effortLevel!==void 0)return!1;if(E()!==void 0)return!1;let y=A();if(y==="high"||y==="max")return!1;return z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${r("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${r('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;return z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_timber_lark","off")==="copy_b"?`Use ${r("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${r("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;if(!L())return!1;return z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let r=k("claude",y.theme),G=c();return G?`Share Claudin and earn ${r(t(G))} of extra usage · ${r("/passes")}`:`You have free guest passes to share · ${r("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(w().hasVisitedPasses)return!1;let{eligible:r}=a();return r}},{id:"overage-credit",content:async(y)=>{let r=k("claude",y.theme),G=d(),S=G?o(G):null;if(!S)return"";return`${r(`${S} in extra usage, on us`)} · third-party apps · ${r("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>l()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return w().numStartups>5}}],By=[];function Fy(){let r=R().spinnerTipsOverride;if(!r?.tips?.length)return[];return r.tips.map((G,S)=>({id:`custom-tip-${S}`,content:async()=>G,cooldownSessions:0,isRelevant:async()=>!0}))}async function qr(y){let G=R().spinnerTipsOverride,S=Fy();if(G?.excludeDefault&&S.length>0)return S;let I=[...my,...By],Z=await Promise.all(I.map((J)=>J.isRelevant(y)));return[...I.filter((J,yy)=>Z[yy]).filter((J)=>P(J.id)>=J.cooldownSessions),...S]}
4
+ export{Yy as cb,P as db,qr as eb};
@@ -0,0 +1,2 @@
1
+ import{Sc as k,Tc as P}from"./cli-1.1.4-3yy14yyg.mjs";import{$c as f,Zc as O,_c as A}from"./cli-1.1.4-0wp3qgzs.mjs";import{a9 as E,l8 as U,p8 as V,u8 as j}from"./cli-1.1.4-fk420f57.mjs";import{Ofa as h,Qga as K,Uea as N,Xea as J,Yga as b,cfa as Y,gca as X,hca as H,nca as x,qfa as G,xfa as I}from"./cli-1.1.4-6c3fshef.mjs";import{Yka as F,ela as L}from"./cli-1.1.4-hzx821eq.mjs";import{Zqa as T,noa as W}from"./cli-1.1.4-0r232fpm.mjs";import{Isa as y}from"./cli-1.1.4-xxe2ztwq.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
+ export{d as Nc,l as Oc,S as Pc,u as Qc};
@@ -0,0 +1,2 @@
1
+ import{eo as g,fo as k,xG as h,zG as I}from"./cli-1.1.4-6z69geef.mjs";import{DZ as S,H1 as _,c1 as s}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as c,p4 as m,q4 as T}from"./cli-1.1.4-40z19hth.mjs";import{Uea as b,qfa as P}from"./cli-1.1.4-6c3fshef.mjs";import{Esa as D}from"./cli-1.1.4-xxe2ztwq.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
+ export{E as B};
@@ -0,0 +1,2 @@
1
+ import{$F as w,WF as R,XF as E,YF as l,ZF as i,_F as c,aG as O,eG as y,fG as e}from"./cli-1.1.4-6z69geef.mjs";import{nY as x,oY as s}from"./cli-1.1.4-k6ebhyp0.mjs";import{DZ as n,H1 as K,R0 as j,S0 as r,a1 as k,c1 as W,w1 as Q}from"./cli-1.1.4-nh3sscxn.mjs";import{n4 as A,o4 as V,p4 as D,q4 as v}from"./cli-1.1.4-40z19hth.mjs";import{r4 as t}from"./cli-1.1.4-9ms3b4tc.mjs";import{Esa as q,Isa as p}from"./cli-1.1.4-xxe2ztwq.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
2
+ export{X1 as ph,u as qh,W1 as rh,B1 as sh};
@@ -0,0 +1,2 @@
1
+ import{kI as U,lI as w}from"./cli-1.1.4-6z69geef.mjs";import{DZ as f,H1 as k,a1 as N,c1 as O}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as M,p4 as H,q4 as R}from"./cli-1.1.4-40z19hth.mjs";import{Esa as Y,Isa as Z}from"./cli-1.1.4-xxe2ztwq.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
+ export{_ as Mg,A as Ng};
@@ -0,0 +1,4 @@
1
+ import{de as c,je as Eq}from"./cli-1.1.4-rhexcyth.mjs";import{AL as v,AM as vq,Ap as Fq,BL as m,BM as y,CM as Qq,DL as Oq,DM as Xq,EM as Yq,FM as $q,GM as d,It as l,JM as Dq,Jt as wq,WL as n,aM as e,bM as P,ep as s,fM as jq,fp as Tq,gM as O,hM as qq,ip as t,jM as I,kM as Gq,kp as Mq,op as i,qM as Cq,qp as Rq,tM as b,uM as Lq,up as A,wp as D,xM as Hq,xp as Aq,yM as Jq,yp as h,zp as S}from"./cli-1.1.4-6z69geef.mjs";import{Qga as a,Rda as F,Tda as L,Yga as Bq,eea as _q,mda as V,uda as Kq}from"./cli-1.1.4-6c3fshef.mjs";import{lka as p,pka as Wq}from"./cli-1.1.4-53fvpymg.mjs";import{$ka as N,Yka as o,ela as Uq}from"./cli-1.1.4-hzx821eq.mjs";import{Zqa as xq,ena as f}from"./cli-1.1.4-0r232fpm.mjs";import{Isa as Zq}from"./cli-1.1.4-xxe2ztwq.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
+ ${G.join(`
3
+ `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
4
+ export{k as Sd,HG as Td,JG as Ud,QG as Vd,kq as Wd,XG as Xd,YG as Yd,$G as Zd,zG as _d,ZG as $d,xG as ae,hq as be};
@@ -0,0 +1,2 @@
1
+ import{jf as H,mf as A}from"./cli-1.1.4-gey397p1.mjs";import{Af as L,Df as P,Ff as _}from"./cli-1.1.4-cp707f4g.mjs";import{Tra as U,jsa as F}from"./cli-1.1.4-0a20jx5n.mjs";F();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class C extends Error{status;errorType;constructor(J,K,$){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=$}}function y(J){function K(q){J.onDebug?.(q)}let $=0,W=100;function Z(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},X=J.getTrustedDeviceToken?.();if(X)z["X-Trusted-Device-Token"]=X;return z}function D(){let q=J.getAccessToken();if(!q)throw Error(H);return q}async function M(q,z){let X=D(),Q=await q(X);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(X)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let V=D(),N=await q(V);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:Z(X),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${L({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${L(z.data)}`),z.data},async pollForWork(q,z,X,Q){j(q,"environmentId");let Y=$;$=0;let V=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:Z(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:X,validateStatus:(N)=>N<500});if(G(V.status,V.data,"Poll"),!V.data){if($=Y+1,$===1||$%W===0)K(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${$} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),K(`[bridge:api] <<< ${L(V.data)}`),V.data},async acknowledgeWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${X}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:X},{headers:Z(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((X)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((X)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:Z(X),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let X=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:Z(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(X.status,X.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${X.status}`)},async heartbeatWork(q,z,X){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,X){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:Z(X),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${L({events:[z]})}`),K(`[bridge:api] <<< ${L(Q.data)}`)}}}function G(J,K,$){if(J===200||J===204)return;let W=P(K),Z=B(K);switch(J){case 401:throw new C(`${$}: Authentication failed (401)${W?`: ${W}`:""}. ${H}`,401,Z);case 403:throw new C(S(Z)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${$}: Access denied (403)${W?`: ${W}`:""}. Check your organization permissions.`,403,Z);case 404:throw new C(W??`${$}: Not found (404). Remote Control may not be available for this organization.`,404,Z);case 410:throw new C(W??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,Z??"environment_expired");case 429:throw Error(`${$}: Rate limited (429). Polling too frequently.`);default:throw Error(`${$}: Failed with status ${J}${W?`: ${W}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function h(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function f(J){let K=new AbortController;function $(){K.abort(),K=new AbortController}function W(){let Z=new AbortController,D=()=>Z.abort();if(J.aborted||K.signal.aborted)return Z.abort(),{signal:Z.signal,cleanup:()=>{}};J.addEventListener("abort",D,{once:!0});let M=K.signal;return M.addEventListener("abort",D,{once:!0}),{signal:Z.signal,cleanup:()=>{J.removeEventListener("abort",D),M.removeEventListener("abort",D)}}}return{signal:W,wake:$}}
2
+ export{j as Cb,C as Db,y as Eb,S as Fb,h as Gb,f as Hb};
@@ -0,0 +1,2 @@
1
+ import{Isa as B}from"./cli-1.1.4-xxe2ztwq.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 _i,C as $i};
@@ -0,0 +1,2 @@
1
+ import{Gsa as j}from"./cli-1.1.4-xxe2ztwq.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.8"});
2
+ export{Lt as r4};
@@ -0,0 +1,2 @@
1
+ import{Qga as C,U_ as z,W_ as H,Yga as J}from"./cli-1.1.4-6c3fshef.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,17 @@
1
+ import{P7 as x,V7 as K}from"./cli-1.1.4-fk420f57.mjs";import{Wda as w,eea as J}from"./cli-1.1.4-6c3fshef.mjs";import{Yha as v,iia as I}from"./cli-1.1.4-qecgken2.mjs";import{kla as q,ula as G}from"./cli-1.1.4-c7a7aezt.mjs";import{Isa as z}from"./cli-1.1.4-xxe2ztwq.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as jV,k as kV,N as lV,X as mV,Z as nV,$ as oV,B as pV,D as qV,F as rV,O as sV};
@@ -0,0 +1,2 @@
1
+ import{DZ as Z,H1 as k,c1 as K}from"./cli-1.1.4-nh3sscxn.mjs";import{p4 as J,q4 as H}from"./cli-1.1.4-40z19hth.mjs";import{D_ as v,E_ as Y}from"./cli-1.1.4-6c3fshef.mjs";import{Esa as V,Isa as X}from"./cli-1.1.4-xxe2ztwq.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as yh,C as zh};
@@ -0,0 +1,24 @@
1
+ import{bY as T,mY as c}from"./cli-1.1.4-jeyegjk6.mjs";import{G2 as w,J2 as n}from"./cli-1.1.4-6c5tryej.mjs";import{T_ as M,U$ as y,V$ as g,V_ as X,W_ as f}from"./cli-1.1.4-6c3fshef.mjs";import{Cja as R,Cka as h,Eja as F,cka as K,dka as v,hka as m,zka as Z}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as Y,cla as W,ela as D}from"./cli-1.1.4-hzx821eq.mjs";import{hla as E,ula as S}from"./cli-1.1.4-c7a7aezt.mjs";import{Zqa as j,_ma as k,cna as A,ena as N}from"./cli-1.1.4-0r232fpm.mjs";import{Isa as H}from"./cli-1.1.4-xxe2ztwq.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${J}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${J}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
+ export{O as IX,i as JX,e as KX,qq as LX,_ as MX,Uq as NX,Bq as OX,C as PX,Mq as QX,I as RX,Aq as SX,d as TX,r as UX,t as VX};
@@ -0,0 +1,2 @@
1
+ import{usa as p,vsa as a}from"./cli-1.1.4-g21fhx9n.mjs";import{Gsa as i}from"./cli-1.1.4-xxe2ztwq.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as L9};
@@ -0,0 +1 @@
1
+ import{Bia as q,Dia as A,Eia as x,Fia as B}from"./cli-1.1.4-mzzr964a.mjs";import{hka as J}from"./cli-1.1.4-53fvpymg.mjs";import{ela as G}from"./cli-1.1.4-hzx821eq.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,2 @@
1
+ import{Isa as C}from"./cli-1.1.4-xxe2ztwq.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as Wi,M as Xi,N as Yi,H as Zi};
@@ -0,0 +1,2 @@
1
+ import{xb as d}from"./cli-1.1.4-1f3p70jj.mjs";import{$u as V,Ft as h,Gv as C,Ht as qj,Hv as D,JC as I,JT as Vj,KC as Hj,LE as Jj,Lm as E,Mk as $,Ml as P,Mm as e,Mv as Gj,Nk as n,Nl as R,Uk as v,VT as F,Vk as r,Yu as k,_j as O,ak as o,bT as m,cT as S,dT as A,eS as Qj,fm as s,fv as zj,gv as w,hU as Xj,hv as Bj,oT as c,sm as y,uK as f,vT as p,wT as X,xm as t}from"./cli-1.1.4-6z69geef.mjs";import{AV as W,PV as jj}from"./cli-1.1.4-6raycx0k.mjs";import{OX as x,RX as Kj}from"./cli-1.1.4-aj4f4c5s.mjs";import{k7 as T,r7 as u}from"./cli-1.1.4-fk420f57.mjs";import{Iia as Z,Kia as i}from"./cli-1.1.4-f7y4b0px.mjs";import{Cka as l,zka as b}from"./cli-1.1.4-53fvpymg.mjs";import{Zqa as g,_ma as U,bna as _,gna as Y,loa as M,noa as N,tqa as K}from"./cli-1.1.4-0r232fpm.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
+ export{aj as Sa,Pj as Ta,Rj as Ua,Ej as Va,gj as Wa,lj as Xa};
@@ -0,0 +1,2 @@
1
+ import{ne as _,pe as v}from"./cli-1.1.4-yz3t1wmd.mjs";import{Qe as Z,Re as P}from"./cli-1.1.4-hmg1r8h3.mjs";import{hy as X,ly as K,vy as Y,xy as A}from"./cli-1.1.4-6z69geef.mjs";import{AY as C,xY as V}from"./cli-1.1.4-k6ebhyp0.mjs";import{o4 as H,q4 as Q}from"./cli-1.1.4-40z19hth.mjs";import{r4 as W}from"./cli-1.1.4-9ms3b4tc.mjs";import{$ga as L,aha as U}from"./cli-1.1.4-rc28sjtd.mjs";import{Esa as B,Isa as M}from"./cli-1.1.4-xxe2ztwq.mjs";function x({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>_(H(X,{children:H(x,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();P();C();A();K();v();Q();J=B(W(),1)});
2
+ export{l as tc,j as uc};
@@ -0,0 +1,2 @@
1
+ import{qR as x,tR as B}from"./cli-1.1.4-6z69geef.mjs";import{Isa as z}from"./cli-1.1.4-xxe2ztwq.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
2
+ export{G as zg,H as Ag,A as Bg};
@@ -0,0 +1,2 @@
1
+ import{wra as M,xra as Y}from"./cli-1.1.4-x8m7spde.mjs";import{Isa as W}from"./cli-1.1.4-xxe2ztwq.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-5","VERTEX_REGION_CLAUDE_5_OPUS"],["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 fla,N as gla,X as hla,_ as ila,j as jla,U as kla,I as lla,S as mla,T as nla,c as ola,L as pla,w as qla,z as rla,O as sla,x as tla,k as ula};
@@ -0,0 +1,2 @@
1
+ import{xe as V,ze as B}from"./cli-1.1.4-pq6xvrw7.mjs";import{Gx as Q,Hx as q,eS as F,nk as L,vO as U,xO as w}from"./cli-1.1.4-6z69geef.mjs";import{bba as K,gba as k}from"./cli-1.1.4-6c3fshef.mjs";import{Cka as $,zka as I}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as G,ela as _}from"./cli-1.1.4-hzx821eq.mjs";import{Isa as Z}from"./cli-1.1.4-xxe2ztwq.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
+ export{h as ve,D as we};
@@ -0,0 +1,2 @@
1
+ import{D0 as z,E0 as $,F0 as D,WZ as W,ZZ as Z,_Z as x}from"./cli-1.1.4-nh3sscxn.mjs";import{Xea as Q,qfa as Y}from"./cli-1.1.4-6c3fshef.mjs";import{Isa as C}from"./cli-1.1.4-xxe2ztwq.mjs";function c(){let q=process.env.TERM_PROGRAM;if(q&&O.has(q))return!0;let y=process.env.TERM;if(y&&X.has(y))return!0;let J=W()?.toLowerCase();if(J===void 0)return!1;return k.some((B)=>J.startsWith(B))}function H(q){if(q===void 0||q==="")return null;let y=Number(q);if(!Number.isFinite(y)||y<d||y>w)return null;return y}function K(q){return u.get(q)??Math.max(1,Math.round(1000/q))}function m(){return H(process.env.CLAUDIN_FPS)!==null}function j(){let q=H(process.env.CLAUDIN_FPS);if(q!==null)return K(q);if(Z())return z;let y=H(Q().renderFrameRate);if(y!==null)return K(y);if(c()&&!process.env.TMUX)return h;return z}function I(){let q=j();return String(G.get(q)??Math.round(1000/q))}function P(){$(j())}var g,O,X,k,d=10,w=360,h=8,b,u,G;var L=C(()=>{D();x();Y();g=["auto","120","240","360"],O=new Set(["ghostty","kitty","WezTerm","alacritty","contour","foot","rio","WarpTerminal"]),X=new Set(["xterm-kitty","xterm-ghostty","alacritty","contour","foot","foot-extra","rio"]),k=["ghostty","kitty","wezterm","alacritty","contour","foot","rio","warp"],b=[[60,16],[120,h],[240,4],[360,3]],u=new Map(b),G=new Map(b.map(([q,y])=>[y,q]))});
2
+ export{g as Sg,m as Tg,I as Ug,P as Vg,L as Wg};
@@ -0,0 +1,2 @@
1
+ import{K8 as Z,N8 as T,T8 as f,a9 as WB}from"./cli-1.1.4-fk420f57.mjs";import{Gba as _,H_ as O,Hba as KB,I_ as BB,Xea as A,hfa as v,qfa as QB}from"./cli-1.1.4-6c3fshef.mjs";import{Iia as w,Kia as JB}from"./cli-1.1.4-f7y4b0px.mjs";import{kla as F,ula as e}from"./cli-1.1.4-c7a7aezt.mjs";import{Hla as S,Ila as s,Zqa as a,_ma as R,lma as I,mma as c,xma as M,yma as m}from"./cli-1.1.4-0r232fpm.mjs";import{wra as q,xra as t}from"./cli-1.1.4-x8m7spde.mjs";import{Isa as K}from"./cli-1.1.4-xxe2ztwq.mjs";function p(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=p});function u(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=u});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function i(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();c();U=i});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,d.cache.clear?.()}function TB(){W=null,Q=null,d.cache.clear?.(),g.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return g()}var W=null,Q=null,d,g;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();d=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),j=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:j,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});g=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
+ export{kB as YU,r as ZU,vB as _U,TB as $U,g as aV,ZB as bV};
@@ -0,0 +1,6 @@
1
+ import{Isa as b}from"./cli-1.1.4-xxe2ztwq.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 k3,oq as l3};