@claudiolabs/claudin 1.0.3 → 1.0.4

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 (902) hide show
  1. package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +1 -0
  2. package/dist/chunks/App-1.0.4-ee5phav9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +1 -0
  31. package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +110 -0
  32. package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +3 -0
  33. package/dist/chunks/api-1.0.4-h4pnj11w.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.4-cezj138d.mjs +1 -0
  36. package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +1 -0
  37. package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +1 -0
  41. package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +1 -0
  47. package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +4 -0
  52. package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +1 -0
  55. package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +1 -0
  57. package/dist/chunks/cli-1.0.4-08e3sn18.mjs +2 -0
  58. package/dist/chunks/cli-1.0.4-092qjm5g.mjs +25 -0
  59. package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +2 -0
  60. package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +2 -0
  61. package/dist/chunks/cli-1.0.4-0pqf799x.mjs +2 -0
  62. package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +16 -0
  63. package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +67 -0
  64. package/dist/chunks/cli-1.0.4-1bg07n68.mjs +4 -0
  65. package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +2 -0
  66. package/dist/chunks/cli-1.0.4-1j122zyj.mjs +2 -0
  67. package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +20 -0
  68. package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +2 -0
  69. package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +2 -0
  70. package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +2 -0
  71. package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +50 -0
  72. package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +2 -0
  73. package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +2 -0
  74. package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +2 -0
  75. package/dist/chunks/cli-1.0.4-2vrfse65.mjs +2 -0
  76. package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +24 -0
  77. package/dist/chunks/cli-1.0.4-3289hbrr.mjs +6 -0
  78. package/dist/chunks/cli-1.0.4-34jdejmp.mjs +2 -0
  79. package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +2 -0
  80. package/dist/chunks/cli-1.0.4-3b0061a4.mjs +2 -0
  81. package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +3 -0
  82. package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +3 -0
  83. package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +2 -0
  84. package/dist/chunks/cli-1.0.4-4sfp975c.mjs +2 -0
  85. package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +24 -0
  86. package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +2 -0
  87. package/dist/chunks/cli-1.0.4-5663sqrh.mjs +2 -0
  88. package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +2 -0
  89. package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +2 -0
  90. package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +2 -0
  91. package/dist/chunks/cli-1.0.4-618n4yb3.mjs +2 -0
  92. package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +2 -0
  93. package/dist/chunks/cli-1.0.4-75pszwff.mjs +12 -0
  94. package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +2 -0
  95. package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +39 -0
  96. package/dist/chunks/cli-1.0.4-7jd24agk.mjs +2 -0
  97. package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +4 -0
  98. package/dist/chunks/cli-1.0.4-80hrkybp.mjs +2 -0
  99. package/dist/chunks/cli-1.0.4-85cb91sn.mjs +4 -0
  100. package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +2 -0
  101. package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +3 -0
  102. package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +8 -0
  103. package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +2 -0
  104. package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +2 -0
  105. package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +2 -0
  106. package/dist/chunks/cli-1.0.4-95nw81kz.mjs +2 -0
  107. package/dist/chunks/cli-1.0.4-982xabhy.mjs +2 -0
  108. package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +2 -0
  109. package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +59 -0
  110. package/dist/chunks/cli-1.0.4-9re52te8.mjs +2 -0
  111. package/dist/chunks/cli-1.0.4-9w88pg39.mjs +12 -0
  112. package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +2 -0
  113. package/dist/chunks/cli-1.0.4-a14svdr8.mjs +1 -0
  114. package/dist/chunks/cli-1.0.4-avmcefxg.mjs +10 -0
  115. package/dist/chunks/cli-1.0.4-azntz5z2.mjs +2 -0
  116. package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +133 -0
  117. package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +2 -0
  118. package/dist/chunks/cli-1.0.4-bneycyws.mjs +2 -0
  119. package/dist/chunks/cli-1.0.4-bnsdazas.mjs +3 -0
  120. package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +2 -0
  121. package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +2 -0
  122. package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +58 -0
  123. package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +2 -0
  124. package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +2 -0
  125. package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +2 -0
  126. package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +2 -0
  127. package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +2 -0
  128. package/dist/chunks/cli-1.0.4-e26gm32b.mjs +2 -0
  129. package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +2 -0
  130. package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +2 -0
  131. package/dist/chunks/cli-1.0.4-e86sgy00.mjs +3 -0
  132. package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +2 -0
  133. package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +5 -0
  134. package/dist/chunks/cli-1.0.4-ef5asahs.mjs +4 -0
  135. package/dist/chunks/cli-1.0.4-emp66cxw.mjs +2 -0
  136. package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +6 -0
  137. package/dist/chunks/cli-1.0.4-ex22h376.mjs +2 -0
  138. package/dist/chunks/cli-1.0.4-f0t68sye.mjs +2 -0
  139. package/dist/chunks/cli-1.0.4-f20q38cw.mjs +2 -0
  140. package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +15 -0
  141. package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +2 -0
  142. package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +2 -0
  143. package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +2 -0
  144. package/dist/chunks/cli-1.0.4-f965h6gd.mjs +7 -0
  145. package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +2 -0
  146. package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +3 -0
  147. package/dist/chunks/cli-1.0.4-fcswm1md.mjs +2 -0
  148. package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +2 -0
  149. package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +2 -0
  150. package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +2 -0
  151. package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +2 -0
  152. package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +2 -0
  153. package/dist/chunks/cli-1.0.4-genhzh1b.mjs +2 -0
  154. package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +5 -0
  155. package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +2 -0
  156. package/dist/chunks/cli-1.0.4-ghzbww61.mjs +34 -0
  157. package/dist/chunks/cli-1.0.4-gqc15qng.mjs +6 -0
  158. package/dist/chunks/cli-1.0.4-gssg75hx.mjs +2 -0
  159. package/dist/chunks/cli-1.0.4-gyjecspm.mjs +2 -0
  160. package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +2 -0
  161. package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +2 -0
  162. package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +2 -0
  163. package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +2 -0
  164. package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +2 -0
  165. package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +3 -0
  166. package/dist/chunks/cli-1.0.4-hwje79ka.mjs +2 -0
  167. package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +3 -0
  168. package/dist/chunks/cli-1.0.4-j17mhs88.mjs +18 -0
  169. package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +5471 -0
  170. package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +2 -0
  171. package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +2 -0
  172. package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +2 -0
  173. package/dist/chunks/cli-1.0.4-k20sr786.mjs +3 -0
  174. package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +2 -0
  175. package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +3 -0
  176. package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +2 -0
  177. package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +2 -0
  178. package/dist/chunks/cli-1.0.4-m240wvtt.mjs +9 -0
  179. package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +2 -0
  180. package/dist/chunks/cli-1.0.4-ndy339bx.mjs +2 -0
  181. package/dist/chunks/cli-1.0.4-nfpfve45.mjs +2 -0
  182. package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +2 -0
  183. package/dist/chunks/cli-1.0.4-nws4fp34.mjs +2 -0
  184. package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +18 -0
  185. package/dist/chunks/cli-1.0.4-p618f4eb.mjs +2 -0
  186. package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +18 -0
  187. package/dist/chunks/cli-1.0.4-pxqvx117.mjs +3 -0
  188. package/dist/chunks/cli-1.0.4-q00a51mt.mjs +4 -0
  189. package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +199 -0
  190. package/dist/chunks/cli-1.0.4-q97cke3f.mjs +2 -0
  191. package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +5 -0
  192. package/dist/chunks/cli-1.0.4-qka1j546.mjs +4 -0
  193. package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +2 -0
  194. package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +25 -0
  195. package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +17 -0
  196. package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +42 -0
  197. package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +2 -0
  198. package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +2 -0
  199. package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +12 -0
  200. package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +2 -0
  201. package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +12 -0
  202. package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +2 -0
  203. package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +24 -0
  204. package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +2 -0
  205. package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +4 -0
  206. package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +2 -0
  207. package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +2 -0
  208. package/dist/chunks/cli-1.0.4-s6m720bj.mjs +2 -0
  209. package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +2 -0
  210. package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +2 -0
  211. package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +2 -0
  212. package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +2 -0
  213. package/dist/chunks/cli-1.0.4-t915kvpv.mjs +2 -0
  214. package/dist/chunks/cli-1.0.4-th3f10e2.mjs +2 -0
  215. package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +2 -0
  216. package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +3 -0
  217. package/dist/chunks/cli-1.0.4-v2973j5k.mjs +15 -0
  218. package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +2 -0
  219. package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +4 -0
  220. package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +2 -0
  221. package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +3 -0
  222. package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +6 -0
  223. package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +15 -0
  224. package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +2 -0
  225. package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +4 -0
  226. package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +2 -0
  227. package/dist/chunks/cli-1.0.4-wb91dheq.mjs +2 -0
  228. package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +2 -0
  229. package/dist/chunks/cli-1.0.4-wryebn9y.mjs +2 -0
  230. package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +2 -0
  231. package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +2 -0
  232. package/dist/chunks/cli-1.0.4-xcegbj23.mjs +21 -0
  233. package/dist/chunks/cli-1.0.4-xjef6vra.mjs +2 -0
  234. package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +45 -0
  235. package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +2 -0
  236. package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +2 -0
  237. package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +2 -0
  238. package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +2 -0
  239. package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +2 -0
  240. package/dist/chunks/cli-1.0.4-ya22eazw.mjs +2 -0
  241. package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +2 -0
  242. package/dist/chunks/cli-1.0.4-ygedgw05.mjs +2 -0
  243. package/dist/chunks/cli-1.0.4-yp6300fv.mjs +2 -0
  244. package/dist/chunks/cli-1.0.4-yq119gwk.mjs +2 -0
  245. package/dist/chunks/cli-1.0.4-yq19e16e.mjs +4 -0
  246. package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +2 -0
  247. package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +17 -0
  248. package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +2 -0
  249. package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +133 -0
  250. package/dist/chunks/cli-1.0.4-z5zmw573.mjs +2 -0
  251. package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +2 -0
  252. package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +2 -0
  253. package/dist/chunks/cli-1.0.4-znj63zs7.mjs +2 -0
  254. package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +2 -0
  255. package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +2 -0
  256. package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +2 -0
  257. package/dist/chunks/client-1.0.4-tejrj09r.mjs +1 -0
  258. package/dist/chunks/color-1.0.4-148b97be.mjs +1 -0
  259. package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +3 -0
  260. package/dist/chunks/config-1.0.4-a5enjc0b.mjs +1 -0
  261. package/dist/chunks/config-1.0.4-q23nqw9d.mjs +1 -0
  262. package/dist/chunks/constants-1.0.4-635bzfez.mjs +1 -0
  263. package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +1 -0
  264. package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +1 -0
  265. package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +1 -0
  266. package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +1 -0
  267. package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +9 -0
  268. package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +1 -0
  269. package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +1 -0
  270. package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +1 -0
  271. package/dist/chunks/debug-1.0.4-dym46dbc.mjs +1 -0
  272. package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +1446 -0
  273. package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +1 -0
  274. package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +1 -0
  275. package/dist/chunks/detection-1.0.4-02gwawhp.mjs +1 -0
  276. package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +1 -0
  277. package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +1 -0
  278. package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +1 -0
  279. package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +1 -0
  280. package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +10 -0
  281. package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +1 -0
  282. package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +1 -0
  283. package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +1 -0
  284. package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +1 -0
  285. package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +1 -0
  286. package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +1 -0
  287. package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +1 -0
  288. package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +1 -0
  289. package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +1 -0
  290. package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +2 -0
  291. package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +1 -0
  292. package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +1 -0
  293. package/dist/chunks/fast-1.0.4-qb539j3d.mjs +1 -0
  294. package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +14 -0
  295. package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +1 -0
  296. package/dist/chunks/git-1.0.4-ag4cdf47.mjs +1 -0
  297. package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +1 -0
  298. package/dist/chunks/goal-1.0.4-w76hde3j.mjs +4 -0
  299. package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +1 -0
  300. package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +1 -0
  301. package/dist/chunks/headless-1.0.4-4htsajcx.mjs +2 -0
  302. package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +6 -0
  303. package/dist/chunks/help-1.0.4-mb80yzdd.mjs +1 -0
  304. package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +3 -0
  305. package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +1 -0
  306. package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +79 -0
  307. package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +3 -0
  308. package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +1 -0
  309. package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +1 -0
  310. package/dist/chunks/index-1.0.4-0ds0yar8.mjs +2 -0
  311. package/dist/chunks/index-1.0.4-0swpjsxv.mjs +1 -0
  312. package/dist/chunks/index-1.0.4-1adr1cev.mjs +1 -0
  313. package/dist/chunks/index-1.0.4-2cqwak8f.mjs +1 -0
  314. package/dist/chunks/index-1.0.4-45r2p2fr.mjs +1 -0
  315. package/dist/chunks/index-1.0.4-578fqjbt.mjs +5 -0
  316. package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +1 -0
  317. package/dist/chunks/index-1.0.4-bq00jtej.mjs +1 -0
  318. package/dist/chunks/index-1.0.4-d3963jrf.mjs +1 -0
  319. package/dist/chunks/index-1.0.4-db6y9w6p.mjs +9 -0
  320. package/dist/chunks/index-1.0.4-eqa6324a.mjs +30 -0
  321. package/dist/chunks/index-1.0.4-fgtct7wa.mjs +1 -0
  322. package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +1 -0
  323. package/dist/chunks/index-1.0.4-kkxqenx5.mjs +17 -0
  324. package/dist/chunks/index-1.0.4-m48vcxbj.mjs +2 -0
  325. package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +9 -0
  326. package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +1 -0
  327. package/dist/chunks/index-1.0.4-qj0raz1t.mjs +1 -0
  328. package/dist/chunks/index-1.0.4-rb8h15jh.mjs +1 -0
  329. package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +1 -0
  330. package/dist/chunks/index-1.0.4-xadhy3m9.mjs +1 -0
  331. package/dist/chunks/index-1.0.4-ynqjejnh.mjs +1 -0
  332. package/dist/chunks/index-1.0.4-zw32d5rq.mjs +1 -0
  333. package/dist/chunks/init-1.0.4-tdv5z99g.mjs +1 -0
  334. package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +1 -0
  335. package/dist/chunks/ink-1.0.4-w371tr8m.mjs +1 -0
  336. package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +870 -0
  337. package/dist/chunks/install-1.0.4-k86wrfgy.mjs +1 -0
  338. package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +149 -0
  339. package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +1 -0
  340. package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +1 -0
  341. package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +1 -0
  342. package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +2 -0
  343. package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +2 -0
  344. package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +1 -0
  345. package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +1 -0
  346. package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +1 -0
  348. package/dist/chunks/log-1.0.4-q4mkknks.mjs +1 -0
  349. package/dist/chunks/main-1.0.4-fpq69x53.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +1 -0
  351. package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +1 -0
  352. package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +17 -0
  353. package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +4 -0
  354. package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +1 -0
  355. package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +3 -0
  356. package/dist/chunks/model-1.0.4-7q33dte0.mjs +2 -0
  357. package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +1 -0
  358. package/dist/chunks/node-1.0.4-t61fwtvv.mjs +12 -0
  359. package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +14 -0
  361. package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +1 -0
  362. package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +1 -0
  364. package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +1 -0
  365. package/dist/chunks/passes-1.0.4-kvwashgz.mjs +1 -0
  366. package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +3 -0
  367. package/dist/chunks/permissions-1.0.4-pmabr578.mjs +1 -0
  368. package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +1 -0
  369. package/dist/chunks/plist-1.0.4-de9w52d2.mjs +1 -0
  370. package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +1 -0
  372. package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +2 -0
  374. package/dist/chunks/print-1.0.4-zg0pxx71.mjs +57 -0
  375. package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +1 -0
  376. package/dist/chunks/process-1.0.4-trh5g80m.mjs +1 -0
  377. package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +9 -0
  379. package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +1 -0
  380. package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +1 -0
  381. package/dist/chunks/prompts-1.0.4-an41ccab.mjs +1 -0
  382. package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +13 -0
  383. package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +2 -0
  384. package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +1 -0
  385. package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +34 -0
  388. package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +1 -0
  389. package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +5 -0
  390. package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +2 -0
  391. package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +1 -0
  393. package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +1 -0
  394. package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +1 -0
  396. package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +1 -0
  397. package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +2 -0
  398. package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +1 -0
  399. package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +1 -0
  400. package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +1 -0
  402. package/dist/chunks/session-1.0.4-4fb52nd1.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +1 -0
  406. package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +1 -0
  407. package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +5 -0
  408. package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +1 -0
  409. package/dist/chunks/skills-1.0.4-www28gn6.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +1 -0
  412. package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +1 -0
  413. package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +6 -0
  414. package/dist/chunks/status-1.0.4-zymfx8mp.mjs +1 -0
  415. package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +1 -0
  417. package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +1 -0
  420. package/dist/chunks/teleport-1.0.4-x93h61td.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +1 -0
  422. package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +1 -0
  423. package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +1 -0
  425. package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +1 -0
  427. package/dist/chunks/tools-1.0.4-606qnn5t.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +69 -0
  430. package/dist/chunks/types-1.0.4-1kpkjthf.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +4 -0
  432. package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +86 -0
  433. package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +1 -0
  434. package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +1 -0
  437. package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +1 -0
  438. package/dist/chunks/util-1.0.4-3cjy2f82.mjs +1 -0
  439. package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +1 -0
  440. package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +1 -0
  441. package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +1 -0
  442. package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +132 -0
  443. package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +1 -0
  444. package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +1 -0
  445. package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +1 -0
  446. package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +7 -0
  447. package/dist/cli.mjs +2 -2
  448. package/package.json +9 -9
  449. package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +0 -1
  450. package/dist/chunks/App-1.0.3-rd1a3qee.mjs +0 -1
  451. package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +0 -1
  452. package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +0 -1
  453. package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +0 -1
  454. package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +0 -1
  455. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +0 -1
  456. package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +0 -1
  457. package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +0 -7
  458. package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +0 -1
  459. package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +0 -6
  460. package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +0 -1
  461. package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +0 -1
  467. package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +0 -1
  477. package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +0 -1
  479. package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +0 -110
  480. package/dist/chunks/agents-1.0.3-0qny02r7.mjs +0 -3
  481. package/dist/chunks/api-1.0.3-j9q39zt3.mjs +0 -1
  482. package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +0 -1
  483. package/dist/chunks/assistant-1.0.3-8swg0237.mjs +0 -1
  484. package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +0 -1
  485. package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +0 -1
  486. package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +0 -1
  489. package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +0 -4
  490. package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +0 -1
  495. package/dist/chunks/btw-1.0.3-7vqng7en.mjs +0 -1
  496. package/dist/chunks/buddy-1.0.3-k48yw852.mjs +0 -3
  497. package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +0 -1
  498. package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +0 -21
  499. package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +0 -4
  500. package/dist/chunks/caches-1.0.3-syrefgh1.mjs +0 -1
  501. package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +0 -1
  502. package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +0 -1
  503. package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +0 -1
  504. package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +0 -1
  505. package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +0 -2
  506. package/dist/chunks/cli-1.0.3-087x46pf.mjs +0 -2
  507. package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +0 -2
  508. package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +0 -2
  509. package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +0 -1
  510. package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +0 -2
  511. package/dist/chunks/cli-1.0.3-10cqqc79.mjs +0 -2
  512. package/dist/chunks/cli-1.0.3-13m8868e.mjs +0 -2
  513. package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +0 -2
  514. package/dist/chunks/cli-1.0.3-1462khnb.mjs +0 -3
  515. package/dist/chunks/cli-1.0.3-17cer107.mjs +0 -2
  516. package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +0 -4
  517. package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +0 -2
  518. package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +0 -4
  519. package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +0 -2
  520. package/dist/chunks/cli-1.0.3-1m413b59.mjs +0 -2
  521. package/dist/chunks/cli-1.0.3-1psnx21q.mjs +0 -2
  522. package/dist/chunks/cli-1.0.3-1v65dc93.mjs +0 -2
  523. package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +0 -2
  524. package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +0 -2
  525. package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +0 -2
  526. package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +0 -2
  527. package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +0 -5471
  528. package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +0 -2
  529. package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +0 -2
  530. package/dist/chunks/cli-1.0.3-3gtteknj.mjs +0 -2
  531. package/dist/chunks/cli-1.0.3-3j050hfw.mjs +0 -3
  532. package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +0 -2
  533. package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +0 -2
  534. package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +0 -3
  535. package/dist/chunks/cli-1.0.3-3y945bqk.mjs +0 -2
  536. package/dist/chunks/cli-1.0.3-4eym93f1.mjs +0 -2
  537. package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +0 -199
  538. package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +0 -2
  539. package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +0 -12
  540. package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +0 -2
  541. package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +0 -4
  542. package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +0 -2
  543. package/dist/chunks/cli-1.0.3-5kneybr4.mjs +0 -2
  544. package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +0 -16
  545. package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +0 -6
  546. package/dist/chunks/cli-1.0.3-5w74xeth.mjs +0 -3
  547. package/dist/chunks/cli-1.0.3-607t5t97.mjs +0 -2
  548. package/dist/chunks/cli-1.0.3-627y4tma.mjs +0 -2
  549. package/dist/chunks/cli-1.0.3-63tn3q21.mjs +0 -2
  550. package/dist/chunks/cli-1.0.3-63xjee3t.mjs +0 -3
  551. package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +0 -4
  552. package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +0 -21
  553. package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +0 -2
  554. package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +0 -2
  555. package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +0 -2
  556. package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +0 -3
  557. package/dist/chunks/cli-1.0.3-82ky54w7.mjs +0 -15
  558. package/dist/chunks/cli-1.0.3-87me6r9c.mjs +0 -2
  559. package/dist/chunks/cli-1.0.3-8a694ts0.mjs +0 -6
  560. package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +0 -2
  561. package/dist/chunks/cli-1.0.3-8hw15ers.mjs +0 -2
  562. package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +0 -2
  563. package/dist/chunks/cli-1.0.3-960aw98y.mjs +0 -2
  564. package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +0 -2
  565. package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +0 -3
  566. package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +0 -2
  567. package/dist/chunks/cli-1.0.3-a630qcdb.mjs +0 -2
  568. package/dist/chunks/cli-1.0.3-ancybhm3.mjs +0 -2
  569. package/dist/chunks/cli-1.0.3-apbdyngz.mjs +0 -2
  570. package/dist/chunks/cli-1.0.3-ar488ss1.mjs +0 -2
  571. package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +0 -4
  572. package/dist/chunks/cli-1.0.3-ax2geagm.mjs +0 -18
  573. package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +0 -2
  574. package/dist/chunks/cli-1.0.3-ay89chqh.mjs +0 -2
  575. package/dist/chunks/cli-1.0.3-b14b158b.mjs +0 -2
  576. package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +0 -2
  577. package/dist/chunks/cli-1.0.3-b72086ew.mjs +0 -2
  578. package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +0 -24
  579. package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +0 -25
  580. package/dist/chunks/cli-1.0.3-bg3frggm.mjs +0 -5
  581. package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +0 -2
  582. package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +0 -2
  583. package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +0 -2
  584. package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +0 -3
  585. package/dist/chunks/cli-1.0.3-c38hr99q.mjs +0 -2
  586. package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +0 -2
  587. package/dist/chunks/cli-1.0.3-c570dde7.mjs +0 -24
  588. package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +0 -2
  589. package/dist/chunks/cli-1.0.3-cnb1yved.mjs +0 -2
  590. package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +0 -2
  591. package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +0 -2
  592. package/dist/chunks/cli-1.0.3-d7597p9k.mjs +0 -133
  593. package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +0 -2
  594. package/dist/chunks/cli-1.0.3-djd4asp9.mjs +0 -25
  595. package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +0 -2
  596. package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +0 -20
  597. package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +0 -2
  598. package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +0 -2
  599. package/dist/chunks/cli-1.0.3-e315jy0y.mjs +0 -2
  600. package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +0 -2
  601. package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +0 -2
  602. package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +0 -2
  603. package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +0 -2
  604. package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +0 -45
  605. package/dist/chunks/cli-1.0.3-eta6q17m.mjs +0 -2
  606. package/dist/chunks/cli-1.0.3-exj8yag8.mjs +0 -2
  607. package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +0 -2
  608. package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +0 -2
  609. package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +0 -2
  610. package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +0 -2
  611. package/dist/chunks/cli-1.0.3-g5w729g4.mjs +0 -2
  612. package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +0 -2
  613. package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +0 -2
  614. package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +0 -12
  615. package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +0 -2
  616. package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +0 -2
  617. package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +0 -4
  618. package/dist/chunks/cli-1.0.3-hg04k516.mjs +0 -3
  619. package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +0 -2
  620. package/dist/chunks/cli-1.0.3-htx4273d.mjs +0 -39
  621. package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +0 -2
  622. package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +0 -2
  623. package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +0 -2
  624. package/dist/chunks/cli-1.0.3-j72ztden.mjs +0 -2
  625. package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +0 -2
  626. package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +0 -6
  627. package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +0 -2
  628. package/dist/chunks/cli-1.0.3-k99msp02.mjs +0 -17
  629. package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +0 -59
  630. package/dist/chunks/cli-1.0.3-khw95075.mjs +0 -2
  631. package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +0 -2
  632. package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +0 -2
  633. package/dist/chunks/cli-1.0.3-m45p13pd.mjs +0 -2
  634. package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +0 -3
  635. package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +0 -12
  636. package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +0 -4
  637. package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +0 -2
  638. package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +0 -2
  639. package/dist/chunks/cli-1.0.3-n99q1npz.mjs +0 -2
  640. package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +0 -2
  641. package/dist/chunks/cli-1.0.3-nama3pwj.mjs +0 -7
  642. package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +0 -2
  643. package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +0 -2
  644. package/dist/chunks/cli-1.0.3-ntywpqre.mjs +0 -2
  645. package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +0 -2
  646. package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +0 -24
  647. package/dist/chunks/cli-1.0.3-pc93arct.mjs +0 -10
  648. package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +0 -67
  649. package/dist/chunks/cli-1.0.3-phh30dq0.mjs +0 -4
  650. package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +0 -5
  651. package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +0 -3
  652. package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +0 -2
  653. package/dist/chunks/cli-1.0.3-q9hw6148.mjs +0 -2
  654. package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +0 -34
  655. package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +0 -2
  656. package/dist/chunks/cli-1.0.3-r274tqxg.mjs +0 -2
  657. package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +0 -3
  658. package/dist/chunks/cli-1.0.3-ra9brq66.mjs +0 -2
  659. package/dist/chunks/cli-1.0.3-rapppvd0.mjs +0 -2
  660. package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +0 -15
  661. package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +0 -58
  662. package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +0 -2
  663. package/dist/chunks/cli-1.0.3-rpry44n3.mjs +0 -2
  664. package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +0 -2
  665. package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +0 -2
  666. package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +0 -5
  667. package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +0 -6
  668. package/dist/chunks/cli-1.0.3-sz2d376e.mjs +0 -2
  669. package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +0 -2
  670. package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +0 -133
  671. package/dist/chunks/cli-1.0.3-t7p3714v.mjs +0 -2
  672. package/dist/chunks/cli-1.0.3-tjewxa84.mjs +0 -2
  673. package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +0 -9
  674. package/dist/chunks/cli-1.0.3-v658mswv.mjs +0 -12
  675. package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +0 -2
  676. package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +0 -2
  677. package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +0 -2
  678. package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +0 -3
  679. package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +0 -2
  680. package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +0 -2
  681. package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +0 -2
  682. package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +0 -15
  683. package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +0 -2
  684. package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +0 -50
  685. package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +0 -2
  686. package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +0 -42
  687. package/dist/chunks/cli-1.0.3-xarnzm58.mjs +0 -2
  688. package/dist/chunks/cli-1.0.3-xf2r8496.mjs +0 -2
  689. package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +0 -4
  690. package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +0 -17
  691. package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +0 -2
  692. package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +0 -4
  693. package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +0 -2
  694. package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +0 -2
  695. package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +0 -2
  696. package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +0 -2
  697. package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +0 -2
  698. package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +0 -2
  699. package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +0 -18
  700. package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +0 -2
  701. package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +0 -2
  702. package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +0 -18
  703. package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +0 -8
  704. package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +0 -2
  705. package/dist/chunks/client-1.0.3-qkqk8q23.mjs +0 -1
  706. package/dist/chunks/color-1.0.3-x0qygswm.mjs +0 -1
  707. package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +0 -3
  708. package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +0 -1
  709. package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +0 -1
  710. package/dist/chunks/constants-1.0.3-wk9v349h.mjs +0 -1
  711. package/dist/chunks/context-1.0.3-6sarjqp3.mjs +0 -1
  712. package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +0 -1
  713. package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +0 -1
  714. package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +0 -1
  715. package/dist/chunks/copy-1.0.3-575pc6gc.mjs +0 -9
  716. package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +0 -1
  717. package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +0 -1
  718. package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +0 -1
  719. package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +0 -1
  720. package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +0 -1446
  721. package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +0 -1
  722. package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +0 -1
  723. package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +0 -1
  724. package/dist/chunks/diff-1.0.3-43a1txqm.mjs +0 -1
  725. package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +0 -1
  726. package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +0 -1
  727. package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +0 -1
  728. package/dist/chunks/effort-1.0.3-28cxc122.mjs +0 -10
  729. package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +0 -1
  730. package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +0 -1
  731. package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +0 -1
  732. package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +0 -1
  733. package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +0 -1
  734. package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +0 -1
  735. package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +0 -1
  736. package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +0 -1
  737. package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +0 -1
  738. package/dist/chunks/export-1.0.3-4r98t7vv.mjs +0 -2
  739. package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +0 -1
  740. package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +0 -1
  741. package/dist/chunks/fast-1.0.3-4atx5cja.mjs +0 -1
  742. package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +0 -14
  743. package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +0 -1
  744. package/dist/chunks/git-1.0.3-tpyzsser.mjs +0 -1
  745. package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +0 -1
  746. package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +0 -4
  747. package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +0 -1
  748. package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +0 -1
  749. package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +0 -2
  750. package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +0 -6
  751. package/dist/chunks/help-1.0.3-e1qcej38.mjs +0 -1
  752. package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +0 -3
  753. package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +0 -79
  754. package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +0 -1
  755. package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +0 -3
  756. package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +0 -1
  757. package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +0 -1
  758. package/dist/chunks/index-1.0.3-15ym353c.mjs +0 -1
  759. package/dist/chunks/index-1.0.3-1tyen96a.mjs +0 -1
  760. package/dist/chunks/index-1.0.3-22c46a9g.mjs +0 -1
  761. package/dist/chunks/index-1.0.3-293khy5y.mjs +0 -1
  762. package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +0 -1
  763. package/dist/chunks/index-1.0.3-4g5be32x.mjs +0 -5
  764. package/dist/chunks/index-1.0.3-5h227bav.mjs +0 -17
  765. package/dist/chunks/index-1.0.3-83nb50h7.mjs +0 -1
  766. package/dist/chunks/index-1.0.3-f3xy16k0.mjs +0 -1
  767. package/dist/chunks/index-1.0.3-fp6xhcab.mjs +0 -2
  768. package/dist/chunks/index-1.0.3-gecs01pd.mjs +0 -1
  769. package/dist/chunks/index-1.0.3-gwt3epj3.mjs +0 -30
  770. package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +0 -9
  771. package/dist/chunks/index-1.0.3-j1rfqkax.mjs +0 -1
  772. package/dist/chunks/index-1.0.3-k6ze856z.mjs +0 -1
  773. package/dist/chunks/index-1.0.3-n8qxa0er.mjs +0 -1
  774. package/dist/chunks/index-1.0.3-pa0eqyya.mjs +0 -1
  775. package/dist/chunks/index-1.0.3-qacj9f9z.mjs +0 -1
  776. package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +0 -1
  777. package/dist/chunks/index-1.0.3-w0d2skgw.mjs +0 -2
  778. package/dist/chunks/index-1.0.3-w6sndqyw.mjs +0 -9
  779. package/dist/chunks/index-1.0.3-z42381sj.mjs +0 -1
  780. package/dist/chunks/index-1.0.3-zfk75xdr.mjs +0 -1
  781. package/dist/chunks/init-1.0.3-1756vwh2.mjs +0 -1
  782. package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +0 -1
  783. package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +0 -1
  784. package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +0 -870
  785. package/dist/chunks/install-1.0.3-zttqn1ez.mjs +0 -1
  786. package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +0 -149
  787. package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +0 -1
  788. package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +0 -1
  789. package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +0 -1
  790. package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +0 -2
  791. package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +0 -2
  792. package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +0 -1
  793. package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +0 -1
  794. package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +0 -1
  796. package/dist/chunks/log-1.0.3-wzytzthn.mjs +0 -1
  797. package/dist/chunks/main-1.0.3-jzwehebm.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +0 -1
  799. package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +0 -1
  800. package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +0 -4
  801. package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +0 -17
  802. package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +0 -1
  803. package/dist/chunks/memory-1.0.3-esv79kf8.mjs +0 -3
  804. package/dist/chunks/model-1.0.3-9b4d36sd.mjs +0 -1
  805. package/dist/chunks/model-1.0.3-bh1t2s45.mjs +0 -2
  806. package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +0 -12
  807. package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +0 -14
  809. package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +0 -1
  810. package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +0 -1
  812. package/dist/chunks/parser-1.0.3-avw926ew.mjs +0 -1
  813. package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +0 -1
  814. package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +0 -3
  815. package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +0 -1
  816. package/dist/chunks/plan-1.0.3-emxq5t72.mjs +0 -1
  817. package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +0 -1
  818. package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +0 -1
  820. package/dist/chunks/plugins-1.0.3-x021vefh.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +0 -2
  822. package/dist/chunks/print-1.0.3-w721s1pr.mjs +0 -57
  823. package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +0 -1
  824. package/dist/chunks/process-1.0.3-xedhq816.mjs +0 -1
  825. package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +0 -1
  826. package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +0 -9
  827. package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +0 -1
  828. package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +0 -1
  829. package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +0 -1
  830. package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +0 -13
  831. package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +0 -2
  832. package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +0 -1
  833. package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +0 -6
  834. package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +0 -1
  835. package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +0 -34
  836. package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +0 -1
  837. package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +0 -5
  838. package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +0 -2
  839. package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +0 -1
  840. package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +0 -1
  841. package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +0 -1
  842. package/dist/chunks/rename-1.0.3-090y3y3t.mjs +0 -1
  843. package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +0 -1
  844. package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +0 -1
  845. package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +0 -2
  846. package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +0 -1
  847. package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +0 -1
  848. package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +0 -1
  850. package/dist/chunks/session-1.0.3-26qz9f9c.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +0 -1
  854. package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +0 -1
  855. package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +0 -5
  856. package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +0 -1
  857. package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +0 -1
  860. package/dist/chunks/state-1.0.3-7hxpebf0.mjs +0 -1
  861. package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +0 -6
  862. package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +0 -1
  863. package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +0 -1
  865. package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +0 -1
  868. package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +0 -1
  870. package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +0 -1
  871. package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +0 -1
  873. package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +0 -1
  875. package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +0 -69
  878. package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +0 -4
  880. package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +0 -86
  881. package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +0 -1
  882. package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +0 -1
  885. package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +0 -1
  886. package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +0 -1
  887. package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +0 -1
  888. package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +0 -1
  889. package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +0 -1
  890. package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +0 -132
  891. package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +0 -1
  892. package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +0 -1
  893. package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +0 -1
  894. package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +0 -7
  895. /package/dist/chunks/{cli-1.0.3-43683395.mjs → cli-1.0.4-1eb2472e.mjs} +0 -0
  896. /package/dist/chunks/{cli-1.0.3-qf5pjy0v.mjs → cli-1.0.4-a2brsa8c.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.0.3-adgwsvq3.mjs → cli-1.0.4-fyekx70j.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.0.3-hn2qw1pk.mjs → cli-1.0.4-jrvveh6t.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.0.3-25zd2770.mjs → cli-1.0.4-rh4j3s0t.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.0.3-vzm5gxzn.mjs → cli-1.0.4-rhq4w2pj.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.0.3-77dec30x.mjs → cli-1.0.4-sx5bf3zy.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.0.3-cf280jvq.mjs → cli-1.0.4-zjh4h68p.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Jda as G,Kda as h,Oda as v,Pda as P,Wda as k,gea as f,mda as M,pda as L}from"./cli-1.0.4-q0rnwhn4.mjs";import{Dha as E,Mha as x}from"./cli-1.0.4-hfn9tnb6.mjs";import{Lja as u,yja as T}from"./cli-1.0.4-ex22h376.mjs";import{Xqa as C}from"./cli-1.0.4-rhq4w2pj.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Cc,Wj as Dc,e as Ec,Xj as Fc,Yj as Gc,jj as Hc};
@@ -0,0 +1,12 @@
1
+ import{ug as $Z,vg as uZ,wg as fz}from"./cli-1.0.4-8bmfjgvt.mjs";import{Ch as HJ,Dh as Vz}from"./cli-1.0.4-hrw2yb74.mjs";import{Nh as GJ,Oh as Bz}from"./cli-1.0.4-ya3aqyvx.mjs";import{$j as TQ,$x as EQ,$z as cJ,AQ as g0,As as NJ,BQ as rQ,Bx as $Q,DQ as eJ,EQ as ZQ,Es as Uz,Ex as AX,FJ as gQ,FQ as oQ,GQ as tQ,Gn as zQ,Hn as $z,IQ as OZ,Ik as mZ,Jk as FX,On as RQ,Pn as wX,Tx as UQ,Ux as jQ,Vx as uQ,Wx as fQ,Wz as SZ,Xz as hZ,YS as VQ,Yz as TZ,Zz as dJ,_j as _Z,_x as MQ,_z as cQ,aT as KQ,co as XQ,dT as fZ,eo as xZ,fA as e0,gA as gJ,hA as mJ,hk as IJ,iA as nJ,ik as SJ,jA as yz,ly as pQ,my as PX,oo as WQ,pT as BQ,pk as pJ,qQ as nQ,so as uz,ty as dQ,uQ as iQ,uy as DX,vQ as lQ,xQ as nZ,yQ as aQ}from"./cli-1.0.4-jvp0mp87.mjs";import{pU as xQ,yU as OX}from"./cli-1.0.4-yrgjsn2v.mjs";import{NX as YJ,RX as qz,SX as UZ,TX as NX,sX as FZ,tX as qJ}from"./cli-1.0.4-c9sh44ne.mjs";import{FZ as jZ,GZ as Jz,I0 as p0,IY as u0,WZ as hQ,XZ as KX,b0 as b,c0 as DQ,cZ as c0,d0 as g,e0 as JX,gZ as vZ,yY as WJ,zY as Wz}from"./cli-1.0.4-9ra8j4rt.mjs";import{N2 as f0,O2 as B,P2 as $,Q2 as F0}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as S0}from"./cli-1.0.4-5e2v63sy.mjs";import{l3 as VJ,m3 as BJ,n3 as Yz}from"./cli-1.0.4-vnf5ysx9.mjs";import{S6 as JQ,a7 as QQ,p6 as PQ,q6 as ZX,v6 as JZ,v7 as xz,y6 as QZ}from"./cli-1.0.4-0vwtrvvh.mjs";import{R7 as gZ,S7 as GX}from"./cli-1.0.4-3289hbrr.mjs";import{Gba as LZ,Kda as HQ,Oba as XJ,Y8 as v0,Z8 as zJ,aaa as SQ,pda as DZ,waa as LX}from"./cli-1.0.4-q0rnwhn4.mjs";import{Efa as ZZ,Lfa as hz,tfa as PZ,ufa as TJ}from"./cli-1.0.4-1bg07n68.mjs";import{$ga as Rz,Cha as Dz,_ga as RZ,kha as KZ,pha as wZ,qha as NZ}from"./cli-1.0.4-8x3m3esm.mjs";import{Qia as m0,Tia as ez}from"./cli-1.0.4-vpcfce7x.mjs";import{Bja as IQ,Lja as HX}from"./cli-1.0.4-ex22h376.mjs";import{Joa as kQ,mpa as BX}from"./cli-1.0.4-n5mydt2f.mjs";import{Tqa as N0,Xqa as L0}from"./cli-1.0.4-rhq4w2pj.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
+ `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
+ `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
+ `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
+ `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
+ `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
+ `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
+ `))}return Q.join(`
10
+ `)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(SZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
+ `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var mQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=gQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=$Q((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B(uQ.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(fQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();mQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
+ export{s0 as Be,TX as Ce,lZ as De,xX as Ee,$X as Fe,JJ as Ge,QW as He,zW as Ie,XW as Je,LJ as Ke,g8 as Le,sJ as Me};
@@ -0,0 +1,2 @@
1
+ import{Bja as B,Cja as H,Lja as V}from"./cli-1.0.4-ex22h376.mjs";import{Xqa as Q}from"./cli-1.0.4-rhq4w2pj.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
2
+ export{$ as Ih,Y as Jh};
@@ -0,0 +1,24 @@
1
+ import{gX as T,rX as c}from"./cli-1.0.4-dj36xg0v.mjs";import{H1 as w,K1 as n}from"./cli-1.0.4-htrx7sdv.mjs";import{m9 as M,n_ as y,o9 as X,o_ as g,p9 as f}from"./cli-1.0.4-q0rnwhn4.mjs";import{Qia as Z,Tha as R,Tia as h,Vha as F,tia as K,uia as v,yia as m}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as Y,tja as W,vja as D}from"./cli-1.0.4-7pxrd0w5.mjs";import{Lja as S,yja as E}from"./cli-1.0.4-ex22h376.mjs";import{mpa as j,pla as k,tla as A,vla as N}from"./cli-1.0.4-n5mydt2f.mjs";import{Xqa as H}from"./cli-1.0.4-rhq4w2pj.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${J}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${J}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
24
+ export{O as NW,i as OW,e as PW,qq as QW,_ as RW,Uq as SW,Bq as TW,C as UW,Mq as VW,I as WW,Aq as XW,d as YW,r as ZW,t as _W};
@@ -0,0 +1,2 @@
1
+ import{I0 as f,IY as s,d0 as t}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as n,P2 as c,Q2 as r}from"./cli-1.0.4-x8jnn75c.mjs";import{Tqa as m,Xqa as l}from"./cli-1.0.4-rhq4w2pj.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
+ export{T as og,p as pg};
@@ -0,0 +1,4 @@
1
+ import{Sd as j,Td as w,Ud as _,Vd as D,Wd as L,Xd as A,Yd as O}from"./cli-1.0.4-q00a51mt.mjs";import{CA as V,EA as C,GL as X,HL as I,mp as R,nR as h,pR as y,pp as b,zA as W}from"./cli-1.0.4-jvp0mp87.mjs";import{Y8 as Q,Z8 as N,gfa as U,ofa as S}from"./cli-1.0.4-q0rnwhn4.mjs";import{Nha as K,Qha as v}from"./cli-1.0.4-34jdejmp.mjs";import{Via as x,Zia as M}from"./cli-1.0.4-9ber6pxx.mjs";import{oja as B,vja as F}from"./cli-1.0.4-7pxrd0w5.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
2
+ `);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
3
+ `),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
4
+ export{g as a,a as b,i as c,u as d,n as e,r as f};
@@ -0,0 +1,2 @@
1
+ import{Cc as l,Dc as m,Gc as u,Hc as y}from"./cli-1.0.4-rkb3rkfa.mjs";import{OF as p,QF as b}from"./cli-1.0.4-jvp0mp87.mjs";import{I0 as C,b0 as s,d0 as e}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as i,P2 as r,Q2 as g}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as M}from"./cli-1.0.4-5e2v63sy.mjs";import{Tqa as h,Xqa as f}from"./cli-1.0.4-rhq4w2pj.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
2
+ export{T as Ac,w as Bc};
@@ -0,0 +1,2 @@
1
+ import{Ud as Jq,Yd as Tq}from"./cli-1.0.4-q00a51mt.mjs";import{de as zq,ee as bq}from"./cli-1.0.4-rf2k7z5d.mjs";import{BL as qq,DH as u,EH as fq,FL as Fq,OF as r,PF as Gq,PK as S,SK as Nq,VL as D,YL as Cq,Yn as n,Zn as yq,bL as s,cL as _q,gL as a,jL as l,nL as t,sL as e,uL as Rq}from"./cli-1.0.4-jvp0mp87.mjs";import{I0 as Oq,IY as Bq,b0 as F,d0 as C,yY as i,zY as Kq}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as v,P2 as R,Q2 as p}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as Lq}from"./cli-1.0.4-5e2v63sy.mjs";import{X_ as x,b9 as g,c9 as Zq,gfa as m,n9 as $,n_ as o,o_ as Hq,ofa as wq,p9 as Xq,s$ as vq}from"./cli-1.0.4-q0rnwhn4.mjs";import{Qia as B,Tia as Yq}from"./cli-1.0.4-vpcfce7x.mjs";import{nja as P,qja as h,vja as Wq}from"./cli-1.0.4-7pxrd0w5.mjs";import{Tqa as d,Xqa as Vq}from"./cli-1.0.4-rhq4w2pj.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Kd,Yz as Ld,Dq as Md};
@@ -0,0 +1,2 @@
1
+ import{Xqa as j}from"./cli-1.0.4-rhq4w2pj.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
+ export{q as bga,v as cga,z as dga,w as ega};
@@ -0,0 +1,2 @@
1
+ import{G3 as G,K3 as W,L3 as V,X6 as j,v7 as f,y6 as M}from"./cli-1.0.4-0vwtrvvh.mjs";import{Kca as x,Lca as B,M_ as w,N_ as z,Q_ as Y}from"./cli-1.0.4-q0rnwhn4.mjs";import{Eha as J,Mha as F}from"./cli-1.0.4-hfn9tnb6.mjs";import{Xqa as Z}from"./cli-1.0.4-rhq4w2pj.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
+ export{g as xT,p as yT,X as zT,S as AT,y as BT,I as CT,b as DT};
@@ -0,0 +1,2 @@
1
+ import{$q as Hq,ar as pq,az as Uq,bz as mq}from"./cli-1.0.4-jvp0mp87.mjs";import{Y2 as Bq,_2 as dq}from"./cli-1.0.4-1ddc8bnh.mjs";import{$6 as S,G3 as Wq,K3 as jq,L3 as Sq,X6 as c,p6 as Nq,q6 as yq,v7 as gq}from"./cli-1.0.4-0vwtrvvh.mjs";import{$ca as Lq,S_ as Gq,U_ as Pq,Uca as Yq,Vca as Dq,Wca as k,Yca as Xq,h_ as M,l_ as $q}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tga as N,Vga as bq,Wga as E,Xga as Cq}from"./cli-1.0.4-0wp27vrg.mjs";import{Eha as Kq,Fha as Qq,Gha as Vq,Lha as Zq,Mha as Rq}from"./cli-1.0.4-hfn9tnb6.mjs";import{Nha as _,Qha as e}from"./cli-1.0.4-34jdejmp.mjs";import{Qia as Y,Tha as Fq,Tia as Jq,Vha as $J,tia as m,yia as Eq}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as C,uja as P,vja as qq}from"./cli-1.0.4-7pxrd0w5.mjs";import{gqa as z,yqa as kq}from"./cli-1.0.4-j17mhs88.mjs";import{Wqa as ZJ,Xqa as d,Yqa as Tq}from"./cli-1.0.4-rhq4w2pj.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.4-zdd5de85.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
2
+ export{vq as i,NJ as j,BJ as k,Mq as l,HJ as m,UJ as n,OJ as o,wJ as p};
@@ -0,0 +1,2 @@
1
+ import{OF as U,PF as A,TF as V,UF as E}from"./cli-1.0.4-jvp0mp87.mjs";import{dW as W,lW as G}from"./cli-1.0.4-fc0bzryc.mjs";import{I0 as O,b0 as F,d0 as H}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as q,P2 as K,Q2 as L}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as I}from"./cli-1.0.4-5e2v63sy.mjs";import{X6 as Q,v7 as p}from"./cli-1.0.4-0vwtrvvh.mjs";import{Kda as $,mda as M,pda as N}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tqa as Z,Xqa as _}from"./cli-1.0.4-rhq4w2pj.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
+ export{b as ec,d as fc,P as gc};
@@ -0,0 +1,2 @@
1
+ import{Nc as k,Oc as P}from"./cli-1.0.4-emp66cxw.mjs";import{Uc as O,Vc as A,Wc as f}from"./cli-1.0.4-xxktmt2a.mjs";import{G6 as U,K6 as V,P6 as j,v7 as E}from"./cli-1.0.4-0vwtrvvh.mjs";import{Aaa as X,Baa as H,Haa as x,Kda as G,Rda as I,gea as h,gfa as K,mda as N,ofa as b,pda as J,wda as Y}from"./cli-1.0.4-q0rnwhn4.mjs";import{nja as F,vja as L}from"./cli-1.0.4-7pxrd0w5.mjs";import{Cma as W,mpa as T}from"./cli-1.0.4-n5mydt2f.mjs";import{Xqa as y}from"./cli-1.0.4-rhq4w2pj.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
+ export{d as Ic,l as Jc,S as Kc,u as Lc};
@@ -0,0 +1,2 @@
1
+ import{Bx as g,Cx as Zf,Ex as _f,Yn as Xf,Zn as Uf}from"./cli-1.0.4-jvp0mp87.mjs";import{HX as Wf,IX as Tf}from"./cli-1.0.4-c9sh44ne.mjs";import{$Z as F,I0 as a,IY as n,OY as s,PY as If,a0 as cf,b0 as r,d0 as q,h0 as Vf}from"./cli-1.0.4-9ra8j4rt.mjs";import{N2 as Qf,O2 as H,P2 as X,Q2 as T}from"./cli-1.0.4-x8jnn75c.mjs";import{R2 as Rf}from"./cli-1.0.4-5e2v63sy.mjs";import{G4 as Nf,I4 as b,J4 as _,K4 as Hf,M4 as j,P4 as qf,R4 as zf,Z4 as Jf,_4 as hf,d5 as M,g5 as p,h5 as Ef}from"./cli-1.0.4-0vwtrvvh.mjs";import{R7 as i,S7 as yf}from"./cli-1.0.4-3289hbrr.mjs";import{Kda as Pf,faa as w,lca as Gf,pda as l,waa as Bf,yca as Cf}from"./cli-1.0.4-q0rnwhn4.mjs";import{Dfa as mf,Lfa as Of}from"./cli-1.0.4-1bg07n68.mjs";import{Nha as D,Qha as Lf}from"./cli-1.0.4-34jdejmp.mjs";import{Tqa as x,Xqa as o}from"./cli-1.0.4-rhq4w2pj.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
+ export{U as le,ff as me,Df as ne,H0 as oe,xf as pe};
@@ -0,0 +1,2 @@
1
+ import{Xqa as g}from"./cli-1.0.4-rhq4w2pj.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
+ export{Bq as rV,d as sV,$J as tV,DJ as uV,GJ as vV};
@@ -0,0 +1,2 @@
1
+ import{Ap as Rq,Bp as i,Cp as Aq,Uo as S,Zo as Zq,xo as E,yo as m,yp as l,zo as Xq}from"./cli-1.0.4-jvp0mp87.mjs";import{$aa as h,Waa as u,Yaa as g,aba as n,fba as vq,gfa as D,ofa as Qq}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tga as d,Vga as Uq}from"./cli-1.0.4-0wp27vrg.mjs";import{Cia as M,Gia as y,Qia as V,Tia as e,tia as P,uia as v,yia as f}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as W,pja as O,qja as C,vja as _}from"./cli-1.0.4-7pxrd0w5.mjs";import{gqa as p,yqa as qq}from"./cli-1.0.4-j17mhs88.mjs";import{Xqa as N}from"./cli-1.0.4-rhq4w2pj.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
+ export{Fq as ld,r as md,nq as nd,lq as od,Oq as pd,QQ as qd,XQ as rd,Dq as sd};
@@ -0,0 +1,3 @@
1
+ import{$Z as j,I0 as o,IY as t,RY as p,a0 as s,b0 as F,d0 as V}from"./cli-1.0.4-9ra8j4rt.mjs";import{O2 as w,P2 as g,Q2 as y}from"./cli-1.0.4-x8jnn75c.mjs";import{Y8 as $,Z8 as a,d9 as _,e9 as n}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tqa as i,Xqa as v}from"./cli-1.0.4-rhq4w2pj.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
+ `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
+ export{Hq as mg,Mq as ng};
@@ -0,0 +1,15 @@
1
+ import{IQ as _,MN as f,ON as z,Zw as L,_w as k,fk as J}from"./cli-1.0.4-jvp0mp87.mjs";import{B$ as A,w$ as F}from"./cli-1.0.4-q0rnwhn4.mjs";import{Tga as Y,Vga as h,Wga as H,Xga as X}from"./cli-1.0.4-0wp27vrg.mjs";import{Nha as W,Qha as M}from"./cli-1.0.4-34jdejmp.mjs";import{Qia as D,Tia as R}from"./cli-1.0.4-vpcfce7x.mjs";import{cna as q,mpa as C}from"./cli-1.0.4-n5mydt2f.mjs";import{Xqa as V}from"./cli-1.0.4-rhq4w2pj.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
+ `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
+
4
+ Return JSON with a single "title" field.
5
+
6
+ Good examples:
7
+ {"title": "Fix login button on mobile"}
8
+ {"title": "Add OAuth authentication"}
9
+ {"title": "Debug failing CI tests"}
10
+ {"title": "Refactor API client error handling"}
11
+
12
+ Bad (too vague): {"title": "Code changes"}
13
+ Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
+ Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
+ export{S as se,T as te,I as ue};
@@ -0,0 +1,2 @@
1
+ import{Vqa as H,Xqa as UJ}from"./cli-1.0.4-rhq4w2pj.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=H((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Cq.exports=C1});var uq=H((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=S1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=H((fJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Qq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var S0=H((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=H((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!zq(O,String(Z),J))return null;if(W&&!zq(O,String(W),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
2
+ export{W1 as A1,QQ as B1,WQ as C1,ZQ as D1,KQ as E1,FJ as F1};