@claudiolabs/claudin 1.1.16 → 1.1.17

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 (909) hide show
  1. package/dist/chunks/AgentTool-1.1.17-c0szwp8n.mjs +1 -0
  2. package/dist/chunks/App-1.1.17-02e9gv69.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.17-jxfbym1r.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.17-6yp2beyh.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.17-w9xsetq9.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.17-84z0pr68.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.17-q46af0nw.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.17-ew4a8tt8.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.17-rmqcdxg8.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.17-hg2xast7.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.17-9bpc3q6s.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.17-k5e62crs.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.17-dsnkhped.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.17-kvhxeef5.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.17-a4rrxzp6.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.17-4rfmem0t.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.17-e9mp9qde.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.17-4wy9nbxj.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.17-yqrt4v79.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.17-3sr5b9tz.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.17-dkwbndzq.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.17-f8qa4fjm.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.17-21kb50xj.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.17-0kmr0pvg.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.17-8beq3avk.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.17-z786dzeg.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.17-x2aq5sx0.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.17-2s13eqzw.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.17-ct1sy6xb.mjs +1 -0
  30. package/dist/chunks/agents-1.1.17-550b7p8x.mjs +110 -0
  31. package/dist/chunks/agents-1.1.17-r5c8tpkr.mjs +3 -0
  32. package/dist/chunks/api-1.1.17-75x5tmes.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.17-79trcjfv.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.17-dbbtqfan.mjs +1 -0
  35. package/dist/chunks/auth-1.1.17-8f3fach8.mjs +1 -0
  36. package/dist/chunks/auth-1.1.17-m8h26316.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.17-qc59qrkd.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.17-eget172p.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.17-hn3tt3zt.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.17-v11kpga8.mjs +1 -0
  41. package/dist/chunks/branch-1.1.17-w3zktkvs.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.17-x5r3w789.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.17-kce97mnv.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.17-75j54src.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.17-4mqk6cqv.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.17-tnq9hpp2.mjs +1 -0
  47. package/dist/chunks/btw-1.1.17-45g5jhjr.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.17-axejc0a1.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.17-x0n3bj9h.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.17-54ab6ndm.mjs +4 -0
  51. package/dist/chunks/caches-1.1.17-tqxvw7fb.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.17-rrzswj35.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.17-y5mkq5gq.mjs +1 -0
  54. package/dist/chunks/clear-1.1.17-6eyrsqrw.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.17-22ezdweq.mjs +1 -0
  56. package/dist/chunks/cli-1.1.17-0511dy9y.mjs +2 -0
  57. package/dist/chunks/cli-1.1.17-06mdd80y.mjs +2 -0
  58. package/dist/chunks/cli-1.1.17-09c1vkqx.mjs +2 -0
  59. package/dist/chunks/cli-1.1.17-0d7fthp5.mjs +58 -0
  60. package/dist/chunks/cli-1.1.17-0p0ak3zs.mjs +2 -0
  61. package/dist/chunks/cli-1.1.17-18k7783y.mjs +20 -0
  62. package/dist/chunks/cli-1.1.17-1fvh83yv.mjs +7 -0
  63. package/dist/chunks/cli-1.1.17-1nxc4dk2.mjs +12 -0
  64. package/dist/chunks/cli-1.1.17-1v8knfbw.mjs +2 -0
  65. package/dist/chunks/cli-1.1.17-1w1dgmsf.mjs +5 -0
  66. package/dist/chunks/cli-1.1.17-2b4keqra.mjs +4 -0
  67. package/dist/chunks/cli-1.1.17-2bc3gqw5.mjs +6 -0
  68. package/dist/chunks/cli-1.1.17-2jv9761d.mjs +2 -0
  69. package/dist/chunks/cli-1.1.17-2pvpn49s.mjs +3 -0
  70. package/dist/chunks/cli-1.1.17-2spbpwrx.mjs +2 -0
  71. package/dist/chunks/cli-1.1.17-2szs1chw.mjs +2 -0
  72. package/dist/chunks/cli-1.1.17-2z1g2hjb.mjs +4 -0
  73. package/dist/chunks/cli-1.1.17-3bkjnp3z.mjs +25 -0
  74. package/dist/chunks/cli-1.1.17-3jqe0rga.mjs +3 -0
  75. package/dist/chunks/cli-1.1.17-3mtgr9ch.mjs +3 -0
  76. package/dist/chunks/cli-1.1.17-3r1p3ddm.mjs +2 -0
  77. package/dist/chunks/cli-1.1.17-3sy6b0hb.mjs +4 -0
  78. package/dist/chunks/cli-1.1.17-3v5m3zqf.mjs +2 -0
  79. package/dist/chunks/cli-1.1.17-3z8hnad1.mjs +2 -0
  80. package/dist/chunks/cli-1.1.17-40gj2tc0.mjs +2 -0
  81. package/dist/chunks/cli-1.1.17-40w0wha0.mjs +2 -0
  82. package/dist/chunks/cli-1.1.17-44fk8h9v.mjs +6 -0
  83. package/dist/chunks/cli-1.1.17-4cxy3tsf.mjs +2 -0
  84. package/dist/chunks/cli-1.1.17-4egkrc4y.mjs +2 -0
  85. package/dist/chunks/cli-1.1.17-4yvz970v.mjs +2 -0
  86. package/dist/chunks/cli-1.1.17-545688c0.mjs +2 -0
  87. package/dist/chunks/cli-1.1.17-5bbnw0z1.mjs +2 -0
  88. package/dist/chunks/cli-1.1.17-5ckk64dj.mjs +3 -0
  89. package/dist/chunks/cli-1.1.17-5eapymd7.mjs +25 -0
  90. package/dist/chunks/cli-1.1.17-5h6k67gj.mjs +39 -0
  91. package/dist/chunks/cli-1.1.17-5rfxkg0q.mjs +2 -0
  92. package/dist/chunks/cli-1.1.17-5ytk3hr5.mjs +2 -0
  93. package/dist/chunks/cli-1.1.17-60mezybh.mjs +2 -0
  94. package/dist/chunks/cli-1.1.17-62yjss1h.mjs +2 -0
  95. package/dist/chunks/cli-1.1.17-66c4sw6g.mjs +2 -0
  96. package/dist/chunks/cli-1.1.17-6e7rvf1a.mjs +2 -0
  97. package/dist/chunks/cli-1.1.17-6ee0nqae.mjs +2 -0
  98. package/dist/chunks/cli-1.1.17-6gfvdt7y.mjs +8 -0
  99. package/dist/chunks/cli-1.1.17-6jzph4h7.mjs +3 -0
  100. package/dist/chunks/cli-1.1.17-6rx20w90.mjs +2 -0
  101. package/dist/chunks/cli-1.1.17-6wdwjtdj.mjs +7 -0
  102. package/dist/chunks/cli-1.1.17-6xnsg3vj.mjs +2 -0
  103. package/dist/chunks/cli-1.1.17-6yqbrqsj.mjs +4 -0
  104. package/dist/chunks/cli-1.1.17-787fk73v.mjs +3 -0
  105. package/dist/chunks/cli-1.1.17-7n4s8n50.mjs +6 -0
  106. package/dist/chunks/cli-1.1.17-83bggr64.mjs +3 -0
  107. package/dist/chunks/cli-1.1.17-848t1b19.mjs +2 -0
  108. package/dist/chunks/cli-1.1.17-85fga8dq.mjs +2 -0
  109. package/dist/chunks/cli-1.1.17-85mcc9n7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.17-86a50dqm.mjs +2 -0
  111. package/dist/chunks/cli-1.1.17-8ae45qsd.mjs +6 -0
  112. package/dist/chunks/cli-1.1.17-8pkspqzx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.17-8yryp8zt.mjs +2 -0
  114. package/dist/chunks/cli-1.1.17-91shm790.mjs +2 -0
  115. package/dist/chunks/cli-1.1.17-937ws80k.mjs +2 -0
  116. package/dist/chunks/cli-1.1.17-95kegjhq.mjs +2 -0
  117. package/dist/chunks/cli-1.1.17-9bq6vj3x.mjs +2 -0
  118. package/dist/chunks/cli-1.1.17-9dv8cb2e.mjs +2 -0
  119. package/dist/chunks/cli-1.1.17-9nvn8chy.mjs +21 -0
  120. package/dist/chunks/cli-1.1.17-9pb21bzq.mjs +2 -0
  121. package/dist/chunks/cli-1.1.17-9pv5wym1.mjs +2 -0
  122. package/dist/chunks/cli-1.1.17-9q30wadt.mjs +17 -0
  123. package/dist/chunks/cli-1.1.17-9rtpxyk6.mjs +2 -0
  124. package/dist/chunks/cli-1.1.17-9wgw338h.mjs +2 -0
  125. package/dist/chunks/cli-1.1.17-adz6qec3.mjs +2 -0
  126. package/dist/chunks/cli-1.1.17-amta49a1.mjs +2 -0
  127. package/dist/chunks/cli-1.1.17-amvnbvkb.mjs +66 -0
  128. package/dist/chunks/cli-1.1.17-arwr4e36.mjs +2 -0
  129. package/dist/chunks/cli-1.1.17-av45k1a0.mjs +15 -0
  130. package/dist/chunks/cli-1.1.17-avc9ck1v.mjs +2 -0
  131. package/dist/chunks/cli-1.1.17-b1g8n716.mjs +2 -0
  132. package/dist/chunks/cli-1.1.17-b5btm8nn.mjs +5 -0
  133. package/dist/chunks/cli-1.1.17-b6178p3e.mjs +2 -0
  134. package/dist/chunks/cli-1.1.17-bg6qdrwm.mjs +2 -0
  135. package/dist/chunks/cli-1.1.17-bj81ampw.mjs +3 -0
  136. package/dist/chunks/cli-1.1.17-brvf3613.mjs +3 -0
  137. package/dist/chunks/cli-1.1.17-bw27qnmm.mjs +2 -0
  138. package/dist/chunks/cli-1.1.17-bw4gf7se.mjs +2 -0
  139. package/dist/chunks/cli-1.1.17-bzw849yw.mjs +2 -0
  140. package/dist/chunks/cli-1.1.17-c4wdrmzx.mjs +3 -0
  141. package/dist/chunks/cli-1.1.17-c858dzpc.mjs +2 -0
  142. package/dist/chunks/cli-1.1.17-cddbmrdk.mjs +2 -0
  143. package/dist/chunks/cli-1.1.17-cek6be4z.mjs +15 -0
  144. package/dist/chunks/cli-1.1.17-chsbt03k.mjs +2 -0
  145. package/dist/chunks/cli-1.1.17-cnp784zh.mjs +2 -0
  146. package/dist/chunks/cli-1.1.17-ct0r352g.mjs +2 -0
  147. package/dist/chunks/cli-1.1.17-cvtpmgr1.mjs +16 -0
  148. package/dist/chunks/cli-1.1.17-d24yw7cv.mjs +50 -0
  149. package/dist/chunks/cli-1.1.17-d8zh7smn.mjs +3 -0
  150. package/dist/chunks/cli-1.1.17-d9y6k8vc.mjs +2 -0
  151. package/dist/chunks/cli-1.1.17-db7epgkw.mjs +2 -0
  152. package/dist/chunks/cli-1.1.17-dhbj7k9k.mjs +2 -0
  153. package/dist/chunks/cli-1.1.17-dp5q3hgg.mjs +2 -0
  154. package/dist/chunks/cli-1.1.17-e8bd5mhc.mjs +2 -0
  155. package/dist/chunks/cli-1.1.17-egp0jwn1.mjs +6 -0
  156. package/dist/chunks/cli-1.1.17-ete62cd3.mjs +2 -0
  157. package/dist/chunks/cli-1.1.17-evytxpaj.mjs +4 -0
  158. package/dist/chunks/cli-1.1.17-f0f3ww1e.mjs +2 -0
  159. package/dist/chunks/cli-1.1.17-f29ngxbd.mjs +2 -0
  160. package/dist/chunks/cli-1.1.17-f4eghwer.mjs +2 -0
  161. package/dist/chunks/cli-1.1.17-fc8raa73.mjs +2 -0
  162. package/dist/chunks/cli-1.1.17-fc9ah2rx.mjs +2 -0
  163. package/dist/chunks/cli-1.1.17-fn3aawry.mjs +2 -0
  164. package/dist/chunks/cli-1.1.17-fpt9fhj3.mjs +2 -0
  165. package/dist/chunks/cli-1.1.17-frwjbpkz.mjs +12 -0
  166. package/dist/chunks/cli-1.1.17-fzsavwtg.mjs +133 -0
  167. package/dist/chunks/cli-1.1.17-g02c88z9.mjs +2 -0
  168. package/dist/chunks/cli-1.1.17-g0r7knn3.mjs +9 -0
  169. package/dist/chunks/cli-1.1.17-g8x1ae0n.mjs +2 -0
  170. package/dist/chunks/cli-1.1.17-gbx2evhw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.17-gjjv9pf2.mjs +2 -0
  172. package/dist/chunks/cli-1.1.17-grwds6h6.mjs +2 -0
  173. package/dist/chunks/cli-1.1.17-gy86radb.mjs +6 -0
  174. package/dist/chunks/cli-1.1.17-gz7gazer.mjs +2 -0
  175. package/dist/chunks/cli-1.1.17-h68j8yr4.mjs +2 -0
  176. package/dist/chunks/cli-1.1.17-h899gx3g.mjs +59 -0
  177. package/dist/chunks/cli-1.1.17-hk50rvfx.mjs +2 -0
  178. package/dist/chunks/cli-1.1.17-hv7vtr92.mjs +2 -0
  179. package/dist/chunks/cli-1.1.17-j0rsgbr3.mjs +2 -0
  180. package/dist/chunks/cli-1.1.17-j7w7vk9q.mjs +4 -0
  181. package/dist/chunks/cli-1.1.17-ja7d18ym.mjs +2 -0
  182. package/dist/chunks/cli-1.1.17-jbg9ze8v.mjs +26 -0
  183. package/dist/chunks/cli-1.1.17-jbmze4s1.mjs +3 -0
  184. package/dist/chunks/cli-1.1.17-jd6hwz1t.mjs +18 -0
  185. package/dist/chunks/cli-1.1.17-jfrmnvzh.mjs +42 -0
  186. package/dist/chunks/cli-1.1.17-jmhry9pe.mjs +2 -0
  187. package/dist/chunks/cli-1.1.17-jyzpxwq4.mjs +2 -0
  188. package/dist/chunks/cli-1.1.17-k2ygh79g.mjs +24 -0
  189. package/dist/chunks/cli-1.1.17-k4cv7tcx.mjs +2 -0
  190. package/dist/chunks/cli-1.1.17-k6xg5a3t.mjs +2 -0
  191. package/dist/chunks/cli-1.1.17-kasvn1wv.mjs +2 -0
  192. package/dist/chunks/cli-1.1.17-kdycyp8n.mjs +4 -0
  193. package/dist/chunks/cli-1.1.17-kjk1ddpc.mjs +2 -0
  194. package/dist/chunks/cli-1.1.17-kk19mmhc.mjs +17 -0
  195. package/dist/chunks/cli-1.1.17-krb62aen.mjs +2 -0
  196. package/dist/chunks/cli-1.1.17-mc6hgzsa.mjs +4 -0
  197. package/dist/chunks/cli-1.1.17-mvgrc9gx.mjs +2 -0
  198. package/dist/chunks/cli-1.1.17-n2dct122.mjs +2 -0
  199. package/dist/chunks/cli-1.1.17-n4xn5c5m.mjs +34 -0
  200. package/dist/chunks/cli-1.1.17-nes161na.mjs +2 -0
  201. package/dist/chunks/cli-1.1.17-nhn5qa9g.mjs +45 -0
  202. package/dist/chunks/cli-1.1.17-nr1fn5ws.mjs +2 -0
  203. package/dist/chunks/cli-1.1.17-p7mq618q.mjs +2 -0
  204. package/dist/chunks/cli-1.1.17-phaqkjy5.mjs +3 -0
  205. package/dist/chunks/cli-1.1.17-pmner0m4.mjs +206 -0
  206. package/dist/chunks/cli-1.1.17-q6fve29k.mjs +2 -0
  207. package/dist/chunks/cli-1.1.17-q7f9amqd.mjs +2 -0
  208. package/dist/chunks/cli-1.1.17-qr727b7j.mjs +18 -0
  209. package/dist/chunks/cli-1.1.17-qwkbwe37.mjs +2 -0
  210. package/dist/chunks/cli-1.1.17-r47egjp3.mjs +2 -0
  211. package/dist/chunks/cli-1.1.17-rak849bn.mjs +3 -0
  212. package/dist/chunks/cli-1.1.17-rgzfxape.mjs +2 -0
  213. package/dist/chunks/cli-1.1.17-rpac3qey.mjs +2 -0
  214. package/dist/chunks/cli-1.1.17-rv9n4f0j.mjs +2 -0
  215. package/dist/chunks/cli-1.1.17-ry9v8zr7.mjs +2 -0
  216. package/dist/chunks/cli-1.1.17-s0w3hc9t.mjs +4 -0
  217. package/dist/chunks/cli-1.1.17-s6rzrasx.mjs +2 -0
  218. package/dist/chunks/cli-1.1.17-s9617g9k.mjs +2 -0
  219. package/dist/chunks/cli-1.1.17-sa6xwtgz.mjs +1 -0
  220. package/dist/chunks/cli-1.1.17-sekbxc10.mjs +24 -0
  221. package/dist/chunks/cli-1.1.17-sf4te5vd.mjs +2 -0
  222. package/dist/chunks/cli-1.1.17-sh93pnws.mjs +2 -0
  223. package/dist/chunks/cli-1.1.17-spygywkr.mjs +2 -0
  224. package/dist/chunks/cli-1.1.17-sqnbm5cb.mjs +2 -0
  225. package/dist/chunks/cli-1.1.17-ss5f6ezq.mjs +2 -0
  226. package/dist/chunks/cli-1.1.17-ssjqqbnv.mjs +2 -0
  227. package/dist/chunks/cli-1.1.17-sx4yg7br.mjs +2 -0
  228. package/dist/chunks/cli-1.1.17-sxvjn3ne.mjs +2 -0
  229. package/dist/chunks/cli-1.1.17-t059h154.mjs +2 -0
  230. package/dist/chunks/cli-1.1.17-tcxq0ah8.mjs +2 -0
  231. package/dist/chunks/cli-1.1.17-tjtarhk9.mjs +5408 -0
  232. package/dist/chunks/cli-1.1.17-tkz7x0rj.mjs +2 -0
  233. package/dist/chunks/cli-1.1.17-v5nv0awt.mjs +2 -0
  234. package/dist/chunks/cli-1.1.17-vecw37vp.mjs +2 -0
  235. package/dist/chunks/cli-1.1.17-vewrwcsz.mjs +2 -0
  236. package/dist/chunks/cli-1.1.17-vj9h10jw.mjs +2 -0
  237. package/dist/chunks/cli-1.1.17-vpgxna04.mjs +2 -0
  238. package/dist/chunks/cli-1.1.17-vya6g1gj.mjs +2 -0
  239. package/dist/chunks/cli-1.1.17-vzhs0tcz.mjs +2 -0
  240. package/dist/chunks/cli-1.1.17-w70hp8av.mjs +2 -0
  241. package/dist/chunks/cli-1.1.17-w8ycz611.mjs +4 -0
  242. package/dist/chunks/cli-1.1.17-w9jr2baa.mjs +2 -0
  243. package/dist/chunks/cli-1.1.17-wmy7x7p1.mjs +3 -0
  244. package/dist/chunks/cli-1.1.17-wpw25vs3.mjs +2 -0
  245. package/dist/chunks/cli-1.1.17-wraax29e.mjs +2 -0
  246. package/dist/chunks/cli-1.1.17-xmwmqrg5.mjs +2 -0
  247. package/dist/chunks/cli-1.1.17-xpxk1a24.mjs +2 -0
  248. package/dist/chunks/cli-1.1.17-xqsq5e1g.mjs +2 -0
  249. package/dist/chunks/cli-1.1.17-xr6d85ak.mjs +24 -0
  250. package/dist/chunks/cli-1.1.17-xyvhfz5c.mjs +133 -0
  251. package/dist/chunks/cli-1.1.17-y590316j.mjs +2 -0
  252. package/dist/chunks/cli-1.1.17-y9v9t43m.mjs +2 -0
  253. package/dist/chunks/cli-1.1.17-yc5h2t8c.mjs +2 -0
  254. package/dist/chunks/cli-1.1.17-yexr9jg1.mjs +2 -0
  255. package/dist/chunks/cli-1.1.17-ymeaeqf8.mjs +15 -0
  256. package/dist/chunks/cli-1.1.17-ys4xrvjv.mjs +2 -0
  257. package/dist/chunks/cli-1.1.17-yzm3tm0n.mjs +2 -0
  258. package/dist/chunks/cli-1.1.17-z3nzbxwq.mjs +24 -0
  259. package/dist/chunks/cli-1.1.17-z8hph2r6.mjs +2 -0
  260. package/dist/chunks/cli-1.1.17-zeqbjpg8.mjs +2 -0
  261. package/dist/chunks/cli-1.1.17-zhbqhsnh.mjs +2 -0
  262. package/dist/chunks/cli-1.1.17-znjf3r1w.mjs +2 -0
  263. package/dist/chunks/cli-1.1.17-zs8ffrtz.mjs +9 -0
  264. package/dist/chunks/cli-1.1.17-zsygz35e.mjs +2 -0
  265. package/dist/chunks/client-1.1.17-nagqj7bf.mjs +1 -0
  266. package/dist/chunks/color-1.1.17-p6y05fhc.mjs +1 -0
  267. package/dist/chunks/compact-1.1.17-pzzrynbb.mjs +3 -0
  268. package/dist/chunks/config-1.1.17-m2ajzt0e.mjs +1 -0
  269. package/dist/chunks/config-1.1.17-wmdy8158.mjs +1 -0
  270. package/dist/chunks/constants-1.1.17-v8sj602z.mjs +1 -0
  271. package/dist/chunks/context-1.1.17-7e2bk0as.mjs +1 -0
  272. package/dist/chunks/context-noninteractive-1.1.17-e84cts6x.mjs +1 -0
  273. package/dist/chunks/conversation-1.1.17-9xvxk3r2.mjs +1 -0
  274. package/dist/chunks/copilotHeaders-1.1.17-fqvd03w0.mjs +1 -0
  275. package/dist/chunks/copy-1.1.17-easn9kr0.mjs +9 -0
  276. package/dist/chunks/cost-1.1.17-nxtewzxf.mjs +1 -0
  277. package/dist/chunks/createSSHSession-1.1.17-6ewgn22a.mjs +1 -0
  278. package/dist/chunks/createSession-1.1.17-86r1zzgv.mjs +1 -0
  279. package/dist/chunks/debug-1.1.17-z47bgb2r.mjs +1 -0
  280. package/dist/chunks/defaultActionDeps-1.1.17-jf0axhv5.mjs +1534 -0
  281. package/dist/chunks/desktop-1.1.17-a995qrj4.mjs +1 -0
  282. package/dist/chunks/detectRepository-1.1.17-a8w7dp77.mjs +1 -0
  283. package/dist/chunks/detection-1.1.17-rm57w2ve.mjs +1 -0
  284. package/dist/chunks/diff-1.1.17-nhrc58mf.mjs +1 -0
  285. package/dist/chunks/doctor-1.1.17-fbcrp14n.mjs +1 -0
  286. package/dist/chunks/doctorDiagnostic-1.1.17-e8d49da2.mjs +1 -0
  287. package/dist/chunks/earlyInput-1.1.17-tb2wa4gd.mjs +1 -0
  288. package/dist/chunks/effort-1.1.17-exyt2hn8.mjs +13 -0
  289. package/dist/chunks/engine-1.1.17-amrae3h8.mjs +1 -0
  290. package/dist/chunks/envLessBridgeConfig-1.1.17-cxcxqyr2.mjs +1 -0
  291. package/dist/chunks/envUtils-1.1.17-74s3e3r7.mjs +1 -0
  292. package/dist/chunks/environmentSelection-1.1.17-r6fm53e4.mjs +1 -0
  293. package/dist/chunks/environments-1.1.17-eefk71xc.mjs +1 -0
  294. package/dist/chunks/errors-1.1.17-f3hxdv36.mjs +1 -0
  295. package/dist/chunks/exampleCommands-1.1.17-fq7g2dra.mjs +1 -0
  296. package/dist/chunks/execFileNoThrow-1.1.17-b5j6ewkj.mjs +1 -0
  297. package/dist/chunks/exit-1.1.17-69eys61s.mjs +1 -0
  298. package/dist/chunks/explorer-1.1.17-9rnyanfh.mjs +1 -0
  299. package/dist/chunks/export-1.1.17-ftdkrgt6.mjs +2 -0
  300. package/dist/chunks/extra-usage-1.1.17-4d5r749p.mjs +1 -0
  301. package/dist/chunks/extra-usage-noninteractive-1.1.17-pfnqg70z.mjs +1 -0
  302. package/dist/chunks/fast-1.1.17-6fhr21cx.mjs +1 -0
  303. package/dist/chunks/feedback-1.1.17-xsv4a0hk.mjs +14 -0
  304. package/dist/chunks/firstPartyEventLogger-1.1.17-ysw58c2m.mjs +1 -0
  305. package/dist/chunks/git-1.1.17-1t4mvmwy.mjs +1 -0
  306. package/dist/chunks/githubModelsCredentials-1.1.17-em3pctn6.mjs +1 -0
  307. package/dist/chunks/goal-1.1.17-b6r6rv34.mjs +4 -0
  308. package/dist/chunks/growthbook-1.1.17-d41p6v8e.mjs +1 -0
  309. package/dist/chunks/headless-1.1.17-3gds2arn.mjs +2 -0
  310. package/dist/chunks/heapdump-1.1.17-42928w6t.mjs +6 -0
  311. package/dist/chunks/help-1.1.17-1ex6d9m1.mjs +1 -0
  312. package/dist/chunks/hookChains-1.1.17-4trtr6n3.mjs +3 -0
  313. package/dist/chunks/hooks-1.1.17-brmzj93f.mjs +1 -0
  314. package/dist/chunks/hooks-1.1.17-tmmp968z.mjs +79 -0
  315. package/dist/chunks/ide-1.1.17-7bswgmqh.mjs +3 -0
  316. package/dist/chunks/image-processor-napi-1.1.17-f4q4ze0f.mjs +1 -0
  317. package/dist/chunks/inboundAttachments-1.1.17-bqseg6s7.mjs +1 -0
  318. package/dist/chunks/index-1.1.17-1cxekw2k.mjs +2 -0
  319. package/dist/chunks/index-1.1.17-3bhv85t6.mjs +2 -0
  320. package/dist/chunks/index-1.1.17-3kw30gq5.mjs +1 -0
  321. package/dist/chunks/index-1.1.17-41dwzfym.mjs +1 -0
  322. package/dist/chunks/index-1.1.17-58sa6nbn.mjs +1 -0
  323. package/dist/chunks/index-1.1.17-5vmgm515.mjs +9 -0
  324. package/dist/chunks/index-1.1.17-72ghmm5v.mjs +1 -0
  325. package/dist/chunks/index-1.1.17-9zas5tn3.mjs +23 -0
  326. package/dist/chunks/index-1.1.17-c7n4hj5n.mjs +1 -0
  327. package/dist/chunks/index-1.1.17-dg0mbe1h.mjs +1 -0
  328. package/dist/chunks/index-1.1.17-dzt8xwy0.mjs +1 -0
  329. package/dist/chunks/index-1.1.17-gwp2t0ev.mjs +5 -0
  330. package/dist/chunks/index-1.1.17-j516ern1.mjs +1 -0
  331. package/dist/chunks/index-1.1.17-j5qnmjd0.mjs +30 -0
  332. package/dist/chunks/index-1.1.17-m909k4gz.mjs +1 -0
  333. package/dist/chunks/index-1.1.17-mvtaa82m.mjs +1 -0
  334. package/dist/chunks/index-1.1.17-nntqe0vr.mjs +1 -0
  335. package/dist/chunks/index-1.1.17-nq9tejwj.mjs +1 -0
  336. package/dist/chunks/index-1.1.17-pfzch1bc.mjs +1 -0
  337. package/dist/chunks/index-1.1.17-q2g4m637.mjs +9 -0
  338. package/dist/chunks/index-1.1.17-s5nfh7xr.mjs +1 -0
  339. package/dist/chunks/index-1.1.17-tq1x9mdy.mjs +1 -0
  340. package/dist/chunks/index-1.1.17-vjbktr0m.mjs +1 -0
  341. package/dist/chunks/init-1.1.17-ezhe261a.mjs +1 -0
  342. package/dist/chunks/initReplBridge-1.1.17-bsr4ggsa.mjs +1 -0
  343. package/dist/chunks/ink-1.1.17-hnhzzxr4.mjs +1 -0
  344. package/dist/chunks/insights-1.1.17-8rkjk3qx.mjs +870 -0
  345. package/dist/chunks/install-1.1.17-bveeekwq.mjs +1 -0
  346. package/dist/chunks/install-github-app-1.1.17-s7qpq92h.mjs +149 -0
  347. package/dist/chunks/install-slack-app-1.1.17-6p1tq8es.mjs +1 -0
  348. package/dist/chunks/instrumentation-1.1.17-2n85eb8r.mjs +1 -0
  349. package/dist/chunks/interactiveHelpers-1.1.17-2qdgnemg.mjs +1 -0
  350. package/dist/chunks/keybindings-1.1.17-e93j288w.mjs +2 -0
  351. package/dist/chunks/knowledge-1.1.17-wzqw3mat.mjs +2 -0
  352. package/dist/chunks/latestVersionCache-1.1.17-kpebzzy5.mjs +1 -0
  353. package/dist/chunks/loadAgentsDir-1.1.17-rwrehzjk.mjs +1 -0
  354. package/dist/chunks/loadPluginHooks-1.1.17-z6xentgs.mjs +1 -0
  355. package/dist/chunks/log-1.1.17-teh0b8bj.mjs +1 -0
  356. package/dist/chunks/main-1.1.17-4drs7spn.mjs +1 -0
  357. package/dist/chunks/managedEnv-1.1.17-01msjcq4.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.17-c212g273.mjs +17 -0
  359. package/dist/chunks/mcp-1.1.17-fmad2143.mjs +4 -0
  360. package/dist/chunks/mcp-1.1.17-vkg3yyj4.mjs +1 -0
  361. package/dist/chunks/mcpb-1.1.17-2qj85kf9.mjs +1 -0
  362. package/dist/chunks/memory-1.1.17-xxzfp6m3.mjs +72 -0
  363. package/dist/chunks/model-1.1.17-6wangfaf.mjs +1 -0
  364. package/dist/chunks/model-1.1.17-phx3mpre.mjs +2 -0
  365. package/dist/chunks/node-1.1.17-vwaj3hha.mjs +12 -0
  366. package/dist/chunks/oauth-1.1.17-2h7zc57g.mjs +1 -0
  367. package/dist/chunks/openaiShim-1.1.17-x7d7rtnw.mjs +14 -0
  368. package/dist/chunks/output-style-1.1.17-4dwyxd9d.mjs +1 -0
  369. package/dist/chunks/package-KQCMZM5L-1.1.17-hz04t8ab.mjs +1 -0
  370. package/dist/chunks/parseConnectUrl-1.1.17-47ed65x0.mjs +1 -0
  371. package/dist/chunks/parser-1.1.17-tsm4t6zj.mjs +1 -0
  372. package/dist/chunks/passes-1.1.17-kvh566r0.mjs +1 -0
  373. package/dist/chunks/permissions-1.1.17-2s1jj12g.mjs +1 -0
  374. package/dist/chunks/permissions-1.1.17-b96tjxsb.mjs +3 -0
  375. package/dist/chunks/plan-1.1.17-fphg1taz.mjs +1 -0
  376. package/dist/chunks/plist-1.1.17-be3b59s7.mjs +1 -0
  377. package/dist/chunks/plugin-1.1.17-wjwcjxt0.mjs +29 -0
  378. package/dist/chunks/pluginStartupCheck-1.1.17-y7rehbdx.mjs +1 -0
  379. package/dist/chunks/plugins-1.1.17-pvbs8x2d.mjs +9 -0
  380. package/dist/chunks/preActionHook-1.1.17-sz5peb61.mjs +2 -0
  381. package/dist/chunks/print-1.1.17-2tqpqffd.mjs +57 -0
  382. package/dist/chunks/process-1.1.17-edae57bn.mjs +1 -0
  383. package/dist/chunks/processBashCommand-1.1.17-8x8av07q.mjs +1 -0
  384. package/dist/chunks/processSlashCommand-1.1.17-p2hph3mq.mjs +9 -0
  385. package/dist/chunks/prompt-1.1.17-33ecsyvx.mjs +1 -0
  386. package/dist/chunks/prompt-1.1.17-pcxqswhq.mjs +1 -0
  387. package/dist/chunks/prompts-1.1.17-9s5a4vj5.mjs +1 -0
  388. package/dist/chunks/protocolHandler-1.1.17-eypg73tv.mjs +13 -0
  389. package/dist/chunks/provider-1.1.17-cq38y5y0.mjs +2 -0
  390. package/dist/chunks/providerProfiles-1.1.17-3mapa580.mjs +1 -0
  391. package/dist/chunks/providerValidation-1.1.17-v4be9pkn.mjs +6 -0
  392. package/dist/chunks/rate-limit-options-1.1.17-7akz78zn.mjs +1 -0
  393. package/dist/chunks/registerSubcommands-1.1.17-d8515h81.mjs +26 -0
  394. package/dist/chunks/registry-1.1.17-vmxj31fp.mjs +1 -0
  395. package/dist/chunks/release-notes-1.1.17-qfx2ydx0.mjs +5 -0
  396. package/dist/chunks/reload-plugins-1.1.17-bxmeccet.mjs +2 -0
  397. package/dist/chunks/remote-env-1.1.17-5zk7dhta.mjs +1 -0
  398. package/dist/chunks/remoteBridgeCore-1.1.17-dyyd9gpp.mjs +1 -0
  399. package/dist/chunks/remoteSession-1.1.17-2w7c374e.mjs +1 -0
  400. package/dist/chunks/rename-1.1.17-m9npwq9e.mjs +1 -0
  401. package/dist/chunks/replBridgeHandle-1.1.17-f73jbyc4.mjs +1 -0
  402. package/dist/chunks/replLauncher-1.1.17-89bw7egj.mjs +1 -0
  403. package/dist/chunks/resume-1.1.17-zcepac5h.mjs +2 -0
  404. package/dist/chunks/rewind-1.1.17-sz9gnvjb.mjs +1 -0
  405. package/dist/chunks/rootOptions-1.1.17-cz7wggw6.mjs +1 -0
  406. package/dist/chunks/runWorkflowHeadless-1.1.17-mv4m2dgh.mjs +10 -0
  407. package/dist/chunks/sandbox-adapter-1.1.17-mzhxrhy6.mjs +1 -0
  408. package/dist/chunks/sandbox-toggle-1.1.17-0055tx31.mjs +1 -0
  409. package/dist/chunks/session-1.1.17-58155tdb.mjs +2 -0
  410. package/dist/chunks/sessionDiscovery-1.1.17-jesa43e4.mjs +1 -0
  411. package/dist/chunks/sessionFileAccessHooks-1.1.17-v63nh4eq.mjs +1 -0
  412. package/dist/chunks/sessionStorage-1.1.17-db6eb6a0.mjs +1 -0
  413. package/dist/chunks/settings-1.1.17-r420yrj6.mjs +1 -0
  414. package/dist/chunks/setup-1.1.17-2c169kta.mjs +12 -0
  415. package/dist/chunks/sinks-1.1.17-qy1xy52h.mjs +1 -0
  416. package/dist/chunks/skills-1.1.17-179vy7j6.mjs +1 -0
  417. package/dist/chunks/startupProfiler-1.1.17-2jre48fe.mjs +1 -0
  418. package/dist/chunks/startupUpdateCheck-1.1.17-18vwb94e.mjs +1 -0
  419. package/dist/chunks/state-1.1.17-jj648yt9.mjs +1 -0
  420. package/dist/chunks/stats-1.1.17-87688vm6.mjs +6 -0
  421. package/dist/chunks/status-1.1.17-qfgx5stw.mjs +1 -0
  422. package/dist/chunks/stickers-1.1.17-6qwzrjbk.mjs +1 -0
  423. package/dist/chunks/subprocessEnv-1.1.17-agk55s1k.mjs +1 -0
  424. package/dist/chunks/tasks-1.1.17-kbw9ds53.mjs +1 -0
  425. package/dist/chunks/teamHelpers-1.1.17-4adaqsmb.mjs +1 -0
  426. package/dist/chunks/teammateModeSnapshot-1.1.17-9ts2pfkc.mjs +1 -0
  427. package/dist/chunks/teleport-1.1.17-bzmdxawh.mjs +1 -0
  428. package/dist/chunks/terminalSetup-1.1.17-dqhqjty9.mjs +1 -0
  429. package/dist/chunks/theme-1.1.17-85pv1732.mjs +1 -0
  430. package/dist/chunks/thinkback-1.1.17-hepbvmjv.mjs +1 -0
  431. package/dist/chunks/thinkback-play-1.1.17-v9aftsq7.mjs +1 -0
  432. package/dist/chunks/toolPool-1.1.17-9czwnxh0.mjs +1 -0
  433. package/dist/chunks/toolSearch-1.1.17-16zef2se.mjs +1 -0
  434. package/dist/chunks/tools-1.1.17-k9mnpc70.mjs +1 -0
  435. package/dist/chunks/trustedDevice-1.1.17-jh3tsws1.mjs +1 -0
  436. package/dist/chunks/turndown.cjs-1.1.17-nccrmbyj.mjs +69 -0
  437. package/dist/chunks/types-1.1.17-h1a2dqs3.mjs +1 -0
  438. package/dist/chunks/ultrareviewCommand-1.1.17-qcn2523f.mjs +4 -0
  439. package/dist/chunks/update-1.1.17-qrbvhrw3.mjs +72 -0
  440. package/dist/chunks/upgrade-1.1.17-5r2kvcht.mjs +1 -0
  441. package/dist/chunks/upload-1.1.17-9wg0zeh8.mjs +7 -0
  442. package/dist/chunks/upstreamproxy-1.1.17-g55vw948.mjs +14 -0
  443. package/dist/chunks/url-handler-napi-1.1.17-3z57zpg6.mjs +1 -0
  444. package/dist/chunks/usage-1.1.17-fpqbestm.mjs +1 -0
  445. package/dist/chunks/util-1.1.17-afkkcjd2.mjs +1 -0
  446. package/dist/chunks/utils-1.1.17-pmry0sgf.mjs +1 -0
  447. package/dist/chunks/vim-1.1.17-favcd60m.mjs +1 -0
  448. package/dist/chunks/watchLoop-1.1.17-8xwhaj6s.mjs +13 -0
  449. package/dist/chunks/watcher-1.1.17-1jrrt63m.mjs +1 -0
  450. package/dist/chunks/wiki-1.1.17-gsgtzkbe.mjs +132 -0
  451. package/dist/chunks/workflows-1.1.17-d88y5b3p.mjs +1 -0
  452. package/dist/chunks/worktree-1.1.17-aym2veht.mjs +1 -0
  453. package/dist/chunks/worktreeModeEnabled-1.1.17-e80q0zp5.mjs +1 -0
  454. package/dist/chunks/wrapper-1.1.17-mqzzgw84.mjs +7 -0
  455. package/dist/cli.mjs +2 -2
  456. package/package.json +9 -9
  457. package/dist/chunks/AgentTool-1.1.16-d8xg1846.mjs +0 -1
  458. package/dist/chunks/App-1.1.16-1qyat349.mjs +0 -1
  459. package/dist/chunks/ApproveApiKey-1.1.16-gphm4kr9.mjs +0 -1
  460. package/dist/chunks/AssistantSessionChooser-1.1.16-ae0771hz.mjs +0 -1
  461. package/dist/chunks/AutoModeOptInDialog-1.1.16-ntf57kwj.mjs +0 -1
  462. package/dist/chunks/BypassPermissionsModeDialog-1.1.16-z8km64vb.mjs +0 -1
  463. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.16-9c1nen0b.mjs +0 -1
  464. package/dist/chunks/ConsoleOAuthFlow-1.1.16-e52dm35b.mjs +0 -1
  465. package/dist/chunks/DiffDialog-1.1.16-frav7jtc.mjs +0 -6
  466. package/dist/chunks/Doctor-1.1.16-rnr2zeqm.mjs +0 -1
  467. package/dist/chunks/ExplorerDialog-1.1.16-32sa07f8.mjs +0 -6
  468. package/dist/chunks/ITermBackend-1.1.16-wcn0wvqj.mjs +0 -1
  469. package/dist/chunks/InvalidConfigDialog-1.1.16-ptpv0yby.mjs +0 -1
  470. package/dist/chunks/InvalidSettingsDialog-1.1.16-2c80150t.mjs +0 -1
  471. package/dist/chunks/MigrationDialog-1.1.16-xf5ytnvw.mjs +0 -1
  472. package/dist/chunks/Onboarding-1.1.16-mq6axxmv.mjs +0 -1
  473. package/dist/chunks/ProviderManager-1.1.16-df81g99v.mjs +0 -1
  474. package/dist/chunks/REPL-1.1.16-67e78vej.mjs +0 -1
  475. package/dist/chunks/ResumeConversation-1.1.16-nfz9vfxh.mjs +0 -1
  476. package/dist/chunks/SnapshotUpdateDialog-1.1.16-nmypjs9s.mjs +0 -1
  477. package/dist/chunks/TeleportProgress-1.1.16-8xp4cat6.mjs +0 -1
  478. package/dist/chunks/TeleportRepoMismatchDialog-1.1.16-b873egjf.mjs +0 -1
  479. package/dist/chunks/TeleportResumeWrapper-1.1.16-p12j7gbz.mjs +0 -1
  480. package/dist/chunks/TmuxBackend-1.1.16-wfj4hbxa.mjs +0 -9
  481. package/dist/chunks/ToolSearchTool-1.1.16-t59p4sqb.mjs +0 -1
  482. package/dist/chunks/TrustDialog-1.1.16-6gnr1pgn.mjs +0 -1
  483. package/dist/chunks/activeProvider-1.1.16-pz7hzyed.mjs +0 -1
  484. package/dist/chunks/add-dir-1.1.16-whsjbedt.mjs +0 -1
  485. package/dist/chunks/agentTypes-1.1.16-7fxyjypa.mjs +0 -1
  486. package/dist/chunks/agents-1.1.16-1d6y0xda.mjs +0 -3
  487. package/dist/chunks/agents-1.1.16-s5e41ewr.mjs +0 -110
  488. package/dist/chunks/api-1.1.16-k1mytgsx.mjs +0 -1
  489. package/dist/chunks/asciicast-1.1.16-bxvyntn8.mjs +0 -1
  490. package/dist/chunks/assistant-1.1.16-acqmddet.mjs +0 -1
  491. package/dist/chunks/auth-1.1.16-7nwthv6n.mjs +0 -1
  492. package/dist/chunks/auth-1.1.16-c46k0chb.mjs +0 -1
  493. package/dist/chunks/autoMode-1.1.16-t7thnrw0.mjs +0 -48
  494. package/dist/chunks/autoUpdater-1.1.16-5k3bxrjz.mjs +0 -1
  495. package/dist/chunks/backgroundHousekeeping-1.1.16-nhb6p8p3.mjs +0 -1
  496. package/dist/chunks/branch-1.1.16-72eesr6a.mjs +0 -4
  497. package/dist/chunks/bridge-1.1.16-8n6h1b8c.mjs +0 -2
  498. package/dist/chunks/bridgeConfig-1.1.16-jmz78ab3.mjs +0 -1
  499. package/dist/chunks/bridgeEnabled-1.1.16-nwrn0y9j.mjs +0 -1
  500. package/dist/chunks/bridgeMain-1.1.16-04vqwa21.mjs +0 -88
  501. package/dist/chunks/bridgePointer-1.1.16-krkxjxkj.mjs +0 -1
  502. package/dist/chunks/btw-1.1.16-h0jqrzph.mjs +0 -1
  503. package/dist/chunks/buddy-1.1.16-k6dwkrbz.mjs +0 -3
  504. package/dist/chunks/cache-probe-1.1.16-rk6d7v9j.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.16-f3tggvs4.mjs +0 -4
  506. package/dist/chunks/caches-1.1.16-kxkg6hxt.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.16-jggzvahb.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.16-7dtnkedr.mjs +0 -1
  509. package/dist/chunks/clear-1.1.16-qrpawrqq.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.16-hcv9w964.mjs +0 -1
  511. package/dist/chunks/cli-1.1.16-00hws7wd.mjs +0 -15
  512. package/dist/chunks/cli-1.1.16-02ynr76s.mjs +0 -2
  513. package/dist/chunks/cli-1.1.16-06f5zq2n.mjs +0 -3
  514. package/dist/chunks/cli-1.1.16-07smcaht.mjs +0 -2
  515. package/dist/chunks/cli-1.1.16-08mt7pd3.mjs +0 -26
  516. package/dist/chunks/cli-1.1.16-0chc168e.mjs +0 -2
  517. package/dist/chunks/cli-1.1.16-0w56n0k6.mjs +0 -2
  518. package/dist/chunks/cli-1.1.16-11vm4ckb.mjs +0 -3
  519. package/dist/chunks/cli-1.1.16-14fn34eq.mjs +0 -2
  520. package/dist/chunks/cli-1.1.16-14qj3fgz.mjs +0 -2
  521. package/dist/chunks/cli-1.1.16-16cpmrsq.mjs +0 -2
  522. package/dist/chunks/cli-1.1.16-1p0006m7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.16-1rw7f88z.mjs +0 -2
  524. package/dist/chunks/cli-1.1.16-21rqtmb8.mjs +0 -2
  525. package/dist/chunks/cli-1.1.16-2c672gb7.mjs +0 -12
  526. package/dist/chunks/cli-1.1.16-2mzk1cmm.mjs +0 -2
  527. package/dist/chunks/cli-1.1.16-2ssqta47.mjs +0 -2
  528. package/dist/chunks/cli-1.1.16-2v8aceee.mjs +0 -2
  529. package/dist/chunks/cli-1.1.16-2xgcx2pv.mjs +0 -2
  530. package/dist/chunks/cli-1.1.16-3ha615b6.mjs +0 -2
  531. package/dist/chunks/cli-1.1.16-3k3hzdbv.mjs +0 -9
  532. package/dist/chunks/cli-1.1.16-3wey4s8m.mjs +0 -2
  533. package/dist/chunks/cli-1.1.16-48pfhgz1.mjs +0 -2
  534. package/dist/chunks/cli-1.1.16-49bqpfq6.mjs +0 -16
  535. package/dist/chunks/cli-1.1.16-4azerbgs.mjs +0 -2
  536. package/dist/chunks/cli-1.1.16-4eszpnge.mjs +0 -2
  537. package/dist/chunks/cli-1.1.16-4kbzs997.mjs +0 -2
  538. package/dist/chunks/cli-1.1.16-4pr1991p.mjs +0 -8
  539. package/dist/chunks/cli-1.1.16-4qysqchs.mjs +0 -24
  540. package/dist/chunks/cli-1.1.16-4v9hjjtt.mjs +0 -3
  541. package/dist/chunks/cli-1.1.16-50vqanyq.mjs +0 -4
  542. package/dist/chunks/cli-1.1.16-54087k9r.mjs +0 -2
  543. package/dist/chunks/cli-1.1.16-5a4a2nqs.mjs +0 -2
  544. package/dist/chunks/cli-1.1.16-5bx6tpmw.mjs +0 -2
  545. package/dist/chunks/cli-1.1.16-5dtt0nsq.mjs +0 -15
  546. package/dist/chunks/cli-1.1.16-5hfex73v.mjs +0 -2
  547. package/dist/chunks/cli-1.1.16-5vc6gf8n.mjs +0 -2
  548. package/dist/chunks/cli-1.1.16-5wsywzcq.mjs +0 -2
  549. package/dist/chunks/cli-1.1.16-65skb0g1.mjs +0 -2
  550. package/dist/chunks/cli-1.1.16-67hp7vy9.mjs +0 -2
  551. package/dist/chunks/cli-1.1.16-67yh08z2.mjs +0 -2
  552. package/dist/chunks/cli-1.1.16-69ma6qdv.mjs +0 -2
  553. package/dist/chunks/cli-1.1.16-6fekr49f.mjs +0 -2
  554. package/dist/chunks/cli-1.1.16-6ptafg83.mjs +0 -59
  555. package/dist/chunks/cli-1.1.16-72wxrwg0.mjs +0 -2
  556. package/dist/chunks/cli-1.1.16-7aatqp3z.mjs +0 -2
  557. package/dist/chunks/cli-1.1.16-7c9cj19v.mjs +0 -2
  558. package/dist/chunks/cli-1.1.16-7j9fntrz.mjs +0 -2
  559. package/dist/chunks/cli-1.1.16-7k62y2m1.mjs +0 -45
  560. package/dist/chunks/cli-1.1.16-7k7w1py7.mjs +0 -39
  561. package/dist/chunks/cli-1.1.16-7xaxs3ra.mjs +0 -18
  562. package/dist/chunks/cli-1.1.16-7z989ymx.mjs +0 -24
  563. package/dist/chunks/cli-1.1.16-892pqd2m.mjs +0 -3
  564. package/dist/chunks/cli-1.1.16-8azzqa5w.mjs +0 -2
  565. package/dist/chunks/cli-1.1.16-8brzp1nw.mjs +0 -6
  566. package/dist/chunks/cli-1.1.16-8efk3qjx.mjs +0 -2
  567. package/dist/chunks/cli-1.1.16-8pms22dq.mjs +0 -2
  568. package/dist/chunks/cli-1.1.16-90p1j6wj.mjs +0 -3
  569. package/dist/chunks/cli-1.1.16-9bvj95e0.mjs +0 -2
  570. package/dist/chunks/cli-1.1.16-9gc3v32k.mjs +0 -2
  571. package/dist/chunks/cli-1.1.16-9mjvq93j.mjs +0 -2
  572. package/dist/chunks/cli-1.1.16-9vaffwrt.mjs +0 -2
  573. package/dist/chunks/cli-1.1.16-9wfv4nx7.mjs +0 -2
  574. package/dist/chunks/cli-1.1.16-9zybbj79.mjs +0 -2
  575. package/dist/chunks/cli-1.1.16-a09ca16c.mjs +0 -2
  576. package/dist/chunks/cli-1.1.16-a2heems6.mjs +0 -2
  577. package/dist/chunks/cli-1.1.16-a6z5s072.mjs +0 -58
  578. package/dist/chunks/cli-1.1.16-aae4w645.mjs +0 -42
  579. package/dist/chunks/cli-1.1.16-acbajet0.mjs +0 -2
  580. package/dist/chunks/cli-1.1.16-amvj9fsw.mjs +0 -3
  581. package/dist/chunks/cli-1.1.16-b06spwrg.mjs +0 -21
  582. package/dist/chunks/cli-1.1.16-b7t8n05k.mjs +0 -2
  583. package/dist/chunks/cli-1.1.16-b80x5mp6.mjs +0 -2
  584. package/dist/chunks/cli-1.1.16-c6ydw1c8.mjs +0 -2
  585. package/dist/chunks/cli-1.1.16-c839tmen.mjs +0 -2
  586. package/dist/chunks/cli-1.1.16-c9b05x0s.mjs +0 -2
  587. package/dist/chunks/cli-1.1.16-cc5chgna.mjs +0 -2
  588. package/dist/chunks/cli-1.1.16-cddsh2r4.mjs +0 -25
  589. package/dist/chunks/cli-1.1.16-cmfztzmq.mjs +0 -2
  590. package/dist/chunks/cli-1.1.16-cmw3ar20.mjs +0 -2
  591. package/dist/chunks/cli-1.1.16-cnwnk7gb.mjs +0 -2
  592. package/dist/chunks/cli-1.1.16-cs3aeka5.mjs +0 -12
  593. package/dist/chunks/cli-1.1.16-d6tf8dzn.mjs +0 -20
  594. package/dist/chunks/cli-1.1.16-df44y8yq.mjs +0 -3
  595. package/dist/chunks/cli-1.1.16-dfr9axye.mjs +0 -2
  596. package/dist/chunks/cli-1.1.16-dh0eqfrb.mjs +0 -25
  597. package/dist/chunks/cli-1.1.16-dn98cknd.mjs +0 -6
  598. package/dist/chunks/cli-1.1.16-dqwre8s7.mjs +0 -2
  599. package/dist/chunks/cli-1.1.16-dqxwanh1.mjs +0 -2
  600. package/dist/chunks/cli-1.1.16-dtwt84pe.mjs +0 -6
  601. package/dist/chunks/cli-1.1.16-dtyn1qwz.mjs +0 -2
  602. package/dist/chunks/cli-1.1.16-dxyq8q3t.mjs +0 -18
  603. package/dist/chunks/cli-1.1.16-e0fmjnmt.mjs +0 -2
  604. package/dist/chunks/cli-1.1.16-e15bgq0q.mjs +0 -2
  605. package/dist/chunks/cli-1.1.16-eabt3s19.mjs +0 -2
  606. package/dist/chunks/cli-1.1.16-eatavqvn.mjs +0 -2
  607. package/dist/chunks/cli-1.1.16-eg2wh4gb.mjs +0 -2
  608. package/dist/chunks/cli-1.1.16-egxjzfe2.mjs +0 -34
  609. package/dist/chunks/cli-1.1.16-ejy0gvv1.mjs +0 -2
  610. package/dist/chunks/cli-1.1.16-f3tex0kv.mjs +0 -24
  611. package/dist/chunks/cli-1.1.16-f6arq2qw.mjs +0 -3
  612. package/dist/chunks/cli-1.1.16-f9d79a6c.mjs +0 -2
  613. package/dist/chunks/cli-1.1.16-fd7yx131.mjs +0 -2
  614. package/dist/chunks/cli-1.1.16-g0z56bnb.mjs +0 -2
  615. package/dist/chunks/cli-1.1.16-g2m8cf2k.mjs +0 -2
  616. package/dist/chunks/cli-1.1.16-gqgat9ps.mjs +0 -2
  617. package/dist/chunks/cli-1.1.16-gtw5ckd8.mjs +0 -2
  618. package/dist/chunks/cli-1.1.16-gyw71nnw.mjs +0 -2
  619. package/dist/chunks/cli-1.1.16-gze584gt.mjs +0 -2
  620. package/dist/chunks/cli-1.1.16-h1rfrt5t.mjs +0 -1
  621. package/dist/chunks/cli-1.1.16-haqxs2zy.mjs +0 -2
  622. package/dist/chunks/cli-1.1.16-hbzd5k64.mjs +0 -2
  623. package/dist/chunks/cli-1.1.16-hd541yqt.mjs +0 -5
  624. package/dist/chunks/cli-1.1.16-hf9kpgyk.mjs +0 -2
  625. package/dist/chunks/cli-1.1.16-hq7j37g9.mjs +0 -2
  626. package/dist/chunks/cli-1.1.16-htk59n0r.mjs +0 -2
  627. package/dist/chunks/cli-1.1.16-hwr77b8n.mjs +0 -5469
  628. package/dist/chunks/cli-1.1.16-hyxvna5x.mjs +0 -2
  629. package/dist/chunks/cli-1.1.16-j1hg5tkr.mjs +0 -3
  630. package/dist/chunks/cli-1.1.16-jcye29qq.mjs +0 -202
  631. package/dist/chunks/cli-1.1.16-k7hg3739.mjs +0 -2
  632. package/dist/chunks/cli-1.1.16-kf5fv5t0.mjs +0 -2
  633. package/dist/chunks/cli-1.1.16-kndxajhc.mjs +0 -2
  634. package/dist/chunks/cli-1.1.16-kpxhnxpz.mjs +0 -2
  635. package/dist/chunks/cli-1.1.16-kxckvss5.mjs +0 -4
  636. package/dist/chunks/cli-1.1.16-kz0jkcdc.mjs +0 -2
  637. package/dist/chunks/cli-1.1.16-m0b6tw88.mjs +0 -3
  638. package/dist/chunks/cli-1.1.16-m68wgnx0.mjs +0 -50
  639. package/dist/chunks/cli-1.1.16-manqzza5.mjs +0 -2
  640. package/dist/chunks/cli-1.1.16-mbr5p7h4.mjs +0 -2
  641. package/dist/chunks/cli-1.1.16-n37yee4e.mjs +0 -5
  642. package/dist/chunks/cli-1.1.16-n9r7jwvf.mjs +0 -4
  643. package/dist/chunks/cli-1.1.16-nbxzev2y.mjs +0 -3
  644. package/dist/chunks/cli-1.1.16-nh0pt7e0.mjs +0 -2
  645. package/dist/chunks/cli-1.1.16-njacmwr1.mjs +0 -4
  646. package/dist/chunks/cli-1.1.16-p0fj6fyd.mjs +0 -2
  647. package/dist/chunks/cli-1.1.16-pdga6t1k.mjs +0 -133
  648. package/dist/chunks/cli-1.1.16-pj3sbyjh.mjs +0 -2
  649. package/dist/chunks/cli-1.1.16-pzq1a8yw.mjs +0 -2
  650. package/dist/chunks/cli-1.1.16-q827fp1q.mjs +0 -2
  651. package/dist/chunks/cli-1.1.16-qh481y6y.mjs +0 -2
  652. package/dist/chunks/cli-1.1.16-qwgc24yv.mjs +0 -2
  653. package/dist/chunks/cli-1.1.16-qy3897dn.mjs +0 -2
  654. package/dist/chunks/cli-1.1.16-qyhfqd1t.mjs +0 -4
  655. package/dist/chunks/cli-1.1.16-r0tgqw2k.mjs +0 -4
  656. package/dist/chunks/cli-1.1.16-r102pkgg.mjs +0 -3
  657. package/dist/chunks/cli-1.1.16-r2q5qzd6.mjs +0 -2
  658. package/dist/chunks/cli-1.1.16-r3n44d17.mjs +0 -2
  659. package/dist/chunks/cli-1.1.16-r41v96xz.mjs +0 -6
  660. package/dist/chunks/cli-1.1.16-rb7paxmn.mjs +0 -2
  661. package/dist/chunks/cli-1.1.16-rmn7pfkz.mjs +0 -2
  662. package/dist/chunks/cli-1.1.16-rvyqa9q1.mjs +0 -2
  663. package/dist/chunks/cli-1.1.16-s404wy1x.mjs +0 -6
  664. package/dist/chunks/cli-1.1.16-s73aeg9m.mjs +0 -3
  665. package/dist/chunks/cli-1.1.16-sbck6gp1.mjs +0 -2
  666. package/dist/chunks/cli-1.1.16-sk0nvcb8.mjs +0 -2
  667. package/dist/chunks/cli-1.1.16-sk5cfvaa.mjs +0 -2
  668. package/dist/chunks/cli-1.1.16-t0vza3m9.mjs +0 -2
  669. package/dist/chunks/cli-1.1.16-t3hq60ht.mjs +0 -2
  670. package/dist/chunks/cli-1.1.16-t52j6pb6.mjs +0 -6
  671. package/dist/chunks/cli-1.1.16-t7jxtkz8.mjs +0 -2
  672. package/dist/chunks/cli-1.1.16-the4daty.mjs +0 -17
  673. package/dist/chunks/cli-1.1.16-tjqwb7e1.mjs +0 -2
  674. package/dist/chunks/cli-1.1.16-tjzxdkkt.mjs +0 -17
  675. package/dist/chunks/cli-1.1.16-tpxwx276.mjs +0 -2
  676. package/dist/chunks/cli-1.1.16-tv4kjnwq.mjs +0 -24
  677. package/dist/chunks/cli-1.1.16-tv97myza.mjs +0 -7
  678. package/dist/chunks/cli-1.1.16-v2e4pd3g.mjs +0 -2
  679. package/dist/chunks/cli-1.1.16-vchwnr3f.mjs +0 -2
  680. package/dist/chunks/cli-1.1.16-vf5x3nc4.mjs +0 -2
  681. package/dist/chunks/cli-1.1.16-vhwypfn6.mjs +0 -2
  682. package/dist/chunks/cli-1.1.16-vkc2wbwd.mjs +0 -2
  683. package/dist/chunks/cli-1.1.16-vngrsrs8.mjs +0 -3
  684. package/dist/chunks/cli-1.1.16-vq6g4ncg.mjs +0 -2
  685. package/dist/chunks/cli-1.1.16-vra6hr5d.mjs +0 -2
  686. package/dist/chunks/cli-1.1.16-vzv60xz8.mjs +0 -4
  687. package/dist/chunks/cli-1.1.16-w4zy236d.mjs +0 -2
  688. package/dist/chunks/cli-1.1.16-w5ns6t4b.mjs +0 -2
  689. package/dist/chunks/cli-1.1.16-way1d0g7.mjs +0 -2
  690. package/dist/chunks/cli-1.1.16-wbzh2wm5.mjs +0 -2
  691. package/dist/chunks/cli-1.1.16-wpgdph2x.mjs +0 -7
  692. package/dist/chunks/cli-1.1.16-wv6e57r1.mjs +0 -2
  693. package/dist/chunks/cli-1.1.16-wxyxm2zp.mjs +0 -2
  694. package/dist/chunks/cli-1.1.16-wysnfmek.mjs +0 -4
  695. package/dist/chunks/cli-1.1.16-wzzrc1xq.mjs +0 -2
  696. package/dist/chunks/cli-1.1.16-x0gywt7y.mjs +0 -2
  697. package/dist/chunks/cli-1.1.16-x1r7521q.mjs +0 -133
  698. package/dist/chunks/cli-1.1.16-x4k8bzvc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.16-x9m0y8t1.mjs +0 -2
  700. package/dist/chunks/cli-1.1.16-xaye0g9z.mjs +0 -2
  701. package/dist/chunks/cli-1.1.16-xe8wmqtk.mjs +0 -15
  702. package/dist/chunks/cli-1.1.16-xfke0ngj.mjs +0 -2
  703. package/dist/chunks/cli-1.1.16-xqk1znpb.mjs +0 -2
  704. package/dist/chunks/cli-1.1.16-y11gejtr.mjs +0 -9
  705. package/dist/chunks/cli-1.1.16-y1vrwcq4.mjs +0 -2
  706. package/dist/chunks/cli-1.1.16-y4qp7bb2.mjs +0 -2
  707. package/dist/chunks/cli-1.1.16-ynvgphfk.mjs +0 -2
  708. package/dist/chunks/cli-1.1.16-yqaq6eek.mjs +0 -2
  709. package/dist/chunks/cli-1.1.16-yv8wazsp.mjs +0 -2
  710. package/dist/chunks/cli-1.1.16-yymrc4dd.mjs +0 -2
  711. package/dist/chunks/cli-1.1.16-yzrxqdz1.mjs +0 -4
  712. package/dist/chunks/cli-1.1.16-z56ew2eh.mjs +0 -66
  713. package/dist/chunks/cli-1.1.16-z93174n6.mjs +0 -2
  714. package/dist/chunks/cli-1.1.16-zedxs5mz.mjs +0 -2
  715. package/dist/chunks/cli-1.1.16-zgwt3v22.mjs +0 -2
  716. package/dist/chunks/cli-1.1.16-ztv6fvbq.mjs +0 -4
  717. package/dist/chunks/cli-1.1.16-zx2pqyak.mjs +0 -2
  718. package/dist/chunks/cli-1.1.16-zy1hy3m7.mjs +0 -3
  719. package/dist/chunks/cli-1.1.16-zzc307e7.mjs +0 -2
  720. package/dist/chunks/client-1.1.16-mxfnn25v.mjs +0 -1
  721. package/dist/chunks/color-1.1.16-kxb5k02m.mjs +0 -1
  722. package/dist/chunks/compact-1.1.16-zn3r524w.mjs +0 -3
  723. package/dist/chunks/config-1.1.16-866900pg.mjs +0 -1
  724. package/dist/chunks/config-1.1.16-pnqk3e4x.mjs +0 -1
  725. package/dist/chunks/constants-1.1.16-y8q2q4nx.mjs +0 -1
  726. package/dist/chunks/context-1.1.16-g23rxjdc.mjs +0 -1
  727. package/dist/chunks/context-noninteractive-1.1.16-cccdk7gt.mjs +0 -1
  728. package/dist/chunks/conversation-1.1.16-b3c8ysvx.mjs +0 -1
  729. package/dist/chunks/copilotHeaders-1.1.16-n2gqvrz3.mjs +0 -1
  730. package/dist/chunks/copy-1.1.16-evtbz4pr.mjs +0 -9
  731. package/dist/chunks/cost-1.1.16-je2dhky8.mjs +0 -1
  732. package/dist/chunks/createSSHSession-1.1.16-7bjctayt.mjs +0 -1
  733. package/dist/chunks/createSession-1.1.16-q7ezgde2.mjs +0 -1
  734. package/dist/chunks/debug-1.1.16-rwekwqaz.mjs +0 -1
  735. package/dist/chunks/defaultActionDeps-1.1.16-drefjcq7.mjs +0 -1534
  736. package/dist/chunks/desktop-1.1.16-s5p2s8z1.mjs +0 -1
  737. package/dist/chunks/detectRepository-1.1.16-0mj2v70d.mjs +0 -1
  738. package/dist/chunks/detection-1.1.16-a6g1ea8w.mjs +0 -1
  739. package/dist/chunks/diff-1.1.16-5c3cx6ex.mjs +0 -1
  740. package/dist/chunks/doctor-1.1.16-41p56y0f.mjs +0 -1
  741. package/dist/chunks/doctorDiagnostic-1.1.16-w0td1z7t.mjs +0 -1
  742. package/dist/chunks/earlyInput-1.1.16-fb3qxbjk.mjs +0 -1
  743. package/dist/chunks/effort-1.1.16-9gw3x1mz.mjs +0 -13
  744. package/dist/chunks/engine-1.1.16-35cg9rmx.mjs +0 -1
  745. package/dist/chunks/envLessBridgeConfig-1.1.16-1d34y7k2.mjs +0 -1
  746. package/dist/chunks/envUtils-1.1.16-4t6p0jjh.mjs +0 -1
  747. package/dist/chunks/environmentSelection-1.1.16-63yqca4b.mjs +0 -1
  748. package/dist/chunks/environments-1.1.16-zg1cebes.mjs +0 -1
  749. package/dist/chunks/errors-1.1.16-5ry90xtn.mjs +0 -1
  750. package/dist/chunks/exampleCommands-1.1.16-gctdwyey.mjs +0 -1
  751. package/dist/chunks/execFileNoThrow-1.1.16-ja5wfnqk.mjs +0 -1
  752. package/dist/chunks/exit-1.1.16-gp3attw5.mjs +0 -1
  753. package/dist/chunks/explorer-1.1.16-ksz2kh3r.mjs +0 -1
  754. package/dist/chunks/export-1.1.16-4q6eppsd.mjs +0 -2
  755. package/dist/chunks/extra-usage-1.1.16-gtvkswnt.mjs +0 -1
  756. package/dist/chunks/extra-usage-noninteractive-1.1.16-y936p9yp.mjs +0 -1
  757. package/dist/chunks/fast-1.1.16-9d3xqrpf.mjs +0 -1
  758. package/dist/chunks/feedback-1.1.16-3va6ar52.mjs +0 -14
  759. package/dist/chunks/firstPartyEventLogger-1.1.16-rzm5ms2c.mjs +0 -1
  760. package/dist/chunks/git-1.1.16-wxjpazsv.mjs +0 -1
  761. package/dist/chunks/githubModelsCredentials-1.1.16-8db65cwz.mjs +0 -1
  762. package/dist/chunks/goal-1.1.16-n6zn5hv0.mjs +0 -4
  763. package/dist/chunks/growthbook-1.1.16-595crq4b.mjs +0 -1
  764. package/dist/chunks/headless-1.1.16-ngrfttd2.mjs +0 -2
  765. package/dist/chunks/heapdump-1.1.16-xeq6wdmt.mjs +0 -6
  766. package/dist/chunks/help-1.1.16-cr6p1e9d.mjs +0 -1
  767. package/dist/chunks/hookChains-1.1.16-9h14zpb6.mjs +0 -3
  768. package/dist/chunks/hooks-1.1.16-1g8bmj2c.mjs +0 -79
  769. package/dist/chunks/hooks-1.1.16-n1gmh33c.mjs +0 -1
  770. package/dist/chunks/ide-1.1.16-9vtwyzje.mjs +0 -3
  771. package/dist/chunks/image-processor-napi-1.1.16-xs3s51me.mjs +0 -1
  772. package/dist/chunks/inboundAttachments-1.1.16-c6drgpf3.mjs +0 -1
  773. package/dist/chunks/index-1.1.16-18yhpv52.mjs +0 -23
  774. package/dist/chunks/index-1.1.16-2rsmxhr2.mjs +0 -30
  775. package/dist/chunks/index-1.1.16-2xc5zjwe.mjs +0 -5
  776. package/dist/chunks/index-1.1.16-3cscsx0v.mjs +0 -1
  777. package/dist/chunks/index-1.1.16-3vpat7c1.mjs +0 -9
  778. package/dist/chunks/index-1.1.16-3zhbr1qd.mjs +0 -1
  779. package/dist/chunks/index-1.1.16-54nbfa3c.mjs +0 -1
  780. package/dist/chunks/index-1.1.16-6f495kq6.mjs +0 -1
  781. package/dist/chunks/index-1.1.16-82gx3ah5.mjs +0 -1
  782. package/dist/chunks/index-1.1.16-ap17zed0.mjs +0 -1
  783. package/dist/chunks/index-1.1.16-b07w4tdb.mjs +0 -1
  784. package/dist/chunks/index-1.1.16-cca87zba.mjs +0 -9
  785. package/dist/chunks/index-1.1.16-dxjx9gq8.mjs +0 -1
  786. package/dist/chunks/index-1.1.16-ehk0dpk3.mjs +0 -1
  787. package/dist/chunks/index-1.1.16-g6p5h9x8.mjs +0 -1
  788. package/dist/chunks/index-1.1.16-hsmqsx4f.mjs +0 -2
  789. package/dist/chunks/index-1.1.16-n1gyvm02.mjs +0 -1
  790. package/dist/chunks/index-1.1.16-ppkq03k8.mjs +0 -1
  791. package/dist/chunks/index-1.1.16-qpdm2q81.mjs +0 -1
  792. package/dist/chunks/index-1.1.16-qww85f6n.mjs +0 -1
  793. package/dist/chunks/index-1.1.16-s5e31nps.mjs +0 -1
  794. package/dist/chunks/index-1.1.16-v1zrqah7.mjs +0 -2
  795. package/dist/chunks/index-1.1.16-vbj2a5jp.mjs +0 -1
  796. package/dist/chunks/init-1.1.16-6wdrdz2r.mjs +0 -1
  797. package/dist/chunks/initReplBridge-1.1.16-6bhkywe8.mjs +0 -1
  798. package/dist/chunks/ink-1.1.16-e7whmjxf.mjs +0 -1
  799. package/dist/chunks/insights-1.1.16-s2czmsxt.mjs +0 -870
  800. package/dist/chunks/install-1.1.16-hm3j0jqe.mjs +0 -1
  801. package/dist/chunks/install-github-app-1.1.16-xmkdh35y.mjs +0 -149
  802. package/dist/chunks/install-slack-app-1.1.16-1a8z176x.mjs +0 -1
  803. package/dist/chunks/instrumentation-1.1.16-5tqqjvsb.mjs +0 -1
  804. package/dist/chunks/interactiveHelpers-1.1.16-49sn5m39.mjs +0 -1
  805. package/dist/chunks/keybindings-1.1.16-c6n8k84r.mjs +0 -2
  806. package/dist/chunks/knowledge-1.1.16-08yzaswd.mjs +0 -2
  807. package/dist/chunks/latestVersionCache-1.1.16-a0dks1p1.mjs +0 -1
  808. package/dist/chunks/loadAgentsDir-1.1.16-jbfc3ync.mjs +0 -1
  809. package/dist/chunks/loadPluginHooks-1.1.16-0pym4ad2.mjs +0 -1
  810. package/dist/chunks/log-1.1.16-yahqz556.mjs +0 -1
  811. package/dist/chunks/main-1.1.16-2egj6bns.mjs +0 -1
  812. package/dist/chunks/managedEnv-1.1.16-tgd635vq.mjs +0 -1
  813. package/dist/chunks/mcp-1.1.16-fkx2awnj.mjs +0 -17
  814. package/dist/chunks/mcp-1.1.16-n7sgsh7q.mjs +0 -1
  815. package/dist/chunks/mcp-1.1.16-ry6g2t33.mjs +0 -4
  816. package/dist/chunks/mcpb-1.1.16-74c05aj3.mjs +0 -1
  817. package/dist/chunks/memory-1.1.16-6jbqggnn.mjs +0 -72
  818. package/dist/chunks/model-1.1.16-3bvzfbem.mjs +0 -2
  819. package/dist/chunks/model-1.1.16-sjpwhja7.mjs +0 -1
  820. package/dist/chunks/node-1.1.16-gsj0fpm7.mjs +0 -12
  821. package/dist/chunks/oauth-1.1.16-bt9x98w7.mjs +0 -1
  822. package/dist/chunks/openaiShim-1.1.16-8gems3mz.mjs +0 -14
  823. package/dist/chunks/output-style-1.1.16-embrry9v.mjs +0 -1
  824. package/dist/chunks/package-KQCMZM5L-1.1.16-d3m1d21p.mjs +0 -1
  825. package/dist/chunks/parseConnectUrl-1.1.16-zffe39j3.mjs +0 -1
  826. package/dist/chunks/parser-1.1.16-3ps9dtdr.mjs +0 -1
  827. package/dist/chunks/passes-1.1.16-n0a3pvdf.mjs +0 -1
  828. package/dist/chunks/permissions-1.1.16-jk4pmrmf.mjs +0 -3
  829. package/dist/chunks/permissions-1.1.16-wnz2vr3h.mjs +0 -1
  830. package/dist/chunks/plan-1.1.16-rtkh7eh3.mjs +0 -1
  831. package/dist/chunks/plist-1.1.16-t71wt7sc.mjs +0 -1
  832. package/dist/chunks/plugin-1.1.16-t9jaj1gv.mjs +0 -29
  833. package/dist/chunks/pluginStartupCheck-1.1.16-c6cf7tmk.mjs +0 -1
  834. package/dist/chunks/plugins-1.1.16-73hwgvfk.mjs +0 -9
  835. package/dist/chunks/preActionHook-1.1.16-nthzxbp9.mjs +0 -2
  836. package/dist/chunks/print-1.1.16-armgf1aq.mjs +0 -57
  837. package/dist/chunks/process-1.1.16-3ct2vh70.mjs +0 -1
  838. package/dist/chunks/processBashCommand-1.1.16-89y7gsbx.mjs +0 -1
  839. package/dist/chunks/processSlashCommand-1.1.16-1kjtbhx2.mjs +0 -9
  840. package/dist/chunks/prompt-1.1.16-0386v4at.mjs +0 -1
  841. package/dist/chunks/prompt-1.1.16-k5y0dpf7.mjs +0 -1
  842. package/dist/chunks/prompts-1.1.16-xsnbw92m.mjs +0 -1
  843. package/dist/chunks/protocolHandler-1.1.16-yx039y6v.mjs +0 -13
  844. package/dist/chunks/provider-1.1.16-m0kk3yhs.mjs +0 -2
  845. package/dist/chunks/providerProfiles-1.1.16-2v2pwv6d.mjs +0 -1
  846. package/dist/chunks/providerValidation-1.1.16-282tqjjx.mjs +0 -6
  847. package/dist/chunks/rate-limit-options-1.1.16-avgds6pk.mjs +0 -1
  848. package/dist/chunks/registerSubcommands-1.1.16-mzwjj9v6.mjs +0 -26
  849. package/dist/chunks/registry-1.1.16-n34j5qfk.mjs +0 -1
  850. package/dist/chunks/release-notes-1.1.16-8q4sx928.mjs +0 -5
  851. package/dist/chunks/reload-plugins-1.1.16-7znfn6r1.mjs +0 -2
  852. package/dist/chunks/remote-env-1.1.16-pv7edzf2.mjs +0 -1
  853. package/dist/chunks/remoteBridgeCore-1.1.16-jv7q72cp.mjs +0 -1
  854. package/dist/chunks/remoteSession-1.1.16-mmf3btpt.mjs +0 -1
  855. package/dist/chunks/rename-1.1.16-m3xv2hvc.mjs +0 -1
  856. package/dist/chunks/replBridgeHandle-1.1.16-0vph2kjs.mjs +0 -1
  857. package/dist/chunks/replLauncher-1.1.16-g5z9jade.mjs +0 -1
  858. package/dist/chunks/resume-1.1.16-40c9ahqr.mjs +0 -2
  859. package/dist/chunks/rewind-1.1.16-tpy93a43.mjs +0 -1
  860. package/dist/chunks/rootOptions-1.1.16-3apcbhbp.mjs +0 -1
  861. package/dist/chunks/runWorkflowHeadless-1.1.16-ejyeyghc.mjs +0 -10
  862. package/dist/chunks/sandbox-adapter-1.1.16-xb7gb62s.mjs +0 -1
  863. package/dist/chunks/sandbox-toggle-1.1.16-pm4wkyc5.mjs +0 -1
  864. package/dist/chunks/session-1.1.16-vrf7bvfv.mjs +0 -2
  865. package/dist/chunks/sessionDiscovery-1.1.16-e919fb36.mjs +0 -1
  866. package/dist/chunks/sessionFileAccessHooks-1.1.16-6sbxmck5.mjs +0 -1
  867. package/dist/chunks/sessionStorage-1.1.16-1pd52qxc.mjs +0 -1
  868. package/dist/chunks/settings-1.1.16-0twvg2yc.mjs +0 -1
  869. package/dist/chunks/setup-1.1.16-mhj053ej.mjs +0 -12
  870. package/dist/chunks/sinks-1.1.16-10wxx1a3.mjs +0 -1
  871. package/dist/chunks/skills-1.1.16-r7v633j2.mjs +0 -1
  872. package/dist/chunks/startupProfiler-1.1.16-mmrhkw7p.mjs +0 -1
  873. package/dist/chunks/startupUpdateCheck-1.1.16-8tj1n7gt.mjs +0 -1
  874. package/dist/chunks/state-1.1.16-8zy52d2r.mjs +0 -1
  875. package/dist/chunks/stats-1.1.16-mrmhzc8j.mjs +0 -6
  876. package/dist/chunks/status-1.1.16-qpanvb67.mjs +0 -1
  877. package/dist/chunks/stickers-1.1.16-0d4zm7x4.mjs +0 -1
  878. package/dist/chunks/subprocessEnv-1.1.16-3pz224am.mjs +0 -1
  879. package/dist/chunks/tasks-1.1.16-cv8bsqt6.mjs +0 -1
  880. package/dist/chunks/teamHelpers-1.1.16-yrkqrc58.mjs +0 -1
  881. package/dist/chunks/teammateModeSnapshot-1.1.16-xgaxxh5q.mjs +0 -1
  882. package/dist/chunks/teleport-1.1.16-rhtckzvp.mjs +0 -1
  883. package/dist/chunks/terminalSetup-1.1.16-fptwmgph.mjs +0 -1
  884. package/dist/chunks/theme-1.1.16-4tskjw6p.mjs +0 -1
  885. package/dist/chunks/thinkback-1.1.16-d1x5jsx0.mjs +0 -1
  886. package/dist/chunks/thinkback-play-1.1.16-54xyd092.mjs +0 -1
  887. package/dist/chunks/toolPool-1.1.16-ga5s9f1k.mjs +0 -1
  888. package/dist/chunks/toolSearch-1.1.16-xw1xa379.mjs +0 -1
  889. package/dist/chunks/tools-1.1.16-h2yhp23r.mjs +0 -1
  890. package/dist/chunks/trustedDevice-1.1.16-nrdjhk2z.mjs +0 -1
  891. package/dist/chunks/turndown.cjs-1.1.16-4yvp9q16.mjs +0 -69
  892. package/dist/chunks/types-1.1.16-47y90s0f.mjs +0 -1
  893. package/dist/chunks/ultrareviewCommand-1.1.16-ej1e8hkt.mjs +0 -4
  894. package/dist/chunks/update-1.1.16-rtkcq95j.mjs +0 -72
  895. package/dist/chunks/upgrade-1.1.16-52bm5sf9.mjs +0 -1
  896. package/dist/chunks/upload-1.1.16-m2wyhzek.mjs +0 -7
  897. package/dist/chunks/upstreamproxy-1.1.16-vwczyqak.mjs +0 -14
  898. package/dist/chunks/url-handler-napi-1.1.16-qa109pxx.mjs +0 -1
  899. package/dist/chunks/usage-1.1.16-yqk04de2.mjs +0 -1
  900. package/dist/chunks/util-1.1.16-5f2kcd2a.mjs +0 -1
  901. package/dist/chunks/utils-1.1.16-pgvxvt37.mjs +0 -1
  902. package/dist/chunks/vim-1.1.16-9pd3j7qj.mjs +0 -1
  903. package/dist/chunks/watchLoop-1.1.16-wdxk66eb.mjs +0 -13
  904. package/dist/chunks/watcher-1.1.16-cd9fad12.mjs +0 -1
  905. package/dist/chunks/wiki-1.1.16-8290ftnh.mjs +0 -132
  906. package/dist/chunks/workflows-1.1.16-f4k926bs.mjs +0 -1
  907. package/dist/chunks/worktree-1.1.16-4s4hp83q.mjs +0 -1
  908. package/dist/chunks/worktreeModeEnabled-1.1.16-je59whhd.mjs +0 -1
  909. package/dist/chunks/wrapper-1.1.16-dfsehczs.mjs +0 -7
@@ -0,0 +1,88 @@
1
+ import{sb as yJ,tb as xz,ub as rz,vb as cz,wb as iz,xb as kJ}from"./cli-1.1.17-cnp784zh.mjs";import{zb as Tz}from"./cli-1.1.17-b1g8n716.mjs";import{Jb as EJ,Kb as TJ,Lb as xJ,Mb as MJ,Nb as wJ}from"./cli-1.1.17-y9v9t43m.mjs";import{Pb as fJ}from"./cli-1.1.17-r47egjp3.mjs";import{He as jJ,Ie as cJ}from"./cli-1.1.17-av45k1a0.mjs";import{$e as oz,Ze as LJ,bf as RK}from"./cli-1.1.17-t059h154.mjs";import{of as mz,qf as UJ,uf as OJ}from"./cli-1.1.17-grwds6h6.mjs";import{MH as JJ,NH as Cz,Nn as AJ,OH as KJ,On as PK,PH as ZJ,RH as $J,SH as YJ,TH as XJ,UH as QJ,VH as WJ,bm as DJ,cm as vz,ek as CJ,fk as FK,gm as NK}from"./cli-1.1.17-tjtarhk9.mjs";import"./cli-1.1.17-3v5m3zqf.mjs";import"./cli-1.1.17-k4cv7tcx.mjs";import"./cli-1.1.17-ymeaeqf8.mjs";import"./cli-1.1.17-6e7rvf1a.mjs";import"./cli-1.1.17-kk19mmhc.mjs";import"./cli-1.1.17-spygywkr.mjs";import"./cli-1.1.17-sf4te5vd.mjs";import"./cli-1.1.17-sh93pnws.mjs";import"./cli-1.1.17-avc9ck1v.mjs";import{qW as RJ,wW as _K}from"./cli-1.1.17-9rtpxyk6.mjs";import"./cli-1.1.17-bzw849yw.mjs";import"./cli-1.1.17-d8zh7smn.mjs";import"./cli-1.1.17-3z8hnad1.mjs";import{UW as az,YW as CK}from"./cli-1.1.17-4egkrc4y.mjs";import"./cli-1.1.17-c4wdrmzx.mjs";import"./cli-1.1.17-9wgw338h.mjs";import"./cli-1.1.17-j0rsgbr3.mjs";import"./cli-1.1.17-k2ygh79g.mjs";import"./cli-1.1.17-sx4yg7br.mjs";import"./cli-1.1.17-yexr9jg1.mjs";import"./cli-1.1.17-n4xn5c5m.mjs";import"./cli-1.1.17-h899gx3g.mjs";import"./cli-1.1.17-5ckk64dj.mjs";import"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-tcxq0ah8.mjs";import{D2 as pz,G2 as BK}from"./cli-1.1.17-66c4sw6g.mjs";import"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-q6fve29k.mjs";import"./cli-1.1.17-7n4s8n50.mjs";import"./cli-1.1.17-jyzpxwq4.mjs";import"./cli-1.1.17-6rx20w90.mjs";import"./cli-1.1.17-8ae45qsd.mjs";import"./cli-1.1.17-545688c0.mjs";import"./cli-1.1.17-40gj2tc0.mjs";import"./cli-1.1.17-bw4gf7se.mjs";import"./cli-1.1.17-ja7d18ym.mjs";import"./cli-1.1.17-q7f9amqd.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import{J7 as i,K7 as OK}from"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import{j9 as V,k9 as gJ}from"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-e8bd5mhc.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import"./cli-1.1.17-qwkbwe37.mjs";import{Bba as PJ,Cba as HK,I_ as Wz,K_ as GK,Vga as Ez,bca as fz,bha as qK,cca as ez,dca as zJ,eca as pJ}from"./cli-1.1.17-pmner0m4.mjs";import{gha as sz,hha as uJ,jha as Rz,qha as qz,yha as jK}from"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import{dia as BJ,lia as VK}from"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import{$ja as XK,Yja as zz,Zja as _J}from"./cli-1.1.17-h68j8yr4.mjs";import{$ka as q,Eka as qJ,Fka as uz,Jka as aJ,cla as tz}from"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import{Gla as WK,zla as g}from"./cli-1.1.17-w8ycz611.mjs";import{Mla as NJ,Ula as QK}from"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import{kta as I}from"./cli-1.1.17-6ee0nqae.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
2
+ `).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
3
+ `)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}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($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
5
+ `)}function jz(){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 _)m(`${V.dim(Jz)}
6
+ `);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
7
+ `),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
8
+ `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
9
+ `)}}if(N===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(` ${V.dim(Jz)}
10
+ `)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
11
+ `);let Qz=A??U;if(Qz){m(`
12
+ `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
13
+ `),m(`${Kz}${r}
14
+ `)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
15
+ `);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
16
+ `),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
+ `);J(V.dim("Environment ID: ")+`${G}
18
+ `)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
19
+ `);J(`
20
+ `),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
21
+ `)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
22
+ `)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
23
+ `)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
24
+ `)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
25
+ `)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
26
+ `)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
27
+ `)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
28
+ `);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
29
+ `)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
30
+ `),m(`${V.dim(XJ)}
31
+ `),$)m(`${V.red($)}
32
+ `)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=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","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.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 JK={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 KK(z,J){let K=JK[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 ZK(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",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}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 $K(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 YK(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 N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.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=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,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=oJ(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,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
+ `);if(_.length>=sJ)_.shift();_.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=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)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"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{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}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,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(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.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("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){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(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)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 E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!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 _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.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=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.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),Ez(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 j=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("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.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&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.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=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.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=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.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=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(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}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=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}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(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=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.17-86r1zzgv.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);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(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.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 yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.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??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.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(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=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("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),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(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=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): ${E}`),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("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${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((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.17-tnq9hpp2.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(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 wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(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 IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];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"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];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[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}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[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}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 'claudin 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||_)&&(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&&_)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:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.17-2s1jj12g.mjs"),J=z.join(", "),K=await vJ(),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: ${IJ})
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
+ claudin 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 \`claudin\` 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 hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.17-86r1zzgv.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();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:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.17-2s1jj12g.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:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.17-m2ajzt0e.mjs");N();let{initSinks:k}=await import("./sinks-1.1.17-qy1xy52h.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.17-jj648yt9.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.17-8f3fach8.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.17-kce97mnv.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.17-m2ajzt0e.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(),jz((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 G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.17-1t4mvmwy.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.17-brmzj93f.mjs"),Qz=Oz()||_z(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("",{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??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.17-tnq9hpp2.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(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.17-8f3fach8.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),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("",{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("",{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:hJ(),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=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.17-a8w7dp77.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(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("",{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()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.17-86r1zzgv.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.17-tnq9hpp2.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),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 kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.17-jj648yt9.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.17-m2ajzt0e.mjs");R();let{initSinks:U}=await import("./sinks-1.1.17-qy1xy52h.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.17-kce97mnv.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:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.17-1t4mvmwy.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.17-brmzj93f.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(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=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,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:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.17-86r1zzgv.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,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 SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(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{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -0,0 +1 @@
1
+ import{FW as S,GW as c}from"./cli-1.1.17-d8zh7smn.mjs";import{Aia as M,bja as Y,dja as O,eja as N,fja as _,via as G,wia as A}from"./cli-1.1.17-amvnbvkb.mjs";import{$ka as C,Eka as K,Fka as W,Jka as R,cla as k}from"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import{Bla as y,Gla as j}from"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-6ee0nqae.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(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 T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().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($>u)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 S(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 m(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,u as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Wh as a,Xh as AJ}from"./cli-1.1.17-9nvn8chy.mjs";import{Yh as x,Zh as vJ}from"./cli-1.1.17-n2dct122.mjs";import{IE as c,Jy as m,Ly as HJ,OE as WJ,PQ as r,RR as o,Vn as g,Wn as UJ,_Q as TJ,bI as $,cI as bJ,dS as hJ,hU as s,iU as t,jU as DJ,ux as u,vx as IJ}from"./cli-1.1.17-tjtarhk9.mjs";import"./cli-1.1.17-3v5m3zqf.mjs";import"./cli-1.1.17-k4cv7tcx.mjs";import"./cli-1.1.17-ymeaeqf8.mjs";import"./cli-1.1.17-6e7rvf1a.mjs";import"./cli-1.1.17-kk19mmhc.mjs";import"./cli-1.1.17-spygywkr.mjs";import"./cli-1.1.17-sf4te5vd.mjs";import"./cli-1.1.17-sh93pnws.mjs";import"./cli-1.1.17-avc9ck1v.mjs";import"./cli-1.1.17-9rtpxyk6.mjs";import"./cli-1.1.17-bzw849yw.mjs";import"./cli-1.1.17-d8zh7smn.mjs";import"./cli-1.1.17-3z8hnad1.mjs";import"./cli-1.1.17-4egkrc4y.mjs";import"./cli-1.1.17-c4wdrmzx.mjs";import"./cli-1.1.17-9wgw338h.mjs";import"./cli-1.1.17-j0rsgbr3.mjs";import"./cli-1.1.17-k2ygh79g.mjs";import"./cli-1.1.17-sx4yg7br.mjs";import{JY as l,LY as kJ,mY as i,nY as QJ}from"./cli-1.1.17-yexr9jg1.mjs";import"./cli-1.1.17-n4xn5c5m.mjs";import{$0 as W,CZ as GJ,G1 as NJ,b1 as b,s1 as S,u1 as KJ}from"./cli-1.1.17-h899gx3g.mjs";import"./cli-1.1.17-5ckk64dj.mjs";import"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-tcxq0ah8.mjs";import"./cli-1.1.17-66c4sw6g.mjs";import"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-q6fve29k.mjs";import"./cli-1.1.17-7n4s8n50.mjs";import"./cli-1.1.17-jyzpxwq4.mjs";import"./cli-1.1.17-6rx20w90.mjs";import"./cli-1.1.17-8ae45qsd.mjs";import{c4 as F,d4 as H,e4 as _}from"./cli-1.1.17-545688c0.mjs";import{f4 as zJ}from"./cli-1.1.17-40gj2tc0.mjs";import"./cli-1.1.17-bw4gf7se.mjs";import"./cli-1.1.17-ja7d18ym.mjs";import"./cli-1.1.17-q7f9amqd.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-e8bd5mhc.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import"./cli-1.1.17-qwkbwe37.mjs";import{Nba as j,Oba as p,Zea as C,eca as ZJ,vfa as FJ}from"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import{Gla as YJ,zla as f}from"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import{fta as R,jta as XJ}from"./cli-1.1.17-6ee0nqae.mjs";function BJ(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}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=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(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.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),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{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(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(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(qJ(V.messages)),Y=c();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:u(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 C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{DX as p,EX as f,FX as a,GX as S}from"./cli-1.1.17-j0rsgbr3.mjs";import{Zea as d,vfa as C}from"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import{Lja as m,Mja as y,Nja as b}from"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import{jta as g}from"./cli-1.1.17-6ee0nqae.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,21 @@
1
+ import{R2 as h,V2 as zz}from"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import{G6 as m,e7 as e}from"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import{Dga as s,Gga as v,Jga as r,vga as y}from"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import{$ka as k,cla as o}from"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import{xra as a,yna as b}from"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import{jta as n}from"./cli-1.1.17-6ee0nqae.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
2
+
3
+ `)){let w=B.split(`
4
+ `).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
5
+ `));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
6
+ `);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
7
+ `)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
8
+ `)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
9
+ For GitHub Copilot: run /provider and choose GitHub Copilot.
10
+ For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
11
+ `);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
12
+ ${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
13
+ ${z.error.slice(0,300)}
14
+
15
+ Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
16
+ ${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
17
+ Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
18
+ `));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
+ `)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
20
+
21
+ `)});Qz();export{jz as call};
@@ -0,0 +1,4 @@
1
+ import{$2 as $,Z2 as L,_2 as P,d3 as Q,e3 as U,f3 as V,g3 as j}from"./cli-1.1.17-q6fve29k.mjs";import{jta as Z}from"./cli-1.1.17-6ee0nqae.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{ai as a,bi as b}from"./cli-1.1.17-zsygz35e.mjs";import"./cli-1.1.17-0d7fthp5.mjs";import"./cli-1.1.17-j7w7vk9q.mjs";import"./cli-1.1.17-tjtarhk9.mjs";import"./cli-1.1.17-3v5m3zqf.mjs";import"./cli-1.1.17-k4cv7tcx.mjs";import"./cli-1.1.17-ymeaeqf8.mjs";import"./cli-1.1.17-6e7rvf1a.mjs";import"./cli-1.1.17-kk19mmhc.mjs";import"./cli-1.1.17-spygywkr.mjs";import"./cli-1.1.17-sf4te5vd.mjs";import"./cli-1.1.17-sh93pnws.mjs";import"./cli-1.1.17-avc9ck1v.mjs";import"./cli-1.1.17-9rtpxyk6.mjs";import"./cli-1.1.17-bzw849yw.mjs";import"./cli-1.1.17-d8zh7smn.mjs";import"./cli-1.1.17-3z8hnad1.mjs";import"./cli-1.1.17-4egkrc4y.mjs";import"./cli-1.1.17-c4wdrmzx.mjs";import"./cli-1.1.17-9wgw338h.mjs";import"./cli-1.1.17-j0rsgbr3.mjs";import"./cli-1.1.17-k2ygh79g.mjs";import"./cli-1.1.17-sx4yg7br.mjs";import"./cli-1.1.17-yexr9jg1.mjs";import"./cli-1.1.17-n4xn5c5m.mjs";import"./cli-1.1.17-h899gx3g.mjs";import"./cli-1.1.17-5ckk64dj.mjs";import"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-tcxq0ah8.mjs";import"./cli-1.1.17-66c4sw6g.mjs";import"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-q6fve29k.mjs";import"./cli-1.1.17-7n4s8n50.mjs";import"./cli-1.1.17-jyzpxwq4.mjs";import"./cli-1.1.17-6rx20w90.mjs";import"./cli-1.1.17-8ae45qsd.mjs";import"./cli-1.1.17-545688c0.mjs";import"./cli-1.1.17-40gj2tc0.mjs";import"./cli-1.1.17-bw4gf7se.mjs";import"./cli-1.1.17-ja7d18ym.mjs";import"./cli-1.1.17-q7f9amqd.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-e8bd5mhc.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import"./cli-1.1.17-qwkbwe37.mjs";import"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import"./cli-1.1.17-6ee0nqae.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{$aa as N,Aca as A,M$ as V,N$ as W,O$ as J,Vga as X,Waa as k,bha as H,xca as x}from"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import{Ala as b,Gla as y}from"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-6ee0nqae.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 v(){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{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{$T as m,PT as a,QT as b,RT as c,ST as d,TT as e,UT as f,VT as g,WT as h,XT as i,YT as j,ZT as k,_T as l,aU as n,bU as o,cU as p,dU as q,eU as r}from"./cli-1.1.17-tjtarhk9.mjs";import"./cli-1.1.17-3v5m3zqf.mjs";import"./cli-1.1.17-k4cv7tcx.mjs";import"./cli-1.1.17-ymeaeqf8.mjs";import"./cli-1.1.17-6e7rvf1a.mjs";import"./cli-1.1.17-kk19mmhc.mjs";import"./cli-1.1.17-spygywkr.mjs";import"./cli-1.1.17-sf4te5vd.mjs";import"./cli-1.1.17-sh93pnws.mjs";import"./cli-1.1.17-avc9ck1v.mjs";import"./cli-1.1.17-9rtpxyk6.mjs";import"./cli-1.1.17-bzw849yw.mjs";import"./cli-1.1.17-d8zh7smn.mjs";import"./cli-1.1.17-3z8hnad1.mjs";import"./cli-1.1.17-4egkrc4y.mjs";import"./cli-1.1.17-c4wdrmzx.mjs";import"./cli-1.1.17-9wgw338h.mjs";import"./cli-1.1.17-j0rsgbr3.mjs";import"./cli-1.1.17-k2ygh79g.mjs";import"./cli-1.1.17-sx4yg7br.mjs";import"./cli-1.1.17-yexr9jg1.mjs";import"./cli-1.1.17-n4xn5c5m.mjs";import"./cli-1.1.17-h899gx3g.mjs";import"./cli-1.1.17-5ckk64dj.mjs";import"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-tcxq0ah8.mjs";import"./cli-1.1.17-66c4sw6g.mjs";import"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-q6fve29k.mjs";import"./cli-1.1.17-7n4s8n50.mjs";import"./cli-1.1.17-jyzpxwq4.mjs";import"./cli-1.1.17-6rx20w90.mjs";import"./cli-1.1.17-8ae45qsd.mjs";import"./cli-1.1.17-545688c0.mjs";import"./cli-1.1.17-40gj2tc0.mjs";import"./cli-1.1.17-bw4gf7se.mjs";import"./cli-1.1.17-ja7d18ym.mjs";import"./cli-1.1.17-q7f9amqd.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-e8bd5mhc.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import"./cli-1.1.17-qwkbwe37.mjs";import"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import"./cli-1.1.17-6ee0nqae.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -0,0 +1 @@
1
+ import{$h as h,_h as b}from"./cli-1.1.17-bw27qnmm.mjs";import"./cli-1.1.17-zsygz35e.mjs";import"./cli-1.1.17-qr727b7j.mjs";import"./cli-1.1.17-0d7fthp5.mjs";import"./cli-1.1.17-j7w7vk9q.mjs";import"./cli-1.1.17-tjtarhk9.mjs";import"./cli-1.1.17-3v5m3zqf.mjs";import"./cli-1.1.17-k4cv7tcx.mjs";import"./cli-1.1.17-ymeaeqf8.mjs";import"./cli-1.1.17-6e7rvf1a.mjs";import"./cli-1.1.17-kk19mmhc.mjs";import"./cli-1.1.17-spygywkr.mjs";import"./cli-1.1.17-sf4te5vd.mjs";import"./cli-1.1.17-sh93pnws.mjs";import"./cli-1.1.17-avc9ck1v.mjs";import"./cli-1.1.17-9rtpxyk6.mjs";import"./cli-1.1.17-bzw849yw.mjs";import"./cli-1.1.17-d8zh7smn.mjs";import"./cli-1.1.17-3z8hnad1.mjs";import"./cli-1.1.17-4egkrc4y.mjs";import"./cli-1.1.17-c4wdrmzx.mjs";import"./cli-1.1.17-9wgw338h.mjs";import"./cli-1.1.17-j0rsgbr3.mjs";import"./cli-1.1.17-k2ygh79g.mjs";import"./cli-1.1.17-sx4yg7br.mjs";import"./cli-1.1.17-yexr9jg1.mjs";import"./cli-1.1.17-n4xn5c5m.mjs";import"./cli-1.1.17-h899gx3g.mjs";import"./cli-1.1.17-5ckk64dj.mjs";import"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-tcxq0ah8.mjs";import"./cli-1.1.17-66c4sw6g.mjs";import"./cli-1.1.17-nr1fn5ws.mjs";import"./cli-1.1.17-q6fve29k.mjs";import"./cli-1.1.17-7n4s8n50.mjs";import"./cli-1.1.17-jyzpxwq4.mjs";import"./cli-1.1.17-6rx20w90.mjs";import"./cli-1.1.17-8ae45qsd.mjs";import"./cli-1.1.17-545688c0.mjs";import"./cli-1.1.17-40gj2tc0.mjs";import"./cli-1.1.17-bw4gf7se.mjs";import"./cli-1.1.17-ja7d18ym.mjs";import"./cli-1.1.17-q7f9amqd.mjs";import"./cli-1.1.17-2pvpn49s.mjs";import"./cli-1.1.17-cvtpmgr1.mjs";import"./cli-1.1.17-1nxc4dk2.mjs";import"./cli-1.1.17-44fk8h9v.mjs";import"./cli-1.1.17-fzsavwtg.mjs";import"./cli-1.1.17-e8bd5mhc.mjs";import"./cli-1.1.17-5rfxkg0q.mjs";import"./cli-1.1.17-qwkbwe37.mjs";import"./cli-1.1.17-pmner0m4.mjs";import"./cli-1.1.17-6yqbrqsj.mjs";import"./cli-1.1.17-g8x1ae0n.mjs";import"./cli-1.1.17-5ytk3hr5.mjs";import"./cli-1.1.17-gz7gazer.mjs";import"./cli-1.1.17-amvnbvkb.mjs";import"./cli-1.1.17-gbx2evhw.mjs";import"./cli-1.1.17-zeqbjpg8.mjs";import"./cli-1.1.17-h68j8yr4.mjs";import"./cli-1.1.17-2bc3gqw5.mjs";import"./cli-1.1.17-f0f3ww1e.mjs";import"./cli-1.1.17-w8ycz611.mjs";import"./cli-1.1.17-db7epgkw.mjs";import"./cli-1.1.17-d9y6k8vc.mjs";import"./cli-1.1.17-fpt9fhj3.mjs";import"./cli-1.1.17-jfrmnvzh.mjs";import"./cli-1.1.17-sekbxc10.mjs";import"./cli-1.1.17-gy86radb.mjs";import"./cli-1.1.17-hv7vtr92.mjs";import{jta as g}from"./cli-1.1.17-6ee0nqae.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
@@ -0,0 +1 @@
1
+ import{t2 as a,u2 as b,v2 as c}from"./cli-1.1.17-hk50rvfx.mjs";import"./cli-1.1.17-6ee0nqae.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{CN as Q,DN as $}from"./cli-1.1.17-tjtarhk9.mjs";import{fma as V,gma as P,hna as W,ina as E}from"./cli-1.1.17-d9y6k8vc.mjs";import{jta as L}from"./cli-1.1.17-6ee0nqae.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as bd,C as cd};
@@ -0,0 +1,2 @@
1
+ import{jta as o}from"./cli-1.1.17-6ee0nqae.mjs";var l=()=>null,e;var n=o(()=>{e=l});
2
+ export{e as Vi,n as Wi};
@@ -0,0 +1,2 @@
1
+ import{jta as B}from"./cli-1.1.17-6ee0nqae.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as Ii,C as Ji};
@@ -0,0 +1,58 @@
1
+ import{ED as U,FD as p,Gr as F,Jr as m,MR as P,UB as O,VB as I,dS as a,mj as $,pj as h,tK as A}from"./cli-1.1.17-tjtarhk9.mjs";import{J4 as b,K4 as T}from"./cli-1.1.17-cvtpmgr1.mjs";import{Nka as R,Rka as x}from"./cli-1.1.17-2bc3gqw5.mjs";import{Ela as k,Gla as M}from"./cli-1.1.17-w8ycz611.mjs";import{Jla as N,Ula as _}from"./cli-1.1.17-db7epgkw.mjs";import{jta as v}from"./cli-1.1.17-6ee0nqae.mjs";import{join as E}from"path";function g(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function D(){let w=R(),z=E(N(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return g()}}function f(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function S(w,z,B,J){let Y=await D(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return f(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var y=v(()=>{_();x()});function Xw(){G.clear()}function r(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(l);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function d(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=F(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await U.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=r(q);if(!H){G.delete(w.path);return}let L=await S(q,w.path,H.title,H.instructions),C=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let j=W.file_path;if(typeof j==="string"&&j===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of O({agentDefinition:d(),promptMessages:[A({content:L})],toolUseContext:Z,canUseTool:C,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,l,G,Yw;var s=v(()=>{I();h();p();M();m();a();T();y();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,l=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
+ export{Xw as ii,Zw as ji,s as ki};
@@ -0,0 +1,2 @@
1
+ import{Afa as P,Hfa as k,Tfa as f,Zea as M,afa as L,ufa as G,vfa as h,zfa as v}from"./cli-1.1.17-pmner0m4.mjs";import{Oja as E,Xja as x}from"./cli-1.1.17-zeqbjpg8.mjs";import{Jla as T,Ula as u}from"./cli-1.1.17-db7epgkw.mjs";import{jta as C}from"./cli-1.1.17-6ee0nqae.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as wc,Wj as xc,e as yc,Xj as zc,Yj as Ac,jj as Bc};