@claudiolabs/claudin 1.0.6 → 1.0.7

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 (906) hide show
  1. package/dist/chunks/AgentTool-1.0.7-syk5wnkb.mjs +1 -0
  2. package/dist/chunks/App-1.0.7-9xht4gsa.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.7-dnv7dmn7.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.7-q24ws7x8.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.7-e3kma94j.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.7-2m1y9b7f.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.7-1gpcb873.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.7-pyrnmhtt.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.7-whkynyby.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.7-3yedapcw.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.7-99ytgtp8.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.7-c6wygjxb.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.7-a8a42yx1.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.7-0e1f33ss.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.7-141f7djg.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.7-scbcqde5.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.7-9f7rpy9p.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.7-6mjnccee.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.7-3xhews8d.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.7-qq2sfpfr.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.7-x9djv2x5.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.7-f6caprdb.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.7-b511561j.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.7-9twx384a.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.7-x3j2hxpn.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.7-1y7h6yxr.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.7-na359dm9.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.7-2vx6krky.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.7-r9eb0fmb.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.7-v46w2p6e.mjs +1 -0
  31. package/dist/chunks/agents-1.0.7-ekjscjc4.mjs +3 -0
  32. package/dist/chunks/agents-1.0.7-v22jz68n.mjs +110 -0
  33. package/dist/chunks/api-1.0.7-v520kz7p.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.7-r61pgxmk.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.7-c12zzeyg.mjs +1 -0
  36. package/dist/chunks/auth-1.0.7-gv0th62c.mjs +1 -0
  37. package/dist/chunks/auth-1.0.7-y9sxvs6e.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.7-yq0m3sf6.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.7-6fqzjxwg.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.7-7mzhb52b.mjs +1 -0
  41. package/dist/chunks/branch-1.0.7-66ms82bv.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.7-cd3w20b9.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.7-wztmwmxc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.7-046e65f0.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.7-knt8h92j.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.7-v2crbecf.mjs +1 -0
  47. package/dist/chunks/btw-1.0.7-eg973xg5.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.7-ypvr18ck.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.7-0tzh2dcw.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.7-hhfr94gj.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.7-51t2bh05.mjs +4 -0
  52. package/dist/chunks/caches-1.0.7-mvqghhkx.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.7-1mrhcxq6.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.7-kgynnx5a.mjs +1 -0
  55. package/dist/chunks/clear-1.0.7-08jf28zt.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.7-z4gkskcj.mjs +1 -0
  57. package/dist/chunks/cli-1.0.7-01cbaw74.mjs +2 -0
  58. package/dist/chunks/cli-1.0.7-05enwpnp.mjs +2 -0
  59. package/dist/chunks/cli-1.0.7-073ekpkk.mjs +21 -0
  60. package/dist/chunks/cli-1.0.7-0dmnsy4c.mjs +2 -0
  61. package/dist/chunks/cli-1.0.7-0qbp0ac0.mjs +17 -0
  62. package/dist/chunks/cli-1.0.7-15qvkn0q.mjs +15 -0
  63. package/dist/chunks/cli-1.0.7-16wdg8r0.mjs +18 -0
  64. package/dist/chunks/cli-1.0.7-1fwxyw8s.mjs +2 -0
  65. package/dist/chunks/cli-1.0.7-1j68v2d8.mjs +3 -0
  66. package/dist/chunks/cli-1.0.7-1mkaw3aw.mjs +2 -0
  67. package/dist/chunks/cli-1.0.7-1r1y3a1c.mjs +2 -0
  68. package/dist/chunks/cli-1.0.7-1rw3xdy0.mjs +58 -0
  69. package/dist/chunks/cli-1.0.7-1s12ckef.mjs +2 -0
  70. package/dist/chunks/cli-1.0.7-1sgef4sw.mjs +2 -0
  71. package/dist/chunks/cli-1.0.7-1ty38mre.mjs +2 -0
  72. package/dist/chunks/cli-1.0.7-1xe7m9s1.mjs +4 -0
  73. package/dist/chunks/cli-1.0.7-1y8xdp9n.mjs +2 -0
  74. package/dist/chunks/cli-1.0.7-2438cvr1.mjs +3 -0
  75. package/dist/chunks/cli-1.0.7-2cajdt14.mjs +2 -0
  76. package/dist/chunks/cli-1.0.7-2csh6jt3.mjs +2 -0
  77. package/dist/chunks/cli-1.0.7-2k1bt916.mjs +2 -0
  78. package/dist/chunks/cli-1.0.7-2pyjzmpq.mjs +2 -0
  79. package/dist/chunks/cli-1.0.7-2wm3s497.mjs +2 -0
  80. package/dist/chunks/cli-1.0.7-2xw882yk.mjs +2 -0
  81. package/dist/chunks/cli-1.0.7-39nnxy0p.mjs +2 -0
  82. package/dist/chunks/cli-1.0.7-3arv8y4s.mjs +12 -0
  83. package/dist/chunks/cli-1.0.7-3fx5xqzq.mjs +2 -0
  84. package/dist/chunks/cli-1.0.7-3ke0fbeq.mjs +6 -0
  85. package/dist/chunks/cli-1.0.7-3kmf6s21.mjs +67 -0
  86. package/dist/chunks/cli-1.0.7-3p608q44.mjs +2 -0
  87. package/dist/chunks/cli-1.0.7-3pqhf5bj.mjs +4 -0
  88. package/dist/chunks/cli-1.0.7-3qnpcgyc.mjs +2 -0
  89. package/dist/chunks/cli-1.0.7-3s41c41h.mjs +20 -0
  90. package/dist/chunks/cli-1.0.7-3s4ccas2.mjs +2 -0
  91. package/dist/chunks/cli-1.0.7-3xrc45nn.mjs +2 -0
  92. package/dist/chunks/cli-1.0.7-3z1z90gf.mjs +4 -0
  93. package/dist/chunks/cli-1.0.7-41jm6paw.mjs +2 -0
  94. package/dist/chunks/cli-1.0.7-45px4q2q.mjs +12 -0
  95. package/dist/chunks/cli-1.0.7-4a67zfe7.mjs +2 -0
  96. package/dist/chunks/cli-1.0.7-4qwjg996.mjs +2 -0
  97. package/dist/chunks/cli-1.0.7-538yatrk.mjs +2 -0
  98. package/dist/chunks/cli-1.0.7-5f0y2nxn.mjs +2 -0
  99. package/dist/chunks/cli-1.0.7-5h2vgm7b.mjs +2 -0
  100. package/dist/chunks/cli-1.0.7-5kc9g0m9.mjs +3 -0
  101. package/dist/chunks/cli-1.0.7-5rxjz9r1.mjs +2 -0
  102. package/dist/chunks/cli-1.0.7-65xw81pn.mjs +7 -0
  103. package/dist/chunks/cli-1.0.7-67z7m1zx.mjs +15 -0
  104. package/dist/chunks/cli-1.0.7-6ncp8ban.mjs +2 -0
  105. package/dist/chunks/cli-1.0.7-6r3vkkzw.mjs +2 -0
  106. package/dist/chunks/cli-1.0.7-6wm7jzey.mjs +2 -0
  107. package/dist/chunks/cli-1.0.7-6yr2e385.mjs +2 -0
  108. package/dist/chunks/cli-1.0.7-73e5dz55.mjs +2 -0
  109. package/dist/chunks/cli-1.0.7-757ex32c.mjs +199 -0
  110. package/dist/chunks/cli-1.0.7-7egbzjdg.mjs +12 -0
  111. package/dist/chunks/cli-1.0.7-7gmv86pv.mjs +25 -0
  112. package/dist/chunks/cli-1.0.7-7qm9503t.mjs +4 -0
  113. package/dist/chunks/cli-1.0.7-7xhry9cz.mjs +8 -0
  114. package/dist/chunks/cli-1.0.7-7yrvwwdb.mjs +2 -0
  115. package/dist/chunks/cli-1.0.7-84dx5y2m.mjs +2 -0
  116. package/dist/chunks/cli-1.0.7-8fj15s8a.mjs +2 -0
  117. package/dist/chunks/cli-1.0.7-8hepstgz.mjs +2 -0
  118. package/dist/chunks/cli-1.0.7-8pfh7aha.mjs +2 -0
  119. package/dist/chunks/cli-1.0.7-96mb1gmj.mjs +2 -0
  120. package/dist/chunks/cli-1.0.7-96qpk0ct.mjs +2 -0
  121. package/dist/chunks/cli-1.0.7-97fqbfff.mjs +2 -0
  122. package/dist/chunks/cli-1.0.7-9p7hfa00.mjs +2 -0
  123. package/dist/chunks/cli-1.0.7-9pc6jb5f.mjs +2 -0
  124. package/dist/chunks/cli-1.0.7-9ws1j17m.mjs +2 -0
  125. package/dist/chunks/cli-1.0.7-a32vv8nk.mjs +2 -0
  126. package/dist/chunks/cli-1.0.7-a78rj0kd.mjs +9 -0
  127. package/dist/chunks/cli-1.0.7-a7fahcda.mjs +2 -0
  128. package/dist/chunks/cli-1.0.7-a808xdj3.mjs +3 -0
  129. package/dist/chunks/cli-1.0.7-aa7vfbxa.mjs +2 -0
  130. package/dist/chunks/cli-1.0.7-af1m1akw.mjs +2 -0
  131. package/dist/chunks/cli-1.0.7-akbc4ch3.mjs +2 -0
  132. package/dist/chunks/cli-1.0.7-an2jwvew.mjs +9 -0
  133. package/dist/chunks/cli-1.0.7-anrcmph3.mjs +3 -0
  134. package/dist/chunks/cli-1.0.7-av93xde0.mjs +2 -0
  135. package/dist/chunks/cli-1.0.7-b16t7f1a.mjs +2 -0
  136. package/dist/chunks/cli-1.0.7-b2pf78c9.mjs +2 -0
  137. package/dist/chunks/cli-1.0.7-b778v1dh.mjs +2 -0
  138. package/dist/chunks/cli-1.0.7-baqj15a8.mjs +2 -0
  139. package/dist/chunks/cli-1.0.7-bfe6f9c6.mjs +2 -0
  140. package/dist/chunks/cli-1.0.7-bkm2xek7.mjs +2 -0
  141. package/dist/chunks/cli-1.0.7-bn0sb2w7.mjs +2 -0
  142. package/dist/chunks/cli-1.0.7-c8kxp6h0.mjs +2 -0
  143. package/dist/chunks/cli-1.0.7-cb42m3ff.mjs +2 -0
  144. package/dist/chunks/cli-1.0.7-cf47wta1.mjs +2 -0
  145. package/dist/chunks/cli-1.0.7-cs7epg9a.mjs +2 -0
  146. package/dist/chunks/cli-1.0.7-d1zc020r.mjs +133 -0
  147. package/dist/chunks/cli-1.0.7-d3txxwh5.mjs +2 -0
  148. package/dist/chunks/cli-1.0.7-dbyr517p.mjs +4 -0
  149. package/dist/chunks/cli-1.0.7-ddhhvx60.mjs +2 -0
  150. package/dist/chunks/cli-1.0.7-df9p9tj8.mjs +24 -0
  151. package/dist/chunks/cli-1.0.7-dhdv7vtc.mjs +50 -0
  152. package/dist/chunks/cli-1.0.7-dnn18rgf.mjs +2 -0
  153. package/dist/chunks/cli-1.0.7-dr2dca7n.mjs +2 -0
  154. package/dist/chunks/cli-1.0.7-f43w1f9g.mjs +42 -0
  155. package/dist/chunks/cli-1.0.7-f6490vr3.mjs +2 -0
  156. package/dist/chunks/cli-1.0.7-fcfrsawp.mjs +2 -0
  157. package/dist/chunks/cli-1.0.7-fckzct0z.mjs +2 -0
  158. package/dist/chunks/cli-1.0.7-ff6dfmp3.mjs +2 -0
  159. package/dist/chunks/cli-1.0.7-fmdws8pg.mjs +2 -0
  160. package/dist/chunks/cli-1.0.7-fvr9xx0m.mjs +2 -0
  161. package/dist/chunks/cli-1.0.7-g1hrx2r5.mjs +18 -0
  162. package/dist/chunks/cli-1.0.7-g42rsvs5.mjs +2 -0
  163. package/dist/chunks/cli-1.0.7-g6d9snde.mjs +3 -0
  164. package/dist/chunks/cli-1.0.7-ga6hk3n2.mjs +3 -0
  165. package/dist/chunks/cli-1.0.7-ghxmw318.mjs +2 -0
  166. package/dist/chunks/cli-1.0.7-gj1806bk.mjs +2 -0
  167. package/dist/chunks/cli-1.0.7-gk53nva2.mjs +2 -0
  168. package/dist/chunks/cli-1.0.7-gnwjbdch.mjs +2 -0
  169. package/dist/chunks/cli-1.0.7-gp71tfwe.mjs +2 -0
  170. package/dist/chunks/cli-1.0.7-gq9fp39n.mjs +2 -0
  171. package/dist/chunks/cli-1.0.7-gqf40mqk.mjs +24 -0
  172. package/dist/chunks/cli-1.0.7-h1g9rk4g.mjs +4 -0
  173. package/dist/chunks/cli-1.0.7-hd6xn6rt.mjs +2 -0
  174. package/dist/chunks/cli-1.0.7-hfcehnx9.mjs +3 -0
  175. package/dist/chunks/cli-1.0.7-hw8dxgj2.mjs +2 -0
  176. package/dist/chunks/cli-1.0.7-j31m0f1y.mjs +2 -0
  177. package/dist/chunks/cli-1.0.7-j6hxvf4r.mjs +2 -0
  178. package/dist/chunks/cli-1.0.7-j6ndkfy3.mjs +2 -0
  179. package/dist/chunks/cli-1.0.7-jn7nay2r.mjs +2 -0
  180. package/dist/chunks/cli-1.0.7-jz4phmb3.mjs +3 -0
  181. package/dist/chunks/cli-1.0.7-k38j6sgc.mjs +2 -0
  182. package/dist/chunks/cli-1.0.7-k3nnbdbv.mjs +2 -0
  183. package/dist/chunks/cli-1.0.7-kegj01e5.mjs +133 -0
  184. package/dist/chunks/cli-1.0.7-kf237s65.mjs +2 -0
  185. package/dist/chunks/cli-1.0.7-kgbv7bt5.mjs +17 -0
  186. package/dist/chunks/cli-1.0.7-khd0yqhk.mjs +2 -0
  187. package/dist/chunks/cli-1.0.7-m17d94h8.mjs +2 -0
  188. package/dist/chunks/cli-1.0.7-mcmpb4cd.mjs +2 -0
  189. package/dist/chunks/cli-1.0.7-mv7ptsre.mjs +2 -0
  190. package/dist/chunks/cli-1.0.7-mwj9f8rw.mjs +59 -0
  191. package/dist/chunks/cli-1.0.7-mznh91ce.mjs +2 -0
  192. package/dist/chunks/cli-1.0.7-n5hf2vsh.mjs +2 -0
  193. package/dist/chunks/cli-1.0.7-na7ksfyj.mjs +2 -0
  194. package/dist/chunks/cli-1.0.7-nhg85avf.mjs +2 -0
  195. package/dist/chunks/cli-1.0.7-nnd4za11.mjs +3 -0
  196. package/dist/chunks/cli-1.0.7-p4p38dky.mjs +3 -0
  197. package/dist/chunks/cli-1.0.7-p5setvdk.mjs +2 -0
  198. package/dist/chunks/cli-1.0.7-ph9qjcjb.mjs +2 -0
  199. package/dist/chunks/cli-1.0.7-pxmf9kyf.mjs +2 -0
  200. package/dist/chunks/cli-1.0.7-pyacw9kn.mjs +5 -0
  201. package/dist/chunks/cli-1.0.7-q3ezj6q3.mjs +2 -0
  202. package/dist/chunks/cli-1.0.7-q7w0ex1x.mjs +2 -0
  203. package/dist/chunks/cli-1.0.7-qdtt526e.mjs +2 -0
  204. package/dist/chunks/cli-1.0.7-qjtqaam0.mjs +2 -0
  205. package/dist/chunks/cli-1.0.7-qknq8k3p.mjs +2 -0
  206. package/dist/chunks/cli-1.0.7-qmm35cv2.mjs +39 -0
  207. package/dist/chunks/cli-1.0.7-qxjpkptr.mjs +2 -0
  208. package/dist/chunks/cli-1.0.7-r4h75bn4.mjs +2 -0
  209. package/dist/chunks/cli-1.0.7-rbrr75z2.mjs +2 -0
  210. package/dist/chunks/cli-1.0.7-rz8h7nks.mjs +2 -0
  211. package/dist/chunks/cli-1.0.7-s11nkveb.mjs +24 -0
  212. package/dist/chunks/cli-1.0.7-s27f8y4p.mjs +2 -0
  213. package/dist/chunks/cli-1.0.7-s5mhxbhn.mjs +5476 -0
  214. package/dist/chunks/cli-1.0.7-s6jjnyxd.mjs +2 -0
  215. package/dist/chunks/cli-1.0.7-s8e8tq3y.mjs +2 -0
  216. package/dist/chunks/cli-1.0.7-sjpx2md1.mjs +2 -0
  217. package/dist/chunks/cli-1.0.7-skm59maw.mjs +2 -0
  218. package/dist/chunks/cli-1.0.7-sv4vj25b.mjs +2 -0
  219. package/dist/chunks/cli-1.0.7-t8m8vafg.mjs +4 -0
  220. package/dist/chunks/cli-1.0.7-tf8b1vhx.mjs +2 -0
  221. package/dist/chunks/cli-1.0.7-tvz0kwb6.mjs +25 -0
  222. package/dist/chunks/cli-1.0.7-txhggtd1.mjs +16 -0
  223. package/dist/chunks/cli-1.0.7-tz22r50p.mjs +2 -0
  224. package/dist/chunks/cli-1.0.7-vcsdnmc0.mjs +2 -0
  225. package/dist/chunks/cli-1.0.7-veqj11zy.mjs +3 -0
  226. package/dist/chunks/cli-1.0.7-vjgedfc4.mjs +2 -0
  227. package/dist/chunks/cli-1.0.7-vtd2sbnq.mjs +3 -0
  228. package/dist/chunks/cli-1.0.7-vw4n13wr.mjs +2 -0
  229. package/dist/chunks/cli-1.0.7-vx0rcgfm.mjs +2 -0
  230. package/dist/chunks/cli-1.0.7-w3g8c9m3.mjs +18 -0
  231. package/dist/chunks/cli-1.0.7-wahp9jjm.mjs +5 -0
  232. package/dist/chunks/cli-1.0.7-wc28nq81.mjs +6 -0
  233. package/dist/chunks/cli-1.0.7-wc4y0k3e.mjs +12 -0
  234. package/dist/chunks/cli-1.0.7-wgt5ay2x.mjs +6 -0
  235. package/dist/chunks/cli-1.0.7-wk9hs648.mjs +2 -0
  236. package/dist/chunks/cli-1.0.7-wmrv4paj.mjs +45 -0
  237. package/dist/chunks/cli-1.0.7-wqrgw4kw.mjs +2 -0
  238. package/dist/chunks/cli-1.0.7-ws7404wd.mjs +2 -0
  239. package/dist/chunks/cli-1.0.7-wwy64zs8.mjs +4 -0
  240. package/dist/chunks/cli-1.0.7-xdt2g9p7.mjs +2 -0
  241. package/dist/chunks/cli-1.0.7-xga48xv7.mjs +2 -0
  242. package/dist/chunks/cli-1.0.7-xh0afj9p.mjs +2 -0
  243. package/dist/chunks/cli-1.0.7-xhb3g1xh.mjs +2 -0
  244. package/dist/chunks/cli-1.0.7-xtj9j6ha.mjs +15 -0
  245. package/dist/chunks/cli-1.0.7-xvhkprcw.mjs +2 -0
  246. package/dist/chunks/cli-1.0.7-xxa9e3we.mjs +4 -0
  247. package/dist/chunks/cli-1.0.7-y8sq6jh3.mjs +4 -0
  248. package/dist/chunks/cli-1.0.7-y94dd4yd.mjs +2 -0
  249. package/dist/chunks/cli-1.0.7-yatztvfp.mjs +2 -0
  250. package/dist/chunks/cli-1.0.7-yb9sxq0k.mjs +2 -0
  251. package/dist/chunks/cli-1.0.7-ybcht1kp.mjs +2 -0
  252. package/dist/chunks/cli-1.0.7-yc90byps.mjs +34 -0
  253. package/dist/chunks/cli-1.0.7-yyqg2waz.mjs +2 -0
  254. package/dist/chunks/cli-1.0.7-z53gtmpk.mjs +6 -0
  255. package/dist/chunks/cli-1.0.7-z5vgrn57.mjs +2 -0
  256. package/dist/chunks/cli-1.0.7-z9fvy0d8.mjs +2 -0
  257. package/dist/chunks/cli-1.0.7-zjapdrt8.mjs +6 -0
  258. package/dist/chunks/cli-1.0.7-zmqm6p6t.mjs +2 -0
  259. package/dist/chunks/cli-1.0.7-zsbst1mq.mjs +1 -0
  260. package/dist/chunks/cli-1.0.7-zwr4ga8c.mjs +2 -0
  261. package/dist/chunks/client-1.0.7-n8414pey.mjs +1 -0
  262. package/dist/chunks/color-1.0.7-99fmrmyq.mjs +1 -0
  263. package/dist/chunks/compact-1.0.7-91sa41px.mjs +3 -0
  264. package/dist/chunks/config-1.0.7-bjt981nd.mjs +1 -0
  265. package/dist/chunks/config-1.0.7-vfbd76cq.mjs +1 -0
  266. package/dist/chunks/constants-1.0.7-fj97y7dq.mjs +1 -0
  267. package/dist/chunks/context-1.0.7-qmktq4pg.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.0.7-w9828p3h.mjs +1 -0
  269. package/dist/chunks/conversation-1.0.7-d5q8rrwx.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.0.7-mhsm6qwp.mjs +1 -0
  271. package/dist/chunks/copy-1.0.7-hznd9dqf.mjs +9 -0
  272. package/dist/chunks/cost-1.0.7-hbpz16jx.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.0.7-5s4sy0qv.mjs +1 -0
  274. package/dist/chunks/createSession-1.0.7-mha5sscw.mjs +1 -0
  275. package/dist/chunks/debug-1.0.7-6kcgjwgp.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.0.7-5x2a3qnr.mjs +1446 -0
  277. package/dist/chunks/desktop-1.0.7-37m19pef.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.0.7-3ffa7wfs.mjs +1 -0
  279. package/dist/chunks/detection-1.0.7-bcwz3kz9.mjs +1 -0
  280. package/dist/chunks/diff-1.0.7-60vwaapm.mjs +1 -0
  281. package/dist/chunks/doctor-1.0.7-bc3r1p04.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.0.7-qe18rzqr.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.0.7-51cxad4b.mjs +1 -0
  284. package/dist/chunks/effort-1.0.7-mckjwtdk.mjs +10 -0
  285. package/dist/chunks/engine-1.0.7-1kqhk6mc.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.0.7-hbpge4a8.mjs +1 -0
  287. package/dist/chunks/envUtils-1.0.7-m63cpkg3.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.0.7-kg2xnt7t.mjs +1 -0
  289. package/dist/chunks/environments-1.0.7-jcrcam7e.mjs +1 -0
  290. package/dist/chunks/errors-1.0.7-vhtw6kg6.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.0.7-f254y3tf.mjs +1 -0
  292. package/dist/chunks/exit-1.0.7-f5s73g22.mjs +1 -0
  293. package/dist/chunks/explorer-1.0.7-yjpphptq.mjs +1 -0
  294. package/dist/chunks/export-1.0.7-7kn40p9m.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.0.7-xwb7xfe4.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.0.7-0dpsjjh0.mjs +1 -0
  297. package/dist/chunks/fast-1.0.7-9eg9g1mf.mjs +1 -0
  298. package/dist/chunks/feedback-1.0.7-kkw4fdj8.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.0.7-yaekw6be.mjs +1 -0
  300. package/dist/chunks/git-1.0.7-t3824xkx.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.0.7-m79e1ga1.mjs +1 -0
  302. package/dist/chunks/goal-1.0.7-jkmcdmm1.mjs +4 -0
  303. package/dist/chunks/grove-1.0.7-th5kn0n5.mjs +1 -0
  304. package/dist/chunks/growthbook-1.0.7-hnr2hv9t.mjs +1 -0
  305. package/dist/chunks/headless-1.0.7-2w17kqac.mjs +2 -0
  306. package/dist/chunks/heapdump-1.0.7-1qvsds14.mjs +6 -0
  307. package/dist/chunks/help-1.0.7-33ennxwb.mjs +1 -0
  308. package/dist/chunks/hookChains-1.0.7-8gt4r1qg.mjs +3 -0
  309. package/dist/chunks/hooks-1.0.7-970fsrks.mjs +1 -0
  310. package/dist/chunks/hooks-1.0.7-xyrevnk8.mjs +79 -0
  311. package/dist/chunks/ide-1.0.7-knfed9xe.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.0.7-5c1fwxwf.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.0.7-5p98j8m2.mjs +1 -0
  314. package/dist/chunks/index-1.0.7-0ce2q3me.mjs +17 -0
  315. package/dist/chunks/index-1.0.7-3tbze0ns.mjs +1 -0
  316. package/dist/chunks/index-1.0.7-3z09rqyx.mjs +1 -0
  317. package/dist/chunks/index-1.0.7-4g6596jt.mjs +1 -0
  318. package/dist/chunks/index-1.0.7-59cvfmen.mjs +1 -0
  319. package/dist/chunks/index-1.0.7-63vq5fws.mjs +1 -0
  320. package/dist/chunks/index-1.0.7-6wcbk6ve.mjs +5 -0
  321. package/dist/chunks/index-1.0.7-84wm5p43.mjs +1 -0
  322. package/dist/chunks/index-1.0.7-c0jfw97a.mjs +9 -0
  323. package/dist/chunks/index-1.0.7-dds9fcry.mjs +1 -0
  324. package/dist/chunks/index-1.0.7-ecq1qwpq.mjs +1 -0
  325. package/dist/chunks/index-1.0.7-gm6exxqq.mjs +30 -0
  326. package/dist/chunks/index-1.0.7-jh8savg9.mjs +9 -0
  327. package/dist/chunks/index-1.0.7-k8k38nbt.mjs +1 -0
  328. package/dist/chunks/index-1.0.7-kyyfrf6j.mjs +1 -0
  329. package/dist/chunks/index-1.0.7-m23r2bmv.mjs +1 -0
  330. package/dist/chunks/index-1.0.7-mmm10tac.mjs +2 -0
  331. package/dist/chunks/index-1.0.7-p82yhqst.mjs +1 -0
  332. package/dist/chunks/index-1.0.7-vyafwe23.mjs +1 -0
  333. package/dist/chunks/index-1.0.7-wazwyjm7.mjs +1 -0
  334. package/dist/chunks/index-1.0.7-wd33rv5q.mjs +1 -0
  335. package/dist/chunks/index-1.0.7-yhxty6kz.mjs +1 -0
  336. package/dist/chunks/index-1.0.7-zp3vs07b.mjs +2 -0
  337. package/dist/chunks/init-1.0.7-y29e6mb3.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.0.7-14rmpkte.mjs +1 -0
  339. package/dist/chunks/ink-1.0.7-gf3qdamf.mjs +1 -0
  340. package/dist/chunks/insights-1.0.7-hd6460mk.mjs +870 -0
  341. package/dist/chunks/install-1.0.7-antesxaa.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.0.7-0asc4ajr.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.0.7-zwna6gq3.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.0.7-wvv85h9t.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.0.7-pkmbfs0b.mjs +1 -0
  346. package/dist/chunks/keybindings-1.0.7-emp8m2vr.mjs +2 -0
  347. package/dist/chunks/knowledge-1.0.7-6hv6538k.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.0.7-t1gtsxte.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.0.7-j5mq4f5x.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.7-6tbrq15z.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.0.7-k2zgqtye.mjs +1 -0
  352. package/dist/chunks/log-1.0.7-pmgzzdy7.mjs +1 -0
  353. package/dist/chunks/main-1.0.7-esamqda3.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.0.7-6mz7vwyt.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.7-d4941tnp.mjs +17 -0
  356. package/dist/chunks/mcp-1.0.7-hjjdsn53.mjs +4 -0
  357. package/dist/chunks/mcp-1.0.7-skfyfspe.mjs +1 -0
  358. package/dist/chunks/mcpb-1.0.7-twwnd1ct.mjs +1 -0
  359. package/dist/chunks/memory-1.0.7-0r8q4re7.mjs +3 -0
  360. package/dist/chunks/model-1.0.7-d82p81ne.mjs +2 -0
  361. package/dist/chunks/model-1.0.7-xt8c58fg.mjs +1 -0
  362. package/dist/chunks/node-1.0.7-5h6w60zy.mjs +12 -0
  363. package/dist/chunks/oauth-1.0.7-gveatjqe.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.0.7-q8aqfz40.mjs +14 -0
  365. package/dist/chunks/output-style-1.0.7-xnamzpre.mjs +1 -0
  366. package/dist/chunks/package-ZZWOLTXM-1.0.7-y8bvx3y5.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.0.7-we9ebc0h.mjs +1 -0
  368. package/dist/chunks/parser-1.0.7-20zgf2mq.mjs +1 -0
  369. package/dist/chunks/passes-1.0.7-gcnj20c4.mjs +1 -0
  370. package/dist/chunks/permissions-1.0.7-43y27rj9.mjs +3 -0
  371. package/dist/chunks/permissions-1.0.7-kw8fw9gd.mjs +1 -0
  372. package/dist/chunks/plan-1.0.7-z1k9hfr8.mjs +1 -0
  373. package/dist/chunks/plist-1.0.7-daxqmwqx.mjs +1 -0
  374. package/dist/chunks/plugin-1.0.7-66bqymg3.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.0.7-w5krqm0w.mjs +1 -0
  376. package/dist/chunks/plugins-1.0.7-8njx3c0z.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.0.7-a1hhphah.mjs +2 -0
  378. package/dist/chunks/print-1.0.7-xnncgmye.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.0.7-7gfaexn9.mjs +1 -0
  380. package/dist/chunks/process-1.0.7-9sx5xgpe.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.0.7-32dm20nc.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.0.7-am0rnn44.mjs +9 -0
  383. package/dist/chunks/prompt-1.0.7-0yt5k7pt.mjs +1 -0
  384. package/dist/chunks/prompt-1.0.7-hfv56awc.mjs +1 -0
  385. package/dist/chunks/prompts-1.0.7-1p5km2m0.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.0.7-geqttcpz.mjs +13 -0
  387. package/dist/chunks/provider-1.0.7-y0j7q32j.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.0.7-s0zs9q1r.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.0.7-aexhx4ft.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.0.7-r4b2s2hk.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.0.7-qmvr4jj4.mjs +34 -0
  392. package/dist/chunks/registry-1.0.7-be1gn584.mjs +1 -0
  393. package/dist/chunks/release-notes-1.0.7-tcr3xzz7.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.0.7-psfk2m91.mjs +2 -0
  395. package/dist/chunks/remote-env-1.0.7-xn5b9vx7.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.0.7-hvnh9bv2.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.0.7-870w4tbq.mjs +1 -0
  398. package/dist/chunks/rename-1.0.7-53emj8yj.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.0.7-cbrh6d8b.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.0.7-zs2c9f7n.mjs +1 -0
  401. package/dist/chunks/resume-1.0.7-b5e8840g.mjs +2 -0
  402. package/dist/chunks/rewind-1.0.7-15a43rp5.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.0.7-84t0zbkm.mjs +1 -0
  404. package/dist/chunks/sandbox-adapter-1.0.7-rs0gse4a.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.0.7-benxjznf.mjs +1 -0
  406. package/dist/chunks/session-1.0.7-9kyk2x4p.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.0.7-3z1nttw5.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.0.7-wha0618t.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.0.7-tdsf7h6t.mjs +1 -0
  410. package/dist/chunks/settings-1.0.7-ew9b4r78.mjs +1 -0
  411. package/dist/chunks/setup-1.0.7-tnm7hbmj.mjs +5 -0
  412. package/dist/chunks/sinks-1.0.7-bw23nvqf.mjs +1 -0
  413. package/dist/chunks/skills-1.0.7-z5a8v4xg.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.0.7-fqfzm5cc.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.0.7-enpb315n.mjs +1 -0
  416. package/dist/chunks/state-1.0.7-anf50tyt.mjs +1 -0
  417. package/dist/chunks/stats-1.0.7-xgb8h40k.mjs +6 -0
  418. package/dist/chunks/status-1.0.7-f7s47750.mjs +1 -0
  419. package/dist/chunks/stickers-1.0.7-z1wec6v6.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.0.7-838hrdpy.mjs +1 -0
  421. package/dist/chunks/tasks-1.0.7-gnsbny7t.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.0.7-b952rdkv.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.0.7-kp8hzkhr.mjs +1 -0
  424. package/dist/chunks/teleport-1.0.7-0z0g10ms.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.0.7-fgc3myw4.mjs +1 -0
  426. package/dist/chunks/theme-1.0.7-a88j7tjj.mjs +1 -0
  427. package/dist/chunks/thinkback-1.0.7-yzkgrf3q.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.0.7-jz896tvv.mjs +1 -0
  429. package/dist/chunks/toolPool-1.0.7-zc6vp20v.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.0.7-ym8fk2b2.mjs +1 -0
  431. package/dist/chunks/tools-1.0.7-612s0tqy.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.0.7-vjbr81qz.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.0.7-gz5y243z.mjs +69 -0
  434. package/dist/chunks/types-1.0.7-16q04281.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.0.7-v65pd88x.mjs +4 -0
  436. package/dist/chunks/update-1.0.7-z4et749c.mjs +88 -0
  437. package/dist/chunks/upgrade-1.0.7-hbdmpet7.mjs +1 -0
  438. package/dist/chunks/upload-1.0.7-xgyk75yh.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.0.7-vb939aaw.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.0.7-nfw64r47.mjs +1 -0
  441. package/dist/chunks/usage-1.0.7-kpakcv0m.mjs +1 -0
  442. package/dist/chunks/util-1.0.7-52gcb8n1.mjs +1 -0
  443. package/dist/chunks/utils-1.0.7-ckre2ymb.mjs +1 -0
  444. package/dist/chunks/vim-1.0.7-10bew4qn.mjs +1 -0
  445. package/dist/chunks/watcher-1.0.7-85c73j65.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.7-yw93y8cn.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.7-yatxf71n.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.7-dp2np4vz.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.7-m222ja7h.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.7-sqtjm0k7.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.6-y5ddd6rm.mjs +0 -1
  454. package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +0 -1
  483. package/dist/chunks/agents-1.0.6-sz53kang.mjs +0 -3
  484. package/dist/chunks/agents-1.0.6-takpvk31.mjs +0 -110
  485. package/dist/chunks/api-1.0.6-00s3w079.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +0 -1
  488. package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +0 -1
  489. package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +0 -1
  493. package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +0 -1
  499. package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.6-jye799sc.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +0 -4
  504. package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +0 -1
  507. package/dist/chunks/clear-1.0.6-mwca7g57.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +0 -1
  509. package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +0 -2
  510. package/dist/chunks/cli-1.0.6-0htc91yb.mjs +0 -2
  511. package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +0 -2
  512. package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +0 -2
  513. package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +0 -3
  514. package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +0 -2
  515. package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +0 -2
  516. package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +0 -3
  517. package/dist/chunks/cli-1.0.6-1a002r86.mjs +0 -16
  518. package/dist/chunks/cli-1.0.6-1eet2296.mjs +0 -2
  519. package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +0 -2
  520. package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +0 -2
  521. package/dist/chunks/cli-1.0.6-2216bkc9.mjs +0 -18
  522. package/dist/chunks/cli-1.0.6-256zr6e0.mjs +0 -2
  523. package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +0 -2
  524. package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +0 -6
  525. package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +0 -2
  526. package/dist/chunks/cli-1.0.6-2taykcm3.mjs +0 -2
  527. package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +0 -2
  528. package/dist/chunks/cli-1.0.6-34y44ns8.mjs +0 -2
  529. package/dist/chunks/cli-1.0.6-36s91tek.mjs +0 -2
  530. package/dist/chunks/cli-1.0.6-39ebgej3.mjs +0 -9
  531. package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +0 -2
  532. package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +0 -2
  533. package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +0 -199
  534. package/dist/chunks/cli-1.0.6-429sbhhn.mjs +0 -2
  535. package/dist/chunks/cli-1.0.6-43ajeraf.mjs +0 -2
  536. package/dist/chunks/cli-1.0.6-4jw1053r.mjs +0 -2
  537. package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +0 -2
  538. package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +0 -2
  539. package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +0 -2
  540. package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +0 -12
  541. package/dist/chunks/cli-1.0.6-4r68vt91.mjs +0 -4
  542. package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +0 -2
  543. package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +0 -4
  544. package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +0 -2
  545. package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +0 -2
  546. package/dist/chunks/cli-1.0.6-55csqcct.mjs +0 -2
  547. package/dist/chunks/cli-1.0.6-5esxakc4.mjs +0 -2
  548. package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +0 -2
  549. package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +0 -25
  550. package/dist/chunks/cli-1.0.6-5qyfr732.mjs +0 -17
  551. package/dist/chunks/cli-1.0.6-5tx13t22.mjs +0 -2
  552. package/dist/chunks/cli-1.0.6-61qpjst5.mjs +0 -2
  553. package/dist/chunks/cli-1.0.6-620sz5j0.mjs +0 -2
  554. package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +0 -12
  555. package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +0 -4
  556. package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +0 -2
  557. package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +0 -2
  558. package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +0 -3
  559. package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +0 -2
  560. package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +0 -59
  561. package/dist/chunks/cli-1.0.6-74km5nc4.mjs +0 -2
  562. package/dist/chunks/cli-1.0.6-77j29wff.mjs +0 -2
  563. package/dist/chunks/cli-1.0.6-78gtt741.mjs +0 -2
  564. package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +0 -2
  565. package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +0 -12
  567. package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +0 -2
  568. package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +0 -2
  569. package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +0 -2
  570. package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +0 -2
  571. package/dist/chunks/cli-1.0.6-831s2dg1.mjs +0 -2
  572. package/dist/chunks/cli-1.0.6-85rq113c.mjs +0 -2
  573. package/dist/chunks/cli-1.0.6-86chdw6e.mjs +0 -2
  574. package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +0 -3
  575. package/dist/chunks/cli-1.0.6-8kamwh44.mjs +0 -15
  576. package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +0 -2
  577. package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +0 -2
  578. package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +0 -6
  579. package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +0 -2
  580. package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +0 -2
  581. package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +0 -2
  582. package/dist/chunks/cli-1.0.6-967pphy3.mjs +0 -3
  583. package/dist/chunks/cli-1.0.6-9be2xem8.mjs +0 -4
  584. package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +0 -2
  585. package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +0 -7
  586. package/dist/chunks/cli-1.0.6-9pj529zy.mjs +0 -2
  587. package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +0 -2
  588. package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +0 -2
  589. package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +0 -3
  590. package/dist/chunks/cli-1.0.6-anxd75mm.mjs +0 -2
  591. package/dist/chunks/cli-1.0.6-apvttvwc.mjs +0 -3
  592. package/dist/chunks/cli-1.0.6-bghnbyek.mjs +0 -2
  593. package/dist/chunks/cli-1.0.6-bjz810zw.mjs +0 -2
  594. package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +0 -2
  595. package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +0 -4
  596. package/dist/chunks/cli-1.0.6-chfda1vf.mjs +0 -2
  597. package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +0 -2
  598. package/dist/chunks/cli-1.0.6-ct081pz5.mjs +0 -2
  599. package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +0 -2
  600. package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +0 -5
  601. package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +0 -15
  602. package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +0 -2
  603. package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +0 -2
  604. package/dist/chunks/cli-1.0.6-e3cstemm.mjs +0 -67
  605. package/dist/chunks/cli-1.0.6-eqj39b7c.mjs +0 -2
  606. package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +0 -24
  607. package/dist/chunks/cli-1.0.6-f80wk918.mjs +0 -2
  608. package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +0 -39
  609. package/dist/chunks/cli-1.0.6-fggt191f.mjs +0 -2
  610. package/dist/chunks/cli-1.0.6-fj626dhh.mjs +0 -2
  611. package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +0 -2
  612. package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +0 -2
  613. package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +0 -5471
  614. package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +0 -3
  615. package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +0 -2
  616. package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +0 -2
  617. package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +0 -2
  618. package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +0 -2
  619. package/dist/chunks/cli-1.0.6-j12sf764.mjs +0 -2
  620. package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +0 -2
  621. package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +0 -17
  622. package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +0 -2
  623. package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +0 -4
  624. package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +0 -2
  625. package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +0 -2
  626. package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +0 -2
  627. package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +0 -2
  628. package/dist/chunks/cli-1.0.6-kajb476n.mjs +0 -2
  629. package/dist/chunks/cli-1.0.6-kgver18c.mjs +0 -2
  630. package/dist/chunks/cli-1.0.6-khth3f6c.mjs +0 -1
  631. package/dist/chunks/cli-1.0.6-kx801kag.mjs +0 -4
  632. package/dist/chunks/cli-1.0.6-m747en7y.mjs +0 -50
  633. package/dist/chunks/cli-1.0.6-m96da95q.mjs +0 -2
  634. package/dist/chunks/cli-1.0.6-mapf4yym.mjs +0 -2
  635. package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +0 -6
  636. package/dist/chunks/cli-1.0.6-mgk6361j.mjs +0 -4
  637. package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +0 -18
  638. package/dist/chunks/cli-1.0.6-mwb4199d.mjs +0 -3
  639. package/dist/chunks/cli-1.0.6-mzqatpet.mjs +0 -6
  640. package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +0 -2
  641. package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +0 -2
  642. package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +0 -2
  643. package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +0 -2
  644. package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +0 -2
  645. package/dist/chunks/cli-1.0.6-njnv92az.mjs +0 -2
  646. package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +0 -2
  647. package/dist/chunks/cli-1.0.6-nphrz836.mjs +0 -34
  648. package/dist/chunks/cli-1.0.6-npng9y9t.mjs +0 -2
  649. package/dist/chunks/cli-1.0.6-ntwqb73s.mjs +0 -2
  650. package/dist/chunks/cli-1.0.6-nyh2gact.mjs +0 -133
  651. package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +0 -24
  652. package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +0 -2
  653. package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +0 -2
  654. package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +0 -2
  655. package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +0 -2
  656. package/dist/chunks/cli-1.0.6-q2yz709r.mjs +0 -2
  657. package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +0 -24
  658. package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +0 -2
  659. package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +0 -2
  660. package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +0 -2
  661. package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +0 -18
  662. package/dist/chunks/cli-1.0.6-r2508q6q.mjs +0 -2
  663. package/dist/chunks/cli-1.0.6-r6mzt599.mjs +0 -3
  664. package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +0 -21
  665. package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +0 -2
  666. package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +0 -42
  667. package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +0 -2
  668. package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +0 -3
  669. package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +0 -2
  670. package/dist/chunks/cli-1.0.6-ry340c4k.mjs +0 -133
  671. package/dist/chunks/cli-1.0.6-s333n5zg.mjs +0 -8
  672. package/dist/chunks/cli-1.0.6-s8neseq2.mjs +0 -4
  673. package/dist/chunks/cli-1.0.6-shakqp36.mjs +0 -2
  674. package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +0 -2
  675. package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +0 -2
  676. package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +0 -2
  677. package/dist/chunks/cli-1.0.6-sws40pv9.mjs +0 -2
  678. package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +0 -2
  679. package/dist/chunks/cli-1.0.6-tefnf8bf.mjs +0 -2
  680. package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +0 -3
  681. package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +0 -2
  682. package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +0 -2
  683. package/dist/chunks/cli-1.0.6-va933r6s.mjs +0 -2
  684. package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +0 -12
  685. package/dist/chunks/cli-1.0.6-vpwqryae.mjs +0 -45
  686. package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +0 -20
  687. package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +0 -2
  688. package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +0 -2
  689. package/dist/chunks/cli-1.0.6-wc676ed5.mjs +0 -2
  690. package/dist/chunks/cli-1.0.6-wgprm90p.mjs +0 -2
  691. package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +0 -2
  692. package/dist/chunks/cli-1.0.6-wvn01egx.mjs +0 -2
  693. package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +0 -15
  694. package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +0 -2
  695. package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +0 -2
  696. package/dist/chunks/cli-1.0.6-xhmby05p.mjs +0 -2
  697. package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +0 -2
  698. package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +0 -58
  699. package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +0 -2
  700. package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +0 -2
  701. package/dist/chunks/cli-1.0.6-y406hq26.mjs +0 -2
  702. package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +0 -25
  703. package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +0 -9
  704. package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +0 -2
  705. package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +0 -4
  706. package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +0 -2
  707. package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +0 -5
  708. package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +0 -6
  709. package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +0 -2
  710. package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +0 -2
  711. package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +0 -2
  712. package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +0 -3
  713. package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +0 -1
  714. package/dist/chunks/color-1.0.6-949mf4t9.mjs +0 -1
  715. package/dist/chunks/compact-1.0.6-pk763zz3.mjs +0 -3
  716. package/dist/chunks/config-1.0.6-bysc6622.mjs +0 -1
  717. package/dist/chunks/config-1.0.6-tgr3szh4.mjs +0 -1
  718. package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +0 -1
  719. package/dist/chunks/context-1.0.6-c6a94j19.mjs +0 -1
  720. package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +0 -1
  721. package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +0 -1
  722. package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +0 -1
  723. package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +0 -9
  724. package/dist/chunks/cost-1.0.6-99qahzn2.mjs +0 -1
  725. package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +0 -1
  726. package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +0 -1
  727. package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +0 -1
  728. package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +0 -1446
  729. package/dist/chunks/desktop-1.0.6-8f041exs.mjs +0 -1
  730. package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +0 -1
  731. package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +0 -1
  732. package/dist/chunks/diff-1.0.6-2tfee48c.mjs +0 -1
  733. package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +0 -1
  734. package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +0 -1
  735. package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +0 -1
  736. package/dist/chunks/effort-1.0.6-sxass88w.mjs +0 -10
  737. package/dist/chunks/engine-1.0.6-m67y6tar.mjs +0 -1
  738. package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +0 -1
  739. package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +0 -1
  740. package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +0 -1
  741. package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +0 -1
  742. package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +0 -1
  743. package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +0 -1
  744. package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +0 -1
  745. package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +0 -1
  746. package/dist/chunks/export-1.0.6-42k6mg0d.mjs +0 -2
  747. package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +0 -1
  748. package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +0 -1
  749. package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +0 -1
  750. package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +0 -14
  751. package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +0 -1
  752. package/dist/chunks/git-1.0.6-vdebxyc7.mjs +0 -1
  753. package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +0 -1
  754. package/dist/chunks/goal-1.0.6-ragq8khs.mjs +0 -4
  755. package/dist/chunks/grove-1.0.6-94e2ae96.mjs +0 -1
  756. package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +0 -1
  757. package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +0 -2
  758. package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +0 -6
  759. package/dist/chunks/help-1.0.6-3f56hs2r.mjs +0 -1
  760. package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +0 -3
  761. package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +0 -79
  762. package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +0 -1
  763. package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +0 -3
  764. package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +0 -1
  765. package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +0 -1
  766. package/dist/chunks/index-1.0.6-2bck3pt4.mjs +0 -30
  767. package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +0 -17
  768. package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +0 -1
  769. package/dist/chunks/index-1.0.6-478y2m6e.mjs +0 -2
  770. package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +0 -1
  771. package/dist/chunks/index-1.0.6-58j0s67x.mjs +0 -1
  772. package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +0 -1
  773. package/dist/chunks/index-1.0.6-5vphvdyy.mjs +0 -1
  774. package/dist/chunks/index-1.0.6-66q2r5rv.mjs +0 -1
  775. package/dist/chunks/index-1.0.6-7eqcsb13.mjs +0 -9
  776. package/dist/chunks/index-1.0.6-7mybgpvp.mjs +0 -9
  777. package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +0 -1
  778. package/dist/chunks/index-1.0.6-a1je2hj0.mjs +0 -5
  779. package/dist/chunks/index-1.0.6-dzem1xyw.mjs +0 -1
  780. package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +0 -1
  781. package/dist/chunks/index-1.0.6-jr8edr28.mjs +0 -1
  782. package/dist/chunks/index-1.0.6-kb626zfj.mjs +0 -1
  783. package/dist/chunks/index-1.0.6-scap8ztx.mjs +0 -1
  784. package/dist/chunks/index-1.0.6-sfn887je.mjs +0 -1
  785. package/dist/chunks/index-1.0.6-trrzmzqw.mjs +0 -2
  786. package/dist/chunks/index-1.0.6-vxgxky1j.mjs +0 -1
  787. package/dist/chunks/index-1.0.6-xw59t9mn.mjs +0 -1
  788. package/dist/chunks/index-1.0.6-zefh4dqr.mjs +0 -1
  789. package/dist/chunks/init-1.0.6-ceew1r40.mjs +0 -1
  790. package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +0 -1
  791. package/dist/chunks/ink-1.0.6-egfpysk6.mjs +0 -1
  792. package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +0 -870
  793. package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +0 -1
  794. package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +0 -149
  795. package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +0 -1
  796. package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +0 -1
  797. package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +0 -1
  798. package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +0 -2
  799. package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +0 -2
  800. package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +0 -1
  801. package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +0 -1
  802. package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +0 -1
  803. package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +0 -1
  804. package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +0 -1
  805. package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +0 -1
  806. package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +0 -17
  808. package/dist/chunks/mcp-1.0.6-na22t28a.mjs +0 -1
  809. package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +0 -4
  810. package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +0 -1
  811. package/dist/chunks/memory-1.0.6-atzzmaad.mjs +0 -3
  812. package/dist/chunks/model-1.0.6-57z0x37s.mjs +0 -1
  813. package/dist/chunks/model-1.0.6-843dkkfz.mjs +0 -2
  814. package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +0 -12
  815. package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +0 -1
  816. package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +0 -14
  817. package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +0 -1
  818. package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +0 -1
  819. package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +0 -1
  820. package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +0 -1
  821. package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +0 -1
  822. package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +0 -3
  823. package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +0 -1
  824. package/dist/chunks/plan-1.0.6-dsq3488z.mjs +0 -1
  825. package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +0 -1
  826. package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +0 -29
  827. package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +0 -1
  828. package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +0 -9
  829. package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +0 -2
  830. package/dist/chunks/print-1.0.6-9k27napw.mjs +0 -57
  831. package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +0 -1
  832. package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +0 -9
  835. package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +0 -1
  836. package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +0 -1
  837. package/dist/chunks/prompts-1.0.6-dds21kka.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +0 -13
  839. package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +0 -34
  844. package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +0 -1
  845. package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +0 -2
  847. package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +0 -1
  850. package/dist/chunks/rename-1.0.6-q495btpz.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +0 -1
  853. package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +0 -2
  854. package/dist/chunks/rewind-1.0.6-6stqe269.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +0 -1
  856. package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +0 -1
  857. package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +0 -1
  858. package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +0 -2
  859. package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +0 -1
  860. package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +0 -1
  861. package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +0 -1
  862. package/dist/chunks/settings-1.0.6-369qbnap.mjs +0 -1
  863. package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +0 -5
  864. package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +0 -1
  865. package/dist/chunks/skills-1.0.6-srbnw6db.mjs +0 -1
  866. package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +0 -1
  867. package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +0 -1
  868. package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +0 -1
  869. package/dist/chunks/stats-1.0.6-df87fq0j.mjs +0 -6
  870. package/dist/chunks/status-1.0.6-0wmbys8d.mjs +0 -1
  871. package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +0 -1
  872. package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +0 -1
  873. package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +0 -1
  874. package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +0 -1
  875. package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +0 -1
  876. package/dist/chunks/teleport-1.0.6-thxx543v.mjs +0 -1
  877. package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +0 -1
  878. package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +0 -1
  879. package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +0 -1
  880. package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +0 -1
  881. package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +0 -1
  882. package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +0 -1
  883. package/dist/chunks/tools-1.0.6-49vtha15.mjs +0 -1
  884. package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +0 -1
  885. package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +0 -69
  886. package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +0 -1
  887. package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +0 -4
  888. package/dist/chunks/update-1.0.6-10vds9r4.mjs +0 -88
  889. package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +0 -1
  890. package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +0 -7
  891. package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +0 -14
  892. package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +0 -1
  893. package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +0 -1
  894. package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +0 -1
  895. package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +0 -1
  896. package/dist/chunks/vim-1.0.6-4mjggnma.mjs +0 -1
  897. package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.6-hg7rd6z8.mjs → cli-1.0.7-5qss5m61.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.6-m86933bc.mjs → cli-1.0.7-6rt1agkh.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.6-xbk4dr3g.mjs → cli-1.0.7-bc3sxk1j.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.6-esf6g2hg.mjs → cli-1.0.7-pscxy55m.mjs} +0 -0
@@ -0,0 +1 @@
1
+ import{bf as a,cf as b,df as c,ef as d,ff as e}from"./cli-1.0.7-tf8b1vhx.mjs";import"./cli-1.0.7-y94dd4yd.mjs";e();export{d as REMOTE_CONTROL_DISCONNECTED_MSG,a as DEFAULT_SESSION_TIMEOUT_MS,b as BRIDGE_LOGIN_INSTRUCTION,c as BRIDGE_LOGIN_ERROR};
@@ -0,0 +1,4 @@
1
+ import{Ki as u,Li as LJ}from"./cli-1.0.7-fmdws8pg.mjs";import{$H as i,MF as QJ,NF as BJ,WH as E,Wn as KJ,Xn as IJ,YH as OJ,ZH as g,_H as c,cI as l,dI as UJ}from"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import{H0 as _J,HY as RJ,a0 as JJ,c0 as S}from"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import{o3 as V,p3 as e,q3 as R}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as wJ}from"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import{F3 as C,H3 as D,M3 as PJ}from"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import{C7 as k,K7 as m,M7 as b,X7 as v}from"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import{l9 as d,p9 as VJ}from"./cli-1.0.7-fckzct0z.mjs";import{N_ as AJ,P9 as I,R9 as yJ,p_ as B,w_ as h}from"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import{Qga as $,aha as TJ}from"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import{lia as f,mia as HJ}from"./cli-1.0.7-vcsdnmc0.mjs";import{nia as F,qia as qJ}from"./cli-1.0.7-gk53nva2.mjs";import{qja as N,tja as FJ}from"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import{Iqa as j,_qa as WJ}from"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{tra as t,xra as w}from"./cli-1.0.7-y94dd4yd.mjs";async function p(){if(!k())return null;try{let{accessToken:Q,orgUUID:J}=await C();return(await j.get(`${f().BASE_API_URL}/v1/ultrareview/quota`,{headers:{...D(Q),"x-organization-uuid":J},timeout:5000})).data}catch(Q){return N(`fetchUltrareviewQuota failed: ${Q}`),null}}var x=w(()=>{WJ();HJ();v();FJ();PJ()});function s(){r=!0}async function o(){if(m()||b())return{kind:"proceed",billingNote:""};let[Q,J]=await Promise.all([p(),u().catch(()=>null)]);if(!Q)return{kind:"proceed",billingNote:""};if(Q.reviews_remaining>0)return{kind:"proceed",billingNote:` This is free ultrareview ${Q.reviews_used+1} of ${Q.reviews_limit}.`};if(!J)return{kind:"proceed",billingNote:""};let Z=J.extra_usage;if(!Z?.is_enabled)return F("tengu_review_overage_not_enabled",{}),{kind:"not-enabled"};let X=Z.monthly_limit,z=Z.used_credits??0,G=X===null||X===void 0?1/0:X-z;if(G<10)return F("tengu_review_overage_low_balance",{available:G}),{kind:"low-balance",available:G};if(!r)return F("tengu_review_overage_dialog_shown",{}),{kind:"needs-confirm"};return{kind:"proceed",billingNote:" This review bills as Extra Usage."}}async function a(Q,J,Z){let X=await g();if(!X.eligible){let K=X.errors.filter((Y)=>Y.type!=="no_remote_environment");if(K.length>0)return F("tengu_review_remote_precondition_failed",{precondition_errors:K.map((q)=>q.type).join(",")}),[{type:"text",text:`Ultrareview cannot launch:
2
+ ${K.map(c).join(`
3
+ `)}`}]}let z=Z??"",G=Q.trim(),A=/^\d+$/.test(G),O="env_011111111111111111111113",H=$("tengu_review_bughunter_config",null),W=(K,Y,q)=>{if(typeof K!=="number"||!Number.isFinite(K))return Y;let y=Math.floor(K);if(y<=0)return Y;return q!==void 0&&y>q?Y:y},T={BUGHUNTER_DRY_RUN:"1",BUGHUNTER_FLEET_SIZE:String(W(H?.fleet_size,5,20)),BUGHUNTER_MAX_DURATION:String(W(H?.max_duration_minutes,10,25)),BUGHUNTER_AGENT_TIMEOUT:String(W(H?.agent_timeout_seconds,600,1800)),BUGHUNTER_TOTAL_WALLCLOCK:String(W(H?.total_wallclock_minutes,22,27)),...process.env.BUGHUNTER_DEV_BUNDLE_B64&&{BUGHUNTER_DEV_BUNDLE_B64:process.env.BUGHUNTER_DEV_BUNDLE_B64}},M,P,U;if(A){let K=await d();if(!K||K.host!=="github.com")return F("tengu_review_remote_precondition_failed",{}),null;M=await E({initialMessage:null,description:`ultrareview: ${K.owner}/${K.name}#${G}`,signal:J.abortController.signal,branchName:`refs/pull/${G}/head`,environmentId:O,environmentVariables:{BUGHUNTER_PR_NUMBER:G,BUGHUNTER_REPOSITORY:`${K.owner}/${K.name}`,...T}}),P=`/ultrareview ${G}`,U=`${K.owner}/${K.name}#${G}`}else{let K=await h()||"main",{stdout:Y,code:q}=await I(B(),["merge-base",K,"HEAD"],{preserveOutputOnError:!1}),y=Y.trim();if(q!==0||!y)return F("tengu_review_remote_precondition_failed",{}),[{type:"text",text:`Could not find merge-base with ${K}. Make sure you're in a git repo with a ${K} branch.`}];let{stdout:YJ,code:zJ}=await I(B(),["diff","--shortstat",y],{preserveOutputOnError:!1});if(zJ===0&&!YJ.trim())return F("tengu_review_remote_precondition_failed",{}),[{type:"text",text:`No changes against the ${K} fork point. Make some commits or stage files first.`}];if(M=await E({initialMessage:null,description:`ultrareview: ${K}`,signal:J.abortController.signal,useBundle:!0,environmentId:O,environmentVariables:{BUGHUNTER_BASE_BRANCH:y,...T}}),!M)return F("tengu_review_remote_teleport_failed",{}),[{type:"text",text:"Repo is too large. Push a PR and use `/ultrareview <PR#>` instead."}];P="/ultrareview",U=K}if(!M)return F("tengu_review_remote_teleport_failed",{}),null;i({remoteTaskType:"ultrareview",session:M,command:P,context:J,isRemoteReview:!0}),F("tengu_review_remote_launched",{});let L=l(M.id);return[{type:"text",text:`Ultrareview launched for ${U} (~10–20 min, runs in the cloud). Track: ${L}${z} Findings arrive via task-notification. Briefly acknowledge the launch to the user without repeating the target or URL — both are already visible in the tool output above.`}]}var r=!1;var n=w(()=>{TJ();qJ();x();LJ();UJ();v();VJ();yJ();AJ();OJ()});function ZJ(Q){let J=XJ.c(15),{onProceed:Z,onCancel:X}=Q,[z,G]=_.useState(!1),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=new AbortController,J[0]=A;else A=J[0];let O=_.useRef(A),H;if(J[1]!==X||J[2]!==Z)H=(q)=>{if(q==="proceed")G(!0),Z(O.current.signal).catch(()=>G(!1));else X()},J[1]=X,J[2]=Z,J[3]=H;else H=J[3];let W=H,T;if(J[4]!==X)T=()=>{O.current.abort(),X()},J[4]=X,J[5]=T;else T=J[5];let M=T,P;if(J[6]===Symbol.for("react.memo_cache_sentinel"))P=[{label:"Proceed with Extra Usage billing",value:"proceed"},{label:"Cancel",value:"cancel"}],J[6]=P;else P=J[6];let U=P,L;if(J[7]===Symbol.for("react.memo_cache_sentinel"))L=V(S,{children:"Your free ultrareviews for this organization are used. Further reviews bill as Extra Usage (pay-per-use)."}),J[7]=L;else L=J[7];let K;if(J[8]!==M||J[9]!==W||J[10]!==z)K=e(JJ,{flexDirection:"column",gap:1,children:[L,z?V(S,{color:"background",children:"Launching…"}):V(QJ,{options:U,onChange:W,onCancel:M})]}),J[8]=M,J[9]=W,J[10]=z,J[11]=K;else K=J[11];let Y;if(J[12]!==M||J[13]!==K)Y=V(KJ,{title:"Ultrareview billing",onCancel:M,color:"background",children:K}),J[12]=M,J[13]=K,J[14]=Y;else Y=J[14];return Y}var XJ,_;var GJ=w(()=>{BJ();IJ();_J();R();XJ=t(RJ(),1),_=t(wJ(),1)});function EJ(Q){return Q.map((J)=>J.type==="text"?J.text:"").filter(Boolean).join(`
4
+ `)}async function MJ(Q,J,Z,X,z){let G=await a(Q,J,X);if(z?.aborted)return;if(G)Z(EJ(G),{shouldQuery:!0});else Z("Ultrareview failed to launch the remote session. Check that this is a GitHub repo and try again.",{display:"system"})}var JK=async(Q,J,Z)=>{let X=await o();if(X.kind==="not-enabled")return Q("Free ultrareviews used. Enable Extra Usage at https://claude.ai/settings/billing to continue.",{display:"system"}),null;if(X.kind==="low-balance")return Q(`Balance too low to launch ultrareview ($${X.available.toFixed(2)} available, $10 minimum). Top up at https://claude.ai/settings/billing`,{display:"system"}),null;if(X.kind==="needs-confirm")return V(ZJ,{onProceed:async(z)=>{if(await MJ(Z,J,Q," This review bills as Extra Usage.",z),!z.aborted)s()},onCancel:()=>Q("Ultrareview cancelled.",{display:"system"})});return await MJ(Z,J,Q,X.billingNote),null};var SJ=w(()=>{n();GJ();R()});SJ();export{JK as call};
@@ -0,0 +1,88 @@
1
+ import{BG as qq,jG as f,kG as t,lR as Y,nR as Aq,oG as F,pG as e,vG as L,yG as m}from"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import{$T as E,DT as O,ET as b,HT as l,PT as D,WT as R,aU as o}from"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import{$Z as h,f0 as d}from"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import{B1 as v,E1 as i}from"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import{r8 as X,s8 as n}from"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import{Oda as U,P9 as P,Qca as M,Qfa as w,R9 as S,Rda as j,_ca as r,kea as a}from"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import{nia as x,qia as s}from"./cli-1.0.7-gk53nva2.mjs";import{qja as Q,tja as N}from"./cli-1.0.7-zjapdrt8.mjs";import{vja as q,zja as g}from"./cli-1.0.7-ghxmw318.mjs";import{Xja as T}from"./cli-1.0.7-3pqhf5bj.mjs";import{_ja as y,lka as k}from"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import"./cli-1.0.7-y94dd4yd.mjs";n();s();o();import{homedir as c}from"os";import{dirname as _q,join as H}from"path";h();d();N();k();T();S();w();function u(){let K=process.env.SHELL||"",J=c(),_=y();if(K.endsWith("/zsh")||K.endsWith("/zsh.exe")){let Z=H(_,"completion.zsh");return{name:"zsh",rcFile:H(J,".zshrc"),cacheFile:Z,completionLine:`[[ -f "${Z}" ]] && source "${Z}"`,shellFlag:"zsh"}}if(K.endsWith("/bash")||K.endsWith("/bash.exe")){let Z=H(_,"completion.bash");return{name:"bash",rcFile:H(J,".bashrc"),cacheFile:Z,completionLine:`[ -f "${Z}" ] && source "${Z}"`,shellFlag:"bash"}}if(K.endsWith("/fish")||K.endsWith("/fish.exe")){let Z=process.env.XDG_CONFIG_HOME||H(J,".config"),G=H(_,"completion.fish");return{name:"fish",rcFile:H(Z,"fish","config.fish"),cacheFile:G,completionLine:`[ -f "${G}" ] && source "${G}"`,shellFlag:"fish"}}return null}async function C(){let K=u();if(!K)return;Q(`update: Regenerating ${K.name} completion cache`);let J=process.argv[1]||"claude";if((await P(J,["completion",K.shellFlag,"--output",K.cacheFile],{timeout:5000,preserveOutputOnError:!0,useCwd:!0,stdin:"ignore"})).code!==0){Q(`update: Failed to regenerate ${K.name} completion cache`);return}Q(`update: Regenerated ${K.name} completion cache at ${K.cacheFile}`)}a();N();e();Aq();l();qq();t();g();i();r();async function Fq(){x("tengu_update_check",{}),q(`Current version: 1.0.7
2
+ `);let K=M()?.autoUpdatesChannel??"latest";q(`Checking for updates to ${K} version...
3
+ `),Q("update: Starting update check"),Q("update: Running diagnostic");let J=await F();if(Q(`update: Installation type: ${J.installationType}`),Q(`update: Config install method: ${J.configInstallMethod}`),J.multipleInstallations.length>1){q(`
4
+ `),q(X.yellow("Warning: Multiple installations found")+`
5
+ `);for(let A of J.multipleInstallations){let W=J.installationType===A.type?" (currently running)":"";q(`- ${A.type} at ${A.path}${W}
6
+ `)}}if(J.warnings.length>0){q(`
7
+ `);for(let A of J.warnings)Q(`update: Warning detected: ${A.issue}`),Q(`update: Showing warning: ${A.issue}`),q(X.yellow(`Warning: ${A.issue}
8
+ `)),q(X.bold(`Fix: ${A.fix}
9
+ `))}try{if(await D())q(`
10
+ `),q(X.green("Repaired the native launcher (Bun had skipped the postinstall step).")+`
11
+ `)}catch(A){Q(`update: Bun launcher repair check failed: ${String(A)}`)}let _=j();if(!_.installMethod&&J.installationType!=="package-manager"){q(`
12
+ `),q(`Updating configuration to track installation method...
13
+ `);let A="unknown";switch(J.installationType){case"npm-local":A="local";break;case"native":A="native";break;case"npm-global":A="global";break;default:A="unknown"}U((W)=>({...W,installMethod:A})),q(`Installation method set to: ${A}
14
+ `)}if(J.installationType==="development")q(`
15
+ `),q(X.yellow("You are running a development build — auto-update is unavailable.")+`
16
+ `),q(`To update, pull the latest source and rebuild:
17
+ `),q(X.bold(" git pull && bun install && bun run build")+`
18
+ `),q(`
19
+ `),q(`Or reinstall from npm:
20
+ `),q(X.bold(" npm install -g @claudiolabs/claudin@latest")+`
21
+ `),await Y(0);if(J.installationType==="package-manager"){let A=await f();if(q(`
22
+ `),A==="homebrew"){q(`Claude is managed by Homebrew.
23
+ `);let W=await R(K);if(W&&!v("1.0.7",W))q(`Update available: ${"1.0.7"} → ${W}
24
+ `),q(`
25
+ `),q(`To update, run:
26
+ `),q(X.bold(" brew upgrade claude-code")+`
27
+ `);else q(`Claude is up to date!
28
+ `)}else if(A==="winget"){q(`Claude is managed by winget.
29
+ `);let W=await R(K);if(W&&!v("1.0.7",W))q(`Update available: ${"1.0.7"} → ${W}
30
+ `),q(`
31
+ `),q(`To update, run:
32
+ `),q(X.bold(" winget upgrade Anthropic.ClaudeCode")+`
33
+ `);else q(`Claude is up to date!
34
+ `)}else if(A==="apk"){q(`Claude is managed by apk.
35
+ `);let W=await R(K);if(W&&!v("1.0.7",W))q(`Update available: ${"1.0.7"} → ${W}
36
+ `),q(`
37
+ `),q(`To update, run:
38
+ `),q(X.bold(" apk upgrade claude-code")+`
39
+ `);else q(`Claude is up to date!
40
+ `)}else q(`Claude is managed by a package manager.
41
+ `),q(`Please use your package manager to update.
42
+ `);await Y(0)}if(_.installMethod&&J.configInstallMethod!=="not set"&&J.installationType!=="package-manager"){let{installationType:A,configInstallMethod:W}=J,V={"npm-local":"local","npm-global":"global",native:"native",development:"development",unknown:"unknown"}[A]||A;if(V!==W&&W!=="unknown")q(`
43
+ `),q(X.yellow("Warning: Configuration mismatch")+`
44
+ `),q(`Config expects: ${W} installation
45
+ `),q(`Currently running: ${A}
46
+ `),q(X.yellow(`Updating the ${A} installation you are currently using`)+`
47
+ `),U((p)=>({...p,installMethod:V})),q(`Config updated to reflect current installation method: ${V}
48
+ `)}if(J.installationType==="native"){Q("update: Detected native installation, using native updater");try{let A=await L(K,!0);if(A.lockFailed){let W=A.lockHolderPid?` (PID ${A.lockHolderPid})`:"";q(X.yellow(`Another Claude process${W} is currently running. Please try again in a moment.`)+`
49
+ `),await Y(0)}if(!A.latestVersion)process.stderr.write(`Failed to check for updates
50
+ `),await Y(1);if(A.latestVersion==="1.0.7")q(X.green("Claudin is up to date (1.0.7)")+`
51
+ `);else q(X.green(`Successfully updated from 1.0.7 to version ${A.latestVersion}`)+`
52
+ `),await C();await Y(0)}catch(A){process.stderr.write(`Error: Failed to install native update
53
+ `),process.stderr.write(String(A)+`
54
+ `),process.stderr.write(`Try running "claude doctor" for diagnostics
55
+ `),await Y(1)}}if(_.installMethod!=="native")await m();Q("update: Checking npm registry for latest version"),Q("update: Package URL: @claudiolabs/claudin"),Q(`update: Running: ${`npm view @claudiolabs/claudin@${K==="stable"?"stable":"latest"} version`}`);let B=await R(K);if(Q(`update: Latest version from npm: ${B||"FAILED"}`),!B){if(Q("update: Failed to get latest version from npm registry"),process.stderr.write(X.red("Failed to check for updates")+`
56
+ `),process.stderr.write(`Unable to fetch latest version from npm registry
57
+ `),process.stderr.write(`
58
+ `),process.stderr.write(`Possible causes:
59
+ `),process.stderr.write(` • Network connectivity issues
60
+ `),process.stderr.write(` • npm registry is unreachable
61
+ `),process.stderr.write(` • Corporate proxy/firewall blocking npm
62
+ `),!"@claudiolabs/claudin".startsWith("@anthropic"))process.stderr.write(` • Internal/development build not published to npm
63
+ `);process.stderr.write(`
64
+ `),process.stderr.write(`Try:
65
+ `),process.stderr.write(` • Check your internet connection
66
+ `),process.stderr.write(` • Run with --debug flag for more details
67
+ `);let A="@claudiolabs/claudin";process.stderr.write(` • Manually check: npm view ${A} version
68
+ `),process.stderr.write(` • Check if you need to login: npm whoami
69
+ `),await Y(1)}if(B==="1.0.7")q(X.green("Claudin is up to date (1.0.7)")+`
70
+ `),await Y(0);q(`New version available: ${B} (current: 1.0.7)
71
+ `),q(`Installing update...
72
+ `);let $=!1,z="";switch(J.installationType){case"npm-local":$=!0,z="local";break;case"npm-global":$=!1,z="global";break;case"unknown":{let A=await b();$=A,z=A?"local":"global",q(X.yellow("Warning: Could not determine installation type")+`
73
+ `),q(`Attempting ${z} update based on file detection...
74
+ `);break}default:process.stderr.write(`Error: Cannot update ${J.installationType} installation
75
+ `),await Y(1)}q(`Using ${z} installation update method...
76
+ `),Q(`update: Update method determined: ${z}`),Q(`update: useLocalUpdate: ${$}`);let I;if($)Q("update: Calling installOrUpdateClaudePackage() for local update"),I=await O(K);else Q("update: Calling installGlobalPackage() for global update"),I=await E();switch(Q(`update: Installation status: ${I}`),I){case"success":q(X.green(`Successfully updated from 1.0.7 to version ${B}`)+`
77
+ `),await C();break;case"no_permissions":if(process.stderr.write(`Error: Insufficient permissions to install update
78
+ `),$)process.stderr.write(`Try manually updating with:
79
+ `),process.stderr.write(` cd ~/.claudin/local && npm update @claudiolabs/claudin
80
+ `);else process.stderr.write(`Try running with sudo or fix npm permissions
81
+ `),process.stderr.write(`Or consider using native installation with: claudin install
82
+ `);await Y(1);break;case"install_failed":if(process.stderr.write(`Error: Failed to install update
83
+ `),$)process.stderr.write(`Try manually updating with:
84
+ `),process.stderr.write(` cd ~/.claudin/local && npm update @claudiolabs/claudin
85
+ `);else process.stderr.write(`Or consider using native installation with: claudin install
86
+ `);await Y(1);break;case"in_progress":process.stderr.write(`Error: Another instance is currently performing an update
87
+ `),process.stderr.write(`Please wait and try again later
88
+ `),await Y(1);break}await Y(0)}export{Fq as update};
@@ -0,0 +1 @@
1
+ import{ac as a,bc as b}from"./cli-1.0.7-ddhhvx60.mjs";import"./cli-1.0.7-xga48xv7.mjs";import"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import"./cli-1.0.7-y94dd4yd.mjs";b();export{a as call};
@@ -0,0 +1,7 @@
1
+ import{li as Y,mi as j,oi as _}from"./cli-1.0.7-fvr9xx0m.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import{tfa as X,wfa as U}from"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import{tha as V,vha as O,wha as I,xha as S}from"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import{lia as k,mia as M}from"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import{Via as R,_ia as x,qja as F,tja as A}from"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import{Iqa as L,_qa as T}from"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{xra as v}from"./cli-1.0.7-y94dd4yd.mjs";import{randomUUID as B}from"crypto";import{readFile as z}from"fs/promises";import{basename as y,extname as c}from"path";function p(q){let J=c(q).toLowerCase();return m[J]??"application/octet-stream"}function K(q){F(`[brief:upload] ${q}`)}function h(){let q=X(),J=q?.transport==="anthropic"?q.baseUrl:void 0;return Y()??J??k().BASE_API_URL}async function qq(q,J,W){{if(!W.replBridgeEnabled)return;if(J>G){K(`skip ${q}: ${J} bytes exceeds ${G} limit`);return}let Z=j();if(!Z){K("skip: no oauth token");return}let $;try{$=await z(q)}catch(H){K(`read failed for ${q}: ${H}`);return}let D=`${h()}/api/oauth/file_upload`,w=y(q),E=p(w),Q=`----FormBoundary${B()}`,C=Buffer.concat([Buffer.from(`--${Q}\r
2
+ Content-Disposition: form-data; name="file"; filename="${w}"\r
3
+ Content-Type: ${E}\r
4
+ \r
5
+ `),$,Buffer.from(`\r
6
+ --${Q}--\r
7
+ `)]);try{let H=await L.post(D,C,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":`multipart/form-data; boundary=${Q}`,"Content-Length":C.length.toString()},timeout:b,signal:W.signal,validateStatus:()=>!0});if(H.status!==201){K(`upload failed for ${q}: status=${H.status} body=${R(H.data).slice(0,200)}`);return}let N=P().safeParse(H.data);if(!N.success){K(`unexpected response shape for ${q}: ${N.error.message}`);return}return K(`uploaded ${q} → ${N.data.file_uuid} (${J} bytes)`),N.data.file_uuid}catch(H){K(`upload threw for ${q}: ${H}`);return}}return}var G=31457280,b=30000,m,P;var g=v(()=>{T();O();_();M();U();A();S();x();m={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp"};P=I(()=>V.object({file_uuid:V.string()}))});g();export{qq as uploadBriefAttachment};
@@ -0,0 +1,14 @@
1
+ import{$7 as I,c8 as f,j8 as E,k8 as _,p8 as v}from"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-d1zc020r.mjs";import{tfa as H,wfa as d}from"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import{qja as M,tia as P,tja as N,via as i}from"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import{Sja as S,Xja as c}from"./cli-1.0.7-3pqhf5bj.mjs";import{bka as W,lka as u}from"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{yra as L}from"./cli-1.0.7-y94dd4yd.mjs";d();i();N();u();c();import{mkdir as l,readFile as C,unlink as n,writeFile as r}from"fs/promises";import{homedir as o}from"os";import{join as U}from"path";N();f();v();import{createServer as y}from"node:net";var R,m=524288,b=30000;function O(q){let z=q.length,Q=[],J=z;while(J>127)Q.push(J&127|128),J>>>=7;Q.push(J);let Z=new Uint8Array(1+Q.length+z);return Z[0]=10,Z.set(Q,1),Z.set(q,1+Q.length),Z}function w(q){if(q.length===0)return new Uint8Array(0);if(q[0]!==10)return null;let z=0,Q=0,J=1;while(J<q.length){let Z=q[J];if(z|=(Z&127)<<Q,J++,(Z&128)===0)break;if(Q+=7,Q>28)return null}if(J+z>q.length)return null;return q.subarray(J,J+z)}function j(){return{connectBuf:Buffer.alloc(0),pending:[],wsOpen:!1,established:!1,closed:!1}}async function A(q){let z="Basic "+Buffer.from(`${q.sessionId}:${q.token}`).toString("base64"),Q=`Bearer ${q.token}`,J=typeof Bun<"u"?h(q.wsUrl,z,Q):await p(q.wsUrl,z,Q);return M(`[upstreamproxy] relay listening on 127.0.0.1:${J.port}`),J}function h(q,z,Q){let J=Bun.listen({hostname:"127.0.0.1",port:0,socket:{open(Z){Z.data={...j(),writeBuf:[]}},data(Z,G){let V=Z.data;T({write:($)=>{let Y=typeof $==="string"?Buffer.from($,"utf8"):$;if(V.writeBuf.length>0){V.writeBuf.push(Y);return}let x=Z.write(Y);if(x<Y.length)V.writeBuf.push(Y.subarray(x))},end:()=>Z.end()},V,G,q,z,Q)},drain(Z){let G=Z.data;while(G.writeBuf.length>0){let V=G.writeBuf[0],K=Z.write(V);if(K<V.length){G.writeBuf[0]=V.subarray(K);return}G.writeBuf.shift()}},close(Z){B(Z.data)},error(Z,G){M(`[upstreamproxy] client socket error: ${G.message}`),B(Z.data)}}});return{port:J.port,stop:()=>J.stop(!0)}}async function p(q,z,Q){R=(await import("./wrapper-1.0.7-sqtjm0k7.mjs")).default;let J=new WeakMap,Z=y((G)=>{let V=j();J.set(G,V);let K={write:($)=>{G.write(typeof $==="string"?$:Buffer.from($))},end:()=>G.end()};G.on("data",($)=>T(K,V,$,q,z,Q)),G.on("close",()=>B(J.get(G))),G.on("error",($)=>{M(`[upstreamproxy] client socket error: ${$.message}`),B(J.get(G))})});return new Promise((G,V)=>{Z.once("error",V),Z.listen(0,"127.0.0.1",()=>{let K=Z.address();if(K===null||typeof K==="string"){V(Error("upstreamproxy: server has no TCP address"));return}G({port:K.port,stop:()=>Z.close()})})})}function T(q,z,Q,J,Z,G){if(!z.ws){z.connectBuf=Buffer.concat([z.connectBuf,Q]);let V=z.connectBuf.indexOf(`\r
2
+ \r
3
+ `);if(V===-1){if(z.connectBuf.length>8192)q.write(`HTTP/1.1 400 Bad Request\r
4
+ \r
5
+ `),q.end();return}let $=z.connectBuf.subarray(0,V).toString("utf8").split(`\r
6
+ `)[0]??"";if(!$.match(/^CONNECT\s+(\S+)\s+HTTP\/1\.[01]$/i)){q.write(`HTTP/1.1 405 Method Not Allowed\r
7
+ \r
8
+ `),q.end();return}let x=z.connectBuf.subarray(V+4);if(x.length>0)z.pending.push(Buffer.from(x));z.connectBuf=Buffer.alloc(0),k(q,z,$,J,Z,G);return}if(!z.wsOpen){z.pending.push(Buffer.from(Q));return}F(z.ws,Q)}function k(q,z,Q,J,Z,G){let V={"Content-Type":"application/proto",Authorization:G},K;if(R)K=new R(J,{headers:V,agent:E(J),...I()});else K=new globalThis.WebSocket(J,{headers:V,proxy:_(J),tls:I()||void 0});K.binaryType="arraybuffer",z.ws=K,K.onopen=()=>{let $=`${Q}\r
9
+ Proxy-Authorization: ${Z}\r
10
+ \r
11
+ `;K.send(O(Buffer.from($,"utf8"))),z.wsOpen=!0;for(let Y of z.pending)F(K,Y);z.pending=[],z.pinger=setInterval(g,b,K)},K.onmessage=($)=>{let Y=$.data instanceof ArrayBuffer?new Uint8Array($.data):new Uint8Array(Buffer.from($.data)),x=w(Y);if(x&&x.length>0)z.established=!0,q.write(x)},K.onerror=($)=>{let Y="message"in $?String($.message):"websocket error";if(M(`[upstreamproxy] ws error: ${Y}`),z.closed)return;if(z.closed=!0,!z.established)q.write(`HTTP/1.1 502 Bad Gateway\r
12
+ \r
13
+ `);q.end(),B(z)},K.onclose=()=>{if(z.closed)return;z.closed=!0,q.end(),B(z)}}function g(q){if(q.readyState===WebSocket.OPEN)q.send(O(new Uint8Array(0)))}function F(q,z){if(q.readyState!==WebSocket.OPEN)return;for(let Q=0;Q<z.length;Q+=m){let J=z.subarray(Q,Q+m);q.send(O(J))}}function B(q){if(!q)return;if(q.pinger)clearInterval(q.pinger);if(q.ws&&q.ws.readyState<=WebSocket.OPEN)try{q.ws.close()}catch{}q.ws=void 0}var a="/run/ccr/session_token",e="/etc/ssl/certs/ca-certificates.crt",D=["localhost","127.0.0.1","::1","169.254.0.0/16","10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","anthropic.com",".anthropic.com","*.anthropic.com","github.com","api.github.com","*.github.com","*.githubusercontent.com","registry.npmjs.org","pypi.org","files.pythonhosted.org","index.crates.io","proxy.golang.org"].join(","),X={enabled:!1};async function Oq(q){if(!W(process.env.CLAUDE_CODE_REMOTE))return X;if(!W(process.env.CCR_UPSTREAM_PROXY_ENABLED))return X;let z=process.env.CLAUDE_CODE_REMOTE_SESSION_ID;if(!z)return M("[upstreamproxy] CLAUDE_CODE_REMOTE_SESSION_ID unset; proxy disabled",{level:"warn"}),X;let Q=q?.tokenPath??a,J=await s(Q);if(!J)return M("[upstreamproxy] no session token file; proxy disabled"),X;qq();let Z=H(),G=q?.ccrBaseUrl??(Z?.transport==="anthropic"?Z.baseUrl:void 0)??"https://api.anthropic.com",V=q?.caBundlePath??U(o(),".ccr","ca-bundle.crt");if(!await zq(G,q?.systemCaPath??e,V))return X;try{let $=G.replace(/^http/,"ws")+"/v1/code/upstreamproxy/ws",Y=await A({wsUrl:$,sessionId:z,token:J});P(async()=>Y.stop()),X={enabled:!0,port:Y.port,caBundlePath:V},M(`[upstreamproxy] enabled on 127.0.0.1:${Y.port}`),await n(Q).catch(()=>{M("[upstreamproxy] token file unlink failed",{level:"warn"})})}catch($){M(`[upstreamproxy] relay start failed: ${$ instanceof Error?$.message:String($)}; proxy disabled`,{level:"warn"})}return X}function Wq(){if(!X.enabled||!X.port||!X.caBundlePath){if(process.env.HTTPS_PROXY&&process.env.SSL_CERT_FILE){let z={};for(let Q of["HTTPS_PROXY","https_proxy","NO_PROXY","no_proxy","SSL_CERT_FILE","NODE_EXTRA_CA_CERTS","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"])if(process.env[Q])z[Q]=process.env[Q];return z}return{}}let q=`http://127.0.0.1:${X.port}`;return{HTTPS_PROXY:q,https_proxy:q,NO_PROXY:D,no_proxy:D,SSL_CERT_FILE:X.caBundlePath,NODE_EXTRA_CA_CERTS:X.caBundlePath,REQUESTS_CA_BUNDLE:X.caBundlePath,CURL_CA_BUNDLE:X.caBundlePath}}function mq(){X={enabled:!1}}function t(q){if(!q||!q.trim())return!1;return/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----/g.test(q)}async function s(q){try{return(await C(q,"utf8")).trim()||null}catch(z){if(S(z))return null;return M(`[upstreamproxy] token read failed: ${z instanceof Error?z.message:String(z)}`,{level:"warn"}),null}}function qq(){if(process.platform!=="linux"||typeof Bun>"u")return;try{let z=L("bun:ffi").dlopen("libc.so.6",{prctl:{args:["int","u64","u64","u64","u64"],returns:"int"}}),Q=4;if(z.symbols.prctl(4,0n,0n,0n,0n)!==0)M("[upstreamproxy] prctl(PR_SET_DUMPABLE,0) returned nonzero",{level:"warn"})}catch(q){M(`[upstreamproxy] prctl unavailable: ${q instanceof Error?q.message:String(q)}`,{level:"warn"})}}async function zq(q,z,Q){try{let J=await fetch(`${q}/v1/code/upstreamproxy/ca-cert`,{signal:AbortSignal.timeout(5000)});if(!J.ok)return M(`[upstreamproxy] ca-cert fetch ${J.status}; proxy disabled`,{level:"warn"}),!1;let Z=await J.text();if(!t(Z))return M("[upstreamproxy] ca-cert response is not valid PEM; proxy disabled",{level:"warn"}),!1;let G=await C(z,"utf8").catch(()=>"");return await l(U(Q,".."),{recursive:!0}),await r(Q,G+`
14
+ `+Z,"utf8"),!0}catch(J){return M(`[upstreamproxy] ca-cert download failed: ${J instanceof Error?J.message:String(J)}; proxy disabled`,{level:"warn"}),!1}}export{mq as resetUpstreamProxyForTests,t as isValidPemContent,Oq as initUpstreamProxy,Wq as getUpstreamProxyEnv,a as SESSION_TOKEN_PATH};
@@ -0,0 +1 @@
1
+ import"./cli-1.0.7-y94dd4yd.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
@@ -0,0 +1 @@
1
+ import{Hg as f,Ig as q}from"./cli-1.0.7-jz4phmb3.mjs";import"./cli-1.0.7-3s4ccas2.mjs";import"./cli-1.0.7-wqrgw4kw.mjs";import"./cli-1.0.7-khd0yqhk.mjs";import"./cli-1.0.7-zwr4ga8c.mjs";import"./cli-1.0.7-3xrc45nn.mjs";import"./cli-1.0.7-97fqbfff.mjs";import"./cli-1.0.7-r4h75bn4.mjs";import"./cli-1.0.7-5h2vgm7b.mjs";import"./cli-1.0.7-0dmnsy4c.mjs";import"./cli-1.0.7-fmdws8pg.mjs";import"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import{o3 as d,q3 as b}from"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{xra as l}from"./cli-1.0.7-y94dd4yd.mjs";var y=async(h,k)=>{return d(f,{onClose:h,context:k,defaultTab:"Usage"})};var v=l(()=>{q();b()});v();export{y as call};
@@ -0,0 +1 @@
1
+ import{W as O}from"./cli-1.0.7-bn0sb2w7.mjs";import{Ra as K}from"./cli-1.0.7-5f0y2nxn.mjs";import"./cli-1.0.7-5qss5m61.mjs";import"./cli-1.0.7-2wm3s497.mjs";import{Ic as F,Jc as S}from"./cli-1.0.7-tz22r50p.mjs";import"./cli-1.0.7-rz8h7nks.mjs";import"./cli-1.0.7-3fx5xqzq.mjs";import"./cli-1.0.7-8fj15s8a.mjs";import"./cli-1.0.7-g42rsvs5.mjs";import"./cli-1.0.7-xxa9e3we.mjs";import"./cli-1.0.7-9ws1j17m.mjs";import{Pf as B,Qf as P}from"./cli-1.0.7-af1m1akw.mjs";import"./cli-1.0.7-dbyr517p.mjs";import{Cx as $,TF as Z,UF as C,yx as Y}from"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import{H0 as w,HY as W,a0 as Q,c0 as U}from"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import{o3 as f,p3 as N,q3 as L}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as M}from"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import{W6 as _,X7 as E}from"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import{nia as X,qia as y}from"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{tra as V,yra as I}from"./cli-1.0.7-y94dd4yd.mjs";var R=V(W(),1),z=V(M(),1);import{cwd as D}from"process";w();C();y();P();$();S();E();L();async function l(k){X("tengu_setup_token_command",{});let q=!_(),{ConsoleOAuthFlow:H}=await import("./ConsoleOAuthFlow-1.0.7-pyrnmhtt.mjs");await new Promise((G)=>{k.render(f(Y,{onChangeAppState:F,children:f(Z,{children:N(Q,{flexDirection:"column",gap:1,children:[f(O,{}),q&&N(Q,{flexDirection:"column",children:[f(U,{color:"warning",children:"Warning: You already have authentication configured via environment variable or API key helper."}),f(U,{color:"warning",children:"The setup-token command will create a new OAuth token which you can use instead."})]}),f(H,{onDone:()=>{G()},mode:"setup-token",startingMessage:"This will guide you through long-lived (1-year) auth token setup for your Claude account. Claude subscription required."})]})})}))}),k.unmount(),process.exit(0)}var d=z.default.lazy(()=>import("./Doctor-1.0.7-3yedapcw.mjs").then((k)=>({default:k.Doctor})));function m(k){let q=R.c(2),{onDone:H}=k;K();let G;if(q[0]!==H)G=f(z.default.Suspense,{fallback:null,children:f(d,{onDone:H})}),q[0]=H,q[1]=G;else G=q[1];return G}async function a(k){X("tengu_doctor_command",{}),await new Promise((q)=>{k.render(f(Y,{children:f(Z,{children:f(B,{dynamicMcpConfig:void 0,isStrictMcpConfig:!1,children:f(m,{onDone:()=>{q()}})})})}))}),k.unmount(),process.exit(0)}async function n(k,q){let{setup:H}=await import("./setup-1.0.7-tnm7hbmj.mjs");await H(D(),"default",!1,!1,void 0,!1);let{install:G}=await import("./install-1.0.7-antesxaa.mjs");await new Promise((T)=>{let J=[];if(k)J.push(k);if(q.force)J.push("--force");G.call((b)=>{T(),process.exit(b.includes("failed")?1:0)},{},J)})}export{l as setupTokenHandler,n as installHandler,a as doctorHandler};
@@ -0,0 +1 @@
1
+ import{oI as a,pI as b,qI as c,rI as d,sI as e,tI as f,uI as g,vI as h,wI as i,xI as j,yI as k}from"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import"./cli-1.0.7-y94dd4yd.mjs";k();export{e as validateURL,d as isPreapprovedUrl,g as isPermittedRedirect,h as getWithPermittedRedirects,a as getWebFetchCacheStats,i as getURLMarkdownContent,b as clearWebFetchCache,f as checkDomainBlocklist,j as applyPromptToMarkdown,c as MAX_MARKDOWN_LENGTH};
@@ -0,0 +1 @@
1
+ import{Oda as p,Rda as q,kea as D}from"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import{nia as m,qia as B}from"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import{xra as A}from"./cli-1.0.7-y94dd4yd.mjs";var K=async()=>{let k=q().editorMode||"normal";if(k==="emacs")k="normal";let h=k==="normal"?"vim":"normal";return p((z)=>({...z,editorMode:h})),m("tengu_editor_mode_changed",{mode:h,source:"command"}),{type:"text",value:`Editor mode set to ${h}. ${h==="vim"?"Use Escape key to toggle between INSERT and NORMAL modes.":"Using standard (readline) keyboard bindings."}`}};var F=A(()=>{B();D()});F();export{K as call};
@@ -0,0 +1 @@
1
+ import{i as a,j as b,k as c,l as d,m as e,n as f,p as g}from"./cli-1.0.7-2csh6jt3.mjs";import"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import"./cli-1.0.7-y94dd4yd.mjs";g();export{d as stopTeamMemoryWatcher,b as startTeamMemoryWatcher,c as notifyTeamMemoryWrite,a as isPermanentFailure,f as _startFileWatcherForTesting,e as _resetWatcherStateForTesting};
@@ -0,0 +1,132 @@
1
+ import"./cli-1.0.7-jn7nay2r.mjs";import{Aha as E,Bha as dt,aia as M,bia as O,cia as ft}from"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import{xra as l}from"./cli-1.0.7-y94dd4yd.mjs";import{join as m}from"path";function c(t){let e=m(t,K,X);return{root:e,pagesDir:m(e,"pages"),sourcesDir:m(e,"sources"),schemaFile:m(e,"schema.md"),indexFile:m(e,"index.md"),logFile:m(e,"log.md")}}var K=".claudin",X="wiki";var p=()=>{};import{mkdir as J,writeFile as G}from"fs/promises";import{basename as H,relative as W}from"path";function Q(t){return`# Claudin Wiki Schema
2
+
3
+ This wiki stores durable, human-readable project knowledge for ${t}.
4
+
5
+ ## Goals
6
+
7
+ - Keep useful project knowledge in markdown, not only in chat history
8
+ - Prefer synthesized facts over raw copy-paste
9
+ - Keep source attribution explicit
10
+ - Make pages easy for both humans and agents to update
11
+
12
+ ## Structure
13
+
14
+ - \`index.md\`: top-level navigation and major topics
15
+ - \`log.md\`: append-only update log
16
+ - \`pages/\`: durable topic and architecture pages
17
+ - \`sources/\`: source ingestion notes and summaries
18
+
19
+ ## Page Rules
20
+
21
+ - Keep pages focused on one topic
22
+ - Use stable headings such as:
23
+ - \`## Summary\`
24
+ - \`## Key Facts\`
25
+ - \`## Relationships\`
26
+ - \`## Open Questions\`
27
+ - \`## Sources\`
28
+ - Add or update facts only when they are grounded in project files or explicit source notes
29
+ - Prefer editing an existing page over creating duplicates
30
+ `}function B(t){return`# ${t} Wiki
31
+
32
+ This wiki is maintained by Claudin as a durable project knowledge layer.
33
+
34
+ ## Core Pages
35
+
36
+ - [Architecture](./pages/architecture.md)
37
+
38
+ ## Sources
39
+
40
+ - Source notes live in [sources/](./sources/)
41
+
42
+ ## Recent Updates
43
+
44
+ - See [log.md](./log.md)
45
+ `}function q(t){return`# Wiki Update Log
46
+
47
+ - ${t}: Wiki initialized by Claudin
48
+ `}function V(t){return`# Architecture
49
+
50
+ ## Summary
51
+
52
+ High-level architecture notes for ${t}.
53
+
54
+ ## Key Facts
55
+
56
+ - This page is the starting point for durable architecture knowledge.
57
+
58
+ ## Relationships
59
+
60
+ - Link this page to major subsystems as the wiki grows.
61
+
62
+ ## Open Questions
63
+
64
+ - What are the most important runtime subsystems?
65
+ - Which files best represent the system architecture?
66
+
67
+ ## Sources
68
+
69
+ - Wiki bootstrap
70
+ `}async function f(t,e,i){try{await G(t,e,{encoding:"utf8",flag:"wx"}),i.push(t)}catch(r){if(typeof r==="object"&&r!==null&&"code"in r&&r.code==="EEXIST")return;throw r}}async function h(t){let e=c(t),i=[],r=[];for(let s of[e.root,e.pagesDir,e.sourcesDir])await J(s,{recursive:!0}),i.push(s);let n=H(t),o=new Date().toISOString();return await f(e.schemaFile,Q(n),r),await f(e.indexFile,B(n),r),await f(e.logFile,q(o),r),await f(`${e.pagesDir}/architecture.md`,V(n),r),{root:e.root,createdFiles:r.map((s)=>W(t,s)),createdDirectories:i.map((s)=>W(t,s)),alreadyExisted:r.length===0}}var y=l(()=>{p()});import{readdir as Y,readFile as Z,writeFile as tt}from"fs/promises";import{basename as w,relative as F}from"path";async function k(t){let e=await Y(t,{withFileTypes:!0}),i=[];for(let r of e){let n=`${t}/${r.name}`;if(r.isDirectory())i.push(...await k(n));else if(r.isFile()&&r.name.endsWith(".md"))i.push(n)}return i.sort()}async function et(t){let i=(await Z(t,"utf8")).split(`
71
+ `).map((r)=>r.trim()).find((r)=>r.startsWith("# "));return i?i.replace(/^#\s+/,""):w(t,".md")}async function P(t){let e=c(t),i=await k(e.pagesDir),r=await k(e.sourcesDir),n=await Promise.all(i.map(async(a)=>{let u=F(e.root,a);return`- [${await et(a)}](./${u.replace(/\\/g,"/")})`})),o=r.map((a)=>{let u=F(e.root,a).replace(/\\/g,"/");return`- [${w(a,".md")}](./${u})`}),s=`# ${w(t)} Wiki
72
+
73
+ This wiki is maintained by Claudin as a durable project knowledge layer.
74
+
75
+ ## Core Pages
76
+
77
+ ${n.length>0?n.join(`
78
+ `):"- No pages yet"}
79
+
80
+ ## Sources
81
+
82
+ ${o.length>0?o.join(`
83
+ `):"- No sources yet"}
84
+
85
+ ## Recent Updates
86
+
87
+ - See [log.md](./log.md)
88
+ `;await tt(e.indexFile,s,"utf8")}var b=l(()=>{p()});function C(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function I(t,e=280){let i=t.replace(/\s+/g," ").trim();if(!i)return"No summary available.";if(i.length<=e)return i;return`${i.slice(0,e-1).trimEnd()}…`}function j(t,e){let i=e.split(`
89
+ `).map((r)=>r.trim()).find(Boolean);if(!i)return t;return i.replace(/^#+\s*/,"")||t}var R=()=>{};import{appendFile as it,readFile as rt,stat as nt,writeFile as st}from"fs/promises";import{basename as ot,extname as at,isAbsolute as ct,relative as L,resolve as ut}from"path";function lt(t){let{title:e,sourcePath:i,ingestedAt:r,summary:n,excerpt:o}=t;return`# ${e}
90
+
91
+ ## Source
92
+
93
+ - Path: \`${i}\`
94
+ - Ingested at: ${r}
95
+
96
+ ## Summary
97
+
98
+ ${n}
99
+
100
+ ## Excerpt
101
+
102
+ \`\`\`
103
+ ${o}
104
+ \`\`\`
105
+
106
+ ## Linked Pages
107
+
108
+ - [Architecture](../pages/architecture.md)
109
+ `}function mt(t,e,i){return`- ${i}: Ingested \`${t}\` into source note "${e}"`}async function A(t,e){await h(t);let i=ct(e)?e:ut(t,e);if(!(await nt(i)).isFile())throw Error(`Not a file: ${i}`);let n=await rt(i,"utf8"),o=L(t,i).replace(/\\/g,"/"),s=new Date().toISOString(),a=ot(i,at(i)),u=j(a,n),d=I(n),U=n.split(`
110
+ `).slice(0,20).join(`
111
+ `).trim(),_=C(`${a}-${Date.now()}`)||`source-${Date.now()}`,S=c(t),x=`${S.sourcesDir}/${_}.md`;return await st(x,lt({title:u,sourcePath:o,ingestedAt:s,summary:d,excerpt:U}),"utf8"),await it(S.logFile,`${mt(o,u,s)}
112
+ `,"utf8"),await P(t),{sourceFile:o,sourceNote:L(t,x).replace(/\\/g,"/"),summary:d,title:u}}var T=l(()=>{y();b();p();R()});import{readdir as pt,stat as D}from"fs/promises";async function g(t){try{return await D(t),!0}catch{return!1}}async function $(t){if(!await g(t))return[];let e=await pt(t,{withFileTypes:!0}),i=[];for(let r of e){let n=`${t}/${r.name}`;if(r.isDirectory())i.push(...await $(n));else if(r.isFile()&&r.name.endsWith(".md"))i.push(n)}return i}async function gt(t){let e=[];for(let i of t)try{let r=await D(i);e.push(r.mtimeMs)}catch{continue}if(e.length===0)return null;return new Date(Math.max(...e)).toISOString()}async function z(t){let e=c(t),[i,r,n,o,s,a]=await Promise.all([g(e.root),g(e.schemaFile),g(e.indexFile),g(e.logFile),$(e.pagesDir),$(e.sourcesDir)]);return{initialized:i&&r&&n&&o,root:e.root,pageCount:s.length,sourceCount:a.length,hasSchema:r,hasIndex:n,hasLog:o,lastUpdatedAt:await gt([e.schemaFile,e.indexFile,e.logFile,...s,...a])}}var N=l(()=>{p()});function v(){return`Usage: /wiki [init|status|ingest <path>]
113
+
114
+ Manage the Claudin project wiki stored in .claudin/wiki.
115
+
116
+ Commands:
117
+ /wiki init Initialize the wiki structure in the current project
118
+ /wiki status Show wiki status and page/source counts
119
+ /wiki ingest Ingest a local file into wiki sources
120
+
121
+ Examples:
122
+ /wiki init
123
+ /wiki status
124
+ /wiki ingest README.md`}function ht(t){let e=[`Initialized Claudin wiki at ${t.root}`];if(t.alreadyExisted)return e.push("","Wiki already existed. No new files were created."),e.join(`
125
+ `);if(t.createdFiles.length>0){e.push("","Created files:");for(let i of t.createdFiles)e.push(`- ${i}`)}return e.join(`
126
+ `)}function yt(t){if(!t.initialized)return`Claudin wiki is not initialized in this project.
127
+
128
+ Run /wiki init to create ${t.root}.`;return["Claudin wiki status","",`Root: ${t.root}`,`Pages: ${t.pageCount}`,`Sources: ${t.sourceCount}`,`Schema: ${t.hasSchema?"present":"missing"}`,`Index: ${t.hasIndex?"present":"missing"}`,`Log: ${t.hasLog?"present":"missing"}`,`Last updated: ${t.lastUpdatedAt??"unknown"}`].join(`
129
+ `)}function wt(t){return[`Ingested ${t.sourceFile} into the Claudin wiki.`,"",`Title: ${t.title}`,`Source note: ${t.sourceNote}`,`Summary: ${t.summary}`].join(`
130
+ `)}async function kt(t,e){let i=E(),r=e.trim().toLowerCase();if(M.includes(r)||O.includes(r)){t(v(),{display:"system"});return}if(!r||r==="status"){t(yt(await z(i)),{display:"system"});return}if(r==="init"){t(ht(await h(i)),{display:"system"});return}if(r.startsWith("ingest")){let n=e.trim().slice(6).trim();if(!n){t("Usage: /wiki ingest <local-file-path>",{display:"system"});return}t(wt(await A(i,n)),{display:"system"});return}t(`Unknown wiki subcommand: ${e.trim()}
131
+
132
+ ${v()}`,{display:"system"})}var Ht=async(t,e,i)=>{return await kt(t,i??""),null};var $t=l(()=>{ft();T();y();N();dt()});$t();export{Ht as call};
@@ -0,0 +1 @@
1
+ import{Yb as q,Zb as A}from"./cli-1.0.7-s11nkveb.mjs";import"./cli-1.0.7-pyacw9kn.mjs";import"./cli-1.0.7-7gmv86pv.mjs";import"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import{o3 as g,q3 as d}from"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import{xra as z}from"./cli-1.0.7-y94dd4yd.mjs";async function E(v,y){return g(q,{context:y,onExit:v})}var B=z(()=>{A();d()});B();export{E as call};
@@ -0,0 +1 @@
1
+ import{Bl as a,Cl as b,Dl as c,El as d,Fl as e,Gl as f,Hl as g,Il as h,Jl as i,Kl as j,Ll as k,Ml as l,Nl as m,Ol as n,Pl as o,Ql as p,Rl as q,Sl as r,Tl as s,Ul as t,Vl as u,Wl as v,Xl as w}from"./cli-1.0.7-s5mhxbhn.mjs";import"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-q3ezj6q3.mjs";import"./cli-1.0.7-xtj9j6ha.mjs";import"./cli-1.0.7-qxjpkptr.mjs";import"./cli-1.0.7-nhg85avf.mjs";import"./cli-1.0.7-kgbv7bt5.mjs";import"./cli-1.0.7-z5vgrn57.mjs";import"./cli-1.0.7-p5setvdk.mjs";import"./cli-1.0.7-b778v1dh.mjs";import"./cli-1.0.7-a7fahcda.mjs";import"./cli-1.0.7-gq9fp39n.mjs";import"./cli-1.0.7-gnwjbdch.mjs";import"./cli-1.0.7-1mkaw3aw.mjs";import"./cli-1.0.7-veqj11zy.mjs";import"./cli-1.0.7-1s12ckef.mjs";import"./cli-1.0.7-yb9sxq0k.mjs";import"./cli-1.0.7-gqf40mqk.mjs";import"./cli-1.0.7-kf237s65.mjs";import"./cli-1.0.7-3p608q44.mjs";import"./cli-1.0.7-yc90byps.mjs";import"./cli-1.0.7-mwj9f8rw.mjs";import"./cli-1.0.7-g6d9snde.mjs";import"./cli-1.0.7-a32vv8nk.mjs";import"./cli-1.0.7-bfe6f9c6.mjs";import"./cli-1.0.7-8hepstgz.mjs";import"./cli-1.0.7-xdt2g9p7.mjs";import"./cli-1.0.7-8pfh7aha.mjs";import"./cli-1.0.7-3ke0fbeq.mjs";import"./cli-1.0.7-9pc6jb5f.mjs";import"./cli-1.0.7-xhb3g1xh.mjs";import"./cli-1.0.7-xh0afj9p.mjs";import"./cli-1.0.7-wc28nq81.mjs";import"./cli-1.0.7-hd6xn6rt.mjs";import"./cli-1.0.7-jn7nay2r.mjs";import"./cli-1.0.7-k3nnbdbv.mjs";import"./cli-1.0.7-s27f8y4p.mjs";import"./cli-1.0.7-j31m0f1y.mjs";import"./cli-1.0.7-p4p38dky.mjs";import"./cli-1.0.7-txhggtd1.mjs";import"./cli-1.0.7-7egbzjdg.mjs";import"./cli-1.0.7-wgt5ay2x.mjs";import"./cli-1.0.7-d1zc020r.mjs";import"./cli-1.0.7-yyqg2waz.mjs";import"./cli-1.0.7-fckzct0z.mjs";import"./cli-1.0.7-757ex32c.mjs";import"./cli-1.0.7-1xe7m9s1.mjs";import"./cli-1.0.7-6wm7jzey.mjs";import"./cli-1.0.7-b16t7f1a.mjs";import"./cli-1.0.7-01cbaw74.mjs";import"./cli-1.0.7-3kmf6s21.mjs";import"./cli-1.0.7-1ty38mre.mjs";import"./cli-1.0.7-vcsdnmc0.mjs";import"./cli-1.0.7-gk53nva2.mjs";import"./cli-1.0.7-zjapdrt8.mjs";import"./cli-1.0.7-ghxmw318.mjs";import"./cli-1.0.7-3pqhf5bj.mjs";import"./cli-1.0.7-ph9qjcjb.mjs";import"./cli-1.0.7-9p7hfa00.mjs";import"./cli-1.0.7-dnn18rgf.mjs";import"./cli-1.0.7-f43w1f9g.mjs";import"./cli-1.0.7-w3g8c9m3.mjs";import"./cli-1.0.7-45px4q2q.mjs";import"./cli-1.0.7-fcfrsawp.mjs";import"./cli-1.0.7-y94dd4yd.mjs";w();export{g as worktreeBranchName,e as withGitWorktreeMutationLock,a as validateWorktreeSlug,c as restoreWorktreeSession,s as removeAgentWorktree,i as parsePRReference,m as killTmuxSession,p as keepWorktree,j as isTmuxAvailable,u as hasWorktreeChanges,k as getTmuxInstallInstructions,b as getCurrentWorktreeSession,d as generateTmuxSessionName,v as execIntoTmuxWorktree,n as createWorktreeForSession,l as createTmuxSessionForWorktree,r as createAgentWorktree,h as copyWorktreeIncludeFiles,q as cleanupWorktree,t as cleanupStaleAgentWorktrees,o as attachExistingWorktree,f as _resetGitWorktreeMutationLocksForTesting};
@@ -0,0 +1 @@
1
+ import{tT as a,uT as b}from"./cli-1.0.7-s6jjnyxd.mjs";import"./cli-1.0.7-y94dd4yd.mjs";b();export{a as isWorktreeModeEnabled};
@@ -0,0 +1,7 @@
1
+ import{tra as S,vra as M,xra as Z4,yra as H}from"./cli-1.0.7-y94dd4yd.mjs";var C=M((_4,h0)=>{var g0=["nodebuffer","arraybuffer","fragments"],w0=typeof Blob<"u";if(w0)g0.push("blob");h0.exports={BINARY_TYPES:g0,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:w0,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var a=M((N4,X0)=>{var{EMPTY_BUFFER:m5}=C(),F0=Buffer[Symbol.species];function f5(J,K){if(J.length===0)return m5;if(J.length===1)return J[0];let X=Buffer.allocUnsafe(K),Z=0;for(let $=0;$<J.length;$++){let G=J[$];X.set(G,Z),Z+=G.length}if(Z<K)return new F0(X.buffer,X.byteOffset,Z);return X}function m0(J,K,X,Z,$){for(let G=0;G<$;G++)X[Z+G]=J[G]^K[G&3]}function f0(J,K){for(let X=0;X<J.length;X++)J[X]^=K[X&3]}function u5(J){if(J.length===J.buffer.byteLength)return J.buffer;return J.buffer.slice(J.byteOffset,J.byteOffset+J.length)}function D0(J){if(D0.readOnly=!0,Buffer.isBuffer(J))return J;let K;if(J instanceof ArrayBuffer)K=new F0(J);else if(ArrayBuffer.isView(J))K=new F0(J.buffer,J.byteOffset,J.byteLength);else K=Buffer.from(J),D0.readOnly=!1;return K}X0.exports={concat:f5,mask:m0,toArrayBuffer:u5,toBuffer:D0,unmask:f0};if(!process.env.WS_NO_BUFFER_UTIL)try{let J=(()=>{throw new Error("Cannot require module "+"bufferutil");})();X0.exports.mask=function(K,X,Z,$,G){if(G<48)m0(K,X,Z,$,G);else J.mask(K,X,Z,$,G)},X0.exports.unmask=function(K,X){if(K.length<32)f0(K,X);else J.unmask(K,X)}}catch(J){}});var b0=M((H4,p0)=>{var u0=Symbol("kDone"),P0=Symbol("kRun");class l0{constructor(J){this[u0]=()=>{this.pending--,this[P0]()},this.concurrency=J||1/0,this.jobs=[],this.pending=0}add(J){this.jobs.push(J),this[P0]()}[P0](){if(this.pending===this.concurrency)return;if(this.jobs.length){let J=this.jobs.shift();this.pending++,J(this[u0])}}}p0.exports=l0});var p=M((R4,n0)=>{var s=H("zlib"),k0=a(),l5=b0(),{kStatusCode:i0}=C(),p5=Buffer[Symbol.species],b5=Buffer.from([0,0,255,255]),$0=Symbol("permessage-deflate"),U=Symbol("total-length"),u=Symbol("callback"),L=Symbol("buffers"),l=Symbol("error"),Z0;class d0{constructor(J){if(this._options=J||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!Z0){let K=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Z0=new l5(K)}}static get extensionName(){return"permessage-deflate"}offer(){let J={};if(this._options.serverNoContextTakeover)J.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)J.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)J.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)J.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)J.client_max_window_bits=!0;return J}accept(J){return J=this.normalizeParams(J),this.params=this._isServer?this.acceptAsServer(J):this.acceptAsClient(J),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let J=this._deflate[u];if(this._deflate.close(),this._deflate=null,J)J(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(J){let K=this._options,X=J.find((Z)=>{if(K.serverNoContextTakeover===!1&&Z.server_no_context_takeover||Z.server_max_window_bits&&(K.serverMaxWindowBits===!1||typeof K.serverMaxWindowBits==="number"&&K.serverMaxWindowBits>Z.server_max_window_bits)||typeof K.clientMaxWindowBits==="number"&&!Z.client_max_window_bits)return!1;return!0});if(!X)throw Error("None of the extension offers can be accepted");if(K.serverNoContextTakeover)X.server_no_context_takeover=!0;if(K.clientNoContextTakeover)X.client_no_context_takeover=!0;if(typeof K.serverMaxWindowBits==="number")X.server_max_window_bits=K.serverMaxWindowBits;if(typeof K.clientMaxWindowBits==="number")X.client_max_window_bits=K.clientMaxWindowBits;else if(X.client_max_window_bits===!0||K.clientMaxWindowBits===!1)delete X.client_max_window_bits;return X}acceptAsClient(J){let K=J[0];if(this._options.clientNoContextTakeover===!1&&K.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!K.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")K.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&K.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return K}normalizeParams(J){return J.forEach((K)=>{Object.keys(K).forEach((X)=>{let Z=K[X];if(Z.length>1)throw Error(`Parameter "${X}" must have only a single value`);if(Z=Z[0],X==="client_max_window_bits"){if(Z!==!0){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else if(X==="server_max_window_bits"){let $=+Z;if(!Number.isInteger($)||$<8||$>15)throw TypeError(`Invalid value for parameter "${X}": ${Z}`);Z=$}else if(X==="client_no_context_takeover"||X==="server_no_context_takeover"){if(Z!==!0)throw TypeError(`Invalid value for parameter "${X}": ${Z}`)}else throw Error(`Unknown parameter "${X}"`);K[X]=Z})}),J}decompress(J,K,X){Z0.add((Z)=>{this._decompress(J,K,($,G)=>{Z(),X($,G)})})}compress(J,K,X){Z0.add((Z)=>{this._compress(J,K,($,G)=>{Z(),X($,G)})})}_decompress(J,K,X){let Z=this._isServer?"client":"server";if(!this._inflate){let $=`${Z}_max_window_bits`,G=typeof this.params[$]!=="number"?s.Z_DEFAULT_WINDOWBITS:this.params[$];this._inflate=s.createInflateRaw({...this._options.zlibInflateOptions,windowBits:G}),this._inflate[$0]=this,this._inflate[U]=0,this._inflate[L]=[],this._inflate.on("error",i5),this._inflate.on("data",c0)}if(this._inflate[u]=X,this._inflate.write(J),K)this._inflate.write(b5);this._inflate.flush(()=>{let $=this._inflate[l];if($){this._inflate.close(),this._inflate=null,X($);return}let G=k0.concat(this._inflate[L],this._inflate[U]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[U]=0,this._inflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._inflate.reset();X(null,G)})}_compress(J,K,X){let Z=this._isServer?"server":"client";if(!this._deflate){let $=`${Z}_max_window_bits`,G=typeof this.params[$]!=="number"?s.Z_DEFAULT_WINDOWBITS:this.params[$];this._deflate=s.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:G}),this._deflate[U]=0,this._deflate[L]=[],this._deflate.on("data",k5)}this._deflate[u]=X,this._deflate.write(J),this._deflate.flush(s.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let $=k0.concat(this._deflate[L],this._deflate[U]);if(K)$=new p5($.buffer,$.byteOffset,$.length-4);if(this._deflate[u]=null,this._deflate[U]=0,this._deflate[L]=[],K&&this.params[`${Z}_no_context_takeover`])this._deflate.reset();X(null,$)})}}n0.exports=d0;function k5(J){this[L].push(J),this[U]+=J.length}function c0(J){if(this[U]+=J.length,this[$0]._maxPayload<1||this[U]<=this[$0]._maxPayload){this[L].push(J);return}this[l]=RangeError("Max payload size exceeded"),this[l].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[l][i0]=1009,this.removeListener("data",c0),this.reset()}function i5(J){if(this[$0]._inflate=null,this[l]){this[u](this[l]);return}J[i0]=1007,this[u](J)}});var b=M((A4,G0)=>{var{isUtf8:r0}=H("buffer"),{hasBlob:d5}=C(),c5=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function n5(J){return J>=1000&&J<=1014&&J!==1004&&J!==1005&&J!==1006||J>=3000&&J<=4999}function M0(J){let K=J.length,X=0;while(X<K)if((J[X]&128)===0)X++;else if((J[X]&224)===192){if(X+1===K||(J[X+1]&192)!==128||(J[X]&254)===192)return!1;X+=2}else if((J[X]&240)===224){if(X+2>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||J[X]===224&&(J[X+1]&224)===128||J[X]===237&&(J[X+1]&224)===160)return!1;X+=3}else if((J[X]&248)===240){if(X+3>=K||(J[X+1]&192)!==128||(J[X+2]&192)!==128||(J[X+3]&192)!==128||J[X]===240&&(J[X+1]&240)===128||J[X]===244&&J[X+1]>143||J[X]>244)return!1;X+=4}else return!1;return!0}function r5(J){return d5&&typeof J==="object"&&typeof J.arrayBuffer==="function"&&typeof J.type==="string"&&typeof J.stream==="function"&&(J[Symbol.toStringTag]==="Blob"||J[Symbol.toStringTag]==="File")}G0.exports={isBlob:r5,isValidStatusCode:n5,isValidUTF8:M0,tokenChars:c5};if(r0)G0.exports.isValidUTF8=function(J){return J.length<24?M0(J):r0(J)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let J=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();G0.exports.isValidUTF8=function(K){return K.length<32?M0(K):J(K)}}catch(J){}});var T0=M((F4,e0)=>{var{Writable:a5}=H("stream"),a0=p(),{BINARY_TYPES:s5,EMPTY_BUFFER:s0,kStatusCode:o5,kWebSocket:t5}=C(),{concat:O0,toArrayBuffer:e5,unmask:J1}=a(),{isValidStatusCode:K1,isValidUTF8:o0}=b(),Q0=Buffer[Symbol.species];class t0 extends a5{constructor(J={}){super();this._allowSynchronousEvents=J.allowSynchronousEvents!==void 0?J.allowSynchronousEvents:!0,this._binaryType=J.binaryType||s5[0],this._extensions=J.extensions||{},this._isServer=!!J.isServer,this._maxBufferedChunks=J.maxBufferedChunks|0,this._maxFragments=J.maxFragments|0,this._maxPayload=J.maxPayload|0,this._skipUTF8Validation=!!J.skipUTF8Validation,this[t5]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(J,K,X){if(this._opcode===8&&this._state==0)return X();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){X(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=J.length,this._buffers.push(J),this.startLoop(X)}consume(J){if(this._bufferedBytes-=J,J===this._buffers[0].length)return this._buffers.shift();if(J<this._buffers[0].length){let X=this._buffers[0];return this._buffers[0]=new Q0(X.buffer,X.byteOffset+J,X.length-J),new Q0(X.buffer,X.byteOffset,J)}let K=Buffer.allocUnsafe(J);do{let X=this._buffers[0],Z=K.length-J;if(J>=X.length)K.set(this._buffers.shift(),Z);else K.set(new Uint8Array(X.buffer,X.byteOffset,J),Z),this._buffers[0]=new Q0(X.buffer,X.byteOffset+J,X.length-J);J-=X.length}while(J>0);return K}startLoop(J){this._loop=!0;do switch(this._state){case 0:this.getInfo(J);break;case 1:this.getPayloadLength16(J);break;case 2:this.getPayloadLength64(J);break;case 3:this.getMask();break;case 4:this.getData(J);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)J()}getInfo(J){if(this._bufferedBytes<2){this._loop=!1;return}let K=this.consume(2);if((K[0]&48)!==0){let Z=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");J(Z);return}let X=(K[0]&64)===64;if(X&&!this._extensions[a0.extensionName]){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._fin=(K[0]&128)===128,this._opcode=K[0]&15,this._payloadLength=K[1]&127,this._opcode===0){if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(!this._fragmented){let Z=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}this._compressed=X}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let Z=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");J(Z);return}if(X){let Z=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");J(Z);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let Z=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");J(Z);return}}else{let Z=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");J(Z);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(K[1]&128)===128,this._isServer){if(!this._masked){let Z=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");J(Z);return}}else if(this._masked){let Z=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");J(Z);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(J)}getPayloadLength16(J){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(J)}getPayloadLength64(J){if(this._bufferedBytes<8){this._loop=!1;return}let K=this.consume(8),X=K.readUInt32BE(0);if(X>Math.pow(2,21)-1){let Z=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");J(Z);return}this._payloadLength=X*Math.pow(2,32)+K.readUInt32BE(4),this.haveLength(J)}haveLength(J){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let K=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");J(K);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(J){let K=s0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(K=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)J1(K,this._mask)}if(this._opcode>7){this.controlMessage(K,J);return}if(this._compressed){this._state=5,this.decompress(K,J);return}if(K.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){let X=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");J(X);return}this._messageLength=this._totalPayloadLength,this._fragments.push(K)}this.dataMessage(J)}decompress(J,K){this._extensions[a0.extensionName].decompress(J,this._fin,(Z,$)=>{if(Z)return K(Z);if($.length){if(this._messageLength+=$.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let G=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");K(G);return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){let G=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");K(G);return}this._fragments.push($)}if(this.dataMessage(K),this._state===0)this.startLoop(K)})}dataMessage(J){if(!this._fin){this._state=0;return}let K=this._messageLength,X=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let Z;if(this._binaryType==="nodebuffer")Z=O0(X,K);else if(this._binaryType==="arraybuffer")Z=e5(O0(X,K));else if(this._binaryType==="blob")Z=new Blob(X);else Z=X;if(this._allowSynchronousEvents)this.emit("message",Z,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!0),this._state=0,this.startLoop(J)})}else{let Z=O0(X,K);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");J($);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",Z,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",Z,!1),this._state=0,this.startLoop(J)})}}controlMessage(J,K){if(this._opcode===8){if(J.length===0)this._loop=!1,this.emit("conclude",1005,s0),this.end();else{let X=J.readUInt16BE(0);if(!K1(X)){let $=this.createError(RangeError,`invalid status code ${X}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");K($);return}let Z=new Q0(J.buffer,J.byteOffset+2,J.length-2);if(!this._skipUTF8Validation&&!o0(Z)){let $=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");K($);return}this._loop=!1,this.emit("conclude",X,Z),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",J),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",J),this._state=0,this.startLoop(K)})}createError(J,K,X,Z,$){this._loop=!1,this._errored=!0;let G=new J(X?`Invalid WebSocket frame: ${K}`:K);return Error.captureStackTrace(G,this.createError),G.code=$,G[o5]=Z,G}}e0.exports=t0});var B0=M((P4,X5)=>{var{Duplex:D4}=H("stream"),{randomFillSync:X1}=H("crypto"),{types:{isUint8Array:Z1}}=H("util"),J5=p(),{EMPTY_BUFFER:$1,kWebSocket:G1,NOOP:Q1}=C(),{isBlob:k,isValidStatusCode:j1}=b(),{mask:K5,toBuffer:v}=a(),T=Symbol("kByteLength"),I1=Buffer.alloc(4),g,i=8192,x=0,z1=1,Y1=2;class W{constructor(J,K,X){if(this._extensions=K||{},X)this._generateMask=X,this._maskBuffer=Buffer.alloc(4);this._socket=J,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=x,this.onerror=Q1,this[G1]=void 0}static frame(J,K){let X,Z=!1,$=2,G=!1;if(K.mask){if(X=K.maskBuffer||I1,K.generateMask)K.generateMask(X);else{if(i===8192){if(g===void 0)g=Buffer.alloc(8192);X1(g,0,8192),i=0}X[0]=g[i++],X[1]=g[i++],X[2]=g[i++],X[3]=g[i++]}G=(X[0]|X[1]|X[2]|X[3])===0,$=6}let Q;if(typeof J==="string")if((!K.mask||G)&&K[T]!==void 0)Q=K[T];else J=Buffer.from(J),Q=J.length;else Q=J.length,Z=K.mask&&K.readOnly&&!G;let I=Q;if(Q>=65536)$+=8,I=127;else if(Q>125)$+=2,I=126;let j=Buffer.allocUnsafe(Z?Q+$:$);if(j[0]=K.fin?K.opcode|128:K.opcode,K.rsv1)j[0]|=64;if(j[1]=I,I===126)j.writeUInt16BE(Q,2);else if(I===127)j[2]=j[3]=0,j.writeUIntBE(Q,4,6);if(!K.mask)return[j,J];if(j[1]|=128,j[$-4]=X[0],j[$-3]=X[1],j[$-2]=X[2],j[$-1]=X[3],G)return[j,J];if(Z)return K5(J,X,j,$,Q),[j];return K5(J,X,J,0,Q),[j,J]}close(J,K,X,Z){let $;if(J===void 0)$=$1;else if(typeof J!=="number"||!j1(J))throw TypeError("First argument must be a valid error code number");else if(K===void 0||!K.length)$=Buffer.allocUnsafe(2),$.writeUInt16BE(J,0);else{let Q=Buffer.byteLength(K);if(Q>123)throw RangeError("The message must not be greater than 123 bytes");if($=Buffer.allocUnsafe(2+Q),$.writeUInt16BE(J,0),typeof K==="string")$.write(K,2);else if(Z1(K))$.set(K,2);else throw TypeError("Second argument must be a string or a Uint8Array")}let G={[T]:$.length,fin:!0,generateMask:this._generateMask,mask:X,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==x)this.enqueue([this.dispatch,$,!1,G,Z]);else this.sendFrame(W.frame($,G),Z)}ping(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(k(J))Z=J.size,$=!1;else J=v(J),Z=J.length,$=v.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let G={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:9,readOnly:$,rsv1:!1};if(k(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,G,X]);else this.getBlobData(J,!1,G,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,G,X]);else this.sendFrame(W.frame(J,G),X)}pong(J,K,X){let Z,$;if(typeof J==="string")Z=Buffer.byteLength(J),$=!1;else if(k(J))Z=J.size,$=!1;else J=v(J),Z=J.length,$=v.readOnly;if(Z>125)throw RangeError("The data size must not be greater than 125 bytes");let G={[T]:Z,fin:!0,generateMask:this._generateMask,mask:K,maskBuffer:this._maskBuffer,opcode:10,readOnly:$,rsv1:!1};if(k(J))if(this._state!==x)this.enqueue([this.getBlobData,J,!1,G,X]);else this.getBlobData(J,!1,G,X);else if(this._state!==x)this.enqueue([this.dispatch,J,!1,G,X]);else this.sendFrame(W.frame(J,G),X)}send(J,K,X){let Z=this._extensions[J5.extensionName],$=K.binary?2:1,G=K.compress,Q,I;if(typeof J==="string")Q=Buffer.byteLength(J),I=!1;else if(k(J))Q=J.size,I=!1;else J=v(J),Q=J.length,I=v.readOnly;if(this._firstFragment){if(this._firstFragment=!1,G&&Z&&Z.params[Z._isServer?"server_no_context_takeover":"client_no_context_takeover"])G=Q>=Z._threshold;this._compress=G}else G=!1,$=0;if(K.fin)this._firstFragment=!0;let j={[T]:Q,fin:K.fin,generateMask:this._generateMask,mask:K.mask,maskBuffer:this._maskBuffer,opcode:$,readOnly:I,rsv1:G};if(k(J))if(this._state!==x)this.enqueue([this.getBlobData,J,this._compress,j,X]);else this.getBlobData(J,this._compress,j,X);else if(this._state!==x)this.enqueue([this.dispatch,J,this._compress,j,X]);else this.dispatch(J,this._compress,j,X)}getBlobData(J,K,X,Z){this._bufferedBytes+=X[T],this._state=Y1,J.arrayBuffer().then(($)=>{if(this._socket.destroyed){let Q=Error("The socket was closed while the blob was being read");process.nextTick(x0,this,Q,Z);return}this._bufferedBytes-=X[T];let G=v($);if(!K)this._state=x,this.sendFrame(W.frame(G,X),Z),this.dequeue();else this.dispatch(G,K,X,Z)}).catch(($)=>{process.nextTick(V1,this,$,Z)})}dispatch(J,K,X,Z){if(!K){this.sendFrame(W.frame(J,X),Z);return}let $=this._extensions[J5.extensionName];this._bufferedBytes+=X[T],this._state=z1,$.compress(J,X.fin,(G,Q)=>{if(this._socket.destroyed){let I=Error("The socket was closed while data was being compressed");x0(this,I,Z);return}this._bufferedBytes-=X[T],this._state=x,X.readOnly=!1,this.sendFrame(W.frame(Q,X),Z),this.dequeue()})}dequeue(){while(this._state===x&&this._queue.length){let J=this._queue.shift();this._bufferedBytes-=J[3][T],Reflect.apply(J[0],this,J.slice(1))}}enqueue(J){this._bufferedBytes+=J[3][T],this._queue.push(J)}sendFrame(J,K){if(J.length===2)this._socket.cork(),this._socket.write(J[0]),this._socket.write(J[1],K),this._socket.uncork();else this._socket.write(J[0],K)}}X5.exports=W;function x0(J,K,X){if(typeof X==="function")X(K);for(let Z=0;Z<J._queue.length;Z++){let $=J._queue[Z],G=$[$.length-1];if(typeof G==="function")G(K)}}function V1(J,K,X){x0(J,K,X),J.onerror(K)}});var V5=M((M4,Y5)=>{var{kForOnEventAttribute:o,kListener:C0}=C(),Z5=Symbol("kCode"),$5=Symbol("kData"),G5=Symbol("kError"),Q5=Symbol("kMessage"),j5=Symbol("kReason"),d=Symbol("kTarget"),I5=Symbol("kType"),z5=Symbol("kWasClean");class y{constructor(J){this[d]=null,this[I5]=J}get target(){return this[d]}get type(){return this[I5]}}Object.defineProperty(y.prototype,"target",{enumerable:!0});Object.defineProperty(y.prototype,"type",{enumerable:!0});class c extends y{constructor(J,K={}){super(J);this[Z5]=K.code===void 0?0:K.code,this[j5]=K.reason===void 0?"":K.reason,this[z5]=K.wasClean===void 0?!1:K.wasClean}get code(){return this[Z5]}get reason(){return this[j5]}get wasClean(){return this[z5]}}Object.defineProperty(c.prototype,"code",{enumerable:!0});Object.defineProperty(c.prototype,"reason",{enumerable:!0});Object.defineProperty(c.prototype,"wasClean",{enumerable:!0});class t extends y{constructor(J,K={}){super(J);this[G5]=K.error===void 0?null:K.error,this[Q5]=K.message===void 0?"":K.message}get error(){return this[G5]}get message(){return this[Q5]}}Object.defineProperty(t.prototype,"error",{enumerable:!0});Object.defineProperty(t.prototype,"message",{enumerable:!0});class I0 extends y{constructor(J,K={}){super(J);this[$5]=K.data===void 0?null:K.data}get data(){return this[$5]}}Object.defineProperty(I0.prototype,"data",{enumerable:!0});var _1={addEventListener(J,K,X={}){for(let $ of this.listeners(J))if(!X[o]&&$[C0]===K&&!$[o])return;let Z;if(J==="message")Z=function(G,Q){let I=new I0("message",{data:Q?G:G.toString()});I[d]=this,j0(K,this,I)};else if(J==="close")Z=function(G,Q){let I=new c("close",{code:G,reason:Q.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});I[d]=this,j0(K,this,I)};else if(J==="error")Z=function(G){let Q=new t("error",{error:G,message:G.message});Q[d]=this,j0(K,this,Q)};else if(J==="open")Z=function(){let G=new y("open");G[d]=this,j0(K,this,G)};else return;if(Z[o]=!!X[o],Z[C0]=K,X.once)this.once(J,Z);else this.on(J,Z)},removeEventListener(J,K){for(let X of this.listeners(J))if(X[C0]===K&&!X[o]){this.removeListener(J,X);break}}};Y5.exports={CloseEvent:c,ErrorEvent:t,Event:y,EventTarget:_1,MessageEvent:I0};function j0(J,K,X){if(typeof J==="object"&&J.handleEvent)J.handleEvent.call(J,X);else J.call(K,X)}});var z0=M((O4,_5)=>{var{tokenChars:e}=b();function B(J,K,X){if(J[K]===void 0)J[K]=[X];else J[K].push(X)}function N1(J){let K=Object.create(null),X=Object.create(null),Z=!1,$=!1,G=!1,Q,I,j=-1,V=-1,_=-1,Y=0;for(;Y<J.length;Y++)if(V=J.charCodeAt(Y),Q===void 0)if(_===-1&&e[V]===1){if(j===-1)j=Y}else if(Y!==0&&(V===32||V===9)){if(_===-1&&j!==-1)_=Y}else if(V===59||V===44){if(j===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(j,_);if(V===44)B(K,D,X),X=Object.create(null);else Q=D;j=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);else if(I===void 0)if(_===-1&&e[V]===1){if(j===-1)j=Y}else if(V===32||V===9){if(_===-1&&j!==-1)_=Y}else if(V===59||V===44){if(j===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;if(B(X,J.slice(j,_),!0),V===44)B(K,Q,X),X=Object.create(null),Q=void 0;j=_=-1}else if(V===61&&j!==-1&&_===-1)I=J.slice(j,Y),j=_=-1;else throw SyntaxError(`Unexpected character at index ${Y}`);else if($){if(e[V]!==1)throw SyntaxError(`Unexpected character at index ${Y}`);if(j===-1)j=Y;else if(!Z)Z=!0;$=!1}else if(G)if(e[V]===1){if(j===-1)j=Y}else if(V===34&&j!==-1)G=!1,_=Y;else if(V===92)$=!0;else throw SyntaxError(`Unexpected character at index ${Y}`);else if(V===34&&J.charCodeAt(Y-1)===61)G=!0;else if(_===-1&&e[V]===1){if(j===-1)j=Y}else if(j!==-1&&(V===32||V===9)){if(_===-1)_=Y}else if(V===59||V===44){if(j===-1)throw SyntaxError(`Unexpected character at index ${Y}`);if(_===-1)_=Y;let D=J.slice(j,_);if(Z)D=D.replace(/\\/g,""),Z=!1;if(B(X,I,D),V===44)B(K,Q,X),X=Object.create(null),Q=void 0;I=void 0,j=_=-1}else throw SyntaxError(`Unexpected character at index ${Y}`);if(j===-1||G||V===32||V===9)throw SyntaxError("Unexpected end of input");if(_===-1)_=Y;let F=J.slice(j,_);if(Q===void 0)B(K,F,X);else{if(I===void 0)B(X,F,!0);else if(Z)B(X,I,F.replace(/\\/g,""));else B(X,I,F);B(K,Q,X)}return K}function H1(J){return Object.keys(J).map((K)=>{let X=J[K];if(!Array.isArray(X))X=[X];return X.map((Z)=>{return[K].concat(Object.keys(Z).map(($)=>{let G=Z[$];if(!Array.isArray(G))G=[G];return G.map((Q)=>Q===!0?$:`${$}=${Q}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}_5.exports={format:H1,parse:N1}});var N0=M((B4,B5)=>{var R1=H("events"),A1=H("https"),F1=H("http"),R5=H("net"),D1=H("tls"),{randomBytes:P1,createHash:M1}=H("crypto"),{Duplex:T4,Readable:x4}=H("stream"),{URL:U0}=H("url"),E=p(),O1=T0(),T1=B0(),{isBlob:x1}=b(),{BINARY_TYPES:N5,CLOSE_TIMEOUT:B1,EMPTY_BUFFER:Y0,GUID:C1,kForOnEventAttribute:q0,kListener:U1,kStatusCode:q1,kWebSocket:A,NOOP:A5}=C(),{EventTarget:{addEventListener:L1,removeEventListener:W1}}=V5(),{format:y1,parse:E1}=z0(),{toBuffer:S1}=a(),F5=Symbol("kAborted"),L0=[8,13],q=["CONNECTING","OPEN","CLOSING","CLOSED"],v1=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class z extends R1{constructor(J,K,X){super();if(this._binaryType=N5[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Y0,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=z.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,J!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,K===void 0)K=[];else if(!Array.isArray(K))if(typeof K==="object"&&K!==null)X=K,K=[];else K=[K];D5(this,J,K,X)}else this._autoPong=X.autoPong,this._closeTimeout=X.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(J){if(!N5.includes(J))return;if(this._binaryType=J,this._receiver)this._receiver._binaryType=J}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(J,K,X){let Z=new O1({allowSynchronousEvents:X.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:X.maxBufferedChunks,maxFragments:X.maxFragments,maxPayload:X.maxPayload,skipUTF8Validation:X.skipUTF8Validation}),$=new T1(J,this._extensions,X.generateMask);if(this._receiver=Z,this._sender=$,this._socket=J,Z[A]=this,$[A]=this,J[A]=this,Z.on("conclude",h1),Z.on("drain",m1),Z.on("error",f1),Z.on("message",u1),Z.on("ping",l1),Z.on("pong",p1),$.onerror=b1,J.setTimeout)J.setTimeout(0);if(J.setNoDelay)J.setNoDelay();if(K.length>0)J.unshift(K);J.on("close",O5),J.on("data",_0),J.on("end",T5),J.on("error",x5),this._readyState=z.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=z.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[E.extensionName])this._extensions[E.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=z.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(J,K){if(this.readyState===z.CLOSED)return;if(this.readyState===z.CONNECTING){O(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===z.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=z.CLOSING,this._sender.close(J,K,!this._isServer,(X)=>{if(X)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),M5(this)}pause(){if(this.readyState===z.CONNECTING||this.readyState===z.CLOSED)return;this._paused=!0,this._socket.pause()}ping(J,K,X){if(this.readyState===z.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==z.OPEN){W0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.ping(J||Y0,K,X)}pong(J,K,X){if(this.readyState===z.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof J==="function")X=J,J=K=void 0;else if(typeof K==="function")X=K,K=void 0;if(typeof J==="number")J=J.toString();if(this.readyState!==z.OPEN){W0(this,J,X);return}if(K===void 0)K=!this._isServer;this._sender.pong(J||Y0,K,X)}resume(){if(this.readyState===z.CONNECTING||this.readyState===z.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(J,K,X){if(this.readyState===z.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof K==="function")X=K,K={};if(typeof J==="number")J=J.toString();if(this.readyState!==z.OPEN){W0(this,J,X);return}let Z={binary:typeof J!=="string",mask:!this._isServer,compress:!0,fin:!0,...K};if(!this._extensions[E.extensionName])Z.compress=!1;this._sender.send(J||Y0,Z,X)}terminate(){if(this.readyState===z.CLOSED)return;if(this.readyState===z.CONNECTING){O(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=z.CLOSING,this._socket.destroy()}}Object.defineProperty(z,"CONNECTING",{enumerable:!0,value:q.indexOf("CONNECTING")});Object.defineProperty(z.prototype,"CONNECTING",{enumerable:!0,value:q.indexOf("CONNECTING")});Object.defineProperty(z,"OPEN",{enumerable:!0,value:q.indexOf("OPEN")});Object.defineProperty(z.prototype,"OPEN",{enumerable:!0,value:q.indexOf("OPEN")});Object.defineProperty(z,"CLOSING",{enumerable:!0,value:q.indexOf("CLOSING")});Object.defineProperty(z.prototype,"CLOSING",{enumerable:!0,value:q.indexOf("CLOSING")});Object.defineProperty(z,"CLOSED",{enumerable:!0,value:q.indexOf("CLOSED")});Object.defineProperty(z.prototype,"CLOSED",{enumerable:!0,value:q.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((J)=>{Object.defineProperty(z.prototype,J,{enumerable:!0})});["open","error","close","message"].forEach((J)=>{Object.defineProperty(z.prototype,`on${J}`,{enumerable:!0,get(){for(let K of this.listeners(J))if(K[q0])return K[U1];return null},set(K){for(let X of this.listeners(J))if(X[q0]){this.removeListener(J,X);break}if(typeof K!=="function")return;this.addEventListener(J,K,{[q0]:!0})}})});z.prototype.addEventListener=L1;z.prototype.removeEventListener=W1;B5.exports=z;function D5(J,K,X,Z){let $={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:B1,protocolVersion:L0[1],maxBufferedChunks:1048576,maxFragments:131072,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...Z,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(J._autoPong=$.autoPong,J._closeTimeout=$.closeTimeout,!L0.includes($.protocolVersion))throw RangeError(`Unsupported protocol version: ${$.protocolVersion} (supported versions: ${L0.join(", ")})`);let G;if(K instanceof U0)G=K;else try{G=new U0(K)}catch{throw SyntaxError(`Invalid URL: ${K}`)}if(G.protocol==="http:")G.protocol="ws:";else if(G.protocol==="https:")G.protocol="wss:";J._url=G.href;let Q=G.protocol==="wss:",I=G.protocol==="ws+unix:",j;if(G.protocol!=="ws:"&&!Q&&!I)j=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(I&&!G.pathname)j="The URL's pathname is empty";else if(G.hash)j="The URL contains a fragment identifier";if(j){let N=SyntaxError(j);if(J._redirects===0)throw N;else{V0(J,N);return}}let V=Q?443:80,_=P1(16).toString("base64"),Y=Q?A1.request:F1.request,F=new Set,D;if($.createConnection=$.createConnection||(Q?w1:g1),$.defaultPort=$.defaultPort||V,$.port=G.port||V,$.host=G.hostname.startsWith("[")?G.hostname.slice(1,-1):G.hostname,$.headers={...$.headers,"Sec-WebSocket-Version":$.protocolVersion,"Sec-WebSocket-Key":_,Connection:"Upgrade",Upgrade:"websocket"},$.path=G.pathname+G.search,$.timeout=$.handshakeTimeout,$.perMessageDeflate)D=new E({...$.perMessageDeflate,isServer:!1,maxPayload:$.maxPayload}),$.headers["Sec-WebSocket-Extensions"]=y1({[E.extensionName]:D.offer()});if(X.length){for(let N of X){if(typeof N!=="string"||!v1.test(N)||F.has(N))throw SyntaxError("An invalid or duplicated subprotocol was specified");F.add(N)}$.headers["Sec-WebSocket-Protocol"]=X.join(",")}if($.origin)if($.protocolVersion<13)$.headers["Sec-WebSocket-Origin"]=$.origin;else $.headers.Origin=$.origin;if(G.username||G.password)$.auth=`${G.username}:${G.password}`;if(I){let N=$.path.split(":");$.socketPath=N[0],$.path=N[1]}let R;if($.followRedirects){if(J._redirects===0){J._originalIpc=I,J._originalSecure=Q,J._originalHostOrSocketPath=I?$.socketPath:G.host;let N=Z&&Z.headers;if(Z={...Z,headers:{}},N)for(let[P,m]of Object.entries(N))Z.headers[P.toLowerCase()]=m}else if(J.listenerCount("redirect")===0){let N=I?J._originalIpc?$.socketPath===J._originalHostOrSocketPath:!1:J._originalIpc?!1:G.host===J._originalHostOrSocketPath;if(!N||J._originalSecure&&!Q){if(delete $.headers.authorization,delete $.headers.cookie,!N)delete $.headers.host;$.auth=void 0}}if($.auth&&!Z.headers.authorization)Z.headers.authorization="Basic "+Buffer.from($.auth).toString("base64");if(R=J._req=Y($),J._redirects)J.emit("redirect",J.url,R)}else R=J._req=Y($);if($.timeout)R.on("timeout",()=>{O(J,R,"Opening handshake has timed out")});if(R.on("error",(N)=>{if(R===null||R[F5])return;R=J._req=null,V0(J,N)}),R.on("response",(N)=>{let P=N.headers.location,m=N.statusCode;if(P&&$.followRedirects&&m>=300&&m<400){if(++J._redirects>$.maxRedirects){O(J,R,"Maximum redirects exceeded");return}R.abort();let n;try{n=new U0(P,K)}catch(E0){let f=SyntaxError(`Invalid URL: ${P}`);V0(J,f);return}D5(J,n,X,Z)}else if(!J.emit("unexpected-response",R,N))O(J,R,`Unexpected server response: ${N.statusCode}`)}),R.on("upgrade",(N,P,m)=>{if(J.emit("upgrade",N),J.readyState!==z.CONNECTING)return;R=J._req=null;let n=N.headers.upgrade;if(n===void 0||n.toLowerCase()!=="websocket"){O(J,P,"Invalid Upgrade header");return}let E0=M1("sha1").update(_+C1).digest("base64");if(N.headers["sec-websocket-accept"]!==E0){O(J,P,"Invalid Sec-WebSocket-Accept header");return}let f=N.headers["sec-websocket-protocol"],r;if(f!==void 0){if(!F.size)r="Server sent a subprotocol but none was requested";else if(!F.has(f))r="Server sent an invalid subprotocol"}else if(F.size)r="Server sent no subprotocol";if(r){O(J,P,r);return}if(f)J._protocol=f;let S0=N.headers["sec-websocket-extensions"];if(S0!==void 0){if(!D){O(J,P,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let R0;try{R0=E1(S0)}catch(A0){O(J,P,"Invalid Sec-WebSocket-Extensions header");return}let v0=Object.keys(R0);if(v0.length!==1||v0[0]!==E.extensionName){O(J,P,"Server indicated an extension that was not requested");return}try{D.accept(R0[E.extensionName])}catch(A0){O(J,P,"Invalid Sec-WebSocket-Extensions header");return}J._extensions[E.extensionName]=D}J.setSocket(P,m,{allowSynchronousEvents:$.allowSynchronousEvents,generateMask:$.generateMask,maxBufferedChunks:$.maxBufferedChunks,maxFragments:$.maxFragments,maxPayload:$.maxPayload,skipUTF8Validation:$.skipUTF8Validation})}),$.finishRequest)$.finishRequest(R,J);else R.end()}function V0(J,K){J._readyState=z.CLOSING,J._errorEmitted=!0,J.emit("error",K),J.emitClose()}function g1(J){return J.path=J.socketPath,R5.connect(J)}function w1(J){if(J.path=void 0,!J.servername&&J.servername!=="")J.servername=R5.isIP(J.host)?"":J.host;return D1.connect(J)}function O(J,K,X){J._readyState=z.CLOSING;let Z=Error(X);if(Error.captureStackTrace(Z,O),K.setHeader){if(K[F5]=!0,K.abort(),K.socket&&!K.socket.destroyed)K.socket.destroy();process.nextTick(V0,J,Z)}else K.destroy(Z),K.once("error",J.emit.bind(J,"error")),K.once("close",J.emitClose.bind(J))}function W0(J,K,X){if(K){let Z=x1(K)?K.size:S1(K).length;if(J._socket)J._sender._bufferedBytes+=Z;else J._bufferedAmount+=Z}if(X){let Z=Error(`WebSocket is not open: readyState ${J.readyState} (${q[J.readyState]})`);process.nextTick(X,Z)}}function h1(J,K){let X=this[A];if(X._closeFrameReceived=!0,X._closeMessage=K,X._closeCode=J,X._socket[A]===void 0)return;if(X._socket.removeListener("data",_0),process.nextTick(P5,X._socket),J===1005)X.close();else X.close(J,K)}function m1(){let J=this[A];if(!J.isPaused)J._socket.resume()}function f1(J){let K=this[A];if(K._socket[A]!==void 0)K._socket.removeListener("data",_0),process.nextTick(P5,K._socket),K.close(J[q1]);if(!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function H5(){this[A].emitClose()}function u1(J,K){this[A].emit("message",J,K)}function l1(J){let K=this[A];if(K._autoPong)K.pong(J,!this._isServer,A5);K.emit("ping",J)}function p1(J){this[A].emit("pong",J)}function P5(J){J.resume()}function b1(J){let K=this[A];if(K.readyState===z.CLOSED)return;if(K.readyState===z.OPEN)K._readyState=z.CLOSING,M5(K);if(this._socket.end(),!K._errorEmitted)K._errorEmitted=!0,K.emit("error",J)}function M5(J){J._closeTimer=setTimeout(J._socket.destroy.bind(J._socket),J._closeTimeout)}function O5(){let J=this[A];if(this.removeListener("close",O5),this.removeListener("data",_0),this.removeListener("end",T5),J._readyState=z.CLOSING,!this._readableState.endEmitted&&!J._closeFrameReceived&&!J._receiver._writableState.errorEmitted&&this._readableState.length!==0){let K=this.read(this._readableState.length);J._receiver.write(K)}if(J._receiver.end(),this[A]=void 0,clearTimeout(J._closeTimer),J._receiver._writableState.finished||J._receiver._writableState.errorEmitted)J.emitClose();else J._receiver.on("error",H5),J._receiver.on("finish",H5)}function _0(J){if(!this[A]._receiver.write(J))this.pause()}function T5(){let J=this[A];J._readyState=z.CLOSING,J._receiver.end(),this.end()}function x5(){let J=this[A];if(this.removeListener("error",x5),this.on("error",A5),J)J._readyState=z.CLOSING,this.destroy()}});var L5=M((U4,q5)=>{var C4=N0(),{Duplex:k1}=H("stream");function C5(J){J.emit("close")}function i1(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function U5(J){if(this.removeListener("error",U5),this.destroy(),this.listenerCount("error")===0)this.emit("error",J)}function d1(J,K){let X=!0,Z=new k1({...K,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return J.on("message",function(G,Q){let I=!Q&&Z._readableState.objectMode?G.toString():G;if(!Z.push(I))J.pause()}),J.once("error",function(G){if(Z.destroyed)return;X=!1,Z.destroy(G)}),J.once("close",function(){if(Z.destroyed)return;Z.push(null)}),Z._destroy=function($,G){if(J.readyState===J.CLOSED){G($),process.nextTick(C5,Z);return}let Q=!1;if(J.once("error",function(j){Q=!0,G(j)}),J.once("close",function(){if(!Q)G($);process.nextTick(C5,Z)}),X)J.terminate()},Z._final=function($){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._final($)});return}if(J._socket===null)return;if(J._socket._writableState.finished){if($(),Z._readableState.endEmitted)Z.destroy()}else J._socket.once("finish",function(){$()}),J.close()},Z._read=function(){if(J.isPaused)J.resume()},Z._write=function($,G,Q){if(J.readyState===J.CONNECTING){J.once("open",function(){Z._write($,G,Q)});return}J.send($,Q)},Z.on("end",i1),Z.on("error",U5),Z}q5.exports=d1});var y0=M((q4,W5)=>{var{tokenChars:c1}=b();function n1(J){let K=new Set,X=-1,Z=-1,$=0;for($;$<J.length;$++){let Q=J.charCodeAt($);if(Z===-1&&c1[Q]===1){if(X===-1)X=$}else if($!==0&&(Q===32||Q===9)){if(Z===-1&&X!==-1)Z=$}else if(Q===44){if(X===-1)throw SyntaxError(`Unexpected character at index ${$}`);if(Z===-1)Z=$;let I=J.slice(X,Z);if(K.has(I))throw SyntaxError(`The "${I}" subprotocol is duplicated`);K.add(I),X=Z=-1}else throw SyntaxError(`Unexpected character at index ${$}`)}if(X===-1||Z!==-1)throw SyntaxError("Unexpected end of input");let G=J.slice(X,$);if(K.has(G))throw SyntaxError(`The "${G}" subprotocol is duplicated`);return K.add(G),K}W5.exports={parse:n1}});var g5=M((W4,v5)=>{var r1=H("events"),H0=H("http"),{Duplex:L4}=H("stream"),{createHash:a1}=H("crypto"),y5=z0(),w=p(),s1=y0(),o1=N0(),{CLOSE_TIMEOUT:t1,GUID:e1,kWebSocket:J4}=C(),K4=/^[+/0-9A-Za-z]{22}==$/;class S5 extends r1{constructor(J,K){super();if(J={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1048576,maxFragments:131072,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:t1,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:o1,...J},J.port==null&&!J.server&&!J.noServer||J.port!=null&&(J.server||J.noServer)||J.server&&J.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(J.port!=null)this._server=H0.createServer((X,Z)=>{let $=H0.STATUS_CODES[426];Z.writeHead(426,{"Content-Length":$.length,"Content-Type":"text/plain"}),Z.end($)}),this._server.listen(J.port,J.host,J.backlog,K);else if(J.server)this._server=J.server;if(this._server){let X=this.emit.bind(this,"connection");this._removeListeners=X4(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(Z,$,G)=>{this.handleUpgrade(Z,$,G,X)}})}if(J.perMessageDeflate===!0)J.perMessageDeflate={};if(J.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=J,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(J){if(this._state===2){if(J)this.once("close",()=>{J(Error("The server is not running"))});process.nextTick(J0,this);return}if(J)this.once("close",J);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(J0,this);else this._shouldEmitClose=!0;else process.nextTick(J0,this)}else{let K=this._server;this._removeListeners(),this._removeListeners=this._server=null,K.close(()=>{J0(this)})}}shouldHandle(J){if(this.options.path){let K=J.url.indexOf("?");if((K!==-1?J.url.slice(0,K):J.url)!==this.options.path)return!1}return!0}handleUpgrade(J,K,X,Z){K.on("error",E5);let $=J.headers["sec-websocket-key"],G=J.headers.upgrade,Q=+J.headers["sec-websocket-version"];if(J.method!=="GET"){h(this,J,K,405,"Invalid HTTP method");return}if(G===void 0||G.toLowerCase()!=="websocket"){h(this,J,K,400,"Invalid Upgrade header");return}if($===void 0||!K4.test($)){h(this,J,K,400,"Missing or invalid Sec-WebSocket-Key header");return}if(Q!==13&&Q!==8){h(this,J,K,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(J)){K0(K,400);return}let I=J.headers["sec-websocket-protocol"],j=new Set;if(I!==void 0)try{j=s1.parse(I)}catch(Y){h(this,J,K,400,"Invalid Sec-WebSocket-Protocol header");return}let V=J.headers["sec-websocket-extensions"],_={};if(this.options.perMessageDeflate&&V!==void 0){let Y=new w({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let F=y5.parse(V);if(F[w.extensionName])Y.accept(F[w.extensionName]),_[w.extensionName]=Y}catch(F){h(this,J,K,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let Y={origin:J.headers[`${Q===8?"sec-websocket-origin":"origin"}`],secure:!!(J.socket.authorized||J.socket.encrypted),req:J};if(this.options.verifyClient.length===2){this.options.verifyClient(Y,(F,D,R,N)=>{if(!F)return K0(K,D||401,R,N);this.completeUpgrade(_,$,j,J,K,X,Z)});return}if(!this.options.verifyClient(Y))return K0(K,401)}this.completeUpgrade(_,$,j,J,K,X,Z)}completeUpgrade(J,K,X,Z,$,G,Q){if(!$.readable||!$.writable)return $.destroy();if($[J4])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return K0($,503);let j=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a1("sha1").update(K+e1).digest("base64")}`],V=new this.options.WebSocket(null,void 0,this.options);if(X.size){let _=this.options.handleProtocols?this.options.handleProtocols(X,Z):X.values().next().value;if(_)j.push(`Sec-WebSocket-Protocol: ${_}`),V._protocol=_}if(J[w.extensionName]){let _=J[w.extensionName].params,Y=y5.format({[w.extensionName]:[_]});j.push(`Sec-WebSocket-Extensions: ${Y}`),V._extensions=J}if(this.emit("headers",j,Z),$.write(j.concat(`\r
2
+ `).join(`\r
3
+ `)),$.removeListener("error",E5),V.setSocket($,G,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(V),V.on("close",()=>{if(this.clients.delete(V),this._shouldEmitClose&&!this.clients.size)process.nextTick(J0,this)});Q(V,Z)}}v5.exports=S5;function X4(J,K){for(let X of Object.keys(K))J.on(X,K[X]);return function(){for(let Z of Object.keys(K))J.removeListener(Z,K[Z])}}function J0(J){J._state=2,J.emit("close")}function E5(){this.destroy()}function K0(J,K,X,Z){X=X||H0.STATUS_CODES[K],Z={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(X),...Z},J.once("finish",J.destroy),J.end(`HTTP/1.1 ${K} ${H0.STATUS_CODES[K]}\r
4
+ `+Object.keys(Z).map(($)=>`${$}: ${Z[$]}`).join(`\r
5
+ `)+`\r
6
+ \r
7
+ `+X)}function h(J,K,X,Z,$,G){if(J.listenerCount("wsClientError")){let Q=Error($);Error.captureStackTrace(Q,h),J.emit("wsClientError",Q,X,K)}else K0(X,Z,$,G)}});var $4,G4,Q4,j4,I4,z4,w5,Y4,E4;var V4=Z4(()=>{$4=S(L5(),1),G4=S(z0(),1),Q4=S(p(),1),j4=S(T0(),1),I4=S(B0(),1),z4=S(y0(),1),w5=S(N0(),1),Y4=S(g5(),1),E4=w5.default});V4();var export_subprotocol=z4.default;var export_extension=G4.default;var export_createWebSocketStream=$4.default;var export_WebSocketServer=Y4.default;var export_WebSocket=w5.default;var export_Sender=I4.default;var export_Receiver=j4.default;var export_PerMessageDeflate=Q4.default;export{export_subprotocol as subprotocol,export_extension as extension,E4 as default,export_createWebSocketStream as createWebSocketStream,export_WebSocketServer as WebSocketServer,export_WebSocket as WebSocket,export_Sender as Sender,export_Receiver as Receiver,export_PerMessageDeflate as PerMessageDeflate};
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{Ara as z}from"./chunks/cli-1.0.6-c3q3ytrc.mjs";if(typeof globalThis.File>"u")try{let{File:j}=z("node:buffer");globalThis.File=j}catch{globalThis.File=class extends Blob{name;lastModified;constructor(Y,$,U){super(Y,U);this.name=$,this.lastModified=U?.lastModified??Date.now()}}}if(typeof Promise.withResolvers!=="function")Promise.withResolvers=function(){let Y=()=>{},$=()=>{};return{promise:new Promise((N,J)=>{Y=N,$=J}),resolve:Y,reject:$}};{let j=z("node:util");if(typeof j.markAsUncloneable!=="function")j.markAsUncloneable=()=>{}}process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS??="true";process.env.CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING??="1";process.env.COREPACK_ENABLE_AUTO_PIN="0";if(process.env.CLAUDE_CODE_REMOTE==="true"){let j=process.env.NODE_OPTIONS||"";process.env.NODE_OPTIONS=j?`${j} --max-old-space-size=8192`:"--max-old-space-size=8192"}var A=/^[a-z][a-z0-9-]*$/;async function B(){let j=process.argv.slice(2);if(j.length===1&&(j[0]==="--version"||j[0]==="-v"||j[0]==="-V")){console.log("1.0.6 (Claudin)");return}if(!process.env.CLAUDIN_HELP_CAPTURE&&(j.length===1&&(j[0]==="--help"||j[0]==="-h")||j.length===2&&(j[1]==="--help"||j[1]==="-h")&&A.test(j[0])))try{let{readFileSync:q}=await import("node:fs"),{fileURLToPath:H}=await import("node:url"),{join:K,dirname:Q}=await import("node:path"),Z=Q(H(import.meta.url)),X=j.length===1?"help.txt":`help-${j[0]}.txt`,V=q(K(Z,X),"utf-8");process.stdout.write(V);return}catch{}if(j.includes("--provider"))console.error('The --provider CLI flag was removed. Run "claudin" and use /provider to choose a profile.'),process.exit(1);let Y=import("./chunks/main-1.0.6-nqg7gj8m.mjs");Y.catch(()=>{});{let{enableConfigs:q}=await import("./chunks/config-1.0.6-tgr3szh4.mjs");q()}{let{applySafeConfigEnvironmentVariables:q}=await import("./chunks/managedEnv-1.0.6-5ew1phra.mjs");q()}(async()=>{let{runStartupUpdateCheck:q}=await import("./chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs");await q(j)})();let{tryGetActiveProvider:$}=await import("./chunks/activeProvider-1.0.6-ae177xqc.mjs"),U=$();if(U?.transport==="github_copilot"){let{hydrateGithubModelsTokenFromSecureStorage:q,refreshGithubModelsTokenIfNeeded:H}=await import("./chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs");await H(),q()}let{validateProviderEnvForStartupOrExit:N}=await import("./chunks/providerValidation-1.0.6-e3rpsc9f.mjs");if(await N(),U&&U.transport==="anthropic")(async()=>{let q=await import("./chunks/grove-1.0.6-94e2ae96.mjs");q.getGroveSettings(),q.getGroveNoticeConfig()})();if(U&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:q}=await import("./chunks/clearTerminal-1.0.6-yxdbxzxq.mjs");process.stdout.write(q)}let{profileCheckpoint:J}=await import("./chunks/startupProfiler-1.0.6-bt2rwgd4.mjs");if(J("cli_entry"),j[0]==="--dump-system-prompt"){J("cli_dump_system_prompt_path");let{enableConfigs:q}=await import("./chunks/config-1.0.6-tgr3szh4.mjs");q();let{getMainLoopModel:H}=await import("./chunks/model-1.0.6-57z0x37s.mjs"),K=j.indexOf("--model"),Q=K!==-1&&j[K+1]||H(),{getSystemPrompt:Z}=await import("./chunks/prompts-1.0.6-dds21kka.mjs"),X=await Z([],Q);console.log(X.join(`
2
- `));return}if(j[0]==="remote-control"||j[0]==="rc"||j[0]==="remote"||j[0]==="sync"||j[0]==="bridge"){J("cli_bridge_path");let{enableConfigs:q}=await import("./chunks/config-1.0.6-tgr3szh4.mjs");q();let{getBridgeDisabledReason:H,checkBridgeMinVersion:K}=await import("./chunks/bridgeEnabled-1.0.6-qm5685ej.mjs"),{BRIDGE_LOGIN_ERROR:Q}=await import("./chunks/types-1.0.6-qcw5ptd7.mjs"),{bridgeMain:Z}=await import("./chunks/bridgeMain-1.0.6-8sw3n3ad.mjs"),{exitWithError:X}=await import("./chunks/process-1.0.6-yjr9qgm0.mjs"),{getClaudeAIOAuthTokens:V}=await import("./chunks/auth-1.0.6-a3z8ybme.mjs");if(!V()?.accessToken)X(Q);let w=await H();if(w)X(`Error: ${w}`);let D=K();if(D)X(D);let{waitForPolicyLimitsToLoad:_,isPolicyAllowed:f}=await import("./chunks/index-1.0.6-5bgvzt3z.mjs");if(await _(),!f("allow_remote_control"))X("Error: Remote Control is disabled by your organization's policy.");await Z(j.slice(1));return}if(!1)switch(j[0]){case"ps":case"logs":case"attach":case"kill":default:}if((j.includes("--tmux")||j.includes("--tmux=classic"))&&(j.includes("-w")||j.includes("--worktree")||j.some((q)=>q.startsWith("--worktree=")))){J("cli_tmux_worktree_fast_path");let{enableConfigs:q}=await import("./chunks/config-1.0.6-tgr3szh4.mjs");q();let{isWorktreeModeEnabled:H}=await import("./chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs");if(H()){let{execIntoTmuxWorktree:K}=await import("./chunks/worktree-1.0.6-8nfcjmff.mjs"),Q=await K(j);if(Q.handled)return;if(Q.error){let{exitWithError:Z}=await import("./chunks/process-1.0.6-yjr9qgm0.mjs");Z(Q.error)}}}if(j.length===1&&(j[0]==="--update"||j[0]==="--upgrade"))process.argv=[process.argv[0],process.argv[1],"update"];if(j.includes("--bare"))process.env.CLAUDE_CODE_SIMPLE="1";if(process.env.CLAUDIN_DISABLE_EARLY_INPUT!=="1"){let{startCapturingEarlyInput:q}=await import("./chunks/earlyInput-1.0.6-xz3zmash.mjs");q()}J("cli_before_main_import");let{main:F}=await Y;J("cli_after_main_import"),await F(),J("cli_after_main_complete")}B();
1
+ import{yra as z}from"./chunks/cli-1.0.7-y94dd4yd.mjs";if(typeof globalThis.File>"u")try{let{File:j}=z("node:buffer");globalThis.File=j}catch{globalThis.File=class extends Blob{name;lastModified;constructor(Y,$,U){super(Y,U);this.name=$,this.lastModified=U?.lastModified??Date.now()}}}if(typeof Promise.withResolvers!=="function")Promise.withResolvers=function(){let Y=()=>{},$=()=>{};return{promise:new Promise((N,J)=>{Y=N,$=J}),resolve:Y,reject:$}};{let j=z("node:util");if(typeof j.markAsUncloneable!=="function")j.markAsUncloneable=()=>{}}process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS??="true";process.env.CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING??="1";process.env.COREPACK_ENABLE_AUTO_PIN="0";if(process.env.CLAUDE_CODE_REMOTE==="true"){let j=process.env.NODE_OPTIONS||"";process.env.NODE_OPTIONS=j?`${j} --max-old-space-size=8192`:"--max-old-space-size=8192"}var A=/^[a-z][a-z0-9-]*$/;async function B(){let j=process.argv.slice(2);if(j.length===1&&(j[0]==="--version"||j[0]==="-v"||j[0]==="-V")){console.log("1.0.7 (Claudin)");return}if(!process.env.CLAUDIN_HELP_CAPTURE&&(j.length===1&&(j[0]==="--help"||j[0]==="-h")||j.length===2&&(j[1]==="--help"||j[1]==="-h")&&A.test(j[0])))try{let{readFileSync:q}=await import("node:fs"),{fileURLToPath:H}=await import("node:url"),{join:K,dirname:Q}=await import("node:path"),Z=Q(H(import.meta.url)),X=j.length===1?"help.txt":`help-${j[0]}.txt`,V=q(K(Z,X),"utf-8");process.stdout.write(V);return}catch{}if(j.includes("--provider"))console.error('The --provider CLI flag was removed. Run "claudin" and use /provider to choose a profile.'),process.exit(1);let Y=import("./chunks/main-1.0.7-esamqda3.mjs");Y.catch(()=>{});{let{enableConfigs:q}=await import("./chunks/config-1.0.7-vfbd76cq.mjs");q()}{let{applySafeConfigEnvironmentVariables:q}=await import("./chunks/managedEnv-1.0.7-6mz7vwyt.mjs");q()}(async()=>{let{runStartupUpdateCheck:q}=await import("./chunks/startupUpdateCheck-1.0.7-enpb315n.mjs");await q(j)})();let{tryGetActiveProvider:$}=await import("./chunks/activeProvider-1.0.7-2vx6krky.mjs"),U=$();if(U?.transport==="github_copilot"){let{hydrateGithubModelsTokenFromSecureStorage:q,refreshGithubModelsTokenIfNeeded:H}=await import("./chunks/githubModelsCredentials-1.0.7-m79e1ga1.mjs");await H(),q()}let{validateProviderEnvForStartupOrExit:N}=await import("./chunks/providerValidation-1.0.7-aexhx4ft.mjs");if(await N(),U&&U.transport==="anthropic")(async()=>{let q=await import("./chunks/grove-1.0.7-th5kn0n5.mjs");q.getGroveSettings(),q.getGroveNoticeConfig()})();if(U&&process.stdout.isTTY&&process.env.CLAUDIN_CLEAR_ON_START==="1"){let{clearTerminal:q}=await import("./chunks/clearTerminal-1.0.7-z4gkskcj.mjs");process.stdout.write(q)}let{profileCheckpoint:J}=await import("./chunks/startupProfiler-1.0.7-fqfzm5cc.mjs");if(J("cli_entry"),j[0]==="--dump-system-prompt"){J("cli_dump_system_prompt_path");let{enableConfigs:q}=await import("./chunks/config-1.0.7-vfbd76cq.mjs");q();let{getMainLoopModel:H}=await import("./chunks/model-1.0.7-xt8c58fg.mjs"),K=j.indexOf("--model"),Q=K!==-1&&j[K+1]||H(),{getSystemPrompt:Z}=await import("./chunks/prompts-1.0.7-1p5km2m0.mjs"),X=await Z([],Q);console.log(X.join(`
2
+ `));return}if(j[0]==="remote-control"||j[0]==="rc"||j[0]==="remote"||j[0]==="sync"||j[0]==="bridge"){J("cli_bridge_path");let{enableConfigs:q}=await import("./chunks/config-1.0.7-vfbd76cq.mjs");q();let{getBridgeDisabledReason:H,checkBridgeMinVersion:K}=await import("./chunks/bridgeEnabled-1.0.7-046e65f0.mjs"),{BRIDGE_LOGIN_ERROR:Q}=await import("./chunks/types-1.0.7-16q04281.mjs"),{bridgeMain:Z}=await import("./chunks/bridgeMain-1.0.7-knt8h92j.mjs"),{exitWithError:X}=await import("./chunks/process-1.0.7-9sx5xgpe.mjs"),{getClaudeAIOAuthTokens:V}=await import("./chunks/auth-1.0.7-gv0th62c.mjs");if(!V()?.accessToken)X(Q);let w=await H();if(w)X(`Error: ${w}`);let D=K();if(D)X(D);let{waitForPolicyLimitsToLoad:_,isPolicyAllowed:f}=await import("./chunks/index-1.0.7-59cvfmen.mjs");if(await _(),!f("allow_remote_control"))X("Error: Remote Control is disabled by your organization's policy.");await Z(j.slice(1));return}if(!1)switch(j[0]){case"ps":case"logs":case"attach":case"kill":default:}if((j.includes("--tmux")||j.includes("--tmux=classic"))&&(j.includes("-w")||j.includes("--worktree")||j.some((q)=>q.startsWith("--worktree=")))){J("cli_tmux_worktree_fast_path");let{enableConfigs:q}=await import("./chunks/config-1.0.7-vfbd76cq.mjs");q();let{isWorktreeModeEnabled:H}=await import("./chunks/worktreeModeEnabled-1.0.7-m222ja7h.mjs");if(H()){let{execIntoTmuxWorktree:K}=await import("./chunks/worktree-1.0.7-dp2np4vz.mjs"),Q=await K(j);if(Q.handled)return;if(Q.error){let{exitWithError:Z}=await import("./chunks/process-1.0.7-9sx5xgpe.mjs");Z(Q.error)}}}if(j.length===1&&(j[0]==="--update"||j[0]==="--upgrade"))process.argv=[process.argv[0],process.argv[1],"update"];if(j.includes("--bare"))process.env.CLAUDE_CODE_SIMPLE="1";if(process.env.CLAUDIN_DISABLE_EARLY_INPUT!=="1"){let{startCapturingEarlyInput:q}=await import("./chunks/earlyInput-1.0.7-51cxad4b.mjs");q()}J("cli_before_main_import");let{main:F}=await Y;J("cli_after_main_import"),await F(),J("cli_after_main_complete")}B();