@claudiolabs/claudin 1.0.7 → 1.0.9

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 (918) hide show
  1. package/README.md +1 -0
  2. package/dist/chunks/AgentTool-1.0.9-pn7bw6yv.mjs +1 -0
  3. package/dist/chunks/App-1.0.9-4evjz5w2.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.0.9-bbb6t3r9.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.0.9-133vee5x.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.0.9-1bgty08c.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.0.9-acyyj7ky.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.9-8d430r75.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.0.9-6ew6r9f6.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.0.9-ze7bee5g.mjs +7 -0
  11. package/dist/chunks/Doctor-1.0.9-xy0g4b33.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.0.9-3yjz2cvs.mjs +6 -0
  13. package/dist/chunks/Grove-1.0.9-96nwpafr.mjs +1 -0
  14. package/dist/chunks/ITermBackend-1.0.9-ywr7fk06.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-1.0.9-2q4w4j4t.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-1.0.9-z37xr3zw.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-1.0.9-z7j3qhg7.mjs +1 -0
  18. package/dist/chunks/Onboarding-1.0.9-gtxm4j8b.mjs +1 -0
  19. package/dist/chunks/ProviderManager-1.0.9-1mdk6qz8.mjs +1 -0
  20. package/dist/chunks/REPL-1.0.9-8b6q2gzd.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-1.0.9-e0r40skb.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-1.0.9-02v56nb9.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-1.0.9-bdgqerzr.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-1.0.9-vtm223ky.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-1.0.9-bmyks5dc.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-1.0.9-ns6fj8sv.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-1.0.9-98prvmmb.mjs +1 -0
  28. package/dist/chunks/TrustDialog-1.0.9-br4q9mkd.mjs +1 -0
  29. package/dist/chunks/activeProvider-1.0.9-5nxztxpg.mjs +1 -0
  30. package/dist/chunks/add-dir-1.0.9-ypva61t4.mjs +1 -0
  31. package/dist/chunks/agentTypes-1.0.9-x07mx3dr.mjs +1 -0
  32. package/dist/chunks/agents-1.0.9-3mfx5p6a.mjs +3 -0
  33. package/dist/chunks/agents-1.0.9-8srfrkqw.mjs +110 -0
  34. package/dist/chunks/api-1.0.9-797pjvs1.mjs +1 -0
  35. package/dist/chunks/asciicast-1.0.9-2jnc8jtk.mjs +1 -0
  36. package/dist/chunks/assistant-1.0.9-1ryssrnh.mjs +1 -0
  37. package/dist/chunks/auth-1.0.9-9xadhd5v.mjs +1 -0
  38. package/dist/chunks/auth-1.0.9-q57mj8gk.mjs +1 -0
  39. package/dist/chunks/autoMode-1.0.9-rz4pssbt.mjs +48 -0
  40. package/dist/chunks/autoUpdater-1.0.9-kx1fdq56.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.0.9-5c1na5cn.mjs +1 -0
  42. package/dist/chunks/branch-1.0.9-2857desd.mjs +4 -0
  43. package/dist/chunks/bridge-1.0.9-a2875hps.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.0.9-pqqgvm77.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.0.9-z4rqrrb8.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.0.9-e08pefvd.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.0.9-zt50pndw.mjs +1 -0
  48. package/dist/chunks/btw-1.0.9-55ev3ghy.mjs +1 -0
  49. package/dist/chunks/buddy-1.0.9-6z68f6ex.mjs +3 -0
  50. package/dist/chunks/cacache-1.0.9-h1eketz5.mjs +1 -0
  51. package/dist/chunks/cache-probe-1.0.9-78r0f324.mjs +21 -0
  52. package/dist/chunks/cacheStats-1.0.9-4t8zwh7m.mjs +4 -0
  53. package/dist/chunks/caches-1.0.9-8vpcw0da.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-1.0.9-7vwfj2q3.mjs +1 -0
  55. package/dist/chunks/claudemd-1.0.9-cd1jnewp.mjs +1 -0
  56. package/dist/chunks/clear-1.0.9-881ynng5.mjs +1 -0
  57. package/dist/chunks/clearTerminal-1.0.9-saxb5je9.mjs +1 -0
  58. package/dist/chunks/cli-1.0.9-01cy14p7.mjs +2 -0
  59. package/dist/chunks/cli-1.0.9-03tgqcyj.mjs +2 -0
  60. package/dist/chunks/cli-1.0.9-06kd11jd.mjs +2 -0
  61. package/dist/chunks/cli-1.0.9-0e6g8sye.mjs +4 -0
  62. package/dist/chunks/cli-1.0.9-0f3ex0vg.mjs +15 -0
  63. package/dist/chunks/cli-1.0.9-0xhf29zj.mjs +2 -0
  64. package/dist/chunks/cli-1.0.9-0xr97fha.mjs +4 -0
  65. package/dist/chunks/cli-1.0.9-11j6h2p2.mjs +2 -0
  66. package/dist/chunks/cli-1.0.9-11tj558a.mjs +2 -0
  67. package/dist/chunks/cli-1.0.9-13q9fkxq.mjs +2 -0
  68. package/dist/chunks/cli-1.0.9-19gz2k9q.mjs +3 -0
  69. package/dist/chunks/cli-1.0.9-1adzaxwy.mjs +2 -0
  70. package/dist/chunks/cli-1.0.9-1de7bab0.mjs +2 -0
  71. package/dist/chunks/cli-1.0.9-1f0bxa2a.mjs +18 -0
  72. package/dist/chunks/cli-1.0.9-1hcdwdyw.mjs +133 -0
  73. package/dist/chunks/cli-1.0.9-1p61fppv.mjs +2 -0
  74. package/dist/chunks/cli-1.0.9-1pe38ex2.mjs +2 -0
  75. package/dist/chunks/cli-1.0.9-1t8pkgtd.mjs +2 -0
  76. package/dist/chunks/cli-1.0.9-25kh81st.mjs +18 -0
  77. package/dist/chunks/cli-1.0.9-2a1jman4.mjs +3 -0
  78. package/dist/chunks/cli-1.0.9-2gdex17t.mjs +2 -0
  79. package/dist/chunks/cli-1.0.9-2hgg2mnb.mjs +2 -0
  80. package/dist/chunks/cli-1.0.9-2ncvyz2r.mjs +45 -0
  81. package/dist/chunks/cli-1.0.9-2prerh1s.mjs +2 -0
  82. package/dist/chunks/cli-1.0.9-2y9fcheg.mjs +2 -0
  83. package/dist/chunks/cli-1.0.9-3bdkmcp9.mjs +18 -0
  84. package/dist/chunks/cli-1.0.9-3ccxr1d8.mjs +2 -0
  85. package/dist/chunks/cli-1.0.9-3espt55t.mjs +20 -0
  86. package/dist/chunks/cli-1.0.9-3k1w3fc0.mjs +2 -0
  87. package/dist/chunks/cli-1.0.9-3mv7thfe.mjs +21 -0
  88. package/dist/chunks/cli-1.0.9-3n2084tg.mjs +2 -0
  89. package/dist/chunks/cli-1.0.9-3wmanrzv.mjs +2 -0
  90. package/dist/chunks/cli-1.0.9-3wn7m4cv.mjs +3 -0
  91. package/dist/chunks/cli-1.0.9-3ye1460y.mjs +2 -0
  92. package/dist/chunks/cli-1.0.9-42ww2d94.mjs +2 -0
  93. package/dist/chunks/cli-1.0.9-49sanx9h.mjs +2 -0
  94. package/dist/chunks/cli-1.0.9-4fdvygwb.mjs +25 -0
  95. package/dist/chunks/cli-1.0.9-4kjme82s.mjs +2 -0
  96. package/dist/chunks/cli-1.0.9-4vrbbav9.mjs +2 -0
  97. package/dist/chunks/cli-1.0.9-4yksn92y.mjs +2 -0
  98. package/dist/chunks/cli-1.0.9-51rze21n.mjs +2 -0
  99. package/dist/chunks/cli-1.0.9-537n2cda.mjs +2 -0
  100. package/dist/chunks/cli-1.0.9-593a1k2m.mjs +17 -0
  101. package/dist/chunks/cli-1.0.9-5afn268n.mjs +34 -0
  102. package/dist/chunks/cli-1.0.9-601tsydg.mjs +2 -0
  103. package/dist/chunks/cli-1.0.9-625zsef6.mjs +2 -0
  104. package/dist/chunks/cli-1.0.9-6424zmgd.mjs +2 -0
  105. package/dist/chunks/cli-1.0.9-67c9vgsq.mjs +5492 -0
  106. package/dist/chunks/cli-1.0.9-68er5cff.mjs +3 -0
  107. package/dist/chunks/cli-1.0.9-6q0e7nk4.mjs +3 -0
  108. package/dist/chunks/cli-1.0.9-6x8m34y6.mjs +67 -0
  109. package/dist/chunks/cli-1.0.9-6yxsfcyh.mjs +2 -0
  110. package/dist/chunks/cli-1.0.9-71jbnxs0.mjs +4 -0
  111. package/dist/chunks/cli-1.0.9-7exncgt2.mjs +4 -0
  112. package/dist/chunks/cli-1.0.9-7gewnt7b.mjs +2 -0
  113. package/dist/chunks/cli-1.0.9-7xt7m2q5.mjs +2 -0
  114. package/dist/chunks/cli-1.0.9-806xk0g7.mjs +2 -0
  115. package/dist/chunks/cli-1.0.9-81zj78t2.mjs +2 -0
  116. package/dist/chunks/cli-1.0.9-89yxpmpq.mjs +3 -0
  117. package/dist/chunks/cli-1.0.9-8f06bgf9.mjs +4 -0
  118. package/dist/chunks/cli-1.0.9-8g8n5ceb.mjs +2 -0
  119. package/dist/chunks/cli-1.0.9-8j4fe1qz.mjs +2 -0
  120. package/dist/chunks/cli-1.0.9-912srhxc.mjs +2 -0
  121. package/dist/chunks/cli-1.0.9-963yvtxd.mjs +2 -0
  122. package/dist/chunks/cli-1.0.9-9jyyb7zx.mjs +12 -0
  123. package/dist/chunks/cli-1.0.9-9p6ww1a0.mjs +2 -0
  124. package/dist/chunks/cli-1.0.9-9yr5whta.mjs +26 -0
  125. package/dist/chunks/cli-1.0.9-a0zm3d1g.mjs +2 -0
  126. package/dist/chunks/cli-1.0.9-aasy7y47.mjs +2 -0
  127. package/dist/chunks/cli-1.0.9-ajhbq50f.mjs +2 -0
  128. package/dist/chunks/cli-1.0.9-awxee62m.mjs +2 -0
  129. package/dist/chunks/cli-1.0.9-ayjdc0qr.mjs +2 -0
  130. package/dist/chunks/cli-1.0.9-az9m58wa.mjs +2 -0
  131. package/dist/chunks/cli-1.0.9-b029w2p8.mjs +2 -0
  132. package/dist/chunks/cli-1.0.9-b11n0pyq.mjs +9 -0
  133. package/dist/chunks/cli-1.0.9-b38km1fw.mjs +2 -0
  134. package/dist/chunks/cli-1.0.9-b78v72rn.mjs +2 -0
  135. package/dist/chunks/cli-1.0.9-bas5sqzw.mjs +2 -0
  136. package/dist/chunks/cli-1.0.9-bd7743tj.mjs +2 -0
  137. package/dist/chunks/cli-1.0.9-bg3jgpj8.mjs +2 -0
  138. package/dist/chunks/cli-1.0.9-bqcs2981.mjs +4 -0
  139. package/dist/chunks/cli-1.0.9-c05x7nfj.mjs +3 -0
  140. package/dist/chunks/cli-1.0.9-c5n2kbdv.mjs +17 -0
  141. package/dist/chunks/cli-1.0.9-cc6btq9c.mjs +2 -0
  142. package/dist/chunks/cli-1.0.9-cdc3drzy.mjs +2 -0
  143. package/dist/chunks/cli-1.0.9-ch1ca19q.mjs +2 -0
  144. package/dist/chunks/cli-1.0.9-cthzntz1.mjs +2 -0
  145. package/dist/chunks/cli-1.0.9-cymry1xw.mjs +2 -0
  146. package/dist/chunks/cli-1.0.9-d8rq80ph.mjs +2 -0
  147. package/dist/chunks/cli-1.0.9-dbs656rx.mjs +133 -0
  148. package/dist/chunks/cli-1.0.9-dg55k2hn.mjs +2 -0
  149. package/dist/chunks/cli-1.0.9-dg8j07p1.mjs +2 -0
  150. package/dist/chunks/cli-1.0.9-dp3xhncn.mjs +2 -0
  151. package/dist/chunks/cli-1.0.9-dvbfpdtc.mjs +24 -0
  152. package/dist/chunks/cli-1.0.9-e2f6b83v.mjs +2 -0
  153. package/dist/chunks/cli-1.0.9-e2mjjvjc.mjs +2 -0
  154. package/dist/chunks/cli-1.0.9-e491drav.mjs +2 -0
  155. package/dist/chunks/cli-1.0.9-e8n90m9g.mjs +2 -0
  156. package/dist/chunks/cli-1.0.9-ea0y4mww.mjs +2 -0
  157. package/dist/chunks/cli-1.0.9-eb7ne7cx.mjs +2 -0
  158. package/dist/chunks/cli-1.0.9-eeyg3kcg.mjs +4 -0
  159. package/dist/chunks/cli-1.0.9-efmzhqag.mjs +2 -0
  160. package/dist/chunks/cli-1.0.9-ej3ahs6j.mjs +199 -0
  161. package/dist/chunks/cli-1.0.9-eq3sypj3.mjs +2 -0
  162. package/dist/chunks/cli-1.0.9-erz57dtz.mjs +6 -0
  163. package/dist/chunks/cli-1.0.9-ez2pcj03.mjs +2 -0
  164. package/dist/chunks/cli-1.0.9-fejr36z6.mjs +2 -0
  165. package/dist/chunks/cli-1.0.9-fhj3g7hg.mjs +2 -0
  166. package/dist/chunks/cli-1.0.9-fkbdtr1w.mjs +3 -0
  167. package/dist/chunks/cli-1.0.9-fkfc8k86.mjs +2 -0
  168. package/dist/chunks/cli-1.0.9-fvw201bt.mjs +2 -0
  169. package/dist/chunks/cli-1.0.9-fw4bsz0q.mjs +2 -0
  170. package/dist/chunks/cli-1.0.9-fx0e9bkg.mjs +2 -0
  171. package/dist/chunks/cli-1.0.9-g8mgmpkc.mjs +2 -0
  172. package/dist/chunks/cli-1.0.9-gctz0hyw.mjs +24 -0
  173. package/dist/chunks/cli-1.0.9-ge04svda.mjs +2 -0
  174. package/dist/chunks/cli-1.0.9-gh82pj8t.mjs +50 -0
  175. package/dist/chunks/cli-1.0.9-gjta07sd.mjs +2 -0
  176. package/dist/chunks/cli-1.0.9-gsgbywct.mjs +25 -0
  177. package/dist/chunks/cli-1.0.9-gvp958jh.mjs +2 -0
  178. package/dist/chunks/cli-1.0.9-h5kwp1cf.mjs +2 -0
  179. package/dist/chunks/cli-1.0.9-ha9fdhs8.mjs +2 -0
  180. package/dist/chunks/cli-1.0.9-hf6frb0e.mjs +9 -0
  181. package/dist/chunks/cli-1.0.9-htsk8rvv.mjs +42 -0
  182. package/dist/chunks/cli-1.0.9-j02z8apf.mjs +2 -0
  183. package/dist/chunks/cli-1.0.9-j2832pm5.mjs +2 -0
  184. package/dist/chunks/cli-1.0.9-j297swbj.mjs +2 -0
  185. package/dist/chunks/cli-1.0.9-j500vd5e.mjs +2 -0
  186. package/dist/chunks/cli-1.0.9-j6fwd0mg.mjs +3 -0
  187. package/dist/chunks/cli-1.0.9-jcnmjs31.mjs +2 -0
  188. package/dist/chunks/cli-1.0.9-jfgy2jk6.mjs +5 -0
  189. package/dist/chunks/cli-1.0.9-jktrmswp.mjs +2 -0
  190. package/dist/chunks/cli-1.0.9-jmxz57bg.mjs +2 -0
  191. package/dist/chunks/cli-1.0.9-jq2h9s5r.mjs +2 -0
  192. package/dist/chunks/cli-1.0.9-jwye26tm.mjs +2 -0
  193. package/dist/chunks/cli-1.0.9-k7xzs5f3.mjs +2 -0
  194. package/dist/chunks/cli-1.0.9-k9k4mjr2.mjs +58 -0
  195. package/dist/chunks/cli-1.0.9-kfge7dzc.mjs +3 -0
  196. package/dist/chunks/cli-1.0.9-kw7p06w2.mjs +2 -0
  197. package/dist/chunks/cli-1.0.9-m6k5afpm.mjs +3 -0
  198. package/dist/chunks/cli-1.0.9-mx0hp5fn.mjs +2 -0
  199. package/dist/chunks/cli-1.0.9-n2eds51d.mjs +2 -0
  200. package/dist/chunks/cli-1.0.9-nc1t91tt.mjs +15 -0
  201. package/dist/chunks/cli-1.0.9-nm7ds98w.mjs +2 -0
  202. package/dist/chunks/cli-1.0.9-nz0skfsg.mjs +6 -0
  203. package/dist/chunks/cli-1.0.9-p3a08x10.mjs +2 -0
  204. package/dist/chunks/cli-1.0.9-ppa9xdxq.mjs +2 -0
  205. package/dist/chunks/cli-1.0.9-pxkbc8zc.mjs +2 -0
  206. package/dist/chunks/cli-1.0.9-q38wwdnj.mjs +2 -0
  207. package/dist/chunks/cli-1.0.9-q3fzs7rd.mjs +59 -0
  208. package/dist/chunks/cli-1.0.9-q3xyfb3x.mjs +2 -0
  209. package/dist/chunks/cli-1.0.9-q6e8xnkz.mjs +2 -0
  210. package/dist/chunks/cli-1.0.9-qb618hw7.mjs +2 -0
  211. package/dist/chunks/cli-1.0.9-qjey3ysx.mjs +3 -0
  212. package/dist/chunks/cli-1.0.9-qpvnvfac.mjs +2 -0
  213. package/dist/chunks/cli-1.0.9-qyfx57wb.mjs +2 -0
  214. package/dist/chunks/cli-1.0.9-r4ysx5t8.mjs +2 -0
  215. package/dist/chunks/cli-1.0.9-rd2hz2r7.mjs +2 -0
  216. package/dist/chunks/cli-1.0.9-rh1x9xts.mjs +2 -0
  217. package/dist/chunks/cli-1.0.9-rhvh1vdg.mjs +39 -0
  218. package/dist/chunks/cli-1.0.9-rjq71gw8.mjs +2 -0
  219. package/dist/chunks/cli-1.0.9-rm8ssvm7.mjs +2 -0
  220. package/dist/chunks/cli-1.0.9-rpw6qq2j.mjs +2 -0
  221. package/dist/chunks/cli-1.0.9-s6nk6s0k.mjs +2 -0
  222. package/dist/chunks/cli-1.0.9-sbbswdzj.mjs +2 -0
  223. package/dist/chunks/cli-1.0.9-sbm5c6f2.mjs +2 -0
  224. package/dist/chunks/cli-1.0.9-sjqe138z.mjs +16 -0
  225. package/dist/chunks/cli-1.0.9-sx5z6m5d.mjs +24 -0
  226. package/dist/chunks/cli-1.0.9-t4qshvc1.mjs +12 -0
  227. package/dist/chunks/cli-1.0.9-t80qhn8j.mjs +8 -0
  228. package/dist/chunks/cli-1.0.9-t8c5khak.mjs +2 -0
  229. package/dist/chunks/cli-1.0.9-tbzbnv01.mjs +2 -0
  230. package/dist/chunks/cli-1.0.9-tcn5dpwj.mjs +6 -0
  231. package/dist/chunks/cli-1.0.9-tcszykvk.mjs +2 -0
  232. package/dist/chunks/cli-1.0.9-th90br16.mjs +2 -0
  233. package/dist/chunks/cli-1.0.9-tkk94r4t.mjs +4 -0
  234. package/dist/chunks/cli-1.0.9-tv64yqec.mjs +2 -0
  235. package/dist/chunks/cli-1.0.9-tzke31bj.mjs +12 -0
  236. package/dist/chunks/cli-1.0.9-v1ymh1ej.mjs +7 -0
  237. package/dist/chunks/cli-1.0.9-v770djrd.mjs +2 -0
  238. package/dist/chunks/cli-1.0.9-vcf21zvy.mjs +2 -0
  239. package/dist/chunks/cli-1.0.9-vhcxraj8.mjs +2 -0
  240. package/dist/chunks/cli-1.0.9-vvwt9bfb.mjs +2 -0
  241. package/dist/chunks/cli-1.0.9-w1yvav1x.mjs +2 -0
  242. package/dist/chunks/cli-1.0.9-w5dyqxqk.mjs +2 -0
  243. package/dist/chunks/cli-1.0.9-wcm9r8rn.mjs +2 -0
  244. package/dist/chunks/cli-1.0.9-wk087awy.mjs +2 -0
  245. package/dist/chunks/cli-1.0.9-wm0q00hf.mjs +3 -0
  246. package/dist/chunks/cli-1.0.9-wny75xk9.mjs +2 -0
  247. package/dist/chunks/cli-1.0.9-x06kapeh.mjs +2 -0
  248. package/dist/chunks/cli-1.0.9-x3vqg6qp.mjs +2 -0
  249. package/dist/chunks/cli-1.0.9-x4t4nqd2.mjs +4 -0
  250. package/dist/chunks/cli-1.0.9-x4tngp24.mjs +5 -0
  251. package/dist/chunks/cli-1.0.9-x8ty0z67.mjs +12 -0
  252. package/dist/chunks/cli-1.0.9-xd6wrh53.mjs +2 -0
  253. package/dist/chunks/cli-1.0.9-xe8dc6qb.mjs +2 -0
  254. package/dist/chunks/cli-1.0.9-xtwh19d1.mjs +1 -0
  255. package/dist/chunks/cli-1.0.9-xx44tx6h.mjs +2 -0
  256. package/dist/chunks/cli-1.0.9-xyzdk3z1.mjs +2 -0
  257. package/dist/chunks/cli-1.0.9-y0zax3d9.mjs +2 -0
  258. package/dist/chunks/cli-1.0.9-y1db6cvh.mjs +2 -0
  259. package/dist/chunks/cli-1.0.9-y7sdjd9n.mjs +2 -0
  260. package/dist/chunks/cli-1.0.9-ymbxfv5d.mjs +6 -0
  261. package/dist/chunks/cli-1.0.9-ympvk0av.mjs +6 -0
  262. package/dist/chunks/cli-1.0.9-z8ywz3b3.mjs +3 -0
  263. package/dist/chunks/cli-1.0.9-z9a1abx1.mjs +15 -0
  264. package/dist/chunks/cli-1.0.9-zd316ka9.mjs +2 -0
  265. package/dist/chunks/cli-1.0.9-zqr8aygv.mjs +2 -0
  266. package/dist/chunks/cli-1.0.9-zrphfr1b.mjs +4 -0
  267. package/dist/chunks/client-1.0.9-6ytq8zpq.mjs +1 -0
  268. package/dist/chunks/color-1.0.9-6fzgjvkk.mjs +1 -0
  269. package/dist/chunks/compact-1.0.9-zezrh8xr.mjs +3 -0
  270. package/dist/chunks/config-1.0.9-wvjbx4ke.mjs +1 -0
  271. package/dist/chunks/config-1.0.9-wvne91f5.mjs +1 -0
  272. package/dist/chunks/constants-1.0.9-2fzrexcb.mjs +1 -0
  273. package/dist/chunks/context-1.0.9-ygv4e0ng.mjs +1 -0
  274. package/dist/chunks/context-noninteractive-1.0.9-jn0d4nj0.mjs +1 -0
  275. package/dist/chunks/conversation-1.0.9-gg4v7nyy.mjs +1 -0
  276. package/dist/chunks/copilotHeaders-1.0.9-eyzv69et.mjs +1 -0
  277. package/dist/chunks/copy-1.0.9-1spbc1fd.mjs +9 -0
  278. package/dist/chunks/cost-1.0.9-axf868g8.mjs +1 -0
  279. package/dist/chunks/createSSHSession-1.0.9-zp88fdrv.mjs +1 -0
  280. package/dist/chunks/createSession-1.0.9-6xv9ygwy.mjs +1 -0
  281. package/dist/chunks/debug-1.0.9-j00wf57e.mjs +1 -0
  282. package/dist/chunks/defaultActionDeps-1.0.9-yzqemm6t.mjs +1446 -0
  283. package/dist/chunks/desktop-1.0.9-zq6w2b8s.mjs +1 -0
  284. package/dist/chunks/detectRepository-1.0.9-mjzbbps4.mjs +1 -0
  285. package/dist/chunks/detection-1.0.9-yjvmg8pn.mjs +1 -0
  286. package/dist/chunks/diff-1.0.9-68dbevx4.mjs +1 -0
  287. package/dist/chunks/doctor-1.0.9-xgwzb4yw.mjs +1 -0
  288. package/dist/chunks/doctorDiagnostic-1.0.9-p8be86qt.mjs +1 -0
  289. package/dist/chunks/earlyInput-1.0.9-a7f6p18j.mjs +1 -0
  290. package/dist/chunks/effort-1.0.9-zv46qr82.mjs +10 -0
  291. package/dist/chunks/engine-1.0.9-zm715gn8.mjs +1 -0
  292. package/dist/chunks/envLessBridgeConfig-1.0.9-pbgxdbt9.mjs +1 -0
  293. package/dist/chunks/envUtils-1.0.9-jvdj5nsn.mjs +1 -0
  294. package/dist/chunks/environmentSelection-1.0.9-32y4kxzx.mjs +1 -0
  295. package/dist/chunks/environments-1.0.9-rapbbhdb.mjs +1 -0
  296. package/dist/chunks/errors-1.0.9-mr00r6m7.mjs +1 -0
  297. package/dist/chunks/exampleCommands-1.0.9-d9kwjybb.mjs +1 -0
  298. package/dist/chunks/execFileNoThrow-1.0.9-17y7nf7n.mjs +1 -0
  299. package/dist/chunks/exit-1.0.9-a8dgmc5m.mjs +1 -0
  300. package/dist/chunks/explorer-1.0.9-rr21y6bg.mjs +1 -0
  301. package/dist/chunks/export-1.0.9-m63465sz.mjs +2 -0
  302. package/dist/chunks/extra-usage-1.0.9-jyvmfa3x.mjs +1 -0
  303. package/dist/chunks/extra-usage-noninteractive-1.0.9-jr4xqktt.mjs +1 -0
  304. package/dist/chunks/fast-1.0.9-944nf8hg.mjs +1 -0
  305. package/dist/chunks/feedback-1.0.9-c6qydbzp.mjs +14 -0
  306. package/dist/chunks/firstPartyEventLogger-1.0.9-25ey9wf6.mjs +1 -0
  307. package/dist/chunks/git-1.0.9-se8gx0p4.mjs +1 -0
  308. package/dist/chunks/githubModelsCredentials-1.0.9-14n5qqvf.mjs +1 -0
  309. package/dist/chunks/goal-1.0.9-v5bwyvtb.mjs +4 -0
  310. package/dist/chunks/grove-1.0.9-twka7z5j.mjs +1 -0
  311. package/dist/chunks/growthbook-1.0.9-mghtxr31.mjs +1 -0
  312. package/dist/chunks/headless-1.0.9-m319gz5s.mjs +2 -0
  313. package/dist/chunks/heapdump-1.0.9-zk05f03w.mjs +6 -0
  314. package/dist/chunks/help-1.0.9-fjdspdd3.mjs +1 -0
  315. package/dist/chunks/hookChains-1.0.9-1p47yp2s.mjs +3 -0
  316. package/dist/chunks/hooks-1.0.9-gsae7evr.mjs +79 -0
  317. package/dist/chunks/hooks-1.0.9-ryra9j7e.mjs +1 -0
  318. package/dist/chunks/ide-1.0.9-5xk8pvc3.mjs +3 -0
  319. package/dist/chunks/image-processor-napi-1.0.9-m8xt10vv.mjs +1 -0
  320. package/dist/chunks/inboundAttachments-1.0.9-tv4b8ex4.mjs +1 -0
  321. package/dist/chunks/index-1.0.9-0mep6p2e.mjs +1 -0
  322. package/dist/chunks/index-1.0.9-41fkayp7.mjs +1 -0
  323. package/dist/chunks/index-1.0.9-4kgb526x.mjs +1 -0
  324. package/dist/chunks/index-1.0.9-6yrhew13.mjs +17 -0
  325. package/dist/chunks/index-1.0.9-90m3hak5.mjs +1 -0
  326. package/dist/chunks/index-1.0.9-93jbt8ts.mjs +1 -0
  327. package/dist/chunks/index-1.0.9-9ryfj4pb.mjs +1 -0
  328. package/dist/chunks/index-1.0.9-cq06g7a0.mjs +1 -0
  329. package/dist/chunks/index-1.0.9-f7brqkkr.mjs +1 -0
  330. package/dist/chunks/index-1.0.9-hvkdhsta.mjs +1 -0
  331. package/dist/chunks/index-1.0.9-jk2fhj8t.mjs +9 -0
  332. package/dist/chunks/index-1.0.9-kcnhr8fy.mjs +2 -0
  333. package/dist/chunks/index-1.0.9-kgymjzxf.mjs +1 -0
  334. package/dist/chunks/index-1.0.9-n9ganzdc.mjs +1 -0
  335. package/dist/chunks/index-1.0.9-p2kz6wm8.mjs +2 -0
  336. package/dist/chunks/index-1.0.9-q3kvfren.mjs +1 -0
  337. package/dist/chunks/index-1.0.9-qvjyptep.mjs +30 -0
  338. package/dist/chunks/index-1.0.9-sy14c383.mjs +1 -0
  339. package/dist/chunks/index-1.0.9-w84j6099.mjs +9 -0
  340. package/dist/chunks/index-1.0.9-xfjgkms3.mjs +1 -0
  341. package/dist/chunks/index-1.0.9-ystczwgk.mjs +1 -0
  342. package/dist/chunks/index-1.0.9-ythrtswh.mjs +5 -0
  343. package/dist/chunks/index-1.0.9-ytvws96r.mjs +1 -0
  344. package/dist/chunks/init-1.0.9-dk6ce4ec.mjs +1 -0
  345. package/dist/chunks/initReplBridge-1.0.9-xyxharkg.mjs +1 -0
  346. package/dist/chunks/ink-1.0.9-sj61qpy1.mjs +1 -0
  347. package/dist/chunks/insights-1.0.9-kc18bxsj.mjs +870 -0
  348. package/dist/chunks/install-1.0.9-41n1cava.mjs +1 -0
  349. package/dist/chunks/install-github-app-1.0.9-d0jrca5q.mjs +149 -0
  350. package/dist/chunks/install-slack-app-1.0.9-sgvf9xhe.mjs +1 -0
  351. package/dist/chunks/instrumentation-1.0.9-k55h305p.mjs +1 -0
  352. package/dist/chunks/interactiveHelpers-1.0.9-edx0pwv2.mjs +1 -0
  353. package/dist/chunks/keybindings-1.0.9-3j7rmqad.mjs +2 -0
  354. package/dist/chunks/knowledge-1.0.9-a0yrjtaw.mjs +2 -0
  355. package/dist/chunks/latestVersionCache-1.0.9-vaxbjn5a.mjs +1 -0
  356. package/dist/chunks/loadAgentsDir-1.0.9-5v5xmfae.mjs +1 -0
  357. package/dist/chunks/loadPluginHooks-1.0.9-jkz1yssz.mjs +1 -0
  358. package/dist/chunks/loadPluginHooks-1.0.9-ymdjzq3r.mjs +1 -0
  359. package/dist/chunks/log-1.0.9-zkpyqa3m.mjs +1 -0
  360. package/dist/chunks/main-1.0.9-h2389xyv.mjs +1 -0
  361. package/dist/chunks/managedEnv-1.0.9-m1nbgm9w.mjs +1 -0
  362. package/dist/chunks/mcp-1.0.9-0pffb151.mjs +4 -0
  363. package/dist/chunks/mcp-1.0.9-7te57n7g.mjs +1 -0
  364. package/dist/chunks/mcp-1.0.9-zx01gh7r.mjs +17 -0
  365. package/dist/chunks/mcpb-1.0.9-01pgh57h.mjs +1 -0
  366. package/dist/chunks/memory-1.0.9-t9n2z13b.mjs +3 -0
  367. package/dist/chunks/model-1.0.9-a1hweteq.mjs +1 -0
  368. package/dist/chunks/model-1.0.9-jpjmt8a2.mjs +2 -0
  369. package/dist/chunks/node-1.0.9-p2k460a4.mjs +12 -0
  370. package/dist/chunks/oauth-1.0.9-zjepvezc.mjs +1 -0
  371. package/dist/chunks/openaiShim-1.0.9-gapf03nh.mjs +14 -0
  372. package/dist/chunks/output-style-1.0.9-ssjrzh6q.mjs +1 -0
  373. package/dist/chunks/package-ZZWOLTXM-1.0.9-z6aewhjx.mjs +1 -0
  374. package/dist/chunks/parseConnectUrl-1.0.9-7gq7343s.mjs +1 -0
  375. package/dist/chunks/parser-1.0.9-pke5bjkh.mjs +1 -0
  376. package/dist/chunks/passes-1.0.9-r3ydzpyv.mjs +1 -0
  377. package/dist/chunks/permissions-1.0.9-97jpkg18.mjs +1 -0
  378. package/dist/chunks/permissions-1.0.9-c4jx0pxn.mjs +3 -0
  379. package/dist/chunks/plan-1.0.9-z3j9hsww.mjs +1 -0
  380. package/dist/chunks/plist-1.0.9-2acqr7kv.mjs +1 -0
  381. package/dist/chunks/plugin-1.0.9-z1m6zzew.mjs +29 -0
  382. package/dist/chunks/pluginStartupCheck-1.0.9-41sskjk2.mjs +1 -0
  383. package/dist/chunks/plugins-1.0.9-6tptm5qm.mjs +9 -0
  384. package/dist/chunks/preActionHook-1.0.9-wecvzns1.mjs +2 -0
  385. package/dist/chunks/print-1.0.9-dqymva6x.mjs +57 -0
  386. package/dist/chunks/privacy-settings-1.0.9-zyecjx4p.mjs +1 -0
  387. package/dist/chunks/process-1.0.9-2w0fkryd.mjs +1 -0
  388. package/dist/chunks/processBashCommand-1.0.9-4s05h1bj.mjs +1 -0
  389. package/dist/chunks/processSlashCommand-1.0.9-5tvxytqm.mjs +9 -0
  390. package/dist/chunks/prompt-1.0.9-nb76g2sv.mjs +1 -0
  391. package/dist/chunks/prompt-1.0.9-va3886b6.mjs +1 -0
  392. package/dist/chunks/prompts-1.0.9-m9dxdech.mjs +1 -0
  393. package/dist/chunks/protocolHandler-1.0.9-xnnv5p87.mjs +13 -0
  394. package/dist/chunks/provider-1.0.9-cvmd8h1d.mjs +2 -0
  395. package/dist/chunks/providerProfiles-1.0.9-9g0pwem4.mjs +1 -0
  396. package/dist/chunks/providerValidation-1.0.9-3rgdk5ee.mjs +6 -0
  397. package/dist/chunks/rate-limit-options-1.0.9-vk9xmrr9.mjs +1 -0
  398. package/dist/chunks/registerSubcommands-1.0.9-5jz3t4qr.mjs +34 -0
  399. package/dist/chunks/registry-1.0.9-9mvkaffy.mjs +1 -0
  400. package/dist/chunks/release-notes-1.0.9-6r7p97mn.mjs +5 -0
  401. package/dist/chunks/reload-plugins-1.0.9-xdhvgqpn.mjs +2 -0
  402. package/dist/chunks/remote-env-1.0.9-9htaxz0y.mjs +1 -0
  403. package/dist/chunks/remoteBridgeCore-1.0.9-xgvn82tp.mjs +1 -0
  404. package/dist/chunks/remoteSession-1.0.9-7s48fkf7.mjs +1 -0
  405. package/dist/chunks/rename-1.0.9-j3rs23m1.mjs +1 -0
  406. package/dist/chunks/replBridgeHandle-1.0.9-f67nzh9x.mjs +1 -0
  407. package/dist/chunks/replLauncher-1.0.9-gxjrsm7t.mjs +1 -0
  408. package/dist/chunks/resume-1.0.9-9f2xh9ad.mjs +2 -0
  409. package/dist/chunks/rewind-1.0.9-2tjbaa5s.mjs +1 -0
  410. package/dist/chunks/rootOptions-1.0.9-s35d4dq8.mjs +1 -0
  411. package/dist/chunks/runWorkflowHeadless-1.0.9-qzevh0jq.mjs +10 -0
  412. package/dist/chunks/sandbox-adapter-1.0.9-7vzjdzm5.mjs +1 -0
  413. package/dist/chunks/sandbox-toggle-1.0.9-q22mn3qe.mjs +1 -0
  414. package/dist/chunks/session-1.0.9-hnswn4q3.mjs +2 -0
  415. package/dist/chunks/sessionDiscovery-1.0.9-ap3h87gt.mjs +1 -0
  416. package/dist/chunks/sessionFileAccessHooks-1.0.9-266mnj7x.mjs +1 -0
  417. package/dist/chunks/sessionStorage-1.0.9-kdgvfddk.mjs +1 -0
  418. package/dist/chunks/settings-1.0.9-1avp22jd.mjs +1 -0
  419. package/dist/chunks/setup-1.0.9-v2ar4w15.mjs +5 -0
  420. package/dist/chunks/sinks-1.0.9-03y6p189.mjs +1 -0
  421. package/dist/chunks/skills-1.0.9-7m3bv7w4.mjs +1 -0
  422. package/dist/chunks/startupProfiler-1.0.9-3pbpjpsx.mjs +1 -0
  423. package/dist/chunks/startupUpdateCheck-1.0.9-r287g8qr.mjs +1 -0
  424. package/dist/chunks/state-1.0.9-5vj2cfb7.mjs +1 -0
  425. package/dist/chunks/stats-1.0.9-5wpymg6m.mjs +6 -0
  426. package/dist/chunks/status-1.0.9-zcea5prt.mjs +1 -0
  427. package/dist/chunks/stickers-1.0.9-01r7j7ce.mjs +1 -0
  428. package/dist/chunks/subprocessEnv-1.0.9-mknwnjve.mjs +1 -0
  429. package/dist/chunks/tasks-1.0.9-cenyj69d.mjs +1 -0
  430. package/dist/chunks/teamHelpers-1.0.9-7hr689j5.mjs +1 -0
  431. package/dist/chunks/teammateModeSnapshot-1.0.9-r6bjthhg.mjs +1 -0
  432. package/dist/chunks/teleport-1.0.9-3a8fh64n.mjs +1 -0
  433. package/dist/chunks/terminalSetup-1.0.9-dbp1dey3.mjs +1 -0
  434. package/dist/chunks/theme-1.0.9-he0pz8e5.mjs +1 -0
  435. package/dist/chunks/thinkback-1.0.9-taf9vg12.mjs +1 -0
  436. package/dist/chunks/thinkback-play-1.0.9-11em8wf4.mjs +1 -0
  437. package/dist/chunks/toolPool-1.0.9-r3vtdta9.mjs +1 -0
  438. package/dist/chunks/toolSearch-1.0.9-kwvr4k8b.mjs +1 -0
  439. package/dist/chunks/tools-1.0.9-2tg8nvhb.mjs +1 -0
  440. package/dist/chunks/trustedDevice-1.0.9-0q7ygrn2.mjs +1 -0
  441. package/dist/chunks/turndown.cjs-1.0.9-579kp1mn.mjs +69 -0
  442. package/dist/chunks/types-1.0.9-8q18d5tt.mjs +1 -0
  443. package/dist/chunks/ultrareviewCommand-1.0.9-9ejdt7py.mjs +4 -0
  444. package/dist/chunks/update-1.0.9-85n1z4v4.mjs +88 -0
  445. package/dist/chunks/upgrade-1.0.9-7q7cawa0.mjs +1 -0
  446. package/dist/chunks/upload-1.0.9-51kq9qt0.mjs +7 -0
  447. package/dist/chunks/upstreamproxy-1.0.9-59ykzeyj.mjs +14 -0
  448. package/dist/chunks/url-handler-napi-1.0.9-x7vgzkpg.mjs +1 -0
  449. package/dist/chunks/usage-1.0.9-z798edp5.mjs +1 -0
  450. package/dist/chunks/util-1.0.9-7kephmmr.mjs +1 -0
  451. package/dist/chunks/utils-1.0.9-ek4v8a00.mjs +1 -0
  452. package/dist/chunks/vim-1.0.9-kj0qj8nh.mjs +1 -0
  453. package/dist/chunks/watchLoop-1.0.9-r1awam6x.mjs +13 -0
  454. package/dist/chunks/watcher-1.0.9-9j8zqhdf.mjs +1 -0
  455. package/dist/chunks/wiki-1.0.9-w9wz311p.mjs +132 -0
  456. package/dist/chunks/workflows-1.0.9-9bwm4jqm.mjs +1 -0
  457. package/dist/chunks/worktree-1.0.9-wnbd6zc9.mjs +1 -0
  458. package/dist/chunks/worktreeModeEnabled-1.0.9-wjt137fb.mjs +1 -0
  459. package/dist/chunks/wrapper-1.0.9-dykv81xe.mjs +7 -0
  460. package/dist/cli.mjs +2 -2
  461. package/dist/help-workflow.txt +12 -0
  462. package/dist/help.txt +1 -0
  463. package/install.cjs +17 -1
  464. package/package.json +9 -9
  465. package/dist/chunks/AgentTool-1.0.7-syk5wnkb.mjs +0 -1
  466. package/dist/chunks/App-1.0.7-9xht4gsa.mjs +0 -1
  467. package/dist/chunks/ApproveApiKey-1.0.7-dnv7dmn7.mjs +0 -1
  468. package/dist/chunks/AssistantSessionChooser-1.0.7-q24ws7x8.mjs +0 -1
  469. package/dist/chunks/AutoModeOptInDialog-1.0.7-e3kma94j.mjs +0 -1
  470. package/dist/chunks/BypassPermissionsModeDialog-1.0.7-2m1y9b7f.mjs +0 -1
  471. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.7-1gpcb873.mjs +0 -1
  472. package/dist/chunks/ConsoleOAuthFlow-1.0.7-pyrnmhtt.mjs +0 -1
  473. package/dist/chunks/DiffDialog-1.0.7-whkynyby.mjs +0 -7
  474. package/dist/chunks/Doctor-1.0.7-3yedapcw.mjs +0 -1
  475. package/dist/chunks/ExplorerDialog-1.0.7-99ytgtp8.mjs +0 -6
  476. package/dist/chunks/Grove-1.0.7-c6wygjxb.mjs +0 -1
  477. package/dist/chunks/ITermBackend-1.0.7-a8a42yx1.mjs +0 -1
  478. package/dist/chunks/InvalidConfigDialog-1.0.7-0e1f33ss.mjs +0 -1
  479. package/dist/chunks/InvalidSettingsDialog-1.0.7-141f7djg.mjs +0 -1
  480. package/dist/chunks/MigrationDialog-1.0.7-scbcqde5.mjs +0 -1
  481. package/dist/chunks/Onboarding-1.0.7-9f7rpy9p.mjs +0 -1
  482. package/dist/chunks/ProviderManager-1.0.7-6mjnccee.mjs +0 -1
  483. package/dist/chunks/REPL-1.0.7-3xhews8d.mjs +0 -1
  484. package/dist/chunks/ResumeConversation-1.0.7-qq2sfpfr.mjs +0 -1
  485. package/dist/chunks/SnapshotUpdateDialog-1.0.7-x9djv2x5.mjs +0 -1
  486. package/dist/chunks/TeleportProgress-1.0.7-f6caprdb.mjs +0 -1
  487. package/dist/chunks/TeleportRepoMismatchDialog-1.0.7-b511561j.mjs +0 -1
  488. package/dist/chunks/TeleportResumeWrapper-1.0.7-9twx384a.mjs +0 -1
  489. package/dist/chunks/TmuxBackend-1.0.7-x3j2hxpn.mjs +0 -9
  490. package/dist/chunks/ToolSearchTool-1.0.7-1y7h6yxr.mjs +0 -1
  491. package/dist/chunks/TrustDialog-1.0.7-na359dm9.mjs +0 -1
  492. package/dist/chunks/activeProvider-1.0.7-2vx6krky.mjs +0 -1
  493. package/dist/chunks/add-dir-1.0.7-r9eb0fmb.mjs +0 -1
  494. package/dist/chunks/agentTypes-1.0.7-v46w2p6e.mjs +0 -1
  495. package/dist/chunks/agents-1.0.7-ekjscjc4.mjs +0 -3
  496. package/dist/chunks/agents-1.0.7-v22jz68n.mjs +0 -110
  497. package/dist/chunks/api-1.0.7-v520kz7p.mjs +0 -1
  498. package/dist/chunks/asciicast-1.0.7-r61pgxmk.mjs +0 -1
  499. package/dist/chunks/assistant-1.0.7-c12zzeyg.mjs +0 -1
  500. package/dist/chunks/auth-1.0.7-gv0th62c.mjs +0 -1
  501. package/dist/chunks/auth-1.0.7-y9sxvs6e.mjs +0 -1
  502. package/dist/chunks/autoMode-1.0.7-yq0m3sf6.mjs +0 -48
  503. package/dist/chunks/autoUpdater-1.0.7-6fqzjxwg.mjs +0 -1
  504. package/dist/chunks/backgroundHousekeeping-1.0.7-7mzhb52b.mjs +0 -1
  505. package/dist/chunks/branch-1.0.7-66ms82bv.mjs +0 -4
  506. package/dist/chunks/bridge-1.0.7-cd3w20b9.mjs +0 -2
  507. package/dist/chunks/bridgeConfig-1.0.7-wztmwmxc.mjs +0 -1
  508. package/dist/chunks/bridgeEnabled-1.0.7-046e65f0.mjs +0 -1
  509. package/dist/chunks/bridgeMain-1.0.7-knt8h92j.mjs +0 -88
  510. package/dist/chunks/bridgePointer-1.0.7-v2crbecf.mjs +0 -1
  511. package/dist/chunks/btw-1.0.7-eg973xg5.mjs +0 -1
  512. package/dist/chunks/buddy-1.0.7-ypvr18ck.mjs +0 -3
  513. package/dist/chunks/cacache-1.0.7-0tzh2dcw.mjs +0 -1
  514. package/dist/chunks/cache-probe-1.0.7-hhfr94gj.mjs +0 -21
  515. package/dist/chunks/cacheStats-1.0.7-51t2bh05.mjs +0 -4
  516. package/dist/chunks/caches-1.0.7-mvqghhkx.mjs +0 -1
  517. package/dist/chunks/claudeDesktop-1.0.7-1mrhcxq6.mjs +0 -1
  518. package/dist/chunks/claudemd-1.0.7-kgynnx5a.mjs +0 -1
  519. package/dist/chunks/clear-1.0.7-08jf28zt.mjs +0 -1
  520. package/dist/chunks/clearTerminal-1.0.7-z4gkskcj.mjs +0 -1
  521. package/dist/chunks/cli-1.0.7-01cbaw74.mjs +0 -2
  522. package/dist/chunks/cli-1.0.7-05enwpnp.mjs +0 -2
  523. package/dist/chunks/cli-1.0.7-073ekpkk.mjs +0 -21
  524. package/dist/chunks/cli-1.0.7-0dmnsy4c.mjs +0 -2
  525. package/dist/chunks/cli-1.0.7-0qbp0ac0.mjs +0 -17
  526. package/dist/chunks/cli-1.0.7-15qvkn0q.mjs +0 -15
  527. package/dist/chunks/cli-1.0.7-16wdg8r0.mjs +0 -18
  528. package/dist/chunks/cli-1.0.7-1fwxyw8s.mjs +0 -2
  529. package/dist/chunks/cli-1.0.7-1j68v2d8.mjs +0 -3
  530. package/dist/chunks/cli-1.0.7-1mkaw3aw.mjs +0 -2
  531. package/dist/chunks/cli-1.0.7-1r1y3a1c.mjs +0 -2
  532. package/dist/chunks/cli-1.0.7-1rw3xdy0.mjs +0 -58
  533. package/dist/chunks/cli-1.0.7-1s12ckef.mjs +0 -2
  534. package/dist/chunks/cli-1.0.7-1sgef4sw.mjs +0 -2
  535. package/dist/chunks/cli-1.0.7-1ty38mre.mjs +0 -2
  536. package/dist/chunks/cli-1.0.7-1xe7m9s1.mjs +0 -4
  537. package/dist/chunks/cli-1.0.7-1y8xdp9n.mjs +0 -2
  538. package/dist/chunks/cli-1.0.7-2438cvr1.mjs +0 -3
  539. package/dist/chunks/cli-1.0.7-2cajdt14.mjs +0 -2
  540. package/dist/chunks/cli-1.0.7-2csh6jt3.mjs +0 -2
  541. package/dist/chunks/cli-1.0.7-2k1bt916.mjs +0 -2
  542. package/dist/chunks/cli-1.0.7-2pyjzmpq.mjs +0 -2
  543. package/dist/chunks/cli-1.0.7-2wm3s497.mjs +0 -2
  544. package/dist/chunks/cli-1.0.7-2xw882yk.mjs +0 -2
  545. package/dist/chunks/cli-1.0.7-39nnxy0p.mjs +0 -2
  546. package/dist/chunks/cli-1.0.7-3arv8y4s.mjs +0 -12
  547. package/dist/chunks/cli-1.0.7-3fx5xqzq.mjs +0 -2
  548. package/dist/chunks/cli-1.0.7-3ke0fbeq.mjs +0 -6
  549. package/dist/chunks/cli-1.0.7-3kmf6s21.mjs +0 -67
  550. package/dist/chunks/cli-1.0.7-3p608q44.mjs +0 -2
  551. package/dist/chunks/cli-1.0.7-3pqhf5bj.mjs +0 -4
  552. package/dist/chunks/cli-1.0.7-3qnpcgyc.mjs +0 -2
  553. package/dist/chunks/cli-1.0.7-3s41c41h.mjs +0 -20
  554. package/dist/chunks/cli-1.0.7-3s4ccas2.mjs +0 -2
  555. package/dist/chunks/cli-1.0.7-3xrc45nn.mjs +0 -2
  556. package/dist/chunks/cli-1.0.7-3z1z90gf.mjs +0 -4
  557. package/dist/chunks/cli-1.0.7-41jm6paw.mjs +0 -2
  558. package/dist/chunks/cli-1.0.7-45px4q2q.mjs +0 -12
  559. package/dist/chunks/cli-1.0.7-4a67zfe7.mjs +0 -2
  560. package/dist/chunks/cli-1.0.7-4qwjg996.mjs +0 -2
  561. package/dist/chunks/cli-1.0.7-538yatrk.mjs +0 -2
  562. package/dist/chunks/cli-1.0.7-5f0y2nxn.mjs +0 -2
  563. package/dist/chunks/cli-1.0.7-5h2vgm7b.mjs +0 -2
  564. package/dist/chunks/cli-1.0.7-5kc9g0m9.mjs +0 -3
  565. package/dist/chunks/cli-1.0.7-5qss5m61.mjs +0 -2
  566. package/dist/chunks/cli-1.0.7-5rxjz9r1.mjs +0 -2
  567. package/dist/chunks/cli-1.0.7-65xw81pn.mjs +0 -7
  568. package/dist/chunks/cli-1.0.7-67z7m1zx.mjs +0 -15
  569. package/dist/chunks/cli-1.0.7-6ncp8ban.mjs +0 -2
  570. package/dist/chunks/cli-1.0.7-6r3vkkzw.mjs +0 -2
  571. package/dist/chunks/cli-1.0.7-6rt1agkh.mjs +0 -2
  572. package/dist/chunks/cli-1.0.7-6wm7jzey.mjs +0 -2
  573. package/dist/chunks/cli-1.0.7-6yr2e385.mjs +0 -2
  574. package/dist/chunks/cli-1.0.7-73e5dz55.mjs +0 -2
  575. package/dist/chunks/cli-1.0.7-757ex32c.mjs +0 -199
  576. package/dist/chunks/cli-1.0.7-7egbzjdg.mjs +0 -12
  577. package/dist/chunks/cli-1.0.7-7gmv86pv.mjs +0 -25
  578. package/dist/chunks/cli-1.0.7-7qm9503t.mjs +0 -4
  579. package/dist/chunks/cli-1.0.7-7xhry9cz.mjs +0 -8
  580. package/dist/chunks/cli-1.0.7-7yrvwwdb.mjs +0 -2
  581. package/dist/chunks/cli-1.0.7-84dx5y2m.mjs +0 -2
  582. package/dist/chunks/cli-1.0.7-8fj15s8a.mjs +0 -2
  583. package/dist/chunks/cli-1.0.7-8hepstgz.mjs +0 -2
  584. package/dist/chunks/cli-1.0.7-8pfh7aha.mjs +0 -2
  585. package/dist/chunks/cli-1.0.7-96mb1gmj.mjs +0 -2
  586. package/dist/chunks/cli-1.0.7-96qpk0ct.mjs +0 -2
  587. package/dist/chunks/cli-1.0.7-97fqbfff.mjs +0 -2
  588. package/dist/chunks/cli-1.0.7-9p7hfa00.mjs +0 -2
  589. package/dist/chunks/cli-1.0.7-9pc6jb5f.mjs +0 -2
  590. package/dist/chunks/cli-1.0.7-9ws1j17m.mjs +0 -2
  591. package/dist/chunks/cli-1.0.7-a32vv8nk.mjs +0 -2
  592. package/dist/chunks/cli-1.0.7-a78rj0kd.mjs +0 -9
  593. package/dist/chunks/cli-1.0.7-a7fahcda.mjs +0 -2
  594. package/dist/chunks/cli-1.0.7-a808xdj3.mjs +0 -3
  595. package/dist/chunks/cli-1.0.7-aa7vfbxa.mjs +0 -2
  596. package/dist/chunks/cli-1.0.7-af1m1akw.mjs +0 -2
  597. package/dist/chunks/cli-1.0.7-akbc4ch3.mjs +0 -2
  598. package/dist/chunks/cli-1.0.7-an2jwvew.mjs +0 -9
  599. package/dist/chunks/cli-1.0.7-anrcmph3.mjs +0 -3
  600. package/dist/chunks/cli-1.0.7-av93xde0.mjs +0 -2
  601. package/dist/chunks/cli-1.0.7-b16t7f1a.mjs +0 -2
  602. package/dist/chunks/cli-1.0.7-b2pf78c9.mjs +0 -2
  603. package/dist/chunks/cli-1.0.7-b778v1dh.mjs +0 -2
  604. package/dist/chunks/cli-1.0.7-baqj15a8.mjs +0 -2
  605. package/dist/chunks/cli-1.0.7-bc3sxk1j.mjs +0 -26
  606. package/dist/chunks/cli-1.0.7-bfe6f9c6.mjs +0 -2
  607. package/dist/chunks/cli-1.0.7-bkm2xek7.mjs +0 -2
  608. package/dist/chunks/cli-1.0.7-bn0sb2w7.mjs +0 -2
  609. package/dist/chunks/cli-1.0.7-c8kxp6h0.mjs +0 -2
  610. package/dist/chunks/cli-1.0.7-cb42m3ff.mjs +0 -2
  611. package/dist/chunks/cli-1.0.7-cf47wta1.mjs +0 -2
  612. package/dist/chunks/cli-1.0.7-cs7epg9a.mjs +0 -2
  613. package/dist/chunks/cli-1.0.7-d1zc020r.mjs +0 -133
  614. package/dist/chunks/cli-1.0.7-d3txxwh5.mjs +0 -2
  615. package/dist/chunks/cli-1.0.7-dbyr517p.mjs +0 -4
  616. package/dist/chunks/cli-1.0.7-ddhhvx60.mjs +0 -2
  617. package/dist/chunks/cli-1.0.7-df9p9tj8.mjs +0 -24
  618. package/dist/chunks/cli-1.0.7-dhdv7vtc.mjs +0 -50
  619. package/dist/chunks/cli-1.0.7-dnn18rgf.mjs +0 -2
  620. package/dist/chunks/cli-1.0.7-dr2dca7n.mjs +0 -2
  621. package/dist/chunks/cli-1.0.7-f43w1f9g.mjs +0 -42
  622. package/dist/chunks/cli-1.0.7-f6490vr3.mjs +0 -2
  623. package/dist/chunks/cli-1.0.7-fcfrsawp.mjs +0 -2
  624. package/dist/chunks/cli-1.0.7-fckzct0z.mjs +0 -2
  625. package/dist/chunks/cli-1.0.7-ff6dfmp3.mjs +0 -2
  626. package/dist/chunks/cli-1.0.7-fmdws8pg.mjs +0 -2
  627. package/dist/chunks/cli-1.0.7-fvr9xx0m.mjs +0 -2
  628. package/dist/chunks/cli-1.0.7-g1hrx2r5.mjs +0 -18
  629. package/dist/chunks/cli-1.0.7-g42rsvs5.mjs +0 -2
  630. package/dist/chunks/cli-1.0.7-g6d9snde.mjs +0 -3
  631. package/dist/chunks/cli-1.0.7-ga6hk3n2.mjs +0 -3
  632. package/dist/chunks/cli-1.0.7-ghxmw318.mjs +0 -2
  633. package/dist/chunks/cli-1.0.7-gj1806bk.mjs +0 -2
  634. package/dist/chunks/cli-1.0.7-gk53nva2.mjs +0 -2
  635. package/dist/chunks/cli-1.0.7-gnwjbdch.mjs +0 -2
  636. package/dist/chunks/cli-1.0.7-gp71tfwe.mjs +0 -2
  637. package/dist/chunks/cli-1.0.7-gq9fp39n.mjs +0 -2
  638. package/dist/chunks/cli-1.0.7-gqf40mqk.mjs +0 -24
  639. package/dist/chunks/cli-1.0.7-h1g9rk4g.mjs +0 -4
  640. package/dist/chunks/cli-1.0.7-hd6xn6rt.mjs +0 -2
  641. package/dist/chunks/cli-1.0.7-hfcehnx9.mjs +0 -3
  642. package/dist/chunks/cli-1.0.7-hw8dxgj2.mjs +0 -2
  643. package/dist/chunks/cli-1.0.7-j31m0f1y.mjs +0 -2
  644. package/dist/chunks/cli-1.0.7-j6hxvf4r.mjs +0 -2
  645. package/dist/chunks/cli-1.0.7-j6ndkfy3.mjs +0 -2
  646. package/dist/chunks/cli-1.0.7-jn7nay2r.mjs +0 -2
  647. package/dist/chunks/cli-1.0.7-jz4phmb3.mjs +0 -3
  648. package/dist/chunks/cli-1.0.7-k38j6sgc.mjs +0 -2
  649. package/dist/chunks/cli-1.0.7-k3nnbdbv.mjs +0 -2
  650. package/dist/chunks/cli-1.0.7-kegj01e5.mjs +0 -133
  651. package/dist/chunks/cli-1.0.7-kf237s65.mjs +0 -2
  652. package/dist/chunks/cli-1.0.7-kgbv7bt5.mjs +0 -17
  653. package/dist/chunks/cli-1.0.7-khd0yqhk.mjs +0 -2
  654. package/dist/chunks/cli-1.0.7-m17d94h8.mjs +0 -2
  655. package/dist/chunks/cli-1.0.7-mcmpb4cd.mjs +0 -2
  656. package/dist/chunks/cli-1.0.7-mv7ptsre.mjs +0 -2
  657. package/dist/chunks/cli-1.0.7-mwj9f8rw.mjs +0 -59
  658. package/dist/chunks/cli-1.0.7-mznh91ce.mjs +0 -2
  659. package/dist/chunks/cli-1.0.7-n5hf2vsh.mjs +0 -2
  660. package/dist/chunks/cli-1.0.7-na7ksfyj.mjs +0 -2
  661. package/dist/chunks/cli-1.0.7-nhg85avf.mjs +0 -2
  662. package/dist/chunks/cli-1.0.7-nnd4za11.mjs +0 -3
  663. package/dist/chunks/cli-1.0.7-p4p38dky.mjs +0 -3
  664. package/dist/chunks/cli-1.0.7-p5setvdk.mjs +0 -2
  665. package/dist/chunks/cli-1.0.7-ph9qjcjb.mjs +0 -2
  666. package/dist/chunks/cli-1.0.7-pscxy55m.mjs +0 -3
  667. package/dist/chunks/cli-1.0.7-pxmf9kyf.mjs +0 -2
  668. package/dist/chunks/cli-1.0.7-pyacw9kn.mjs +0 -5
  669. package/dist/chunks/cli-1.0.7-q3ezj6q3.mjs +0 -2
  670. package/dist/chunks/cli-1.0.7-q7w0ex1x.mjs +0 -2
  671. package/dist/chunks/cli-1.0.7-qdtt526e.mjs +0 -2
  672. package/dist/chunks/cli-1.0.7-qjtqaam0.mjs +0 -2
  673. package/dist/chunks/cli-1.0.7-qknq8k3p.mjs +0 -2
  674. package/dist/chunks/cli-1.0.7-qmm35cv2.mjs +0 -39
  675. package/dist/chunks/cli-1.0.7-qxjpkptr.mjs +0 -2
  676. package/dist/chunks/cli-1.0.7-r4h75bn4.mjs +0 -2
  677. package/dist/chunks/cli-1.0.7-rbrr75z2.mjs +0 -2
  678. package/dist/chunks/cli-1.0.7-rz8h7nks.mjs +0 -2
  679. package/dist/chunks/cli-1.0.7-s11nkveb.mjs +0 -24
  680. package/dist/chunks/cli-1.0.7-s27f8y4p.mjs +0 -2
  681. package/dist/chunks/cli-1.0.7-s5mhxbhn.mjs +0 -5476
  682. package/dist/chunks/cli-1.0.7-s6jjnyxd.mjs +0 -2
  683. package/dist/chunks/cli-1.0.7-s8e8tq3y.mjs +0 -2
  684. package/dist/chunks/cli-1.0.7-sjpx2md1.mjs +0 -2
  685. package/dist/chunks/cli-1.0.7-skm59maw.mjs +0 -2
  686. package/dist/chunks/cli-1.0.7-sv4vj25b.mjs +0 -2
  687. package/dist/chunks/cli-1.0.7-t8m8vafg.mjs +0 -4
  688. package/dist/chunks/cli-1.0.7-tf8b1vhx.mjs +0 -2
  689. package/dist/chunks/cli-1.0.7-tvz0kwb6.mjs +0 -25
  690. package/dist/chunks/cli-1.0.7-txhggtd1.mjs +0 -16
  691. package/dist/chunks/cli-1.0.7-tz22r50p.mjs +0 -2
  692. package/dist/chunks/cli-1.0.7-vcsdnmc0.mjs +0 -2
  693. package/dist/chunks/cli-1.0.7-veqj11zy.mjs +0 -3
  694. package/dist/chunks/cli-1.0.7-vjgedfc4.mjs +0 -2
  695. package/dist/chunks/cli-1.0.7-vtd2sbnq.mjs +0 -3
  696. package/dist/chunks/cli-1.0.7-vw4n13wr.mjs +0 -2
  697. package/dist/chunks/cli-1.0.7-vx0rcgfm.mjs +0 -2
  698. package/dist/chunks/cli-1.0.7-w3g8c9m3.mjs +0 -18
  699. package/dist/chunks/cli-1.0.7-wahp9jjm.mjs +0 -5
  700. package/dist/chunks/cli-1.0.7-wc28nq81.mjs +0 -6
  701. package/dist/chunks/cli-1.0.7-wc4y0k3e.mjs +0 -12
  702. package/dist/chunks/cli-1.0.7-wgt5ay2x.mjs +0 -6
  703. package/dist/chunks/cli-1.0.7-wk9hs648.mjs +0 -2
  704. package/dist/chunks/cli-1.0.7-wmrv4paj.mjs +0 -45
  705. package/dist/chunks/cli-1.0.7-wqrgw4kw.mjs +0 -2
  706. package/dist/chunks/cli-1.0.7-ws7404wd.mjs +0 -2
  707. package/dist/chunks/cli-1.0.7-wwy64zs8.mjs +0 -4
  708. package/dist/chunks/cli-1.0.7-xdt2g9p7.mjs +0 -2
  709. package/dist/chunks/cli-1.0.7-xga48xv7.mjs +0 -2
  710. package/dist/chunks/cli-1.0.7-xh0afj9p.mjs +0 -2
  711. package/dist/chunks/cli-1.0.7-xhb3g1xh.mjs +0 -2
  712. package/dist/chunks/cli-1.0.7-xtj9j6ha.mjs +0 -15
  713. package/dist/chunks/cli-1.0.7-xvhkprcw.mjs +0 -2
  714. package/dist/chunks/cli-1.0.7-xxa9e3we.mjs +0 -4
  715. package/dist/chunks/cli-1.0.7-y8sq6jh3.mjs +0 -4
  716. package/dist/chunks/cli-1.0.7-y94dd4yd.mjs +0 -2
  717. package/dist/chunks/cli-1.0.7-yatztvfp.mjs +0 -2
  718. package/dist/chunks/cli-1.0.7-yb9sxq0k.mjs +0 -2
  719. package/dist/chunks/cli-1.0.7-ybcht1kp.mjs +0 -2
  720. package/dist/chunks/cli-1.0.7-yc90byps.mjs +0 -34
  721. package/dist/chunks/cli-1.0.7-yyqg2waz.mjs +0 -2
  722. package/dist/chunks/cli-1.0.7-z53gtmpk.mjs +0 -6
  723. package/dist/chunks/cli-1.0.7-z5vgrn57.mjs +0 -2
  724. package/dist/chunks/cli-1.0.7-z9fvy0d8.mjs +0 -2
  725. package/dist/chunks/cli-1.0.7-zjapdrt8.mjs +0 -6
  726. package/dist/chunks/cli-1.0.7-zmqm6p6t.mjs +0 -2
  727. package/dist/chunks/cli-1.0.7-zsbst1mq.mjs +0 -1
  728. package/dist/chunks/cli-1.0.7-zwr4ga8c.mjs +0 -2
  729. package/dist/chunks/client-1.0.7-n8414pey.mjs +0 -1
  730. package/dist/chunks/color-1.0.7-99fmrmyq.mjs +0 -1
  731. package/dist/chunks/compact-1.0.7-91sa41px.mjs +0 -3
  732. package/dist/chunks/config-1.0.7-bjt981nd.mjs +0 -1
  733. package/dist/chunks/config-1.0.7-vfbd76cq.mjs +0 -1
  734. package/dist/chunks/constants-1.0.7-fj97y7dq.mjs +0 -1
  735. package/dist/chunks/context-1.0.7-qmktq4pg.mjs +0 -1
  736. package/dist/chunks/context-noninteractive-1.0.7-w9828p3h.mjs +0 -1
  737. package/dist/chunks/conversation-1.0.7-d5q8rrwx.mjs +0 -1
  738. package/dist/chunks/copilotHeaders-1.0.7-mhsm6qwp.mjs +0 -1
  739. package/dist/chunks/copy-1.0.7-hznd9dqf.mjs +0 -9
  740. package/dist/chunks/cost-1.0.7-hbpz16jx.mjs +0 -1
  741. package/dist/chunks/createSSHSession-1.0.7-5s4sy0qv.mjs +0 -1
  742. package/dist/chunks/createSession-1.0.7-mha5sscw.mjs +0 -1
  743. package/dist/chunks/debug-1.0.7-6kcgjwgp.mjs +0 -1
  744. package/dist/chunks/defaultActionDeps-1.0.7-5x2a3qnr.mjs +0 -1446
  745. package/dist/chunks/desktop-1.0.7-37m19pef.mjs +0 -1
  746. package/dist/chunks/detectRepository-1.0.7-3ffa7wfs.mjs +0 -1
  747. package/dist/chunks/detection-1.0.7-bcwz3kz9.mjs +0 -1
  748. package/dist/chunks/diff-1.0.7-60vwaapm.mjs +0 -1
  749. package/dist/chunks/doctor-1.0.7-bc3r1p04.mjs +0 -1
  750. package/dist/chunks/doctorDiagnostic-1.0.7-qe18rzqr.mjs +0 -1
  751. package/dist/chunks/earlyInput-1.0.7-51cxad4b.mjs +0 -1
  752. package/dist/chunks/effort-1.0.7-mckjwtdk.mjs +0 -10
  753. package/dist/chunks/engine-1.0.7-1kqhk6mc.mjs +0 -1
  754. package/dist/chunks/envLessBridgeConfig-1.0.7-hbpge4a8.mjs +0 -1
  755. package/dist/chunks/envUtils-1.0.7-m63cpkg3.mjs +0 -1
  756. package/dist/chunks/environmentSelection-1.0.7-kg2xnt7t.mjs +0 -1
  757. package/dist/chunks/environments-1.0.7-jcrcam7e.mjs +0 -1
  758. package/dist/chunks/errors-1.0.7-vhtw6kg6.mjs +0 -1
  759. package/dist/chunks/exampleCommands-1.0.7-f254y3tf.mjs +0 -1
  760. package/dist/chunks/exit-1.0.7-f5s73g22.mjs +0 -1
  761. package/dist/chunks/explorer-1.0.7-yjpphptq.mjs +0 -1
  762. package/dist/chunks/export-1.0.7-7kn40p9m.mjs +0 -2
  763. package/dist/chunks/extra-usage-1.0.7-xwb7xfe4.mjs +0 -1
  764. package/dist/chunks/extra-usage-noninteractive-1.0.7-0dpsjjh0.mjs +0 -1
  765. package/dist/chunks/fast-1.0.7-9eg9g1mf.mjs +0 -1
  766. package/dist/chunks/feedback-1.0.7-kkw4fdj8.mjs +0 -14
  767. package/dist/chunks/firstPartyEventLogger-1.0.7-yaekw6be.mjs +0 -1
  768. package/dist/chunks/git-1.0.7-t3824xkx.mjs +0 -1
  769. package/dist/chunks/githubModelsCredentials-1.0.7-m79e1ga1.mjs +0 -1
  770. package/dist/chunks/goal-1.0.7-jkmcdmm1.mjs +0 -4
  771. package/dist/chunks/grove-1.0.7-th5kn0n5.mjs +0 -1
  772. package/dist/chunks/growthbook-1.0.7-hnr2hv9t.mjs +0 -1
  773. package/dist/chunks/headless-1.0.7-2w17kqac.mjs +0 -2
  774. package/dist/chunks/heapdump-1.0.7-1qvsds14.mjs +0 -6
  775. package/dist/chunks/help-1.0.7-33ennxwb.mjs +0 -1
  776. package/dist/chunks/hookChains-1.0.7-8gt4r1qg.mjs +0 -3
  777. package/dist/chunks/hooks-1.0.7-970fsrks.mjs +0 -1
  778. package/dist/chunks/hooks-1.0.7-xyrevnk8.mjs +0 -79
  779. package/dist/chunks/ide-1.0.7-knfed9xe.mjs +0 -3
  780. package/dist/chunks/image-processor-napi-1.0.7-5c1fwxwf.mjs +0 -1
  781. package/dist/chunks/inboundAttachments-1.0.7-5p98j8m2.mjs +0 -1
  782. package/dist/chunks/index-1.0.7-0ce2q3me.mjs +0 -17
  783. package/dist/chunks/index-1.0.7-3tbze0ns.mjs +0 -1
  784. package/dist/chunks/index-1.0.7-3z09rqyx.mjs +0 -1
  785. package/dist/chunks/index-1.0.7-4g6596jt.mjs +0 -1
  786. package/dist/chunks/index-1.0.7-59cvfmen.mjs +0 -1
  787. package/dist/chunks/index-1.0.7-63vq5fws.mjs +0 -1
  788. package/dist/chunks/index-1.0.7-6wcbk6ve.mjs +0 -5
  789. package/dist/chunks/index-1.0.7-84wm5p43.mjs +0 -1
  790. package/dist/chunks/index-1.0.7-c0jfw97a.mjs +0 -9
  791. package/dist/chunks/index-1.0.7-dds9fcry.mjs +0 -1
  792. package/dist/chunks/index-1.0.7-ecq1qwpq.mjs +0 -1
  793. package/dist/chunks/index-1.0.7-gm6exxqq.mjs +0 -30
  794. package/dist/chunks/index-1.0.7-jh8savg9.mjs +0 -9
  795. package/dist/chunks/index-1.0.7-k8k38nbt.mjs +0 -1
  796. package/dist/chunks/index-1.0.7-kyyfrf6j.mjs +0 -1
  797. package/dist/chunks/index-1.0.7-m23r2bmv.mjs +0 -1
  798. package/dist/chunks/index-1.0.7-mmm10tac.mjs +0 -2
  799. package/dist/chunks/index-1.0.7-p82yhqst.mjs +0 -1
  800. package/dist/chunks/index-1.0.7-vyafwe23.mjs +0 -1
  801. package/dist/chunks/index-1.0.7-wazwyjm7.mjs +0 -1
  802. package/dist/chunks/index-1.0.7-wd33rv5q.mjs +0 -1
  803. package/dist/chunks/index-1.0.7-yhxty6kz.mjs +0 -1
  804. package/dist/chunks/index-1.0.7-zp3vs07b.mjs +0 -2
  805. package/dist/chunks/init-1.0.7-y29e6mb3.mjs +0 -1
  806. package/dist/chunks/initReplBridge-1.0.7-14rmpkte.mjs +0 -1
  807. package/dist/chunks/ink-1.0.7-gf3qdamf.mjs +0 -1
  808. package/dist/chunks/insights-1.0.7-hd6460mk.mjs +0 -870
  809. package/dist/chunks/install-1.0.7-antesxaa.mjs +0 -1
  810. package/dist/chunks/install-github-app-1.0.7-0asc4ajr.mjs +0 -149
  811. package/dist/chunks/install-slack-app-1.0.7-zwna6gq3.mjs +0 -1
  812. package/dist/chunks/instrumentation-1.0.7-wvv85h9t.mjs +0 -1
  813. package/dist/chunks/interactiveHelpers-1.0.7-pkmbfs0b.mjs +0 -1
  814. package/dist/chunks/keybindings-1.0.7-emp8m2vr.mjs +0 -2
  815. package/dist/chunks/knowledge-1.0.7-6hv6538k.mjs +0 -2
  816. package/dist/chunks/latestVersionCache-1.0.7-t1gtsxte.mjs +0 -1
  817. package/dist/chunks/loadAgentsDir-1.0.7-j5mq4f5x.mjs +0 -1
  818. package/dist/chunks/loadPluginHooks-1.0.7-6tbrq15z.mjs +0 -1
  819. package/dist/chunks/loadPluginHooks-1.0.7-k2zgqtye.mjs +0 -1
  820. package/dist/chunks/log-1.0.7-pmgzzdy7.mjs +0 -1
  821. package/dist/chunks/main-1.0.7-esamqda3.mjs +0 -1
  822. package/dist/chunks/managedEnv-1.0.7-6mz7vwyt.mjs +0 -1
  823. package/dist/chunks/mcp-1.0.7-d4941tnp.mjs +0 -17
  824. package/dist/chunks/mcp-1.0.7-hjjdsn53.mjs +0 -4
  825. package/dist/chunks/mcp-1.0.7-skfyfspe.mjs +0 -1
  826. package/dist/chunks/mcpb-1.0.7-twwnd1ct.mjs +0 -1
  827. package/dist/chunks/memory-1.0.7-0r8q4re7.mjs +0 -3
  828. package/dist/chunks/model-1.0.7-d82p81ne.mjs +0 -2
  829. package/dist/chunks/model-1.0.7-xt8c58fg.mjs +0 -1
  830. package/dist/chunks/node-1.0.7-5h6w60zy.mjs +0 -12
  831. package/dist/chunks/oauth-1.0.7-gveatjqe.mjs +0 -1
  832. package/dist/chunks/openaiShim-1.0.7-q8aqfz40.mjs +0 -14
  833. package/dist/chunks/output-style-1.0.7-xnamzpre.mjs +0 -1
  834. package/dist/chunks/package-ZZWOLTXM-1.0.7-y8bvx3y5.mjs +0 -1
  835. package/dist/chunks/parseConnectUrl-1.0.7-we9ebc0h.mjs +0 -1
  836. package/dist/chunks/parser-1.0.7-20zgf2mq.mjs +0 -1
  837. package/dist/chunks/passes-1.0.7-gcnj20c4.mjs +0 -1
  838. package/dist/chunks/permissions-1.0.7-43y27rj9.mjs +0 -3
  839. package/dist/chunks/permissions-1.0.7-kw8fw9gd.mjs +0 -1
  840. package/dist/chunks/plan-1.0.7-z1k9hfr8.mjs +0 -1
  841. package/dist/chunks/plist-1.0.7-daxqmwqx.mjs +0 -1
  842. package/dist/chunks/plugin-1.0.7-66bqymg3.mjs +0 -29
  843. package/dist/chunks/pluginStartupCheck-1.0.7-w5krqm0w.mjs +0 -1
  844. package/dist/chunks/plugins-1.0.7-8njx3c0z.mjs +0 -9
  845. package/dist/chunks/preActionHook-1.0.7-a1hhphah.mjs +0 -2
  846. package/dist/chunks/print-1.0.7-xnncgmye.mjs +0 -57
  847. package/dist/chunks/privacy-settings-1.0.7-7gfaexn9.mjs +0 -1
  848. package/dist/chunks/process-1.0.7-9sx5xgpe.mjs +0 -1
  849. package/dist/chunks/processBashCommand-1.0.7-32dm20nc.mjs +0 -1
  850. package/dist/chunks/processSlashCommand-1.0.7-am0rnn44.mjs +0 -9
  851. package/dist/chunks/prompt-1.0.7-0yt5k7pt.mjs +0 -1
  852. package/dist/chunks/prompt-1.0.7-hfv56awc.mjs +0 -1
  853. package/dist/chunks/prompts-1.0.7-1p5km2m0.mjs +0 -1
  854. package/dist/chunks/protocolHandler-1.0.7-geqttcpz.mjs +0 -13
  855. package/dist/chunks/provider-1.0.7-y0j7q32j.mjs +0 -2
  856. package/dist/chunks/providerProfiles-1.0.7-s0zs9q1r.mjs +0 -1
  857. package/dist/chunks/providerValidation-1.0.7-aexhx4ft.mjs +0 -6
  858. package/dist/chunks/rate-limit-options-1.0.7-r4b2s2hk.mjs +0 -1
  859. package/dist/chunks/registerSubcommands-1.0.7-qmvr4jj4.mjs +0 -34
  860. package/dist/chunks/registry-1.0.7-be1gn584.mjs +0 -1
  861. package/dist/chunks/release-notes-1.0.7-tcr3xzz7.mjs +0 -5
  862. package/dist/chunks/reload-plugins-1.0.7-psfk2m91.mjs +0 -2
  863. package/dist/chunks/remote-env-1.0.7-xn5b9vx7.mjs +0 -1
  864. package/dist/chunks/remoteBridgeCore-1.0.7-hvnh9bv2.mjs +0 -1
  865. package/dist/chunks/remoteSession-1.0.7-870w4tbq.mjs +0 -1
  866. package/dist/chunks/rename-1.0.7-53emj8yj.mjs +0 -1
  867. package/dist/chunks/replBridgeHandle-1.0.7-cbrh6d8b.mjs +0 -1
  868. package/dist/chunks/replLauncher-1.0.7-zs2c9f7n.mjs +0 -1
  869. package/dist/chunks/resume-1.0.7-b5e8840g.mjs +0 -2
  870. package/dist/chunks/rewind-1.0.7-15a43rp5.mjs +0 -1
  871. package/dist/chunks/rootOptions-1.0.7-84t0zbkm.mjs +0 -1
  872. package/dist/chunks/sandbox-adapter-1.0.7-rs0gse4a.mjs +0 -1
  873. package/dist/chunks/sandbox-toggle-1.0.7-benxjznf.mjs +0 -1
  874. package/dist/chunks/session-1.0.7-9kyk2x4p.mjs +0 -2
  875. package/dist/chunks/sessionDiscovery-1.0.7-3z1nttw5.mjs +0 -1
  876. package/dist/chunks/sessionFileAccessHooks-1.0.7-wha0618t.mjs +0 -1
  877. package/dist/chunks/sessionStorage-1.0.7-tdsf7h6t.mjs +0 -1
  878. package/dist/chunks/settings-1.0.7-ew9b4r78.mjs +0 -1
  879. package/dist/chunks/setup-1.0.7-tnm7hbmj.mjs +0 -5
  880. package/dist/chunks/sinks-1.0.7-bw23nvqf.mjs +0 -1
  881. package/dist/chunks/skills-1.0.7-z5a8v4xg.mjs +0 -1
  882. package/dist/chunks/startupProfiler-1.0.7-fqfzm5cc.mjs +0 -1
  883. package/dist/chunks/startupUpdateCheck-1.0.7-enpb315n.mjs +0 -1
  884. package/dist/chunks/state-1.0.7-anf50tyt.mjs +0 -1
  885. package/dist/chunks/stats-1.0.7-xgb8h40k.mjs +0 -6
  886. package/dist/chunks/status-1.0.7-f7s47750.mjs +0 -1
  887. package/dist/chunks/stickers-1.0.7-z1wec6v6.mjs +0 -1
  888. package/dist/chunks/subprocessEnv-1.0.7-838hrdpy.mjs +0 -1
  889. package/dist/chunks/tasks-1.0.7-gnsbny7t.mjs +0 -1
  890. package/dist/chunks/teamHelpers-1.0.7-b952rdkv.mjs +0 -1
  891. package/dist/chunks/teammateModeSnapshot-1.0.7-kp8hzkhr.mjs +0 -1
  892. package/dist/chunks/teleport-1.0.7-0z0g10ms.mjs +0 -1
  893. package/dist/chunks/terminalSetup-1.0.7-fgc3myw4.mjs +0 -1
  894. package/dist/chunks/theme-1.0.7-a88j7tjj.mjs +0 -1
  895. package/dist/chunks/thinkback-1.0.7-yzkgrf3q.mjs +0 -1
  896. package/dist/chunks/thinkback-play-1.0.7-jz896tvv.mjs +0 -1
  897. package/dist/chunks/toolPool-1.0.7-zc6vp20v.mjs +0 -1
  898. package/dist/chunks/toolSearch-1.0.7-ym8fk2b2.mjs +0 -1
  899. package/dist/chunks/tools-1.0.7-612s0tqy.mjs +0 -1
  900. package/dist/chunks/trustedDevice-1.0.7-vjbr81qz.mjs +0 -1
  901. package/dist/chunks/turndown.cjs-1.0.7-gz5y243z.mjs +0 -69
  902. package/dist/chunks/types-1.0.7-16q04281.mjs +0 -1
  903. package/dist/chunks/ultrareviewCommand-1.0.7-v65pd88x.mjs +0 -4
  904. package/dist/chunks/update-1.0.7-z4et749c.mjs +0 -88
  905. package/dist/chunks/upgrade-1.0.7-hbdmpet7.mjs +0 -1
  906. package/dist/chunks/upload-1.0.7-xgyk75yh.mjs +0 -7
  907. package/dist/chunks/upstreamproxy-1.0.7-vb939aaw.mjs +0 -14
  908. package/dist/chunks/url-handler-napi-1.0.7-nfw64r47.mjs +0 -1
  909. package/dist/chunks/usage-1.0.7-kpakcv0m.mjs +0 -1
  910. package/dist/chunks/util-1.0.7-52gcb8n1.mjs +0 -1
  911. package/dist/chunks/utils-1.0.7-ckre2ymb.mjs +0 -1
  912. package/dist/chunks/vim-1.0.7-10bew4qn.mjs +0 -1
  913. package/dist/chunks/watcher-1.0.7-85c73j65.mjs +0 -1
  914. package/dist/chunks/wiki-1.0.7-yw93y8cn.mjs +0 -132
  915. package/dist/chunks/workflows-1.0.7-yatxf71n.mjs +0 -1
  916. package/dist/chunks/worktree-1.0.7-dp2np4vz.mjs +0 -1
  917. package/dist/chunks/worktreeModeEnabled-1.0.7-m222ja7h.mjs +0 -1
  918. package/dist/chunks/wrapper-1.0.7-sqtjm0k7.mjs +0 -7
@@ -1,2 +0,0 @@
1
- import{fd as K,gd as Y}from"./cli-1.0.7-xvhkprcw.mjs";import{Bp as H,Cp as W,EM as X,ql as G,rl as B,vl as U,wM as J,wl as V}from"./cli-1.0.7-s5mhxbhn.mjs";import{ura as q,xra as v}from"./cli-1.0.7-y94dd4yd.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
- export{P as bd,C as cd,A as dd,D as ed};
@@ -1,2 +0,0 @@
1
- import{Ac as l,Bc as m,Ec as u,Fc as y}from"./cli-1.0.7-6ncp8ban.mjs";import{MF as p,OF as b}from"./cli-1.0.7-s5mhxbhn.mjs";import{H0 as C,a0 as s,c0 as e}from"./cli-1.0.7-mwj9f8rw.mjs";import{o3 as i,p3 as r,q3 as g}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as M}from"./cli-1.0.7-jn7nay2r.mjs";import{tra as h,xra as f}from"./cli-1.0.7-y94dd4yd.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 yc,w as zc};
@@ -1,2 +0,0 @@
1
- import{F0 as X,H0 as k,HY as f,r0 as W}from"./cli-1.0.7-mwj9f8rw.mjs";import{n3 as V,o3 as J,q3 as K}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as P}from"./cli-1.0.7-jn7nay2r.mjs";import{Tfa as U,Ufa as O}from"./cli-1.0.7-1xe7m9s1.mjs";import{tra as Q,xra as L}from"./cli-1.0.7-y94dd4yd.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as ge,N as he,j as ie};
@@ -1,2 +0,0 @@
1
- import{Sa as S}from"./cli-1.0.7-5qss5m61.mjs";import{Ua as c}from"./cli-1.0.7-2wm3s497.mjs";import{Ad as Vq,wd as P}from"./cli-1.0.7-8fj15s8a.mjs";import{Ed as I,Fd as v,Gd as $,Hd as Wq}from"./cli-1.0.7-g42rsvs5.mjs";import{Ax as h,BK as E,CK as Qq,Cx as qq,QE as M,RE as Jq,Rt as N,St as e,Sy as A,TL as f,Ty as Bq,WL as Tq,Xy as _,Zy as Gq,bp as C,dp as r,zx as L}from"./cli-1.0.7-s5mhxbhn.mjs";import{r3 as s}from"./cli-1.0.7-jn7nay2r.mjs";import{Ifa as F,L9 as D,N9 as n,Qfa as a,s$ as w,u$ as t}from"./cli-1.0.7-757ex32c.mjs";import{nia as x,qia as d}from"./cli-1.0.7-gk53nva2.mjs";import{qja as j,tja as o}from"./cli-1.0.7-zjapdrt8.mjs";import{Pja as y,Xja as l}from"./cli-1.0.7-3pqhf5bj.mjs";import{tra as p}from"./cli-1.0.7-y94dd4yd.mjs";Jq();d();Gq();qq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);Bq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
- export{Lq as Ra};
@@ -1,2 +0,0 @@
1
- import{KZ as v,LZ as Z,MZ as D,sZ as T,tZ as X,uZ as I,wZ as Y,xZ as p}from"./cli-1.0.7-mwj9f8rw.mjs";import{o3 as P,q3 as V}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as H}from"./cli-1.0.7-jn7nay2r.mjs";import{Opa as F,Xma as W}from"./cli-1.0.7-9p7hfa00.mjs";import{tra as A,xra as C}from"./cli-1.0.7-y94dd4yd.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
- export{u as Lh,M as Mh};
@@ -1,3 +0,0 @@
1
- import{F as A}from"./cli-1.0.7-6rt1agkh.mjs";import{Afa as F,Gfa as z,Hfa as H,Qfa as P,zfa as $}from"./cli-1.0.7-757ex32c.mjs";import{Via as O,_ia as w,cja as V,gja as C,qja as X,ria as _,sia as N,tia as B,tja as E,via as W}from"./cli-1.0.7-zjapdrt8.mjs";import{Opa as L,Rla as Z}from"./cli-1.0.7-9p7hfa00.mjs";import{Iqa as q,_qa as y}from"./cli-1.0.7-w3g8c9m3.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
- `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
- export{e as q};
@@ -1,2 +0,0 @@
1
- var o=()=>null,t=o,l=o;
2
- export{l as Sa,t as Ta};
@@ -1,2 +0,0 @@
1
- import{EM as V,eM as C,oM as N,xM as $,yM as k}from"./cli-1.0.7-s5mhxbhn.mjs";import{H0 as D,HY as P,a0 as f,c0 as t,g0 as v}from"./cli-1.0.7-mwj9f8rw.mjs";import{o3 as n,p3 as i,q3 as M}from"./cli-1.0.7-hd6xn6rt.mjs";import{tra as w,xra as L}from"./cli-1.0.7-y94dd4yd.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
- export{J as vg,z as wg};
@@ -1,7 +0,0 @@
1
- import{Pb as d}from"./cli-1.0.7-k38j6sgc.mjs";import{MV as y,NV as U,PV as f,QV as h,RV as c,WV as i}from"./cli-1.0.7-gnwjbdch.mjs";import{A3 as b,y3 as O}from"./cli-1.0.7-s27f8y4p.mjs";import{R6 as B,S6 as M}from"./cli-1.0.7-txhggtd1.mjs";import{i8 as I,p8 as u}from"./cli-1.0.7-7egbzjdg.mjs";import{L9 as V,N9 as v}from"./cli-1.0.7-757ex32c.mjs";import{Via as H,Wia as m,_ia as T,qja as G,tja as D}from"./cli-1.0.7-zjapdrt8.mjs";import{Qja as q,Rja as S,Xja as F}from"./cli-1.0.7-3pqhf5bj.mjs";import{Iqa as p,_qa as s}from"./cli-1.0.7-w3g8c9m3.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
2
-
3
- `,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
4
- `)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
5
- `+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
6
- `)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
7
- export{R as Gb,k as Hb,a as Ib,YJ as Jb};
@@ -1,15 +0,0 @@
1
- import{vra as T,xra as J5,yra as M}from"./cli-1.0.7-y94dd4yd.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
- ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
- Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
- Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
- The chosen QR Code version cannot contain this amount of data.
6
- Minimum version required to store current data is: `+F+`.
7
- `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
- `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
- `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
- `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
- `}if(U+=R+`
12
- `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
- `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
- `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
- export{T5 as Le,X5 as Me};
@@ -1,2 +0,0 @@
1
- import{Iea as f,Oda as M,Rda as L,jea as G,kea as h,oea as v,pea as P,wea as k}from"./cli-1.0.7-757ex32c.mjs";import{dia as E,mia as x}from"./cli-1.0.7-vcsdnmc0.mjs";import{_ja as T,lka as u}from"./cli-1.0.7-ph9qjcjb.mjs";import{xra as C}from"./cli-1.0.7-y94dd4yd.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 Ac,Wj as Bc,e as Cc,Xj as Dc,Yj as Ec,jj as Fc};
@@ -1,2 +0,0 @@
1
- import{Sw as U,Tw as V,Ww as f,Yt as R,Zt as T,_t as $}from"./cli-1.0.7-s5mhxbhn.mjs";import{M5 as Q,N5 as _}from"./cli-1.0.7-txhggtd1.mjs";import{Ifa as G,Qfa as Z,eaa as L,laa as Y}from"./cli-1.0.7-757ex32c.mjs";import{xra as X}from"./cli-1.0.7-y94dd4yd.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
2
- export{O as Vc,S as Wc,I as Xc,N as Yc,P as Zc,h as _c};
@@ -1,2 +0,0 @@
1
- function i(){}function n(){}
2
- export{i as E,n as F};
@@ -1,2 +0,0 @@
1
- import{xra as H}from"./cli-1.0.7-y94dd4yd.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
- export{F as wga,K as xga,M as yga,N as zga,O as Aga,P as Bga,J as Cga};
@@ -1,2 +0,0 @@
1
- import{o3 as v,q3 as D}from"./cli-1.0.7-hd6xn6rt.mjs";import{yra as B}from"./cli-1.0.7-y94dd4yd.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-1.0.7-9xht4gsa.mjs"),J=z??import("./REPL-1.0.7-3xhews8d.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as ab,O as bb};
@@ -1,2 +0,0 @@
1
- import{Sd as Jq,Wd as Tq}from"./cli-1.0.7-xxa9e3we.mjs";import{be as zq,ce as bq}from"./cli-1.0.7-9ws1j17m.mjs";import{$K as s,BH as u,CH as fq,DL as Fq,MF as r,NF as Gq,NK as S,QK as Nq,TL as D,WL as Cq,Wn as n,Xn as yq,aL as _q,eL as a,hL as l,lL as t,qL as e,sL as Rq,zL as qq}from"./cli-1.0.7-s5mhxbhn.mjs";import{H0 as Oq,HY as Bq,a0 as F,c0 as C,xY as i,yY as Kq}from"./cli-1.0.7-mwj9f8rw.mjs";import{o3 as v,p3 as R,q3 as p}from"./cli-1.0.7-hd6xn6rt.mjs";import{r3 as Lq}from"./cli-1.0.7-jn7nay2r.mjs";import{D9 as g,E9 as Zq,Ifa as m,P9 as $,P_ as o,Q_ as Hq,Qfa as wq,R9 as Xq,U$ as vq,x$ as x}from"./cli-1.0.7-757ex32c.mjs";import{qja as B,tja as Yq}from"./cli-1.0.7-zjapdrt8.mjs";import{Pja as P,Sja as h,Xja as Wq}from"./cli-1.0.7-3pqhf5bj.mjs";import{tra as d,xra as Vq}from"./cli-1.0.7-y94dd4yd.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 Id,Yz as Jd,Dq as Kd};