@claudiolabs/claudin 0.6.1 → 0.6.2

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 (851) hide show
  1. package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +1 -0
  2. package/dist/chunks/App-0.6.2-81hq55t1.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +3 -0
  10. package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +1 -0
  11. package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +1 -0
  16. package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +1 -0
  17. package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +1 -0
  18. package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +1 -0
  26. package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +1 -0
  27. package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +1 -0
  28. package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +1 -0
  29. package/dist/chunks/agents-0.6.2-pwkawpda.mjs +110 -0
  30. package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +3 -0
  31. package/dist/chunks/api-0.6.2-r9z30232.mjs +1 -0
  32. package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +1 -0
  33. package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +1 -0
  34. package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +1 -0
  35. package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +1 -0
  36. package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +48 -0
  37. package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +1 -0
  38. package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +1 -0
  39. package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +1 -0
  41. package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +1 -0
  42. package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +3 -0
  43. package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +1 -0
  44. package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +21 -0
  45. package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +4 -0
  46. package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +1 -0
  48. package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +1 -0
  49. package/dist/chunks/clear-0.6.2-301n503a.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +1 -0
  51. package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +42 -0
  52. package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +4 -0
  53. package/dist/chunks/cli-0.6.2-0p39svq8.mjs +2 -0
  54. package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +2 -0
  55. package/dist/chunks/cli-0.6.2-1ahapm20.mjs +2 -0
  56. package/dist/chunks/cli-0.6.2-1b9hx344.mjs +2 -0
  57. package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +2 -0
  58. package/dist/chunks/cli-0.6.2-1hrabb68.mjs +3 -0
  59. package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +9 -0
  60. package/dist/chunks/cli-0.6.2-1y907j57.mjs +2 -0
  61. package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +2 -0
  62. package/dist/chunks/cli-0.6.2-26qywcgz.mjs +2 -0
  63. package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +2 -0
  64. package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +3 -0
  65. package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +2 -0
  66. package/dist/chunks/cli-0.6.2-2z19ppek.mjs +15 -0
  67. package/dist/chunks/cli-0.6.2-334vw6ys.mjs +2 -0
  68. package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +2 -0
  69. package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +2 -0
  70. package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +2 -0
  71. package/dist/chunks/cli-0.6.2-42d88f3r.mjs +2 -0
  72. package/dist/chunks/cli-0.6.2-43f0sknv.mjs +2 -0
  73. package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +2 -0
  74. package/dist/chunks/cli-0.6.2-4a5t390f.mjs +2 -0
  75. package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +15 -0
  76. package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +2 -0
  77. package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +39 -0
  78. package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +5323 -0
  79. package/dist/chunks/cli-0.6.2-4py7r63v.mjs +2 -0
  80. package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +59 -0
  81. package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +2 -0
  82. package/dist/chunks/cli-0.6.2-5jempndm.mjs +133 -0
  83. package/dist/chunks/cli-0.6.2-657fbmws.mjs +2 -0
  84. package/dist/chunks/cli-0.6.2-6bacgc39.mjs +3 -0
  85. package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +5 -0
  86. package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +2 -0
  87. package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +3 -0
  88. package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +3 -0
  89. package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +4 -0
  90. package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +2 -0
  91. package/dist/chunks/cli-0.6.2-7egesyh9.mjs +4 -0
  92. package/dist/chunks/cli-0.6.2-7rmm482v.mjs +12 -0
  93. package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +2 -0
  94. package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +25 -0
  95. package/dist/chunks/cli-0.6.2-83ennmm8.mjs +21 -0
  96. package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +2 -0
  97. package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +5 -0
  98. package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +10 -0
  99. package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +2 -0
  100. package/dist/chunks/cli-0.6.2-974c5e67.mjs +9 -0
  101. package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +2 -0
  102. package/dist/chunks/cli-0.6.2-9mwrq250.mjs +3 -0
  103. package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +2 -0
  104. package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +2 -0
  105. package/dist/chunks/cli-0.6.2-9qtj477e.mjs +2 -0
  106. package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +2 -0
  107. package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +4 -0
  108. package/dist/chunks/cli-0.6.2-a8atyp18.mjs +2 -0
  109. package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +2 -0
  110. package/dist/chunks/cli-0.6.2-aq30pg47.mjs +2 -0
  111. package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +6 -0
  112. package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +2 -0
  113. package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +2 -0
  114. package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +2 -0
  115. package/dist/chunks/cli-0.6.2-bkff60ff.mjs +2 -0
  116. package/dist/chunks/cli-0.6.2-br678d1b.mjs +8 -0
  117. package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +2 -0
  118. package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +2 -0
  119. package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +2 -0
  120. package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +4 -0
  121. package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +2 -0
  122. package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +2 -0
  123. package/dist/chunks/cli-0.6.2-d3evezft.mjs +1 -0
  124. package/dist/chunks/cli-0.6.2-d3y2w089.mjs +2 -0
  125. package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +2 -0
  126. package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +12 -0
  127. package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +2 -0
  128. package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +2 -0
  129. package/dist/chunks/cli-0.6.2-dv8abe56.mjs +7 -0
  130. package/dist/chunks/cli-0.6.2-dx6qfese.mjs +2 -0
  131. package/dist/chunks/cli-0.6.2-dy4zwces.mjs +2 -0
  132. package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +2 -0
  133. package/dist/chunks/cli-0.6.2-e26khw0m.mjs +6 -0
  134. package/dist/chunks/cli-0.6.2-e66qz53g.mjs +2 -0
  135. package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +16 -0
  136. package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +45 -0
  137. package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +5 -0
  138. package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +2 -0
  139. package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +2 -0
  140. package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +2 -0
  141. package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +2 -0
  142. package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +2 -0
  143. package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +6 -0
  144. package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +2 -0
  145. package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +2 -0
  146. package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +2 -0
  147. package/dist/chunks/cli-0.6.2-grf75vb7.mjs +2 -0
  148. package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +2 -0
  149. package/dist/chunks/cli-0.6.2-h72p44ws.mjs +24 -0
  150. package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +2 -0
  151. package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +193 -0
  152. package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +2 -0
  153. package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +2 -0
  154. package/dist/chunks/cli-0.6.2-hqmcear6.mjs +2 -0
  155. package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +34 -0
  156. package/dist/chunks/cli-0.6.2-j05kmd43.mjs +2 -0
  157. package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +2 -0
  158. package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +2 -0
  159. package/dist/chunks/cli-0.6.2-jrb4f391.mjs +15 -0
  160. package/dist/chunks/cli-0.6.2-jrpted0b.mjs +2 -0
  161. package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +2 -0
  162. package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +2 -0
  163. package/dist/chunks/cli-0.6.2-k9v931hm.mjs +2 -0
  164. package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +2 -0
  165. package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +2 -0
  166. package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +4 -0
  167. package/dist/chunks/cli-0.6.2-ky1drj50.mjs +2 -0
  168. package/dist/chunks/cli-0.6.2-mabejxsw.mjs +4 -0
  169. package/dist/chunks/cli-0.6.2-majp93c4.mjs +2 -0
  170. package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +2 -0
  171. package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +3 -0
  172. package/dist/chunks/cli-0.6.2-n9610c8k.mjs +2 -0
  173. package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +2 -0
  174. package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +2 -0
  175. package/dist/chunks/cli-0.6.2-nwzye174.mjs +2 -0
  176. package/dist/chunks/cli-0.6.2-p0jszyht.mjs +3 -0
  177. package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +58 -0
  178. package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +2 -0
  179. package/dist/chunks/cli-0.6.2-q45wdma3.mjs +3 -0
  180. package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +2 -0
  181. package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +2 -0
  182. package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +2 -0
  183. package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +2 -0
  184. package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +2 -0
  185. package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +2 -0
  186. package/dist/chunks/cli-0.6.2-r4p904h3.mjs +67 -0
  187. package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +2 -0
  188. package/dist/chunks/cli-0.6.2-rde30n8x.mjs +2 -0
  189. package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +2 -0
  190. package/dist/chunks/cli-0.6.2-red287ya.mjs +2 -0
  191. package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +2 -0
  192. package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +2 -0
  193. package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +17 -0
  194. package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +24 -0
  195. package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +2 -0
  196. package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +2 -0
  197. package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +2 -0
  198. package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +2 -0
  199. package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +2 -0
  200. package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +133 -0
  201. package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +2 -0
  202. package/dist/chunks/cli-0.6.2-t038jmme.mjs +3 -0
  203. package/dist/chunks/cli-0.6.2-t3e59m32.mjs +2 -0
  204. package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +2 -0
  205. package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +2 -0
  206. package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +2 -0
  207. package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +2 -0
  208. package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +50 -0
  209. package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +20 -0
  210. package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +2 -0
  211. package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +2 -0
  212. package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +2 -0
  213. package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +2 -0
  214. package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +2 -0
  215. package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +18 -0
  216. package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +2 -0
  217. package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +3 -0
  218. package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +2 -0
  219. package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +2 -0
  220. package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +12 -0
  221. package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +2 -0
  222. package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +2 -0
  223. package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +18 -0
  224. package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +2 -0
  225. package/dist/chunks/cli-0.6.2-yep449sd.mjs +17 -0
  226. package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +2 -0
  227. package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +2 -0
  228. package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +4 -0
  229. package/dist/chunks/cli-0.6.2-yysvdabq.mjs +2 -0
  230. package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +4 -0
  231. package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +3 -0
  232. package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +4 -0
  233. package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +2 -0
  234. package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +18 -0
  235. package/dist/chunks/cli-0.6.2-zaahyems.mjs +2 -0
  236. package/dist/chunks/cli-0.6.2-zftyh47j.mjs +2 -0
  237. package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +2 -0
  238. package/dist/chunks/cli-0.6.2-zs4qp487.mjs +2 -0
  239. package/dist/chunks/client-0.6.2-8b0s065m.mjs +1 -0
  240. package/dist/chunks/color-0.6.2-jza3jez4.mjs +1 -0
  241. package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +3 -0
  242. package/dist/chunks/config-0.6.2-qjwjrd75.mjs +1 -0
  243. package/dist/chunks/config-0.6.2-xac3sjb7.mjs +1 -0
  244. package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +1 -0
  245. package/dist/chunks/context-0.6.2-w965073f.mjs +1 -0
  246. package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +1 -0
  247. package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +1 -0
  248. package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +1 -0
  249. package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +9 -0
  250. package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +1 -0
  251. package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +1 -0
  252. package/dist/chunks/createSession-0.6.2-axgp009k.mjs +1 -0
  253. package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +1 -0
  254. package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +1365 -0
  255. package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +1 -0
  257. package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +1 -0
  258. package/dist/chunks/diff-0.6.2-md180qh9.mjs +1 -0
  259. package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +1 -0
  260. package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +1 -0
  262. package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +10 -0
  263. package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +1 -0
  264. package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +1 -0
  265. package/dist/chunks/environments-0.6.2-fe197syt.mjs +1 -0
  266. package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +1 -0
  267. package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +1 -0
  268. package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +1 -0
  269. package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +2 -0
  270. package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +1 -0
  271. package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +1 -0
  272. package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +1 -0
  273. package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +14 -0
  274. package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +1 -0
  275. package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +1 -0
  277. package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +4 -0
  278. package/dist/chunks/grove-0.6.2-a2wgccag.mjs +1 -0
  279. package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +1 -0
  280. package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +2 -0
  281. package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +6 -0
  282. package/dist/chunks/help-0.6.2-c49svpae.mjs +1 -0
  283. package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +3 -0
  284. package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +1 -0
  285. package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +79 -0
  286. package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +3 -0
  287. package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +1 -0
  288. package/dist/chunks/index-0.6.2-1kk3erm5.mjs +9 -0
  289. package/dist/chunks/index-0.6.2-21nak3ad.mjs +1 -0
  290. package/dist/chunks/index-0.6.2-2vns8v9p.mjs +1 -0
  291. package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +1 -0
  292. package/dist/chunks/index-0.6.2-3g92ew8z.mjs +1 -0
  293. package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +1 -0
  294. package/dist/chunks/index-0.6.2-88m8k4cp.mjs +1 -0
  295. package/dist/chunks/index-0.6.2-93bh3w93.mjs +1 -0
  296. package/dist/chunks/index-0.6.2-9e0qz384.mjs +1 -0
  297. package/dist/chunks/index-0.6.2-emm65q8h.mjs +17 -0
  298. package/dist/chunks/index-0.6.2-ff57yvh3.mjs +1 -0
  299. package/dist/chunks/index-0.6.2-g6xy97jv.mjs +1 -0
  300. package/dist/chunks/index-0.6.2-h37g7n0s.mjs +9 -0
  301. package/dist/chunks/index-0.6.2-h8jkf613.mjs +5 -0
  302. package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +1 -0
  303. package/dist/chunks/index-0.6.2-jw83xhc8.mjs +2 -0
  304. package/dist/chunks/index-0.6.2-mehn31e3.mjs +30 -0
  305. package/dist/chunks/index-0.6.2-naw1d8mg.mjs +2 -0
  306. package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +1 -0
  307. package/dist/chunks/index-0.6.2-qn0re7sj.mjs +1 -0
  308. package/dist/chunks/index-0.6.2-tftj6wdh.mjs +1 -0
  309. package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +1 -0
  310. package/dist/chunks/init-0.6.2-47k2caay.mjs +1 -0
  311. package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +1 -0
  312. package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +1 -0
  313. package/dist/chunks/insights-0.6.2-st861yg4.mjs +870 -0
  314. package/dist/chunks/install-0.6.2-webkhwz9.mjs +1 -0
  315. package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +149 -0
  316. package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +1 -0
  317. package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +1 -0
  318. package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +1 -0
  319. package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +2 -0
  320. package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +2 -0
  321. package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +1 -0
  322. package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +1 -0
  323. package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +1 -0
  324. package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +1 -0
  325. package/dist/chunks/log-0.6.2-h02k5q0p.mjs +1 -0
  326. package/dist/chunks/main-0.6.2-51xvrsbq.mjs +1 -0
  327. package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +1 -0
  328. package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +17 -0
  329. package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +4 -0
  330. package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +1 -0
  331. package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +1 -0
  332. package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +3 -0
  333. package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +2 -0
  334. package/dist/chunks/model-0.6.2-49f9g2vz.mjs +2 -0
  335. package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +1 -0
  336. package/dist/chunks/node-0.6.2-40bknjza.mjs +12 -0
  337. package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +1 -0
  338. package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +14 -0
  339. package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +1 -0
  340. package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +1 -0
  341. package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +1 -0
  342. package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +1 -0
  343. package/dist/chunks/passes-0.6.2-kadygcw6.mjs +1 -0
  344. package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +3 -0
  345. package/dist/chunks/plan-0.6.2-hzbsezab.mjs +1 -0
  346. package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +1 -0
  347. package/dist/chunks/plugin-0.6.2-pr48413e.mjs +29 -0
  348. package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +1 -0
  349. package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +9 -0
  350. package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +2 -0
  351. package/dist/chunks/print-0.6.2-ng7p0m66.mjs +57 -0
  352. package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +1 -0
  353. package/dist/chunks/process-0.6.2-7k26fk4b.mjs +1 -0
  354. package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +1 -0
  355. package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +9 -0
  356. package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +1 -0
  357. package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +1 -0
  358. package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +1 -0
  359. package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +13 -0
  360. package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +2 -0
  361. package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +1 -0
  362. package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +6 -0
  363. package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +1 -0
  364. package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +34 -0
  365. package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +1 -0
  366. package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +5 -0
  367. package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +2 -0
  368. package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +1 -0
  369. package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +1 -0
  370. package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +1 -0
  371. package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +1 -0
  372. package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +1 -0
  373. package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +1 -0
  374. package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +2 -0
  375. package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +1 -0
  376. package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +1 -0
  377. package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +1 -0
  378. package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +1 -0
  379. package/dist/chunks/session-0.6.2-k41jbqwf.mjs +2 -0
  380. package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +1 -0
  381. package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +1 -0
  382. package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +1 -0
  383. package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +1 -0
  384. package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +5 -0
  385. package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +1 -0
  386. package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +1 -0
  387. package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +1 -0
  388. package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +1 -0
  389. package/dist/chunks/state-0.6.2-nymhw7ey.mjs +1 -0
  390. package/dist/chunks/stats-0.6.2-skm9nakv.mjs +6 -0
  391. package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +1 -0
  392. package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +1 -0
  393. package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +1 -0
  394. package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +1 -0
  395. package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +1 -0
  396. package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +1 -0
  397. package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +1 -0
  398. package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +1 -0
  399. package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +1 -0
  400. package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +1 -0
  401. package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +1 -0
  402. package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +1 -0
  403. package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +1 -0
  404. package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +1 -0
  405. package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +1 -0
  406. package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +69 -0
  407. package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +4 -0
  408. package/dist/chunks/update-0.6.2-p8edrwg4.mjs +86 -0
  409. package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +1 -0
  410. package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +14 -0
  411. package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +1 -0
  412. package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +1 -0
  413. package/dist/chunks/util-0.6.2-yet75ms4.mjs +1 -0
  414. package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +1 -0
  415. package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +1 -0
  416. package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +1 -0
  417. package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +132 -0
  418. package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +1 -0
  419. package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +1 -0
  420. package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +7 -0
  421. package/dist/claudin-vscode.vsix +0 -0
  422. package/dist/cli.mjs +2 -2
  423. package/package.json +1 -1
  424. package/dist/chunks/AgentTool-0.6.1-2b9yaj35.mjs +0 -1
  425. package/dist/chunks/App-0.6.1-sqd9wgy4.mjs +0 -1
  426. package/dist/chunks/ApproveApiKey-0.6.1-baj4maw0.mjs +0 -1
  427. package/dist/chunks/AssistantSessionChooser-0.6.1-77f308qc.mjs +0 -1
  428. package/dist/chunks/AutoModeOptInDialog-0.6.1-q2fa8wy9.mjs +0 -1
  429. package/dist/chunks/BypassPermissionsModeDialog-0.6.1-vj7zarcr.mjs +0 -1
  430. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.1-ywjkq6yd.mjs +0 -1
  431. package/dist/chunks/ConsoleOAuthFlow-0.6.1-7092d0jn.mjs +0 -1
  432. package/dist/chunks/DiffDialog-0.6.1-43pkwyjr.mjs +0 -3
  433. package/dist/chunks/Doctor-0.6.1-cptm2pha.mjs +0 -1
  434. package/dist/chunks/Grove-0.6.1-ty02ny05.mjs +0 -1
  435. package/dist/chunks/ITermBackend-0.6.1-hhbm7qhe.mjs +0 -1
  436. package/dist/chunks/InvalidConfigDialog-0.6.1-2r03697h.mjs +0 -1
  437. package/dist/chunks/InvalidSettingsDialog-0.6.1-fz8qbmrm.mjs +0 -1
  438. package/dist/chunks/MigrationDialog-0.6.1-f184vmmc.mjs +0 -1
  439. package/dist/chunks/Onboarding-0.6.1-k9r90dkb.mjs +0 -1
  440. package/dist/chunks/ProviderManager-0.6.1-k9cepg1h.mjs +0 -1
  441. package/dist/chunks/REPL-0.6.1-v3fvm99r.mjs +0 -1
  442. package/dist/chunks/ResumeConversation-0.6.1-4rzcxbm0.mjs +0 -1
  443. package/dist/chunks/SnapshotUpdateDialog-0.6.1-3tfkf2r1.mjs +0 -1
  444. package/dist/chunks/TeleportProgress-0.6.1-6sxb0xve.mjs +0 -1
  445. package/dist/chunks/TeleportRepoMismatchDialog-0.6.1-ct0aebdh.mjs +0 -1
  446. package/dist/chunks/TeleportResumeWrapper-0.6.1-rby53r9t.mjs +0 -1
  447. package/dist/chunks/TmuxBackend-0.6.1-aha1d4jg.mjs +0 -9
  448. package/dist/chunks/ToolSearchTool-0.6.1-wyvd75qb.mjs +0 -1
  449. package/dist/chunks/TrustDialog-0.6.1-0dxgmy9j.mjs +0 -1
  450. package/dist/chunks/activeProvider-0.6.1-edcjn35d.mjs +0 -1
  451. package/dist/chunks/add-dir-0.6.1-vbry4cq5.mjs +0 -1
  452. package/dist/chunks/agents-0.6.1-6g7eqc6g.mjs +0 -3
  453. package/dist/chunks/agents-0.6.1-bmw6yemz.mjs +0 -110
  454. package/dist/chunks/api-0.6.1-p90y28ss.mjs +0 -1
  455. package/dist/chunks/asciicast-0.6.1-dvny24yw.mjs +0 -1
  456. package/dist/chunks/assistant-0.6.1-c7xjeve6.mjs +0 -1
  457. package/dist/chunks/auth-0.6.1-qmmqr4a0.mjs +0 -1
  458. package/dist/chunks/auth-0.6.1-zmzs34rx.mjs +0 -1
  459. package/dist/chunks/autoMode-0.6.1-bcye95b8.mjs +0 -48
  460. package/dist/chunks/autoUpdater-0.6.1-477zfmqr.mjs +0 -1
  461. package/dist/chunks/backgroundHousekeeping-0.6.1-6c0npbxs.mjs +0 -1
  462. package/dist/chunks/branch-0.6.1-x2xgjxty.mjs +0 -4
  463. package/dist/chunks/bridgePointer-0.6.1-6mp5c94p.mjs +0 -1
  464. package/dist/chunks/btw-0.6.1-0vee5vec.mjs +0 -1
  465. package/dist/chunks/buddy-0.6.1-10x5b5m0.mjs +0 -3
  466. package/dist/chunks/cacache-0.6.1-t6wndp6s.mjs +0 -1
  467. package/dist/chunks/cache-probe-0.6.1-kb2vnp2j.mjs +0 -21
  468. package/dist/chunks/cacheStats-0.6.1-wa9ng3pv.mjs +0 -4
  469. package/dist/chunks/caches-0.6.1-h39v3a02.mjs +0 -1
  470. package/dist/chunks/claudeDesktop-0.6.1-gsfj6bp7.mjs +0 -1
  471. package/dist/chunks/claudemd-0.6.1-bp7xc2mx.mjs +0 -1
  472. package/dist/chunks/clear-0.6.1-ct2r7t9t.mjs +0 -1
  473. package/dist/chunks/clearTerminal-0.6.1-6gr2k1tw.mjs +0 -1
  474. package/dist/chunks/cli-0.6.1-0agnsggr.mjs +0 -2
  475. package/dist/chunks/cli-0.6.1-0bqe4byy.mjs +0 -2
  476. package/dist/chunks/cli-0.6.1-0f7jh20f.mjs +0 -2
  477. package/dist/chunks/cli-0.6.1-0jy2jkq4.mjs +0 -15
  478. package/dist/chunks/cli-0.6.1-0pwatab1.mjs +0 -2
  479. package/dist/chunks/cli-0.6.1-0r6z6t9d.mjs +0 -2
  480. package/dist/chunks/cli-0.6.1-0z6pdqg3.mjs +0 -2
  481. package/dist/chunks/cli-0.6.1-1a523nkb.mjs +0 -2
  482. package/dist/chunks/cli-0.6.1-1k359w9m.mjs +0 -2
  483. package/dist/chunks/cli-0.6.1-1n5ek5r5.mjs +0 -2
  484. package/dist/chunks/cli-0.6.1-22ayz1qb.mjs +0 -133
  485. package/dist/chunks/cli-0.6.1-24tz9gwy.mjs +0 -2
  486. package/dist/chunks/cli-0.6.1-263k8zfv.mjs +0 -24
  487. package/dist/chunks/cli-0.6.1-2avp7x48.mjs +0 -2
  488. package/dist/chunks/cli-0.6.1-2sc0f0mb.mjs +0 -2
  489. package/dist/chunks/cli-0.6.1-2wfbdh6y.mjs +0 -6
  490. package/dist/chunks/cli-0.6.1-2wy35yyy.mjs +0 -20
  491. package/dist/chunks/cli-0.6.1-2zh54t3f.mjs +0 -2
  492. package/dist/chunks/cli-0.6.1-39s97gy4.mjs +0 -2
  493. package/dist/chunks/cli-0.6.1-39t9nckk.mjs +0 -2
  494. package/dist/chunks/cli-0.6.1-3c4bskq1.mjs +0 -2
  495. package/dist/chunks/cli-0.6.1-3jfbggrv.mjs +0 -18
  496. package/dist/chunks/cli-0.6.1-3nvnx582.mjs +0 -2
  497. package/dist/chunks/cli-0.6.1-3r1egjh5.mjs +0 -3
  498. package/dist/chunks/cli-0.6.1-3x2x8nsx.mjs +0 -2
  499. package/dist/chunks/cli-0.6.1-3xsbth8a.mjs +0 -2
  500. package/dist/chunks/cli-0.6.1-481efx1c.mjs +0 -3
  501. package/dist/chunks/cli-0.6.1-481k0n0b.mjs +0 -2
  502. package/dist/chunks/cli-0.6.1-4argxq2y.mjs +0 -2
  503. package/dist/chunks/cli-0.6.1-4fjwfatp.mjs +0 -2
  504. package/dist/chunks/cli-0.6.1-4r2x7kmj.mjs +0 -12
  505. package/dist/chunks/cli-0.6.1-51sp0g9f.mjs +0 -25
  506. package/dist/chunks/cli-0.6.1-57gxa3fn.mjs +0 -2
  507. package/dist/chunks/cli-0.6.1-59957axm.mjs +0 -2
  508. package/dist/chunks/cli-0.6.1-5gcjed1z.mjs +0 -2
  509. package/dist/chunks/cli-0.6.1-5m3ph8yr.mjs +0 -2
  510. package/dist/chunks/cli-0.6.1-5pwj3d7r.mjs +0 -6
  511. package/dist/chunks/cli-0.6.1-5qttbnpm.mjs +0 -2
  512. package/dist/chunks/cli-0.6.1-5qyw0ayj.mjs +0 -24
  513. package/dist/chunks/cli-0.6.1-5rb1fsaa.mjs +0 -2
  514. package/dist/chunks/cli-0.6.1-5sj9ea9y.mjs +0 -4
  515. package/dist/chunks/cli-0.6.1-60wfpc5c.mjs +0 -2
  516. package/dist/chunks/cli-0.6.1-6erz0ahq.mjs +0 -18
  517. package/dist/chunks/cli-0.6.1-6rspq12f.mjs +0 -2
  518. package/dist/chunks/cli-0.6.1-6xr6nx71.mjs +0 -2
  519. package/dist/chunks/cli-0.6.1-7b4bmf31.mjs +0 -2
  520. package/dist/chunks/cli-0.6.1-7hcdhx2y.mjs +0 -2
  521. package/dist/chunks/cli-0.6.1-7mnw60rd.mjs +0 -2
  522. package/dist/chunks/cli-0.6.1-7rde0hat.mjs +0 -1
  523. package/dist/chunks/cli-0.6.1-85mcqw66.mjs +0 -2
  524. package/dist/chunks/cli-0.6.1-8djfzern.mjs +0 -2
  525. package/dist/chunks/cli-0.6.1-8fpj913g.mjs +0 -2
  526. package/dist/chunks/cli-0.6.1-8x7dm6mk.mjs +0 -3
  527. package/dist/chunks/cli-0.6.1-8y4y6nv3.mjs +0 -2
  528. package/dist/chunks/cli-0.6.1-94k5k8gj.mjs +0 -2
  529. package/dist/chunks/cli-0.6.1-9j0tzj57.mjs +0 -3
  530. package/dist/chunks/cli-0.6.1-9kse9m13.mjs +0 -12
  531. package/dist/chunks/cli-0.6.1-9m3tqqvw.mjs +0 -2
  532. package/dist/chunks/cli-0.6.1-9te6kt3m.mjs +0 -2
  533. package/dist/chunks/cli-0.6.1-a2tyzbp4.mjs +0 -9
  534. package/dist/chunks/cli-0.6.1-a7130ntd.mjs +0 -2
  535. package/dist/chunks/cli-0.6.1-agqm0wsp.mjs +0 -2
  536. package/dist/chunks/cli-0.6.1-amg1caaz.mjs +0 -2
  537. package/dist/chunks/cli-0.6.1-as4q7dcy.mjs +0 -2
  538. package/dist/chunks/cli-0.6.1-aw7t5zg2.mjs +0 -5322
  539. package/dist/chunks/cli-0.6.1-ay9b7nme.mjs +0 -2
  540. package/dist/chunks/cli-0.6.1-b0cyn50w.mjs +0 -45
  541. package/dist/chunks/cli-0.6.1-bak7jvd3.mjs +0 -2
  542. package/dist/chunks/cli-0.6.1-bk01taq5.mjs +0 -2
  543. package/dist/chunks/cli-0.6.1-bn89zt4s.mjs +0 -2
  544. package/dist/chunks/cli-0.6.1-bp0mdayc.mjs +0 -2
  545. package/dist/chunks/cli-0.6.1-bx5g1s5d.mjs +0 -21
  546. package/dist/chunks/cli-0.6.1-bygvqehn.mjs +0 -2
  547. package/dist/chunks/cli-0.6.1-c10fzbkx.mjs +0 -4
  548. package/dist/chunks/cli-0.6.1-c2scacda.mjs +0 -10
  549. package/dist/chunks/cli-0.6.1-c494rthj.mjs +0 -2
  550. package/dist/chunks/cli-0.6.1-cb15wwgj.mjs +0 -2
  551. package/dist/chunks/cli-0.6.1-cntxcs18.mjs +0 -2
  552. package/dist/chunks/cli-0.6.1-cyesbyzb.mjs +0 -2
  553. package/dist/chunks/cli-0.6.1-dbk7et0y.mjs +0 -3
  554. package/dist/chunks/cli-0.6.1-dq9trhqw.mjs +0 -2
  555. package/dist/chunks/cli-0.6.1-dsry83zd.mjs +0 -2
  556. package/dist/chunks/cli-0.6.1-e895xgfg.mjs +0 -2
  557. package/dist/chunks/cli-0.6.1-eaf4rwyc.mjs +0 -4
  558. package/dist/chunks/cli-0.6.1-egwp1swr.mjs +0 -3
  559. package/dist/chunks/cli-0.6.1-ehdz64pd.mjs +0 -15
  560. package/dist/chunks/cli-0.6.1-ersr5ygq.mjs +0 -2
  561. package/dist/chunks/cli-0.6.1-ewkq3bnm.mjs +0 -2
  562. package/dist/chunks/cli-0.6.1-f7gt1c0a.mjs +0 -2
  563. package/dist/chunks/cli-0.6.1-fc2ewzw4.mjs +0 -2
  564. package/dist/chunks/cli-0.6.1-fc3sjkr8.mjs +0 -2
  565. package/dist/chunks/cli-0.6.1-fez41x44.mjs +0 -2
  566. package/dist/chunks/cli-0.6.1-fgnbf5bf.mjs +0 -2
  567. package/dist/chunks/cli-0.6.1-fpj8wpjs.mjs +0 -39
  568. package/dist/chunks/cli-0.6.1-fq7f4jb5.mjs +0 -2
  569. package/dist/chunks/cli-0.6.1-fzkdgcv3.mjs +0 -3
  570. package/dist/chunks/cli-0.6.1-gctajvvw.mjs +0 -4
  571. package/dist/chunks/cli-0.6.1-gdpgyrvw.mjs +0 -2
  572. package/dist/chunks/cli-0.6.1-gqhwqmhd.mjs +0 -12
  573. package/dist/chunks/cli-0.6.1-h0rn9sr9.mjs +0 -2
  574. package/dist/chunks/cli-0.6.1-h379gj9d.mjs +0 -2
  575. package/dist/chunks/cli-0.6.1-h757m4m8.mjs +0 -2
  576. package/dist/chunks/cli-0.6.1-hgctsdgg.mjs +0 -2
  577. package/dist/chunks/cli-0.6.1-hgz08acq.mjs +0 -16
  578. package/dist/chunks/cli-0.6.1-hj8ew2yx.mjs +0 -2
  579. package/dist/chunks/cli-0.6.1-hrnyr65b.mjs +0 -5
  580. package/dist/chunks/cli-0.6.1-j4akqyey.mjs +0 -2
  581. package/dist/chunks/cli-0.6.1-j8nqjtw2.mjs +0 -59
  582. package/dist/chunks/cli-0.6.1-jb3djqjh.mjs +0 -2
  583. package/dist/chunks/cli-0.6.1-jca1jhwf.mjs +0 -2
  584. package/dist/chunks/cli-0.6.1-je6nv7n6.mjs +0 -67
  585. package/dist/chunks/cli-0.6.1-jy43zg5q.mjs +0 -2
  586. package/dist/chunks/cli-0.6.1-jyw27bnr.mjs +0 -2
  587. package/dist/chunks/cli-0.6.1-k0sj08eq.mjs +0 -2
  588. package/dist/chunks/cli-0.6.1-katpz9mk.mjs +0 -2
  589. package/dist/chunks/cli-0.6.1-kfy009df.mjs +0 -2
  590. package/dist/chunks/cli-0.6.1-krcqab65.mjs +0 -18
  591. package/dist/chunks/cli-0.6.1-ksvftj0q.mjs +0 -2
  592. package/dist/chunks/cli-0.6.1-n7yfhpx0.mjs +0 -34
  593. package/dist/chunks/cli-0.6.1-n93sg062.mjs +0 -3
  594. package/dist/chunks/cli-0.6.1-ne71q1ht.mjs +0 -2
  595. package/dist/chunks/cli-0.6.1-nen4rh8r.mjs +0 -2
  596. package/dist/chunks/cli-0.6.1-nj1fz1ee.mjs +0 -2
  597. package/dist/chunks/cli-0.6.1-nk615t5t.mjs +0 -2
  598. package/dist/chunks/cli-0.6.1-np8mapek.mjs +0 -2
  599. package/dist/chunks/cli-0.6.1-nx5jm8nf.mjs +0 -3
  600. package/dist/chunks/cli-0.6.1-p94mckzz.mjs +0 -2
  601. package/dist/chunks/cli-0.6.1-pkqzm2ty.mjs +0 -5
  602. package/dist/chunks/cli-0.6.1-qdytg688.mjs +0 -2
  603. package/dist/chunks/cli-0.6.1-qftnyx2b.mjs +0 -2
  604. package/dist/chunks/cli-0.6.1-qk3v8fwe.mjs +0 -4
  605. package/dist/chunks/cli-0.6.1-qqtj12xs.mjs +0 -9
  606. package/dist/chunks/cli-0.6.1-qre0g1ag.mjs +0 -2
  607. package/dist/chunks/cli-0.6.1-qsq2xg3g.mjs +0 -4
  608. package/dist/chunks/cli-0.6.1-rjp543r8.mjs +0 -42
  609. package/dist/chunks/cli-0.6.1-rsa7f7a3.mjs +0 -2
  610. package/dist/chunks/cli-0.6.1-s13hz2xf.mjs +0 -2
  611. package/dist/chunks/cli-0.6.1-s1snv8wb.mjs +0 -2
  612. package/dist/chunks/cli-0.6.1-sbqpxvzz.mjs +0 -2
  613. package/dist/chunks/cli-0.6.1-sgm15vmv.mjs +0 -2
  614. package/dist/chunks/cli-0.6.1-sq2cnxjs.mjs +0 -2
  615. package/dist/chunks/cli-0.6.1-sq5qhzhn.mjs +0 -8
  616. package/dist/chunks/cli-0.6.1-srah4vag.mjs +0 -2
  617. package/dist/chunks/cli-0.6.1-svkrdf57.mjs +0 -2
  618. package/dist/chunks/cli-0.6.1-syhvjk64.mjs +0 -2
  619. package/dist/chunks/cli-0.6.1-t35v9gfs.mjs +0 -2
  620. package/dist/chunks/cli-0.6.1-taw5rdf2.mjs +0 -50
  621. package/dist/chunks/cli-0.6.1-tkjavmyv.mjs +0 -5
  622. package/dist/chunks/cli-0.6.1-trn8t31z.mjs +0 -2
  623. package/dist/chunks/cli-0.6.1-ttxz68nf.mjs +0 -58
  624. package/dist/chunks/cli-0.6.1-tx5cxejc.mjs +0 -3
  625. package/dist/chunks/cli-0.6.1-v15rcvwv.mjs +0 -2
  626. package/dist/chunks/cli-0.6.1-v39bx87n.mjs +0 -2
  627. package/dist/chunks/cli-0.6.1-v7m7rsb0.mjs +0 -2
  628. package/dist/chunks/cli-0.6.1-v95z8p88.mjs +0 -2
  629. package/dist/chunks/cli-0.6.1-vcgwtxe8.mjs +0 -133
  630. package/dist/chunks/cli-0.6.1-vep0hgj0.mjs +0 -2
  631. package/dist/chunks/cli-0.6.1-vgj2ekm4.mjs +0 -2
  632. package/dist/chunks/cli-0.6.1-vgznt46g.mjs +0 -2
  633. package/dist/chunks/cli-0.6.1-vkd5hcb8.mjs +0 -2
  634. package/dist/chunks/cli-0.6.1-vr6dwhw0.mjs +0 -17
  635. package/dist/chunks/cli-0.6.1-vvycdrz3.mjs +0 -2
  636. package/dist/chunks/cli-0.6.1-vz6zhwrs.mjs +0 -2
  637. package/dist/chunks/cli-0.6.1-w9afetc8.mjs +0 -2
  638. package/dist/chunks/cli-0.6.1-wz2nkwz1.mjs +0 -4
  639. package/dist/chunks/cli-0.6.1-x25mwydc.mjs +0 -2
  640. package/dist/chunks/cli-0.6.1-x3sm4qwg.mjs +0 -2
  641. package/dist/chunks/cli-0.6.1-x4kttrew.mjs +0 -2
  642. package/dist/chunks/cli-0.6.1-x5fsjhh0.mjs +0 -3
  643. package/dist/chunks/cli-0.6.1-xcamy4zk.mjs +0 -2
  644. package/dist/chunks/cli-0.6.1-xhm4pfg5.mjs +0 -2
  645. package/dist/chunks/cli-0.6.1-xk82vgbd.mjs +0 -2
  646. package/dist/chunks/cli-0.6.1-xn6xkj8r.mjs +0 -17
  647. package/dist/chunks/cli-0.6.1-xpqybxb3.mjs +0 -6
  648. package/dist/chunks/cli-0.6.1-y15p20f4.mjs +0 -7
  649. package/dist/chunks/cli-0.6.1-yafngt11.mjs +0 -4
  650. package/dist/chunks/cli-0.6.1-ybch0rz5.mjs +0 -193
  651. package/dist/chunks/cli-0.6.1-yjn2sk7y.mjs +0 -2
  652. package/dist/chunks/cli-0.6.1-ysqzwf65.mjs +0 -2
  653. package/dist/chunks/cli-0.6.1-yxv8jw6e.mjs +0 -3
  654. package/dist/chunks/cli-0.6.1-z11x4s9s.mjs +0 -4
  655. package/dist/chunks/cli-0.6.1-zac9yqwp.mjs +0 -2
  656. package/dist/chunks/cli-0.6.1-zdetqpgd.mjs +0 -2
  657. package/dist/chunks/cli-0.6.1-zerz57mn.mjs +0 -4
  658. package/dist/chunks/cli-0.6.1-zkz3hp6v.mjs +0 -2
  659. package/dist/chunks/cli-0.6.1-zp8yt3me.mjs +0 -2
  660. package/dist/chunks/cli-0.6.1-zscfe2d6.mjs +0 -2
  661. package/dist/chunks/cli-0.6.1-zznedec0.mjs +0 -15
  662. package/dist/chunks/client-0.6.1-f1wz818f.mjs +0 -1
  663. package/dist/chunks/color-0.6.1-39x5mjrw.mjs +0 -1
  664. package/dist/chunks/compact-0.6.1-qmw1c0k5.mjs +0 -3
  665. package/dist/chunks/config-0.6.1-0sgd8g9c.mjs +0 -1
  666. package/dist/chunks/config-0.6.1-jtzeeq94.mjs +0 -1
  667. package/dist/chunks/constants-0.6.1-x7zzrahn.mjs +0 -1
  668. package/dist/chunks/context-0.6.1-91fk726f.mjs +0 -1
  669. package/dist/chunks/context-noninteractive-0.6.1-w6v2qm5p.mjs +0 -1
  670. package/dist/chunks/conversation-0.6.1-s8pkny9g.mjs +0 -1
  671. package/dist/chunks/copilotHeaders-0.6.1-5qr59e2q.mjs +0 -1
  672. package/dist/chunks/copy-0.6.1-hj7kkkb0.mjs +0 -9
  673. package/dist/chunks/cost-0.6.1-qfwk0ft6.mjs +0 -1
  674. package/dist/chunks/createSSHSession-0.6.1-8pxajawh.mjs +0 -1
  675. package/dist/chunks/createSession-0.6.1-23bnms7y.mjs +0 -1
  676. package/dist/chunks/debug-0.6.1-r42ensd9.mjs +0 -1
  677. package/dist/chunks/defaultActionDeps-0.6.1-hsssc0vk.mjs +0 -1365
  678. package/dist/chunks/desktop-0.6.1-7bxmq0nj.mjs +0 -1
  679. package/dist/chunks/detectRepository-0.6.1-e5c2p61b.mjs +0 -1
  680. package/dist/chunks/detection-0.6.1-htd79a96.mjs +0 -1
  681. package/dist/chunks/diff-0.6.1-vk9z6wqg.mjs +0 -1
  682. package/dist/chunks/doctor-0.6.1-0vcg8q42.mjs +0 -1
  683. package/dist/chunks/doctorDiagnostic-0.6.1-5ag5mgxk.mjs +0 -1
  684. package/dist/chunks/earlyInput-0.6.1-ackq9kf1.mjs +0 -1
  685. package/dist/chunks/effort-0.6.1-j6f1gp2z.mjs +0 -10
  686. package/dist/chunks/envUtils-0.6.1-9m48026q.mjs +0 -1
  687. package/dist/chunks/environmentSelection-0.6.1-vg5vgac7.mjs +0 -1
  688. package/dist/chunks/environments-0.6.1-pdexpf06.mjs +0 -1
  689. package/dist/chunks/errors-0.6.1-4v305q50.mjs +0 -1
  690. package/dist/chunks/exampleCommands-0.6.1-38stg387.mjs +0 -1
  691. package/dist/chunks/exit-0.6.1-mktwwvyj.mjs +0 -1
  692. package/dist/chunks/export-0.6.1-zc1hfk24.mjs +0 -2
  693. package/dist/chunks/extra-usage-0.6.1-wd89f315.mjs +0 -1
  694. package/dist/chunks/extra-usage-noninteractive-0.6.1-t7dbhvyj.mjs +0 -1
  695. package/dist/chunks/fast-0.6.1-r6b8a0jx.mjs +0 -1
  696. package/dist/chunks/feedback-0.6.1-318aqn49.mjs +0 -14
  697. package/dist/chunks/firstPartyEventLogger-0.6.1-fd6ha0k4.mjs +0 -1
  698. package/dist/chunks/git-0.6.1-7ttpbhwc.mjs +0 -1
  699. package/dist/chunks/githubModelsCredentials-0.6.1-9ds8a7fr.mjs +0 -1
  700. package/dist/chunks/goal-0.6.1-qh393evm.mjs +0 -4
  701. package/dist/chunks/grove-0.6.1-r5vxxzjz.mjs +0 -1
  702. package/dist/chunks/growthbook-0.6.1-md0gf7ks.mjs +0 -1
  703. package/dist/chunks/headless-0.6.1-h7011eeb.mjs +0 -2
  704. package/dist/chunks/heapdump-0.6.1-jx537rkx.mjs +0 -6
  705. package/dist/chunks/help-0.6.1-fw6h8sky.mjs +0 -1
  706. package/dist/chunks/hookChains-0.6.1-rkbx2t08.mjs +0 -3
  707. package/dist/chunks/hooks-0.6.1-91f4dj33.mjs +0 -1
  708. package/dist/chunks/hooks-0.6.1-dnspnhgd.mjs +0 -79
  709. package/dist/chunks/ide-0.6.1-hh533s3f.mjs +0 -3
  710. package/dist/chunks/image-processor-napi-0.6.1-3xp446fk.mjs +0 -1
  711. package/dist/chunks/index-0.6.1-09g2rewq.mjs +0 -1
  712. package/dist/chunks/index-0.6.1-0c57bpxq.mjs +0 -5
  713. package/dist/chunks/index-0.6.1-0grk74h7.mjs +0 -1
  714. package/dist/chunks/index-0.6.1-0vyqysww.mjs +0 -1
  715. package/dist/chunks/index-0.6.1-14xdd101.mjs +0 -1
  716. package/dist/chunks/index-0.6.1-3y22dzck.mjs +0 -1
  717. package/dist/chunks/index-0.6.1-5hede59y.mjs +0 -1
  718. package/dist/chunks/index-0.6.1-6vg6rzs0.mjs +0 -1
  719. package/dist/chunks/index-0.6.1-93zddsg2.mjs +0 -1
  720. package/dist/chunks/index-0.6.1-9w2d7p1e.mjs +0 -1
  721. package/dist/chunks/index-0.6.1-b8yv5gy2.mjs +0 -9
  722. package/dist/chunks/index-0.6.1-d7vyz56s.mjs +0 -17
  723. package/dist/chunks/index-0.6.1-dx12abyz.mjs +0 -1
  724. package/dist/chunks/index-0.6.1-f8srt3s7.mjs +0 -1
  725. package/dist/chunks/index-0.6.1-fd7pn0sn.mjs +0 -1
  726. package/dist/chunks/index-0.6.1-h8zv2k0g.mjs +0 -30
  727. package/dist/chunks/index-0.6.1-hfzesfbt.mjs +0 -1
  728. package/dist/chunks/index-0.6.1-r75bspk7.mjs +0 -2
  729. package/dist/chunks/index-0.6.1-t8sgq6bc.mjs +0 -1
  730. package/dist/chunks/index-0.6.1-vqtjqmqh.mjs +0 -9
  731. package/dist/chunks/index-0.6.1-wpz2sj28.mjs +0 -2
  732. package/dist/chunks/index-0.6.1-y6b4meqt.mjs +0 -1
  733. package/dist/chunks/init-0.6.1-0d45p8bb.mjs +0 -1
  734. package/dist/chunks/initReplBridge-0.6.1-x10y77yb.mjs +0 -1
  735. package/dist/chunks/ink-0.6.1-frjecwrb.mjs +0 -1
  736. package/dist/chunks/insights-0.6.1-jfq7b6tw.mjs +0 -870
  737. package/dist/chunks/install-0.6.1-egwy09ax.mjs +0 -1
  738. package/dist/chunks/install-github-app-0.6.1-0weabx7j.mjs +0 -149
  739. package/dist/chunks/install-slack-app-0.6.1-1y33208g.mjs +0 -1
  740. package/dist/chunks/instrumentation-0.6.1-q16b8vzj.mjs +0 -1
  741. package/dist/chunks/interactiveHelpers-0.6.1-vadchdt4.mjs +0 -1
  742. package/dist/chunks/keybindings-0.6.1-mxntktr5.mjs +0 -2
  743. package/dist/chunks/knowledge-0.6.1-3xqwg7qm.mjs +0 -2
  744. package/dist/chunks/latestVersionCache-0.6.1-900swz28.mjs +0 -1
  745. package/dist/chunks/loadAgentsDir-0.6.1-4kmt7rg0.mjs +0 -1
  746. package/dist/chunks/loadPluginHooks-0.6.1-q16r2b1a.mjs +0 -1
  747. package/dist/chunks/loadPluginHooks-0.6.1-smdakskd.mjs +0 -1
  748. package/dist/chunks/log-0.6.1-k5w8v9b7.mjs +0 -1
  749. package/dist/chunks/main-0.6.1-v5q5kdjt.mjs +0 -1
  750. package/dist/chunks/managedEnv-0.6.1-x9wyzt74.mjs +0 -1
  751. package/dist/chunks/mcp-0.6.1-06zc97m0.mjs +0 -4
  752. package/dist/chunks/mcp-0.6.1-sp1gzne1.mjs +0 -1
  753. package/dist/chunks/mcp-0.6.1-yfzfbpgf.mjs +0 -17
  754. package/dist/chunks/mcpb-0.6.1-e6wqpjjr.mjs +0 -1
  755. package/dist/chunks/memory-0.6.1-197wbyh9.mjs +0 -3
  756. package/dist/chunks/mobile-0.6.1-p623pybm.mjs +0 -2
  757. package/dist/chunks/model-0.6.1-fzqfznkt.mjs +0 -2
  758. package/dist/chunks/model-0.6.1-hkw4jq8s.mjs +0 -1
  759. package/dist/chunks/node-0.6.1-1zzbgn75.mjs +0 -12
  760. package/dist/chunks/oauth-0.6.1-j5fet3d4.mjs +0 -1
  761. package/dist/chunks/openaiShim-0.6.1-hcjz6jw0.mjs +0 -14
  762. package/dist/chunks/output-style-0.6.1-nd3zbark.mjs +0 -1
  763. package/dist/chunks/package-D6422PQU-0.6.1-v7kakn1v.mjs +0 -1
  764. package/dist/chunks/parseConnectUrl-0.6.1-ejn7xha9.mjs +0 -1
  765. package/dist/chunks/parser-0.6.1-fp8tsr8z.mjs +0 -1
  766. package/dist/chunks/passes-0.6.1-mdsmrywr.mjs +0 -1
  767. package/dist/chunks/permissions-0.6.1-b7hww4nq.mjs +0 -3
  768. package/dist/chunks/plan-0.6.1-r0w4htej.mjs +0 -1
  769. package/dist/chunks/plist-0.6.1-xe8jtnxk.mjs +0 -1
  770. package/dist/chunks/plugin-0.6.1-4p7wpc14.mjs +0 -29
  771. package/dist/chunks/pluginStartupCheck-0.6.1-gt4eypw9.mjs +0 -1
  772. package/dist/chunks/plugins-0.6.1-3zsktaas.mjs +0 -9
  773. package/dist/chunks/preActionHook-0.6.1-78da30nj.mjs +0 -2
  774. package/dist/chunks/print-0.6.1-xbgj0g80.mjs +0 -57
  775. package/dist/chunks/privacy-settings-0.6.1-nnhvq7b2.mjs +0 -1
  776. package/dist/chunks/process-0.6.1-fx7x9r07.mjs +0 -1
  777. package/dist/chunks/processBashCommand-0.6.1-bdscj4y4.mjs +0 -1
  778. package/dist/chunks/processSlashCommand-0.6.1-tf3bkmyy.mjs +0 -9
  779. package/dist/chunks/prompt-0.6.1-3dnt3zey.mjs +0 -1
  780. package/dist/chunks/prompt-0.6.1-e3bbvmwk.mjs +0 -1
  781. package/dist/chunks/prompts-0.6.1-xf5gjw54.mjs +0 -1
  782. package/dist/chunks/protocolHandler-0.6.1-3x1y3rds.mjs +0 -13
  783. package/dist/chunks/provider-0.6.1-9645a8j1.mjs +0 -2
  784. package/dist/chunks/providerProfiles-0.6.1-rvwkz6ak.mjs +0 -1
  785. package/dist/chunks/providerValidation-0.6.1-vj6yhn15.mjs +0 -6
  786. package/dist/chunks/rate-limit-options-0.6.1-zedhbgar.mjs +0 -1
  787. package/dist/chunks/registerSubcommands-0.6.1-07hhytjp.mjs +0 -34
  788. package/dist/chunks/registry-0.6.1-j5gr410a.mjs +0 -1
  789. package/dist/chunks/release-notes-0.6.1-g9gvekqx.mjs +0 -5
  790. package/dist/chunks/reload-plugins-0.6.1-h895km4v.mjs +0 -2
  791. package/dist/chunks/remote-env-0.6.1-prvyvph7.mjs +0 -1
  792. package/dist/chunks/remoteBridgeCore-0.6.1-repc3wzt.mjs +0 -1
  793. package/dist/chunks/remoteSession-0.6.1-sy45mthq.mjs +0 -1
  794. package/dist/chunks/rename-0.6.1-mbf64z4s.mjs +0 -1
  795. package/dist/chunks/replBridgeHandle-0.6.1-vh85gp20.mjs +0 -1
  796. package/dist/chunks/replLauncher-0.6.1-4h94vpmh.mjs +0 -1
  797. package/dist/chunks/resume-0.6.1-c4m2tsz1.mjs +0 -2
  798. package/dist/chunks/rewind-0.6.1-rwc9yc72.mjs +0 -1
  799. package/dist/chunks/rootOptions-0.6.1-qrzakwkb.mjs +0 -1
  800. package/dist/chunks/sandbox-adapter-0.6.1-g2cqqkbq.mjs +0 -1
  801. package/dist/chunks/sandbox-toggle-0.6.1-h0t8vrsp.mjs +0 -1
  802. package/dist/chunks/session-0.6.1-z2z0v2b2.mjs +0 -2
  803. package/dist/chunks/sessionDiscovery-0.6.1-zwyhdetk.mjs +0 -1
  804. package/dist/chunks/sessionFileAccessHooks-0.6.1-sa1zcdy1.mjs +0 -1
  805. package/dist/chunks/sessionStorage-0.6.1-3kwfwm9f.mjs +0 -1
  806. package/dist/chunks/settings-0.6.1-nkp3cfkx.mjs +0 -1
  807. package/dist/chunks/setup-0.6.1-ye3h2662.mjs +0 -5
  808. package/dist/chunks/sinks-0.6.1-aj971rff.mjs +0 -1
  809. package/dist/chunks/skills-0.6.1-rg44nb1f.mjs +0 -1
  810. package/dist/chunks/startupProfiler-0.6.1-wmynctg8.mjs +0 -1
  811. package/dist/chunks/startupUpdateCheck-0.6.1-w1296eb6.mjs +0 -1
  812. package/dist/chunks/state-0.6.1-xeb3g7ee.mjs +0 -1
  813. package/dist/chunks/stats-0.6.1-b809msg3.mjs +0 -6
  814. package/dist/chunks/status-0.6.1-qgzafsnk.mjs +0 -1
  815. package/dist/chunks/stickers-0.6.1-mvc1yhza.mjs +0 -1
  816. package/dist/chunks/subprocessEnv-0.6.1-p24f3mb2.mjs +0 -1
  817. package/dist/chunks/tasks-0.6.1-6mkyp39c.mjs +0 -1
  818. package/dist/chunks/teamHelpers-0.6.1-5y5q1d5a.mjs +0 -1
  819. package/dist/chunks/teammateModeSnapshot-0.6.1-ctbnrn7g.mjs +0 -1
  820. package/dist/chunks/teleport-0.6.1-snck0mt3.mjs +0 -1
  821. package/dist/chunks/terminalSetup-0.6.1-grwmkggx.mjs +0 -1
  822. package/dist/chunks/theme-0.6.1-nkn391vp.mjs +0 -1
  823. package/dist/chunks/thinkback-0.6.1-w3e30qga.mjs +0 -1
  824. package/dist/chunks/thinkback-play-0.6.1-xtt1h9bj.mjs +0 -1
  825. package/dist/chunks/toolPool-0.6.1-k6p9m933.mjs +0 -1
  826. package/dist/chunks/toolSearch-0.6.1-hf1m96t5.mjs +0 -1
  827. package/dist/chunks/tools-0.6.1-k1he8tf4.mjs +0 -1
  828. package/dist/chunks/trustedDevice-0.6.1-jp75s058.mjs +0 -1
  829. package/dist/chunks/turndown.cjs-0.6.1-nbyhbfxh.mjs +0 -69
  830. package/dist/chunks/ultrareviewCommand-0.6.1-wt29n8f8.mjs +0 -4
  831. package/dist/chunks/update-0.6.1-nhyb2p18.mjs +0 -86
  832. package/dist/chunks/upgrade-0.6.1-bsgbm532.mjs +0 -1
  833. package/dist/chunks/upstreamproxy-0.6.1-tv3yt8kf.mjs +0 -14
  834. package/dist/chunks/url-handler-napi-0.6.1-17xw9yz6.mjs +0 -1
  835. package/dist/chunks/usage-0.6.1-kc6f3g70.mjs +0 -1
  836. package/dist/chunks/util-0.6.1-4tchwwds.mjs +0 -1
  837. package/dist/chunks/utils-0.6.1-b58yrh2f.mjs +0 -1
  838. package/dist/chunks/vim-0.6.1-0epxft4g.mjs +0 -1
  839. package/dist/chunks/watcher-0.6.1-g05xbezn.mjs +0 -1
  840. package/dist/chunks/wiki-0.6.1-d931wde5.mjs +0 -132
  841. package/dist/chunks/worktree-0.6.1-8ebt180m.mjs +0 -1
  842. package/dist/chunks/worktreeModeEnabled-0.6.1-av5mja7y.mjs +0 -1
  843. package/dist/chunks/wrapper-0.6.1-yv9p7ayq.mjs +0 -7
  844. /package/dist/chunks/{cli-0.6.1-ygrfhgb0.mjs → cli-0.6.2-1e5p6hw6.mjs} +0 -0
  845. /package/dist/chunks/{cli-0.6.1-5aftf3q9.mjs → cli-0.6.2-3eaaj6e5.mjs} +0 -0
  846. /package/dist/chunks/{cli-0.6.1-9pfc6b63.mjs → cli-0.6.2-3rgtxc9f.mjs} +0 -0
  847. /package/dist/chunks/{cli-0.6.1-jkwrn2xm.mjs → cli-0.6.2-7p1ykg1m.mjs} +0 -0
  848. /package/dist/chunks/{cli-0.6.1-xz21g65j.mjs → cli-0.6.2-adegz2m3.mjs} +0 -0
  849. /package/dist/chunks/{cli-0.6.1-xv8wfg40.mjs → cli-0.6.2-hb4fz4pd.mjs} +0 -0
  850. /package/dist/chunks/{cli-0.6.1-naw66kt5.mjs → cli-0.6.2-hkgnx8g7.mjs} +0 -0
  851. /package/dist/chunks/{cli-0.6.1-j1raybvn.mjs → cli-0.6.2-qk6j042k.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{MN as Y,Rk as W,Uk as P,Zi as Q,_i as I,tO as R}from"./cli-0.6.1-aw7t5zg2.mjs";import{Lda as B,Mda as f}from"./cli-0.6.1-zerz57mn.mjs";import{Tfa as F,wfa as H,xfa as J}from"./cli-0.6.1-syhvjk64.mjs";import{yna as $,zja as v}from"./cli-0.6.1-xk82vgbd.mjs";import{hpa as Z}from"./cli-0.6.1-9pfc6b63.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
- export{S as $d,V as ae,X as be,r as ce,w as de,T as ee,G as fe};
@@ -1,2 +0,0 @@
1
- import{Pg as v,Qg as jf}from"./cli-0.6.1-e895xgfg.mjs";import{$g as c,bh as bf}from"./cli-0.6.1-3jfbggrv.mjs";import{Bi as w,Ci as e,Ck as Bf,FQ as qf,GQ as p,JC as I,LP as g,Ok as N,QC as $f,Uk as Gf,WO as Uf,YP as S,Yk as L,ak as ff,bk as zf,bl as Jf,br as h,cr as Vf,dQ as l,ft as C,gt as Xf,hk as y,jA as T,kB as u,nB as _f,oi as W,sq as E,tq as P,uO as A,uq as Qf,uv as m,vv as Yf,yA as M,zA as Zf}from"./cli-0.6.1-aw7t5zg2.mjs";import{Ada as R,Ida as s}from"./cli-0.6.1-ybch0rz5.mjs";import{cga as O,ega as t}from"./cli-0.6.1-vz6zhwrs.mjs";import{Aja as q,Fja as x,lma as H,yka as F,yna as a,zja as U}from"./cli-0.6.1-xk82vgbd.mjs";import{epa as K,hpa as o}from"./cli-0.6.1-9pfc6b63.mjs";import{randomUUID as Df}from"crypto";async function cf({setMessages:V,readFileState:k,discoveredSkillNames:d,loadedNestedMemoryPaths:i,getAppState:G,setAppState:J,setConversationId:X}){let Y=A();await T("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(I(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(Df());if(v(Q),M(x()),k.clear(),d?.clear(),i?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(r){R(r)}E(D)}return{...f,tasks:B,attribution:C(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),S(),H(),c();let n=U();q({setCurrentAsParent:!0}),L(n),await g();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(p(),K(qf)),{isCoordinatorMode:B}=(zf(),K(ff));f(B()?"coordinator":"normal")}let b=y();if(b)l(b);let j=await u("clear");if(j.length>0)V(()=>j)}var Kf=o(()=>{a();t();Yf();$f();Vf();e();Xf();Uf();s();bf();Gf();Zf();_f();p();Qf();Jf();Bf();jf()});
2
- export{cf as Ng,Kf as Og};
@@ -1,2 +0,0 @@
1
- import{I0 as N,N0 as $}from"./cli-0.6.1-sbqpxvzz.mjs";import{I1 as L,L1 as Y,Y4 as Z,y4 as M}from"./cli-0.6.1-hgz08acq.mjs";import{Ada as Q,Ida as X}from"./cli-0.6.1-ybch0rz5.mjs";import{aga as J,bga as V}from"./cli-0.6.1-8fpj913g.mjs";import{Fha as S,xha as P}from"./cli-0.6.1-qsq2xg3g.mjs";import{Koa as W,soa as K}from"./cli-0.6.1-krcqab65.mjs";import{hpa as R}from"./cli-0.6.1-9pfc6b63.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{C as vU,j as wU,b as xU};
@@ -1,2 +0,0 @@
1
- import{RW as f}from"./cli-0.6.1-j8nqjtw2.mjs";import{p0 as p,r0 as c}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as M}from"./cli-0.6.1-yjn2sk7y.mjs";import{dpa as o}from"./cli-0.6.1-9pfc6b63.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
- export{a as zb,l as Ab};
@@ -1,6 +0,0 @@
1
- import{hpa as b}from"./cli-0.6.1-9pfc6b63.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 OZ,oq as PZ};
@@ -1,2 +0,0 @@
1
- import{tn as Z,yn as G}from"./cli-0.6.1-aw7t5zg2.mjs";import{Ada as X,Ida as R}from"./cli-0.6.1-ybch0rz5.mjs";import{Jga as v,Kga as B,Oga as A,Sga as C,Wga as M,eha as U,hha as O}from"./cli-0.6.1-2wfbdh6y.mjs";import{hpa as b}from"./cli-0.6.1-9pfc6b63.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
- export{o as Tc,c as Uc,p as Vc,d as Wc,g as Xc,w as Yc};
@@ -1,24 +0,0 @@
1
- import{La as DY}from"./cli-0.6.1-naw66kt5.mjs";import{nc as LY,qc as iQ}from"./cli-0.6.1-gdpgyrvw.mjs";import{ah as V0,bh as p6}from"./cli-0.6.1-3jfbggrv.mjs";import{uh as pY,vh as A6}from"./cli-0.6.1-8y4y6nv3.mjs";import{$v as l0,Ao as iZ,BL as rQ,Bo as AY,Cj as L9,Co as FZ,Dj as u6,Do as _Y,Ej as z9,Fj as q9,GO as rY,Gi as KZ,Gj as bZ,HI as P9,Hj as Y0,IM as dY,Ij as D9,JB as NY,JI as F9,Ji as E0,Jj as XZ,KB as nQ,KM as lY,Kj as Q0,LB as RY,Lj as v9,Mj as A9,NB as z6,NI as M9,NN as s,Nj as sY,OM as w6,Oi as hY,Oy as uY,PO as iY,Pv as h0,Qv as uZ,Qy as v6,RB as n,Rv as k0,Sv as x0,TB as U6,TF as T0,TN as aY,TO as zY,Tv as u0,UF as s9,UI as o6,Uv as p0,Uz as cY,Vv as pZ,Vz as _6,WO as qY,Wv as cZ,Wy as CY,Xn as j9,Xv as c0,Xy as TY,Yn as i6,Yv as m0,Yy as L6,ZH as PY,ZN as nY,Zv as g0,Zz as mY,_N as kZ,_v as d0,_z as O6,aI as J6,aw as a0,bw as n0,cO as xZ,cw as r0,dw as i0,ew as GQ,gE as C0,hE as o9,jl as yZ,ky as xY,lu as I0,ml as $Z,nl as e0,ny as D6,ou as i9,pr as M0,rs as ZY,sr as b0,ss as xQ,tO as wZ,tr as fZ,ts as JY,us as lQ,vs as kY,xB as HY,xr as r9,yB as aQ,zL as BY,zM as gY}from"./cli-0.6.1-aw7t5zg2.mjs";import{QT as Q9,UT as R6}from"./cli-0.6.1-263k8zfv.mjs";import{YU as P0,ZU as a9}from"./cli-0.6.1-j4akqyey.mjs";import{ZV as y0,_V as d9,lW as $0,mW as j0,nW as l9,tW as F0,uW as n9}from"./cli-0.6.1-x25mwydc.mjs";import{RW as m9,RY as g9,kY as p,mY as M}from"./cli-0.6.1-j8nqjtw2.mjs";import{o0 as a,p0 as E,q0 as b,r0 as J0}from"./cli-0.6.1-7mnw60rd.mjs";import{s0 as c9}from"./cli-0.6.1-yjn2sk7y.mjs";import{$3 as jY,B2 as K6,Y4 as G6,x2 as $Y}from"./cli-0.6.1-hgz08acq.mjs";import{A$ as r6,Ada as e,I8 as a6,Ida as w0,J7 as GY,Kaa as yY,L$ as wY,L7 as dQ,M$ as EY,O$ as V6,O9 as n6,R9 as Y9,Taa as W6,W9 as T6,j8 as E9,n9 as TZ,p9 as x9,s9 as y9,t$ as $9,tda as U0,w7 as _Z,wda as p9,x7 as k9}from"./cli-0.6.1-ybch0rz5.mjs";import{$da as L0,Tda as B0,dea as h9}from"./cli-0.6.1-zerz57mn.mjs";import{Nea as Y,Oea as h,Pea as JZ,Qea as q,Rea as EZ}from"./cli-0.6.1-je6nv7n6.mjs";import{afa as oY,lfa as $6}from"./cli-0.6.1-v15rcvwv.mjs";import{Afa as A0,Bfa as _0,Nfa as O0,Tfa as u9,ofa as UY,pfa as X6,rfa as RZ,ufa as z0,vfa as q0,wfa as D0,xfa as v0}from"./cli-0.6.1-syhvjk64.mjs";import{cga as g,ega as UZ}from"./cli-0.6.1-vz6zhwrs.mjs";import{Jga as ZZ,Kga as WY,Oga as PZ,eha as I,hga as Z9,hha as HZ,jga as C6}from"./cli-0.6.1-2wfbdh6y.mjs";import{jha as KY,nha as gQ}from"./cli-0.6.1-jb3djqjh.mjs";import{Fha as lZ,qha as VY,yha as w9,zha as tZ}from"./cli-0.6.1-qsq2xg3g.mjs";import{Fja as W0,Gja as eY,Oka as OY,ema as J9,fma as DZ,gma as H9,ima as N9,jma as X0,lma as B9,vna as IY,yna as BZ,zja as NZ}from"./cli-0.6.1-xk82vgbd.mjs";import{dpa as N0,gpa as hZ,hpa as OZ,ipa as rZ}from"./cli-0.6.1-9pfc6b63.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
2
- ${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
3
- ${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
4
- ${c}
5
- ${R}`);else if(c)z(`Failed to restore the conversation:
6
- ${c}`);else if(R)z(`Failed to restore the code:
7
- ${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-0.6.1-5hede59y.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
- ${K}
13
- ${W.prompt}
14
- ${K}`});return`${X}
15
-
16
- ${V.join(`
17
-
18
- `)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
- `);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
- `)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[aY(`${$}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?lY(A.commandName,V.options.commands):void 0;if(j)if(dY(j))C=!1;else{let N=`/${gY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),nY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.6.1-bdscj4y4.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.6.1-tf3bkmyy.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
24
- export{HV as pa,N6 as qa,OV as ra,e9 as sa,S0 as ta,VQ as ua,WQ as va,KQ as wa,wV as xa,iV as ya,gZ as za,jZ as Aa,QY as Ba,Z6 as Ca,e6 as Da,IW as Ea,M6 as Fa,b6 as Ga,I6 as Ha,g6 as Ia,d6 as Ja,l6 as Ka};
@@ -1,2 +0,0 @@
1
- import{I8 as x,V7 as X,Z7 as k,m8 as Y}from"./cli-0.6.1-ybch0rz5.mjs";import{dea as $}from"./cli-0.6.1-zerz57mn.mjs";import{hpa as Z}from"./cli-0.6.1-9pfc6b63.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
2
- export{H as qb,M as rb};
@@ -1,4 +0,0 @@
1
- import{cpa as Z}from"./cli-0.6.1-vr6dwhw0.mjs";import{fpa as Y,ipa as O}from"./cli-0.6.1-9pfc6b63.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
- export{ye as Xoa};
@@ -1,2 +0,0 @@
1
- import{i7 as Z,m7 as _,n7 as w}from"./cli-0.6.1-bp0mdayc.mjs";import{Gba as W,I8 as T,Jba as V,O9 as D,Y7 as Y,Z7 as U,cca as j,i8 as $,s9 as k}from"./cli-0.6.1-ybch0rz5.mjs";import{eha as N,hha as M}from"./cli-0.6.1-2wfbdh6y.mjs";import{Fja as X,yna as O}from"./cli-0.6.1-xk82vgbd.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
2
- export{b as sb,y as tb,P as ub,d as vb,c as wb};