@claudiolabs/claudin 0.7.6 → 1.0.3

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 (911) hide show
  1. package/README.md +15 -1
  2. package/bin/claudin.exe +12 -0
  3. package/cli-wrapper.cjs +132 -0
  4. package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +1 -0
  5. package/dist/chunks/App-1.0.3-rd1a3qee.mjs +1 -0
  6. package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +1 -0
  7. package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +1 -0
  8. package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +1 -0
  9. package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +1 -0
  12. package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +7 -0
  13. package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +1 -0
  14. package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +6 -0
  15. package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +1 -0
  16. package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +1 -0
  17. package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +1 -0
  18. package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +1 -0
  19. package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +1 -0
  20. package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +1 -0
  21. package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +1 -0
  22. package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +1 -0
  23. package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +1 -0
  24. package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +1 -0
  25. package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +1 -0
  26. package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +1 -0
  27. package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +1 -0
  28. package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +9 -0
  29. package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +1 -0
  30. package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +1 -0
  31. package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +1 -0
  32. package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +1 -0
  33. package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +1 -0
  34. package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +110 -0
  35. package/dist/chunks/agents-1.0.3-0qny02r7.mjs +3 -0
  36. package/dist/chunks/api-1.0.3-j9q39zt3.mjs +1 -0
  37. package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +1 -0
  38. package/dist/chunks/assistant-1.0.3-8swg0237.mjs +1 -0
  39. package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +1 -0
  40. package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +1 -0
  41. package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +48 -0
  42. package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +1 -0
  43. package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +1 -0
  44. package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +4 -0
  45. package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +2 -0
  46. package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +1 -0
  47. package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +1 -0
  48. package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +88 -0
  49. package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +1 -0
  50. package/dist/chunks/btw-1.0.3-7vqng7en.mjs +1 -0
  51. package/dist/chunks/buddy-1.0.3-k48yw852.mjs +3 -0
  52. package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +1 -0
  53. package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +21 -0
  54. package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +4 -0
  55. package/dist/chunks/caches-1.0.3-syrefgh1.mjs +1 -0
  56. package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +1 -0
  57. package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +1 -0
  58. package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +1 -0
  59. package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +1 -0
  60. package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +2 -0
  61. package/dist/chunks/cli-1.0.3-087x46pf.mjs +2 -0
  62. package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +2 -0
  63. package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +2 -0
  64. package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +1 -0
  65. package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +2 -0
  66. package/dist/chunks/cli-1.0.3-10cqqc79.mjs +2 -0
  67. package/dist/chunks/cli-1.0.3-13m8868e.mjs +2 -0
  68. package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +2 -0
  69. package/dist/chunks/cli-1.0.3-1462khnb.mjs +3 -0
  70. package/dist/chunks/cli-1.0.3-17cer107.mjs +2 -0
  71. package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +4 -0
  72. package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +2 -0
  73. package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +4 -0
  74. package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +2 -0
  75. package/dist/chunks/cli-1.0.3-1m413b59.mjs +2 -0
  76. package/dist/chunks/cli-1.0.3-1psnx21q.mjs +2 -0
  77. package/dist/chunks/cli-1.0.3-1v65dc93.mjs +2 -0
  78. package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +2 -0
  79. package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +2 -0
  80. package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +2 -0
  81. package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +2 -0
  82. package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +5471 -0
  83. package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +2 -0
  84. package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +2 -0
  85. package/dist/chunks/cli-1.0.3-3gtteknj.mjs +2 -0
  86. package/dist/chunks/cli-1.0.3-3j050hfw.mjs +3 -0
  87. package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +2 -0
  88. package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +2 -0
  89. package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +3 -0
  90. package/dist/chunks/cli-1.0.3-3y945bqk.mjs +2 -0
  91. package/dist/chunks/cli-1.0.3-4eym93f1.mjs +2 -0
  92. package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +199 -0
  93. package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +2 -0
  94. package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +12 -0
  95. package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +2 -0
  96. package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +4 -0
  97. package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +2 -0
  98. package/dist/chunks/cli-1.0.3-5kneybr4.mjs +2 -0
  99. package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +16 -0
  100. package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +6 -0
  101. package/dist/chunks/cli-1.0.3-5w74xeth.mjs +3 -0
  102. package/dist/chunks/cli-1.0.3-607t5t97.mjs +2 -0
  103. package/dist/chunks/cli-1.0.3-627y4tma.mjs +2 -0
  104. package/dist/chunks/cli-1.0.3-63tn3q21.mjs +2 -0
  105. package/dist/chunks/cli-1.0.3-63xjee3t.mjs +3 -0
  106. package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +4 -0
  107. package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +21 -0
  108. package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +2 -0
  109. package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +2 -0
  110. package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +2 -0
  111. package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +3 -0
  112. package/dist/chunks/cli-1.0.3-82ky54w7.mjs +15 -0
  113. package/dist/chunks/cli-1.0.3-87me6r9c.mjs +2 -0
  114. package/dist/chunks/cli-1.0.3-8a694ts0.mjs +6 -0
  115. package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +2 -0
  116. package/dist/chunks/cli-1.0.3-8hw15ers.mjs +2 -0
  117. package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +2 -0
  118. package/dist/chunks/cli-1.0.3-960aw98y.mjs +2 -0
  119. package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +2 -0
  120. package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +3 -0
  121. package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +2 -0
  122. package/dist/chunks/cli-1.0.3-a630qcdb.mjs +2 -0
  123. package/dist/chunks/cli-1.0.3-ancybhm3.mjs +2 -0
  124. package/dist/chunks/cli-1.0.3-apbdyngz.mjs +2 -0
  125. package/dist/chunks/cli-1.0.3-ar488ss1.mjs +2 -0
  126. package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +4 -0
  127. package/dist/chunks/cli-1.0.3-ax2geagm.mjs +18 -0
  128. package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +2 -0
  129. package/dist/chunks/cli-1.0.3-ay89chqh.mjs +2 -0
  130. package/dist/chunks/cli-1.0.3-b14b158b.mjs +2 -0
  131. package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +2 -0
  132. package/dist/chunks/cli-1.0.3-b72086ew.mjs +2 -0
  133. package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +24 -0
  134. package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +25 -0
  135. package/dist/chunks/cli-1.0.3-bg3frggm.mjs +5 -0
  136. package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +2 -0
  137. package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +2 -0
  138. package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +2 -0
  139. package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +3 -0
  140. package/dist/chunks/cli-1.0.3-c38hr99q.mjs +2 -0
  141. package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +2 -0
  142. package/dist/chunks/cli-1.0.3-c570dde7.mjs +24 -0
  143. package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +2 -0
  144. package/dist/chunks/cli-1.0.3-cnb1yved.mjs +2 -0
  145. package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +2 -0
  146. package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +2 -0
  147. package/dist/chunks/cli-1.0.3-d7597p9k.mjs +133 -0
  148. package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +2 -0
  149. package/dist/chunks/cli-1.0.3-djd4asp9.mjs +25 -0
  150. package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +2 -0
  151. package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +20 -0
  152. package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +2 -0
  153. package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +2 -0
  154. package/dist/chunks/cli-1.0.3-e315jy0y.mjs +2 -0
  155. package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +2 -0
  156. package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +2 -0
  157. package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +2 -0
  158. package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +2 -0
  159. package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +45 -0
  160. package/dist/chunks/cli-1.0.3-eta6q17m.mjs +2 -0
  161. package/dist/chunks/cli-1.0.3-exj8yag8.mjs +2 -0
  162. package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +2 -0
  163. package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +2 -0
  164. package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +2 -0
  165. package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +2 -0
  166. package/dist/chunks/cli-1.0.3-g5w729g4.mjs +2 -0
  167. package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +2 -0
  168. package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +2 -0
  169. package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +12 -0
  170. package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +2 -0
  171. package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +4 -0
  173. package/dist/chunks/cli-1.0.3-hg04k516.mjs +3 -0
  174. package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +2 -0
  175. package/dist/chunks/cli-1.0.3-htx4273d.mjs +39 -0
  176. package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +2 -0
  177. package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +2 -0
  178. package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +2 -0
  179. package/dist/chunks/cli-1.0.3-j72ztden.mjs +2 -0
  180. package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +2 -0
  181. package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +6 -0
  182. package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +2 -0
  183. package/dist/chunks/cli-1.0.3-k99msp02.mjs +17 -0
  184. package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +59 -0
  185. package/dist/chunks/cli-1.0.3-khw95075.mjs +2 -0
  186. package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +2 -0
  187. package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +2 -0
  188. package/dist/chunks/cli-1.0.3-m45p13pd.mjs +2 -0
  189. package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +3 -0
  190. package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +12 -0
  191. package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +4 -0
  192. package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +2 -0
  193. package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +2 -0
  194. package/dist/chunks/cli-1.0.3-n99q1npz.mjs +2 -0
  195. package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +2 -0
  196. package/dist/chunks/cli-1.0.3-nama3pwj.mjs +7 -0
  197. package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +2 -0
  198. package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +2 -0
  199. package/dist/chunks/cli-1.0.3-ntywpqre.mjs +2 -0
  200. package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +2 -0
  201. package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +24 -0
  202. package/dist/chunks/cli-1.0.3-pc93arct.mjs +10 -0
  203. package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +67 -0
  204. package/dist/chunks/cli-1.0.3-phh30dq0.mjs +4 -0
  205. package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +5 -0
  206. package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +3 -0
  207. package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +2 -0
  208. package/dist/chunks/cli-1.0.3-q9hw6148.mjs +2 -0
  209. package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +34 -0
  210. package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +2 -0
  211. package/dist/chunks/cli-1.0.3-r274tqxg.mjs +2 -0
  212. package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +3 -0
  213. package/dist/chunks/cli-1.0.3-ra9brq66.mjs +2 -0
  214. package/dist/chunks/cli-1.0.3-rapppvd0.mjs +2 -0
  215. package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +15 -0
  216. package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +58 -0
  217. package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +2 -0
  218. package/dist/chunks/cli-1.0.3-rpry44n3.mjs +2 -0
  219. package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +2 -0
  220. package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +2 -0
  221. package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +5 -0
  222. package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +6 -0
  223. package/dist/chunks/cli-1.0.3-sz2d376e.mjs +2 -0
  224. package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +2 -0
  225. package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +133 -0
  226. package/dist/chunks/cli-1.0.3-t7p3714v.mjs +2 -0
  227. package/dist/chunks/cli-1.0.3-tjewxa84.mjs +2 -0
  228. package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +9 -0
  229. package/dist/chunks/cli-1.0.3-v658mswv.mjs +12 -0
  230. package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +2 -0
  231. package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +2 -0
  232. package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +2 -0
  233. package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +3 -0
  234. package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +2 -0
  235. package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +2 -0
  236. package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +2 -0
  237. package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +15 -0
  238. package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +2 -0
  239. package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +50 -0
  240. package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +2 -0
  241. package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +42 -0
  242. package/dist/chunks/cli-1.0.3-xarnzm58.mjs +2 -0
  243. package/dist/chunks/cli-1.0.3-xf2r8496.mjs +2 -0
  244. package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +4 -0
  245. package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +17 -0
  246. package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +2 -0
  247. package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +4 -0
  248. package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +2 -0
  249. package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +2 -0
  250. package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +2 -0
  251. package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +2 -0
  252. package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +2 -0
  253. package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +2 -0
  254. package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +18 -0
  255. package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +2 -0
  256. package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +2 -0
  257. package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +18 -0
  258. package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +8 -0
  259. package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +2 -0
  260. package/dist/chunks/client-1.0.3-qkqk8q23.mjs +1 -0
  261. package/dist/chunks/color-1.0.3-x0qygswm.mjs +1 -0
  262. package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +3 -0
  263. package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +1 -0
  264. package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +1 -0
  265. package/dist/chunks/constants-1.0.3-wk9v349h.mjs +1 -0
  266. package/dist/chunks/context-1.0.3-6sarjqp3.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +1 -0
  268. package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +1 -0
  270. package/dist/chunks/copy-1.0.3-575pc6gc.mjs +9 -0
  271. package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +1 -0
  273. package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +1 -0
  274. package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +1446 -0
  276. package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +1 -0
  278. package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +1 -0
  279. package/dist/chunks/diff-1.0.3-43a1txqm.mjs +1 -0
  280. package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +1 -0
  283. package/dist/chunks/effort-1.0.3-28cxc122.mjs +10 -0
  284. package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +1 -0
  286. package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +1 -0
  288. package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +1 -0
  289. package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +1 -0
  291. package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +1 -0
  292. package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +1 -0
  293. package/dist/chunks/export-1.0.3-4r98t7vv.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +1 -0
  296. package/dist/chunks/fast-1.0.3-4atx5cja.mjs +1 -0
  297. package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +1 -0
  299. package/dist/chunks/git-1.0.3-tpyzsser.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +1 -0
  301. package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +4 -0
  302. package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +1 -0
  303. package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +1 -0
  304. package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +2 -0
  305. package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +6 -0
  306. package/dist/chunks/help-1.0.3-e1qcej38.mjs +1 -0
  307. package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +3 -0
  308. package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +79 -0
  309. package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +1 -0
  310. package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +1 -0
  313. package/dist/chunks/index-1.0.3-15ym353c.mjs +1 -0
  314. package/dist/chunks/index-1.0.3-1tyen96a.mjs +1 -0
  315. package/dist/chunks/index-1.0.3-22c46a9g.mjs +1 -0
  316. package/dist/chunks/index-1.0.3-293khy5y.mjs +1 -0
  317. package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +1 -0
  318. package/dist/chunks/index-1.0.3-4g5be32x.mjs +5 -0
  319. package/dist/chunks/index-1.0.3-5h227bav.mjs +17 -0
  320. package/dist/chunks/index-1.0.3-83nb50h7.mjs +1 -0
  321. package/dist/chunks/index-1.0.3-f3xy16k0.mjs +1 -0
  322. package/dist/chunks/index-1.0.3-fp6xhcab.mjs +2 -0
  323. package/dist/chunks/index-1.0.3-gecs01pd.mjs +1 -0
  324. package/dist/chunks/index-1.0.3-gwt3epj3.mjs +30 -0
  325. package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +9 -0
  326. package/dist/chunks/index-1.0.3-j1rfqkax.mjs +1 -0
  327. package/dist/chunks/index-1.0.3-k6ze856z.mjs +1 -0
  328. package/dist/chunks/index-1.0.3-n8qxa0er.mjs +1 -0
  329. package/dist/chunks/index-1.0.3-pa0eqyya.mjs +1 -0
  330. package/dist/chunks/index-1.0.3-qacj9f9z.mjs +1 -0
  331. package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +1 -0
  332. package/dist/chunks/index-1.0.3-w0d2skgw.mjs +2 -0
  333. package/dist/chunks/index-1.0.3-w6sndqyw.mjs +9 -0
  334. package/dist/chunks/index-1.0.3-z42381sj.mjs +1 -0
  335. package/dist/chunks/index-1.0.3-zfk75xdr.mjs +1 -0
  336. package/dist/chunks/init-1.0.3-1756vwh2.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +1 -0
  338. package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +1 -0
  339. package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +870 -0
  340. package/dist/chunks/install-1.0.3-zttqn1ez.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +1 -0
  345. package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +2 -0
  346. package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +1 -0
  351. package/dist/chunks/log-1.0.3-wzytzthn.mjs +1 -0
  352. package/dist/chunks/main-1.0.3-jzwehebm.mjs +1 -0
  353. package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +4 -0
  356. package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +17 -0
  357. package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +1 -0
  358. package/dist/chunks/memory-1.0.3-esv79kf8.mjs +3 -0
  359. package/dist/chunks/model-1.0.3-9b4d36sd.mjs +1 -0
  360. package/dist/chunks/model-1.0.3-bh1t2s45.mjs +2 -0
  361. package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +12 -0
  362. package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +1 -0
  363. package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +14 -0
  364. package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +1 -0
  365. package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +1 -0
  366. package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +1 -0
  367. package/dist/chunks/parser-1.0.3-avw926ew.mjs +1 -0
  368. package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +3 -0
  370. package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +1 -0
  371. package/dist/chunks/plan-1.0.3-emxq5t72.mjs +1 -0
  372. package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +1 -0
  373. package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +29 -0
  374. package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +1 -0
  375. package/dist/chunks/plugins-1.0.3-x021vefh.mjs +9 -0
  376. package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +2 -0
  377. package/dist/chunks/print-1.0.3-w721s1pr.mjs +57 -0
  378. package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +1 -0
  379. package/dist/chunks/process-1.0.3-xedhq816.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +9 -0
  382. package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +1 -0
  383. package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +1 -0
  384. package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +13 -0
  386. package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +34 -0
  391. package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +1 -0
  392. package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +2 -0
  394. package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +1 -0
  397. package/dist/chunks/rename-1.0.3-090y3y3t.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +1 -0
  400. package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +2 -0
  401. package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +1 -0
  403. package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +1 -0
  405. package/dist/chunks/session-1.0.3-26qz9f9c.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +1 -0
  409. package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +1 -0
  410. package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +1 -0
  412. package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +1 -0
  415. package/dist/chunks/state-1.0.3-7hxpebf0.mjs +1 -0
  416. package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +6 -0
  417. package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +1 -0
  425. package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +1 -0
  430. package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +69 -0
  433. package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +4 -0
  435. package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +86 -0
  436. package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +1 -0
  437. package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +1 -0
  440. package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +1 -0
  441. package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +1 -0
  442. package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +1 -0
  443. package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +1 -0
  444. package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +1 -0
  445. package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +132 -0
  446. package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +1 -0
  447. package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +1 -0
  448. package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +1 -0
  449. package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +7 -0
  450. package/dist/cli.mjs +2 -2
  451. package/install.cjs +208 -0
  452. package/package.json +29 -132
  453. package/LICENSE +0 -30
  454. package/bin/claudin +0 -272
  455. package/dist/chunks/AgentTool-0.7.6-02vh9vk8.mjs +0 -1
  456. package/dist/chunks/App-0.7.6-6rm9fw7h.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-0.7.6-3ds3vmhq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-0.7.6-tdwszj02.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-0.7.6-5axvmtp3.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-0.7.6-014qynp3.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.6-z3wrhmsy.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-0.7.6-92nz3x2x.mjs +0 -1
  463. package/dist/chunks/DiffDialog-0.7.6-4303tcnm.mjs +0 -7
  464. package/dist/chunks/Doctor-0.7.6-084ce5s2.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-0.7.6-vp1m6ffx.mjs +0 -6
  466. package/dist/chunks/Grove-0.7.6-1d3f84xj.mjs +0 -1
  467. package/dist/chunks/ITermBackend-0.7.6-wdyeyjcs.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-0.7.6-j0gs8ee7.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-0.7.6-5gtntvxr.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-0.7.6-jqrhx95e.mjs +0 -1
  471. package/dist/chunks/Onboarding-0.7.6-18f6pde2.mjs +0 -1
  472. package/dist/chunks/ProviderManager-0.7.6-2q5s7q6j.mjs +0 -1
  473. package/dist/chunks/REPL-0.7.6-ayp94stx.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-0.7.6-zgn8p1b4.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-0.7.6-apn9hx86.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-0.7.6-1mvkc8e6.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-0.7.6-74t499kc.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-0.7.6-aj7acqex.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-0.7.6-werejha1.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-0.7.6-n01pcadg.mjs +0 -1
  481. package/dist/chunks/TrustDialog-0.7.6-bsjh0666.mjs +0 -1
  482. package/dist/chunks/activeProvider-0.7.6-eqwet2j4.mjs +0 -1
  483. package/dist/chunks/add-dir-0.7.6-8rvjxj57.mjs +0 -1
  484. package/dist/chunks/agentTypes-0.7.6-49zjnpvv.mjs +0 -1
  485. package/dist/chunks/agents-0.7.6-f2wq0zdm.mjs +0 -3
  486. package/dist/chunks/agents-0.7.6-n608c3qr.mjs +0 -110
  487. package/dist/chunks/api-0.7.6-f2fsvxyj.mjs +0 -1
  488. package/dist/chunks/asciicast-0.7.6-fv6ypvrh.mjs +0 -1
  489. package/dist/chunks/assistant-0.7.6-3d939v1n.mjs +0 -1
  490. package/dist/chunks/auth-0.7.6-e9ggcrw2.mjs +0 -1
  491. package/dist/chunks/auth-0.7.6-vprbhg4e.mjs +0 -1
  492. package/dist/chunks/autoMode-0.7.6-p12j05a6.mjs +0 -48
  493. package/dist/chunks/autoUpdater-0.7.6-nrc4g1jz.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-0.7.6-rb8ftxsa.mjs +0 -1
  495. package/dist/chunks/branch-0.7.6-05rh36he.mjs +0 -4
  496. package/dist/chunks/bridge-0.7.6-wddny37r.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-0.7.6-b5h1a634.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-0.7.6-0fhtxtzs.mjs +0 -1
  499. package/dist/chunks/bridgeMain-0.7.6-nj17223b.mjs +0 -88
  500. package/dist/chunks/bridgePointer-0.7.6-f0qs1e6e.mjs +0 -1
  501. package/dist/chunks/btw-0.7.6-cjm6v0b9.mjs +0 -1
  502. package/dist/chunks/buddy-0.7.6-1j68vknm.mjs +0 -3
  503. package/dist/chunks/cacache-0.7.6-3mr30mas.mjs +0 -1
  504. package/dist/chunks/cache-probe-0.7.6-e8g8d94t.mjs +0 -21
  505. package/dist/chunks/cacheStats-0.7.6-4x5zqxyf.mjs +0 -4
  506. package/dist/chunks/caches-0.7.6-fpr85z6h.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-0.7.6-hh4vstgr.mjs +0 -1
  508. package/dist/chunks/claudemd-0.7.6-fqehvs8g.mjs +0 -1
  509. package/dist/chunks/clear-0.7.6-h2vf452p.mjs +0 -1
  510. package/dist/chunks/clearTerminal-0.7.6-qscrqy5p.mjs +0 -1
  511. package/dist/chunks/cli-0.7.6-010st6wr.mjs +0 -2
  512. package/dist/chunks/cli-0.7.6-07eesex8.mjs +0 -2
  513. package/dist/chunks/cli-0.7.6-09hcxer2.mjs +0 -2
  514. package/dist/chunks/cli-0.7.6-0b47jy2g.mjs +0 -2
  515. package/dist/chunks/cli-0.7.6-0ekx5n2q.mjs +0 -4
  516. package/dist/chunks/cli-0.7.6-0gzsv22g.mjs +0 -2
  517. package/dist/chunks/cli-0.7.6-0h46deez.mjs +0 -2
  518. package/dist/chunks/cli-0.7.6-0mgbtp8x.mjs +0 -6
  519. package/dist/chunks/cli-0.7.6-0n7tfcxz.mjs +0 -4
  520. package/dist/chunks/cli-0.7.6-0tt8ccr8.mjs +0 -2
  521. package/dist/chunks/cli-0.7.6-0wr25ecz.mjs +0 -2
  522. package/dist/chunks/cli-0.7.6-1bfz5qa5.mjs +0 -2
  523. package/dist/chunks/cli-0.7.6-1bvzdjfc.mjs +0 -2
  524. package/dist/chunks/cli-0.7.6-1dqh462b.mjs +0 -2
  525. package/dist/chunks/cli-0.7.6-1j4p4cz3.mjs +0 -2
  526. package/dist/chunks/cli-0.7.6-1s1nbm58.mjs +0 -2
  527. package/dist/chunks/cli-0.7.6-1v73pjt7.mjs +0 -2
  528. package/dist/chunks/cli-0.7.6-1yn63f2j.mjs +0 -2
  529. package/dist/chunks/cli-0.7.6-29snre4z.mjs +0 -2
  530. package/dist/chunks/cli-0.7.6-2ff9pq9s.mjs +0 -3
  531. package/dist/chunks/cli-0.7.6-2kjdfns9.mjs +0 -6
  532. package/dist/chunks/cli-0.7.6-2qwpkx4w.mjs +0 -12
  533. package/dist/chunks/cli-0.7.6-2rwpq77s.mjs +0 -2
  534. package/dist/chunks/cli-0.7.6-310844c3.mjs +0 -4
  535. package/dist/chunks/cli-0.7.6-39q0e172.mjs +0 -2
  536. package/dist/chunks/cli-0.7.6-3vqf88sk.mjs +0 -2
  537. package/dist/chunks/cli-0.7.6-43kp2p25.mjs +0 -2
  538. package/dist/chunks/cli-0.7.6-471rvdw2.mjs +0 -2
  539. package/dist/chunks/cli-0.7.6-4e2e6mkj.mjs +0 -3
  540. package/dist/chunks/cli-0.7.6-4eaywsgw.mjs +0 -2
  541. package/dist/chunks/cli-0.7.6-4q91n1nr.mjs +0 -2
  542. package/dist/chunks/cli-0.7.6-4v3f036y.mjs +0 -2
  543. package/dist/chunks/cli-0.7.6-4ybzx76m.mjs +0 -2
  544. package/dist/chunks/cli-0.7.6-4z1q2wge.mjs +0 -2
  545. package/dist/chunks/cli-0.7.6-517m3gcx.mjs +0 -2
  546. package/dist/chunks/cli-0.7.6-56h0kfkw.mjs +0 -59
  547. package/dist/chunks/cli-0.7.6-5dk57g7k.mjs +0 -2
  548. package/dist/chunks/cli-0.7.6-5ktehyvf.mjs +0 -2
  549. package/dist/chunks/cli-0.7.6-5qabm4xe.mjs +0 -2
  550. package/dist/chunks/cli-0.7.6-5vj0s5hg.mjs +0 -5
  551. package/dist/chunks/cli-0.7.6-5wj27v22.mjs +0 -18
  552. package/dist/chunks/cli-0.7.6-5ynmp8av.mjs +0 -2
  553. package/dist/chunks/cli-0.7.6-62ea895q.mjs +0 -2
  554. package/dist/chunks/cli-0.7.6-67tqckbs.mjs +0 -133
  555. package/dist/chunks/cli-0.7.6-69b0cq0a.mjs +0 -4
  556. package/dist/chunks/cli-0.7.6-69hzrwk9.mjs +0 -2
  557. package/dist/chunks/cli-0.7.6-73gkdy2f.mjs +0 -2
  558. package/dist/chunks/cli-0.7.6-73h798cq.mjs +0 -2
  559. package/dist/chunks/cli-0.7.6-7g2b4q32.mjs +0 -2
  560. package/dist/chunks/cli-0.7.6-7ktebmzc.mjs +0 -2
  561. package/dist/chunks/cli-0.7.6-7mzraehr.mjs +0 -16
  562. package/dist/chunks/cli-0.7.6-7szsqp12.mjs +0 -2
  563. package/dist/chunks/cli-0.7.6-7ybdp9j0.mjs +0 -3
  564. package/dist/chunks/cli-0.7.6-7yce2cw8.mjs +0 -2
  565. package/dist/chunks/cli-0.7.6-8g9rtj1f.mjs +0 -2
  566. package/dist/chunks/cli-0.7.6-8h5rwm21.mjs +0 -2
  567. package/dist/chunks/cli-0.7.6-8k508w7p.mjs +0 -2
  568. package/dist/chunks/cli-0.7.6-8srvcg12.mjs +0 -2
  569. package/dist/chunks/cli-0.7.6-8vdxmbjt.mjs +0 -2
  570. package/dist/chunks/cli-0.7.6-8vftkjgf.mjs +0 -2
  571. package/dist/chunks/cli-0.7.6-8wv8rjqd.mjs +0 -2
  572. package/dist/chunks/cli-0.7.6-9508tj8e.mjs +0 -17
  573. package/dist/chunks/cli-0.7.6-96qqpq0c.mjs +0 -2
  574. package/dist/chunks/cli-0.7.6-9a706kh3.mjs +0 -2
  575. package/dist/chunks/cli-0.7.6-9w6egknj.mjs +0 -8
  576. package/dist/chunks/cli-0.7.6-ajv6cevv.mjs +0 -4
  577. package/dist/chunks/cli-0.7.6-am0sf3er.mjs +0 -2
  578. package/dist/chunks/cli-0.7.6-ama4wyv2.mjs +0 -12
  579. package/dist/chunks/cli-0.7.6-ayd8297m.mjs +0 -3
  580. package/dist/chunks/cli-0.7.6-bbmxy27v.mjs +0 -2
  581. package/dist/chunks/cli-0.7.6-berqrfpz.mjs +0 -2
  582. package/dist/chunks/cli-0.7.6-bese1aqp.mjs +0 -2
  583. package/dist/chunks/cli-0.7.6-bfwq4dm5.mjs +0 -2
  584. package/dist/chunks/cli-0.7.6-c3npkenn.mjs +0 -1
  585. package/dist/chunks/cli-0.7.6-ccbtfaqn.mjs +0 -2
  586. package/dist/chunks/cli-0.7.6-ccy8mp4f.mjs +0 -2
  587. package/dist/chunks/cli-0.7.6-cedrx1f7.mjs +0 -2
  588. package/dist/chunks/cli-0.7.6-chcjfb2p.mjs +0 -2
  589. package/dist/chunks/cli-0.7.6-cmxr1gyd.mjs +0 -3
  590. package/dist/chunks/cli-0.7.6-cq95q0m7.mjs +0 -2
  591. package/dist/chunks/cli-0.7.6-cxchkx7a.mjs +0 -18
  592. package/dist/chunks/cli-0.7.6-d4rmetja.mjs +0 -2
  593. package/dist/chunks/cli-0.7.6-d5nss1kz.mjs +0 -2
  594. package/dist/chunks/cli-0.7.6-d8hz302t.mjs +0 -2
  595. package/dist/chunks/cli-0.7.6-dd5tgszn.mjs +0 -4
  596. package/dist/chunks/cli-0.7.6-dfkaq7z7.mjs +0 -2
  597. package/dist/chunks/cli-0.7.6-dhp0vn09.mjs +0 -4
  598. package/dist/chunks/cli-0.7.6-dpfh7ypk.mjs +0 -2
  599. package/dist/chunks/cli-0.7.6-dq87daze.mjs +0 -2
  600. package/dist/chunks/cli-0.7.6-dynrpsf9.mjs +0 -10
  601. package/dist/chunks/cli-0.7.6-e01s0kjn.mjs +0 -2
  602. package/dist/chunks/cli-0.7.6-e3dwvde8.mjs +0 -58
  603. package/dist/chunks/cli-0.7.6-edjsszs3.mjs +0 -12
  604. package/dist/chunks/cli-0.7.6-ehkh8f7m.mjs +0 -2
  605. package/dist/chunks/cli-0.7.6-ejjekwys.mjs +0 -2
  606. package/dist/chunks/cli-0.7.6-ejk8n0sg.mjs +0 -2
  607. package/dist/chunks/cli-0.7.6-ek2a439r.mjs +0 -2
  608. package/dist/chunks/cli-0.7.6-ex7sezdt.mjs +0 -2
  609. package/dist/chunks/cli-0.7.6-f4nmb6r2.mjs +0 -3
  610. package/dist/chunks/cli-0.7.6-f9mzvngv.mjs +0 -2
  611. package/dist/chunks/cli-0.7.6-ffk5hz3x.mjs +0 -2
  612. package/dist/chunks/cli-0.7.6-fkshg1fg.mjs +0 -2
  613. package/dist/chunks/cli-0.7.6-fmmr53nv.mjs +0 -2
  614. package/dist/chunks/cli-0.7.6-fn56g2cc.mjs +0 -199
  615. package/dist/chunks/cli-0.7.6-frf6ynaj.mjs +0 -2
  616. package/dist/chunks/cli-0.7.6-ftdrd7jk.mjs +0 -17
  617. package/dist/chunks/cli-0.7.6-fvydk0w1.mjs +0 -2
  618. package/dist/chunks/cli-0.7.6-g1gd1372.mjs +0 -5
  619. package/dist/chunks/cli-0.7.6-g2437s1w.mjs +0 -2
  620. package/dist/chunks/cli-0.7.6-g44g34fb.mjs +0 -2
  621. package/dist/chunks/cli-0.7.6-g5cva69z.mjs +0 -2
  622. package/dist/chunks/cli-0.7.6-g736y207.mjs +0 -39
  623. package/dist/chunks/cli-0.7.6-g802sp0p.mjs +0 -2
  624. package/dist/chunks/cli-0.7.6-gkd2v7ek.mjs +0 -45
  625. package/dist/chunks/cli-0.7.6-gxbeg3ny.mjs +0 -3
  626. package/dist/chunks/cli-0.7.6-hrw7nyyq.mjs +0 -2
  627. package/dist/chunks/cli-0.7.6-hsa9j8sb.mjs +0 -2
  628. package/dist/chunks/cli-0.7.6-hsm2w1qr.mjs +0 -2
  629. package/dist/chunks/cli-0.7.6-hw3n6j75.mjs +0 -9
  630. package/dist/chunks/cli-0.7.6-j59ty8yt.mjs +0 -15
  631. package/dist/chunks/cli-0.7.6-j63vtmfa.mjs +0 -2
  632. package/dist/chunks/cli-0.7.6-j9p952mf.mjs +0 -2
  633. package/dist/chunks/cli-0.7.6-jjmm4f40.mjs +0 -2
  634. package/dist/chunks/cli-0.7.6-jmpc9xmj.mjs +0 -6
  635. package/dist/chunks/cli-0.7.6-jtdgswpn.mjs +0 -2
  636. package/dist/chunks/cli-0.7.6-jwqgj667.mjs +0 -2
  637. package/dist/chunks/cli-0.7.6-jzk3fxqa.mjs +0 -3
  638. package/dist/chunks/cli-0.7.6-k1tjb02q.mjs +0 -4
  639. package/dist/chunks/cli-0.7.6-k5r0yz41.mjs +0 -67
  640. package/dist/chunks/cli-0.7.6-k7fsgwdr.mjs +0 -2
  641. package/dist/chunks/cli-0.7.6-m51wgngt.mjs +0 -2
  642. package/dist/chunks/cli-0.7.6-md1ramb7.mjs +0 -2
  643. package/dist/chunks/cli-0.7.6-md31wz8f.mjs +0 -2
  644. package/dist/chunks/cli-0.7.6-md4x57wd.mjs +0 -2
  645. package/dist/chunks/cli-0.7.6-n6qsqdjv.mjs +0 -2
  646. package/dist/chunks/cli-0.7.6-ngmxmw82.mjs +0 -2
  647. package/dist/chunks/cli-0.7.6-ngsbbrk7.mjs +0 -3
  648. package/dist/chunks/cli-0.7.6-nxxj5qzs.mjs +0 -2
  649. package/dist/chunks/cli-0.7.6-p2268sge.mjs +0 -2
  650. package/dist/chunks/cli-0.7.6-pasrzvza.mjs +0 -2
  651. package/dist/chunks/cli-0.7.6-pbzty9n9.mjs +0 -2
  652. package/dist/chunks/cli-0.7.6-pwvs4p1w.mjs +0 -3
  653. package/dist/chunks/cli-0.7.6-pzk668w8.mjs +0 -2
  654. package/dist/chunks/cli-0.7.6-qan5xxdc.mjs +0 -5471
  655. package/dist/chunks/cli-0.7.6-qeq5tx23.mjs +0 -6
  656. package/dist/chunks/cli-0.7.6-qkcrt37c.mjs +0 -2
  657. package/dist/chunks/cli-0.7.6-qyk1jtmh.mjs +0 -2
  658. package/dist/chunks/cli-0.7.6-r6nhsg12.mjs +0 -2
  659. package/dist/chunks/cli-0.7.6-r78s2g03.mjs +0 -18
  660. package/dist/chunks/cli-0.7.6-r9dxvg8q.mjs +0 -5
  661. package/dist/chunks/cli-0.7.6-rp0xgr6t.mjs +0 -2
  662. package/dist/chunks/cli-0.7.6-rs07s8yh.mjs +0 -2
  663. package/dist/chunks/cli-0.7.6-rzhf46t3.mjs +0 -2
  664. package/dist/chunks/cli-0.7.6-s0jpd03j.mjs +0 -2
  665. package/dist/chunks/cli-0.7.6-s3kvpq11.mjs +0 -24
  666. package/dist/chunks/cli-0.7.6-se7x2a1f.mjs +0 -7
  667. package/dist/chunks/cli-0.7.6-sjbap7zg.mjs +0 -2
  668. package/dist/chunks/cli-0.7.6-svqwyxab.mjs +0 -42
  669. package/dist/chunks/cli-0.7.6-t224fm0b.mjs +0 -2
  670. package/dist/chunks/cli-0.7.6-t3wkyhpb.mjs +0 -2
  671. package/dist/chunks/cli-0.7.6-tnxct9wp.mjs +0 -2
  672. package/dist/chunks/cli-0.7.6-tp1mp7kg.mjs +0 -2
  673. package/dist/chunks/cli-0.7.6-tp4xkdj6.mjs +0 -2
  674. package/dist/chunks/cli-0.7.6-v3rjsfcr.mjs +0 -2
  675. package/dist/chunks/cli-0.7.6-vhan81qg.mjs +0 -2
  676. package/dist/chunks/cli-0.7.6-vhn7sz5q.mjs +0 -2
  677. package/dist/chunks/cli-0.7.6-vrcja2t1.mjs +0 -2
  678. package/dist/chunks/cli-0.7.6-w4bq1f08.mjs +0 -4
  679. package/dist/chunks/cli-0.7.6-w5smxper.mjs +0 -2
  680. package/dist/chunks/cli-0.7.6-w65xvz9z.mjs +0 -2
  681. package/dist/chunks/cli-0.7.6-w66170ej.mjs +0 -2
  682. package/dist/chunks/cli-0.7.6-w7k9x0kq.mjs +0 -3
  683. package/dist/chunks/cli-0.7.6-wch5kwc6.mjs +0 -3
  684. package/dist/chunks/cli-0.7.6-wepz3cym.mjs +0 -4
  685. package/dist/chunks/cli-0.7.6-wthbw2r0.mjs +0 -2
  686. package/dist/chunks/cli-0.7.6-wz34s2yk.mjs +0 -2
  687. package/dist/chunks/cli-0.7.6-wz5w8hmh.mjs +0 -2
  688. package/dist/chunks/cli-0.7.6-xczzrd9d.mjs +0 -34
  689. package/dist/chunks/cli-0.7.6-xfap6qa6.mjs +0 -20
  690. package/dist/chunks/cli-0.7.6-xg6ka3pp.mjs +0 -2
  691. package/dist/chunks/cli-0.7.6-xjemjs4e.mjs +0 -25
  692. package/dist/chunks/cli-0.7.6-xkmg4sc9.mjs +0 -2
  693. package/dist/chunks/cli-0.7.6-xky4ty14.mjs +0 -2
  694. package/dist/chunks/cli-0.7.6-xtjps7gq.mjs +0 -2
  695. package/dist/chunks/cli-0.7.6-xyx40s83.mjs +0 -21
  696. package/dist/chunks/cli-0.7.6-y36b0e0y.mjs +0 -24
  697. package/dist/chunks/cli-0.7.6-y3a6zp1r.mjs +0 -2
  698. package/dist/chunks/cli-0.7.6-y7bdxnmf.mjs +0 -133
  699. package/dist/chunks/cli-0.7.6-y8ga5pny.mjs +0 -15
  700. package/dist/chunks/cli-0.7.6-ye7kz4cr.mjs +0 -24
  701. package/dist/chunks/cli-0.7.6-ymhtbnyk.mjs +0 -2
  702. package/dist/chunks/cli-0.7.6-yv3stfxm.mjs +0 -12
  703. package/dist/chunks/cli-0.7.6-ywg6e349.mjs +0 -25
  704. package/dist/chunks/cli-0.7.6-z13va0jc.mjs +0 -2
  705. package/dist/chunks/cli-0.7.6-z4k83sx6.mjs +0 -2
  706. package/dist/chunks/cli-0.7.6-z5zw7sdz.mjs +0 -3
  707. package/dist/chunks/cli-0.7.6-zepjez10.mjs +0 -50
  708. package/dist/chunks/cli-0.7.6-zmkr521v.mjs +0 -15
  709. package/dist/chunks/cli-0.7.6-zrjrmccd.mjs +0 -2
  710. package/dist/chunks/cli-0.7.6-zrwpmp3s.mjs +0 -2
  711. package/dist/chunks/client-0.7.6-s5r00qzn.mjs +0 -1
  712. package/dist/chunks/color-0.7.6-c5m7hk8y.mjs +0 -1
  713. package/dist/chunks/compact-0.7.6-dx4c91sb.mjs +0 -3
  714. package/dist/chunks/config-0.7.6-0wrs7d25.mjs +0 -1
  715. package/dist/chunks/config-0.7.6-28k8xgy7.mjs +0 -1
  716. package/dist/chunks/constants-0.7.6-yxc2ccra.mjs +0 -1
  717. package/dist/chunks/context-0.7.6-efvp1txb.mjs +0 -1
  718. package/dist/chunks/context-noninteractive-0.7.6-8bp73hyq.mjs +0 -1
  719. package/dist/chunks/conversation-0.7.6-cqwzbr0d.mjs +0 -1
  720. package/dist/chunks/copilotHeaders-0.7.6-qm7k7b4w.mjs +0 -1
  721. package/dist/chunks/copy-0.7.6-tb3stmba.mjs +0 -9
  722. package/dist/chunks/cost-0.7.6-t2pss4xp.mjs +0 -1
  723. package/dist/chunks/createSSHSession-0.7.6-gxjfefp4.mjs +0 -1
  724. package/dist/chunks/createSession-0.7.6-s5cd1p2c.mjs +0 -1
  725. package/dist/chunks/debug-0.7.6-29wym0xr.mjs +0 -1
  726. package/dist/chunks/defaultActionDeps-0.7.6-1thsnj41.mjs +0 -1446
  727. package/dist/chunks/desktop-0.7.6-jb15m9tp.mjs +0 -1
  728. package/dist/chunks/detectRepository-0.7.6-0cp7fygx.mjs +0 -1
  729. package/dist/chunks/detection-0.7.6-rg544p2p.mjs +0 -1
  730. package/dist/chunks/diff-0.7.6-53gzzxnd.mjs +0 -1
  731. package/dist/chunks/doctor-0.7.6-95kk3h2p.mjs +0 -1
  732. package/dist/chunks/doctorDiagnostic-0.7.6-ybe5naeq.mjs +0 -1
  733. package/dist/chunks/earlyInput-0.7.6-2frqt87k.mjs +0 -1
  734. package/dist/chunks/effort-0.7.6-3hhjz5rt.mjs +0 -10
  735. package/dist/chunks/engine-0.7.6-r4hy6gpj.mjs +0 -1
  736. package/dist/chunks/envLessBridgeConfig-0.7.6-6gxkp63s.mjs +0 -1
  737. package/dist/chunks/envUtils-0.7.6-70jnybbw.mjs +0 -1
  738. package/dist/chunks/environmentSelection-0.7.6-mtg8g15a.mjs +0 -1
  739. package/dist/chunks/environments-0.7.6-4vj956d6.mjs +0 -1
  740. package/dist/chunks/errors-0.7.6-3rfme91e.mjs +0 -1
  741. package/dist/chunks/exampleCommands-0.7.6-3rwnb01j.mjs +0 -1
  742. package/dist/chunks/exit-0.7.6-1zq90j34.mjs +0 -1
  743. package/dist/chunks/explorer-0.7.6-7yxdvz4c.mjs +0 -1
  744. package/dist/chunks/export-0.7.6-6annregx.mjs +0 -2
  745. package/dist/chunks/extra-usage-0.7.6-1d8afeer.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-0.7.6-yv74b9va.mjs +0 -1
  747. package/dist/chunks/fast-0.7.6-83xw5a4z.mjs +0 -1
  748. package/dist/chunks/feedback-0.7.6-r3gmhtzb.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-0.7.6-sxwwnk4h.mjs +0 -1
  750. package/dist/chunks/git-0.7.6-z2fwspdf.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-0.7.6-fe39tsv6.mjs +0 -1
  752. package/dist/chunks/goal-0.7.6-ejhqdg3h.mjs +0 -4
  753. package/dist/chunks/grove-0.7.6-wq7pmtc4.mjs +0 -1
  754. package/dist/chunks/growthbook-0.7.6-268c3zv1.mjs +0 -1
  755. package/dist/chunks/headless-0.7.6-0624t1g9.mjs +0 -2
  756. package/dist/chunks/heapdump-0.7.6-0h7m92s6.mjs +0 -6
  757. package/dist/chunks/help-0.7.6-cgg68b97.mjs +0 -1
  758. package/dist/chunks/hookChains-0.7.6-r667d77r.mjs +0 -3
  759. package/dist/chunks/hooks-0.7.6-7tnwk63p.mjs +0 -79
  760. package/dist/chunks/hooks-0.7.6-btfaw4b9.mjs +0 -1
  761. package/dist/chunks/ide-0.7.6-fq0f5srk.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-0.7.6-2ks1h23p.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-0.7.6-femb5yew.mjs +0 -1
  764. package/dist/chunks/index-0.7.6-2rpgkwj4.mjs +0 -9
  765. package/dist/chunks/index-0.7.6-2zatk70c.mjs +0 -1
  766. package/dist/chunks/index-0.7.6-415hw608.mjs +0 -1
  767. package/dist/chunks/index-0.7.6-7wrzedvg.mjs +0 -1
  768. package/dist/chunks/index-0.7.6-98ws3n8p.mjs +0 -1
  769. package/dist/chunks/index-0.7.6-9k6nvjv8.mjs +0 -1
  770. package/dist/chunks/index-0.7.6-bbdqqv1x.mjs +0 -1
  771. package/dist/chunks/index-0.7.6-djapsy32.mjs +0 -1
  772. package/dist/chunks/index-0.7.6-efatyc79.mjs +0 -17
  773. package/dist/chunks/index-0.7.6-egyaf79a.mjs +0 -5
  774. package/dist/chunks/index-0.7.6-ew2v6b0x.mjs +0 -1
  775. package/dist/chunks/index-0.7.6-h2kqerxv.mjs +0 -1
  776. package/dist/chunks/index-0.7.6-h5xh1kf2.mjs +0 -1
  777. package/dist/chunks/index-0.7.6-jk32t8wg.mjs +0 -1
  778. package/dist/chunks/index-0.7.6-k60v4n8g.mjs +0 -9
  779. package/dist/chunks/index-0.7.6-kb22mqnf.mjs +0 -2
  780. package/dist/chunks/index-0.7.6-mj4y74z8.mjs +0 -1
  781. package/dist/chunks/index-0.7.6-pkyqwagx.mjs +0 -1
  782. package/dist/chunks/index-0.7.6-sdw9kjcj.mjs +0 -1
  783. package/dist/chunks/index-0.7.6-tc2zr05j.mjs +0 -2
  784. package/dist/chunks/index-0.7.6-tk8kmvah.mjs +0 -1
  785. package/dist/chunks/index-0.7.6-vhgb870z.mjs +0 -1
  786. package/dist/chunks/index-0.7.6-yndsc291.mjs +0 -30
  787. package/dist/chunks/init-0.7.6-w0mqjmeg.mjs +0 -1
  788. package/dist/chunks/initReplBridge-0.7.6-rf60qv0p.mjs +0 -1
  789. package/dist/chunks/ink-0.7.6-3eyfg9zt.mjs +0 -1
  790. package/dist/chunks/insights-0.7.6-7btcyfzb.mjs +0 -870
  791. package/dist/chunks/install-0.7.6-mdtm3sg3.mjs +0 -1
  792. package/dist/chunks/install-github-app-0.7.6-jvncztq4.mjs +0 -149
  793. package/dist/chunks/install-slack-app-0.7.6-yqkgptfz.mjs +0 -1
  794. package/dist/chunks/instrumentation-0.7.6-1ctp56r7.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-0.7.6-hnfccr2a.mjs +0 -1
  796. package/dist/chunks/keybindings-0.7.6-cm2a4esz.mjs +0 -2
  797. package/dist/chunks/knowledge-0.7.6-2m4hj4wv.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-0.7.6-3p0jwsk1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-0.7.6-7n8wpd6m.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-0.7.6-668vved3.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-0.7.6-fvexrndy.mjs +0 -1
  802. package/dist/chunks/log-0.7.6-n1gwe75k.mjs +0 -1
  803. package/dist/chunks/main-0.7.6-787at8bh.mjs +0 -1
  804. package/dist/chunks/managedEnv-0.7.6-b17rcr8m.mjs +0 -1
  805. package/dist/chunks/mcp-0.7.6-a2gt46m1.mjs +0 -4
  806. package/dist/chunks/mcp-0.7.6-ehgr4hy2.mjs +0 -1
  807. package/dist/chunks/mcp-0.7.6-z5yz782z.mjs +0 -17
  808. package/dist/chunks/mcpb-0.7.6-x3w00evk.mjs +0 -1
  809. package/dist/chunks/memory-0.7.6-ce56tv6x.mjs +0 -3
  810. package/dist/chunks/model-0.7.6-10bxpdy1.mjs +0 -2
  811. package/dist/chunks/model-0.7.6-463cgk44.mjs +0 -1
  812. package/dist/chunks/node-0.7.6-yq8nb00v.mjs +0 -12
  813. package/dist/chunks/oauth-0.7.6-bbgjzwfb.mjs +0 -1
  814. package/dist/chunks/openaiShim-0.7.6-kwwv7ntf.mjs +0 -14
  815. package/dist/chunks/output-style-0.7.6-cs808te7.mjs +0 -1
  816. package/dist/chunks/package-ZZWOLTXM-0.7.6-kjjaeshn.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-0.7.6-k3n1pn17.mjs +0 -1
  818. package/dist/chunks/parser-0.7.6-eae6w23n.mjs +0 -1
  819. package/dist/chunks/passes-0.7.6-k46cf658.mjs +0 -1
  820. package/dist/chunks/permissions-0.7.6-1nws00wm.mjs +0 -1
  821. package/dist/chunks/permissions-0.7.6-jq6ebtnw.mjs +0 -3
  822. package/dist/chunks/plan-0.7.6-ry44stze.mjs +0 -1
  823. package/dist/chunks/plist-0.7.6-0vee72zr.mjs +0 -1
  824. package/dist/chunks/plugin-0.7.6-vwa3avby.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-0.7.6-wvmq9d6r.mjs +0 -1
  826. package/dist/chunks/plugins-0.7.6-sksmmrbb.mjs +0 -9
  827. package/dist/chunks/preActionHook-0.7.6-qtz2v7cq.mjs +0 -2
  828. package/dist/chunks/print-0.7.6-qddcs91f.mjs +0 -57
  829. package/dist/chunks/privacy-settings-0.7.6-5gzw6mn1.mjs +0 -1
  830. package/dist/chunks/process-0.7.6-6b1s37w1.mjs +0 -1
  831. package/dist/chunks/processBashCommand-0.7.6-yb92143k.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-0.7.6-bc9jxvge.mjs +0 -9
  833. package/dist/chunks/prompt-0.7.6-sps6z4za.mjs +0 -1
  834. package/dist/chunks/prompt-0.7.6-t8yabss3.mjs +0 -1
  835. package/dist/chunks/prompts-0.7.6-x3ndp7gh.mjs +0 -1
  836. package/dist/chunks/protocolHandler-0.7.6-m1pgssvd.mjs +0 -13
  837. package/dist/chunks/provider-0.7.6-yxmt6yve.mjs +0 -2
  838. package/dist/chunks/providerProfiles-0.7.6-3027t9pt.mjs +0 -1
  839. package/dist/chunks/providerValidation-0.7.6-vpv75gd1.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-0.7.6-6w5cdwx1.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-0.7.6-vz4yvks2.mjs +0 -34
  842. package/dist/chunks/registry-0.7.6-gat54dy3.mjs +0 -1
  843. package/dist/chunks/release-notes-0.7.6-myz4h7d7.mjs +0 -5
  844. package/dist/chunks/reload-plugins-0.7.6-64w73d8b.mjs +0 -2
  845. package/dist/chunks/remote-env-0.7.6-zz9a22zn.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-0.7.6-9mnzebzz.mjs +0 -1
  847. package/dist/chunks/remoteSession-0.7.6-0geea7cr.mjs +0 -1
  848. package/dist/chunks/rename-0.7.6-y40kz5p4.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-0.7.6-9q86nfkb.mjs +0 -1
  850. package/dist/chunks/replLauncher-0.7.6-appht20k.mjs +0 -1
  851. package/dist/chunks/resume-0.7.6-za9pttkz.mjs +0 -2
  852. package/dist/chunks/rewind-0.7.6-23eb1s5k.mjs +0 -1
  853. package/dist/chunks/rootOptions-0.7.6-89a7srwx.mjs +0 -1
  854. package/dist/chunks/sandbox-adapter-0.7.6-zxpg8tbn.mjs +0 -1
  855. package/dist/chunks/sandbox-toggle-0.7.6-12ddnvsb.mjs +0 -1
  856. package/dist/chunks/session-0.7.6-qtvc9q8w.mjs +0 -2
  857. package/dist/chunks/sessionDiscovery-0.7.6-d2h1v026.mjs +0 -1
  858. package/dist/chunks/sessionFileAccessHooks-0.7.6-j8rejm9s.mjs +0 -1
  859. package/dist/chunks/sessionStorage-0.7.6-whqhsy0v.mjs +0 -1
  860. package/dist/chunks/settings-0.7.6-d1x6h71y.mjs +0 -1
  861. package/dist/chunks/setup-0.7.6-f52y5q94.mjs +0 -5
  862. package/dist/chunks/sinks-0.7.6-p38qk6rn.mjs +0 -1
  863. package/dist/chunks/skills-0.7.6-4x49mjqs.mjs +0 -1
  864. package/dist/chunks/startupProfiler-0.7.6-kehr3zds.mjs +0 -1
  865. package/dist/chunks/startupUpdateCheck-0.7.6-m95yf5v2.mjs +0 -1
  866. package/dist/chunks/state-0.7.6-exkbe4vf.mjs +0 -1
  867. package/dist/chunks/stats-0.7.6-y4qxdfqk.mjs +0 -6
  868. package/dist/chunks/status-0.7.6-etkntf2w.mjs +0 -1
  869. package/dist/chunks/stickers-0.7.6-jfaby3j3.mjs +0 -1
  870. package/dist/chunks/subprocessEnv-0.7.6-2bme852w.mjs +0 -1
  871. package/dist/chunks/tasks-0.7.6-vc8j66yr.mjs +0 -1
  872. package/dist/chunks/teamHelpers-0.7.6-ax1nev6h.mjs +0 -1
  873. package/dist/chunks/teammateModeSnapshot-0.7.6-9tjnw4x3.mjs +0 -1
  874. package/dist/chunks/teleport-0.7.6-xjeqw992.mjs +0 -1
  875. package/dist/chunks/terminalSetup-0.7.6-cx56kmpg.mjs +0 -1
  876. package/dist/chunks/theme-0.7.6-artxd1km.mjs +0 -1
  877. package/dist/chunks/thinkback-0.7.6-ar7ssxsq.mjs +0 -1
  878. package/dist/chunks/thinkback-play-0.7.6-7d5g791f.mjs +0 -1
  879. package/dist/chunks/toolPool-0.7.6-58r85xft.mjs +0 -1
  880. package/dist/chunks/toolSearch-0.7.6-29hekpkv.mjs +0 -1
  881. package/dist/chunks/tools-0.7.6-6bhsctcm.mjs +0 -1
  882. package/dist/chunks/trustedDevice-0.7.6-aay0bw3y.mjs +0 -1
  883. package/dist/chunks/turndown.cjs-0.7.6-cfbcqt7b.mjs +0 -69
  884. package/dist/chunks/types-0.7.6-z2j2wxhd.mjs +0 -1
  885. package/dist/chunks/ultrareviewCommand-0.7.6-7w7yx7mv.mjs +0 -4
  886. package/dist/chunks/update-0.7.6-6s5hvmvc.mjs +0 -86
  887. package/dist/chunks/upgrade-0.7.6-nrvaa7qs.mjs +0 -1
  888. package/dist/chunks/upload-0.7.6-6880h5gd.mjs +0 -7
  889. package/dist/chunks/upstreamproxy-0.7.6-d4xfvwf7.mjs +0 -14
  890. package/dist/chunks/url-handler-napi-0.7.6-hcyxzqg6.mjs +0 -1
  891. package/dist/chunks/usage-0.7.6-vbbt70v9.mjs +0 -1
  892. package/dist/chunks/util-0.7.6-0cm7xj78.mjs +0 -1
  893. package/dist/chunks/utils-0.7.6-h3fwyhxw.mjs +0 -1
  894. package/dist/chunks/vim-0.7.6-k6evwpd5.mjs +0 -1
  895. package/dist/chunks/watcher-0.7.6-gc6rbcvg.mjs +0 -1
  896. package/dist/chunks/wiki-0.7.6-3sjbdwmf.mjs +0 -132
  897. package/dist/chunks/workflows-0.7.6-rg3kvwhe.mjs +0 -1
  898. package/dist/chunks/worktree-0.7.6-hhewj19d.mjs +0 -1
  899. package/dist/chunks/worktreeModeEnabled-0.7.6-a27ekdvp.mjs +0 -1
  900. package/dist/chunks/wrapper-0.7.6-01s6r78y.mjs +0 -7
  901. package/dist/claudin-vscode.vsix +0 -0
  902. package/scripts/postinstall-warmup.mjs +0 -70
  903. package/scripts/v8cache-gc.mjs +0 -84
  904. /package/dist/chunks/{cli-0.7.6-sznceb3v.mjs → cli-1.0.3-25zd2770.mjs} +0 -0
  905. /package/dist/chunks/{cli-0.7.6-wmhr2zkd.mjs → cli-1.0.3-43683395.mjs} +0 -0
  906. /package/dist/chunks/{cli-0.7.6-azjnjp5p.mjs → cli-1.0.3-77dec30x.mjs} +0 -0
  907. /package/dist/chunks/{cli-0.7.6-2nmq534s.mjs → cli-1.0.3-adgwsvq3.mjs} +0 -0
  908. /package/dist/chunks/{cli-0.7.6-wmk10em6.mjs → cli-1.0.3-cf280jvq.mjs} +0 -0
  909. /package/dist/chunks/{cli-0.7.6-b39v6rz1.mjs → cli-1.0.3-hn2qw1pk.mjs} +0 -0
  910. /package/dist/chunks/{cli-0.7.6-pef1cr89.mjs → cli-1.0.3-qf5pjy0v.mjs} +0 -0
  911. /package/dist/chunks/{cli-0.7.6-jpjn976y.mjs → cli-1.0.3-vzm5gxzn.mjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import{Ab as cz,Bb as iz,Cb as bJ,xb as yJ,yb as xz,zb as rz}from"./cli-1.0.3-ca8qx0d6.mjs";import{Eb as Tz}from"./cli-1.0.3-02ax2rf7.mjs";import{Mb as TJ,Nb as xJ,Ob as MJ,Pb as wJ,Qb as fJ}from"./cli-1.0.3-ntywpqre.mjs";import{Sb as kJ}from"./cli-1.0.3-znxwm9ta.mjs";import{Ne as VJ,Oe as lJ}from"./cli-1.0.3-rc9yjwv4.mjs";import{df as EJ,ff as oz,hf as DK}from"./cli-1.0.3-ar488ss1.mjs";import{Af as OJ,uf as mz,wf as LJ}from"./cli-1.0.3-4qaa3xp4.mjs";import{$G as Cz,An as UJ,Bn as CK,Ul as AJ,Vj as RJ,Vl as vz,Wj as NK,Zl as BK,_G as JJ,aH as KJ,bH as ZJ,dH as $J,eH as YJ,fH as XJ,gH as QJ,hH as WJ}from"./cli-1.0.3-2wzvc8te.mjs";import"./cli-1.0.3-0tgbymg8.mjs";import"./cli-1.0.3-cty1pfv3.mjs";import"./cli-1.0.3-wf8jkyyp.mjs";import"./cli-1.0.3-8bz64j3f.mjs";import"./cli-1.0.3-hgghr2w8.mjs";import"./cli-1.0.3-xsmba4r1.mjs";import"./cli-1.0.3-zfe21fjj.mjs";import"./cli-1.0.3-2aw6f2z9.mjs";import"./cli-1.0.3-3y945bqk.mjs";import{EV as _K,yV as DJ}from"./cli-1.0.3-c38hr99q.mjs";import"./cli-1.0.3-c4trbm3y.mjs";import"./cli-1.0.3-rapppvd0.mjs";import{_V as az,cW as RK}from"./cli-1.0.3-sz2d376e.mjs";import"./cli-1.0.3-vw5m6hn3.mjs";import"./cli-1.0.3-n28tqrv0.mjs";import"./cli-1.0.3-z3f4pmp1.mjs";import"./cli-1.0.3-c570dde7.mjs";import"./cli-1.0.3-ancybhm3.mjs";import"./cli-1.0.3-hz5a6e6w.mjs";import"./cli-1.0.3-qd5c6ph5.mjs";import"./cli-1.0.3-kesrsh8z.mjs";import"./cli-1.0.3-hg04k516.mjs";import"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-087x46pf.mjs";import{H1 as pz,K1 as PK}from"./cli-1.0.3-17cer107.mjs";import"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-3gtteknj.mjs";import"./cli-1.0.3-sb9pchh2.mjs";import"./cli-1.0.3-apbdyngz.mjs";import"./cli-1.0.3-b14b158b.mjs";import"./cli-1.0.3-exj8yag8.mjs";import"./cli-1.0.3-pxw9n4f7.mjs";import"./cli-1.0.3-wv4vx65k.mjs";import"./cli-1.0.3-n9tzv3mz.mjs";import"./cli-1.0.3-q6m5azm3.mjs";import"./cli-1.0.3-1w2x2m43.mjs";import"./cli-1.0.3-xf2r8496.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import{p6 as i,q6 as FK}from"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import{R7 as G,S7 as pJ}from"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import"./cli-1.0.3-3gkwhy62.mjs";import{T$ as CJ,U$ as qK,gfa as yz,j9 as Wz,l9 as HK,ofa as OK,taa as fz,uaa as ez,vaa as zJ,waa as cJ}from"./cli-1.0.3-4m0kzrq4.mjs";import{Dfa as qz,Lfa as GK,tfa as sz,ufa as gJ,wfa as Rz}from"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import{Aga as jK,sga as PJ}from"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import{Nha as zz,Oha as NJ,Qha as QK}from"./cli-1.0.3-ynf2sj5r.mjs";import{Qia as q,Tia as tz,tia as qJ,uia as uz,yia as oJ}from"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import{oja as g,vja as VK}from"./cli-1.0.3-5hpdm52h.mjs";import{Bja as _J,Jja as BJ,Lja as WK}from"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import{Yqa as I}from"./cli-1.0.3-vzm5gxzn.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.0.3-q2t2afxn.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.0.3-mtfty38e.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.0.3-qpmk7fsa.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.0.3-q2t2afxn.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.0.3-qpmk7fsa.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.0.3-0b1mgzs5.mjs");_();let{initSinks:k}=await import("./sinks-1.0.3-wjm4jwph.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.0.3-7hxpebf0.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.0.3-4d3vbcf3.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.0.3-16bw4j5m.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.0.3-0b1mgzs5.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.0.3-tpyzsser.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.0.3-mhatacpg.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.0.3-mtfty38e.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.0.3-4d3vbcf3.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.0.3-t6x6ycq0.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.0.3-q2t2afxn.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.0.3-mtfty38e.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.0.3-7hxpebf0.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.0.3-0b1mgzs5.mjs");R();let{initSinks:U}=await import("./sinks-1.0.3-wjm4jwph.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.0.3-16bw4j5m.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.0.3-tpyzsser.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.0.3-mhatacpg.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.0.3-q2t2afxn.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{Bga as A,Cga as k,Mga as G,Nga as N,Qga as M,Tga as Y,Vga as O,Wga as S,Xga as _}from"./cli-1.0.3-pf8dk52a.mjs";import{Qia as C,Tia as R,tia as K,uia as W,yia as j}from"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import{qja as y,vja as c}from"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-vzm5gxzn.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{Lh as a,Mh as bJ}from"./cli-1.0.3-6x84yw4b.mjs";import{Nh as x,Oh as AJ}from"./cli-1.0.3-t7p3714v.mjs";import{DP as TJ,IQ as hJ,In as m,Jn as UJ,KD as l,QD as kJ,Zw as i,_w as HJ,ky as u,my as WJ,pH as $,qH as vJ,sT as s,tT as t,uP as r,uQ as o,uT as DJ}from"./cli-1.0.3-2wzvc8te.mjs";import"./cli-1.0.3-0tgbymg8.mjs";import"./cli-1.0.3-cty1pfv3.mjs";import"./cli-1.0.3-wf8jkyyp.mjs";import"./cli-1.0.3-8bz64j3f.mjs";import"./cli-1.0.3-hgghr2w8.mjs";import"./cli-1.0.3-xsmba4r1.mjs";import"./cli-1.0.3-zfe21fjj.mjs";import"./cli-1.0.3-2aw6f2z9.mjs";import"./cli-1.0.3-3y945bqk.mjs";import"./cli-1.0.3-c38hr99q.mjs";import"./cli-1.0.3-c4trbm3y.mjs";import"./cli-1.0.3-rapppvd0.mjs";import"./cli-1.0.3-sz2d376e.mjs";import"./cli-1.0.3-vw5m6hn3.mjs";import"./cli-1.0.3-n28tqrv0.mjs";import"./cli-1.0.3-z3f4pmp1.mjs";import"./cli-1.0.3-c570dde7.mjs";import"./cli-1.0.3-ancybhm3.mjs";import{PX as c,RX as IJ,sX as g,tX as QJ}from"./cli-1.0.3-hz5a6e6w.mjs";import"./cli-1.0.3-qd5c6ph5.mjs";import{I0 as NJ,IY as GJ,b0 as k,d0 as v,u0 as j,w0 as KJ}from"./cli-1.0.3-kesrsh8z.mjs";import"./cli-1.0.3-hg04k516.mjs";import"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-087x46pf.mjs";import"./cli-1.0.3-17cer107.mjs";import"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-3gtteknj.mjs";import"./cli-1.0.3-sb9pchh2.mjs";import"./cli-1.0.3-apbdyngz.mjs";import"./cli-1.0.3-b14b158b.mjs";import"./cli-1.0.3-exj8yag8.mjs";import"./cli-1.0.3-pxw9n4f7.mjs";import{O2 as F,P2 as W,Q2 as d}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as zJ}from"./cli-1.0.3-n9tzv3mz.mjs";import"./cli-1.0.3-q6m5azm3.mjs";import"./cli-1.0.3-1w2x2m43.mjs";import"./cli-1.0.3-xf2r8496.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import"./cli-1.0.3-3gkwhy62.mjs";import{Kda as FJ,daa as p,eaa as C,mda as S,waa as ZJ}from"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import{oja as f,vja as YJ}from"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import{Tqa as R,Xqa as XJ}from"./cli-1.0.3-vzm5gxzn.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{JW as p,KW as f,LW as a,MW as S}from"./cli-1.0.3-z3f4pmp1.mjs";import{Kda as C,mda as d}from"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import{Aha as m,Bha as y,Cha as b}from"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import{Xqa as g}from"./cli-1.0.3-vzm5gxzn.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.0.3-vzm5gxzn.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{V1 as h,Z1 as zz}from"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import{O5 as e,p5 as m}from"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import{Jea as y,Qea as s,Tea as v,Wea as r}from"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import{Qia as k,Tia as o}from"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import{mpa as a,pla as b}from"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import{Xqa as n}from"./cli-1.0.3-vzm5gxzn.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,prompt_cache_retention:"24h"}};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{b2 as L,c2 as P,d2 as $,h2 as Q,i2 as U,j2 as V,k2 as j}from"./cli-1.0.3-3gtteknj.mjs";import{Xqa as Z}from"./cli-1.0.3-vzm5gxzn.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{Rh as a,Sh as b}from"./cli-1.0.3-b72086ew.mjs";import"./cli-1.0.3-rfvvw9yn.mjs";import"./cli-1.0.3-6sgbgf1x.mjs";import"./cli-1.0.3-2wzvc8te.mjs";import"./cli-1.0.3-0tgbymg8.mjs";import"./cli-1.0.3-cty1pfv3.mjs";import"./cli-1.0.3-wf8jkyyp.mjs";import"./cli-1.0.3-8bz64j3f.mjs";import"./cli-1.0.3-hgghr2w8.mjs";import"./cli-1.0.3-xsmba4r1.mjs";import"./cli-1.0.3-zfe21fjj.mjs";import"./cli-1.0.3-2aw6f2z9.mjs";import"./cli-1.0.3-3y945bqk.mjs";import"./cli-1.0.3-c38hr99q.mjs";import"./cli-1.0.3-c4trbm3y.mjs";import"./cli-1.0.3-rapppvd0.mjs";import"./cli-1.0.3-sz2d376e.mjs";import"./cli-1.0.3-vw5m6hn3.mjs";import"./cli-1.0.3-n28tqrv0.mjs";import"./cli-1.0.3-z3f4pmp1.mjs";import"./cli-1.0.3-c570dde7.mjs";import"./cli-1.0.3-ancybhm3.mjs";import"./cli-1.0.3-hz5a6e6w.mjs";import"./cli-1.0.3-qd5c6ph5.mjs";import"./cli-1.0.3-kesrsh8z.mjs";import"./cli-1.0.3-hg04k516.mjs";import"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-087x46pf.mjs";import"./cli-1.0.3-17cer107.mjs";import"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-3gtteknj.mjs";import"./cli-1.0.3-sb9pchh2.mjs";import"./cli-1.0.3-apbdyngz.mjs";import"./cli-1.0.3-b14b158b.mjs";import"./cli-1.0.3-exj8yag8.mjs";import"./cli-1.0.3-pxw9n4f7.mjs";import"./cli-1.0.3-wv4vx65k.mjs";import"./cli-1.0.3-n9tzv3mz.mjs";import"./cli-1.0.3-q6m5azm3.mjs";import"./cli-1.0.3-1w2x2m43.mjs";import"./cli-1.0.3-xf2r8496.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import"./cli-1.0.3-3gkwhy62.mjs";import"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import"./cli-1.0.3-vzm5gxzn.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{B$ as N,Paa as x,Saa as A,gfa as X,m_ as V,n_ as W,o_ as J,ofa as H,w$ as k}from"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import{pja as b,vja as y}from"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-vzm5gxzn.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{$S as d,YS as a,ZS as b,_S as c,aT as e,bT as f,cT as g,dT as h,eT as i,fT as j,gT as k,hT as l,iT as m,jT as n,kT as o,lT as p,mT as q,nT as r,oT as s,pT as t}from"./cli-1.0.3-2wzvc8te.mjs";import"./cli-1.0.3-0tgbymg8.mjs";import"./cli-1.0.3-cty1pfv3.mjs";import"./cli-1.0.3-wf8jkyyp.mjs";import"./cli-1.0.3-8bz64j3f.mjs";import"./cli-1.0.3-hgghr2w8.mjs";import"./cli-1.0.3-xsmba4r1.mjs";import"./cli-1.0.3-zfe21fjj.mjs";import"./cli-1.0.3-2aw6f2z9.mjs";import"./cli-1.0.3-3y945bqk.mjs";import"./cli-1.0.3-c38hr99q.mjs";import"./cli-1.0.3-c4trbm3y.mjs";import"./cli-1.0.3-rapppvd0.mjs";import"./cli-1.0.3-sz2d376e.mjs";import"./cli-1.0.3-vw5m6hn3.mjs";import"./cli-1.0.3-n28tqrv0.mjs";import"./cli-1.0.3-z3f4pmp1.mjs";import"./cli-1.0.3-c570dde7.mjs";import"./cli-1.0.3-ancybhm3.mjs";import"./cli-1.0.3-hz5a6e6w.mjs";import"./cli-1.0.3-qd5c6ph5.mjs";import"./cli-1.0.3-kesrsh8z.mjs";import"./cli-1.0.3-hg04k516.mjs";import"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-087x46pf.mjs";import"./cli-1.0.3-17cer107.mjs";import"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-3gtteknj.mjs";import"./cli-1.0.3-sb9pchh2.mjs";import"./cli-1.0.3-apbdyngz.mjs";import"./cli-1.0.3-b14b158b.mjs";import"./cli-1.0.3-exj8yag8.mjs";import"./cli-1.0.3-pxw9n4f7.mjs";import"./cli-1.0.3-wv4vx65k.mjs";import"./cli-1.0.3-n9tzv3mz.mjs";import"./cli-1.0.3-q6m5azm3.mjs";import"./cli-1.0.3-1w2x2m43.mjs";import"./cli-1.0.3-xf2r8496.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import"./cli-1.0.3-3gkwhy62.mjs";import"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import"./cli-1.0.3-vzm5gxzn.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{Ph as a,Qh as l}from"./cli-1.0.3-nr5rgce9.mjs";import"./cli-1.0.3-b72086ew.mjs";import"./cli-1.0.3-zqp5x3gh.mjs";import"./cli-1.0.3-rfvvw9yn.mjs";import"./cli-1.0.3-6sgbgf1x.mjs";import"./cli-1.0.3-2wzvc8te.mjs";import"./cli-1.0.3-0tgbymg8.mjs";import"./cli-1.0.3-cty1pfv3.mjs";import"./cli-1.0.3-wf8jkyyp.mjs";import"./cli-1.0.3-8bz64j3f.mjs";import"./cli-1.0.3-hgghr2w8.mjs";import"./cli-1.0.3-xsmba4r1.mjs";import"./cli-1.0.3-zfe21fjj.mjs";import"./cli-1.0.3-2aw6f2z9.mjs";import"./cli-1.0.3-3y945bqk.mjs";import"./cli-1.0.3-c38hr99q.mjs";import"./cli-1.0.3-c4trbm3y.mjs";import"./cli-1.0.3-rapppvd0.mjs";import"./cli-1.0.3-sz2d376e.mjs";import"./cli-1.0.3-vw5m6hn3.mjs";import"./cli-1.0.3-n28tqrv0.mjs";import"./cli-1.0.3-z3f4pmp1.mjs";import"./cli-1.0.3-c570dde7.mjs";import"./cli-1.0.3-ancybhm3.mjs";import"./cli-1.0.3-hz5a6e6w.mjs";import"./cli-1.0.3-qd5c6ph5.mjs";import"./cli-1.0.3-kesrsh8z.mjs";import"./cli-1.0.3-hg04k516.mjs";import"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-087x46pf.mjs";import"./cli-1.0.3-17cer107.mjs";import"./cli-1.0.3-r274tqxg.mjs";import"./cli-1.0.3-3gtteknj.mjs";import"./cli-1.0.3-sb9pchh2.mjs";import"./cli-1.0.3-apbdyngz.mjs";import"./cli-1.0.3-b14b158b.mjs";import"./cli-1.0.3-exj8yag8.mjs";import"./cli-1.0.3-pxw9n4f7.mjs";import"./cli-1.0.3-wv4vx65k.mjs";import"./cli-1.0.3-n9tzv3mz.mjs";import"./cli-1.0.3-q6m5azm3.mjs";import"./cli-1.0.3-1w2x2m43.mjs";import"./cli-1.0.3-xf2r8496.mjs";import"./cli-1.0.3-r2amtv3x.mjs";import"./cli-1.0.3-5psnr7wf.mjs";import"./cli-1.0.3-v658mswv.mjs";import"./cli-1.0.3-8a694ts0.mjs";import"./cli-1.0.3-d7597p9k.mjs";import"./cli-1.0.3-bnd3wvym.mjs";import"./cli-1.0.3-3gkwhy62.mjs";import"./cli-1.0.3-4m0kzrq4.mjs";import"./cli-1.0.3-phh30dq0.mjs";import"./cli-1.0.3-ejb4xe2y.mjs";import"./cli-1.0.3-vqm63ckk.mjs";import"./cli-1.0.3-kwe8av2x.mjs";import"./cli-1.0.3-pf8dk52a.mjs";import"./cli-1.0.3-n2h9jvgm.mjs";import"./cli-1.0.3-n99q1npz.mjs";import"./cli-1.0.3-ynf2sj5r.mjs";import"./cli-1.0.3-jmvq43wb.mjs";import"./cli-1.0.3-960aw98y.mjs";import"./cli-1.0.3-5hpdm52h.mjs";import"./cli-1.0.3-1f00zm8y.mjs";import"./cli-1.0.3-5kneybr4.mjs";import"./cli-1.0.3-dyh4d1gw.mjs";import"./cli-1.0.3-x1ngfkk5.mjs";import"./cli-1.0.3-zan6y0m1.mjs";import"./cli-1.0.3-gpjv1akn.mjs";import"./cli-1.0.3-607t5t97.mjs";import{Xqa as t}from"./cli-1.0.3-vzm5gxzn.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{x1 as a,y1 as b,z1 as c}from"./cli-1.0.3-63tn3q21.mjs";import"./cli-1.0.3-vzm5gxzn.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{Aga as K,pga as G}from"./cli-1.0.3-kwe8av2x.mjs";import{Tga as j,Vga as M,Wga as J,Xga as N}from"./cli-1.0.3-pf8dk52a.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
+ export{q as Db,$ as Eb};
@@ -0,0 +1,2 @@
1
+ import{Vqa as H,Xqa as UJ}from"./cli-1.0.3-vzm5gxzn.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 A1,QQ as B1,WQ as C1,ZQ as D1,KQ as E1,FJ as F1};
@@ -0,0 +1,2 @@
1
+ import{Ji as H,Li as C}from"./cli-1.0.3-xw1fyqpe.mjs";import{Mi as k,Ni as y}from"./cli-1.0.3-9xcgbd0g.mjs";import{d3 as X,f3 as Y,k3 as R}from"./cli-1.0.3-xf2r8496.mjs";import{m3 as G,n3 as m}from"./cli-1.0.3-r2amtv3x.mjs";import{Q3 as w,R3 as E,g7 as B,v7 as f}from"./cli-1.0.3-5psnr7wf.mjs";import{Kda as x,gfa as Q,mda as S,ofa as D,pda as j}from"./cli-1.0.3-4m0kzrq4.mjs";import{Lha as V,Mha as b}from"./cli-1.0.3-n99q1npz.mjs";import{gqa as W,yqa as I}from"./cli-1.0.3-zan6y0m1.mjs";import{Xqa as Z}from"./cli-1.0.3-vzm5gxzn.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
2
+ export{i as Gi,A as Hi};
@@ -0,0 +1,2 @@
1
+ import{Xqa as e}from"./cli-1.0.3-vzm5gxzn.mjs";function o(){return!0}var t=()=>{};
2
+ export{o as vT,t as wT};
@@ -0,0 +1 @@
1
+ import{Tga as q,Vga as A,Wga as x,Xga as B}from"./cli-1.0.3-pf8dk52a.mjs";import{yia as J}from"./cli-1.0.3-jmvq43wb.mjs";import{vja as G}from"./cli-1.0.3-5hpdm52h.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,2 @@
1
+ import{Zb as Y}from"./cli-1.0.3-cf280jvq.mjs";import{YV as N,ZV as C}from"./cli-1.0.3-rapppvd0.mjs";import{afa as A,cfa as w}from"./cli-1.0.3-4m0kzrq4.mjs";import{Nha as B,Qha as k}from"./cli-1.0.3-ynf2sj5r.mjs";import{Qia as W,Tia as j,uia as L,yia as E}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as G,vja as K}from"./cli-1.0.3-5hpdm52h.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{v as Tb,q as Ub,p as Vb,g as Wb,d as Xb,R as Yb};
@@ -0,0 +1,2 @@
1
+ import{Af as d,yf as R}from"./cli-1.0.3-4qaa3xp4.mjs";import{H1 as j,K1 as c}from"./cli-1.0.3-17cer107.mjs";import{Qia as K,Tia as D}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as C,vja as h}from"./cli-1.0.3-5hpdm52h.mjs";import{Xqa as I,Yqa as J}from"./cli-1.0.3-vzm5gxzn.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.0.3-4d3vbcf3.mjs"),{getOrganizationUUID:Z}=await import("./client-1.0.3-qkqk8q23.mjs"),{getOauthConfig:V}=await import("./oauth-1.0.3-q2zcdghm.mjs"),{getOAuthHeaders:P}=await import("./api-1.0.3-j9q39zt3.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.0.3-t6x6ycq0.mjs"),{getDefaultBranch:_}=await import("./git-1.0.3-tpyzsser.mjs"),{getMainLoopModel:M}=await import("./model-1.0.3-9b4d36sd.mjs"),{default:T}=await import("./index-1.0.3-293khy5y.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-1.0.3-t6x6ycq0.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.3-4d3vbcf3.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.3-qkqk8q23.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.3-q2zcdghm.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.3-j9q39zt3.mjs"),{default:G}=await import("./index-1.0.3-293khy5y.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.3-4d3vbcf3.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.3-qkqk8q23.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.3-q2zcdghm.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.3-j9q39zt3.mjs"),{default:G}=await import("./index-1.0.3-293khy5y.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-1.0.3-4d3vbcf3.mjs"),{getOrganizationUUID:Y}=await import("./client-1.0.3-qkqk8q23.mjs"),{getOauthConfig:z}=await import("./oauth-1.0.3-q2zcdghm.mjs"),{getOAuthHeaders:G}=await import("./api-1.0.3-j9q39zt3.mjs"),{default:L}=await import("./index-1.0.3-293khy5y.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
+ export{i as pf,r as qf,t as rf,o as sf,p as tf};
@@ -0,0 +1,2 @@
1
+ import{$N as X,VN as O,WN as P,XN as Q,YN as U,Zi as M,_i as W}from"./cli-1.0.3-2wzvc8te.mjs";import{Xqa as V}from"./cli-1.0.3-vzm5gxzn.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
+ export{F as sg,$ as tg};
@@ -0,0 +1,2 @@
1
+ import{sb as d}from"./cli-1.0.3-25zd2770.mjs";import{$B as Hj,$R as A,Dm as E,Ek as $,El as P,Em as e,Fk as n,Fl as R,IQ as Qj,MJ as f,Mk as v,Nk as r,Sj as O,Ss as h,Tu as C,Uj as o,Us as qj,Uu as D,VS as Vj,YD as Jj,ZR as m,Zl as s,Zu as Gj,_B as I,_R as S,bT as F,ju as k,kS as c,km as y,mu as V,pT as Xj,pm as t,rS as p,sS as X,su as zj,tu as w,uu as Bj}from"./cli-1.0.3-2wzvc8te.mjs";import{GU as W,UU as jj}from"./cli-1.0.3-2aw6f2z9.mjs";import{TW as x,WW as Kj}from"./cli-1.0.3-c570dde7.mjs";import{H5 as T,O5 as u}from"./cli-1.0.3-5psnr7wf.mjs";import{$ga as i,_ga as Z}from"./cli-1.0.3-n2h9jvgm.mjs";import{Qia as b,Tia as l}from"./cli-1.0.3-jmvq43wb.mjs";import{Ama as M,Cma as N,Ioa as K,mpa as g,pla as U,sla as _,xla as Y}from"./cli-1.0.3-5kneybr4.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
2
+ export{aj as Fa,Pj as Ga,Rj as Ha,Ej as Ia,gj as Ja,lj as Ka};
@@ -0,0 +1,3 @@
1
+ import{$Z as j,I0 as o,IY as t,RY as p,a0 as s,b0 as F,d0 as V}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as w,P2 as g,Q2 as y}from"./cli-1.0.3-wv4vx65k.mjs";import{Y8 as $,Z8 as a,d9 as _,e9 as n}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tqa as i,Xqa as v}from"./cli-1.0.3-vzm5gxzn.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
+ `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
+ export{Hq as mg,Mq as ng};
@@ -0,0 +1,2 @@
1
+ import{Wqa as x,Xqa as z}from"./cli-1.0.3-vzm5gxzn.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
2
+ export{A as G1,F as H1,G as I1,H as J1,J as K1};
@@ -0,0 +1,4 @@
1
+ import{gU as W,hU as P}from"./cli-1.0.3-8bz64j3f.mjs";import{$$ as y,Kda as S,P9 as M,Q9 as R,Z$ as A,gfa as O,l_ as _,o9 as K,ofa as F,p9 as I,vda as B,wda as G}from"./cli-1.0.3-4m0kzrq4.mjs";import{$ga as x,_ga as D}from"./cli-1.0.3-n2h9jvgm.mjs";import{Lpa as $,Mpa as z}from"./cli-1.0.3-dyh4d1gw.mjs";z();x();S();y();I();_();F();P();var T=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function k(L){return!T.some((U)=>U.test(L))}function d(L,U=20){let H=new Map;for(let V of L)H.set(V,(H.get(V)||0)+1);return Array.from(H.entries()).sort((V,Q)=>Q[1]-V[1]).slice(0,U).map(([V,Q])=>`${Q.toString().padStart(6)} ${V}`).join(`
2
+ `)}function E(L,U){let H=[],V=new Set,Q=new Map;for(let J=1;H.length<U&&J<=U;J++)for(let X of L){if(H.length>=U)break;if(!k(X))continue;let Y=Math.max(X.lastIndexOf("/"),X.lastIndexOf("\\")),Z=Y>=0?X.slice(Y+1):X;if(!Z||V.has(Z))continue;let q=Y>=0?X.slice(0,Y):".";if((Q.get(q)??0)>=J)continue;H.push(Z),V.add(Z),Q.set(q,(Q.get(q)??0)+1)}return H.length>=U?H:[]}async function N(){if(A.platform==="win32")return[];if(!await R())return[];try{let L=await W(),U=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],H=new Map,V=(J)=>{for(let X of J.split(`
3
+ `)){let Y=X.trim();if(Y)H.set(Y,(H.get(Y)??0)+1)}};if(L){let{stdout:J}=await K("git",[...U,`--author=${L}`],{cwd:D()});V(J)}if(H.size<10){let{stdout:J}=await K(M(),U,{cwd:D()});V(J)}let Q=Array.from(H.entries()).sort((J,X)=>X[1]-J[1]).map(([J])=>J);return E(Q,5)}catch(L){return O(L),[]}}var b=604800000;function v(L){let U=B(),H=U.exampleFiles?.length?U.exampleFiles:["<filepath>"],Q=[...["fix lint errors","fix typecheck errors",`how does ${H[0]} work?`,`refactor ${H[Math.floor(H.length/2)]}`,"how do I log an error?",`edit ${H[H.length-1]} to...`,`write a test for ${H[0]}`,"create a util logging.py that..."]];for(let J=Q.length-1;J>0;J--){let X=Math.floor(Math.random()*(J+1));[Q[J],Q[X]]=[Q[X],Q[J]]}return Q.slice(0,L).map((J)=>`Try "${J}"`)}var p=$(()=>{return v(1)[0]??'Try "fix lint errors"'}),c=$((L)=>{return v(L)}),r=$(async()=>{let L=B(),U=Date.now(),H=L.exampleFilesGeneratedAt??0;if(U-H>b)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((V)=>{if(V.length)G((Q)=>({...Q,exampleFiles:V,exampleFilesGeneratedAt:Date.now()}))})});
4
+ export{d as Ma,E as Na,p as Oa,c as Pa,r as Qa};
@@ -0,0 +1,2 @@
1
+ import{Lpa as M,Mpa as Y}from"./cli-1.0.3-dyh4d1gw.mjs";import{Xqa as W}from"./cli-1.0.3-vzm5gxzn.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
+ export{$ as wja,N as xja,X as yja,_ as zja,j as Aja,U as Bja,I as Cja,S as Dja,T as Eja,c as Fja,L as Gja,w as Hja,z as Ija,O as Jja,x as Kja,k as Lja};
@@ -0,0 +1,4 @@
1
+ import{Sqa as Z}from"./cli-1.0.3-k99msp02.mjs";import{Vqa as Y,Yqa as O}from"./cli-1.0.3-vzm5gxzn.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
2
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
4
+ export{ye as Lqa};
@@ -0,0 +1,2 @@
1
+ import{Qia as Q,Tia as $}from"./cli-1.0.3-jmvq43wb.mjs";import{qja as K,vja as Z}from"./cli-1.0.3-5hpdm52h.mjs";import{Lja as Y,yja as J}from"./cli-1.0.3-1f00zm8y.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
+ export{T as aa,w as ba,y as ca};