@claudiolabs/claudin 0.7.2 → 0.7.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 (905) hide show
  1. package/LICENSE +23 -200
  2. package/README.md +25 -89
  3. package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
  4. package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
  5. package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
  6. package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
  7. package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
  8. package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
  12. package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
  13. package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
  14. package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
  15. package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
  21. package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
  31. package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
  32. package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
  33. package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
  34. package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
  35. package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
  36. package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
  37. package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
  38. package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
  39. package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
  40. package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
  41. package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
  42. package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
  43. package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
  44. package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
  45. package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
  46. package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
  47. package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
  48. package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
  49. package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
  50. package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
  51. package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
  52. package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
  53. package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
  54. package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
  55. package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
  56. package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
  57. package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
  58. package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
  59. package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
  60. package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
  61. package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
  62. package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
  63. package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
  64. package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
  65. package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
  66. package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
  67. package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
  68. package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
  69. package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
  70. package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
  71. package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
  72. package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
  73. package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
  74. package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
  75. package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
  76. package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
  77. package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
  78. package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
  79. package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
  80. package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
  81. package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
  82. package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
  83. package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
  84. package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
  85. package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
  86. package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
  87. package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
  88. package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
  89. package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
  90. package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
  91. package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
  92. package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
  93. package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
  94. package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
  95. package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
  96. package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
  97. package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
  98. package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
  99. package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
  100. package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
  101. package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
  102. package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
  103. package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
  104. package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
  105. package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
  106. package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
  107. package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
  108. package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
  109. package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
  110. package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
  111. package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
  112. package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
  113. package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
  114. package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
  115. package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
  116. package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
  117. package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
  118. package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
  119. package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
  121. package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
  122. package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
  123. package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
  124. package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
  125. package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
  126. package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
  127. package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
  128. package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
  129. package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
  130. package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
  131. package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
  132. package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
  133. package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
  134. package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
  135. package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
  136. package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
  137. package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
  138. package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
  139. package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
  140. package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
  141. package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
  142. package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
  143. package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
  144. package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
  145. package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
  146. package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
  147. package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
  148. package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
  149. package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
  150. package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
  151. package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
  152. package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
  153. package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
  154. package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
  155. package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
  156. package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
  157. package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
  158. package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
  160. package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
  161. package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
  162. package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
  163. package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
  164. package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
  165. package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
  166. package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
  167. package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
  168. package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
  169. package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
  170. package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
  171. package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
  172. package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
  173. package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
  174. package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
  175. package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
  176. package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
  177. package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
  178. package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
  179. package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
  180. package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
  181. package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
  182. package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
  183. package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
  184. package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
  185. package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
  186. package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
  187. package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
  188. package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
  189. package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
  190. package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
  191. package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
  192. package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
  193. package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
  194. package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
  195. package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
  196. package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
  197. package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
  198. package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
  199. package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
  200. package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
  201. package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
  202. package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
  203. package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
  204. package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
  205. package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
  206. package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
  207. package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
  208. package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
  209. package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
  210. package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
  211. package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
  212. package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
  213. package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
  214. package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
  215. package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
  216. package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
  217. package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
  218. package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
  219. package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
  220. package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
  221. package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
  222. package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
  223. package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
  224. package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
  225. package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
  226. package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
  227. package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
  228. package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
  229. package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
  230. package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
  231. package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
  232. package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
  233. package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
  234. package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
  235. package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
  236. package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
  237. package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
  238. package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
  239. package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
  240. package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
  241. package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
  242. package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
  243. package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
  244. package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
  245. package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
  246. package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
  247. package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
  248. package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
  249. package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
  250. package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
  251. package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
  253. package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
  254. package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
  255. package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
  256. package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
  257. package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
  258. package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
  259. package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
  260. package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
  261. package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
  262. package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
  263. package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
  264. package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
  265. package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
  266. package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
  267. package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
  268. package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
  269. package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
  270. package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
  271. package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
  273. package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
  275. package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
  276. package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
  277. package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
  278. package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
  279. package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
  281. package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
  282. package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
  283. package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
  284. package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
  285. package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
  287. package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
  288. package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
  289. package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
  291. package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
  292. package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
  293. package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
  294. package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
  295. package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
  296. package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
  297. package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
  298. package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
  299. package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
  301. package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
  302. package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
  304. package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
  306. package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
  307. package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
  308. package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
  309. package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
  310. package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
  311. package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
  312. package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
  313. package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
  314. package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
  315. package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
  318. package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
  319. package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
  320. package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
  321. package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
  322. package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
  323. package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
  324. package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
  325. package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
  326. package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
  327. package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
  328. package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
  329. package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
  330. package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
  331. package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
  332. package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
  333. package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
  334. package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
  335. package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
  336. package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
  337. package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
  338. package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
  339. package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
  340. package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
  341. package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
  342. package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
  343. package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
  344. package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
  345. package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
  346. package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
  347. package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
  348. package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
  350. package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
  351. package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
  355. package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
  356. package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
  357. package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
  358. package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
  359. package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
  360. package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
  361. package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
  362. package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
  363. package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
  364. package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
  365. package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
  366. package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
  367. package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
  368. package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
  369. package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
  370. package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
  371. package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
  372. package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
  373. package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
  374. package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
  375. package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
  376. package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
  377. package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
  378. package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
  379. package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
  380. package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
  381. package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
  382. package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
  383. package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
  384. package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
  385. package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
  387. package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
  388. package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
  389. package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
  390. package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
  391. package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
  392. package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
  393. package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
  396. package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
  397. package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
  398. package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
  399. package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
  401. package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
  402. package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
  404. package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
  405. package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
  406. package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
  407. package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
  408. package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
  409. package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
  410. package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
  411. package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
  412. package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
  413. package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
  414. package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
  415. package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
  416. package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
  417. package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
  418. package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
  419. package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
  420. package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
  421. package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
  422. package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
  423. package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
  424. package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
  425. package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
  426. package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
  427. package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
  428. package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
  429. package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
  430. package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
  431. package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
  432. package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
  433. package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
  434. package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
  435. package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
  436. package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
  437. package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
  438. package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
  439. package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
  440. package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
  441. package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
  442. package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
  443. package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
  444. package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
  445. package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
  446. package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
  447. package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
  448. package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
  449. package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
  450. package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
  451. package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
  452. package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
  454. package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
  455. package/dist/claudin-vscode.vsix +0 -0
  456. package/dist/cli.mjs +2 -2
  457. package/package.json +18 -2
  458. package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
  459. package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
  460. package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
  461. package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
  462. package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
  463. package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
  464. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
  465. package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
  466. package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
  467. package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
  468. package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
  469. package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
  470. package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
  474. package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
  475. package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
  476. package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
  484. package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
  485. package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
  486. package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
  487. package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
  488. package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
  489. package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
  490. package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
  491. package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
  492. package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
  493. package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
  494. package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
  495. package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
  496. package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
  497. package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
  498. package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
  499. package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
  500. package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
  501. package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
  502. package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
  503. package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
  504. package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
  505. package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
  506. package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
  507. package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
  508. package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
  509. package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
  510. package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
  511. package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
  512. package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
  513. package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
  514. package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
  515. package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
  516. package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
  517. package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
  518. package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
  519. package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
  520. package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
  521. package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
  522. package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
  523. package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
  524. package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
  525. package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
  526. package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
  527. package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
  528. package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
  529. package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
  530. package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
  531. package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
  532. package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
  533. package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
  534. package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
  535. package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
  536. package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
  537. package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
  538. package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
  539. package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
  540. package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
  541. package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
  542. package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
  543. package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
  544. package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
  545. package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
  546. package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
  547. package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
  548. package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
  549. package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
  550. package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
  551. package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
  552. package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
  553. package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
  554. package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
  555. package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
  556. package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
  557. package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
  558. package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
  559. package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
  560. package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
  561. package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
  562. package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
  563. package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
  564. package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
  565. package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
  566. package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
  567. package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
  568. package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
  569. package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
  570. package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
  571. package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
  572. package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
  573. package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
  574. package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
  575. package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
  576. package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
  577. package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
  578. package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
  579. package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
  580. package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
  581. package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
  582. package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
  583. package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
  584. package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
  585. package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
  586. package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
  587. package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
  588. package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
  589. package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
  590. package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
  591. package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
  592. package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
  593. package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
  594. package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
  595. package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
  596. package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
  597. package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
  598. package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
  599. package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
  600. package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
  601. package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
  602. package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
  603. package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
  604. package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
  605. package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
  606. package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
  607. package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
  608. package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
  609. package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
  610. package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
  611. package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
  612. package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
  613. package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
  614. package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
  615. package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
  616. package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
  617. package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
  618. package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
  619. package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
  620. package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
  621. package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
  622. package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
  623. package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
  624. package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
  625. package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
  626. package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
  627. package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
  628. package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
  629. package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
  630. package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
  631. package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
  632. package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
  633. package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
  634. package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
  635. package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
  636. package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
  637. package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
  638. package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
  639. package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
  640. package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
  641. package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
  642. package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
  643. package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
  644. package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
  645. package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
  646. package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
  647. package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
  648. package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
  649. package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
  650. package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
  651. package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
  652. package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
  653. package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
  654. package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
  655. package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
  656. package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
  657. package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
  658. package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
  659. package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
  660. package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
  661. package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
  662. package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
  663. package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
  664. package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
  665. package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
  666. package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
  667. package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
  668. package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
  669. package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
  670. package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
  671. package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
  672. package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
  673. package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
  674. package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
  675. package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
  676. package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
  677. package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
  678. package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
  679. package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
  680. package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
  681. package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
  682. package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
  683. package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
  684. package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
  685. package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
  686. package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
  687. package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
  688. package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
  689. package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
  690. package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
  691. package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
  692. package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
  693. package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
  694. package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
  695. package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
  696. package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
  697. package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
  698. package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
  699. package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
  700. package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
  701. package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
  702. package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
  703. package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
  704. package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
  705. package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
  706. package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
  707. package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
  708. package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
  709. package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
  710. package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
  711. package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
  712. package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
  713. package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
  714. package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
  715. package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
  716. package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
  717. package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
  718. package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
  719. package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
  720. package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
  721. package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
  722. package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
  723. package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
  724. package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
  725. package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
  726. package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
  727. package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
  728. package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
  729. package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
  730. package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
  731. package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
  732. package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
  733. package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
  734. package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
  735. package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
  736. package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
  737. package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
  738. package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
  739. package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
  740. package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
  741. package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
  742. package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
  743. package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
  744. package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
  745. package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
  746. package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
  747. package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
  748. package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
  749. package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
  750. package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
  752. package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
  753. package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
  755. package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
  757. package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
  758. package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
  759. package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
  760. package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
  761. package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
  762. package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
  763. package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
  764. package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
  765. package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
  766. package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
  769. package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
  770. package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
  771. package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
  772. package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
  773. package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
  774. package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
  775. package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
  776. package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
  777. package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
  778. package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
  779. package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
  780. package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
  781. package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
  782. package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
  783. package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
  784. package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
  785. package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
  786. package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
  787. package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
  788. package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
  789. package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
  790. package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
  791. package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
  792. package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
  793. package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
  794. package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
  795. package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
  796. package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
  797. package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
  798. package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
  799. package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
  801. package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
  802. package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
  807. package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
  808. package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
  809. package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
  810. package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
  811. package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
  812. package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
  813. package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
  814. package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
  815. package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
  816. package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
  817. package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
  818. package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
  819. package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
  820. package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
  821. package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
  823. package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
  824. package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
  825. package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
  826. package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
  827. package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
  828. package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
  829. package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
  831. package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
  832. package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
  833. package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
  834. package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
  835. package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
  836. package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
  838. package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
  839. package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
  840. package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
  841. package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
  842. package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
  843. package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
  844. package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
  847. package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
  848. package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
  849. package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
  850. package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
  852. package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
  853. package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
  855. package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
  856. package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
  857. package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
  858. package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
  859. package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
  861. package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
  864. package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
  865. package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
  866. package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
  867. package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
  868. package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
  869. package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
  871. package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
  872. package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
  873. package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
  874. package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
  876. package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
  877. package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
  879. package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
  880. package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
  881. package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
  882. package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
  883. package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
  884. package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
  885. package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
  886. package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
  887. package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
  889. package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
  891. package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
  892. package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
  893. package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
  896. package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
  897. package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
  898. package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
  899. package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
  900. package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
  901. package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
  902. package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
  904. package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
  905. /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
@@ -1,6 +0,0 @@
1
- import{gqa as b}from"./cli-0.7.2-5tacs42k.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 x1,oq as y1};
@@ -1,3 +0,0 @@
1
- import{kV as W,pV as p}from"./cli-0.7.2-3s2zd715.mjs";import{P0 as H,R0 as P}from"./cli-0.7.2-pjavf176.mjs";import{Kfa as Z,xfa as M}from"./cli-0.7.2-twx01hwg.mjs";import{bga as q,dga as $,ega as Q,fga as k}from"./cli-0.7.2-pbaedfkk.mjs";import{gqa as Y}from"./cli-0.7.2-5tacs42k.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
- Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
3
- export{K as Zb,X as _b,V as $b,b as ac,O as bc};
@@ -1,2 +0,0 @@
1
- import{wh as v,xh as i}from"./cli-0.7.2-68dn8am7.mjs";import{yh as E,zh as t}from"./cli-0.7.2-se4w3qaw.mjs";import{EW as b,FW as s}from"./cli-0.7.2-55ye29jy.mjs";import{UZ as m,nZ as L,pZ as X}from"./cli-0.7.2-xpw13d73.mjs";import{_1 as $,a2 as F}from"./cli-0.7.2-wmz88sxe.mjs";import{b2 as d}from"./cli-0.7.2-jc7jm1vm.mjs";import{i8 as C,j8 as n}from"./cli-0.7.2-5qd0bn5g.mjs";import{Dea as O,Eea as l,Fea as P,Gea as k,Vea as o}from"./cli-0.7.2-5ca5nqtj.mjs";import{cqa as g,gqa as a}from"./cli-0.7.2-5tacs42k.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
2
- export{Zq as rh,Mq as sh,$q as th};
@@ -1,4 +0,0 @@
1
- import{Id as j,Jd as w,Kd as _,Ld as D,Md as L,Nd as A,Od as O}from"./cli-0.7.2-yeym3pfk.mjs";import{BQ as y,CK as X,DK as I,_o as R,bp as b,lA as W,oA as V,qA as C,zQ as h}from"./cli-0.7.2-520tgkhw.mjs";import{i8 as Q,j8 as N,qea as U,yea as S}from"./cli-0.7.2-5qd0bn5g.mjs";import{$ga as v,Yga as K}from"./cli-0.7.2-kyd7mrxn.mjs";import{eia as x,iia as M}from"./cli-0.7.2-7xfph0pz.mjs";import{Gia as F,zia as B}from"./cli-0.7.2-bttmh4fa.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
2
- `);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
3
- `),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
4
- export{g as a,a as b,i as c,u as d,n as e,r as f};
@@ -1,4 +0,0 @@
1
- import{MD as k,ND as HJ,_o as G,as as D,bp as a,bs as hJ,on as R,pn as BJ}from"./cli-0.7.2-520tgkhw.mjs";import{H6 as bJ,h6 as ZJ,s6 as $J}from"./cli-0.7.2-8qd7xft9.mjs";import{Jba as jJ,N9 as C,O9 as GJ,P9 as h,Q9 as FJ,R9 as u,S9 as kJ,uba as WJ}from"./cli-0.7.2-5qd0bn5g.mjs";import{Kfa as gJ,yfa as x}from"./cli-0.7.2-twx01hwg.mjs";import{bga as q,dga as s,ega as Y,fga as r}from"./cli-0.7.2-pbaedfkk.mjs";import{Iga as M,Nga as yJ}from"./cli-0.7.2-dzt53r0y.mjs";import{Bha as l,Cha as TJ,lha as o,mha as CJ,vha as n,wha as EJ}from"./cli-0.7.2-cqqj8v1e.mjs";import{Zja as c,_ja as OJ,bka as H,boa as QJ,cka as F,dka as I,eka as YJ,fja as g,fka as P,gja as zJ,gka as XJ,hja as A,ija as wJ,tja as f,uja as PJ,xoa as mJ}from"./cli-0.7.2-5yrman6f.mjs";import{Goa as K,Hoa as DJ}from"./cli-0.7.2-bd97qyyb.mjs";import{gqa as B}from"./cli-0.7.2-5tacs42k.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
- ${Q}
3
- </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
- export{NQ as Jf,_J as Kf,JJ as Lf,bQ as Mf,uQ as Nf,cJ as Of,iQ as Pf,oJ as Qf};
@@ -1,2 +0,0 @@
1
- import{KS as N,LS as p,MS as F,OS as U,PS as A}from"./cli-0.7.2-tytdzgnc.mjs";import{$6 as k,I6 as L,J6 as P,M6 as O,O6 as V,Y6 as x,_6 as H}from"./cli-0.7.2-8pfcc363.mjs";import{Aba as Y,Jba as K,U_ as I,Uca as M,W_ as D,uba as X,zca as Z}from"./cli-0.7.2-5qd0bn5g.mjs";import{Mia as $,Wia as b}from"./cli-0.7.2-wk3m6ndw.mjs";import{gqa as G}from"./cli-0.7.2-5tacs42k.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
2
- export{r as Cc,g as Dc,j as Ec};
@@ -1,2 +0,0 @@
1
- import{Ga as S}from"./cli-0.7.2-q9twb2tn.mjs";import{Ia as c}from"./cli-0.7.2-hvk7rgt3.mjs";import{od as P,sd as Vq}from"./cli-0.7.2-81s45w7r.mjs";import{wd as I,xd as v,yd as $,zd as Wq}from"./cli-0.7.2-sr9m45tm.mjs";import{AJ as Qq,Bt as N,CE as M,Ct as e,DE as Jq,RK as f,Ro as C,To as r,UK as Tq,hu as L,iu as qq,mu as h,ou as Bq,wv as A,xv as _,zJ as E,zv as Gq}from"./cli-0.7.2-520tgkhw.mjs";import{b2 as s}from"./cli-0.7.2-jc7jm1vm.mjs";import{c_ as w,e_ as t,qea as F,v8 as D,x8 as n,yea as a}from"./cli-0.7.2-5qd0bn5g.mjs";import{$ga as d,Yga as x}from"./cli-0.7.2-kyd7mrxn.mjs";import{$ha as j,cia as o}from"./cli-0.7.2-cqqj8v1e.mjs";import{Gia as l,yia as y}from"./cli-0.7.2-bttmh4fa.mjs";import{cqa as p}from"./cli-0.7.2-5tacs42k.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{Lq as Fa};
@@ -1,2 +0,0 @@
1
- import{CU as u,lU as k,mU as f}from"./cli-0.7.2-gssxkynf.mjs";import{AW as d,oW as C}from"./cli-0.7.2-ngdtr2fz.mjs";import{u2 as A,w2 as F}from"./cli-0.7.2-xced0m7v.mjs";import{S2 as q,X2 as i}from"./cli-0.7.2-8qd7xft9.mjs";import{$6 as I,L6 as W,O6 as _,V6 as j,W6 as w}from"./cli-0.7.2-8pfcc363.mjs";import{qea as V,yea as U}from"./cli-0.7.2-5qd0bn5g.mjs";import{Wga as M,Xga as v}from"./cli-0.7.2-0v8f8cx4.mjs";import{$ha as J,Eha as X,Fha as R,Jha as p,cia as x}from"./cli-0.7.2-cqqj8v1e.mjs";import{Gia as T,zia as P}from"./cli-0.7.2-bttmh4fa.mjs";import{hqa as O}from"./cli-0.7.2-5tacs42k.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-0.7.2-j420s6rc.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
- export{b as T,$z as U,Xz as V,Wz as W,Lz as X};
@@ -1,2 +0,0 @@
1
- import{Tca as G,Uca as h,Yca as v,Zca as P,eda as k,qda as f,wca as M,zca as L}from"./cli-0.7.2-5qd0bn5g.mjs";import{Oga as E,Xga as x}from"./cli-0.7.2-0v8f8cx4.mjs";import{Jia as T,Wia as u}from"./cli-0.7.2-wk3m6ndw.mjs";import{gqa as C}from"./cli-0.7.2-5tacs42k.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
- export{Vj as sc,Wj as tc,e as uc,Xj as vc,Yj as wc,jj as xc};
@@ -1,8 +0,0 @@
1
- import{Ra as b}from"./cli-0.7.2-d5fbych4.mjs";import{$e as zK,ef as dK}from"./cli-0.7.2-tx2rxhrx.mjs";import{Bm as rz,CK as tz,DK as pK,Dm as bK,ES as j,Eo as M,Fo as vK,Fw as xK,GS as uK,Ho as iz,Lo as SK,SK as ez,UK as cK,bO as Ez,jJ as wz,kO as FK,nA as oz,pA as sz,qA as fK,rI as hK,rJ as MK,sI as mK,yw as Cz}from"./cli-0.7.2-520tgkhw.mjs";import{CX as Kz,HX as AK,IX as Qz,JX as GK}from"./cli-0.7.2-xpw13d73.mjs";import{H4 as Uz,H6 as xz,I4 as lz,O4 as Dz,S2 as U,T4 as I,V4 as _z,X2 as O,_4 as k,j5 as nz,n5 as jK,t6 as Tz,v6 as Mz,x6 as R}from"./cli-0.7.2-8qd7xft9.mjs";import{b7 as G,c7 as _K}from"./cli-0.7.2-2rj33835.mjs";import{Aba as kz,Dba as Jz,Fca as Wz,Gca as Bz,H_ as t,Hca as az,Jba as _,M_ as LK,S_ as e,T8 as $z,Uca as L,V8 as TK,W_ as UK,a9 as cz,b$ as zz,d$ as DK,n8 as Zz,o8 as RK,q9 as dz,qca as gz,qea as V,uba as q,v8 as T,wba as H,wca as $,x8 as CK,x9 as EK,yba as uz,yea as A,zba as S,zca as W}from"./cli-0.7.2-5qd0bn5g.mjs";import{_ea as E,dfa as kK}from"./cli-0.7.2-5ca5nqtj.mjs";import{iga as pz,jga as PK}from"./cli-0.7.2-dzt53r0y.mjs";import{$ga as N,Yga as Z}from"./cli-0.7.2-kyd7mrxn.mjs";import{Hha as r,Jha as WK,Kha as i,Nha as o,Rha as BK}from"./cli-0.7.2-cqqj8v1e.mjs";import{hia as s,iia as NK}from"./cli-0.7.2-7xfph0pz.mjs";import{Bia as n,Gia as VK,zia as y}from"./cli-0.7.2-bttmh4fa.mjs";import{Lia as C,Mia as v,Oia as hz,Uia as mz,Wia as yK}from"./cli-0.7.2-wk3m6ndw.mjs";import{Gma as a,Lla as Iz,Mla as bz,Nla as Oz,Pla as vz,Zma as l,nma as Sz,rka as F,vka as JK,xoa as w,zma as fz}from"./cli-0.7.2-5yrman6f.mjs";import{dqa as wK}from"./cli-0.7.2-5tacs42k.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
2
- `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
3
- `)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
4
- `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
5
- `)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
- `);return[K,Q].filter(Boolean).join(`
7
- `)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
8
- export{ZQ as x,$Q as y,qQ as z,HQ as A,nX as B,rX as C,iX as D,oX as E,sX as F,tX as G,eX as H,zY as I,KY as J,QY as K};
@@ -1,2 +0,0 @@
1
- import{v8 as B,x8 as p}from"./cli-0.7.2-5qd0bn5g.mjs";import{$ga as y,Yga as C}from"./cli-0.7.2-kyd7mrxn.mjs";import{$ha as V,Fha as T,Jha as x,cia as M}from"./cli-0.7.2-cqqj8v1e.mjs";import{Gia as c,zia as L}from"./cli-0.7.2-bttmh4fa.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
- export{E as ub,I as vb};
@@ -1,2 +0,0 @@
1
- import{UX as O}from"./cli-0.7.2-xpw13d73.mjs";import{_1 as X,a2 as Q}from"./cli-0.7.2-wmz88sxe.mjs";import{b2 as b}from"./cli-0.7.2-jc7jm1vm.mjs";import{Gca as W,Uca as P}from"./cli-0.7.2-5qd0bn5g.mjs";import{cqa as U}from"./cli-0.7.2-5tacs42k.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
- export{V as Ob,C as Pb};
@@ -1,2 +0,0 @@
1
- import{fqa as Q,gqa as U}from"./cli-0.7.2-5tacs42k.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
- export{K as Ppa,w as Qpa,L as Rpa};
@@ -1,2 +0,0 @@
1
- import{of as R,qf as d}from"./cli-0.7.2-ygx94a70.mjs";import{T0 as j,W0 as c}from"./cli-0.7.2-89wj5h3q.mjs";import{$ha as K,cia as D}from"./cli-0.7.2-cqqj8v1e.mjs";import{Gia as h,zia as C}from"./cli-0.7.2-bttmh4fa.mjs";import{gqa as I,hqa as J}from"./cli-0.7.2-5tacs42k.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.7.2-x29x49yh.mjs"),{getOrganizationUUID:Z}=await import("./client-0.7.2-5ayk0kpq.mjs"),{getOauthConfig:V}=await import("./oauth-0.7.2-ze80cmtw.mjs"),{getOAuthHeaders:P}=await import("./api-0.7.2-gwy9gs1j.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.7.2-xgsqcqxv.mjs"),{getDefaultBranch:_}=await import("./git-0.7.2-9f7gvn9h.mjs"),{getMainLoopModel:M}=await import("./model-0.7.2-c8esc658.mjs"),{default:T}=await import("./index-0.7.2-r0zwxc1g.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.7.2-xgsqcqxv.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.2-x29x49yh.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.2-5ayk0kpq.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.2-ze80cmtw.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.2-gwy9gs1j.mjs"),{default:G}=await import("./index-0.7.2-r0zwxc1g.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.2-x29x49yh.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.2-5ayk0kpq.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.2-ze80cmtw.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.2-gwy9gs1j.mjs"),{default:G}=await import("./index-0.7.2-r0zwxc1g.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.7.2-x29x49yh.mjs"),{getOrganizationUUID:Y}=await import("./client-0.7.2-5ayk0kpq.mjs"),{getOauthConfig:z}=await import("./oauth-0.7.2-ze80cmtw.mjs"),{getOAuthHeaders:G}=await import("./api-0.7.2-gwy9gs1j.mjs"),{default:L}=await import("./index-0.7.2-r0zwxc1g.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
- export{i as ff,r as gf,t as hf,o as if,p as jf};
@@ -1,2 +0,0 @@
1
- import{gqa as q}from"./cli-0.7.2-5tacs42k.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
- export{x as Xd,y as Yd,w as Zd};
@@ -1,2 +0,0 @@
1
- import{$N as f,Gw as T,aO as L,dC as K,fC as I,gC as _,iC as p,kO as r,mB as P,sB as b,vQ as i,yB as j}from"./cli-0.7.2-520tgkhw.mjs";import{GU as A,HU as n}from"./cli-0.7.2-ds7h4ntr.mjs";import{$ga as C,Yga as E}from"./cli-0.7.2-kyd7mrxn.mjs";import{$ha as Z,Nha as M,Rha as m,cha as F,cia as u,eha as S}from"./cli-0.7.2-cqqj8v1e.mjs";import{$na as v,wka as Y,xka as k,xoa as c}from"./cli-0.7.2-5yrman6f.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
- export{Zq as Qa};
@@ -1,26 +0,0 @@
1
- class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
2
- - a short flag is a single dash and a single character
3
- - either use a single dash and a single character (for a short flag)
4
- - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
5
- - too many short flags`);if(Y.test($))throw Error(`${_}
6
- - too many long flags`);throw Error(`${_}
7
- - unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
8
- `)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
9
- `+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
10
- ${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
11
- `)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
12
- (Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
13
- (Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
14
- - specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
15
- Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
16
- - already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
17
- - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
18
- - if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
19
- - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
20
- - ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
21
- `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
22
- `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
23
- `),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
24
- `),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
25
- Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
26
- `)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as i,S as j,E as k};
@@ -1,2 +0,0 @@
1
- import{gqa as V}from"./cli-0.7.2-5tacs42k.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
2
- export{U0 as yoa,E0 as zoa,I0 as Aoa,D0 as Boa,b as Coa,T as Doa,K as Eoa,z as Foa,B as Goa,x as Hoa,k as Ioa,m as Joa,G as Koa,O as Loa,y as Moa,l as Noa,o as Ooa,i as Poa,D as Qoa,R as Roa,x0 as Soa,O0 as Toa,M as Uoa,p0 as Voa,j6 as Woa,nq as Xoa};