@claudiolabs/claudin 1.1.3 → 1.1.5

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 (913) hide show
  1. package/dist/chunks/AgentTool-1.1.5-car4wryg.mjs +1 -0
  2. package/dist/chunks/App-1.1.5-z0yx1svv.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.5-w45fejta.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.5-wpzenq2z.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.5-4s0r270q.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.5-dx9d1z78.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.5-0k0z6a1m.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.5-sbdb54nq.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.5-9tz97bn9.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.5-apx3wyew.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.5-891875tg.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.5-7qgs0ctk.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.5-6sez284v.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.5-5dj12wwy.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.5-qhe96ke7.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.5-n3ckkvap.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.5-3zcfdapk.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.5-md334w8f.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.5-nsj3srpq.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.5-19hsx4tm.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.5-h3eyae2y.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.5-f81xwyhr.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.5-nx2v36t1.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.5-rk93z4dr.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.5-7xpzhazh.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.5-vwdgwpbq.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.5-d9yxahsv.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.5-h81mhrtj.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.5-9z4prdv7.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.5-2r72vjnd.mjs +1 -0
  31. package/dist/chunks/agents-1.1.5-42ak0q7h.mjs +110 -0
  32. package/dist/chunks/agents-1.1.5-6mddedjv.mjs +3 -0
  33. package/dist/chunks/api-1.1.5-wv0hk17a.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.5-6hpenp1g.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.5-gtrb1ytz.mjs +1 -0
  36. package/dist/chunks/auth-1.1.5-3gb86bzb.mjs +1 -0
  37. package/dist/chunks/auth-1.1.5-nmydgbfa.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.5-7dv0v1v1.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.5-64mbk0zw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.5-g7cnfdvq.mjs +1 -0
  41. package/dist/chunks/branch-1.1.5-yaqv3wbc.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.5-154psxbc.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.5-s174he1k.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.5-w6e3wcsk.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.5-yhcrds6r.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.5-kebmje48.mjs +1 -0
  47. package/dist/chunks/btw-1.1.5-mfkqctq8.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.5-k7ntvcd9.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.5-c43ce176.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.5-wjk6v8ah.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.5-tw30ndt7.mjs +4 -0
  52. package/dist/chunks/caches-1.1.5-cftgxft7.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.5-pwme5y05.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.5-4ze3v28n.mjs +1 -0
  55. package/dist/chunks/clear-1.1.5-gwbert39.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.5-dgbcqbp5.mjs +1 -0
  57. package/dist/chunks/cli-1.1.5-04a4w5qm.mjs +2 -0
  58. package/dist/chunks/cli-1.1.5-04mta7g9.mjs +2 -0
  59. package/dist/chunks/cli-1.1.5-06s5q1ja.mjs +2 -0
  60. package/dist/chunks/cli-1.1.5-0a8jb3pr.mjs +2 -0
  61. package/dist/chunks/cli-1.1.5-0amg980q.mjs +2 -0
  62. package/dist/chunks/cli-1.1.5-0gd61h7z.mjs +2 -0
  63. package/dist/chunks/cli-1.1.5-0jp6cq2j.mjs +2 -0
  64. package/dist/chunks/cli-1.1.5-0kq9h6ts.mjs +2 -0
  65. package/dist/chunks/cli-1.1.5-0rnv5bg3.mjs +9 -0
  66. package/dist/chunks/cli-1.1.5-0yw3n72x.mjs +2 -0
  67. package/dist/chunks/cli-1.1.5-126h7k7m.mjs +2 -0
  68. package/dist/chunks/cli-1.1.5-1385z6tg.mjs +2 -0
  69. package/dist/chunks/cli-1.1.5-15q297nh.mjs +2 -0
  70. package/dist/chunks/cli-1.1.5-17pq11ad.mjs +15 -0
  71. package/dist/chunks/cli-1.1.5-1k6n7e0p.mjs +2 -0
  72. package/dist/chunks/cli-1.1.5-1ms5wad6.mjs +2 -0
  73. package/dist/chunks/cli-1.1.5-1qr5p3pk.mjs +3 -0
  74. package/dist/chunks/cli-1.1.5-20206ha7.mjs +3 -0
  75. package/dist/chunks/cli-1.1.5-2bc86bd2.mjs +2 -0
  76. package/dist/chunks/cli-1.1.5-2e2rwx0h.mjs +2 -0
  77. package/dist/chunks/cli-1.1.5-2evbbg97.mjs +2 -0
  78. package/dist/chunks/cli-1.1.5-2g7w64ck.mjs +2 -0
  79. package/dist/chunks/cli-1.1.5-2kgng99f.mjs +24 -0
  80. package/dist/chunks/cli-1.1.5-2qf8qy7f.mjs +2 -0
  81. package/dist/chunks/cli-1.1.5-2r25f40p.mjs +2 -0
  82. package/dist/chunks/cli-1.1.5-2rmwkb2s.mjs +4 -0
  83. package/dist/chunks/cli-1.1.5-2v5ehg8c.mjs +2 -0
  84. package/dist/chunks/cli-1.1.5-3389j5t0.mjs +17 -0
  85. package/dist/chunks/cli-1.1.5-362kw0jy.mjs +2 -0
  86. package/dist/chunks/cli-1.1.5-3mact63s.mjs +2 -0
  87. package/dist/chunks/cli-1.1.5-3n83mvmz.mjs +2 -0
  88. package/dist/chunks/cli-1.1.5-3q931f2n.mjs +2 -0
  89. package/dist/chunks/cli-1.1.5-3wtxx0sm.mjs +133 -0
  90. package/dist/chunks/cli-1.1.5-3xf010sx.mjs +4 -0
  91. package/dist/chunks/cli-1.1.5-3zc9bseg.mjs +6 -0
  92. package/dist/chunks/cli-1.1.5-3zpkftsv.mjs +2 -0
  93. package/dist/chunks/cli-1.1.5-43ng5pm1.mjs +3 -0
  94. package/dist/chunks/cli-1.1.5-43y030nv.mjs +2 -0
  95. package/dist/chunks/cli-1.1.5-46qvwkna.mjs +12 -0
  96. package/dist/chunks/cli-1.1.5-4gt9am76.mjs +2 -0
  97. package/dist/chunks/cli-1.1.5-4w21hywc.mjs +34 -0
  98. package/dist/chunks/cli-1.1.5-4xh64wf2.mjs +2 -0
  99. package/dist/chunks/cli-1.1.5-4zdp08yw.mjs +2 -0
  100. package/dist/chunks/cli-1.1.5-50vh2xqs.mjs +2 -0
  101. package/dist/chunks/cli-1.1.5-54qyvbmc.mjs +2 -0
  102. package/dist/chunks/cli-1.1.5-5973nce5.mjs +2 -0
  103. package/dist/chunks/cli-1.1.5-5pmp4wy1.mjs +2 -0
  104. package/dist/chunks/cli-1.1.5-5rsae1r8.mjs +2 -0
  105. package/dist/chunks/cli-1.1.5-600z85n1.mjs +18 -0
  106. package/dist/chunks/cli-1.1.5-60cafcfa.mjs +2 -0
  107. package/dist/chunks/cli-1.1.5-62ntg4mw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.5-6cxs0npd.mjs +25 -0
  109. package/dist/chunks/cli-1.1.5-6dmtdkjb.mjs +3 -0
  110. package/dist/chunks/cli-1.1.5-6s77vhbn.mjs +2 -0
  111. package/dist/chunks/cli-1.1.5-6yjhrk9v.mjs +2 -0
  112. package/dist/chunks/cli-1.1.5-6zgcprsm.mjs +4 -0
  113. package/dist/chunks/cli-1.1.5-74d8s15n.mjs +20 -0
  114. package/dist/chunks/cli-1.1.5-7fh6xvxr.mjs +24 -0
  115. package/dist/chunks/cli-1.1.5-7fnn4cxx.mjs +2 -0
  116. package/dist/chunks/cli-1.1.5-7fr21xne.mjs +2 -0
  117. package/dist/chunks/cli-1.1.5-7rnam3pn.mjs +2 -0
  118. package/dist/chunks/cli-1.1.5-7x24fkdt.mjs +2 -0
  119. package/dist/chunks/cli-1.1.5-81ek1hnd.mjs +7 -0
  120. package/dist/chunks/cli-1.1.5-8nkgdwbz.mjs +2 -0
  121. package/dist/chunks/cli-1.1.5-8sm7bn8y.mjs +2 -0
  122. package/dist/chunks/cli-1.1.5-8y8kwrpv.mjs +50 -0
  123. package/dist/chunks/cli-1.1.5-8z6nvxgy.mjs +2 -0
  124. package/dist/chunks/cli-1.1.5-91h2qx3w.mjs +4 -0
  125. package/dist/chunks/cli-1.1.5-97sv1sx5.mjs +2 -0
  126. package/dist/chunks/cli-1.1.5-9d2hd2n0.mjs +2 -0
  127. package/dist/chunks/cli-1.1.5-9eg1em3k.mjs +4 -0
  128. package/dist/chunks/cli-1.1.5-9myk8nsj.mjs +2 -0
  129. package/dist/chunks/cli-1.1.5-9p1q31nx.mjs +2 -0
  130. package/dist/chunks/cli-1.1.5-9pjr2mxf.mjs +5 -0
  131. package/dist/chunks/cli-1.1.5-9q40r2jj.mjs +59 -0
  132. package/dist/chunks/cli-1.1.5-9s6mqtv8.mjs +3 -0
  133. package/dist/chunks/cli-1.1.5-a41pf5rk.mjs +2 -0
  134. package/dist/chunks/cli-1.1.5-am2yr9em.mjs +2 -0
  135. package/dist/chunks/cli-1.1.5-ay6eds7m.mjs +6 -0
  136. package/dist/chunks/cli-1.1.5-azgr9ksh.mjs +45 -0
  137. package/dist/chunks/cli-1.1.5-ba4n22ph.mjs +2 -0
  138. package/dist/chunks/cli-1.1.5-bcgy5mbp.mjs +5649 -0
  139. package/dist/chunks/cli-1.1.5-bh2pjxv2.mjs +12 -0
  140. package/dist/chunks/cli-1.1.5-brfx4pre.mjs +3 -0
  141. package/dist/chunks/cli-1.1.5-bs0hzzxt.mjs +2 -0
  142. package/dist/chunks/cli-1.1.5-c5wk6r1v.mjs +2 -0
  143. package/dist/chunks/cli-1.1.5-cbafqtmk.mjs +2 -0
  144. package/dist/chunks/cli-1.1.5-cy7bp5f8.mjs +2 -0
  145. package/dist/chunks/cli-1.1.5-d60etcng.mjs +2 -0
  146. package/dist/chunks/cli-1.1.5-dbfj54qv.mjs +4 -0
  147. package/dist/chunks/cli-1.1.5-denrjjr8.mjs +2 -0
  148. package/dist/chunks/cli-1.1.5-djfg6qcy.mjs +4 -0
  149. package/dist/chunks/cli-1.1.5-dknh0wry.mjs +2 -0
  150. package/dist/chunks/cli-1.1.5-dmgep5pw.mjs +15 -0
  151. package/dist/chunks/cli-1.1.5-dpwkjrhv.mjs +2 -0
  152. package/dist/chunks/cli-1.1.5-dv98e0wx.mjs +17 -0
  153. package/dist/chunks/cli-1.1.5-dvzmss5c.mjs +12 -0
  154. package/dist/chunks/cli-1.1.5-e51n4cww.mjs +2 -0
  155. package/dist/chunks/cli-1.1.5-ecxx0wpb.mjs +2 -0
  156. package/dist/chunks/cli-1.1.5-eg17f7k7.mjs +2 -0
  157. package/dist/chunks/cli-1.1.5-ehbpt4w6.mjs +2 -0
  158. package/dist/chunks/cli-1.1.5-epjw98jw.mjs +3 -0
  159. package/dist/chunks/cli-1.1.5-ez9ctahf.mjs +133 -0
  160. package/dist/chunks/cli-1.1.5-fqwwgfme.mjs +21 -0
  161. package/dist/chunks/cli-1.1.5-fr76ha7s.mjs +2 -0
  162. package/dist/chunks/cli-1.1.5-g04gzz34.mjs +2 -0
  163. package/dist/chunks/cli-1.1.5-g5gyt5h8.mjs +2 -0
  164. package/dist/chunks/cli-1.1.5-gm4ptwx4.mjs +2 -0
  165. package/dist/chunks/cli-1.1.5-gr7dgsaq.mjs +2 -0
  166. package/dist/chunks/cli-1.1.5-gsmrbqh1.mjs +2 -0
  167. package/dist/chunks/cli-1.1.5-gwt7szsh.mjs +2 -0
  168. package/dist/chunks/cli-1.1.5-h1w0v5x0.mjs +2 -0
  169. package/dist/chunks/cli-1.1.5-h5k7t8m7.mjs +8 -0
  170. package/dist/chunks/cli-1.1.5-hs02jchx.mjs +2 -0
  171. package/dist/chunks/cli-1.1.5-j298304z.mjs +2 -0
  172. package/dist/chunks/cli-1.1.5-j5g040vf.mjs +2 -0
  173. package/dist/chunks/cli-1.1.5-jknqq4v0.mjs +2 -0
  174. package/dist/chunks/cli-1.1.5-jq32vtrb.mjs +58 -0
  175. package/dist/chunks/cli-1.1.5-jqef0dgk.mjs +42 -0
  176. package/dist/chunks/cli-1.1.5-k0y1mt50.mjs +4 -0
  177. package/dist/chunks/cli-1.1.5-k7zeqxym.mjs +9 -0
  178. package/dist/chunks/cli-1.1.5-kbpaxqg8.mjs +2 -0
  179. package/dist/chunks/cli-1.1.5-kc9qhatt.mjs +18 -0
  180. package/dist/chunks/cli-1.1.5-kdxm5m52.mjs +2 -0
  181. package/dist/chunks/cli-1.1.5-keef1hq8.mjs +2 -0
  182. package/dist/chunks/cli-1.1.5-khj9bq82.mjs +3 -0
  183. package/dist/chunks/cli-1.1.5-kq8vk6pv.mjs +2 -0
  184. package/dist/chunks/cli-1.1.5-ks2gq7tg.mjs +2 -0
  185. package/dist/chunks/cli-1.1.5-kzdgyb0j.mjs +3 -0
  186. package/dist/chunks/cli-1.1.5-m78s0fnh.mjs +2 -0
  187. package/dist/chunks/cli-1.1.5-mrwhx936.mjs +15 -0
  188. package/dist/chunks/cli-1.1.5-mx0yvg1w.mjs +2 -0
  189. package/dist/chunks/cli-1.1.5-mzxdmdxn.mjs +2 -0
  190. package/dist/chunks/cli-1.1.5-n4xgjbwe.mjs +2 -0
  191. package/dist/chunks/cli-1.1.5-n6wx6zn2.mjs +2 -0
  192. package/dist/chunks/cli-1.1.5-nkhse0vg.mjs +67 -0
  193. package/dist/chunks/cli-1.1.5-nvf47p1p.mjs +12 -0
  194. package/dist/chunks/cli-1.1.5-p76ywbdf.mjs +2 -0
  195. package/dist/chunks/cli-1.1.5-pthrjd43.mjs +2 -0
  196. package/dist/chunks/cli-1.1.5-q2x467jp.mjs +6 -0
  197. package/dist/chunks/cli-1.1.5-qdha9akj.mjs +2 -0
  198. package/dist/chunks/cli-1.1.5-qg67v24h.mjs +2 -0
  199. package/dist/chunks/cli-1.1.5-qxvbnypq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.5-qypb27cc.mjs +2 -0
  201. package/dist/chunks/cli-1.1.5-r152533n.mjs +2 -0
  202. package/dist/chunks/cli-1.1.5-r43zh250.mjs +3 -0
  203. package/dist/chunks/cli-1.1.5-ra53k7hj.mjs +39 -0
  204. package/dist/chunks/cli-1.1.5-rah577er.mjs +2 -0
  205. package/dist/chunks/cli-1.1.5-rc2g2735.mjs +2 -0
  206. package/dist/chunks/cli-1.1.5-rdfya3vt.mjs +2 -0
  207. package/dist/chunks/cli-1.1.5-rqvgas0b.mjs +2 -0
  208. package/dist/chunks/cli-1.1.5-rqw75dc4.mjs +2 -0
  209. package/dist/chunks/cli-1.1.5-rwv58vt9.mjs +2 -0
  210. package/dist/chunks/cli-1.1.5-s0cez7yn.mjs +2 -0
  211. package/dist/chunks/cli-1.1.5-sc49xm3j.mjs +2 -0
  212. package/dist/chunks/cli-1.1.5-sf5x5qyd.mjs +2 -0
  213. package/dist/chunks/cli-1.1.5-sfnf38sj.mjs +2 -0
  214. package/dist/chunks/cli-1.1.5-sm03z8tn.mjs +4 -0
  215. package/dist/chunks/cli-1.1.5-srf8k7x8.mjs +2 -0
  216. package/dist/chunks/cli-1.1.5-stcmqfnq.mjs +2 -0
  217. package/dist/chunks/cli-1.1.5-sxj5bjbt.mjs +24 -0
  218. package/dist/chunks/cli-1.1.5-syhvsvgh.mjs +2 -0
  219. package/dist/chunks/cli-1.1.5-szzwagmb.mjs +1 -0
  220. package/dist/chunks/cli-1.1.5-t4gteprn.mjs +2 -0
  221. package/dist/chunks/cli-1.1.5-t9j8c92k.mjs +2 -0
  222. package/dist/chunks/cli-1.1.5-tae4w5sa.mjs +2 -0
  223. package/dist/chunks/cli-1.1.5-tbr6vnhr.mjs +2 -0
  224. package/dist/chunks/cli-1.1.5-ttm2crpm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.5-v9a6fbsq.mjs +202 -0
  226. package/dist/chunks/cli-1.1.5-va6jtxjw.mjs +2 -0
  227. package/dist/chunks/cli-1.1.5-vnrym8w3.mjs +2 -0
  228. package/dist/chunks/cli-1.1.5-vrkwrr2h.mjs +2 -0
  229. package/dist/chunks/cli-1.1.5-w81t9aj2.mjs +3 -0
  230. package/dist/chunks/cli-1.1.5-weseckxt.mjs +2 -0
  231. package/dist/chunks/cli-1.1.5-wv8954rf.mjs +2 -0
  232. package/dist/chunks/cli-1.1.5-x7xwtg60.mjs +25 -0
  233. package/dist/chunks/cli-1.1.5-x8h674be.mjs +2 -0
  234. package/dist/chunks/cli-1.1.5-x8r6zvjf.mjs +2 -0
  235. package/dist/chunks/cli-1.1.5-xd8qwq5t.mjs +4 -0
  236. package/dist/chunks/cli-1.1.5-xm9scgfb.mjs +6 -0
  237. package/dist/chunks/cli-1.1.5-xn9p8nks.mjs +2 -0
  238. package/dist/chunks/cli-1.1.5-xzxcvrkj.mjs +18 -0
  239. package/dist/chunks/cli-1.1.5-y2bqj565.mjs +2 -0
  240. package/dist/chunks/cli-1.1.5-y39w08qk.mjs +16 -0
  241. package/dist/chunks/cli-1.1.5-y3cdh5em.mjs +2 -0
  242. package/dist/chunks/cli-1.1.5-y3dcmn9x.mjs +2 -0
  243. package/dist/chunks/cli-1.1.5-y489qfqe.mjs +2 -0
  244. package/dist/chunks/cli-1.1.5-y72dp044.mjs +2 -0
  245. package/dist/chunks/cli-1.1.5-y8301wby.mjs +2 -0
  246. package/dist/chunks/cli-1.1.5-y9z2ea67.mjs +3 -0
  247. package/dist/chunks/cli-1.1.5-ybhszeme.mjs +6 -0
  248. package/dist/chunks/cli-1.1.5-yhnfdcpq.mjs +2 -0
  249. package/dist/chunks/cli-1.1.5-yprjw8c0.mjs +2 -0
  250. package/dist/chunks/cli-1.1.5-ysgr8ehw.mjs +2 -0
  251. package/dist/chunks/cli-1.1.5-za0gqhad.mjs +2 -0
  252. package/dist/chunks/cli-1.1.5-za286hep.mjs +2 -0
  253. package/dist/chunks/cli-1.1.5-zaqz0p2z.mjs +2 -0
  254. package/dist/chunks/cli-1.1.5-zf1qpy4s.mjs +5 -0
  255. package/dist/chunks/cli-1.1.5-zfdptz6e.mjs +2 -0
  256. package/dist/chunks/cli-1.1.5-zhrqhz6k.mjs +2 -0
  257. package/dist/chunks/cli-1.1.5-znkch0ha.mjs +2 -0
  258. package/dist/chunks/cli-1.1.5-zp9z6jbr.mjs +4 -0
  259. package/dist/chunks/cli-1.1.5-zqf5btpq.mjs +2 -0
  260. package/dist/chunks/client-1.1.5-b7jy0ghd.mjs +1 -0
  261. package/dist/chunks/color-1.1.5-6y847zdb.mjs +1 -0
  262. package/dist/chunks/compact-1.1.5-qeq8t2tr.mjs +3 -0
  263. package/dist/chunks/config-1.1.5-80m4yf0n.mjs +1 -0
  264. package/dist/chunks/config-1.1.5-k42c66af.mjs +1 -0
  265. package/dist/chunks/constants-1.1.5-j7wq8kbt.mjs +1 -0
  266. package/dist/chunks/context-1.1.5-yg5tzb6e.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.5-x9avg7mv.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.5-26nfjzvp.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.5-r1ppkqcb.mjs +1 -0
  270. package/dist/chunks/copy-1.1.5-ca7qm1hb.mjs +9 -0
  271. package/dist/chunks/cost-1.1.5-78gr4gxd.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.5-kqscm0vz.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.5-p3sakr7e.mjs +1 -0
  274. package/dist/chunks/debug-1.1.5-p8srxkzw.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.5-eyhb0fk5.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.5-5grfbqvk.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.5-bwa3vtz3.mjs +1 -0
  278. package/dist/chunks/detection-1.1.5-vt7wfg5r.mjs +1 -0
  279. package/dist/chunks/diff-1.1.5-s3pxjw5c.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.5-4wbxz46k.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.5-kr5t2280.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.5-skyzxj8w.mjs +1 -0
  283. package/dist/chunks/effort-1.1.5-s9va7gy4.mjs +13 -0
  284. package/dist/chunks/engine-1.1.5-wx72h5z7.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.5-tpxb4pq7.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.5-6e5wrnvd.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.5-3mw0z7qc.mjs +1 -0
  288. package/dist/chunks/environments-1.1.5-m3j75h8p.mjs +1 -0
  289. package/dist/chunks/errors-1.1.5-nq9vsksc.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.5-q9e08k2w.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.5-dydczmz0.mjs +1 -0
  292. package/dist/chunks/exit-1.1.5-5h9189tx.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.5-wqz086gd.mjs +1 -0
  294. package/dist/chunks/export-1.1.5-1k3wgj33.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.5-06tk7xa5.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.5-xjjt7q6e.mjs +1 -0
  297. package/dist/chunks/fast-1.1.5-we1vtmqs.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.5-pkxyr6az.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.5-px4bh3ss.mjs +1 -0
  300. package/dist/chunks/git-1.1.5-g821etp0.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.5-jbdn9dvv.mjs +1 -0
  302. package/dist/chunks/goal-1.1.5-ysbtt444.mjs +4 -0
  303. package/dist/chunks/grove-1.1.5-mhavkgtj.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.5-dm9d5fyr.mjs +1 -0
  305. package/dist/chunks/headless-1.1.5-2a7gvzd4.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.5-mwggejz6.mjs +6 -0
  307. package/dist/chunks/help-1.1.5-7dqcztc7.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.5-cmdxm1q5.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.5-07j88vdd.mjs +1 -0
  310. package/dist/chunks/hooks-1.1.5-cf4zytg3.mjs +79 -0
  311. package/dist/chunks/ide-1.1.5-gqbtkqh9.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.5-xdg4a2re.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.5-mmme8bgb.mjs +1 -0
  314. package/dist/chunks/index-1.1.5-0e8nxkr5.mjs +1 -0
  315. package/dist/chunks/index-1.1.5-2psfav1z.mjs +1 -0
  316. package/dist/chunks/index-1.1.5-31yhmzz8.mjs +30 -0
  317. package/dist/chunks/index-1.1.5-7xbjb6c2.mjs +1 -0
  318. package/dist/chunks/index-1.1.5-8gbjp6gm.mjs +1 -0
  319. package/dist/chunks/index-1.1.5-9qaxnf95.mjs +9 -0
  320. package/dist/chunks/index-1.1.5-d80m9w2r.mjs +1 -0
  321. package/dist/chunks/index-1.1.5-dd9v93f3.mjs +1 -0
  322. package/dist/chunks/index-1.1.5-f15v7ehp.mjs +2 -0
  323. package/dist/chunks/index-1.1.5-gtcrsq6a.mjs +1 -0
  324. package/dist/chunks/index-1.1.5-k2mjk2hh.mjs +1 -0
  325. package/dist/chunks/index-1.1.5-k56wbbcc.mjs +1 -0
  326. package/dist/chunks/index-1.1.5-m8h0gt4v.mjs +5 -0
  327. package/dist/chunks/index-1.1.5-pc824vej.mjs +17 -0
  328. package/dist/chunks/index-1.1.5-r9dx3d9c.mjs +9 -0
  329. package/dist/chunks/index-1.1.5-rfsmfb7z.mjs +1 -0
  330. package/dist/chunks/index-1.1.5-skqdqj9f.mjs +1 -0
  331. package/dist/chunks/index-1.1.5-t75dn8we.mjs +1 -0
  332. package/dist/chunks/index-1.1.5-tje0j1qr.mjs +1 -0
  333. package/dist/chunks/index-1.1.5-vacssesj.mjs +1 -0
  334. package/dist/chunks/index-1.1.5-wypaz2jv.mjs +2 -0
  335. package/dist/chunks/index-1.1.5-z8sj89fp.mjs +1 -0
  336. package/dist/chunks/index-1.1.5-zw1sqbsw.mjs +1 -0
  337. package/dist/chunks/init-1.1.5-9n4y6y9n.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.5-9vj405en.mjs +1 -0
  339. package/dist/chunks/ink-1.1.5-vzb2fpxv.mjs +1 -0
  340. package/dist/chunks/insights-1.1.5-wfvxz2j9.mjs +870 -0
  341. package/dist/chunks/install-1.1.5-zxa0xtc5.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.5-gjkvtpss.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.5-cn8k75hh.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.5-ra2c7a9w.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.5-hc7k117d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.5-pvq5zpgs.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.5-04xy0wqx.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.5-q0n7h96f.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.5-x8j4b3r6.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.5-2f77cnnd.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.5-r82hvbrr.mjs +1 -0
  352. package/dist/chunks/log-1.1.5-bq8jjtaf.mjs +1 -0
  353. package/dist/chunks/main-1.1.5-g2ptyrq9.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.5-rhwtthhc.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.5-3kpff1y9.mjs +4 -0
  356. package/dist/chunks/mcp-1.1.5-7w7pv5qr.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.5-qdck46bh.mjs +1 -0
  358. package/dist/chunks/mcpb-1.1.5-s6qaatsk.mjs +1 -0
  359. package/dist/chunks/memory-1.1.5-sahcfrfk.mjs +72 -0
  360. package/dist/chunks/model-1.1.5-fyw5q2ag.mjs +1 -0
  361. package/dist/chunks/model-1.1.5-q7rv0mjx.mjs +2 -0
  362. package/dist/chunks/node-1.1.5-mpnx0eww.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.5-3j8hpr8a.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.5-3gwkgyz6.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.5-zmb3q1dm.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.5-c28vg45a.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.5-5m4axefq.mjs +1 -0
  368. package/dist/chunks/parser-1.1.5-z6sbh7rn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.5-5wv8397q.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.5-4j98y6ey.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.5-rg816dk9.mjs +3 -0
  372. package/dist/chunks/plan-1.1.5-5ta24jg9.mjs +1 -0
  373. package/dist/chunks/plist-1.1.5-g61dbe0t.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.5-qpm7s8qr.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.5-mrx0c0tk.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.5-sqsfnz52.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.5-97bkr9c6.mjs +2 -0
  378. package/dist/chunks/print-1.1.5-dmhsr0z8.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.5-m80j4n8y.mjs +1 -0
  380. package/dist/chunks/process-1.1.5-wgen5xeq.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.5-kbtffj67.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.5-e9gs2skb.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.5-nze4mgb1.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.5-rt3khqxe.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.5-n7j717c7.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.5-t2gwfb5r.mjs +13 -0
  387. package/dist/chunks/provider-1.1.5-frpk8g8n.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.5-73fdzmet.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.5-jgwkyrde.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.5-r2g52qq0.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.5-7a3c8p1r.mjs +34 -0
  392. package/dist/chunks/registry-1.1.5-ez5tf749.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.5-3s2ydgkr.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.5-ewy48323.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.5-fjnn4w8w.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.5-dykd344q.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.5-zh3f0taa.mjs +1 -0
  398. package/dist/chunks/rename-1.1.5-87w96zgn.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.5-k6qqd6n9.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.5-f5be34k2.mjs +1 -0
  401. package/dist/chunks/resume-1.1.5-6m8daxjc.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.5-h0p52671.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.5-vwgeptzg.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.5-rq7nrfys.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.5-v44d4c8t.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.5-1p7ft47t.mjs +1 -0
  407. package/dist/chunks/session-1.1.5-z13kjbfr.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.5-ay13sxfh.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.5-657ppg5q.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.5-6wbgfrx2.mjs +1 -0
  411. package/dist/chunks/settings-1.1.5-trqwe36q.mjs +1 -0
  412. package/dist/chunks/setup-1.1.5-36qva9ce.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.5-xrb884av.mjs +1 -0
  414. package/dist/chunks/skills-1.1.5-fx5xev0z.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.5-4srbezwa.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.5-z783f2gh.mjs +1 -0
  417. package/dist/chunks/state-1.1.5-emwaw100.mjs +1 -0
  418. package/dist/chunks/stats-1.1.5-yq9rd0vh.mjs +6 -0
  419. package/dist/chunks/status-1.1.5-3z0rsyyn.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.5-svtd2cf2.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.5-s8t729hb.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.5-7xtpdxmb.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.5-3f13a139.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.5-mppw7mas.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.5-kcw56shc.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.5-775nwnpp.mjs +1 -0
  427. package/dist/chunks/theme-1.1.5-05qfpzcq.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.5-w56d1tpy.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.5-316nwkk0.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.5-q7fh21qp.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.5-y8qqtj5g.mjs +1 -0
  432. package/dist/chunks/tools-1.1.5-z7xa3j7q.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.5-b691w8cr.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.5-37sae4sj.mjs +69 -0
  435. package/dist/chunks/types-1.1.5-2g1j2fq0.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.5-0c9fawfn.mjs +4 -0
  437. package/dist/chunks/update-1.1.5-xd9ws9t3.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.5-534zzem5.mjs +1 -0
  439. package/dist/chunks/upload-1.1.5-c4826hfz.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.5-7zb7f97v.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.5-0vy3dhf8.mjs +1 -0
  442. package/dist/chunks/usage-1.1.5-xc1ksj33.mjs +1 -0
  443. package/dist/chunks/util-1.1.5-fx75rnha.mjs +1 -0
  444. package/dist/chunks/utils-1.1.5-1fxys2da.mjs +1 -0
  445. package/dist/chunks/vim-1.1.5-p9apxkqt.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.5-s6ntndn2.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.5-vsvwk41x.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.5-9egxgqaa.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.5-rgerb51y.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.5-9byj3hpm.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.5-abb9xdvs.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.5-tad03vhy.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.3-yxsndsyn.mjs +0 -1
  456. package/dist/chunks/App-1.1.3-se36kt2q.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.3-5jxsmx40.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.3-7bjbdd37.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.3-3vs1q0ta.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.3-p08x7sv8.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.3-gyv29cn4.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.3-6ka5hf2k.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.3-1wejx4tn.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.3-0ccnyend.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.3-jspvqy7q.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.3-wvxs1xk4.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.3-5cr9f3wk.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.3-yy0jqsbj.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.3-2pqy4mte.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.3-781zj4fa.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.3-a5n3c2kk.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.3-vbk4qqdv.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.3-c8ng1hcs.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.3-67axvmvd.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.3-84q4vb17.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.3-hthcjsxf.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.3-af7j2gjm.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.3-q0n84g2v.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.3-dvsnx3eq.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.3-376a028q.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.3-01rkjtmv.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.3-ppxd3mj8.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.3-z1vd7ra4.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.3-w924n1yy.mjs +0 -1
  485. package/dist/chunks/agents-1.1.3-5atkby3f.mjs +0 -110
  486. package/dist/chunks/agents-1.1.3-mjqamerj.mjs +0 -3
  487. package/dist/chunks/api-1.1.3-1s5dk2h7.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.3-exg42b9c.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.3-sdwgcm2q.mjs +0 -1
  490. package/dist/chunks/auth-1.1.3-g5e9e91f.mjs +0 -1
  491. package/dist/chunks/auth-1.1.3-jqasmv33.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.3-tjgwmrj8.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.3-r3vs5bsn.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.3-k14x3rw1.mjs +0 -1
  495. package/dist/chunks/branch-1.1.3-42at4fgy.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.3-02wgv1mq.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.3-pz9qyfzz.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.3-e833e9ca.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.3-aqjdgpdy.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.3-b3hwkb6e.mjs +0 -1
  501. package/dist/chunks/btw-1.1.3-3q7kvnj8.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.3-mxnf2f34.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.3-rxz1pgwz.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.3-ey8g5sks.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.3-mwmp8as6.mjs +0 -4
  506. package/dist/chunks/caches-1.1.3-zwf2m9j5.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.3-v480vs32.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.3-aspbzmhd.mjs +0 -1
  509. package/dist/chunks/clear-1.1.3-9apn4h2w.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.3-jbzj4fvw.mjs +0 -1
  511. package/dist/chunks/cli-1.1.3-01ceyj4y.mjs +0 -45
  512. package/dist/chunks/cli-1.1.3-01phj35m.mjs +0 -25
  513. package/dist/chunks/cli-1.1.3-07ap3q60.mjs +0 -2
  514. package/dist/chunks/cli-1.1.3-0cbh861c.mjs +0 -9
  515. package/dist/chunks/cli-1.1.3-0cq4713y.mjs +0 -2
  516. package/dist/chunks/cli-1.1.3-0p8krrf1.mjs +0 -2
  517. package/dist/chunks/cli-1.1.3-1ey46s2h.mjs +0 -3
  518. package/dist/chunks/cli-1.1.3-1krr9n6p.mjs +0 -4
  519. package/dist/chunks/cli-1.1.3-1m40cjft.mjs +0 -2
  520. package/dist/chunks/cli-1.1.3-1vw4gdpc.mjs +0 -3
  521. package/dist/chunks/cli-1.1.3-1zv90s1n.mjs +0 -17
  522. package/dist/chunks/cli-1.1.3-25jbatj6.mjs +0 -2
  523. package/dist/chunks/cli-1.1.3-2at6mxpr.mjs +0 -2
  524. package/dist/chunks/cli-1.1.3-2nhp8krw.mjs +0 -2
  525. package/dist/chunks/cli-1.1.3-2pzwezgd.mjs +0 -2
  526. package/dist/chunks/cli-1.1.3-2whk95g7.mjs +0 -2
  527. package/dist/chunks/cli-1.1.3-35pxqjkd.mjs +0 -3
  528. package/dist/chunks/cli-1.1.3-35sq031q.mjs +0 -2
  529. package/dist/chunks/cli-1.1.3-3b1emj77.mjs +0 -2
  530. package/dist/chunks/cli-1.1.3-3ck9nde3.mjs +0 -4
  531. package/dist/chunks/cli-1.1.3-3cqnvz5q.mjs +0 -2
  532. package/dist/chunks/cli-1.1.3-3n4z9x5v.mjs +0 -2
  533. package/dist/chunks/cli-1.1.3-3v1pwmy8.mjs +0 -4
  534. package/dist/chunks/cli-1.1.3-3v7vzx20.mjs +0 -18
  535. package/dist/chunks/cli-1.1.3-3yaqqcdz.mjs +0 -25
  536. package/dist/chunks/cli-1.1.3-474ezzb0.mjs +0 -2
  537. package/dist/chunks/cli-1.1.3-4kjm8mzq.mjs +0 -1
  538. package/dist/chunks/cli-1.1.3-4qnt7xps.mjs +0 -6
  539. package/dist/chunks/cli-1.1.3-542yg99v.mjs +0 -3
  540. package/dist/chunks/cli-1.1.3-59xex268.mjs +0 -4
  541. package/dist/chunks/cli-1.1.3-5bkfd3vc.mjs +0 -2
  542. package/dist/chunks/cli-1.1.3-5g0d524n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.3-5vqc0ws1.mjs +0 -2
  544. package/dist/chunks/cli-1.1.3-5zveqbgr.mjs +0 -2
  545. package/dist/chunks/cli-1.1.3-61cw0bsj.mjs +0 -2
  546. package/dist/chunks/cli-1.1.3-62xmen1t.mjs +0 -3
  547. package/dist/chunks/cli-1.1.3-6arxtxjd.mjs +0 -2
  548. package/dist/chunks/cli-1.1.3-6f17b1wv.mjs +0 -9
  549. package/dist/chunks/cli-1.1.3-6jpsfc7q.mjs +0 -2
  550. package/dist/chunks/cli-1.1.3-6kd24w49.mjs +0 -2
  551. package/dist/chunks/cli-1.1.3-6kse36ke.mjs +0 -2
  552. package/dist/chunks/cli-1.1.3-6qebqran.mjs +0 -4
  553. package/dist/chunks/cli-1.1.3-728j7hk7.mjs +0 -2
  554. package/dist/chunks/cli-1.1.3-754qsxzp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.3-784k913c.mjs +0 -42
  556. package/dist/chunks/cli-1.1.3-794cnnf6.mjs +0 -2
  557. package/dist/chunks/cli-1.1.3-7a40xj94.mjs +0 -4
  558. package/dist/chunks/cli-1.1.3-7b34969p.mjs +0 -24
  559. package/dist/chunks/cli-1.1.3-7dbam07b.mjs +0 -2
  560. package/dist/chunks/cli-1.1.3-81p48g5s.mjs +0 -2
  561. package/dist/chunks/cli-1.1.3-88949m1z.mjs +0 -2
  562. package/dist/chunks/cli-1.1.3-8a7nh0f1.mjs +0 -2
  563. package/dist/chunks/cli-1.1.3-8aghq1w8.mjs +0 -2
  564. package/dist/chunks/cli-1.1.3-8cqhzz5c.mjs +0 -2
  565. package/dist/chunks/cli-1.1.3-8fdttrf4.mjs +0 -2
  566. package/dist/chunks/cli-1.1.3-8fxwqvfj.mjs +0 -3
  567. package/dist/chunks/cli-1.1.3-8mf46r85.mjs +0 -18
  568. package/dist/chunks/cli-1.1.3-93mxysb6.mjs +0 -2
  569. package/dist/chunks/cli-1.1.3-9a9bythm.mjs +0 -2
  570. package/dist/chunks/cli-1.1.3-9cvgj0zc.mjs +0 -2
  571. package/dist/chunks/cli-1.1.3-9dawtrvk.mjs +0 -2
  572. package/dist/chunks/cli-1.1.3-9zpwt3yw.mjs +0 -2
  573. package/dist/chunks/cli-1.1.3-9zvc4hsj.mjs +0 -2
  574. package/dist/chunks/cli-1.1.3-aby773wx.mjs +0 -2
  575. package/dist/chunks/cli-1.1.3-and2rzgx.mjs +0 -2
  576. package/dist/chunks/cli-1.1.3-atjv82jv.mjs +0 -2
  577. package/dist/chunks/cli-1.1.3-atp5y7j7.mjs +0 -2
  578. package/dist/chunks/cli-1.1.3-aw2b0yn9.mjs +0 -2
  579. package/dist/chunks/cli-1.1.3-b88x3k01.mjs +0 -2
  580. package/dist/chunks/cli-1.1.3-bbqwb2vd.mjs +0 -2
  581. package/dist/chunks/cli-1.1.3-bh5gftey.mjs +0 -12
  582. package/dist/chunks/cli-1.1.3-bkev2xdr.mjs +0 -2
  583. package/dist/chunks/cli-1.1.3-bp3q6zqx.mjs +0 -2
  584. package/dist/chunks/cli-1.1.3-bqn6026m.mjs +0 -39
  585. package/dist/chunks/cli-1.1.3-btgs6ac2.mjs +0 -2
  586. package/dist/chunks/cli-1.1.3-c06t4mva.mjs +0 -202
  587. package/dist/chunks/cli-1.1.3-c627h4he.mjs +0 -2
  588. package/dist/chunks/cli-1.1.3-c63ht2fx.mjs +0 -24
  589. package/dist/chunks/cli-1.1.3-c89bkw1j.mjs +0 -50
  590. package/dist/chunks/cli-1.1.3-cf6phy33.mjs +0 -4
  591. package/dist/chunks/cli-1.1.3-cfbvqt93.mjs +0 -2
  592. package/dist/chunks/cli-1.1.3-ckgtccms.mjs +0 -2
  593. package/dist/chunks/cli-1.1.3-cn4g4e3p.mjs +0 -2
  594. package/dist/chunks/cli-1.1.3-czckb3b7.mjs +0 -2
  595. package/dist/chunks/cli-1.1.3-d2q4t4ng.mjs +0 -2
  596. package/dist/chunks/cli-1.1.3-d2rfc4qe.mjs +0 -21
  597. package/dist/chunks/cli-1.1.3-d3ktet0r.mjs +0 -15
  598. package/dist/chunks/cli-1.1.3-d8scjpye.mjs +0 -2
  599. package/dist/chunks/cli-1.1.3-dab6k7an.mjs +0 -2
  600. package/dist/chunks/cli-1.1.3-db63qype.mjs +0 -2
  601. package/dist/chunks/cli-1.1.3-dgv6zkw4.mjs +0 -2
  602. package/dist/chunks/cli-1.1.3-dnk7vvb1.mjs +0 -3
  603. package/dist/chunks/cli-1.1.3-dnyndczq.mjs +0 -15
  604. package/dist/chunks/cli-1.1.3-e3jtz0sv.mjs +0 -2
  605. package/dist/chunks/cli-1.1.3-ehynfa14.mjs +0 -6
  606. package/dist/chunks/cli-1.1.3-ep77k52g.mjs +0 -2
  607. package/dist/chunks/cli-1.1.3-ezvsqkxt.mjs +0 -2
  608. package/dist/chunks/cli-1.1.3-f3b9x47a.mjs +0 -2
  609. package/dist/chunks/cli-1.1.3-f4y81bfm.mjs +0 -2
  610. package/dist/chunks/cli-1.1.3-ffhb6dgp.mjs +0 -2
  611. package/dist/chunks/cli-1.1.3-ffnbm5dy.mjs +0 -2
  612. package/dist/chunks/cli-1.1.3-ffxb379j.mjs +0 -2
  613. package/dist/chunks/cli-1.1.3-fg4s0rf2.mjs +0 -2
  614. package/dist/chunks/cli-1.1.3-fn3gz1mm.mjs +0 -2
  615. package/dist/chunks/cli-1.1.3-fwnvqcgg.mjs +0 -6
  616. package/dist/chunks/cli-1.1.3-g22t8964.mjs +0 -17
  617. package/dist/chunks/cli-1.1.3-gbtb2prg.mjs +0 -2
  618. package/dist/chunks/cli-1.1.3-gmkpq85h.mjs +0 -2
  619. package/dist/chunks/cli-1.1.3-gqvr1ctv.mjs +0 -2
  620. package/dist/chunks/cli-1.1.3-grr7gey9.mjs +0 -2
  621. package/dist/chunks/cli-1.1.3-gthp8mbw.mjs +0 -2
  622. package/dist/chunks/cli-1.1.3-h27e7q5x.mjs +0 -12
  623. package/dist/chunks/cli-1.1.3-h382pr6p.mjs +0 -2
  624. package/dist/chunks/cli-1.1.3-hb7g5y9p.mjs +0 -12
  625. package/dist/chunks/cli-1.1.3-hftwajch.mjs +0 -2
  626. package/dist/chunks/cli-1.1.3-hs9ck03n.mjs +0 -5639
  627. package/dist/chunks/cli-1.1.3-hw5kjqjr.mjs +0 -12
  628. package/dist/chunks/cli-1.1.3-hx22x48p.mjs +0 -2
  629. package/dist/chunks/cli-1.1.3-hx6z3g2t.mjs +0 -15
  630. package/dist/chunks/cli-1.1.3-hzettfd9.mjs +0 -2
  631. package/dist/chunks/cli-1.1.3-j0hxvf5w.mjs +0 -2
  632. package/dist/chunks/cli-1.1.3-jgpsz36y.mjs +0 -3
  633. package/dist/chunks/cli-1.1.3-jm2670xx.mjs +0 -3
  634. package/dist/chunks/cli-1.1.3-jsvyner6.mjs +0 -2
  635. package/dist/chunks/cli-1.1.3-jvgmswx0.mjs +0 -2
  636. package/dist/chunks/cli-1.1.3-jxcrr2k0.mjs +0 -2
  637. package/dist/chunks/cli-1.1.3-jz35kydf.mjs +0 -2
  638. package/dist/chunks/cli-1.1.3-k71pqbzv.mjs +0 -2
  639. package/dist/chunks/cli-1.1.3-kb2p4ces.mjs +0 -2
  640. package/dist/chunks/cli-1.1.3-kh7s1ptn.mjs +0 -59
  641. package/dist/chunks/cli-1.1.3-m0nv5m3n.mjs +0 -2
  642. package/dist/chunks/cli-1.1.3-m1drez65.mjs +0 -20
  643. package/dist/chunks/cli-1.1.3-maxd7q4j.mjs +0 -2
  644. package/dist/chunks/cli-1.1.3-mk0pqpe5.mjs +0 -2
  645. package/dist/chunks/cli-1.1.3-n4fjs3wh.mjs +0 -2
  646. package/dist/chunks/cli-1.1.3-n4sxmh0k.mjs +0 -3
  647. package/dist/chunks/cli-1.1.3-n69km65c.mjs +0 -2
  648. package/dist/chunks/cli-1.1.3-n94f70dw.mjs +0 -4
  649. package/dist/chunks/cli-1.1.3-nb6jng8k.mjs +0 -24
  650. package/dist/chunks/cli-1.1.3-neffpndz.mjs +0 -2
  651. package/dist/chunks/cli-1.1.3-nskz3j4r.mjs +0 -6
  652. package/dist/chunks/cli-1.1.3-nv18abf3.mjs +0 -2
  653. package/dist/chunks/cli-1.1.3-nwwtaht8.mjs +0 -3
  654. package/dist/chunks/cli-1.1.3-p96mn5e3.mjs +0 -4
  655. package/dist/chunks/cli-1.1.3-pfyraqmy.mjs +0 -2
  656. package/dist/chunks/cli-1.1.3-pmd2p2dk.mjs +0 -2
  657. package/dist/chunks/cli-1.1.3-q419ra7q.mjs +0 -2
  658. package/dist/chunks/cli-1.1.3-qffw70jy.mjs +0 -2
  659. package/dist/chunks/cli-1.1.3-qhw7mafg.mjs +0 -2
  660. package/dist/chunks/cli-1.1.3-r8hnm5n8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.3-r9m8cyrc.mjs +0 -2
  662. package/dist/chunks/cli-1.1.3-ramkctnw.mjs +0 -58
  663. package/dist/chunks/cli-1.1.3-rkx4c6ey.mjs +0 -2
  664. package/dist/chunks/cli-1.1.3-rneam354.mjs +0 -2
  665. package/dist/chunks/cli-1.1.3-s1ttygbf.mjs +0 -67
  666. package/dist/chunks/cli-1.1.3-sc9bm6f1.mjs +0 -2
  667. package/dist/chunks/cli-1.1.3-scnwb2jp.mjs +0 -2
  668. package/dist/chunks/cli-1.1.3-sfy0pdyx.mjs +0 -2
  669. package/dist/chunks/cli-1.1.3-sjkaxzsp.mjs +0 -2
  670. package/dist/chunks/cli-1.1.3-sk7xsym3.mjs +0 -2
  671. package/dist/chunks/cli-1.1.3-skvx9y6v.mjs +0 -2
  672. package/dist/chunks/cli-1.1.3-sp010xtk.mjs +0 -2
  673. package/dist/chunks/cli-1.1.3-spxtmdrr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.3-ssgr0hah.mjs +0 -2
  675. package/dist/chunks/cli-1.1.3-swhwjey8.mjs +0 -4
  676. package/dist/chunks/cli-1.1.3-t15g5zbq.mjs +0 -2
  677. package/dist/chunks/cli-1.1.3-t2tn9dft.mjs +0 -2
  678. package/dist/chunks/cli-1.1.3-t847whez.mjs +0 -2
  679. package/dist/chunks/cli-1.1.3-t9f7yqmm.mjs +0 -2
  680. package/dist/chunks/cli-1.1.3-tbnf15hh.mjs +0 -2
  681. package/dist/chunks/cli-1.1.3-trr6cmmr.mjs +0 -2
  682. package/dist/chunks/cli-1.1.3-v2tjwmbp.mjs +0 -5
  683. package/dist/chunks/cli-1.1.3-v32wjr75.mjs +0 -5
  684. package/dist/chunks/cli-1.1.3-v35td7vm.mjs +0 -2
  685. package/dist/chunks/cli-1.1.3-v5ceeb5d.mjs +0 -6
  686. package/dist/chunks/cli-1.1.3-vbsx7ezp.mjs +0 -7
  687. package/dist/chunks/cli-1.1.3-vmmx1en5.mjs +0 -2
  688. package/dist/chunks/cli-1.1.3-vnwxm9wr.mjs +0 -2
  689. package/dist/chunks/cli-1.1.3-vy745mt9.mjs +0 -2
  690. package/dist/chunks/cli-1.1.3-w64jkj6r.mjs +0 -2
  691. package/dist/chunks/cli-1.1.3-wb3qve9j.mjs +0 -2
  692. package/dist/chunks/cli-1.1.3-wd2xqmmr.mjs +0 -2
  693. package/dist/chunks/cli-1.1.3-wnmbr0xp.mjs +0 -2
  694. package/dist/chunks/cli-1.1.3-wpkhmx2n.mjs +0 -34
  695. package/dist/chunks/cli-1.1.3-wrfkmhf7.mjs +0 -2
  696. package/dist/chunks/cli-1.1.3-x42n0xaw.mjs +0 -133
  697. package/dist/chunks/cli-1.1.3-x86k4av4.mjs +0 -2
  698. package/dist/chunks/cli-1.1.3-xdkzmwps.mjs +0 -4
  699. package/dist/chunks/cli-1.1.3-xdx3kmb4.mjs +0 -2
  700. package/dist/chunks/cli-1.1.3-xkvherr0.mjs +0 -2
  701. package/dist/chunks/cli-1.1.3-xs1sydv3.mjs +0 -2
  702. package/dist/chunks/cli-1.1.3-xvbcvemx.mjs +0 -18
  703. package/dist/chunks/cli-1.1.3-xwh6kwee.mjs +0 -2
  704. package/dist/chunks/cli-1.1.3-y50zzrst.mjs +0 -3
  705. package/dist/chunks/cli-1.1.3-yaa47h2d.mjs +0 -2
  706. package/dist/chunks/cli-1.1.3-ymajywr8.mjs +0 -2
  707. package/dist/chunks/cli-1.1.3-yxab9ewb.mjs +0 -2
  708. package/dist/chunks/cli-1.1.3-z2zjezjw.mjs +0 -2
  709. package/dist/chunks/cli-1.1.3-z57276ym.mjs +0 -8
  710. package/dist/chunks/cli-1.1.3-zdr6e0yt.mjs +0 -2
  711. package/dist/chunks/cli-1.1.3-zg0yshsb.mjs +0 -16
  712. package/dist/chunks/cli-1.1.3-zpzzcahe.mjs +0 -133
  713. package/dist/chunks/cli-1.1.3-zw8vt024.mjs +0 -2
  714. package/dist/chunks/client-1.1.3-xm226xj6.mjs +0 -1
  715. package/dist/chunks/color-1.1.3-8ab65cjs.mjs +0 -1
  716. package/dist/chunks/compact-1.1.3-hcapbx0q.mjs +0 -3
  717. package/dist/chunks/config-1.1.3-g43dtaxy.mjs +0 -1
  718. package/dist/chunks/config-1.1.3-wb6deh5d.mjs +0 -1
  719. package/dist/chunks/constants-1.1.3-3b936cvz.mjs +0 -1
  720. package/dist/chunks/context-1.1.3-xvy8khnx.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.3-dmzhbz2k.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.3-hrdt4vvs.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.3-2j9metc4.mjs +0 -1
  724. package/dist/chunks/copy-1.1.3-2d905bsm.mjs +0 -9
  725. package/dist/chunks/cost-1.1.3-z4msw06f.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.3-xq7rb9ae.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.3-t81dkj2y.mjs +0 -1
  728. package/dist/chunks/debug-1.1.3-3bkwy7n0.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.3-hvw12khs.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.3-bxb4ht8y.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.3-38e9bq6c.mjs +0 -1
  732. package/dist/chunks/detection-1.1.3-w4ezq6bb.mjs +0 -1
  733. package/dist/chunks/diff-1.1.3-fjz0ec55.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.3-9wwq26y8.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.3-9abfp9t6.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.3-d2cs4fwc.mjs +0 -1
  737. package/dist/chunks/effort-1.1.3-j0n7czrz.mjs +0 -13
  738. package/dist/chunks/engine-1.1.3-pr4qnwy3.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.3-wc95rk7b.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.3-5tct25a9.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.3-qtqtxdf3.mjs +0 -1
  742. package/dist/chunks/environments-1.1.3-4yp11kx1.mjs +0 -1
  743. package/dist/chunks/errors-1.1.3-839qw7sv.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.3-7xyshaxw.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.3-mq74sze8.mjs +0 -1
  746. package/dist/chunks/exit-1.1.3-rhdfh4z2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.3-qp41d17d.mjs +0 -1
  748. package/dist/chunks/export-1.1.3-h7nhy37k.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.3-x22bxhyr.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.3-9b1pnfdq.mjs +0 -1
  751. package/dist/chunks/fast-1.1.3-zpw1g4fr.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.3-ak2cw09m.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.3-3ma1a2a5.mjs +0 -1
  754. package/dist/chunks/git-1.1.3-5v2874t5.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.3-cbegmxdf.mjs +0 -1
  756. package/dist/chunks/goal-1.1.3-20rnxcrw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.3-txbghpb5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.3-78e8e871.mjs +0 -1
  759. package/dist/chunks/headless-1.1.3-93ardmg6.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.3-hvdttsk2.mjs +0 -6
  761. package/dist/chunks/help-1.1.3-v94jvsxq.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.3-9ma5vjz9.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.3-my305rqa.mjs +0 -1
  764. package/dist/chunks/hooks-1.1.3-qnjv2ceq.mjs +0 -79
  765. package/dist/chunks/ide-1.1.3-0b6tx1fn.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.3-e0yr3jf6.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.3-1xk4z18x.mjs +0 -1
  768. package/dist/chunks/index-1.1.3-05dj3vyn.mjs +0 -1
  769. package/dist/chunks/index-1.1.3-0xj4kyd8.mjs +0 -1
  770. package/dist/chunks/index-1.1.3-3jppvcra.mjs +0 -2
  771. package/dist/chunks/index-1.1.3-3vd48szb.mjs +0 -30
  772. package/dist/chunks/index-1.1.3-40fcsdhn.mjs +0 -1
  773. package/dist/chunks/index-1.1.3-6jjz6ctb.mjs +0 -1
  774. package/dist/chunks/index-1.1.3-70e6zr9d.mjs +0 -1
  775. package/dist/chunks/index-1.1.3-a1hhr2m3.mjs +0 -9
  776. package/dist/chunks/index-1.1.3-cqhk9amz.mjs +0 -1
  777. package/dist/chunks/index-1.1.3-ey0w9snc.mjs +0 -1
  778. package/dist/chunks/index-1.1.3-hvbtn9kp.mjs +0 -1
  779. package/dist/chunks/index-1.1.3-k6y0hd0p.mjs +0 -9
  780. package/dist/chunks/index-1.1.3-n02hxa0w.mjs +0 -1
  781. package/dist/chunks/index-1.1.3-nr5wza2c.mjs +0 -1
  782. package/dist/chunks/index-1.1.3-r28aemv7.mjs +0 -1
  783. package/dist/chunks/index-1.1.3-rhcxh4xp.mjs +0 -1
  784. package/dist/chunks/index-1.1.3-t1h4z32w.mjs +0 -2
  785. package/dist/chunks/index-1.1.3-tnh0vetx.mjs +0 -17
  786. package/dist/chunks/index-1.1.3-v3bygtqf.mjs +0 -1
  787. package/dist/chunks/index-1.1.3-vzk1g7qa.mjs +0 -1
  788. package/dist/chunks/index-1.1.3-wnr572f2.mjs +0 -5
  789. package/dist/chunks/index-1.1.3-ww7fhvcj.mjs +0 -1
  790. package/dist/chunks/index-1.1.3-yj99jfkc.mjs +0 -1
  791. package/dist/chunks/init-1.1.3-9tpzjm03.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.3-9qbyncbf.mjs +0 -1
  793. package/dist/chunks/ink-1.1.3-hdvkkyj6.mjs +0 -1
  794. package/dist/chunks/insights-1.1.3-5zza0gsp.mjs +0 -870
  795. package/dist/chunks/install-1.1.3-10xet3fs.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.3-zw78ccj9.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.3-9tftq49n.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.3-cpa9f6b5.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.3-agbgadm7.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.3-13kdt9tg.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.3-gp9qcrrs.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.3-kgy1wyv0.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.3-75zjfd3k.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.3-7wwgb03c.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.3-jfmwjb98.mjs +0 -1
  806. package/dist/chunks/log-1.1.3-9zqwe1w7.mjs +0 -1
  807. package/dist/chunks/main-1.1.3-jhjmcs48.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.3-t9w50rpt.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.3-207rw6m3.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.3-kd4j31we.mjs +0 -17
  811. package/dist/chunks/mcp-1.1.3-kws6bzpc.mjs +0 -4
  812. package/dist/chunks/mcpb-1.1.3-f30fv87k.mjs +0 -1
  813. package/dist/chunks/memory-1.1.3-r9sjskzv.mjs +0 -72
  814. package/dist/chunks/model-1.1.3-6bjss6ed.mjs +0 -1
  815. package/dist/chunks/model-1.1.3-vsqw9dyb.mjs +0 -2
  816. package/dist/chunks/node-1.1.3-rsp1nxjt.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.3-enrprjzc.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.3-f5dhxmdz.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.3-z351smrw.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.3-d53d5n86.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.3-bqm4rp08.mjs +0 -1
  822. package/dist/chunks/parser-1.1.3-eyj95pq4.mjs +0 -1
  823. package/dist/chunks/passes-1.1.3-0a11epnb.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.3-eegvrpq9.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.3-pypjshjc.mjs +0 -1
  826. package/dist/chunks/plan-1.1.3-3kcm7qd3.mjs +0 -1
  827. package/dist/chunks/plist-1.1.3-nwtjgx23.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.3-nmwsekb7.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.3-r2gw8rs8.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.3-8kpaagz8.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.3-bxphk64e.mjs +0 -2
  832. package/dist/chunks/print-1.1.3-gm79pshf.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.3-sd4vzmf5.mjs +0 -1
  834. package/dist/chunks/process-1.1.3-01ryma15.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.3-qatq374q.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.3-g45j16m5.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.3-6m7zdbwt.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.3-bxzv3knp.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.3-da4jzheb.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.3-8efrcbr5.mjs +0 -13
  841. package/dist/chunks/provider-1.1.3-jk006gs1.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.3-7czyj40k.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.3-099qkvzg.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.3-4y4ya1ax.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.3-59f6nvsp.mjs +0 -34
  846. package/dist/chunks/registry-1.1.3-8dqn0waj.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.3-smjt1xpb.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.3-ry02kg4r.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.3-ypt8cj78.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.3-e0q527yd.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.3-99dcc6yz.mjs +0 -1
  852. package/dist/chunks/rename-1.1.3-z8ht01vn.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.3-9ajh2zsz.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.3-phft6q3m.mjs +0 -1
  855. package/dist/chunks/resume-1.1.3-ryb53bar.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.3-yc7kmt10.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.3-21mvhhbz.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.3-c5x1xygs.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.3-qaxp436e.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.3-yd6gnwq0.mjs +0 -1
  861. package/dist/chunks/session-1.1.3-d6bcmdqc.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.3-yengby74.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.3-z5h2mh2d.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.3-g2087x3k.mjs +0 -1
  865. package/dist/chunks/settings-1.1.3-kdw73w2n.mjs +0 -1
  866. package/dist/chunks/setup-1.1.3-6x82pe5r.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.3-bnwaz6jy.mjs +0 -1
  868. package/dist/chunks/skills-1.1.3-xzvzszw5.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.3-vmfrefxy.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.3-xnsmptgv.mjs +0 -1
  871. package/dist/chunks/state-1.1.3-9qvv8c8a.mjs +0 -1
  872. package/dist/chunks/stats-1.1.3-xkfhs48y.mjs +0 -6
  873. package/dist/chunks/status-1.1.3-bkvdfpf2.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.3-tdyragdz.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.3-bnpw017t.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.3-3jnhmrad.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.3-3rhp7h7y.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.3-sjhagf52.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.3-0qc9xkzf.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.3-r9zefqyy.mjs +0 -1
  881. package/dist/chunks/theme-1.1.3-ygj5ahxz.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.3-692khvzr.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.3-ebnc9f7w.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.3-9tmyh9kx.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.3-dt6xjx6s.mjs +0 -1
  886. package/dist/chunks/tools-1.1.3-qg2w37bw.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.3-nt2dpn34.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.3-vky94jfh.mjs +0 -69
  889. package/dist/chunks/types-1.1.3-h2n5wzra.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.3-j3a7dzxc.mjs +0 -4
  891. package/dist/chunks/update-1.1.3-ypnffaj9.mjs +0 -72
  892. package/dist/chunks/upgrade-1.1.3-zgwkz8e1.mjs +0 -1
  893. package/dist/chunks/upload-1.1.3-z9452eam.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.3-qv2f69gf.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.3-t5z79vre.mjs +0 -1
  896. package/dist/chunks/usage-1.1.3-qhz8fs40.mjs +0 -1
  897. package/dist/chunks/util-1.1.3-xj9x5fyp.mjs +0 -1
  898. package/dist/chunks/utils-1.1.3-0rv54nxw.mjs +0 -1
  899. package/dist/chunks/vim-1.1.3-7ka37gbw.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.3-gfvkcgdc.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.3-g46sx9g8.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.3-e72sp9z3.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.3-1ahbfzb6.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.3-e2ht6w6r.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.3-r91kaqdc.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.3-7dpd8b9v.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.3-ddqw4d0f.mjs → cli-1.1.5-60nnwyjy.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.3-k333nezw.mjs → cli-1.1.5-9tkrrje2.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.3-bhvdy7a7.mjs → cli-1.1.5-a3ew1094.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.3-kftm6an7.mjs → cli-1.1.5-bfqs63at.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.3-nh0p50e1.mjs → cli-1.1.5-k89gf8y1.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.3-z6nmkfhs.mjs → cli-1.1.5-m2tvhjca.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.3-n8e1g4ez.mjs → cli-1.1.5-v8kvgy84.mjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import{Cb as yJ,Db as xz,Eb as rz,Fb as cz,Gb as iz,Hb as bJ}from"./cli-1.1.5-y3dcmn9x.mjs";import{Jb as Tz}from"./cli-1.1.5-6yjhrk9v.mjs";import{Rb as TJ,Sb as xJ,Tb as MJ,Ub as wJ,Vb as fJ}from"./cli-1.1.5-rc2g2735.mjs";import{Xb as kJ}from"./cli-1.1.5-4gt9am76.mjs";import{Se as VJ,Te as lJ}from"./cli-1.1.5-dmgep5pw.mjs";import{if as EJ,kf as oz,mf as DK}from"./cli-1.1.5-2g7w64ck.mjs";import{Bf as LJ,Ff as OJ,zf as mz}from"./cli-1.1.5-2bc86bd2.mjs";import{In as UJ,JH as JJ,Jn as CK,KH as Cz,LH as KJ,MH as ZJ,OH as $J,PH as YJ,QH as XJ,RH as QJ,SH as WJ,am as AJ,bk as RJ,bm as vz,ck as NK,fm as BK}from"./cli-1.1.5-bcgy5mbp.mjs";import"./cli-1.1.5-8sm7bn8y.mjs";import"./cli-1.1.5-17pq11ad.mjs";import"./cli-1.1.5-yprjw8c0.mjs";import"./cli-1.1.5-5973nce5.mjs";import"./cli-1.1.5-tbr6vnhr.mjs";import"./cli-1.1.5-dv98e0wx.mjs";import"./cli-1.1.5-h1w0v5x0.mjs";import"./cli-1.1.5-0kq9h6ts.mjs";import"./cli-1.1.5-qg67v24h.mjs";import{tW as DJ,zW as _K}from"./cli-1.1.5-wv8954rf.mjs";import"./cli-1.1.5-3n83mvmz.mjs";import"./cli-1.1.5-97sv1sx5.mjs";import{VW as az,ZW as RK}from"./cli-1.1.5-j298304z.mjs";import"./cli-1.1.5-y9z2ea67.mjs";import"./cli-1.1.5-m78s0fnh.mjs";import"./cli-1.1.5-7x24fkdt.mjs";import"./cli-1.1.5-sxj5bjbt.mjs";import"./cli-1.1.5-x8r6zvjf.mjs";import"./cli-1.1.5-bs0hzzxt.mjs";import"./cli-1.1.5-4w21hywc.mjs";import"./cli-1.1.5-9q40r2jj.mjs";import"./cli-1.1.5-20206ha7.mjs";import"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-0jp6cq2j.mjs";import{G2 as pz,J2 as PK}from"./cli-1.1.5-t9j8c92k.mjs";import"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-dknh0wry.mjs";import"./cli-1.1.5-xm9scgfb.mjs";import"./cli-1.1.5-vrkwrr2h.mjs";import"./cli-1.1.5-j5g040vf.mjs";import"./cli-1.1.5-3q931f2n.mjs";import"./cli-1.1.5-q2x467jp.mjs";import"./cli-1.1.5-0a8jb3pr.mjs";import"./cli-1.1.5-43y030nv.mjs";import"./cli-1.1.5-ehbpt4w6.mjs";import"./cli-1.1.5-ttm2crpm.mjs";import"./cli-1.1.5-y8301wby.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import{W7 as i,X7 as FK}from"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import{w9 as G,x9 as pJ}from"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import"./cli-1.1.5-e51n4cww.mjs";import{$ba as fz,Aba as qK,P_ as Wz,Qga as yz,R_ as HK,Yga as OK,aca as ez,bca as zJ,cca as cJ,zba as CJ}from"./cli-1.1.5-v9a6fbsq.mjs";import{bha as sz,cha as gJ,eha as Rz,lha as qz,tha as GK}from"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import{aia as PJ,iia as jK}from"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import{wja as zz,xja as NJ,zja as QK}from"./cli-1.1.5-zqf5btpq.mjs";import{Cka as tz,cka as qJ,dka as uz,hka as oJ,zka as q}from"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import{Zka as g,ela as VK}from"./cli-1.1.5-xd8qwq5t.mjs";import{kla as _J,sla as BJ,ula as WK}from"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import{Jsa as I}from"./cli-1.1.5-keef1hq8.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
2
+ `).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
3
+ `)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
4
+ `))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
5
+ `)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
6
+ `);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
7
+ `),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
8
+ `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
9
+ `)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
10
+ `)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
11
+ `);let Qz=A??U;if(Qz){m(`
12
+ `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
13
+ `),m(`${Kz}${r}
14
+ `)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
15
+ `);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
16
+ `),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
+ `);J(G.dim("Environment ID: ")+`${j}
18
+ `)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
19
+ `);J(`
20
+ `),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
21
+ `)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
22
+ `)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
23
+ `)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
24
+ `)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
25
+ `)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
26
+ `)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
27
+ `)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
28
+ `);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
29
+ `)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
30
+ `),m(`${G.dim(XJ)}
31
+ `),$)m(`${G.red($)}
32
+ `)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
+ `);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
34
+ `);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
35
+ `);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
37
+ `):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.5-p3sakr7e.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.5-kebmje48.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
38
+ Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.5-4j98y6ey.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
39
+ (default: same-dir)
40
+ --capacity <N> Max concurrent sessions in worktree or
41
+ same-dir mode (default: ${vJ})
42
+ --[no-]create-session-in-dir Pre-create a session in the current
43
+ directory; in worktree mode this session
44
+ stays in cwd while on-demand sessions get
45
+ isolated worktrees (default: on)
46
+ `:"",R=`
47
+ Remote Control - Connect your local environment to claude.ai/code
48
+
49
+ USAGE
50
+ claude remote-control [options]
51
+ OPTIONS
52
+ --name <name> Name for the session (shown in claude.ai/code)
53
+ --permission-mode <mode> Permission mode for spawned sessions
54
+ (${J})
55
+ --debug-file <path> Write debug logs to file
56
+ -v, --verbose Enable verbose output
57
+ -h, --help Show this help
58
+ ${Y}
59
+ DESCRIPTION
60
+ Remote Control allows you to control sessions on your local device from
61
+ claude.ai/code (https://claude.ai/code). Run this command in the
62
+ directory you want to work in, then connect from the Claude app or web.
63
+ ${K?`
64
+ Remote Control runs as a persistent server that accepts multiple concurrent
65
+ sessions in the current directory. One session is pre-created on start so
66
+ you have somewhere to type immediately. Use --spawn=worktree to isolate
67
+ each on-demand session in its own git worktree, or --spawn=session for
68
+ the classic single-session mode (exits when that session ends). Press 'w'
69
+ during runtime to toggle between same-dir and worktree.
70
+ `:""}
71
+ NOTES
72
+ - You must be logged in with a Claude account that has a subscription
73
+ - Run \`claude\` first in the directory to accept the workspace trust dialog
74
+ ${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
75
+ `:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.5-p3sakr7e.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.5-4j98y6ey.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-1.1.5-k42c66af.mjs");_();let{initSinks:k}=await import("./sinks-1.1.5-xrb884av.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.5-emwaw100.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.5-3gb86bzb.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.5-s174he1k.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.5-k42c66af.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
76
+ Remote Control lets you access this CLI session from the web (claude.ai/code)
77
+ or the Claude app, so you can pick up where you left off on any device.
78
+
79
+ You can disconnect remote access anytime by running /remote-control again.
80
+ `);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-1.1.5-g821etp0.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.5-07j88vdd.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
81
+ Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
82
+
83
+ Spawn mode for this project:
84
+ `+` [1] same-dir — sessions share the current directory (default)
85
+ `+` [2] worktree — each session gets an isolated git worktree
86
+
87
+ `+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
88
+ `);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.5-kebmje48.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.5-3gb86bzb.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-1.1.5-bwa3vtz3.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.5-p3sakr7e.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.5-kebmje48.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.5-emwaw100.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.5-k42c66af.mjs");R();let{initSinks:U}=await import("./sinks-1.1.5-xrb884av.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.5-s174he1k.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-1.1.5-g821etp0.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.5-07j88vdd.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.5-p3sakr7e.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -0,0 +1 @@
1
+ import{Bia as Y,Dia as O,Eia as S,Fia as _,jia as A,kia as k,uia as G,via as N,yia as M}from"./cli-1.1.5-nkhse0vg.mjs";import{Cka as R,cka as K,dka as W,hka as j,zka as C}from"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import{$ka as y,ela as c}from"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-keef1hq8.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Th as a,Uh as bJ}from"./cli-1.1.5-fqwwgfme.mjs";import{Vh as x,Wh as AJ}from"./cli-1.1.5-1k6n7e0p.mjs";import{$H as vJ,$Q as TJ,DE as kJ,Gx as i,Hx as HJ,Qn as m,Rn as UJ,SQ as r,SR as o,Ty as u,Vy as WJ,_H as $,eS as hJ,kU as s,lU as t,mU as DJ,xE as l}from"./cli-1.1.5-bcgy5mbp.mjs";import"./cli-1.1.5-8sm7bn8y.mjs";import"./cli-1.1.5-17pq11ad.mjs";import"./cli-1.1.5-yprjw8c0.mjs";import"./cli-1.1.5-5973nce5.mjs";import"./cli-1.1.5-tbr6vnhr.mjs";import"./cli-1.1.5-dv98e0wx.mjs";import"./cli-1.1.5-h1w0v5x0.mjs";import"./cli-1.1.5-0kq9h6ts.mjs";import"./cli-1.1.5-qg67v24h.mjs";import"./cli-1.1.5-wv8954rf.mjs";import"./cli-1.1.5-3n83mvmz.mjs";import"./cli-1.1.5-97sv1sx5.mjs";import"./cli-1.1.5-j298304z.mjs";import"./cli-1.1.5-y9z2ea67.mjs";import"./cli-1.1.5-m78s0fnh.mjs";import"./cli-1.1.5-7x24fkdt.mjs";import"./cli-1.1.5-sxj5bjbt.mjs";import"./cli-1.1.5-x8r6zvjf.mjs";import{KY as c,MY as IJ,nY as g,oY as QJ}from"./cli-1.1.5-bs0hzzxt.mjs";import"./cli-1.1.5-4w21hywc.mjs";import{DZ as GJ,H1 as NJ,a1 as k,c1 as v,t1 as j,v1 as KJ}from"./cli-1.1.5-9q40r2jj.mjs";import"./cli-1.1.5-20206ha7.mjs";import"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-0jp6cq2j.mjs";import"./cli-1.1.5-t9j8c92k.mjs";import"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-dknh0wry.mjs";import"./cli-1.1.5-xm9scgfb.mjs";import"./cli-1.1.5-vrkwrr2h.mjs";import"./cli-1.1.5-j5g040vf.mjs";import"./cli-1.1.5-3q931f2n.mjs";import"./cli-1.1.5-q2x467jp.mjs";import{o4 as F,p4 as W,q4 as d}from"./cli-1.1.5-0a8jb3pr.mjs";import{r4 as zJ}from"./cli-1.1.5-43y030nv.mjs";import"./cli-1.1.5-ehbpt4w6.mjs";import"./cli-1.1.5-ttm2crpm.mjs";import"./cli-1.1.5-y8301wby.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import"./cli-1.1.5-e51n4cww.mjs";import{Lba as p,Mba as C,Uea as S,cca as ZJ,qfa as FJ}from"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import{Zka as f,ela as YJ}from"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import{Esa as R,Isa as XJ}from"./cli-1.1.5-keef1hq8.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{EX as p,FX as f,GX as a,HX as S}from"./cli-1.1.5-7x24fkdt.mjs";import{Uea as d,qfa as C}from"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import{jja as m,kja as y,lja as b}from"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import{Isa as g}from"./cli-1.1.5-keef1hq8.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
2
+
3
+ Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
@@ -0,0 +1 @@
1
+ import"./cli-1.1.5-keef1hq8.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
@@ -0,0 +1,21 @@
1
+ import{U2 as h,Y2 as zz}from"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import{T6 as m,r7 as e}from"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import{Bga as v,Ega as r,qga as y,yga as s}from"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import{Cka as o,zka as k}from"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import{Zqa as a,_ma as b}from"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import{Isa as n}from"./cli-1.1.5-keef1hq8.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
2
+
3
+ `)){let w=B.split(`
4
+ `).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
5
+ `));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
6
+ `);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
7
+ `)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
8
+ `)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
9
+ For GitHub Copilot: run /provider and choose GitHub Copilot.
10
+ For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
11
+ `);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
12
+ ${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
13
+ ${z.error.slice(0,300)}
14
+
15
+ Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
16
+ ${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
17
+ Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
18
+ `));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
+ `)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
20
+
21
+ `)});Qz();export{jz as call};
@@ -0,0 +1,4 @@
1
+ import{a3 as L,b3 as P,c3 as $,g3 as Q,h3 as U,i3 as V,j3 as j}from"./cli-1.1.5-dknh0wry.mjs";import{Isa as Z}from"./cli-1.1.5-keef1hq8.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
2
+ No API requests yet this session.
3
+ Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
4
+ `)}};var A=Z(()=>{j();$()});A();export{O as call};
@@ -0,0 +1 @@
1
+ import{Zh as a,_h as b}from"./cli-1.1.5-7fr21xne.mjs";import"./cli-1.1.5-jq32vtrb.mjs";import"./cli-1.1.5-djfg6qcy.mjs";import"./cli-1.1.5-bcgy5mbp.mjs";import"./cli-1.1.5-8sm7bn8y.mjs";import"./cli-1.1.5-17pq11ad.mjs";import"./cli-1.1.5-yprjw8c0.mjs";import"./cli-1.1.5-5973nce5.mjs";import"./cli-1.1.5-tbr6vnhr.mjs";import"./cli-1.1.5-dv98e0wx.mjs";import"./cli-1.1.5-h1w0v5x0.mjs";import"./cli-1.1.5-0kq9h6ts.mjs";import"./cli-1.1.5-qg67v24h.mjs";import"./cli-1.1.5-wv8954rf.mjs";import"./cli-1.1.5-3n83mvmz.mjs";import"./cli-1.1.5-97sv1sx5.mjs";import"./cli-1.1.5-j298304z.mjs";import"./cli-1.1.5-y9z2ea67.mjs";import"./cli-1.1.5-m78s0fnh.mjs";import"./cli-1.1.5-7x24fkdt.mjs";import"./cli-1.1.5-sxj5bjbt.mjs";import"./cli-1.1.5-x8r6zvjf.mjs";import"./cli-1.1.5-bs0hzzxt.mjs";import"./cli-1.1.5-4w21hywc.mjs";import"./cli-1.1.5-9q40r2jj.mjs";import"./cli-1.1.5-20206ha7.mjs";import"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-0jp6cq2j.mjs";import"./cli-1.1.5-t9j8c92k.mjs";import"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-dknh0wry.mjs";import"./cli-1.1.5-xm9scgfb.mjs";import"./cli-1.1.5-vrkwrr2h.mjs";import"./cli-1.1.5-j5g040vf.mjs";import"./cli-1.1.5-3q931f2n.mjs";import"./cli-1.1.5-q2x467jp.mjs";import"./cli-1.1.5-0a8jb3pr.mjs";import"./cli-1.1.5-43y030nv.mjs";import"./cli-1.1.5-ehbpt4w6.mjs";import"./cli-1.1.5-ttm2crpm.mjs";import"./cli-1.1.5-y8301wby.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import"./cli-1.1.5-e51n4cww.mjs";import"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import"./cli-1.1.5-keef1hq8.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{Qga as X,T$ as V,U$ as W,V$ as J,Yga as H,bba as k,gba as N,vca as x,yca as A}from"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import{_ka as b,ela as y}from"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-keef1hq8.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{$T as l,QT as a,RT as b,ST as c,TT as d,UT as e,VT as f,WT as g,XT as h,YT as i,ZT as j,_T as k,aU as m,bU as n,cU as o,dU as p,eU as q,fU as r,gU as s,hU as t}from"./cli-1.1.5-bcgy5mbp.mjs";import"./cli-1.1.5-8sm7bn8y.mjs";import"./cli-1.1.5-17pq11ad.mjs";import"./cli-1.1.5-yprjw8c0.mjs";import"./cli-1.1.5-5973nce5.mjs";import"./cli-1.1.5-tbr6vnhr.mjs";import"./cli-1.1.5-dv98e0wx.mjs";import"./cli-1.1.5-h1w0v5x0.mjs";import"./cli-1.1.5-0kq9h6ts.mjs";import"./cli-1.1.5-qg67v24h.mjs";import"./cli-1.1.5-wv8954rf.mjs";import"./cli-1.1.5-3n83mvmz.mjs";import"./cli-1.1.5-97sv1sx5.mjs";import"./cli-1.1.5-j298304z.mjs";import"./cli-1.1.5-y9z2ea67.mjs";import"./cli-1.1.5-m78s0fnh.mjs";import"./cli-1.1.5-7x24fkdt.mjs";import"./cli-1.1.5-sxj5bjbt.mjs";import"./cli-1.1.5-x8r6zvjf.mjs";import"./cli-1.1.5-bs0hzzxt.mjs";import"./cli-1.1.5-4w21hywc.mjs";import"./cli-1.1.5-9q40r2jj.mjs";import"./cli-1.1.5-20206ha7.mjs";import"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-0jp6cq2j.mjs";import"./cli-1.1.5-t9j8c92k.mjs";import"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-dknh0wry.mjs";import"./cli-1.1.5-xm9scgfb.mjs";import"./cli-1.1.5-vrkwrr2h.mjs";import"./cli-1.1.5-j5g040vf.mjs";import"./cli-1.1.5-3q931f2n.mjs";import"./cli-1.1.5-q2x467jp.mjs";import"./cli-1.1.5-0a8jb3pr.mjs";import"./cli-1.1.5-43y030nv.mjs";import"./cli-1.1.5-ehbpt4w6.mjs";import"./cli-1.1.5-ttm2crpm.mjs";import"./cli-1.1.5-y8301wby.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import"./cli-1.1.5-e51n4cww.mjs";import"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import"./cli-1.1.5-keef1hq8.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -0,0 +1 @@
1
+ import{Xh as a,Yh as l}from"./cli-1.1.5-weseckxt.mjs";import"./cli-1.1.5-7fr21xne.mjs";import"./cli-1.1.5-jq32vtrb.mjs";import"./cli-1.1.5-600z85n1.mjs";import"./cli-1.1.5-djfg6qcy.mjs";import"./cli-1.1.5-bcgy5mbp.mjs";import"./cli-1.1.5-8sm7bn8y.mjs";import"./cli-1.1.5-17pq11ad.mjs";import"./cli-1.1.5-yprjw8c0.mjs";import"./cli-1.1.5-5973nce5.mjs";import"./cli-1.1.5-tbr6vnhr.mjs";import"./cli-1.1.5-dv98e0wx.mjs";import"./cli-1.1.5-h1w0v5x0.mjs";import"./cli-1.1.5-0kq9h6ts.mjs";import"./cli-1.1.5-qg67v24h.mjs";import"./cli-1.1.5-wv8954rf.mjs";import"./cli-1.1.5-3n83mvmz.mjs";import"./cli-1.1.5-97sv1sx5.mjs";import"./cli-1.1.5-j298304z.mjs";import"./cli-1.1.5-y9z2ea67.mjs";import"./cli-1.1.5-m78s0fnh.mjs";import"./cli-1.1.5-7x24fkdt.mjs";import"./cli-1.1.5-sxj5bjbt.mjs";import"./cli-1.1.5-x8r6zvjf.mjs";import"./cli-1.1.5-bs0hzzxt.mjs";import"./cli-1.1.5-4w21hywc.mjs";import"./cli-1.1.5-9q40r2jj.mjs";import"./cli-1.1.5-20206ha7.mjs";import"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-0jp6cq2j.mjs";import"./cli-1.1.5-t9j8c92k.mjs";import"./cli-1.1.5-9d2hd2n0.mjs";import"./cli-1.1.5-dknh0wry.mjs";import"./cli-1.1.5-xm9scgfb.mjs";import"./cli-1.1.5-vrkwrr2h.mjs";import"./cli-1.1.5-j5g040vf.mjs";import"./cli-1.1.5-3q931f2n.mjs";import"./cli-1.1.5-q2x467jp.mjs";import"./cli-1.1.5-0a8jb3pr.mjs";import"./cli-1.1.5-43y030nv.mjs";import"./cli-1.1.5-ehbpt4w6.mjs";import"./cli-1.1.5-ttm2crpm.mjs";import"./cli-1.1.5-y8301wby.mjs";import"./cli-1.1.5-6dmtdkjb.mjs";import"./cli-1.1.5-y39w08qk.mjs";import"./cli-1.1.5-dvzmss5c.mjs";import"./cli-1.1.5-ay6eds7m.mjs";import"./cli-1.1.5-3wtxx0sm.mjs";import"./cli-1.1.5-s0cez7yn.mjs";import"./cli-1.1.5-e51n4cww.mjs";import"./cli-1.1.5-v9a6fbsq.mjs";import"./cli-1.1.5-3xf010sx.mjs";import"./cli-1.1.5-y3cdh5em.mjs";import"./cli-1.1.5-8z6nvxgy.mjs";import"./cli-1.1.5-dpwkjrhv.mjs";import"./cli-1.1.5-nkhse0vg.mjs";import"./cli-1.1.5-0amg980q.mjs";import"./cli-1.1.5-fr76ha7s.mjs";import"./cli-1.1.5-zqf5btpq.mjs";import"./cli-1.1.5-3zc9bseg.mjs";import"./cli-1.1.5-pthrjd43.mjs";import"./cli-1.1.5-xd8qwq5t.mjs";import"./cli-1.1.5-rqw75dc4.mjs";import"./cli-1.1.5-0gd61h7z.mjs";import"./cli-1.1.5-xn9p8nks.mjs";import"./cli-1.1.5-jqef0dgk.mjs";import"./cli-1.1.5-xzxcvrkj.mjs";import"./cli-1.1.5-46qvwkna.mjs";import"./cli-1.1.5-8nkgdwbz.mjs";import{Isa as t}from"./cli-1.1.5-keef1hq8.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
@@ -0,0 +1 @@
1
+ import{w2 as a,x2 as b,y2 as c}from"./cli-1.1.5-n4xgjbwe.mjs";import"./cli-1.1.5-keef1hq8.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{Qga as C,U_ as z,W_ as H,Yga as J}from"./cli-1.1.5-v9a6fbsq.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
+ export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -0,0 +1,2 @@
1
+ import{iy as C,ly as X}from"./cli-1.1.5-bcgy5mbp.mjs";import{r4 as W}from"./cli-1.1.5-43y030nv.mjs";import{Z6 as I,k7 as J,r7 as V}from"./cli-1.1.5-y39w08qk.mjs";import{Pha as H,iia as T}from"./cli-1.1.5-dpwkjrhv.mjs";import{Esa as P,Isa as Q}from"./cli-1.1.5-keef1hq8.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
+ export{v as od,Y as pd};
@@ -0,0 +1,2 @@
1
+ import{SU as N,TU as p,UU as F,WU as U,XU as A}from"./cli-1.1.5-yprjw8c0.mjs";import{b9 as L,c9 as P,f9 as O,h9 as V,r9 as x,t9 as H,u9 as k}from"./cli-1.1.5-dvzmss5c.mjs";import{Rda as X,Xda as Y,Xea as Z,eea as K,oba as I,qba as D,qfa as M}from"./cli-1.1.5-v9a6fbsq.mjs";import{kla as $,ula as b}from"./cli-1.1.5-rqw75dc4.mjs";import{Isa as G}from"./cli-1.1.5-keef1hq8.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
2
+ export{r as Rc,g as Sc,j as Tc};
@@ -0,0 +1,2 @@
1
+ import{Isa as l}from"./cli-1.1.5-keef1hq8.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as n4,E as o4,a as p4,c as q4};
@@ -0,0 +1,2 @@
1
+ import{Zqa as I,ena as z,ina as F}from"./cli-1.1.5-0gd61h7z.mjs";import{Isa as E}from"./cli-1.1.5-keef1hq8.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",p="task-type",f="output-file",k="status",u="summary",v="worktree",y="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
+ export{U as Gia,K as Hia,V as Iia,W as Jia,M as Kia,Y as Lia,Z as Mia,$ as Nia,j as Oia,q as Pia,B as Qia,L as Ria,R as Sia,_ as Tia,b as Uia,x as Via,A as Wia,T as Xia,p as Yia,f as Zia,k as _ia,u as $ia,v as aja,y as bja,C as cja,S as dja,O as eja,m as fja,g as gja,h as hja,l as ija,w as jja,c as kja,N as lja};
@@ -0,0 +1,2 @@
1
+ import{$qa as YJ,_qa as _Q,ara as v,bra as P1,cra as Y5,dra as w8,era as D,fra as y,gra as m,hra as kQ,ira as L,jra as a,kra as n5,lra as e8,mra as R5,nra as _8,ora as E,pra as h8,qra as P,rra as x1,sra as d,tra as xQ,ura as r,vra as UQ,wra as T5,xra as UY}from"./cli-1.1.5-xn9p8nks.mjs";import{Hsa as aQ,Isa as X}from"./cli-1.1.5-keef1hq8.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var DQ;var qQ=X(()=>{DQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!DQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();qQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=m?m.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var mQ;var SQ=X(()=>{mQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{SQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),mQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();S();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();S();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,mJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?D.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,mJ=yJ||cQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var D5;var q5=X(()=>{_8();J1();D5=k8});function E8(Q){return D5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();q5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var S1;var O5=X(()=>{yQ();bQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var m8,U1;var L5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var f5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var P5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,m5;var S5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;m5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return m5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{S5();S();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();m1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=m?m.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var q1;var b1=X(()=>{M();D1();s5();X$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();D1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var D$;var q$=X(()=>{D$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?D$(I(Q)):O$(Q)}var M$;var L$=X(()=>{q$();V$();D1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as mY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=mY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else s1=!0}function l9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function r9(){return $.totalLinesRemoved}function o9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-a1}function QH(){return t1}function $H(Q){a1=A$(),t1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function rH(){return $.isInteractive}function oH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,E$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function r4(){return $.sessionTrustAccepted}function o4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function r3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function o3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
+ export{p as vla,I1 as wla,FQ as xla,RQ as yla,OQ as zla,VQ as Ala,_1 as Bla,MQ as Cla,PQ as Dla,IQ as Ela,dQ as Fla,gQ as Gla,w as Hla,M as Ila,pQ as Jla,yQ as Kla,mQ as Lla,SQ as Mla,AQ as Nla,jQ as Ola,nQ as Pla,bQ as Qla,O as Rla,S as Sla,t as Tla,v1 as Ula,A as Vla,d1 as Wla,$1 as Xla,g1 as Yla,$5 as Zla,J5 as _la,X1 as $la,X5 as ama,H1 as bma,y1 as cma,W5 as dma,x5 as ema,U5 as fma,K5 as gma,G5 as hma,B5 as ima,D5 as jma,q5 as kma,W1 as lma,m1 as mma,S1 as nma,O5 as oma,G1 as pma,P5 as qma,A1 as rma,d5 as sma,w1 as tma,j1 as uma,h as vma,R1 as wma,a5 as xma,t5 as yma,Z$ as zma,X$ as Ama,q1 as Bma,b1 as Cma,I as Dma,u as Ema,O1 as Fma,i1 as Gma,F$ as Hma,R$ as Ima,f$ as Jma,P$ as Kma,nX as Lma,bX as Mma,iX as Nma,uX as Oma,lX as Pma,TX as Qma,E$ as Rma,cX as Sma,rX as Tma,oX as Uma,v$ as Vma,d$ as Wma,g$ as Xma,Z9 as Yma,X9 as Zma,H9 as _ma,W9 as $ma,x9 as ana,U9 as bna,K9 as cna,G9 as dna,B9 as ena,N9 as fna,w9 as gna,z9 as hna,F9 as ina,R9 as jna,D9 as kna,q9 as lna,O9 as mna,V9 as nna,M9 as ona,L9 as pna,f9 as qna,P9 as rna,I9 as sna,C9 as tna,_9 as una,k9 as vna,E9 as wna,v9 as xna,d9 as yna,g9 as zna,p9 as Ana,y9 as Bna,m9 as Cna,S9 as Dna,A9 as Ena,j9 as Fna,h9 as Gna,n9 as Hna,b9 as Ina,i9 as Jna,u9 as Kna,l9 as Lna,T9 as Mna,c9 as Nna,r9 as Ona,o9 as Pna,A$ as Qna,s9 as Rna,a9 as Sna,t9 as Tna,e9 as Una,QH as Vna,$H as Wna,JH as Xna,YH as Yna,ZH as Zna,XH as _na,HH as $na,WH as aoa,xH as boa,UH as coa,KH as doa,GH as eoa,BH as foa,NH as goa,wH as hoa,zH as ioa,FH as joa,RH as koa,DH as loa,qH as moa,OH as noa,VH as ooa,MH as poa,LH as qoa,fH as roa,PH as soa,IH as toa,CH as uoa,_H as voa,kH as woa,EH as xoa,vH as yoa,dH as zoa,gH as Aoa,pH as Boa,yH as Coa,mH as Doa,SH as Eoa,AH as Foa,jH as Goa,hH as Hoa,nH as Ioa,bH as Joa,iH as Koa,uH as Loa,lH as Moa,TH as Noa,cH as Ooa,SY as Poa,rH as Qoa,oH as Roa,sH as Soa,aH as Toa,tH as Uoa,eH as Voa,Q4 as Woa,$4 as Xoa,J4 as Yoa,Y4 as Zoa,Z4 as _oa,X4 as $oa,H4 as apa,W4 as bpa,x4 as cpa,U4 as dpa,K4 as epa,G4 as fpa,B4 as gpa,N4 as hpa,w4 as ipa,z4 as jpa,F4 as kpa,R4 as lpa,D4 as mpa,q4 as npa,O4 as opa,V4 as ppa,M4 as qpa,L4 as rpa,f4 as spa,P4 as tpa,I4 as upa,C4 as vpa,_4 as wpa,k4 as xpa,E4 as ypa,v4 as zpa,d4 as Apa,g4 as Bpa,p4 as Cpa,y4 as Dpa,m4 as Epa,S4 as Fpa,A4 as Gpa,j4 as Hpa,h4 as Ipa,n4 as Jpa,b4 as Kpa,i4 as Lpa,u4 as Mpa,l4 as Npa,T4 as Opa,c4 as Ppa,r4 as Qpa,o4 as Rpa,s4 as Spa,a4 as Tpa,t4 as Upa,e4 as Vpa,Q3 as Wpa,$3 as Xpa,J3 as Ypa,Y3 as Zpa,Z3 as _pa,X3 as $pa,H3 as aqa,W3 as bqa,x3 as cqa,U3 as dqa,K3 as eqa,G3 as fqa,B3 as gqa,N3 as hqa,w3 as iqa,z3 as jqa,F3 as kqa,R3 as lqa,D3 as mqa,q3 as nqa,O3 as oqa,V3 as pqa,M3 as qqa,L3 as rqa,f3 as sqa,P3 as tqa,I3 as uqa,C3 as vqa,_3 as wqa,k3 as xqa,E3 as yqa,v3 as zqa,d3 as Aqa,g3 as Bqa,p3 as Cqa,y3 as Dqa,m3 as Eqa,S3 as Fqa,A3 as Gqa,j3 as Hqa,h3 as Iqa,n3 as Jqa,b3 as Kqa,i3 as Lqa,u3 as Mqa,l3 as Nqa,T3 as Oqa,c3 as Pqa,r3 as Qqa,o3 as Rqa,s3 as Sqa,jY as Tqa,a3 as Uqa,t3 as Vqa,e3 as Wqa,QW as Xqa,$W as Yqa,hY as Zqa};
@@ -0,0 +1,2 @@
1
+ import{Gsa as H,Isa as UJ}from"./cli-1.1.5-keef1hq8.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=H((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Cq.exports=C1});var uq=H((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=S1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=H((fJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Qq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var S0=H((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=H((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!zq(O,String(Z),J))return null;if(W&&!zq(O,String(W),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
2
+ export{W1 as z2,QQ as A2,WQ as B2,ZQ as C2,KQ as D2,FJ as E2};
@@ -0,0 +1,2 @@
1
+ import{WX as YJ,_X as DJ,cY as SJ,dY as b,eY as vJ,mY as ZJ}from"./cli-1.1.5-x8r6zvjf.mjs";import{D3 as CJ,K3 as TJ}from"./cli-1.1.5-3q931f2n.mjs";import{Qga as c,S$ as NJ,V_ as OJ,W_ as FJ,Yga as wJ,nea as A,pea as yJ,u$ as xJ,zaa as jJ}from"./cli-1.1.5-v9a6fbsq.mjs";import{Bia as R,Dia as VJ,Eia as w,Fia as XJ}from"./cli-1.1.5-nkhse0vg.mjs";import{Cka as QJ,cka as v,dka as y,hka as JJ,zka as G}from"./cli-1.1.5-3zc9bseg.mjs";import{Zka as W,_ka as S,ela as e}from"./cli-1.1.5-xd8qwq5t.mjs";import{hla as s,ila as I,kla as t,ula as a}from"./cli-1.1.5-rqw75dc4.mjs";import{Poa as i,Wma as r,Xma as MJ,Zqa as m,_ma as d,hqa as u}from"./cli-1.1.5-0gd61h7z.mjs";import{Isa as T,Jsa as BJ}from"./cli-1.1.5-keef1hq8.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as h}from"fs/promises";import{join as D}from"path";function HQ(J){if(j===J)return;j=J,U()}function UQ(){if(j===void 0)return;j=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await h(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await A(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}async function CQ(J){let Q=await f(J),V=0;for(let X of Q){if(X.status!=="completed"||X.metadata?._internal)continue;if(await C(J,X.id,{metadata:{...X.metadata,_internal:!0}}))V++}return V}function SQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return b()||j||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function z(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await A(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=z(J,Y);return await h(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=z(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(S(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),c(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=z(J,Q);return await h(Y,v(Z,null,2)),U(),Z}async function C(J,Q,V){let X=z(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await A(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function AQ(J,Q){let V=z(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(S(Y)==="ENOENT")return!1;throw Y}let Z=await f(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await C(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function f(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function zQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await C(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await C(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function uJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=uJ(J);try{await h(Q,"",{flag:"wx"})}catch{}return Q}async function MQ(J,Q,V,X={}){let Z=z(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return LJ(J,Q,V);let $;try{$=await A(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await f(J),B=new Set(K.filter((M)=>M.status!=="completed").map((M)=>M.id)),N=q.blockedBy.filter((M)=>B.has(M));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),c(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function LJ(J,Q,V){let X=await o(J),Z;try{Z=await A(X,P);let Y=await f(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await C(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),c(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function jQ(J,Q,V,X){let Y=(await f(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await C(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,j,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as p}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function kQ(J){return J.replace(/@/g,"-")}function L(J){return p(I(),zJ(J))}function F(J){return p(L(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(S(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(S(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=L(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=L(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function rQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function sQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function tQ(J,Q){if(!vJ())return;let V=Q??b(),X=SJ();if(V&&X)dJ(V,X,J)}function aQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function eQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=p(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=p(Y,"..","..");V=p($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function JV(J){u().add(J)}function QV(J){u().delete(J)}async function VV(){let J=u();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-1.1.5-ez5tf749.mjs"),import("./detection-1.1.5-vt7wfg5r.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=L(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var nQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();nQ=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{HQ as wV,UQ as xV,BQ as yV,fJ as zV,OQ as AV,xQ as BV,CQ as CV,SQ as DV,_J as EV,E as FV,bJ as GV,vQ as HV,O as IV,C as JV,AQ as KV,f as LV,zQ as MV,MQ as NV,jQ as OV,HJ as PV,n as QV,UJ as RV,nQ as SV,zJ as TV,kQ as UV,L as VV,F as WV,H as XV,kJ as YV,rJ as ZV,rQ as _V,dQ as $V,iQ as aW,mQ as bW,sQ as cW,dJ as dW,tQ as eW,aQ as fW,eQ as gW,JV as hW,QV as iW,VV as jW,sJ as kW,tJ as lW};