@claudiolabs/claudio 0.1.10 → 0.1.12

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 (806) hide show
  1. package/bin/claudio +50 -1
  2. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
  3. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
  11. package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
  12. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
  13. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
  15. package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
  16. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
  17. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
  18. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
  19. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
  20. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
  21. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
  22. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
  23. package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
  24. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
  25. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
  26. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
  27. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
  28. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
  29. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
  30. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
  31. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
  32. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
  33. package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
  34. package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
  35. package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
  36. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
  37. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
  38. package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
  39. package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
  40. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
  41. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
  42. package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
  43. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
  44. package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
  45. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
  46. package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
  47. package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
  48. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
  49. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
  50. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
  51. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
  53. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
  54. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
  56. package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
  57. package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
  58. package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
  59. package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
  60. package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
  61. package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
  62. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
  63. package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
  64. package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
  65. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
  66. package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
  67. package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
  68. package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
  69. package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
  70. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
  71. package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
  72. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
  73. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
  74. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
  75. package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
  76. package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
  77. package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
  78. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
  79. package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
  80. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
  81. package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
  82. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
  83. package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
  84. package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
  85. package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
  86. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
  87. package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
  88. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
  89. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
  90. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
  91. package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
  92. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
  93. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
  94. package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
  95. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
  96. package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
  97. package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
  98. package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
  99. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
  100. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
  101. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
  102. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
  103. package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
  104. package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
  105. package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
  106. package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
  107. package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
  108. package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
  109. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
  110. package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
  111. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
  112. package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
  113. package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
  114. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
  115. package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
  116. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
  117. package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
  118. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
  119. package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
  120. package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
  121. package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
  122. package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
  123. package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
  124. package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
  125. package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
  126. package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
  127. package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
  128. package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
  129. package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
  130. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
  131. package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
  132. package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
  133. package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
  134. package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
  135. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
  136. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
  137. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
  138. package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
  139. package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
  140. package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
  141. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
  142. package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
  143. package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
  144. package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
  145. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
  146. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
  147. package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
  148. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
  149. package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
  150. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
  151. package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
  152. package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
  153. package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
  154. package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
  155. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
  156. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
  157. package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
  158. package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
  159. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
  160. package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
  161. package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
  162. package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
  163. package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
  164. package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
  165. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
  166. package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
  167. package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
  168. package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
  169. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
  170. package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
  171. package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
  172. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
  173. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
  174. package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
  175. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
  176. package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
  177. package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
  178. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
  179. package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
  180. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
  181. package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
  182. package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
  183. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
  184. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
  185. package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
  186. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
  187. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
  188. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
  189. package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
  190. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
  191. package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
  192. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
  193. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
  194. package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
  195. package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
  196. package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
  197. package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
  198. package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
  199. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
  200. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
  201. package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
  202. package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
  203. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
  204. package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
  205. package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
  206. package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
  207. package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
  208. package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
  209. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
  210. package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
  211. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
  212. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
  213. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
  214. package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
  215. package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
  216. package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
  217. package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
  218. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
  219. package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
  220. package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
  221. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
  222. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
  223. package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
  224. package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
  225. package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
  226. package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
  227. package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
  228. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
  229. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
  230. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
  231. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
  232. package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
  233. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
  234. package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
  235. package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
  236. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
  237. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
  238. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
  239. package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
  240. package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
  241. package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
  242. package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
  243. package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
  244. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
  245. package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
  246. package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
  247. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
  248. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
  249. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
  250. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
  251. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
  252. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
  253. package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
  254. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
  255. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
  256. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
  257. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
  258. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
  259. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
  260. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
  261. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
  262. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
  263. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
  264. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
  265. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
  266. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
  267. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
  268. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
  269. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
  270. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
  271. package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
  272. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
  273. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
  274. package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
  275. package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
  276. package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
  277. package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
  278. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
  279. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
  280. package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
  281. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
  282. package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
  283. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
  284. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
  285. package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
  286. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
  287. package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
  288. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
  289. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
  290. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
  291. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
  292. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
  293. package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
  294. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
  295. package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
  296. package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
  297. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
  298. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
  299. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
  300. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
  301. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
  302. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
  303. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
  304. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
  305. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
  306. package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
  307. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
  308. package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
  309. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
  310. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
  311. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
  312. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
  313. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
  314. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
  315. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
  316. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
  317. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
  318. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
  319. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
  320. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
  321. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
  322. package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
  323. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
  324. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
  325. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
  326. package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
  327. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
  328. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
  329. package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
  330. package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
  331. package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
  332. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
  333. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
  334. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
  335. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
  336. package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
  337. package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
  338. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
  339. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
  340. package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
  341. package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
  342. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
  343. package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
  344. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
  345. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
  346. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
  347. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
  348. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
  349. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
  350. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
  351. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
  352. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
  353. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
  354. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
  355. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
  356. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
  357. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
  358. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
  359. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
  360. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
  361. package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
  362. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
  363. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
  364. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
  365. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
  366. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
  367. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
  368. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
  369. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
  370. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
  371. package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
  372. package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
  373. package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
  374. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
  375. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
  376. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
  377. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
  378. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
  379. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
  380. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
  381. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
  382. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
  383. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
  384. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
  385. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
  386. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
  387. package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
  388. package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
  389. package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
  390. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
  391. package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
  392. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
  393. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
  394. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
  395. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
  396. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
  397. package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
  398. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
  399. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
  400. package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
  401. package/dist/claudio-vscode.vsix +0 -0
  402. package/dist/cli.mjs +3 -3
  403. package/package.json +4 -1
  404. package/dist/chunks/AgentTool-0.1.10-6d1adwh4.mjs +0 -1
  405. package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +0 -1
  406. package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +0 -1
  407. package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +0 -1
  408. package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +0 -1
  409. package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +0 -1
  410. package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +0 -1
  411. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +0 -1
  412. package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +0 -1
  413. package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +0 -3
  414. package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +0 -1
  415. package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +0 -1
  416. package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +0 -1
  417. package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +0 -1
  418. package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +0 -1
  419. package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +0 -1
  420. package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +0 -1
  421. package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +0 -1
  422. package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +0 -1
  423. package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +0 -1
  424. package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +0 -1
  425. package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +0 -1
  426. package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +0 -1
  427. package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +0 -1
  428. package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +0 -1
  429. package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +0 -9
  430. package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +0 -1
  431. package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +0 -1
  432. package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +0 -1
  433. package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +0 -1
  434. package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +0 -3
  435. package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +0 -111
  436. package/dist/chunks/api-0.1.10-712k136n.mjs +0 -1
  437. package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +0 -1
  438. package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +0 -1
  439. package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +0 -1
  440. package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +0 -1
  441. package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +0 -48
  442. package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +0 -1
  443. package/dist/chunks/branch-0.1.10-z00acm0q.mjs +0 -4
  444. package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +0 -1
  445. package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +0 -1
  446. package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +0 -3
  447. package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +0 -1
  448. package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +0 -21
  449. package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +0 -4
  450. package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +0 -1
  451. package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +0 -1
  452. package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +0 -2
  453. package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +0 -1
  454. package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +0 -1
  455. package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +0 -1
  456. package/dist/chunks/clear-0.1.10-7a42j19v.mjs +0 -1
  457. package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +0 -1
  458. package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +0 -3
  459. package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +0 -3
  460. package/dist/chunks/cli-0.1.10-17f08ra3.mjs +0 -2
  461. package/dist/chunks/cli-0.1.10-19jdke0x.mjs +0 -2
  462. package/dist/chunks/cli-0.1.10-1faf50d6.mjs +0 -2
  463. package/dist/chunks/cli-0.1.10-1remt68x.mjs +0 -2
  464. package/dist/chunks/cli-0.1.10-1zgq248j.mjs +0 -2
  465. package/dist/chunks/cli-0.1.10-227xyew7.mjs +0 -2
  466. package/dist/chunks/cli-0.1.10-283zk2ee.mjs +0 -2
  467. package/dist/chunks/cli-0.1.10-28zx3btb.mjs +0 -14
  468. package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +0 -2
  469. package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +0 -2
  470. package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +0 -2
  471. package/dist/chunks/cli-0.1.10-2k83cndj.mjs +0 -2
  472. package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +0 -31
  473. package/dist/chunks/cli-0.1.10-2tygs780.mjs +0 -2
  474. package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +0 -2
  475. package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +0 -12
  476. package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +0 -11
  477. package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +0 -39
  478. package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +0 -2
  479. package/dist/chunks/cli-0.1.10-4a42q38j.mjs +0 -2
  480. package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +0 -3
  481. package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +0 -2
  482. package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +0 -2
  483. package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +0 -2
  484. package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +0 -2
  485. package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +0 -21
  486. package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +0 -3
  487. package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +0 -3
  488. package/dist/chunks/cli-0.1.10-594z8zdp.mjs +0 -2
  489. package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +0 -2
  490. package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +0 -2
  491. package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +0 -833
  492. package/dist/chunks/cli-0.1.10-63qeecn7.mjs +0 -24
  493. package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +0 -2
  494. package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +0 -2
  495. package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +0 -2
  496. package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +0 -2
  497. package/dist/chunks/cli-0.1.10-6wf59qza.mjs +0 -58
  498. package/dist/chunks/cli-0.1.10-72ece2yk.mjs +0 -2
  499. package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +0 -2
  500. package/dist/chunks/cli-0.1.10-7691mckr.mjs +0 -2
  501. package/dist/chunks/cli-0.1.10-77zcax57.mjs +0 -2
  502. package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +0 -2
  503. package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +0 -4
  504. package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +0 -8
  505. package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +0 -2
  506. package/dist/chunks/cli-0.1.10-8dyffagh.mjs +0 -2
  507. package/dist/chunks/cli-0.1.10-91tna7ay.mjs +0 -2
  508. package/dist/chunks/cli-0.1.10-977j0ey2.mjs +0 -2
  509. package/dist/chunks/cli-0.1.10-97rwbawt.mjs +0 -2
  510. package/dist/chunks/cli-0.1.10-9dfywk37.mjs +0 -2
  511. package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +0 -16
  512. package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +0 -50
  513. package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +0 -2
  514. package/dist/chunks/cli-0.1.10-a4p945wp.mjs +0 -2
  515. package/dist/chunks/cli-0.1.10-a53q2hat.mjs +0 -2
  516. package/dist/chunks/cli-0.1.10-a6j6www8.mjs +0 -10
  517. package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +0 -2
  518. package/dist/chunks/cli-0.1.10-akaq0zte.mjs +0 -2
  519. package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +0 -2
  520. package/dist/chunks/cli-0.1.10-b59j6twr.mjs +0 -2
  521. package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +0 -2
  522. package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +0 -2
  523. package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +0 -2
  524. package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +0 -2
  525. package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +0 -4
  526. package/dist/chunks/cli-0.1.10-bw6411be.mjs +0 -3
  527. package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +0 -4
  528. package/dist/chunks/cli-0.1.10-c7bkm855.mjs +0 -4
  529. package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +0 -2
  530. package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +0 -5
  531. package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +0 -2
  532. package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +0 -2
  533. package/dist/chunks/cli-0.1.10-d48qgcag.mjs +0 -2
  534. package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +0 -2
  535. package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +0 -2
  536. package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +0 -2
  537. package/dist/chunks/cli-0.1.10-dx92txwb.mjs +0 -13
  538. package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +0 -2
  539. package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +0 -44
  540. package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +0 -2
  541. package/dist/chunks/cli-0.1.10-eh248dzz.mjs +0 -15
  542. package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +0 -2
  543. package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +0 -2
  544. package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +0 -2
  545. package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +0 -2
  546. package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +0 -2
  547. package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +0 -2
  548. package/dist/chunks/cli-0.1.10-fay16q4v.mjs +0 -2
  549. package/dist/chunks/cli-0.1.10-fcarec7s.mjs +0 -2
  550. package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +0 -5
  551. package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +0 -2
  552. package/dist/chunks/cli-0.1.10-frs4kmth.mjs +0 -2
  553. package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +0 -132
  554. package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +0 -4
  555. package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +0 -100
  556. package/dist/chunks/cli-0.1.10-gms4557v.mjs +0 -252
  557. package/dist/chunks/cli-0.1.10-gnds07ck.mjs +0 -2
  558. package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +0 -2
  559. package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +0 -2
  560. package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +0 -24
  561. package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +0 -2
  562. package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +0 -2
  563. package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +0 -2
  564. package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +0 -2
  565. package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +0 -2
  566. package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +0 -2
  567. package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +0 -2
  568. package/dist/chunks/cli-0.1.10-js33z9dt.mjs +0 -2
  569. package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +0 -2
  570. package/dist/chunks/cli-0.1.10-jy7ds572.mjs +0 -2
  571. package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +0 -3
  572. package/dist/chunks/cli-0.1.10-knbxee8j.mjs +0 -2
  573. package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +0 -2
  574. package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +0 -2
  575. package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +0 -7
  576. package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +0 -2
  577. package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +0 -2
  578. package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +0 -192
  579. package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +0 -15
  580. package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +0 -22
  581. package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +0 -34
  582. package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +0 -2
  583. package/dist/chunks/cli-0.1.10-npkfteg7.mjs +0 -2
  584. package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +0 -2
  585. package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +0 -4
  586. package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +0 -2
  587. package/dist/chunks/cli-0.1.10-p4a151rw.mjs +0 -2
  588. package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +0 -2
  589. package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +0 -2
  590. package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +0 -2
  591. package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +0 -2
  592. package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +0 -2
  593. package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +0 -2
  594. package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +0 -2
  595. package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +0 -3
  596. package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +0 -2
  597. package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +0 -2
  598. package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +0 -2
  599. package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +0 -2
  600. package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +0 -134
  601. package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +0 -45
  602. package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +0 -2
  603. package/dist/chunks/cli-0.1.10-rvb440sp.mjs +0 -2
  604. package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +0 -2
  605. package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +0 -2
  606. package/dist/chunks/cli-0.1.10-s6jxst02.mjs +0 -2
  607. package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +0 -11
  608. package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +0 -18
  609. package/dist/chunks/cli-0.1.10-sab6x266.mjs +0 -2
  610. package/dist/chunks/cli-0.1.10-seekz53q.mjs +0 -2
  611. package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +0 -2
  612. package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +0 -4
  613. package/dist/chunks/cli-0.1.10-t0v9d184.mjs +0 -2
  614. package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +0 -2
  615. package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +0 -2
  616. package/dist/chunks/cli-0.1.10-ta048zme.mjs +0 -3
  617. package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +0 -4
  618. package/dist/chunks/cli-0.1.10-v385rk98.mjs +0 -2
  619. package/dist/chunks/cli-0.1.10-v582vfad.mjs +0 -2
  620. package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +0 -7
  621. package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +0 -16
  622. package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +0 -2
  623. package/dist/chunks/cli-0.1.10-w8np72sh.mjs +0 -2
  624. package/dist/chunks/cli-0.1.10-wajz23ff.mjs +0 -2
  625. package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +0 -6
  626. package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +0 -2
  627. package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +0 -12
  628. package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +0 -2
  629. package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +0 -2
  630. package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +0 -2
  631. package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +0 -2
  632. package/dist/chunks/cli-0.1.10-y17z0pes.mjs +0 -2
  633. package/dist/chunks/cli-0.1.10-y1bkenem.mjs +0 -2
  634. package/dist/chunks/cli-0.1.10-y2byece1.mjs +0 -12
  635. package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +0 -2
  636. package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +0 -9
  637. package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +0 -5036
  638. package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +0 -2
  639. package/dist/chunks/cli-0.1.10-yset0578.mjs +0 -2
  640. package/dist/chunks/cli-0.1.10-z20mk55m.mjs +0 -5
  641. package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +0 -6
  642. package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +0 -2
  643. package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +0 -2
  644. package/dist/chunks/cli-0.1.10-zeqsd250.mjs +0 -2
  645. package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +0 -2
  646. package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +0 -2
  647. package/dist/chunks/client-0.1.10-btm7zd17.mjs +0 -1
  648. package/dist/chunks/color-0.1.10-h3wdkq18.mjs +0 -1
  649. package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +0 -3
  650. package/dist/chunks/config-0.1.10-37452dtw.mjs +0 -1
  651. package/dist/chunks/config-0.1.10-apkj5t0e.mjs +0 -1
  652. package/dist/chunks/context-0.1.10-z4vfp64w.mjs +0 -1
  653. package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +0 -1
  654. package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +0 -1
  655. package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +0 -9
  656. package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +0 -1
  657. package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +0 -1
  658. package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +0 -1
  659. package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +0 -1
  660. package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +0 -1
  661. package/dist/chunks/devtools-0.1.10-93f39njd.mjs +0 -1
  662. package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +0 -1
  663. package/dist/chunks/doctor-0.1.10-wcq13152.mjs +0 -1
  664. package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +0 -1
  665. package/dist/chunks/effort-0.1.10-kanyae0a.mjs +0 -8
  666. package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +0 -1
  667. package/dist/chunks/environments-0.1.10-7dht1svt.mjs +0 -1
  668. package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +0 -1
  669. package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +0 -2
  670. package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +0 -1
  671. package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +0 -1
  672. package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +0 -1
  673. package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +0 -14
  674. package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +0 -1
  675. package/dist/chunks/git-0.1.10-ngvcytb0.mjs +0 -1
  676. package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +0 -1
  677. package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +0 -1
  678. package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +0 -6
  679. package/dist/chunks/help-0.1.10-yj8ra443.mjs +0 -1
  680. package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +0 -3
  681. package/dist/chunks/hooks-0.1.10-epp78p44.mjs +0 -79
  682. package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +0 -1
  683. package/dist/chunks/ide-0.1.10-361fyyet.mjs +0 -3
  684. package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +0 -1
  685. package/dist/chunks/index-0.1.10-1cxj797w.mjs +0 -2
  686. package/dist/chunks/index-0.1.10-30c6wwdm.mjs +0 -30
  687. package/dist/chunks/index-0.1.10-80bh88yr.mjs +0 -1
  688. package/dist/chunks/index-0.1.10-8apwt1gk.mjs +0 -1
  689. package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +0 -2
  690. package/dist/chunks/index-0.1.10-9mqxzarc.mjs +0 -5
  691. package/dist/chunks/index-0.1.10-c29w46aj.mjs +0 -1
  692. package/dist/chunks/index-0.1.10-c450y86m.mjs +0 -1
  693. package/dist/chunks/index-0.1.10-d1r31eyx.mjs +0 -9
  694. package/dist/chunks/index-0.1.10-drj30y1c.mjs +0 -1
  695. package/dist/chunks/index-0.1.10-g667a23q.mjs +0 -1
  696. package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +0 -1
  697. package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +0 -1
  698. package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +0 -9
  699. package/dist/chunks/index-0.1.10-r42rb77w.mjs +0 -7
  700. package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +0 -1
  701. package/dist/chunks/index-0.1.10-s32szzwg.mjs +0 -1
  702. package/dist/chunks/index-0.1.10-std21r3g.mjs +0 -1
  703. package/dist/chunks/index-0.1.10-t71jm4x7.mjs +0 -1
  704. package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +0 -1
  705. package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +0 -1
  706. package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +0 -1
  707. package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +0 -1
  708. package/dist/chunks/ink-0.1.10-57r8vscr.mjs +0 -1
  709. package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +0 -870
  710. package/dist/chunks/install-0.1.10-9w2w5vre.mjs +0 -1
  711. package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +0 -149
  712. package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +0 -1
  713. package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +0 -12
  714. package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +0 -1
  715. package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +0 -2
  716. package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +0 -2
  717. package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +0 -1
  718. package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +0 -1
  719. package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +0 -1
  720. package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +0 -1
  721. package/dist/chunks/main-0.1.10-q3qenxfq.mjs +0 -1
  722. package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +0 -1
  723. package/dist/chunks/mcp-0.1.10-af795ewj.mjs +0 -1
  724. package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +0 -17
  725. package/dist/chunks/mcp-0.1.10-nd17220r.mjs +0 -4
  726. package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +0 -1
  727. package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +0 -1
  728. package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +0 -3
  729. package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +0 -2
  730. package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +0 -1
  731. package/dist/chunks/model-0.1.10-rygn5rc7.mjs +0 -2
  732. package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +0 -1
  733. package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +0 -14
  734. package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +0 -1
  735. package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +0 -1
  736. package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +0 -1
  737. package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +0 -1
  738. package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +0 -3
  739. package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +0 -1
  740. package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +0 -1
  741. package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +0 -29
  742. package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +0 -1
  743. package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +0 -9
  744. package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +0 -57
  745. package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +0 -1
  746. package/dist/chunks/process-0.1.10-kp51xxsy.mjs +0 -1
  747. package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +0 -1
  748. package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +0 -9
  749. package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +0 -1
  750. package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +0 -1
  751. package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +0 -1
  752. package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +0 -2
  753. package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +0 -1
  754. package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +0 -1
  755. package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +0 -1
  756. package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +0 -5
  757. package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +0 -2
  758. package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +0 -1
  759. package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +0 -1
  760. package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +0 -1
  761. package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +0 -1
  762. package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +0 -1
  763. package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +0 -2
  764. package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +0 -1
  765. package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +0 -1
  766. package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +0 -1
  767. package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +0 -2
  768. package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +0 -1
  769. package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +0 -1
  770. package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +0 -5
  771. package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +0 -1
  772. package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +0 -1
  773. package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +0 -1
  774. package/dist/chunks/state-0.1.10-embrgn1a.mjs +0 -1
  775. package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +0 -6
  776. package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +0 -1
  777. package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +0 -1
  778. package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +0 -1
  779. package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +0 -1
  780. package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +0 -1
  781. package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +0 -1
  782. package/dist/chunks/teleport-0.1.10-saft8sby.mjs +0 -1
  783. package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +0 -1
  784. package/dist/chunks/theme-0.1.10-5xss74sp.mjs +0 -1
  785. package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +0 -1
  786. package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +0 -1
  787. package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +0 -1
  788. package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +0 -1
  789. package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +0 -1
  790. package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +0 -69
  791. package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +0 -4
  792. package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +0 -94
  793. package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +0 -1
  794. package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +0 -14
  795. package/dist/chunks/usage-0.1.10-r8vznre6.mjs +0 -1
  796. package/dist/chunks/util-0.1.10-51fk6c0k.mjs +0 -1
  797. package/dist/chunks/utils-0.1.10-43r4vneb.mjs +0 -1
  798. package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +0 -1
  799. package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +0 -1
  800. package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +0 -132
  801. package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +0 -1
  802. package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +0 -1
  803. package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +0 -7
  804. /package/dist/chunks/{cli-0.1.10-tf9dk84p.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
  805. /package/dist/chunks/{cli-0.1.10-xfdakzcb.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
  806. /package/dist/chunks/{cli-0.1.10-9xpgjxhj.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
@@ -0,0 +1,45 @@
1
+ import{de as BY,ee as Bz}from"./cli-0.1.12-4syxz3pe.mjs";import{jf as qY,kf as qz}from"./cli-0.1.12-zk49aaxv.mjs";import{Kf as $Y,Lf as yz,Mf as cY,Nf as mz}from"./cli-0.1.12-a2frnpdd.mjs";import{Ao as Zz,Ay as uY,Bo as KK,By as wz,Co as eY,DK as hY,Do as JK,EK as Tz,HM as XJ,IM as GZ,JM as X0,OC as GY,PL as lY,SC as Gz,UK as gY,VK as Lz,gN as V0,jM as dY,ov as B0,pv as MY,qM as nY}from"./cli-0.1.12-242der7s.mjs";import{DP as UJ,EP as KY,FP as AJ,GP as XY,HP as NJ,IP as VY}from"./cli-0.1.12-vpnp7x5c.mjs";import{aS as SY,bS as jz}from"./cli-0.1.12-2v18rdhk.mjs";import{GS as _Y,HS as Az,US as $J,WS as UY,aT as pY,bT as Fz}from"./cli-0.1.12-tyt09z73.mjs";import{LU as fY,NU as Ez,QU as b,SU as N,eT as f0,kV as xY,nT as LY,sU as bY,tT as IY,uT as Rz,vV as U0}from"./cli-0.1.12-bddm1g1s.mjs";import{rX as U,sX as m,tX as bJ}from"./cli-0.1.12-04jw23rj.mjs";import{uX as b0}from"./cli-0.1.12-ytxphavm.mjs";import{$2 as tY,A3 as ez}from"./cli-0.1.12-y9598sy3.mjs";import{H5 as $0,I5 as Mz}from"./cli-0.1.12-m6jeef2z.mjs";import{F7 as fJ,I7 as r0,N7 as yY,Q8 as Nz,w9 as l0,y8 as mY,y9 as tz}from"./cli-0.1.12-vzga2are.mjs";import{Bfa as G0,Mfa as zY,Nfa as c0,Qfa as I0,yfa as S0,zfa as Hz}from"./cli-0.1.12-bhxgr018.mjs";import{gga as $,hga as Cz}from"./cli-0.1.12-6x2mnahn.mjs";import{Pga as oY,Sga as sz,eha as CJ,hha as oz}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as TY,dja as wY,jja as H0}from"./cli-0.1.12-pm5cwtxh.mjs";import{Qna as UZ,Una as XZ}from"./cli-0.1.12-1hv04bp7.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();UY();Gz();I0();V0();XY();VY();KY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function rY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${rY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=iY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=lY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{mY().then((Y)=>jJ(Y)),gY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
+ ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
+ ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
+ ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=rY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
+ ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(uY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(hY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(dY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var iY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Mz();TY();jz();mz();Az();Rz();U0();UY();Cz();I0();Lz();Nz();yY();V0();Ez();XY();MY();VY();Fz();KY();yz();OY();wz();CY();Tz();AY();bJ();iY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${l0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return r0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${l0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
+ ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
+ `)}
8
+
9
+ Search query: "${Z}"
10
+
11
+ Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return r0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
+
13
+ You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
+
15
+ Each session may include:
16
+ - Title (display name or custom title)
17
+ - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
+ - Branch (git branch name, shown as [branch: name])
19
+ - Summary (AI-generated summary)
20
+ - First message (beginning of the conversation)
21
+ - Transcript (excerpt of conversation content)
22
+
23
+ IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
+
25
+ For each session, consider (in order of priority):
26
+ 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
+ 2. Partial tag matches or tag-related terms
28
+ 3. Title matches (custom titles or first message content)
29
+ 4. Branch name matches
30
+ 5. Summary and transcript content matches
31
+ 6. Semantic similarity and related concepts
32
+
33
+ CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
+ - Contain the query term anywhere in any field
35
+ - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
+ - Discuss topics that could be related to the query
37
+ - Have transcripts that mention the concept even in passing
38
+
39
+ When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
+
41
+ Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
+
43
+ Respond with ONLY the JSON object, no markdown formatting:
44
+ {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();yY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
+ export{YU as Sd,az as Td,QU as Ud,zK as Vd,WU as Wd,UK as Xd};
@@ -0,0 +1,2 @@
1
+ import{Fj as Pq,Jj as Sq}from"./cli-0.1.12-242der7s.mjs";import{BP as Q,CP as hq}from"./cli-0.1.12-vpnp7x5c.mjs";import{jS as Uq,kS as Iq,nS as _q}from"./cli-0.1.12-a5h71tt8.mjs";import{QU as J,SU as L,eT as jq,vV as nq}from"./cli-0.1.12-bddm1g1s.mjs";import{rX as H,sX as O,tX as vq}from"./cli-0.1.12-04jw23rj.mjs";import{M2 as yq,s2 as bq,t2 as Mq}from"./cli-0.1.12-y9598sy3.mjs";import{B_ as Nq,D_ as gq,Fba as Rq,S8 as Xq,U8 as kq,Yba as fq}from"./cli-0.1.12-vzga2are.mjs";import{qfa as Bq}from"./cli-0.1.12-g8mny195.mjs";import{Qna as pq,Una as Gq}from"./cli-0.1.12-1hv04bp7.mjs";function xq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function mq(V,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return V.length>0&&!/^\s/.test(V)&&!V.startsWith("\x1B")}var Wq=Gq(()=>{_q();fq();gq()});function T(V){return V.replace(/\+/g," + ")}function qD(V){let q=Eq.c(99),{dimColor:D,fixedWidth:Aq,gap:x,paddingX:m}=V,l=Q("app:toggleTranscript","Global","ctrl+o"),_;if(q[0]!==l)_=T(l),q[0]=l,q[1]=_;else _=q[1];let e=_,d=Q("app:toggleTodos","Global","ctrl+t"),p;if(q[2]!==d)p=T(d),q[2]=d,q[3]=p;else p=q[3];let s=p,i=Q("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=T(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=Q("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=T($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=Q("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=T(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Dq=Q("chat:modelPicker","Chat","alt+p"),j;if(q[10]!==Dq)j=T(Dq),q[10]=Dq,q[11]=j;else j=q[11];let Hq=j,Jq=Q("chat:fastMode","Chat","alt+o"),n;if(q[12]!==Jq)n=T(Jq),q[12]=Jq,q[13]=n;else n=q[13];let Lq=n,Oq=Q("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Oq)S=T(Oq),q[14]=Oq,q[15]=S;else S=q[15];let Qq=S,Tq=Q("app:toggleTerminal","Global","meta+j"),h;if(q[16]!==Tq)h=T(Tq),q[16]=Tq,q[17]=h;else h=q[17];let Fq=h,Vq=Q("chat:imagePaste","Chat","ctrl+v"),a;if(q[18]!==Vq)a=T(Vq),q[18]=Vq,q[19]=a;else a=q[19];let Yq=a,C;if(q[20]!==D||q[21]!==Fq)C=null,q[20]=D,q[21]=Fq,q[22]=C;else C=q[22];let Zq=C,wq=Aq?24:void 0,Y;if(q[23]!==D)Y=H(J,{children:H(L,{dimColor:D,children:"! for bash mode"})}),q[23]=D,q[24]=Y;else Y=q[24];let Z;if(q[25]!==D)Z=H(J,{children:H(L,{dimColor:D,children:"/ for commands"})}),q[25]=D,q[26]=Z;else Z=q[26];let w;if(q[27]!==D)w=H(J,{children:H(L,{dimColor:D,children:"@ for file paths"})}),q[27]=D,q[28]=w;else w=q[28];let z;if(q[29]!==D)z=H(J,{children:H(L,{dimColor:D,children:"& for background"})}),q[29]=D,q[30]=z;else z=q[30];let A;if(q[31]!==D)A=H(J,{children:H(L,{dimColor:D,children:"/btw for side question"})}),q[31]=D,q[32]=A;else A=q[32];let F;if(q[33]!==wq||q[34]!==Y||q[35]!==Z||q[36]!==w||q[37]!==z||q[38]!==A)F=O(J,{flexDirection:"column",width:wq,children:[Y,Z,w,z,A]}),q[33]=wq,q[34]=Y,q[35]=Z,q[36]=w,q[37]=z,q[38]=A,q[39]=F;else F=q[39];let zq=Aq?35:void 0,G;if(q[40]!==D)G=H(J,{children:H(L,{dimColor:D,children:"double tap esc to clear input"})}),q[40]=D,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==D)N=H(J,{children:O(L,{dimColor:D,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=D,q[44]=N;else N=q[44];let R;if(q[45]!==D||q[46]!==e)R=H(J,{children:O(L,{dimColor:D,children:[e," for verbose output"]})}),q[45]=D,q[46]=e,q[47]=R;else R=q[47];let U;if(q[48]!==D||q[49]!==s)U=H(J,{children:O(L,{dimColor:D,children:[s," to toggle tasks"]})}),q[48]=D,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==D)I=H(J,{children:H(L,{dimColor:D,children:c})}),q[52]=D,q[53]=I;else I=q[53];let K;if(q[54]!==zq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==Zq)K=O(J,{flexDirection:"column",width:zq,children:[G,N,R,U,Zq,I]}),q[54]=zq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=Zq,q[61]=K;else K=q[61];let W;if(q[62]!==D||q[63]!==r)W=H(J,{children:O(L,{dimColor:D,children:[r," to undo"]})}),q[62]=D,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==D)v=Xq()!=="windows"&&H(J,{children:H(L,{dimColor:D,children:"ctrl + z to suspend"})}),q[65]=D,q[66]=v;else v=q[66];let X;if(q[67]!==D||q[68]!==Yq)X=H(J,{children:O(L,{dimColor:D,children:[Yq," to paste images"]})}),q[67]=D,q[68]=Yq,q[69]=X;else X=q[69];let b;if(q[70]!==D||q[71]!==Hq)b=H(J,{children:O(L,{dimColor:D,children:[Hq," to switch model"]})}),q[70]=D,q[71]=Hq,q[72]=b;else b=q[72];let M;if(q[73]!==D||q[74]!==Lq)M=bq()&&Mq()&&H(J,{children:O(L,{dimColor:D,children:[Lq," to toggle fast mode"]})}),q[73]=D,q[74]=Lq,q[75]=M;else M=q[75];let P;if(q[76]!==D||q[77]!==o)P=H(J,{children:O(L,{dimColor:D,children:[o," to stash prompt"]})}),q[76]=D,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==D||q[80]!==Qq)E=H(J,{children:O(L,{dimColor:D,children:[Qq," to edit in $EDITOR"]})}),q[79]=D,q[80]=Qq,q[81]=E;else E=q[81];let g;if(q[82]!==D)g=Pq()&&H(J,{children:H(L,{dimColor:D,children:"/keybindings to customize"})}),q[82]=D,q[83]=g;else g=q[83];let f;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)f=O(J,{flexDirection:"column",children:[W,v,X,b,M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=f;else f=q[92];let u;if(q[93]!==x||q[94]!==m||q[95]!==F||q[96]!==K||q[97]!==f)u=O(J,{paddingX:m,flexDirection:"row",gap:x,children:[F,K,f]}),q[93]=x,q[94]=m,q[95]=F,q[96]=K,q[97]=f,q[98]=u;else u=q[98];return u}var Eq;var aq=Gq(()=>{nq();kq();Sq();hq();Bq();yq();Wq();vq();Eq=pq(jq(),1)});
2
+ export{xq as Ye,mq as Ze,Wq as _e,qD as $e,aq as af};
@@ -0,0 +1,15 @@
1
+ import{Sna as T,Una as J5,Vna as M}from"./cli-0.1.12-1hv04bp7.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 Ae,X5 as Be};
@@ -0,0 +1,2 @@
1
+ import{Una as K}from"./cli-0.1.12-1hv04bp7.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
+ export{M as iha,N as jha,Q as kha,R as lha,S as mha,L as nha};
@@ -0,0 +1,2 @@
1
+ import{_Q as YJ,cR as DJ,gR as CJ,hR as c,iR as vJ,qR as ZJ}from"./cli-0.1.12-6238zg7k.mjs";import{$Y as TJ,UY as SJ}from"./cli-0.1.12-v8j9zstg.mjs";import{I7 as p,N7 as jJ,Q8 as NJ,W7 as OJ,X7 as FJ,aba as S,cba as wJ,s8 as xJ,y9 as yJ}from"./cli-0.1.12-vzga2are.mjs";import{$da as w,Yda as R,_da as VJ,aea as XJ}from"./cli-0.1.12-j6gjfwh5.mjs";import{Gga as W,Hga as C,Mga as e,Oga as v,Pga as y,Sga as JJ,eha as G,hha as QJ}from"./cli-0.1.12-rzpc0tr9.mjs";import{Bha as a,oha as s,pha as I,rha as t}from"./cli-0.1.12-ra3sby5b.mjs";import{Ska as i,Yma as m,bja as r,cja as MJ,dja as d,lma as L}from"./cli-0.1.12-pm5cwtxh.mjs";import{Una as T,Vna as BJ}from"./cli-0.1.12-1hv04bp7.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();yJ();QJ();a();e();XJ();wJ();jJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!vJ())return;let V=Q??c(),X=CJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==SJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.1.12-btwd6z61.mjs"),import("./detection-0.1.12-c0tecfvg.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
+ export{HQ as SP,UQ as TP,BQ as UP,fJ as VP,OQ as WP,xQ as XP,CQ as YP,_J as ZP,E as _P,bJ as $P,vQ as aQ,O as bQ,j as cQ,SQ as dQ,h as eQ,AQ as fQ,zQ as gQ,MQ as hQ,HJ as iQ,n as jQ,UJ as kQ,oQ as lQ,zJ as mQ,nQ,u as oQ,F as pQ,H as qQ,kJ as rQ,rJ as sQ,kQ as tQ,rQ as uQ,dQ as vQ,iQ as wQ,mQ as xQ,dJ as yQ,sQ as zQ,tQ as AQ,aQ as BQ,eQ as CQ,JV as DQ,QV as EQ,sJ as FQ,tJ as GQ};
@@ -0,0 +1,2 @@
1
+ import{m6 as Z,q6 as _,r6 as w}from"./cli-0.1.12-mr41yjpw.mjs";import{B9 as k,Cba as W,Fba as V,Q8 as T,X9 as D,Yba as j,e8 as Y,f8 as U,q8 as $}from"./cli-0.1.12-vzga2are.mjs";import{eha as N,hha as M}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as O,jja as X}from"./cli-0.1.12-pm5cwtxh.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
2
+ export{b as K,y as L,P as M,d as N,c as O};
@@ -0,0 +1,2 @@
1
+ import{Una as F}from"./cli-0.1.12-1hv04bp7.mjs";function V(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function A(q,z){let B=q;for(let J of z){if(B==null||typeof B!=="object")return;B=B[J]}return B}function L(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let K=q.toLowerCase();return K.includes("localhost")||K.includes("127.0.0.1")||K.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let J=B.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);if(J){let K=Number(J[1]),Q=Number(J[2]);if(K===10)return!0;if(K===172&&Q>=16&&Q<=31)return!0;if(K===192&&Q===168)return!0;if(K===127)return!0;if(K===169&&Q===254)return!0;if(K===100&&Q>=64&&Q<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||/^fc[0-9a-f]{0,2}:/.test(B)||/^fd[0-9a-f]{0,2}:/.test(B))return!0;return!1}function O(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(L(B))return"self-hosted";let J=B.toLowerCase();if(J.includes(":11434"))return"ollama";if(J.includes("moonshot")||J.includes("kimi"))return"kimi";if(J.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function f(q){if(!q||typeof q!=="object")return 0;let z=q,B=V(z.cache_read_input_tokens);if(B>0)return B;let J=V(A(q,["input_tokens_details","cached_tokens"]))||V(A(q,["prompt_tokens_details","cached_tokens"]));if(J>0)return J;let K=V(z.cached_tokens);if(K>0)return K;let Q=V(z.prompt_cache_hit_tokens);if(Q>0)return Q;let W=V(z.cached_content_token_count);if(W>0)return W;return 0}function Y(q){let z=f(q),B=q??{},J=V(B.input_tokens)||V(B.prompt_tokens),K=J>=z?J-z:J,Q=V(B.output_tokens)||V(B.completion_tokens);return{input_tokens:K,output_tokens:Q,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function k(q,z){if(!q||typeof q!=="object")return $;let B=q,J=V(B.cache_read_input_tokens),K=V(B.cache_creation_input_tokens),Q=V(B.input_tokens);if(z==="copilot"||z==="ollama")return $;if(z==="self-hosted"&&J===0&&K===0)return $;let W=J+K+Q;return{read:J,created:K,total:W,hitRate:W>0?Math.min(1,J/W):null,supported:!0}}function _(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${j(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${j(q.read)}`,`created=${j(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function j(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(/\.0$/,"")}k`;return`${(q/1e6).toFixed(1).replace(/\.0$/,"")}m`}function X(q,z){if(!q.supported&&!z.supported)return $;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,J=q.created+z.created,K=q.total+z.total;return{read:B,created:J,total:K,hitRate:K>0?B/K:null,supported:!0}}var $;var H=F(()=>{$={read:0,created:0,total:0,hitRate:null,supported:!1}});function D(q){return{currentTurn:Z,session:Z,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function S(q,z){G.currentTurn=X(G.currentTurn,q),G.session=X(G.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(G.history[G.historyWriteIdx]=B,G.historyWriteIdx=(G.historyWriteIdx+1)%G.historyMax,G.historySize<G.historyMax)G.historySize++}function M(){G.currentTurn=Z}function E(){G.currentTurn=Z,G.session=Z,G.history=Array(G.historyMax),G.historyWriteIdx=0,G.historySize=0}function w(){return G.currentTurn}function P(){return G.session}function T(){if(G.historySize<G.historyMax)return G.history.slice(0,G.historySize);let q=G.history.slice(G.historyWriteIdx),z=G.history.slice(0,G.historyWriteIdx);return q.concat(z)}var y=500,Z,G;var x=F(()=>{H();Z={read:0,created:0,total:0,hitRate:null,supported:!1};G=D(y)});
2
+ export{O as tS,Y as uS,k as vS,_ as wS,I as xS,H as yS,S as zS,M as AS,E as BS,w as CS,P as DS,T as ES,x as FS};
@@ -0,0 +1,2 @@
1
+ import{oe as N0,pe as U0,re as VP}from"./cli-0.1.12-xfqkrd5x.mjs";import{$q as j0,Ay as G0,By as QP,DK as qP,EK as pP,KI as XP,LI as m0,Mq as fP,NI as YP,Oq as D0,Pq as A0,Qq as h0,Rq as T0,SI as mP,Uq as w0,ZI as C0,bK as L0,cK as ZP,eK as u0,gr as WP,hJ as CP,ov as J0,pr as cP,qv as i0}from"./cli-0.1.12-242der7s.mjs";import{DP as h,EP as c0,FP as p,GP as M0,HP as r,IP as W0,LP as O0,MP as EP}from"./cli-0.1.12-vpnp7x5c.mjs";import{aS as R0,bS as LP}from"./cli-0.1.12-2v18rdhk.mjs";import{GS as JP,HS as hP,US as z0,WS as TP}from"./cli-0.1.12-tyt09z73.mjs";import{OU as C,QU as X,SU as L,WU as F0,eT as I0,eU as PP,jU as AP,kV as GP,nT as k0,vV as q0}from"./cli-0.1.12-bddm1g1s.mjs";import{qX as n,rX as J,sX as Q,tX as a}from"./cli-0.1.12-04jw23rj.mjs";import{uX as $0}from"./cli-0.1.12-ytxphavm.mjs";import{RX as d0,SX as dP}from"./cli-0.1.12-c23pyffx.mjs";import{V4 as e0,l5 as gP}from"./cli-0.1.12-y9598sy3.mjs";import{$$ as zP,L7 as r0,M$ as y0,N$ as B0,N7 as IP,O$ as KP,O7 as _,P7 as s0,_$ as H0,haa as p0}from"./cli-0.1.12-vzga2are.mjs";import{Rea as g0,Sea as SP}from"./cli-0.1.12-4wwhk7dc.mjs";import{gga as m,hga as _P}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as f0,Mga as t0}from"./cli-0.1.12-rzpc0tr9.mjs";import{Qna as e,Una as P0}from"./cli-0.1.12-1hv04bp7.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=R0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=L0((q)=>q.mcp),M=ZP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=A0(q.mcp.tools,G.name),d=h0(q.mcp.commands,G.name),Z0=T0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),d0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=D0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await d0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await YP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else r0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof XP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=A0(q.mcp.tools,G.name),d=h0(q.mcp.commands,G.name),Z0=T0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(qP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:w0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(J0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{s0();_P();SP();LP();hP();AP();q0();TP();mP();CP();VP();j0();u0();gP();dP();t0();IP();p0();M0();i0();W0();c0();QP();pP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=R0(),k=L0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=D0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:w0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(J0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{s0();LP();q0();cP();VP();j0();u0();t0();p0();M0();i0();W0();c0();QP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();M0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=L0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(J0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();j0();u0();p0();M0();i0();W0();EP();c0();a();HP=e(I0(),1)});
2
+ export{bG as fe,$P as ge,uG as he,jP as ie,tG as je,uP as ke,VJ as le,aP as me};
@@ -0,0 +1,2 @@
1
+ import{vI as Q,wI as $}from"./cli-0.1.12-242der7s.mjs";import{Qha as V,Qia as W,Rha as P,Ria as E}from"./cli-0.1.12-pm5cwtxh.mjs";import{Una as L}from"./cli-0.1.12-1hv04bp7.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
+ export{v as Yb,C as Zb};
@@ -0,0 +1,3 @@
1
+ import{jf as p,kf as Kq}from"./cli-0.1.12-zk49aaxv.mjs";import{Vu as d,Wu as Vq,gM as l,gN as Oq}from"./cli-0.1.12-242der7s.mjs";import{QU as T,SU as R,eT as Zq,kV as $,vV as Gq}from"./cli-0.1.12-bddm1g1s.mjs";import{DV as t,FV as v,IV as e}from"./cli-0.1.12-5ye0t0xd.mjs";import{rX as P,sX as N,tX as S}from"./cli-0.1.12-04jw23rj.mjs";import{uX as Yq}from"./cli-0.1.12-ytxphavm.mjs";import{RX as u,SX as Aq}from"./cli-0.1.12-c23pyffx.mjs";import{B9 as j,V7 as G,X7 as o,X9 as s}from"./cli-0.1.12-vzga2are.mjs";import{dea as L,eea as n}from"./cli-0.1.12-g3ycbjxk.mjs";import{Gga as c,Mga as Xq,eha as w,hha as r}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as i,dja as f}from"./cli-0.1.12-pm5cwtxh.mjs";import{Qna as I,Una as h}from"./cli-0.1.12-1hv04bp7.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",L()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(w(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();n();r();o();s();e();K=I(t(),1)});function Pq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=a.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Pq()).catch(Bq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
+ Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Rq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(p,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Rq(H){H("Session transferred to Claude Desktop",{display:"system"}),await d(0,"other")}function Bq(){}var a,A,D="https://clau.de/desktop";var yq=h(()=>{Gq();Aq();k();Xq();Vq();Oq();Kq();S();a=I(Zq(),1),A=I(Yq(),1)});
3
+ export{mq as hf,yq as if};
@@ -0,0 +1,2 @@
1
+ import{PX as m}from"./cli-0.1.12-trdq9d6x.mjs";import{V4 as K,l5 as $}from"./cli-0.1.12-y9598sy3.mjs";import{Cba as Q,E7 as W,Fba as J,N7 as X,Yba as Z}from"./cli-0.1.12-vzga2are.mjs";import{Sea as Y}from"./cli-0.1.12-4wwhk7dc.mjs";import{Una as V}from"./cli-0.1.12-1hv04bp7.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{Y();$();Z();X();W();m()});
2
+ export{y as Ch,G as Dh,U as Eh,w as Fh};
@@ -0,0 +1,6 @@
1
+ import{Una as j}from"./cli-0.1.12-1hv04bp7.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
+ `:`
3
+ `)+z,H=D+1,D=q.indexOf(`
4
+ `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
+ `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
+ export{o as G5,O1 as H5,e as I5};
@@ -0,0 +1,2 @@
1
+ import{Vu as u,Wu as Wq,bK as h,cK as a,dB as c,eB as T,eK as Iq,fB as Vq,iB as r,jB as Fq,ov as g,qv as _q}from"./cli-0.1.12-242der7s.mjs";import{BP as m,CP as Xq,DP as V,EP as Yq,HP as S,IP as $q}from"./cli-0.1.12-vpnp7x5c.mjs";import{aS as p,bS as zq}from"./cli-0.1.12-2v18rdhk.mjs";import{GS as w,HS as Nq,SS as j,TS as Qq,US as d,WS as Zq}from"./cli-0.1.12-tyt09z73.mjs";import{QU as J,SU as N,nT as v,oT as H,pT as y,vV as Lq}from"./cli-0.1.12-bddm1g1s.mjs";import{qX as _,rX as q,sX as G,tX as B}from"./cli-0.1.12-04jw23rj.mjs";import{uX as Jq}from"./cli-0.1.12-ytxphavm.mjs";import{Haa as b,Taa as Gq}from"./cli-0.1.12-vzga2are.mjs";import{Qna as e,Una as qq}from"./cli-0.1.12-1hv04bp7.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=h((L)=>L.settings.syntaxHighlightingDisabled??!1),E=a();j("ThemePicker",!0);let W=m("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);d("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=p($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else u(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(g,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Oq,{patch:Aq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(S,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Oq,Aq;var Uq=qq(()=>{zq();Nq();Lq();Qq();Zq();Xq();Iq();Wq();Gq();_q();$q();Yq();Vq();Fq();B();Q=e(Jq(),1),Oq=r,Aq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
+ export{mq as If,Uq as Jf};
@@ -0,0 +1,2 @@
1
+ import{A8 as Q,Q8 as _}from"./cli-0.1.12-vzga2are.mjs";import{dea as I,eea as V}from"./cli-0.1.12-g3ycbjxk.mjs";import{eha as B,hha as X}from"./cli-0.1.12-rzpc0tr9.mjs";import{Una as T}from"./cli-0.1.12-1hv04bp7.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{V();X();_();A=new Map});
2
+ export{j as l6,P as m6,Y as n6,S as o6,O as p6,D as q6,Z as r6};
@@ -0,0 +1,2 @@
1
+ import{SU as K,eT as Z,vV as k}from"./cli-0.1.12-bddm1g1s.mjs";import{sX as J,tX as H}from"./cli-0.1.12-04jw23rj.mjs";import{O7 as v,P7 as Y}from"./cli-0.1.12-vzga2are.mjs";import{Qna as V,Una as X}from"./cli-0.1.12-1hv04bp7.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
2
+ export{N as Tf,C as Uf};
@@ -0,0 +1,2 @@
1
+ import{th as p}from"./cli-0.1.12-4tanq0qc.mjs";import{FK as I,GK as P,JK as t,Mk as W,Nk as l}from"./cli-0.1.12-242der7s.mjs";import{oX as J}from"./cli-0.1.12-h248m986.mjs";import{AX as i,zX as H}from"./cli-0.1.12-7xsa2bcp.mjs";import{BX as C,DX as n}from"./cli-0.1.12-d8m01qtm.mjs";import{N4 as R,T4 as V,l5 as c,m4 as v,t1 as S,y1 as m}from"./cli-0.1.12-y9598sy3.mjs";import{J6 as u,s6 as Q}from"./cli-0.1.12-rwzav5h1.mjs";import{Cba as T,D7 as Z,E7 as M,Fba as X,I7 as _,N7 as f,Vca as k,Wca as Y,Yba as O,ada as y,dda as D,gda as g}from"./cli-0.1.12-vzga2are.mjs";import{$da as $,aea as h}from"./cli-0.1.12-j6gjfwh5.mjs";import{Mea as q,Rea as E,Sea as A}from"./cli-0.1.12-4wwhk7dc.mjs";import{eha as x,hha as b}from"./cli-0.1.12-rzpc0tr9.mjs";import{Una as U}from"./cli-0.1.12-1hv04bp7.mjs";async function s(){if(Z())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let G=`${E().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":q};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(G,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=k(),G=await P({baseUrl:F,apiKey:D()?.apiKey});if(G===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:G.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:G,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,G)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),T((B)=>({...B,clientDataCache:G,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){_(w)}}var d;var r=U(()=>{u();l();c();p();A();O();b();i();h();f();m();M();t();n();g();y();d=$(()=>J.object({client_data:J.record(J.unknown()).nullish(),additional_model_options:J.array(J.object({model:J.string(),name:J.string(),description:J.string()}).transform(({model:w,name:F,description:G})=>({value:w,label:F,description:G}))).nullish()}))});
2
+ export{Yj as xb,r as yb};
@@ -0,0 +1,2 @@
1
+ import{Dh as G,Fh as m}from"./cli-0.1.12-m3q5r7wd.mjs";import{Gh as H,Hh as C}from"./cli-0.1.12-7v8dtyx8.mjs";import{IX as X,KX as Y,PX as R}from"./cli-0.1.12-trdq9d6x.mjs";import{RX as k,SX as y}from"./cli-0.1.12-c23pyffx.mjs";import{D1 as w,E1 as E,Y4 as B,l5 as f}from"./cli-0.1.12-y9598sy3.mjs";import{J6 as I,s6 as W}from"./cli-0.1.12-rwzav5h1.mjs";import{Cba as S,Fba as j,I7 as Q,N7 as x,Yba as D}from"./cli-0.1.12-vzga2are.mjs";import{Rea as V,Sea as b}from"./cli-0.1.12-4wwhk7dc.mjs";import{Una as Z}from"./cli-0.1.12-1hv04bp7.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));G();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await H())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await k(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();m();C();f();E();y();D();x()});
2
+ export{i as Ah,A as Bh};
@@ -0,0 +1,2 @@
1
+ import{Una as b}from"./cli-0.1.12-1hv04bp7.mjs";var j="Remote Control is only available with claude.ai subscriptions. Please use `/login` to sign in with your claude.ai account.",k="Remote Control disconnected.";var g=()=>{};
2
+ export{j as nd,k as od,g as pd};
@@ -0,0 +1,4 @@
1
+ import{Pc as c,Vc as Eq}from"./cli-0.1.12-0x3cd401.mjs";import{AG as O,BG as qq,DG as I,EG as Gq,KG as Cq,Kk as t,Lk as Aq,NG as b,OG as Lq,RG as Hq,SG as Jq,UF as v,UG as vq,VF as m,VG as y,WG as Qq,XF as Oq,XG as Xq,YG as Yq,ZG as $q,_G as d,bH as Dq,cA as l,ck as s,dA as wq,ek as Tq,ik as A,kk as D,lk as Mq,mk as h,nk as S,oG as n,ok as Rq,uG as e,ul as i,vG as P,wl as Fq,zG as jq}from"./cli-0.1.12-242der7s.mjs";import{$$ as V,Faa as F,Haa as L,I7 as a,N7 as Kq,Taa as Bq,haa as _q}from"./cli-0.1.12-vzga2are.mjs";import{Fga as o,Iga as N,Mga as Uq,Wga as p,_ga as Wq}from"./cli-0.1.12-rzpc0tr9.mjs";import{Yma as xq,jja as f}from"./cli-0.1.12-pm5cwtxh.mjs";import{Una as Zq}from"./cli-0.1.12-1hv04bp7.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claude/settings.json, shared with your team). To disable just for you: claude plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(i(Q),G)await t(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(s(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
+ ${G.join(`
3
+ `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Tq();Uq();Wq();Kq();Oq();Rq();Cq();jq();Aq();Mq();vq();Dq();Fq();wq();Eq();Lq();Bq();_q();k=["user","project","local"],HG=["user","project","local","managed"]});
4
+ export{k as Cc,HG as Dc,JG as Ec,QG as Fc,kq as Gc,XG as Hc,YG as Ic,$G as Jc,zG as Kc,ZG as Lc,xG as Mc,hq as Nc};