@claudiolabs/claudin 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (905) hide show
  1. package/README.md +15 -0
  2. package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +1 -0
  3. package/dist/chunks/App-1.1.21-x1hrya65.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +1 -0
  31. package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +3 -0
  32. package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +110 -0
  33. package/dist/chunks/api-1.1.21-g8sbqk15.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +1 -0
  36. package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +1 -0
  37. package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +52 -0
  39. package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +44 -0
  40. package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +1 -0
  42. package/dist/chunks/branch-1.1.21-71gampws.mjs +4 -0
  43. package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +1 -0
  48. package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +1 -0
  49. package/dist/chunks/buddy-1.1.21-74rtch74.mjs +3 -0
  50. package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +4 -0
  52. package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +1 -0
  55. package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +1 -0
  57. package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +2 -0
  58. package/dist/chunks/cli-1.1.21-04brya8b.mjs +2 -0
  59. package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +2 -0
  60. package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +2 -0
  61. package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +2 -0
  62. package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +12 -0
  64. package/dist/chunks/cli-1.1.21-0sqcznka.mjs +4 -0
  65. package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +2 -0
  66. package/dist/chunks/cli-1.1.21-13kr6en7.mjs +2 -0
  67. package/dist/chunks/cli-1.1.21-15f55e7j.mjs +2 -0
  68. package/dist/chunks/cli-1.1.21-1a9968t0.mjs +3 -0
  69. package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +2 -0
  70. package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +2 -0
  71. package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +2 -0
  72. package/dist/chunks/cli-1.1.21-1mxg753a.mjs +2 -0
  73. package/dist/chunks/cli-1.1.21-1y508j57.mjs +2 -0
  74. package/dist/chunks/cli-1.1.21-27a8sw98.mjs +2 -0
  75. package/dist/chunks/cli-1.1.21-29jp27ks.mjs +2 -0
  76. package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +66 -0
  77. package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +3 -0
  78. package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +2 -0
  79. package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +7 -0
  80. package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +2 -0
  81. package/dist/chunks/cli-1.1.21-2txzm68v.mjs +2 -0
  82. package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +15 -0
  83. package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +3 -0
  84. package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +2 -0
  85. package/dist/chunks/cli-1.1.21-3n2szerd.mjs +2 -0
  86. package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +3 -0
  87. package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +2 -0
  88. package/dist/chunks/cli-1.1.21-4010086n.mjs +39 -0
  89. package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +2 -0
  90. package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +2 -0
  91. package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +2 -0
  92. package/dist/chunks/cli-1.1.21-510h0rfd.mjs +2 -0
  93. package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +16 -0
  94. package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +2 -0
  95. package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +2 -0
  96. package/dist/chunks/cli-1.1.21-5znk8g89.mjs +2 -0
  97. package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +2 -0
  98. package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +2 -0
  99. package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +2 -0
  100. package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +2 -0
  101. package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +2 -0
  102. package/dist/chunks/cli-1.1.21-7bq44n89.mjs +2 -0
  103. package/dist/chunks/cli-1.1.21-7fymk48z.mjs +2 -0
  104. package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +2 -0
  105. package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +6 -0
  106. package/dist/chunks/cli-1.1.21-8022a544.mjs +3 -0
  107. package/dist/chunks/cli-1.1.21-811zr6vq.mjs +15 -0
  108. package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +2 -0
  109. package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +133 -0
  111. package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +2 -0
  112. package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +34 -0
  113. package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +4 -0
  114. package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +3 -0
  115. package/dist/chunks/cli-1.1.21-92zh5twv.mjs +2 -0
  116. package/dist/chunks/cli-1.1.21-93zvwec9.mjs +6 -0
  117. package/dist/chunks/cli-1.1.21-9fnv418t.mjs +24 -0
  118. package/dist/chunks/cli-1.1.21-9jq126pc.mjs +2 -0
  119. package/dist/chunks/cli-1.1.21-9za692z5.mjs +2 -0
  120. package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +2 -0
  121. package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +17 -0
  122. package/dist/chunks/cli-1.1.21-admbc6bh.mjs +2 -0
  123. package/dist/chunks/cli-1.1.21-adykpnkk.mjs +2 -0
  124. package/dist/chunks/cli-1.1.21-an07xgtv.mjs +25 -0
  125. package/dist/chunks/cli-1.1.21-arjp8fch.mjs +50 -0
  126. package/dist/chunks/cli-1.1.21-as9g92fa.mjs +4 -0
  127. package/dist/chunks/cli-1.1.21-atvca4b4.mjs +2 -0
  128. package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +133 -0
  129. package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +2 -0
  130. package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +3 -0
  131. package/dist/chunks/cli-1.1.21-b92n11f5.mjs +2 -0
  132. package/dist/chunks/cli-1.1.21-badssmqg.mjs +25 -0
  133. package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +4 -0
  134. package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +2 -0
  135. package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +2 -0
  136. package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +2 -0
  138. package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +24 -0
  139. package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +2 -0
  140. package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +2 -0
  141. package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +2 -0
  142. package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +6 -0
  143. package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +4 -0
  144. package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +2 -0
  145. package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +4 -0
  146. package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +2 -0
  147. package/dist/chunks/cli-1.1.21-ekphtr04.mjs +6 -0
  148. package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +2 -0
  149. package/dist/chunks/cli-1.1.21-er4j34m5.mjs +4 -0
  150. package/dist/chunks/cli-1.1.21-eray52nd.mjs +5426 -0
  151. package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +18 -0
  152. package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +17 -0
  153. package/dist/chunks/cli-1.1.21-f3caatgb.mjs +2 -0
  154. package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +21 -0
  155. package/dist/chunks/cli-1.1.21-fdf1j366.mjs +3 -0
  156. package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +2 -0
  157. package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +24 -0
  158. package/dist/chunks/cli-1.1.21-fyryzam5.mjs +2 -0
  159. package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +3 -0
  160. package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +206 -0
  161. package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +2 -0
  162. package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +6 -0
  163. package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +2 -0
  164. package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +20 -0
  165. package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +2 -0
  166. package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +2 -0
  167. package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +2 -0
  168. package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +2 -0
  169. package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +4 -0
  170. package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +1 -0
  171. package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +2 -0
  172. package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +2 -0
  173. package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +2 -0
  174. package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +2 -0
  175. package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +9 -0
  176. package/dist/chunks/cli-1.1.21-kc7af745.mjs +5 -0
  177. package/dist/chunks/cli-1.1.21-kf8s641e.mjs +2 -0
  178. package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +2 -0
  179. package/dist/chunks/cli-1.1.21-krwdkyza.mjs +18 -0
  180. package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +3 -0
  181. package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +2 -0
  182. package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +2 -0
  183. package/dist/chunks/cli-1.1.21-m84cxaww.mjs +2 -0
  184. package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +3 -0
  185. package/dist/chunks/cli-1.1.21-mysvm055.mjs +8 -0
  186. package/dist/chunks/cli-1.1.21-n00fkex6.mjs +15 -0
  187. package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +2 -0
  188. package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +2 -0
  189. package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +2 -0
  190. package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +2 -0
  191. package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +2 -0
  192. package/dist/chunks/cli-1.1.21-pq9par9t.mjs +2 -0
  193. package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +3 -0
  194. package/dist/chunks/cli-1.1.21-q2k4myze.mjs +2 -0
  195. package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +2 -0
  196. package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +2 -0
  197. package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +2 -0
  198. package/dist/chunks/cli-1.1.21-qs47skyh.mjs +2 -0
  199. package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +2 -0
  200. package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +2 -0
  201. package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +2 -0
  202. package/dist/chunks/cli-1.1.21-r90yap4s.mjs +4 -0
  203. package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +2 -0
  204. package/dist/chunks/cli-1.1.21-rtcccwys.mjs +2 -0
  205. package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +2 -0
  206. package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +2 -0
  207. package/dist/chunks/cli-1.1.21-s076czd6.mjs +60 -0
  208. package/dist/chunks/cli-1.1.21-sa93ge05.mjs +2 -0
  209. package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +2 -0
  210. package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +2 -0
  211. package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +2 -0
  212. package/dist/chunks/cli-1.1.21-st3azfy2.mjs +2 -0
  213. package/dist/chunks/cli-1.1.21-syphtp6b.mjs +2 -0
  214. package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +2 -0
  216. package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +3 -0
  217. package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +12 -0
  218. package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +24 -0
  219. package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +2 -0
  220. package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +2 -0
  221. package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +45 -0
  222. package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +2 -0
  223. package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +2 -0
  224. package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +2 -0
  225. package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +2 -0
  226. package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +2 -0
  227. package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +2 -0
  228. package/dist/chunks/cli-1.1.21-w17d43nx.mjs +2 -0
  229. package/dist/chunks/cli-1.1.21-wermyahx.mjs +2 -0
  230. package/dist/chunks/cli-1.1.21-wq125rgf.mjs +2 -0
  231. package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +2 -0
  232. package/dist/chunks/cli-1.1.21-x34spqyp.mjs +2 -0
  233. package/dist/chunks/cli-1.1.21-x652vc6g.mjs +7 -0
  234. package/dist/chunks/cli-1.1.21-xa36je2k.mjs +2 -0
  235. package/dist/chunks/cli-1.1.21-xc1ka519.mjs +2 -0
  236. package/dist/chunks/cli-1.1.21-xds4bha6.mjs +2 -0
  237. package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +6 -0
  238. package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +2 -0
  239. package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +2 -0
  240. package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +2 -0
  241. package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +2 -0
  242. package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +9 -0
  243. package/dist/chunks/cli-1.1.21-xtysnd33.mjs +2 -0
  244. package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +4 -0
  245. package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +58 -0
  246. package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +2 -0
  247. package/dist/chunks/cli-1.1.21-ym854mnb.mjs +2 -0
  248. package/dist/chunks/cli-1.1.21-ymepfykz.mjs +2 -0
  249. package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +5 -0
  250. package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +2 -0
  251. package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +2 -0
  253. package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +2 -0
  254. package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +2 -0
  255. package/dist/chunks/cli-1.1.21-z008y1nv.mjs +2 -0
  256. package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +2 -0
  257. package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +2 -0
  258. package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +42 -0
  259. package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +3 -0
  260. package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +1 -0
  261. package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +1 -0
  262. package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +3 -0
  263. package/dist/chunks/config-1.1.21-6a9bh364.mjs +1 -0
  264. package/dist/chunks/config-1.1.21-mk64wy1s.mjs +1 -0
  265. package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +1 -0
  266. package/dist/chunks/context-1.1.21-0q6bzccr.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +1 -0
  270. package/dist/chunks/copy-1.1.21-733m4ede.mjs +9 -0
  271. package/dist/chunks/cost-1.1.21-wygsny1s.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +1 -0
  274. package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +1534 -0
  276. package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +1 -0
  278. package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +1 -0
  279. package/dist/chunks/diff-1.1.21-eh8phe15.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +1 -0
  283. package/dist/chunks/effort-1.1.21-ekeecb10.mjs +13 -0
  284. package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +1 -0
  288. package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +1 -0
  289. package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +1 -0
  292. package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +1 -0
  294. package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +1 -0
  300. package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +1 -0
  302. package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +4 -0
  303. package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +1 -0
  304. package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +2 -0
  305. package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +6 -0
  306. package/dist/chunks/help-1.1.21-c9hbdjta.mjs +1 -0
  307. package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +3 -0
  308. package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +1 -0
  309. package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +79 -0
  310. package/dist/chunks/ide-1.1.21-wywpj723.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +1 -0
  313. package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +1 -0
  314. package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +1 -0
  315. package/dist/chunks/index-1.1.21-57kd6ptp.mjs +1 -0
  316. package/dist/chunks/index-1.1.21-593vrygw.mjs +23 -0
  317. package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +9 -0
  318. package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +1 -0
  319. package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +5 -0
  320. package/dist/chunks/index-1.1.21-adb7btws.mjs +1 -0
  321. package/dist/chunks/index-1.1.21-etcjfd99.mjs +1 -0
  322. package/dist/chunks/index-1.1.21-fy80jkp2.mjs +1 -0
  323. package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +1 -0
  324. package/dist/chunks/index-1.1.21-hytfcvqs.mjs +1 -0
  325. package/dist/chunks/index-1.1.21-m0a3fv04.mjs +30 -0
  326. package/dist/chunks/index-1.1.21-m167t33s.mjs +1 -0
  327. package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +1 -0
  328. package/dist/chunks/index-1.1.21-s1aj62xz.mjs +1 -0
  329. package/dist/chunks/index-1.1.21-srxg6mfj.mjs +1 -0
  330. package/dist/chunks/index-1.1.21-vcbqyp49.mjs +1 -0
  331. package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +2 -0
  332. package/dist/chunks/index-1.1.21-xc8hadvs.mjs +9 -0
  333. package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +1 -0
  334. package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +2 -0
  335. package/dist/chunks/index-1.1.21-zphh9zyt.mjs +1 -0
  336. package/dist/chunks/init-1.1.21-3rsjrj70.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +1 -0
  338. package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +1 -0
  339. package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +870 -0
  340. package/dist/chunks/install-1.1.21-fvsrnj75.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +1 -0
  345. package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +2 -0
  346. package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +1 -0
  350. package/dist/chunks/log-1.1.21-xwc604af.mjs +1 -0
  351. package/dist/chunks/main-1.1.21-mpr5depp.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +1 -0
  354. package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +17 -0
  355. package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +4 -0
  356. package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +1 -0
  357. package/dist/chunks/memory-1.1.21-gqa797mn.mjs +72 -0
  358. package/dist/chunks/model-1.1.21-3dg8jye0.mjs +1 -0
  359. package/dist/chunks/model-1.1.21-3x98v8x4.mjs +2 -0
  360. package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +14 -0
  361. package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +14 -0
  363. package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +1 -0
  364. package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +1 -0
  366. package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +1 -0
  367. package/dist/chunks/passes-1.1.21-g830qx07.mjs +1 -0
  368. package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +3 -0
  369. package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +1 -0
  370. package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +1 -0
  371. package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +1 -0
  372. package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +1 -0
  374. package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +2 -0
  376. package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +57 -0
  377. package/dist/chunks/process-1.1.21-03zz92gq.mjs +1 -0
  378. package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +1 -0
  379. package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +9 -0
  380. package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +1 -0
  381. package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +1 -0
  382. package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +1 -0
  383. package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +13 -0
  384. package/dist/chunks/provider-1.1.21-xnprbehk.mjs +2 -0
  385. package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +1 -0
  386. package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +6 -0
  387. package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +1 -0
  388. package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +26 -0
  389. package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +1 -0
  390. package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +5 -0
  391. package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +2 -0
  392. package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +1 -0
  393. package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +1 -0
  394. package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +1 -0
  395. package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +1 -0
  396. package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +1 -0
  397. package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +1 -0
  398. package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +2 -0
  399. package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +1 -0
  400. package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +1 -0
  401. package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +10 -0
  402. package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +1 -0
  403. package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +1 -0
  404. package/dist/chunks/session-1.1.21-9gpkxas1.mjs +2 -0
  405. package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +1 -0
  406. package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +1 -0
  407. package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +1 -0
  408. package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +1 -0
  409. package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +12 -0
  410. package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +1 -0
  411. package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +1 -0
  412. package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +1 -0
  413. package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +1 -0
  414. package/dist/chunks/state-1.1.21-006s6xsy.mjs +1 -0
  415. package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +6 -0
  416. package/dist/chunks/status-1.1.21-dkepakb3.mjs +1 -0
  417. package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +1 -0
  418. package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +1 -0
  419. package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +1 -0
  420. package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +1 -0
  421. package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +1 -0
  422. package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +1 -0
  423. package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +1 -0
  424. package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +1 -0
  425. package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +1 -0
  426. package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +1 -0
  427. package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +1 -0
  428. package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +1 -0
  429. package/dist/chunks/tools-1.1.21-zaawccjz.mjs +1 -0
  430. package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +1 -0
  431. package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +69 -0
  432. package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +1 -0
  433. package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +4 -0
  434. package/dist/chunks/update-1.1.21-v9n06gej.mjs +72 -0
  435. package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +1 -0
  436. package/dist/chunks/upload-1.1.21-x63yx03n.mjs +7 -0
  437. package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +14 -0
  438. package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +1 -0
  439. package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +1 -0
  440. package/dist/chunks/util-1.1.21-raqpgawk.mjs +1 -0
  441. package/dist/chunks/utils-1.1.21-ae7844cz.mjs +1 -0
  442. package/dist/chunks/vim-1.1.21-stgjbrez.mjs +1 -0
  443. package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +13 -0
  444. package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +1 -0
  445. package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +132 -0
  446. package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +1 -0
  447. package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +1 -0
  448. package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +1 -0
  449. package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +7 -0
  450. package/dist/cli.mjs +2 -2
  451. package/package.json +9 -9
  452. package/dist/chunks/AgentTool-1.1.19-ap09svyk.mjs +0 -1
  453. package/dist/chunks/App-1.1.19-k77n3357.mjs +0 -1
  454. package/dist/chunks/ApproveApiKey-1.1.19-tcembk4t.mjs +0 -1
  455. package/dist/chunks/AssistantSessionChooser-1.1.19-m4nrahdt.mjs +0 -1
  456. package/dist/chunks/AutoModeOptInDialog-1.1.19-taks8xn7.mjs +0 -1
  457. package/dist/chunks/BypassPermissionsModeDialog-1.1.19-yme7vhwa.mjs +0 -1
  458. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.19-tfvmz7pe.mjs +0 -1
  459. package/dist/chunks/ConsoleOAuthFlow-1.1.19-zkq642rw.mjs +0 -1
  460. package/dist/chunks/DiffDialog-1.1.19-2d75g9t9.mjs +0 -6
  461. package/dist/chunks/Doctor-1.1.19-0h26y250.mjs +0 -1
  462. package/dist/chunks/ExplorerDialog-1.1.19-664kb4w5.mjs +0 -6
  463. package/dist/chunks/ITermBackend-1.1.19-yebbvfbc.mjs +0 -1
  464. package/dist/chunks/InvalidConfigDialog-1.1.19-69vb23j7.mjs +0 -1
  465. package/dist/chunks/InvalidSettingsDialog-1.1.19-xd8y62c2.mjs +0 -1
  466. package/dist/chunks/MigrationDialog-1.1.19-1629rwte.mjs +0 -1
  467. package/dist/chunks/Onboarding-1.1.19-jpbdr4ek.mjs +0 -1
  468. package/dist/chunks/ProviderManager-1.1.19-gsjnpy2f.mjs +0 -1
  469. package/dist/chunks/REPL-1.1.19-pqppw8hp.mjs +0 -1
  470. package/dist/chunks/ResumeConversation-1.1.19-gvqa5kzm.mjs +0 -1
  471. package/dist/chunks/SnapshotUpdateDialog-1.1.19-jqd47gb8.mjs +0 -1
  472. package/dist/chunks/TeleportProgress-1.1.19-m9xykegt.mjs +0 -1
  473. package/dist/chunks/TeleportRepoMismatchDialog-1.1.19-4x4m771g.mjs +0 -1
  474. package/dist/chunks/TeleportResumeWrapper-1.1.19-4ywpbgq0.mjs +0 -1
  475. package/dist/chunks/TmuxBackend-1.1.19-znn3cy0j.mjs +0 -9
  476. package/dist/chunks/ToolSearchTool-1.1.19-z4htsqk6.mjs +0 -1
  477. package/dist/chunks/TrustDialog-1.1.19-fqjjhqxh.mjs +0 -1
  478. package/dist/chunks/activeProvider-1.1.19-sgb7b5wy.mjs +0 -1
  479. package/dist/chunks/add-dir-1.1.19-y55kbgfe.mjs +0 -1
  480. package/dist/chunks/agentTypes-1.1.19-cfvc6wt9.mjs +0 -1
  481. package/dist/chunks/agents-1.1.19-hc4xvq4r.mjs +0 -110
  482. package/dist/chunks/agents-1.1.19-k8kx3pej.mjs +0 -3
  483. package/dist/chunks/api-1.1.19-gbh2sz3k.mjs +0 -1
  484. package/dist/chunks/asciicast-1.1.19-6mnps2vx.mjs +0 -1
  485. package/dist/chunks/assistant-1.1.19-vmkknmbc.mjs +0 -1
  486. package/dist/chunks/auth-1.1.19-h46w2e1a.mjs +0 -1
  487. package/dist/chunks/auth-1.1.19-s68ybx6f.mjs +0 -1
  488. package/dist/chunks/autoMode-1.1.19-qpevvt9x.mjs +0 -52
  489. package/dist/chunks/autoModeSetup-1.1.19-63yyncht.mjs +0 -44
  490. package/dist/chunks/autoUpdater-1.1.19-vxn3t7f7.mjs +0 -1
  491. package/dist/chunks/backgroundHousekeeping-1.1.19-tg6rqb4x.mjs +0 -1
  492. package/dist/chunks/branch-1.1.19-e4gkb2sb.mjs +0 -4
  493. package/dist/chunks/bridge-1.1.19-zwf5vbc6.mjs +0 -2
  494. package/dist/chunks/bridgeConfig-1.1.19-wc27ha2s.mjs +0 -1
  495. package/dist/chunks/bridgeEnabled-1.1.19-6gq8j1d7.mjs +0 -1
  496. package/dist/chunks/bridgeMain-1.1.19-yzzr33jg.mjs +0 -88
  497. package/dist/chunks/bridgePointer-1.1.19-xdqatsm3.mjs +0 -1
  498. package/dist/chunks/btw-1.1.19-qkfvd0ms.mjs +0 -1
  499. package/dist/chunks/buddy-1.1.19-08xe7ppf.mjs +0 -3
  500. package/dist/chunks/cache-probe-1.1.19-w4a9xacm.mjs +0 -21
  501. package/dist/chunks/cacheStats-1.1.19-exn70h4b.mjs +0 -4
  502. package/dist/chunks/caches-1.1.19-d4jfvwhp.mjs +0 -1
  503. package/dist/chunks/claudeDesktop-1.1.19-kxx2an1b.mjs +0 -1
  504. package/dist/chunks/claudemd-1.1.19-xsbhz7tg.mjs +0 -1
  505. package/dist/chunks/clear-1.1.19-a1znba6q.mjs +0 -1
  506. package/dist/chunks/clearTerminal-1.1.19-ahv4wsvx.mjs +0 -1
  507. package/dist/chunks/cli-1.1.19-00q9c51a.mjs +0 -2
  508. package/dist/chunks/cli-1.1.19-00zv4s06.mjs +0 -2
  509. package/dist/chunks/cli-1.1.19-0cyysv3s.mjs +0 -2
  510. package/dist/chunks/cli-1.1.19-0m8cwm30.mjs +0 -2
  511. package/dist/chunks/cli-1.1.19-0n5vcvqz.mjs +0 -2
  512. package/dist/chunks/cli-1.1.19-0s56yqjm.mjs +0 -2
  513. package/dist/chunks/cli-1.1.19-0zq6911y.mjs +0 -2
  514. package/dist/chunks/cli-1.1.19-10jx9qt3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.19-126eyddd.mjs +0 -2
  516. package/dist/chunks/cli-1.1.19-1mqhgz4n.mjs +0 -2
  517. package/dist/chunks/cli-1.1.19-25szxvwt.mjs +0 -2
  518. package/dist/chunks/cli-1.1.19-29wgse8t.mjs +0 -2
  519. package/dist/chunks/cli-1.1.19-2cb4p1hk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.19-2jkn8w89.mjs +0 -2
  521. package/dist/chunks/cli-1.1.19-2rbw0277.mjs +0 -2
  522. package/dist/chunks/cli-1.1.19-2rnpr99c.mjs +0 -1
  523. package/dist/chunks/cli-1.1.19-2xxxjdpp.mjs +0 -2
  524. package/dist/chunks/cli-1.1.19-35evt5gy.mjs +0 -2
  525. package/dist/chunks/cli-1.1.19-38ya9kd8.mjs +0 -2
  526. package/dist/chunks/cli-1.1.19-3e9krkhy.mjs +0 -2
  527. package/dist/chunks/cli-1.1.19-3ep6p0sf.mjs +0 -2
  528. package/dist/chunks/cli-1.1.19-3jjgtf8t.mjs +0 -2
  529. package/dist/chunks/cli-1.1.19-3q0sj4zp.mjs +0 -3
  530. package/dist/chunks/cli-1.1.19-3tzh16np.mjs +0 -4
  531. package/dist/chunks/cli-1.1.19-3wwc3q32.mjs +0 -2
  532. package/dist/chunks/cli-1.1.19-3xpqyp64.mjs +0 -7
  533. package/dist/chunks/cli-1.1.19-48a6gxnh.mjs +0 -2
  534. package/dist/chunks/cli-1.1.19-4ba4a8jg.mjs +0 -9
  535. package/dist/chunks/cli-1.1.19-4dp1vkze.mjs +0 -2
  536. package/dist/chunks/cli-1.1.19-4hek4kyb.mjs +0 -2
  537. package/dist/chunks/cli-1.1.19-4n6cth1a.mjs +0 -2
  538. package/dist/chunks/cli-1.1.19-53hanqff.mjs +0 -2
  539. package/dist/chunks/cli-1.1.19-5a8wm97m.mjs +0 -2
  540. package/dist/chunks/cli-1.1.19-5eb8a4wn.mjs +0 -2
  541. package/dist/chunks/cli-1.1.19-5kaw3aa5.mjs +0 -2
  542. package/dist/chunks/cli-1.1.19-5xy2q2yt.mjs +0 -2
  543. package/dist/chunks/cli-1.1.19-5z5xyy4e.mjs +0 -34
  544. package/dist/chunks/cli-1.1.19-61nar796.mjs +0 -4
  545. package/dist/chunks/cli-1.1.19-61tem8qm.mjs +0 -2
  546. package/dist/chunks/cli-1.1.19-6jvzyjts.mjs +0 -3
  547. package/dist/chunks/cli-1.1.19-6mq64vhw.mjs +0 -3
  548. package/dist/chunks/cli-1.1.19-6pp1614z.mjs +0 -4
  549. package/dist/chunks/cli-1.1.19-6smqyzzn.mjs +0 -50
  550. package/dist/chunks/cli-1.1.19-779zeaga.mjs +0 -2
  551. package/dist/chunks/cli-1.1.19-7djbq218.mjs +0 -3
  552. package/dist/chunks/cli-1.1.19-7rmk4fz4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.19-7s1yy832.mjs +0 -2
  554. package/dist/chunks/cli-1.1.19-7sfdatrg.mjs +0 -12
  555. package/dist/chunks/cli-1.1.19-7v3pjgvw.mjs +0 -5
  556. package/dist/chunks/cli-1.1.19-7zdwszrb.mjs +0 -2
  557. package/dist/chunks/cli-1.1.19-82vfm05a.mjs +0 -2
  558. package/dist/chunks/cli-1.1.19-89n0ppp5.mjs +0 -2
  559. package/dist/chunks/cli-1.1.19-8dpft679.mjs +0 -2
  560. package/dist/chunks/cli-1.1.19-8zwh2ky5.mjs +0 -2
  561. package/dist/chunks/cli-1.1.19-93bb0mpz.mjs +0 -2
  562. package/dist/chunks/cli-1.1.19-946kz0h0.mjs +0 -2
  563. package/dist/chunks/cli-1.1.19-96rdwb5m.mjs +0 -2
  564. package/dist/chunks/cli-1.1.19-99dfxebe.mjs +0 -2
  565. package/dist/chunks/cli-1.1.19-9a8d2pxp.mjs +0 -2
  566. package/dist/chunks/cli-1.1.19-9dkavmxz.mjs +0 -2
  567. package/dist/chunks/cli-1.1.19-9kbnb3tc.mjs +0 -2
  568. package/dist/chunks/cli-1.1.19-9nfxc159.mjs +0 -3
  569. package/dist/chunks/cli-1.1.19-9vf7tt9g.mjs +0 -2
  570. package/dist/chunks/cli-1.1.19-a26wdy1v.mjs +0 -24
  571. package/dist/chunks/cli-1.1.19-a32dnq28.mjs +0 -2
  572. package/dist/chunks/cli-1.1.19-a5hfs685.mjs +0 -45
  573. package/dist/chunks/cli-1.1.19-a6e1antc.mjs +0 -15
  574. package/dist/chunks/cli-1.1.19-a75p9zey.mjs +0 -2
  575. package/dist/chunks/cli-1.1.19-ac73knxp.mjs +0 -2
  576. package/dist/chunks/cli-1.1.19-acez5n0m.mjs +0 -24
  577. package/dist/chunks/cli-1.1.19-aj7yfbb6.mjs +0 -2
  578. package/dist/chunks/cli-1.1.19-awkva6qc.mjs +0 -24
  579. package/dist/chunks/cli-1.1.19-b7fbqawk.mjs +0 -2
  580. package/dist/chunks/cli-1.1.19-bg1d8zv9.mjs +0 -2
  581. package/dist/chunks/cli-1.1.19-bmy2183w.mjs +0 -2
  582. package/dist/chunks/cli-1.1.19-bxvvef3z.mjs +0 -2
  583. package/dist/chunks/cli-1.1.19-c8xs9vjb.mjs +0 -2
  584. package/dist/chunks/cli-1.1.19-cb7496nq.mjs +0 -5
  585. package/dist/chunks/cli-1.1.19-cc266ybe.mjs +0 -2
  586. package/dist/chunks/cli-1.1.19-cfgdvk8n.mjs +0 -12
  587. package/dist/chunks/cli-1.1.19-cjq368e9.mjs +0 -24
  588. package/dist/chunks/cli-1.1.19-cma77m08.mjs +0 -2
  589. package/dist/chunks/cli-1.1.19-cq5hegwz.mjs +0 -6
  590. package/dist/chunks/cli-1.1.19-csfx7v0e.mjs +0 -2
  591. package/dist/chunks/cli-1.1.19-d00hzr89.mjs +0 -2
  592. package/dist/chunks/cli-1.1.19-d1qdwt16.mjs +0 -2
  593. package/dist/chunks/cli-1.1.19-d2x1fpvn.mjs +0 -3
  594. package/dist/chunks/cli-1.1.19-d7wb13f8.mjs +0 -2
  595. package/dist/chunks/cli-1.1.19-dq0a7g9x.mjs +0 -2
  596. package/dist/chunks/cli-1.1.19-dt84yfk2.mjs +0 -206
  597. package/dist/chunks/cli-1.1.19-dw8jwdzq.mjs +0 -3
  598. package/dist/chunks/cli-1.1.19-dzbss10b.mjs +0 -3
  599. package/dist/chunks/cli-1.1.19-e4krk6kp.mjs +0 -2
  600. package/dist/chunks/cli-1.1.19-e5k83shq.mjs +0 -17
  601. package/dist/chunks/cli-1.1.19-ec5kkxdm.mjs +0 -2
  602. package/dist/chunks/cli-1.1.19-edv500a7.mjs +0 -25
  603. package/dist/chunks/cli-1.1.19-esk8qemt.mjs +0 -3
  604. package/dist/chunks/cli-1.1.19-eyhpgp73.mjs +0 -4
  605. package/dist/chunks/cli-1.1.19-f1g12hnb.mjs +0 -2
  606. package/dist/chunks/cli-1.1.19-f1vb0eyp.mjs +0 -2
  607. package/dist/chunks/cli-1.1.19-f6m8mqsf.mjs +0 -2
  608. package/dist/chunks/cli-1.1.19-fgfwa8xc.mjs +0 -2
  609. package/dist/chunks/cli-1.1.19-fqwvhznj.mjs +0 -2
  610. package/dist/chunks/cli-1.1.19-ftnf2s7k.mjs +0 -6
  611. package/dist/chunks/cli-1.1.19-g1bp4mfb.mjs +0 -2
  612. package/dist/chunks/cli-1.1.19-g70qb326.mjs +0 -2
  613. package/dist/chunks/cli-1.1.19-grvgykf5.mjs +0 -58
  614. package/dist/chunks/cli-1.1.19-gvdrxej7.mjs +0 -6
  615. package/dist/chunks/cli-1.1.19-gw9jb8fv.mjs +0 -2
  616. package/dist/chunks/cli-1.1.19-h5psdt4j.mjs +0 -2
  617. package/dist/chunks/cli-1.1.19-h6a1zywh.mjs +0 -2
  618. package/dist/chunks/cli-1.1.19-h6nqzwdx.mjs +0 -8
  619. package/dist/chunks/cli-1.1.19-hdmxb06r.mjs +0 -2
  620. package/dist/chunks/cli-1.1.19-hph7gbkv.mjs +0 -42
  621. package/dist/chunks/cli-1.1.19-hqbspnvc.mjs +0 -5419
  622. package/dist/chunks/cli-1.1.19-hr45csak.mjs +0 -3
  623. package/dist/chunks/cli-1.1.19-j9kyrhvv.mjs +0 -3
  624. package/dist/chunks/cli-1.1.19-jn7xm69z.mjs +0 -2
  625. package/dist/chunks/cli-1.1.19-k4gwmyp2.mjs +0 -17
  626. package/dist/chunks/cli-1.1.19-k5svbvzd.mjs +0 -2
  627. package/dist/chunks/cli-1.1.19-kc4rvbe3.mjs +0 -18
  628. package/dist/chunks/cli-1.1.19-kjbxevhz.mjs +0 -2
  629. package/dist/chunks/cli-1.1.19-kjhw0mpy.mjs +0 -6
  630. package/dist/chunks/cli-1.1.19-kxz28gf8.mjs +0 -21
  631. package/dist/chunks/cli-1.1.19-m8w4as34.mjs +0 -16
  632. package/dist/chunks/cli-1.1.19-m9vwd2bt.mjs +0 -2
  633. package/dist/chunks/cli-1.1.19-mam509fm.mjs +0 -2
  634. package/dist/chunks/cli-1.1.19-mn9sb0en.mjs +0 -2
  635. package/dist/chunks/cli-1.1.19-mqs96k5w.mjs +0 -4
  636. package/dist/chunks/cli-1.1.19-mrft54r6.mjs +0 -2
  637. package/dist/chunks/cli-1.1.19-n24w651m.mjs +0 -3
  638. package/dist/chunks/cli-1.1.19-n5xxe310.mjs +0 -133
  639. package/dist/chunks/cli-1.1.19-nb1256fg.mjs +0 -4
  640. package/dist/chunks/cli-1.1.19-nqznsj8y.mjs +0 -2
  641. package/dist/chunks/cli-1.1.19-nrpwj6d0.mjs +0 -3
  642. package/dist/chunks/cli-1.1.19-p1nzrjj5.mjs +0 -25
  643. package/dist/chunks/cli-1.1.19-p8pd4mmb.mjs +0 -2
  644. package/dist/chunks/cli-1.1.19-pdmgnq2h.mjs +0 -39
  645. package/dist/chunks/cli-1.1.19-pn1pyg9c.mjs +0 -2
  646. package/dist/chunks/cli-1.1.19-q2b2zy0e.mjs +0 -2
  647. package/dist/chunks/cli-1.1.19-q5kbe656.mjs +0 -2
  648. package/dist/chunks/cli-1.1.19-q7cjyz1z.mjs +0 -2
  649. package/dist/chunks/cli-1.1.19-qb3sg611.mjs +0 -2
  650. package/dist/chunks/cli-1.1.19-qvzf4mzn.mjs +0 -2
  651. package/dist/chunks/cli-1.1.19-qw2a73hz.mjs +0 -2
  652. package/dist/chunks/cli-1.1.19-r3km7nzk.mjs +0 -2
  653. package/dist/chunks/cli-1.1.19-r4qc48rf.mjs +0 -2
  654. package/dist/chunks/cli-1.1.19-rk4mqvc5.mjs +0 -2
  655. package/dist/chunks/cli-1.1.19-rkxy1dsw.mjs +0 -2
  656. package/dist/chunks/cli-1.1.19-ry92fd54.mjs +0 -7
  657. package/dist/chunks/cli-1.1.19-s3zhxkk4.mjs +0 -2
  658. package/dist/chunks/cli-1.1.19-sbrpsrtp.mjs +0 -4
  659. package/dist/chunks/cli-1.1.19-shgmqysk.mjs +0 -2
  660. package/dist/chunks/cli-1.1.19-shgqfcam.mjs +0 -2
  661. package/dist/chunks/cli-1.1.19-snq43w01.mjs +0 -6
  662. package/dist/chunks/cli-1.1.19-swfswrx1.mjs +0 -2
  663. package/dist/chunks/cli-1.1.19-t7yahhjv.mjs +0 -4
  664. package/dist/chunks/cli-1.1.19-t87ew64x.mjs +0 -2
  665. package/dist/chunks/cli-1.1.19-t9xz3682.mjs +0 -20
  666. package/dist/chunks/cli-1.1.19-tar53fbc.mjs +0 -15
  667. package/dist/chunks/cli-1.1.19-tefbgf43.mjs +0 -2
  668. package/dist/chunks/cli-1.1.19-tm3821yd.mjs +0 -2
  669. package/dist/chunks/cli-1.1.19-tqv8yds0.mjs +0 -2
  670. package/dist/chunks/cli-1.1.19-tw6zn01k.mjs +0 -2
  671. package/dist/chunks/cli-1.1.19-v35x8svk.mjs +0 -15
  672. package/dist/chunks/cli-1.1.19-v619rbr5.mjs +0 -59
  673. package/dist/chunks/cli-1.1.19-vbq3h0rr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.19-vfed8ert.mjs +0 -2
  675. package/dist/chunks/cli-1.1.19-vgfqexte.mjs +0 -4
  676. package/dist/chunks/cli-1.1.19-vpabfve5.mjs +0 -6
  677. package/dist/chunks/cli-1.1.19-vr8jf7k6.mjs +0 -2
  678. package/dist/chunks/cli-1.1.19-vv09y4gs.mjs +0 -2
  679. package/dist/chunks/cli-1.1.19-vx87jjbs.mjs +0 -18
  680. package/dist/chunks/cli-1.1.19-vyqgdds6.mjs +0 -2
  681. package/dist/chunks/cli-1.1.19-w9tb5j4s.mjs +0 -2
  682. package/dist/chunks/cli-1.1.19-wrgbrnhw.mjs +0 -9
  683. package/dist/chunks/cli-1.1.19-wtkads83.mjs +0 -2
  684. package/dist/chunks/cli-1.1.19-wzm0j7nd.mjs +0 -133
  685. package/dist/chunks/cli-1.1.19-x1grwt9b.mjs +0 -2
  686. package/dist/chunks/cli-1.1.19-x522f12c.mjs +0 -2
  687. package/dist/chunks/cli-1.1.19-x6xnsxay.mjs +0 -2
  688. package/dist/chunks/cli-1.1.19-x86k1gy8.mjs +0 -2
  689. package/dist/chunks/cli-1.1.19-x8set46s.mjs +0 -2
  690. package/dist/chunks/cli-1.1.19-x9jccx03.mjs +0 -4
  691. package/dist/chunks/cli-1.1.19-xnas5w2g.mjs +0 -2
  692. package/dist/chunks/cli-1.1.19-xst2kbax.mjs +0 -2
  693. package/dist/chunks/cli-1.1.19-xvrj0zyj.mjs +0 -2
  694. package/dist/chunks/cli-1.1.19-y6p80wj3.mjs +0 -3
  695. package/dist/chunks/cli-1.1.19-ybe27dz9.mjs +0 -66
  696. package/dist/chunks/cli-1.1.19-ykspd2ax.mjs +0 -2
  697. package/dist/chunks/cli-1.1.19-ykvwaeht.mjs +0 -2
  698. package/dist/chunks/cli-1.1.19-yrjfmdg0.mjs +0 -2
  699. package/dist/chunks/cli-1.1.19-ys9280nx.mjs +0 -2
  700. package/dist/chunks/cli-1.1.19-yw33djbn.mjs +0 -2
  701. package/dist/chunks/cli-1.1.19-z9t89h8r.mjs +0 -2
  702. package/dist/chunks/cli-1.1.19-zcbfxmsm.mjs +0 -2
  703. package/dist/chunks/cli-1.1.19-zdb14mt2.mjs +0 -2
  704. package/dist/chunks/cli-1.1.19-zebz0x46.mjs +0 -2
  705. package/dist/chunks/cli-1.1.19-zg8m3n8n.mjs +0 -2
  706. package/dist/chunks/cli-1.1.19-zm9nhjfe.mjs +0 -2
  707. package/dist/chunks/cli-1.1.19-ztvzhgye.mjs +0 -2
  708. package/dist/chunks/cli-1.1.19-ztxdhvw3.mjs +0 -2
  709. package/dist/chunks/cli-1.1.19-zv4hb0hf.mjs +0 -2
  710. package/dist/chunks/client-1.1.19-rydegw5h.mjs +0 -1
  711. package/dist/chunks/color-1.1.19-p5265vaz.mjs +0 -1
  712. package/dist/chunks/compact-1.1.19-7c9mxrm8.mjs +0 -3
  713. package/dist/chunks/config-1.1.19-2wsgrxvp.mjs +0 -1
  714. package/dist/chunks/config-1.1.19-d62j9tgx.mjs +0 -1
  715. package/dist/chunks/constants-1.1.19-cyxrtszj.mjs +0 -1
  716. package/dist/chunks/context-1.1.19-mtt1t5p4.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.1.19-xry25hh6.mjs +0 -1
  718. package/dist/chunks/conversation-1.1.19-y6cahyhg.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.1.19-esh8mxyx.mjs +0 -1
  720. package/dist/chunks/copy-1.1.19-tyf8daxj.mjs +0 -9
  721. package/dist/chunks/cost-1.1.19-pvrac5v6.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.1.19-8jd28zhc.mjs +0 -1
  723. package/dist/chunks/createSession-1.1.19-88gw4fqs.mjs +0 -1
  724. package/dist/chunks/debug-1.1.19-xz3040cz.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.1.19-x39zq6wr.mjs +0 -1534
  726. package/dist/chunks/desktop-1.1.19-a40h3fh1.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.1.19-g0rbffr6.mjs +0 -1
  728. package/dist/chunks/detection-1.1.19-kzpx83pk.mjs +0 -1
  729. package/dist/chunks/diff-1.1.19-g76zmzb1.mjs +0 -1
  730. package/dist/chunks/doctor-1.1.19-03zspk7d.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.1.19-df18kr26.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.1.19-n9y2y9sm.mjs +0 -1
  733. package/dist/chunks/effort-1.1.19-503r3dqe.mjs +0 -13
  734. package/dist/chunks/engine-1.1.19-0ad61bvx.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.1.19-qf1fj44h.mjs +0 -1
  736. package/dist/chunks/envUtils-1.1.19-8en4zy66.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.1.19-91hc6n75.mjs +0 -1
  738. package/dist/chunks/environments-1.1.19-tfjfkh09.mjs +0 -1
  739. package/dist/chunks/errors-1.1.19-fs48fz9y.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.1.19-pbb6kk50.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.1.19-m6am19yr.mjs +0 -1
  742. package/dist/chunks/exit-1.1.19-mqpwd363.mjs +0 -1
  743. package/dist/chunks/explorer-1.1.19-epqv5k1e.mjs +0 -1
  744. package/dist/chunks/export-1.1.19-t8tpvak9.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.1.19-r9kte59s.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.1.19-xnxm4sqt.mjs +0 -1
  747. package/dist/chunks/fast-1.1.19-c4n0rr8a.mjs +0 -1
  748. package/dist/chunks/feedback-1.1.19-7k5rya63.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.1.19-5bjmyd6a.mjs +0 -1
  750. package/dist/chunks/git-1.1.19-1njw7gwq.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.1.19-k4csmysh.mjs +0 -1
  752. package/dist/chunks/goal-1.1.19-e08g4net.mjs +0 -4
  753. package/dist/chunks/growthbook-1.1.19-gw9m906y.mjs +0 -1
  754. package/dist/chunks/headless-1.1.19-gckc9qf1.mjs +0 -2
  755. package/dist/chunks/heapdump-1.1.19-cy0bczwr.mjs +0 -6
  756. package/dist/chunks/help-1.1.19-bbfsbt36.mjs +0 -1
  757. package/dist/chunks/hookChains-1.1.19-n01ssw8c.mjs +0 -3
  758. package/dist/chunks/hooks-1.1.19-488gkyjk.mjs +0 -1
  759. package/dist/chunks/hooks-1.1.19-b2x6yc66.mjs +0 -79
  760. package/dist/chunks/ide-1.1.19-zf9hpj81.mjs +0 -3
  761. package/dist/chunks/image-processor-napi-1.1.19-1m270wr0.mjs +0 -1
  762. package/dist/chunks/inboundAttachments-1.1.19-h4bsnn75.mjs +0 -1
  763. package/dist/chunks/index-1.1.19-06ccpd87.mjs +0 -1
  764. package/dist/chunks/index-1.1.19-263v6qeb.mjs +0 -1
  765. package/dist/chunks/index-1.1.19-2d944pv5.mjs +0 -1
  766. package/dist/chunks/index-1.1.19-7ngy3yfc.mjs +0 -9
  767. package/dist/chunks/index-1.1.19-apzfwtnm.mjs +0 -1
  768. package/dist/chunks/index-1.1.19-efdm8cp5.mjs +0 -30
  769. package/dist/chunks/index-1.1.19-exbss9tj.mjs +0 -1
  770. package/dist/chunks/index-1.1.19-f53qyqj8.mjs +0 -2
  771. package/dist/chunks/index-1.1.19-fae0sgd8.mjs +0 -5
  772. package/dist/chunks/index-1.1.19-g4rv8gvj.mjs +0 -2
  773. package/dist/chunks/index-1.1.19-ha3e4f70.mjs +0 -1
  774. package/dist/chunks/index-1.1.19-ht9s8yra.mjs +0 -9
  775. package/dist/chunks/index-1.1.19-j9awq55c.mjs +0 -1
  776. package/dist/chunks/index-1.1.19-jdvmsx9x.mjs +0 -1
  777. package/dist/chunks/index-1.1.19-ks262nbe.mjs +0 -1
  778. package/dist/chunks/index-1.1.19-mppepmze.mjs +0 -23
  779. package/dist/chunks/index-1.1.19-nthw1gda.mjs +0 -1
  780. package/dist/chunks/index-1.1.19-rs8fazy9.mjs +0 -1
  781. package/dist/chunks/index-1.1.19-sze2q9g5.mjs +0 -1
  782. package/dist/chunks/index-1.1.19-vkfm4msr.mjs +0 -1
  783. package/dist/chunks/index-1.1.19-vs2nyqte.mjs +0 -1
  784. package/dist/chunks/index-1.1.19-z8fcr2ec.mjs +0 -1
  785. package/dist/chunks/index-1.1.19-zy7mntdp.mjs +0 -1
  786. package/dist/chunks/init-1.1.19-8d53tmw6.mjs +0 -1
  787. package/dist/chunks/initReplBridge-1.1.19-p00njb6f.mjs +0 -1
  788. package/dist/chunks/ink-1.1.19-vr4g8jdg.mjs +0 -1
  789. package/dist/chunks/insights-1.1.19-6ag4d7qh.mjs +0 -870
  790. package/dist/chunks/install-1.1.19-74g8qyvc.mjs +0 -1
  791. package/dist/chunks/install-github-app-1.1.19-3nj645m2.mjs +0 -149
  792. package/dist/chunks/install-slack-app-1.1.19-sw02tcfh.mjs +0 -1
  793. package/dist/chunks/instrumentation-1.1.19-fshq5kr2.mjs +0 -1
  794. package/dist/chunks/interactiveHelpers-1.1.19-npmh2sbc.mjs +0 -1
  795. package/dist/chunks/keybindings-1.1.19-xy665r7j.mjs +0 -2
  796. package/dist/chunks/knowledge-1.1.19-e4pdfkhx.mjs +0 -2
  797. package/dist/chunks/latestVersionCache-1.1.19-fktnyx5h.mjs +0 -1
  798. package/dist/chunks/loadAgentsDir-1.1.19-j4732ykz.mjs +0 -1
  799. package/dist/chunks/loadPluginHooks-1.1.19-99a4nfjq.mjs +0 -1
  800. package/dist/chunks/log-1.1.19-y3spcye6.mjs +0 -1
  801. package/dist/chunks/main-1.1.19-06jy3aye.mjs +0 -1
  802. package/dist/chunks/managedEnv-1.1.19-19k3jdqh.mjs +0 -1
  803. package/dist/chunks/mcp-1.1.19-833sdc7d.mjs +0 -17
  804. package/dist/chunks/mcp-1.1.19-x0sfjzjt.mjs +0 -1
  805. package/dist/chunks/mcp-1.1.19-z5x59bca.mjs +0 -4
  806. package/dist/chunks/mcpb-1.1.19-bbswp853.mjs +0 -1
  807. package/dist/chunks/memory-1.1.19-d1ke4kha.mjs +0 -72
  808. package/dist/chunks/model-1.1.19-sm0ftpna.mjs +0 -1
  809. package/dist/chunks/model-1.1.19-v68fjcdh.mjs +0 -2
  810. package/dist/chunks/node-1.1.19-nj9qe6mk.mjs +0 -12
  811. package/dist/chunks/oauth-1.1.19-y016e4dk.mjs +0 -1
  812. package/dist/chunks/openaiShim-1.1.19-njr80kze.mjs +0 -14
  813. package/dist/chunks/output-style-1.1.19-rj9tfcg1.mjs +0 -1
  814. package/dist/chunks/package-KQCMZM5L-1.1.19-4f1z2hmg.mjs +0 -1
  815. package/dist/chunks/parseConnectUrl-1.1.19-qtk1xf04.mjs +0 -1
  816. package/dist/chunks/parser-1.1.19-sfrfy1dm.mjs +0 -1
  817. package/dist/chunks/passes-1.1.19-nhfrcsrb.mjs +0 -1
  818. package/dist/chunks/permissions-1.1.19-bfjnq5mz.mjs +0 -1
  819. package/dist/chunks/permissions-1.1.19-vzcjg874.mjs +0 -3
  820. package/dist/chunks/plan-1.1.19-qzr3m454.mjs +0 -1
  821. package/dist/chunks/plist-1.1.19-19wsvxjw.mjs +0 -1
  822. package/dist/chunks/plugin-1.1.19-p0h9mbar.mjs +0 -29
  823. package/dist/chunks/pluginStartupCheck-1.1.19-7pvtzbb1.mjs +0 -1
  824. package/dist/chunks/plugins-1.1.19-xrbe4y5a.mjs +0 -9
  825. package/dist/chunks/preActionHook-1.1.19-wfp4vavy.mjs +0 -2
  826. package/dist/chunks/print-1.1.19-rzw2njmz.mjs +0 -57
  827. package/dist/chunks/process-1.1.19-k7h4qsz0.mjs +0 -1
  828. package/dist/chunks/processBashCommand-1.1.19-p1ffejkb.mjs +0 -1
  829. package/dist/chunks/processSlashCommand-1.1.19-gy6nfdzs.mjs +0 -9
  830. package/dist/chunks/prompt-1.1.19-9aq4jr0c.mjs +0 -1
  831. package/dist/chunks/prompt-1.1.19-kkwb835d.mjs +0 -1
  832. package/dist/chunks/prompts-1.1.19-qq19kp1k.mjs +0 -1
  833. package/dist/chunks/protocolHandler-1.1.19-6n3sh10m.mjs +0 -13
  834. package/dist/chunks/provider-1.1.19-46f6x4wt.mjs +0 -2
  835. package/dist/chunks/providerProfiles-1.1.19-xxzvjngj.mjs +0 -1
  836. package/dist/chunks/providerValidation-1.1.19-t3qsn8f5.mjs +0 -6
  837. package/dist/chunks/rate-limit-options-1.1.19-j7xrp805.mjs +0 -1
  838. package/dist/chunks/registerSubcommands-1.1.19-v2jjs3tt.mjs +0 -26
  839. package/dist/chunks/registry-1.1.19-7chtcyjj.mjs +0 -1
  840. package/dist/chunks/release-notes-1.1.19-pbbxph7n.mjs +0 -5
  841. package/dist/chunks/reload-plugins-1.1.19-qgvazhrx.mjs +0 -2
  842. package/dist/chunks/remote-env-1.1.19-4ftd6zk8.mjs +0 -1
  843. package/dist/chunks/remoteBridgeCore-1.1.19-w92h77yd.mjs +0 -1
  844. package/dist/chunks/remoteSession-1.1.19-e5nd7ypy.mjs +0 -1
  845. package/dist/chunks/rename-1.1.19-zmextayk.mjs +0 -1
  846. package/dist/chunks/replBridgeHandle-1.1.19-4vqnj6br.mjs +0 -1
  847. package/dist/chunks/replLauncher-1.1.19-s2btrsvw.mjs +0 -1
  848. package/dist/chunks/resume-1.1.19-jn7pe69d.mjs +0 -2
  849. package/dist/chunks/rewind-1.1.19-rahxdd24.mjs +0 -1
  850. package/dist/chunks/rootOptions-1.1.19-hjwkw6vt.mjs +0 -1
  851. package/dist/chunks/runWorkflowHeadless-1.1.19-hjwsqxd5.mjs +0 -10
  852. package/dist/chunks/sandbox-adapter-1.1.19-4aqxxq3m.mjs +0 -1
  853. package/dist/chunks/sandbox-toggle-1.1.19-x2n1fkv0.mjs +0 -1
  854. package/dist/chunks/session-1.1.19-je5j810m.mjs +0 -2
  855. package/dist/chunks/sessionDiscovery-1.1.19-t595d3pg.mjs +0 -1
  856. package/dist/chunks/sessionFileAccessHooks-1.1.19-bng1xsd6.mjs +0 -1
  857. package/dist/chunks/sessionStorage-1.1.19-6agd7cfq.mjs +0 -1
  858. package/dist/chunks/settings-1.1.19-cpxbjwr6.mjs +0 -1
  859. package/dist/chunks/setup-1.1.19-11b5cjgj.mjs +0 -12
  860. package/dist/chunks/sinks-1.1.19-m4ce6s8b.mjs +0 -1
  861. package/dist/chunks/skills-1.1.19-scwgh73s.mjs +0 -1
  862. package/dist/chunks/startupProfiler-1.1.19-j0kpxw4n.mjs +0 -1
  863. package/dist/chunks/startupUpdateCheck-1.1.19-k05gx3h1.mjs +0 -1
  864. package/dist/chunks/state-1.1.19-r1dtdp9g.mjs +0 -1
  865. package/dist/chunks/stats-1.1.19-zwc97973.mjs +0 -6
  866. package/dist/chunks/status-1.1.19-8m7tf3e1.mjs +0 -1
  867. package/dist/chunks/stickers-1.1.19-51p3tyxv.mjs +0 -1
  868. package/dist/chunks/subprocessEnv-1.1.19-bq634ryk.mjs +0 -1
  869. package/dist/chunks/tasks-1.1.19-xtpcttgb.mjs +0 -1
  870. package/dist/chunks/teamHelpers-1.1.19-37de1g3x.mjs +0 -1
  871. package/dist/chunks/teammateModeSnapshot-1.1.19-0zaw34nq.mjs +0 -1
  872. package/dist/chunks/teleport-1.1.19-1yrce0fg.mjs +0 -1
  873. package/dist/chunks/terminalSetup-1.1.19-n3qgcbse.mjs +0 -1
  874. package/dist/chunks/theme-1.1.19-qfd87sgp.mjs +0 -1
  875. package/dist/chunks/thinkback-1.1.19-gss5am06.mjs +0 -1
  876. package/dist/chunks/thinkback-play-1.1.19-7j20scs3.mjs +0 -1
  877. package/dist/chunks/toolPool-1.1.19-tmtwkgcj.mjs +0 -1
  878. package/dist/chunks/toolSearch-1.1.19-01pt7axx.mjs +0 -1
  879. package/dist/chunks/tools-1.1.19-1y8gx9m2.mjs +0 -1
  880. package/dist/chunks/trustedDevice-1.1.19-d1avnq7v.mjs +0 -1
  881. package/dist/chunks/turndown.cjs-1.1.19-q8rxrnz3.mjs +0 -69
  882. package/dist/chunks/types-1.1.19-3n28bh66.mjs +0 -1
  883. package/dist/chunks/ultrareviewCommand-1.1.19-vhhfbsfg.mjs +0 -4
  884. package/dist/chunks/update-1.1.19-xzwgsapn.mjs +0 -72
  885. package/dist/chunks/upgrade-1.1.19-5ydc5rb9.mjs +0 -1
  886. package/dist/chunks/upload-1.1.19-evxky0ry.mjs +0 -7
  887. package/dist/chunks/upstreamproxy-1.1.19-6t7vnxjf.mjs +0 -14
  888. package/dist/chunks/url-handler-napi-1.1.19-zgpfdrf1.mjs +0 -1
  889. package/dist/chunks/usage-1.1.19-f61vnt3h.mjs +0 -1
  890. package/dist/chunks/util-1.1.19-yqzpdqqe.mjs +0 -1
  891. package/dist/chunks/utils-1.1.19-hhq6836h.mjs +0 -1
  892. package/dist/chunks/vim-1.1.19-k2aqex53.mjs +0 -1
  893. package/dist/chunks/watchLoop-1.1.19-e3ar1gjj.mjs +0 -13
  894. package/dist/chunks/watcher-1.1.19-09ahtfef.mjs +0 -1
  895. package/dist/chunks/wiki-1.1.19-h6tfdmnw.mjs +0 -132
  896. package/dist/chunks/workflows-1.1.19-kgd61yya.mjs +0 -1
  897. package/dist/chunks/worktree-1.1.19-8vn5pmy9.mjs +0 -1
  898. package/dist/chunks/worktreeModeEnabled-1.1.19-je6hz46c.mjs +0 -1
  899. package/dist/chunks/wrapper-1.1.19-dn4wk1mg.mjs +0 -7
  900. /package/dist/chunks/{cli-1.1.19-4tssw0qf.mjs → cli-1.1.21-7snn7kbs.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.19-jepkkjbh.mjs → cli-1.1.21-7sx1arjq.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.19-mnfgg84d.mjs → cli-1.1.21-cx7tkkx6.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.1.19-j2p355hg.mjs → cli-1.1.21-ftamxg3e.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.1.19-caqq41md.mjs → cli-1.1.21-rte0df0y.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.1.19-er0hdy0x.mjs → cli-1.1.21-srd8n2bc.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{bd as Q,cd as Y}from"./cli-1.1.19-2jkn8w89.mjs";import{Cl as H,Dl as B,Hl as U,Il as V,Rp as J,Sp as W,pN as K,xN as X}from"./cli-1.1.19-hqbspnvc.mjs";import{hta as q,kta as v}from"./cli-1.1.19-cc266ybe.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
2
- export{P as Zc,C as _c,A as $c,D as ad};
@@ -1,2 +0,0 @@
1
- import{jta as n,kta as o}from"./cli-1.1.19-cc266ybe.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
- export{i as Zja,c as _ja,p as $ja,u as aka};
@@ -1,2 +0,0 @@
1
- import{D4 as $,y4 as N}from"./cli-1.1.19-3jjgtf8t.mjs";import{Q8 as Z,q8 as M,w5 as L,z5 as Y}from"./cli-1.1.19-m8w4as34.mjs";import{Wga as Q,cha as X}from"./cli-1.1.19-dt84yfk2.mjs";import{Xja as J,Yja as V}from"./cli-1.1.19-q5kbe656.mjs";import{Hla as S,zla as P}from"./cli-1.1.19-eyhpgp73.mjs";import{Ksa as W,ssa as K}from"./cli-1.1.19-awkva6qc.mjs";import{kta as R}from"./cli-1.1.19-cc266ybe.mjs";async function f(){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{f as hX,j as iX,b as jX};
@@ -1,2 +0,0 @@
1
- import{Wi as W,Xi as E}from"./cli-1.1.19-tqv8yds0.mjs";import{d4 as U,f4 as J}from"./cli-1.1.19-25szxvwt.mjs";import{F4 as V,G4 as B}from"./cli-1.1.19-6jvzyjts.mjs";import{Q8 as $,l5 as N,m5 as _,q8 as Q,v8 as R}from"./cli-1.1.19-m8w4as34.mjs";import{Wga as K,cha as Z}from"./cli-1.1.19-dt84yfk2.mjs";import{kta as Y}from"./cli-1.1.19-cc266ybe.mjs";async function C(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var F=Y(()=>{_();$();B();Z();E();J()});
2
- export{C as $b,F as ac};
@@ -1,2 +0,0 @@
1
- import{WX as Xq,_X as wq,cY as xq,dY as c,eY as zq,mY as Yq}from"./cli-1.1.19-x8set46s.mjs";import{s3 as vq,z3 as Nq}from"./cli-1.1.19-8zwh2ky5.mjs";import{M$ as Fq,P_ as Oq,Q_ as Lq,Wga as b,cha as yq,o$ as jq,tea as C,vea as Mq}from"./cli-1.1.19-dt84yfk2.mjs";import{cja as R,eja as Qq,fja as w,gja as Vq}from"./cli-1.1.19-ybe27dz9.mjs";import{Fka as z,Gka as y,Kka as qq,ala as G,dla as Jq}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as W,Bla as x,Hla as e}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as s,Lla as l,Nla as t,Vla as a}from"./cli-1.1.19-5eb8a4wn.mjs";import{Iqa as u,opa as i,vna as r,wna as Aq,yra as m,zna as d}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as T,lta as Hq}from"./cli-1.1.19-cc266ybe.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!zq())return;let Q=J??c(),V=xq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==vq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.19-7chtcyjj.mjs"),import("./detection-1.1.19-kzpx83pk.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
- export{_J as uV,WJ as vV,UJ as wV,fq as xV,BJ as yV,EJ as zV,HJ as AV,OJ as BV,_q as CV,U as DV,bq as EV,jJ as FV,O as GV,v as HV,vJ as IV,P as JV,xJ as KV,zJ as LV,CJ as MV,Bq as NV,n as OV,Eq as PV,IJ as QV,Sq as RV,gJ as SV,L as TV,F as UV,B as VV,nq as WV,kq as XV,oJ as YV,nJ as ZV,kJ as _V,rJ as $V,dJ as aW,rq as bW,iJ as cW,mJ as dW,sJ as eW,tJ as fW,aJ as gW,eJ as hW,mq as iW,sq as jW};
@@ -1,5 +0,0 @@
1
- import{Fb as F}from"./cli-1.1.19-3xpqyp64.mjs";import{Xt as N,Yt as b}from"./cli-1.1.19-hqbspnvc.mjs";import{IW as U,LW as d,MW as _,NW as M,SW as I}from"./cli-1.1.19-h6a1zywh.mjs";import{U8 as z,X8 as T,c9 as x,d9 as H,i9 as v}from"./cli-1.1.19-cfgdvk8n.mjs";import{J_ as Z,L_ as P}from"./cli-1.1.19-dt84yfk2.mjs";import{Zja as B,aka as D}from"./cli-1.1.19-bg1d8zv9.mjs";import{Fka as O,Kka as f,ala as Y,dla as A}from"./cli-1.1.19-cq5hegwz.mjs";import{Nla as L,Vla as S}from"./cli-1.1.19-5eb8a4wn.mjs";import{Ksa as i,ssa as y}from"./cli-1.1.19-awkva6qc.mjs";import{lta as k}from"./cli-1.1.19-cc266ybe.mjs";i();A();P();d();D();b();A();P();S();T();v();I();f();var u=`{"type":"keep_alive"}
2
- `,C=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(C)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:z()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.19-dn4wk1mg.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...z()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)B("",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)B("",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let G=this.refreshHeaders();Object.assign(this.headers,G),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),j=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(j)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)B("",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(j)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},j)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((j)=>("uuid"in j)&&j.uuid===J);if($>=0){Q=$+1;let j=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(j),j.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${j.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:j.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let j=O($)+`
3
- `;if(!this.sendLine(j)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
4
- `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(u),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:j,onBatchDropped:G}=$??{};this.postUrl=r(J),this.uploader=new F({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:j,onBatchDropped:(V,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:V,failures:q}),G?.(V,q)},send:(V)=>this.postOnce(V)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=U();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
5
- export{W as qb,n as rb};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as gta,A as hta,B as ita,C as jta,D as kta,F as lta,G as mta,H as nta};
@@ -1,12 +0,0 @@
1
- import{m9 as D}from"./cli-1.1.19-wzm0j7nd.mjs";import{Oka as L,Ska as JG,ala as W,dla as a}from"./cli-1.1.19-cq5hegwz.mjs";import{Mla as c,Nla as jG,Vla as GG}from"./cli-1.1.19-5eb8a4wn.mjs";import{Xra as q,Yra as g}from"./cli-1.1.19-f1vb0eyp.mjs";import{Ksa as RG,ssa as H}from"./cli-1.1.19-awkva6qc.mjs";import{Rsa as XG}from"./cli-1.1.19-vpabfve5.mjs";import{gta as WG,kta as j,lta as e}from"./cli-1.1.19-cc266ybe.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
- `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
- \r
4
- `);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
- `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
- `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
7
- `;let $=n(K);K.write(`${X}\r
8
- `);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
9
- `;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
10
- `;let V=n(Y);Y.write(`${$}\r
11
- `);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.19-06ccpd87.mjs"),import("./index-1.1.19-7ngy3yfc.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
- export{yG as R8,i as S8,N as T8,gG as U8,aG as V8,iG as W8,KG as X8,MJ as Y8,HJ as Z8,OG as _8,E as $8,y as a9,_J as b9,jJ as c9,qJ as d9,UJ as e9,NJ as f9,TJ as g9,FJ as h9,PG as i9};
@@ -1,24 +0,0 @@
1
- import{bY as P,mY as g}from"./cli-1.1.19-x8set46s.mjs";import{E2 as C,H2 as d}from"./cli-1.1.19-29wgse8t.mjs";import{N_ as A,O$ as T,P$ as u,P_ as U,Q_ as w}from"./cli-1.1.19-dt84yfk2.mjs";import{Fka as O,Gka as W,Kka as c,ala as X,dka as R,dla as h,fka as F}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as V,Fla as N,Hla as m}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as k,Vla as S}from"./cli-1.1.19-5eb8a4wn.mjs";import{Dna as E,Fna as M,yra as D,zna as B}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as $}from"./cli-1.1.19-cc266ybe.mjs";function H(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function e(q,G=10){if(process.platform==="win32"){let L=`
2
- $pid = ${String(q)}
3
- $ancestors = @()
4
- for ($i = 0; $i -lt ${G}; $i++) {
5
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
- if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
- $pid = $proc.ParentProcessId
8
- $ancestors += $pid
9
- }
10
- $ancestors -join ','
11
- `.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map((Z)=>parseInt(Z,10)).filter((Z)=>!isNaN(Z))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
- `).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function qq(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=A(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function zq(q,G=10){if(process.platform==="win32"){let L=`
13
- $currentPid = ${String(q)}
14
- $commands = @()
15
- for ($i = 0; $i -lt ${G}; $i++) {
16
- $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
- if (-not $proc) { break }
18
- if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
- if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
- $currentPid = $proc.ParentProcessId
21
- }
22
- $commands -join [char]0
23
- `.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var K=$(()=>{w()});import{chmod as a,mkdir as l,readdir as p,readFile as o,unlink as I,writeFile as j}from"fs/promises";import{join as Y}from"path";function _(){return Y(k(),"sessions")}function n(){return}async function vq(){if(P()!=null)return!1;let q=n()??"interactive",G=_(),J=Y(G,`${process.pid}.json`);R(async()=>{try{await I(J)}catch{}});try{return await l(G,{recursive:!0,mode:448}),await a(G,448),await j(J,O({pid:process.pid,sessionId:B(),cwd:M(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),y?.(),y=E((z)=>{v({sessionId:z})}),!0}catch(z){return X(`[concurrentSessions] register failed: ${V(z)}`),!1}}async function v(q){let G=Y(_(),`${process.pid}.json`);try{let J=W(await o(G,"utf8"));await j(G,O({...J,...q}))}catch(J){X(`[concurrentSessions] updatePidFile failed: ${V(J)}`)}}async function Aq(q){if(!q)return;await v({name:q})}async function b(q){await v({bridgeSessionId:q})}async function Hq(){let q=_(),G;try{G=await p(q)}catch(z){if(!N(z))X(`[concurrentSessions] readdir failed: ${V(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(H(L))J++;else if(T()!=="wsl")I(Y(q,z)).catch(()=>{})}return J}var y;var f=$(()=>{D();F();h();S();m();K();u();c();g()});function Eq(q){x=q,b(t()??null).catch(()=>{})}function r(){return x}function t(){let q=r();return q?C(q.bridgeSessionId):void 0}var x=null;var s=$(()=>{f();d()});
24
- export{H as IX,e as JX,qq as KX,zq as LX,K as MX,vq as NX,Aq as OX,b as PX,Hq as QX,f as RX,Eq as SX,r as TX,t as UX,s as VX};
@@ -1,2 +0,0 @@
1
- import{Wb as Y}from"./cli-1.1.19-er0hdy0x.mjs";import{TW as N,UW as O}from"./cli-1.1.19-h6a1zywh.mjs";import{Qga as A,Sga as C}from"./cli-1.1.19-dt84yfk2.mjs";import{Zja as G,aka as K}from"./cli-1.1.19-bg1d8zv9.mjs";import{Gka as x,Kka as j,ala as X,dla as w}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as L,Hla as E}from"./cli-1.1.19-eyhpgp73.mjs";K();O();import{randomUUID as T}from"crypto";w();C();E();j();function h(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function P(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function S(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function v(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function q(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return A(V)||void 0}function p(H,Z,V,f,$,B){try{let J=Y(x(H));if(P(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(S(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!h(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);G("",{is_repl:!0}),f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${L(J)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:_}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:y}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=_?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let k={...W,session_id:f};V.write(k),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function i(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:H,uuid:T()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
- export{v as Qb,q as Rb,p as Sb,g as Tb,i as Ub,R as Vb};
@@ -1,6 +0,0 @@
1
- import{gla as ZX,jla as y8}from"./cli-1.1.19-4hek4kyb.mjs";import{Bla as r,Hla as R8}from"./cli-1.1.19-eyhpgp73.mjs";import{Kla as $X,Nla as NJ,Vla as j8}from"./cli-1.1.19-5eb8a4wn.mjs";import{Ama as w,Bma as kQ,Ema as yJ,Fma as OX,Gma as h,Hma as vJ,Ima as tJ,Jma as hX,Kma as hJ,Lma as wX,Mma as y,Nma as OJ,Oma as gQ,Pma as m6,Sma as O,Tma as GJ,Wla as dQ,Xla as P6,ama as qJ,bma as oX,ema as eJ,fma as fX,gma as fQ,hma as T6,ima as $Q,jma as cX,mma as JQ,nma as pX,oma as g,pma as oJ,qma as n,rma as LQ,uma as pQ,vma as v6,yma as l,yra as sQ,zma as wQ,zna as XX}from"./cli-1.1.19-gw9jb8fv.mjs";import{Ara as CX,Fra as cJ,Gra as TX,Hra as HJ,Ira as J6,Lra as L,Mra as XJ,Rra as LJ,Sra as zX,Xra as V,Yra as xJ,zra as SJ}from"./cli-1.1.19-f1vb0eyp.mjs";import{jta as uJ,kta as U,mta as N,nta as W}from"./cli-1.1.19-cc266ybe.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
2
- `)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
3
- `);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
4
- `))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
5
- `;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
6
- export{zJ as bka,BJ as cka,IJ as dka,r8 as eka,CJ as fka,e as gka,_J as hka,m as ika,JJ as jka,j as kka,QJ as lka,R as mka,k as nka,_ as oka,d as pka,$J as qka,lJ as rka,iJ as ska,rJ as tka,b as uka,ZJ as vka,ZQ as wka,YQ as xka,BQ as yka,IQ as zka,RQ as Aka,AQ as Bka,nQ as Cka,lQ as Dka,E as Eka,KJ as Fka,I8 as Gka,C8 as Hka,F8 as Ika,V8 as Jka,UJ as Kka,JX as Lka,H1 as Mka,G1 as Nka,s as Oka,K1 as Pka,U1 as Qka,N1 as Rka,QX as Ska,g8 as Tka,T as Uka,L1 as Vka,b8 as Wka,GX as Xka,KX as Yka,_1 as Zka,S1 as _ka,O1 as $ka,D8 as ala,UX as bla,w1 as cla,aQ as dla};
@@ -1,2 +0,0 @@
1
- import{tf as k,vf as a}from"./cli-1.1.19-vr8jf7k6.mjs";import{E2 as D,H2 as g}from"./cli-1.1.19-29wgse8t.mjs";import{ala as K,dla as u}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as G,Hla as l}from"./cli-1.1.19-eyhpgp73.mjs";import{kta as c,lta as J}from"./cli-1.1.19-cc266ybe.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.19-h46w2e1a.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.19-rydegw5h.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.19-y016e4dk.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.19-gbh2sz3k.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.19-g0rbffr6.mjs"),{getDefaultBranch:T}=await import("./git-1.1.19-1njw7gwq.mjs"),{getMainLoopModel:j}=await import("./model-1.1.19-sm0ftpna.mjs"),{default:x}=await import("./index-1.1.19-zy7mntdp.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.19-g0rbffr6.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.19-h46w2e1a.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.19-rydegw5h.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.19-y016e4dk.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.19-gbh2sz3k.mjs"),{default:y}=await import("./index-1.1.19-zy7mntdp.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.19-h46w2e1a.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.19-rydegw5h.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.19-y016e4dk.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.19-gbh2sz3k.mjs"),{default:y}=await import("./index-1.1.19-zy7mntdp.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.19-h46w2e1a.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.19-rydegw5h.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.19-y016e4dk.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.19-gbh2sz3k.mjs"),{default:B}=await import("./index-1.1.19-zy7mntdp.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
2
- export{n as jf,e as kf,JJ as lf,KJ as mf,NJ as nf,i as of};
@@ -1,2 +0,0 @@
1
- import{Ww as m,Xw as e}from"./cli-1.1.19-hqbspnvc.mjs";import{kta as n}from"./cli-1.1.19-cc266ybe.mjs";function c(o){t.setState(()=>[...o])}var t,r=()=>t.getState(),d;var s=n(()=>{e();t=m([]),d=t.subscribe});
2
- export{r as Cd,d as Dd,c as Ed,s as Fd};
@@ -1,2 +0,0 @@
1
- import{DZ as Z,H1 as k,c1 as K}from"./cli-1.1.19-v619rbr5.mjs";import{e4 as J,f4 as H}from"./cli-1.1.19-25szxvwt.mjs";import{x_ as v,y_ as Y}from"./cli-1.1.19-dt84yfk2.mjs";import{gta as V,kta as X}from"./cli-1.1.19-cc266ybe.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
- export{N as Ch,C as Dh};
@@ -1,3 +0,0 @@
1
- import{$sa as x,bta as y,fta as C}from"./cli-1.1.19-e5k83shq.mjs";import{ita as k}from"./cli-1.1.19-cc266ybe.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
- `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as g_};
@@ -1,2 +0,0 @@
1
- import{DZ as u,H1 as a,P0 as QQ,Q0 as uQ,a1 as k,c1 as y,i1 as MQ,r1 as _Q,s1 as aQ,w1 as d}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as K,e4 as l,f4 as m}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as v}from"./cli-1.1.19-5kaw3aa5.mjs";import{D4 as YV,w4 as n,y4 as t}from"./cli-1.1.19-3jjgtf8t.mjs";import{B8 as pQ,Q8 as XV,v8 as $Q,y8 as P}from"./cli-1.1.19-m8w4as34.mjs";import{Wga as CQ,_ea as fQ,bfa as x,cha as VV,wea as mQ,wfa as QV,xea as eQ}from"./cli-1.1.19-dt84yfk2.mjs";import{hha as IQ,iha as sQ}from"./cli-1.1.19-nb1256fg.mjs";import{Xja as r,Yja as nQ}from"./cli-1.1.19-q5kbe656.mjs";import{ala as E,dla as iQ}from"./cli-1.1.19-cq5hegwz.mjs";import{Ksa as tQ,ssa as i}from"./cli-1.1.19-awkva6qc.mjs";import{gta as T,kta as F}from"./cli-1.1.19-cc266ybe.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as nY,YQ as oY,JQ as pY,hQ as qY,c as rY,NV as sY,LQ as tY,qQ as uY,zQ as vY,NQ as wY,TV as xY,h as yY,KV as zY,UQ as AY,RV as BY,OQ as CY,wQ as DY,o as EY,WQ as FY,$V as GY,oQ as HY,s as IY,SQ as JY,bV as KY,xV as LY,AQ as MY,DQ as NY,EQ as OY,oV as PY,rQ as QY,ZX as RY,GX as SY,JX as TY,LX as UY,qX as VY,JV as WY,HX as XY,LV as YY};
@@ -1,2 +0,0 @@
1
- import{Az as Uq,Bz as mq,vs as Hq,ws as pq}from"./cli-1.1.19-hqbspnvc.mjs";import{q4 as Bq,s4 as dq}from"./cli-1.1.19-2xxxjdpp.mjs";import{K7 as Nq,L7 as yq,Q8 as gq,Z4 as Lq,c5 as jq,d5 as Sq,q8 as i,u8 as S}from"./cli-1.1.19-m8w4as34.mjs";import{Gea as Yq,Hea as Dq,I$ as b,Iea as k,Kea as Wq,M$ as $q,Nea as Xq,raa as Gq,taa as Pq}from"./cli-1.1.19-dt84yfk2.mjs";import{cja as N,eja as Mq,fja as E,gja as Cq}from"./cli-1.1.19-ybe27dz9.mjs";import{Qja as Kq,Rja as Qq,Sja as Vq,Xja as Zq,Yja as Rq}from"./cli-1.1.19-q5kbe656.mjs";import{Zja as _,aka as e}from"./cli-1.1.19-bg1d8zv9.mjs";import{Fka as m,Kka as Eq,ala as Y,dka as Fq,dla as Jq,fka as $J}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as C,Gla as P,Hla as qq}from"./cli-1.1.19-eyhpgp73.mjs";import{Ksa as kq,ssa as z}from"./cli-1.1.19-awkva6qc.mjs";import{jta as ZJ,kta as d,lta as Tq}from"./cli-1.1.19-cc266ybe.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.19-xsbhz7tg.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
- export{Aq as p,NJ as q,BJ as r,bq as s,HJ as t,UJ as u,OJ as v,wJ as w};