@claudiolabs/claudin 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/dist/chunks/AgentTool-1.1.7-ta4a3hax.mjs +1 -0
  2. package/dist/chunks/App-1.1.7-bb5w6zvz.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.7-92afe7m0.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.7-gx3qxf94.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.7-d0as32bc.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.7-etp5s6ps.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.7-9thhg137.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.7-wwv2cgzz.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.7-30wzw849.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.7-m040nz42.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.7-xemvy0mx.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.7-0synn9dr.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.7-be5cx2dr.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.7-b37xct1d.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.7-89avh225.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.7-1k5yjmhb.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.7-0qnmq973.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.7-h9tf58hn.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.7-93jsr9mr.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.7-gv6zzztg.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.7-p7e7703c.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.7-p8bxj585.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.7-nz62ycxc.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.7-p5pzbd37.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.7-6wwv8wy2.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.7-cdgerv78.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.7-h6jenc4t.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.7-3xbperzf.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.7-e1padvq0.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.7-s8xd8r8v.mjs +1 -0
  31. package/dist/chunks/agents-1.1.7-a5ngvagv.mjs +3 -0
  32. package/dist/chunks/agents-1.1.7-c2hzc3gf.mjs +110 -0
  33. package/dist/chunks/api-1.1.7-fkvjxbac.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.7-9j8vqr1m.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.7-fxfh1k7b.mjs +1 -0
  36. package/dist/chunks/auth-1.1.7-nrjefdt5.mjs +1 -0
  37. package/dist/chunks/auth-1.1.7-z48g7tsc.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.7-13583dda.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.7-s5qp83zy.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.7-4nc59aph.mjs +1 -0
  41. package/dist/chunks/branch-1.1.7-ar2367j0.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.7-qk1825qz.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.7-dfwv9704.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.7-ergk9b5s.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.7-re0t745d.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.7-pcfmgmj9.mjs +1 -0
  47. package/dist/chunks/btw-1.1.7-g8g55nje.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.7-m8tx1e1a.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.7-5t3nj244.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.7-wk6sr8ma.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.7-3wd7pt08.mjs +4 -0
  52. package/dist/chunks/caches-1.1.7-rwrwkfmc.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.7-3pkhb5wd.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.7-zw1vywa0.mjs +1 -0
  55. package/dist/chunks/clear-1.1.7-xme70phr.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.7-cjgtkhn0.mjs +1 -0
  57. package/dist/chunks/cli-1.1.7-00r59ren.mjs +2 -0
  58. package/dist/chunks/cli-1.1.7-00xwy80x.mjs +2 -0
  59. package/dist/chunks/cli-1.1.7-07qdmr1e.mjs +15 -0
  60. package/dist/chunks/cli-1.1.7-0dn48gxn.mjs +2 -0
  61. package/dist/chunks/cli-1.1.7-0ptzaz8z.mjs +15 -0
  62. package/dist/chunks/cli-1.1.7-0sbdqb04.mjs +45 -0
  63. package/dist/chunks/cli-1.1.7-0yczgbvg.mjs +133 -0
  64. package/dist/chunks/cli-1.1.7-17ye23zw.mjs +2 -0
  65. package/dist/chunks/cli-1.1.7-1fyag9qs.mjs +18 -0
  66. package/dist/chunks/cli-1.1.7-1pt67y2k.mjs +2 -0
  67. package/dist/chunks/cli-1.1.7-1sjzdsvt.mjs +2 -0
  68. package/dist/chunks/cli-1.1.7-1wwtwdd5.mjs +2 -0
  69. package/dist/chunks/cli-1.1.7-237ea9et.mjs +2 -0
  70. package/dist/chunks/cli-1.1.7-247qq37c.mjs +2 -0
  71. package/dist/chunks/cli-1.1.7-29jtrc18.mjs +6 -0
  72. package/dist/chunks/cli-1.1.7-2j5f9qsg.mjs +2 -0
  73. package/dist/chunks/cli-1.1.7-370fzee5.mjs +202 -0
  74. package/dist/chunks/cli-1.1.7-37vw5n8s.mjs +4 -0
  75. package/dist/chunks/cli-1.1.7-3c1fz3tj.mjs +3 -0
  76. package/dist/chunks/cli-1.1.7-3c59vjgs.mjs +3 -0
  77. package/dist/chunks/cli-1.1.7-3s5h7xwp.mjs +2 -0
  78. package/dist/chunks/cli-1.1.7-3yd94afn.mjs +2 -0
  79. package/dist/chunks/cli-1.1.7-45h3r40v.mjs +2 -0
  80. package/dist/chunks/cli-1.1.7-4jb3802k.mjs +6 -0
  81. package/dist/chunks/cli-1.1.7-4vn54hra.mjs +2 -0
  82. package/dist/chunks/cli-1.1.7-4w65nb7a.mjs +2 -0
  83. package/dist/chunks/cli-1.1.7-53ptk5md.mjs +2 -0
  84. package/dist/chunks/cli-1.1.7-55sdnwxx.mjs +2 -0
  85. package/dist/chunks/cli-1.1.7-5a7dx8xv.mjs +67 -0
  86. package/dist/chunks/cli-1.1.7-5afzqeez.mjs +2 -0
  87. package/dist/chunks/cli-1.1.7-5hy6nrtz.mjs +2 -0
  88. package/dist/chunks/cli-1.1.7-5jtj2ksb.mjs +2 -0
  89. package/dist/chunks/cli-1.1.7-5p7dfxc8.mjs +3 -0
  90. package/dist/chunks/cli-1.1.7-5xg15za9.mjs +2 -0
  91. package/dist/chunks/cli-1.1.7-6327xnsa.mjs +16 -0
  92. package/dist/chunks/cli-1.1.7-6393tfa4.mjs +2 -0
  93. package/dist/chunks/cli-1.1.7-6k9j331s.mjs +2 -0
  94. package/dist/chunks/cli-1.1.7-709xp7h3.mjs +2 -0
  95. package/dist/chunks/cli-1.1.7-70dq06tj.mjs +2 -0
  96. package/dist/chunks/cli-1.1.7-77fv8msz.mjs +4 -0
  97. package/dist/chunks/cli-1.1.7-78k36t0w.mjs +2 -0
  98. package/dist/chunks/cli-1.1.7-7m4h7kpa.mjs +4 -0
  99. package/dist/chunks/cli-1.1.7-7ykpgzpd.mjs +2 -0
  100. package/dist/chunks/cli-1.1.7-7zf1vqxk.mjs +2 -0
  101. package/dist/chunks/cli-1.1.7-80x28qvs.mjs +50 -0
  102. package/dist/chunks/cli-1.1.7-89xnqhx8.mjs +2 -0
  103. package/dist/chunks/cli-1.1.7-8e3qerv0.mjs +59 -0
  104. package/dist/chunks/cli-1.1.7-8f779vem.mjs +2 -0
  105. package/dist/chunks/cli-1.1.7-8hfhdq9h.mjs +2 -0
  106. package/dist/chunks/cli-1.1.7-8ht7sy5z.mjs +2 -0
  107. package/dist/chunks/cli-1.1.7-8pdn9bvd.mjs +2 -0
  108. package/dist/chunks/cli-1.1.7-8wevpaq4.mjs +25 -0
  109. package/dist/chunks/cli-1.1.7-903dbpsw.mjs +2 -0
  110. package/dist/chunks/cli-1.1.7-91mbg6d2.mjs +2 -0
  111. package/dist/chunks/cli-1.1.7-9cr42mkf.mjs +2 -0
  112. package/dist/chunks/cli-1.1.7-9twa1dgn.mjs +2 -0
  113. package/dist/chunks/cli-1.1.7-9wapsqqm.mjs +2 -0
  114. package/dist/chunks/cli-1.1.7-a16gq5s9.mjs +2 -0
  115. package/dist/chunks/cli-1.1.7-a1sffgeq.mjs +2 -0
  116. package/dist/chunks/cli-1.1.7-a34vkb0g.mjs +2 -0
  117. package/dist/chunks/cli-1.1.7-a59w1d0k.mjs +3 -0
  118. package/dist/chunks/cli-1.1.7-a5zb1mk0.mjs +4 -0
  119. package/dist/chunks/cli-1.1.7-aa0r6myz.mjs +3 -0
  120. package/dist/chunks/cli-1.1.7-ac6ve6ks.mjs +2 -0
  121. package/dist/chunks/cli-1.1.7-ah2nkq02.mjs +2 -0
  122. package/dist/chunks/cli-1.1.7-aq4f719n.mjs +2 -0
  123. package/dist/chunks/cli-1.1.7-asb7164v.mjs +18 -0
  124. package/dist/chunks/cli-1.1.7-asnfms2j.mjs +15 -0
  125. package/dist/chunks/cli-1.1.7-avggtwyk.mjs +2 -0
  126. package/dist/chunks/cli-1.1.7-avhh3ykn.mjs +2 -0
  127. package/dist/chunks/cli-1.1.7-avqm93yx.mjs +2 -0
  128. package/dist/chunks/cli-1.1.7-avsxepp6.mjs +2 -0
  129. package/dist/chunks/cli-1.1.7-az0v3sy4.mjs +39 -0
  130. package/dist/chunks/cli-1.1.7-b9n3ev12.mjs +2 -0
  131. package/dist/chunks/cli-1.1.7-be3bepsr.mjs +2 -0
  132. package/dist/chunks/cli-1.1.7-bgyeh9f1.mjs +5 -0
  133. package/dist/chunks/cli-1.1.7-bmf232xq.mjs +2 -0
  134. package/dist/chunks/cli-1.1.7-bn38catj.mjs +2 -0
  135. package/dist/chunks/cli-1.1.7-bsg2jwaz.mjs +2 -0
  136. package/dist/chunks/cli-1.1.7-c32f3enb.mjs +2 -0
  137. package/dist/chunks/cli-1.1.7-ca9b0k53.mjs +3 -0
  138. package/dist/chunks/cli-1.1.7-cfchvspf.mjs +12 -0
  139. package/dist/chunks/cli-1.1.7-cgcj8thk.mjs +2 -0
  140. package/dist/chunks/cli-1.1.7-cs5v2rwy.mjs +2 -0
  141. package/dist/chunks/cli-1.1.7-czrff7za.mjs +3 -0
  142. package/dist/chunks/cli-1.1.7-d44wcebs.mjs +2 -0
  143. package/dist/chunks/cli-1.1.7-dax2hwtd.mjs +2 -0
  144. package/dist/chunks/cli-1.1.7-dc8xhdv8.mjs +4 -0
  145. package/dist/chunks/cli-1.1.7-dnhbz3wm.mjs +2 -0
  146. package/dist/chunks/cli-1.1.7-dy1j64nd.mjs +2 -0
  147. package/dist/chunks/cli-1.1.7-e30xkgx8.mjs +2 -0
  148. package/dist/chunks/cli-1.1.7-e3ks80fz.mjs +6 -0
  149. package/dist/chunks/cli-1.1.7-e8rpt6jw.mjs +2 -0
  150. package/dist/chunks/cli-1.1.7-e9p7j4yw.mjs +2 -0
  151. package/dist/chunks/cli-1.1.7-esfdh0fz.mjs +4 -0
  152. package/dist/chunks/cli-1.1.7-eskazk5w.mjs +4 -0
  153. package/dist/chunks/cli-1.1.7-f47dycnc.mjs +2 -0
  154. package/dist/chunks/cli-1.1.7-fdmx4e0y.mjs +2 -0
  155. package/dist/chunks/cli-1.1.7-fh4kn809.mjs +2 -0
  156. package/dist/chunks/cli-1.1.7-fhatjz8y.mjs +2 -0
  157. package/dist/chunks/cli-1.1.7-fq766b4m.mjs +2 -0
  158. package/dist/chunks/cli-1.1.7-ftcsqcsq.mjs +2 -0
  159. package/dist/chunks/cli-1.1.7-ftxzdrxy.mjs +2 -0
  160. package/dist/chunks/cli-1.1.7-fzz66s7r.mjs +2 -0
  161. package/dist/chunks/cli-1.1.7-g69xsadf.mjs +5652 -0
  162. package/dist/chunks/cli-1.1.7-g84cjr3b.mjs +2 -0
  163. package/dist/chunks/cli-1.1.7-g9j8sjq1.mjs +2 -0
  164. package/dist/chunks/cli-1.1.7-gejatr5b.mjs +3 -0
  165. package/dist/chunks/cli-1.1.7-gjhe5v32.mjs +3 -0
  166. package/dist/chunks/cli-1.1.7-gm3vnavd.mjs +4 -0
  167. package/dist/chunks/cli-1.1.7-gsqhqm2p.mjs +2 -0
  168. package/dist/chunks/cli-1.1.7-gzqe35hp.mjs +2 -0
  169. package/dist/chunks/cli-1.1.7-h3m2ycf6.mjs +2 -0
  170. package/dist/chunks/cli-1.1.7-h6bad0y5.mjs +2 -0
  171. package/dist/chunks/cli-1.1.7-hht84q9b.mjs +2 -0
  172. package/dist/chunks/cli-1.1.7-j5s1nhz9.mjs +2 -0
  173. package/dist/chunks/cli-1.1.7-k0cy37cc.mjs +9 -0
  174. package/dist/chunks/cli-1.1.7-kbdranyx.mjs +2 -0
  175. package/dist/chunks/cli-1.1.7-m09c3zsc.mjs +1 -0
  176. package/dist/chunks/cli-1.1.7-m20ny6y6.mjs +2 -0
  177. package/dist/chunks/cli-1.1.7-m2jc7mts.mjs +2 -0
  178. package/dist/chunks/cli-1.1.7-m2rq9nq2.mjs +2 -0
  179. package/dist/chunks/cli-1.1.7-m4c2snne.mjs +42 -0
  180. package/dist/chunks/cli-1.1.7-m554nr3m.mjs +2 -0
  181. package/dist/chunks/cli-1.1.7-m7cx26gk.mjs +2 -0
  182. package/dist/chunks/cli-1.1.7-m7nyg4k2.mjs +2 -0
  183. package/dist/chunks/cli-1.1.7-m8kaqtm6.mjs +2 -0
  184. package/dist/chunks/cli-1.1.7-mxwxnfss.mjs +24 -0
  185. package/dist/chunks/cli-1.1.7-n642xdmn.mjs +2 -0
  186. package/dist/chunks/cli-1.1.7-n7ne87b1.mjs +8 -0
  187. package/dist/chunks/cli-1.1.7-natjc2r8.mjs +2 -0
  188. package/dist/chunks/cli-1.1.7-nay1q35s.mjs +2 -0
  189. package/dist/chunks/cli-1.1.7-ncn26e96.mjs +2 -0
  190. package/dist/chunks/cli-1.1.7-nctcfgp0.mjs +2 -0
  191. package/dist/chunks/cli-1.1.7-ndrf1r31.mjs +2 -0
  192. package/dist/chunks/cli-1.1.7-nywqmry6.mjs +2 -0
  193. package/dist/chunks/cli-1.1.7-p3a6cf8x.mjs +2 -0
  194. package/dist/chunks/cli-1.1.7-pcg3fv2k.mjs +2 -0
  195. package/dist/chunks/cli-1.1.7-phntwycy.mjs +21 -0
  196. package/dist/chunks/cli-1.1.7-pm52s8y4.mjs +2 -0
  197. package/dist/chunks/cli-1.1.7-q5cm825a.mjs +6 -0
  198. package/dist/chunks/cli-1.1.7-q711j0bm.mjs +2 -0
  199. package/dist/chunks/cli-1.1.7-qgh6hg9x.mjs +2 -0
  200. package/dist/chunks/cli-1.1.7-qgj0pn3h.mjs +2 -0
  201. package/dist/chunks/cli-1.1.7-qrkqafcw.mjs +2 -0
  202. package/dist/chunks/cli-1.1.7-qztj9jjs.mjs +17 -0
  203. package/dist/chunks/cli-1.1.7-r4j6e9vx.mjs +2 -0
  204. package/dist/chunks/cli-1.1.7-r8e45107.mjs +3 -0
  205. package/dist/chunks/cli-1.1.7-r9bf07me.mjs +9 -0
  206. package/dist/chunks/cli-1.1.7-rb629pva.mjs +2 -0
  207. package/dist/chunks/cli-1.1.7-rj70j99r.mjs +4 -0
  208. package/dist/chunks/cli-1.1.7-rtcac49z.mjs +2 -0
  209. package/dist/chunks/cli-1.1.7-sf4he5ds.mjs +17 -0
  210. package/dist/chunks/cli-1.1.7-sj06qxbn.mjs +2 -0
  211. package/dist/chunks/cli-1.1.7-sqb51kyw.mjs +34 -0
  212. package/dist/chunks/cli-1.1.7-svmaept7.mjs +2 -0
  213. package/dist/chunks/cli-1.1.7-svpmye16.mjs +2 -0
  214. package/dist/chunks/cli-1.1.7-sy3nh37g.mjs +2 -0
  215. package/dist/chunks/cli-1.1.7-t3vmh9fp.mjs +12 -0
  216. package/dist/chunks/cli-1.1.7-t4band33.mjs +133 -0
  217. package/dist/chunks/cli-1.1.7-t7869eaw.mjs +2 -0
  218. package/dist/chunks/cli-1.1.7-t9k89a7f.mjs +12 -0
  219. package/dist/chunks/cli-1.1.7-tdw09vfy.mjs +6 -0
  220. package/dist/chunks/cli-1.1.7-tebqyjfs.mjs +2 -0
  221. package/dist/chunks/cli-1.1.7-tj4a73gm.mjs +2 -0
  222. package/dist/chunks/cli-1.1.7-tpjej6bk.mjs +2 -0
  223. package/dist/chunks/cli-1.1.7-ttgr0wt8.mjs +5 -0
  224. package/dist/chunks/cli-1.1.7-v90pc090.mjs +2 -0
  225. package/dist/chunks/cli-1.1.7-v9fzr2wc.mjs +25 -0
  226. package/dist/chunks/cli-1.1.7-vbkerts0.mjs +58 -0
  227. package/dist/chunks/cli-1.1.7-veert5hx.mjs +7 -0
  228. package/dist/chunks/cli-1.1.7-vegzg3sv.mjs +2 -0
  229. package/dist/chunks/cli-1.1.7-vgnyrdsx.mjs +2 -0
  230. package/dist/chunks/cli-1.1.7-vhahreqp.mjs +2 -0
  231. package/dist/chunks/cli-1.1.7-vyxrgqgm.mjs +2 -0
  232. package/dist/chunks/cli-1.1.7-w7qe5saq.mjs +24 -0
  233. package/dist/chunks/cli-1.1.7-wczms3t6.mjs +3 -0
  234. package/dist/chunks/cli-1.1.7-wfpdnn8a.mjs +2 -0
  235. package/dist/chunks/cli-1.1.7-wnveck2c.mjs +2 -0
  236. package/dist/chunks/cli-1.1.7-wtb39gjs.mjs +2 -0
  237. package/dist/chunks/cli-1.1.7-wv4k34jv.mjs +20 -0
  238. package/dist/chunks/cli-1.1.7-wxge1tea.mjs +24 -0
  239. package/dist/chunks/cli-1.1.7-x1mh9vnk.mjs +2 -0
  240. package/dist/chunks/cli-1.1.7-x20kjfvg.mjs +6 -0
  241. package/dist/chunks/cli-1.1.7-x3bpzsev.mjs +24 -0
  242. package/dist/chunks/cli-1.1.7-x5gz0q3n.mjs +2 -0
  243. package/dist/chunks/cli-1.1.7-xbk0ex0w.mjs +2 -0
  244. package/dist/chunks/cli-1.1.7-xr9v14yb.mjs +2 -0
  245. package/dist/chunks/cli-1.1.7-xtcz12t9.mjs +3 -0
  246. package/dist/chunks/cli-1.1.7-xv2n043b.mjs +4 -0
  247. package/dist/chunks/cli-1.1.7-xzys836y.mjs +2 -0
  248. package/dist/chunks/cli-1.1.7-yatnaq1h.mjs +2 -0
  249. package/dist/chunks/cli-1.1.7-ybe5t1at.mjs +2 -0
  250. package/dist/chunks/cli-1.1.7-yejce50d.mjs +2 -0
  251. package/dist/chunks/cli-1.1.7-yf8r2p8t.mjs +2 -0
  252. package/dist/chunks/cli-1.1.7-yvfbn06j.mjs +2 -0
  253. package/dist/chunks/cli-1.1.7-z10gdn10.mjs +2 -0
  254. package/dist/chunks/cli-1.1.7-z7aapeb8.mjs +2 -0
  255. package/dist/chunks/cli-1.1.7-zaz1vdc9.mjs +2 -0
  256. package/dist/chunks/cli-1.1.7-zcxfemky.mjs +2 -0
  257. package/dist/chunks/cli-1.1.7-zk6vqjve.mjs +4 -0
  258. package/dist/chunks/cli-1.1.7-zpr5n1k0.mjs +2 -0
  259. package/dist/chunks/cli-1.1.7-zxr9h2qd.mjs +2 -0
  260. package/dist/chunks/client-1.1.7-zsnn57xt.mjs +1 -0
  261. package/dist/chunks/color-1.1.7-71p1dnta.mjs +1 -0
  262. package/dist/chunks/compact-1.1.7-e6arr03s.mjs +3 -0
  263. package/dist/chunks/config-1.1.7-g3d8g7g2.mjs +1 -0
  264. package/dist/chunks/config-1.1.7-nejamxf1.mjs +1 -0
  265. package/dist/chunks/constants-1.1.7-454c76bh.mjs +1 -0
  266. package/dist/chunks/context-1.1.7-p0442d4z.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.7-v71njac2.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.7-8ywg16g5.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.7-qw0bnew9.mjs +1 -0
  270. package/dist/chunks/copy-1.1.7-dfdpmxck.mjs +9 -0
  271. package/dist/chunks/cost-1.1.7-2r3rhrq2.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.7-abvj6vqh.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.7-a0t9ns7c.mjs +1 -0
  274. package/dist/chunks/debug-1.1.7-r660pqwp.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.7-79kexp4a.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.7-sy4n39yq.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.7-p52dxbn9.mjs +1 -0
  278. package/dist/chunks/detection-1.1.7-8e2z2aph.mjs +1 -0
  279. package/dist/chunks/diff-1.1.7-yt5nf8gj.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.7-emta4vaz.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.7-4tam9mf5.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.7-93ms6qsc.mjs +1 -0
  283. package/dist/chunks/effort-1.1.7-1fp3rh9f.mjs +13 -0
  284. package/dist/chunks/engine-1.1.7-yngz7phq.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.7-j2h0sf63.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.7-9y71p8yv.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.7-pd11v0zx.mjs +1 -0
  288. package/dist/chunks/environments-1.1.7-ck5qxyqy.mjs +1 -0
  289. package/dist/chunks/errors-1.1.7-emnk1qwy.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.7-2ksd03w4.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.7-jqbw02pg.mjs +1 -0
  292. package/dist/chunks/exit-1.1.7-wpfmrwdn.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.7-b8tcxb5d.mjs +1 -0
  294. package/dist/chunks/export-1.1.7-zz79hhsz.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.7-dt936zfb.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.7-shwjbctc.mjs +1 -0
  297. package/dist/chunks/fast-1.1.7-w7b1aqwk.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.7-n9j2nr98.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.7-c0a02n4j.mjs +1 -0
  300. package/dist/chunks/git-1.1.7-9z0c0q3r.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.7-akhn8qhf.mjs +1 -0
  302. package/dist/chunks/goal-1.1.7-aw2580k9.mjs +4 -0
  303. package/dist/chunks/grove-1.1.7-kjhhr548.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.7-w746wv7x.mjs +1 -0
  305. package/dist/chunks/headless-1.1.7-y4j0h9z8.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.7-rct22hze.mjs +6 -0
  307. package/dist/chunks/help-1.1.7-y0c2ms52.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.7-xzn9ad36.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.7-emcz8q8s.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.7-jp0h65wb.mjs +1 -0
  311. package/dist/chunks/ide-1.1.7-x8w21qd6.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.7-wy6ecw5p.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.7-nw4e83c9.mjs +1 -0
  314. package/dist/chunks/index-1.1.7-189vzkzr.mjs +1 -0
  315. package/dist/chunks/index-1.1.7-23d4va8a.mjs +2 -0
  316. package/dist/chunks/index-1.1.7-36msf70m.mjs +1 -0
  317. package/dist/chunks/index-1.1.7-6nnrrxjs.mjs +9 -0
  318. package/dist/chunks/index-1.1.7-78kw401a.mjs +1 -0
  319. package/dist/chunks/index-1.1.7-9ag3vjcz.mjs +1 -0
  320. package/dist/chunks/index-1.1.7-abraka41.mjs +1 -0
  321. package/dist/chunks/index-1.1.7-apb8ray2.mjs +1 -0
  322. package/dist/chunks/index-1.1.7-b2e78mb7.mjs +1 -0
  323. package/dist/chunks/index-1.1.7-cxtqz2cx.mjs +1 -0
  324. package/dist/chunks/index-1.1.7-ep7qax1n.mjs +5 -0
  325. package/dist/chunks/index-1.1.7-fahb6z70.mjs +1 -0
  326. package/dist/chunks/index-1.1.7-g7me7k35.mjs +1 -0
  327. package/dist/chunks/index-1.1.7-gsdssjta.mjs +2 -0
  328. package/dist/chunks/index-1.1.7-n6c5mp02.mjs +1 -0
  329. package/dist/chunks/index-1.1.7-ngf7447d.mjs +9 -0
  330. package/dist/chunks/index-1.1.7-pbdmsdx4.mjs +1 -0
  331. package/dist/chunks/index-1.1.7-q3560epc.mjs +23 -0
  332. package/dist/chunks/index-1.1.7-ta1t48pj.mjs +30 -0
  333. package/dist/chunks/index-1.1.7-vrvbq3pq.mjs +1 -0
  334. package/dist/chunks/index-1.1.7-w3k1r4fj.mjs +1 -0
  335. package/dist/chunks/index-1.1.7-w40fc6hp.mjs +1 -0
  336. package/dist/chunks/index-1.1.7-wrysc35z.mjs +1 -0
  337. package/dist/chunks/init-1.1.7-35gnmfwk.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.7-tckq0ph3.mjs +1 -0
  339. package/dist/chunks/ink-1.1.7-00k9mpt1.mjs +1 -0
  340. package/dist/chunks/insights-1.1.7-0733jret.mjs +870 -0
  341. package/dist/chunks/install-1.1.7-hm4q4vg3.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.7-td4vg9cd.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.7-wcg8aqqz.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.7-c07a380v.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.7-46866tc9.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.7-8bb3ehzd.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.7-tvqfhagb.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.7-21sf5wht.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.7-0fsxdwtb.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.7-dme9wkc4.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.7-tn0by9qv.mjs +1 -0
  352. package/dist/chunks/log-1.1.7-3ry9dq4f.mjs +1 -0
  353. package/dist/chunks/main-1.1.7-z35y86b1.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.7-hkhdt6m1.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.7-fhw7q8d8.mjs +4 -0
  356. package/dist/chunks/mcp-1.1.7-h76xwxj7.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.7-qxaxb5n8.mjs +17 -0
  358. package/dist/chunks/mcpb-1.1.7-fh84mmcn.mjs +1 -0
  359. package/dist/chunks/memory-1.1.7-rja0b4e3.mjs +72 -0
  360. package/dist/chunks/model-1.1.7-8h1q1vva.mjs +1 -0
  361. package/dist/chunks/model-1.1.7-qn8a1vgp.mjs +2 -0
  362. package/dist/chunks/node-1.1.7-br2cm23q.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.7-xprf6gf8.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.7-xpv4sdj1.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.7-gwp6rb3c.mjs +1 -0
  366. package/dist/chunks/package-L37ZVTF4-1.1.7-tv37rpat.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.7-hxb18rh0.mjs +1 -0
  368. package/dist/chunks/parser-1.1.7-gxryvbxk.mjs +1 -0
  369. package/dist/chunks/passes-1.1.7-pgn5svgj.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.7-hgf49z9d.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.7-vwc3xcnn.mjs +1 -0
  372. package/dist/chunks/plan-1.1.7-5pd1ezzt.mjs +1 -0
  373. package/dist/chunks/plist-1.1.7-bgk5tgcz.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.7-b2da306j.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.7-75pwt0x6.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.7-wgq2tns5.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.7-9jppavfm.mjs +2 -0
  378. package/dist/chunks/print-1.1.7-hcpp1psj.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.7-0rhg1990.mjs +1 -0
  380. package/dist/chunks/process-1.1.7-sz6mk2ax.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.7-h988ta18.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.7-xj9yd54c.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.7-9n1828tb.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.7-xbh39c5a.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.7-tm2b4n8b.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.7-x5r0fnay.mjs +13 -0
  387. package/dist/chunks/provider-1.1.7-8nkjfnp7.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.7-3hy3rra6.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.7-wpwhgmgj.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.7-qqwd9f98.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.7-z933969a.mjs +34 -0
  392. package/dist/chunks/registry-1.1.7-zt717sdd.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.7-hkyqmgj0.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.7-90wc1rrg.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.7-gyhmvnmb.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.7-kxpxxqbj.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.7-931g1df4.mjs +1 -0
  398. package/dist/chunks/rename-1.1.7-pdcr2fqc.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.7-wp87p7xp.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.7-7z04w8w8.mjs +1 -0
  401. package/dist/chunks/resume-1.1.7-8p8bahzg.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.7-v2ajm3w0.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.7-kj11gm8y.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.7-7d5db3vq.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.7-3waw05qr.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.7-zhrme3nq.mjs +1 -0
  407. package/dist/chunks/session-1.1.7-b11ew8hv.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.7-3w4gd5vr.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.7-f1ktfmjp.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.7-0qj40f5g.mjs +1 -0
  411. package/dist/chunks/settings-1.1.7-ayf1fhp5.mjs +1 -0
  412. package/dist/chunks/setup-1.1.7-r7d17dtz.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.7-agpm7pdt.mjs +1 -0
  414. package/dist/chunks/skills-1.1.7-xj1mgj1w.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.7-vy3ha1nb.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.7-m03evcd7.mjs +1 -0
  417. package/dist/chunks/state-1.1.7-a4z499r3.mjs +1 -0
  418. package/dist/chunks/stats-1.1.7-jxbtehxs.mjs +6 -0
  419. package/dist/chunks/status-1.1.7-j7b4zw5r.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.7-2feaa91e.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.7-7yjfarpg.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.7-74xbzaa7.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.7-y101nwrn.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.7-h5693rcg.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.7-yjke98c8.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.7-tq3qth9s.mjs +1 -0
  427. package/dist/chunks/theme-1.1.7-5n3fsvh8.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.7-8wxb9n8q.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.7-rvzk8rt2.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.7-s3xnzfs1.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.7-b99evmfg.mjs +1 -0
  432. package/dist/chunks/tools-1.1.7-1bs5mhnz.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.7-sk8ewavd.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.7-tcj3tmer.mjs +69 -0
  435. package/dist/chunks/types-1.1.7-dt3wqg7h.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.7-5d0eav8t.mjs +4 -0
  437. package/dist/chunks/update-1.1.7-cc4860dp.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.7-xnqh398m.mjs +1 -0
  439. package/dist/chunks/upload-1.1.7-e1023tbm.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.7-54yd40wz.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.7-98renjvs.mjs +1 -0
  442. package/dist/chunks/usage-1.1.7-vr50x59b.mjs +1 -0
  443. package/dist/chunks/util-1.1.7-07n3bcf9.mjs +1 -0
  444. package/dist/chunks/utils-1.1.7-2gs8qp9e.mjs +1 -0
  445. package/dist/chunks/vim-1.1.7-1hdr63bv.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.7-dqnb4ew5.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.7-0vhx6jqw.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.7-hbab147s.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.7-sqc7rhqm.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.7-bgka176p.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.7-ddyrd6w3.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.7-tjp6nrw4.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.6-x7n9ytww.mjs +0 -1
  456. package/dist/chunks/App-1.1.6-c6rweprc.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.6-6ftn2yne.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.6-sj9zmmtv.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.6-f6ddwjrx.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.6-k9tn0pj4.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.6-b6d7x0de.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.6-y50my4k1.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.6-f6qdk76y.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.6-qyx4qzdq.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.6-awsqgemk.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.6-0vbvbtf9.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.6-jzgd98ar.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.6-z8tyzxq7.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.6-rgb0vr20.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.6-exfknbe3.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.6-hhchpr6n.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.6-ved8vv0y.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.6-zgf6affr.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.6-sgk5jenb.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.6-vewcvzfk.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.6-45ejtamd.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.6-zpmyhte9.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.6-2fgj9d8c.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.6-k3acgnms.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.6-wm9edxm3.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.6-f5gagp9s.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.6-6zdk3xg9.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.6-6y5y18e6.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.6-x8wczn2w.mjs +0 -1
  485. package/dist/chunks/agents-1.1.6-fmrq78j4.mjs +0 -110
  486. package/dist/chunks/agents-1.1.6-zrjhvysw.mjs +0 -3
  487. package/dist/chunks/api-1.1.6-qc845wwh.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.6-sx36762w.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.6-e1sg8hzr.mjs +0 -1
  490. package/dist/chunks/auth-1.1.6-mwxg5qqn.mjs +0 -1
  491. package/dist/chunks/auth-1.1.6-v1axwwg0.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.6-cda55b0q.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.6-mmxfdsn5.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.6-8k7ks7mv.mjs +0 -1
  495. package/dist/chunks/branch-1.1.6-a2650qeh.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.6-q66r3557.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.6-rm4k81zg.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.6-mkvt3gef.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.6-bec2ff5f.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.6-ye36jn3c.mjs +0 -1
  501. package/dist/chunks/btw-1.1.6-39ecm53z.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.6-8ae7998s.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.6-x2qyv1zr.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.6-bbs2wjce.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.6-8z470d9r.mjs +0 -4
  506. package/dist/chunks/caches-1.1.6-tyzqjw4d.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.6-c7kf2b1x.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.6-p1b608sq.mjs +0 -1
  509. package/dist/chunks/clear-1.1.6-dkjf4k5d.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.6-10knjhkd.mjs +0 -1
  511. package/dist/chunks/cli-1.1.6-01m0y5pz.mjs +0 -4
  512. package/dist/chunks/cli-1.1.6-03q6hzb7.mjs +0 -6
  513. package/dist/chunks/cli-1.1.6-0a0rct1w.mjs +0 -2
  514. package/dist/chunks/cli-1.1.6-0ah57p2z.mjs +0 -2
  515. package/dist/chunks/cli-1.1.6-0fp87j9f.mjs +0 -2
  516. package/dist/chunks/cli-1.1.6-0ge1d3cp.mjs +0 -2
  517. package/dist/chunks/cli-1.1.6-0jyg24vq.mjs +0 -2
  518. package/dist/chunks/cli-1.1.6-0kb90hx1.mjs +0 -2
  519. package/dist/chunks/cli-1.1.6-0xjp9jz6.mjs +0 -2
  520. package/dist/chunks/cli-1.1.6-19szys5x.mjs +0 -2
  521. package/dist/chunks/cli-1.1.6-1mjbd775.mjs +0 -12
  522. package/dist/chunks/cli-1.1.6-1sc3w33e.mjs +0 -2
  523. package/dist/chunks/cli-1.1.6-1tj2qv82.mjs +0 -2
  524. package/dist/chunks/cli-1.1.6-20kf1gk7.mjs +0 -2
  525. package/dist/chunks/cli-1.1.6-20yc7rgs.mjs +0 -2
  526. package/dist/chunks/cli-1.1.6-2dcm44zg.mjs +0 -20
  527. package/dist/chunks/cli-1.1.6-2kmx6xmk.mjs +0 -3
  528. package/dist/chunks/cli-1.1.6-30cxzm2b.mjs +0 -2
  529. package/dist/chunks/cli-1.1.6-31b4v7gz.mjs +0 -25
  530. package/dist/chunks/cli-1.1.6-33fpz8x7.mjs +0 -2
  531. package/dist/chunks/cli-1.1.6-38h340te.mjs +0 -2
  532. package/dist/chunks/cli-1.1.6-3key30vx.mjs +0 -3
  533. package/dist/chunks/cli-1.1.6-3q41k22r.mjs +0 -2
  534. package/dist/chunks/cli-1.1.6-3ry7rc5m.mjs +0 -2
  535. package/dist/chunks/cli-1.1.6-3rzrj8b1.mjs +0 -2
  536. package/dist/chunks/cli-1.1.6-3v7ddvyw.mjs +0 -2
  537. package/dist/chunks/cli-1.1.6-3vfjds47.mjs +0 -3
  538. package/dist/chunks/cli-1.1.6-40zqm9vv.mjs +0 -17
  539. package/dist/chunks/cli-1.1.6-41a0kjv6.mjs +0 -2
  540. package/dist/chunks/cli-1.1.6-43e69bmz.mjs +0 -2
  541. package/dist/chunks/cli-1.1.6-46emz4hv.mjs +0 -2
  542. package/dist/chunks/cli-1.1.6-486ywdzz.mjs +0 -34
  543. package/dist/chunks/cli-1.1.6-4cqcrvjd.mjs +0 -59
  544. package/dist/chunks/cli-1.1.6-4hcybe4h.mjs +0 -18
  545. package/dist/chunks/cli-1.1.6-4jgf1x2b.mjs +0 -2
  546. package/dist/chunks/cli-1.1.6-4npgtt47.mjs +0 -4
  547. package/dist/chunks/cli-1.1.6-4pykf467.mjs +0 -5
  548. package/dist/chunks/cli-1.1.6-4rhrh6wc.mjs +0 -4
  549. package/dist/chunks/cli-1.1.6-4xxms177.mjs +0 -2
  550. package/dist/chunks/cli-1.1.6-54ze8m08.mjs +0 -2
  551. package/dist/chunks/cli-1.1.6-5g7e8tag.mjs +0 -8
  552. package/dist/chunks/cli-1.1.6-5qc0271v.mjs +0 -15
  553. package/dist/chunks/cli-1.1.6-5qjzxazj.mjs +0 -4
  554. package/dist/chunks/cli-1.1.6-5qrpf10a.mjs +0 -2
  555. package/dist/chunks/cli-1.1.6-5sfks2z8.mjs +0 -15
  556. package/dist/chunks/cli-1.1.6-5t4djfy8.mjs +0 -9
  557. package/dist/chunks/cli-1.1.6-5wbzt7d4.mjs +0 -2
  558. package/dist/chunks/cli-1.1.6-5wjyk23t.mjs +0 -2
  559. package/dist/chunks/cli-1.1.6-65jzejgc.mjs +0 -3
  560. package/dist/chunks/cli-1.1.6-6asnf40m.mjs +0 -1
  561. package/dist/chunks/cli-1.1.6-6yyqhc13.mjs +0 -25
  562. package/dist/chunks/cli-1.1.6-74vm7ckx.mjs +0 -6
  563. package/dist/chunks/cli-1.1.6-76mvpwdf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.6-7nfkb575.mjs +0 -2
  565. package/dist/chunks/cli-1.1.6-7t3befhs.mjs +0 -67
  566. package/dist/chunks/cli-1.1.6-7x719hyg.mjs +0 -18
  567. package/dist/chunks/cli-1.1.6-81cgzqdp.mjs +0 -2
  568. package/dist/chunks/cli-1.1.6-81cx55jz.mjs +0 -2
  569. package/dist/chunks/cli-1.1.6-87x1xfg6.mjs +0 -2
  570. package/dist/chunks/cli-1.1.6-8fta5jph.mjs +0 -2
  571. package/dist/chunks/cli-1.1.6-8he41vy5.mjs +0 -2
  572. package/dist/chunks/cli-1.1.6-8ne4jamj.mjs +0 -2
  573. package/dist/chunks/cli-1.1.6-8sm76jvw.mjs +0 -2
  574. package/dist/chunks/cli-1.1.6-8t3q96j9.mjs +0 -2
  575. package/dist/chunks/cli-1.1.6-93rtfb0q.mjs +0 -2
  576. package/dist/chunks/cli-1.1.6-9742qvjc.mjs +0 -6
  577. package/dist/chunks/cli-1.1.6-97ga1091.mjs +0 -2
  578. package/dist/chunks/cli-1.1.6-982yfp5a.mjs +0 -2
  579. package/dist/chunks/cli-1.1.6-9a5c9435.mjs +0 -2
  580. package/dist/chunks/cli-1.1.6-9crjy3pc.mjs +0 -2
  581. package/dist/chunks/cli-1.1.6-9nk20f3c.mjs +0 -2
  582. package/dist/chunks/cli-1.1.6-9ta3aynd.mjs +0 -2
  583. package/dist/chunks/cli-1.1.6-a1n79s5x.mjs +0 -2
  584. package/dist/chunks/cli-1.1.6-a44r4vht.mjs +0 -24
  585. package/dist/chunks/cli-1.1.6-a5mwjrkm.mjs +0 -17
  586. package/dist/chunks/cli-1.1.6-a5rqr2qe.mjs +0 -2
  587. package/dist/chunks/cli-1.1.6-ag09czr1.mjs +0 -15
  588. package/dist/chunks/cli-1.1.6-akzxyfxv.mjs +0 -2
  589. package/dist/chunks/cli-1.1.6-avthrr5w.mjs +0 -2
  590. package/dist/chunks/cli-1.1.6-ay4779jc.mjs +0 -2
  591. package/dist/chunks/cli-1.1.6-bd0v70jd.mjs +0 -3
  592. package/dist/chunks/cli-1.1.6-bfchr542.mjs +0 -2
  593. package/dist/chunks/cli-1.1.6-bm7xjqpq.mjs +0 -2
  594. package/dist/chunks/cli-1.1.6-bmskrghf.mjs +0 -2
  595. package/dist/chunks/cli-1.1.6-bqwv3wss.mjs +0 -2
  596. package/dist/chunks/cli-1.1.6-cam8a83k.mjs +0 -4
  597. package/dist/chunks/cli-1.1.6-cgszz7xc.mjs +0 -24
  598. package/dist/chunks/cli-1.1.6-ckg7fah6.mjs +0 -5649
  599. package/dist/chunks/cli-1.1.6-d1aef3g5.mjs +0 -2
  600. package/dist/chunks/cli-1.1.6-d1wgc2vg.mjs +0 -21
  601. package/dist/chunks/cli-1.1.6-d2pp9pa0.mjs +0 -2
  602. package/dist/chunks/cli-1.1.6-de79nefp.mjs +0 -2
  603. package/dist/chunks/cli-1.1.6-dey5k0n6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.6-df94b7hs.mjs +0 -2
  605. package/dist/chunks/cli-1.1.6-dnehk6am.mjs +0 -2
  606. package/dist/chunks/cli-1.1.6-dsx3y9mh.mjs +0 -2
  607. package/dist/chunks/cli-1.1.6-e1q2xpwf.mjs +0 -2
  608. package/dist/chunks/cli-1.1.6-ea1sc7sa.mjs +0 -2
  609. package/dist/chunks/cli-1.1.6-ee36w2t8.mjs +0 -2
  610. package/dist/chunks/cli-1.1.6-ehy04hr0.mjs +0 -2
  611. package/dist/chunks/cli-1.1.6-eyrk5vjw.mjs +0 -4
  612. package/dist/chunks/cli-1.1.6-f5754mz3.mjs +0 -2
  613. package/dist/chunks/cli-1.1.6-f5z1d08s.mjs +0 -18
  614. package/dist/chunks/cli-1.1.6-f64yrj9v.mjs +0 -2
  615. package/dist/chunks/cli-1.1.6-f6bm23x3.mjs +0 -2
  616. package/dist/chunks/cli-1.1.6-f90g0cqz.mjs +0 -39
  617. package/dist/chunks/cli-1.1.6-fdgfprar.mjs +0 -24
  618. package/dist/chunks/cli-1.1.6-fe9m89qf.mjs +0 -2
  619. package/dist/chunks/cli-1.1.6-fgd52mbf.mjs +0 -2
  620. package/dist/chunks/cli-1.1.6-fjb1m1sm.mjs +0 -2
  621. package/dist/chunks/cli-1.1.6-fk2ggp7p.mjs +0 -2
  622. package/dist/chunks/cli-1.1.6-g7jsvjwq.mjs +0 -12
  623. package/dist/chunks/cli-1.1.6-gc4cmade.mjs +0 -3
  624. package/dist/chunks/cli-1.1.6-ghcyvb6h.mjs +0 -3
  625. package/dist/chunks/cli-1.1.6-gz7wve40.mjs +0 -3
  626. package/dist/chunks/cli-1.1.6-hc502eny.mjs +0 -4
  627. package/dist/chunks/cli-1.1.6-hhggf5vv.mjs +0 -2
  628. package/dist/chunks/cli-1.1.6-hkwgvwvj.mjs +0 -2
  629. package/dist/chunks/cli-1.1.6-hm146gsn.mjs +0 -2
  630. package/dist/chunks/cli-1.1.6-hn0crvf2.mjs +0 -2
  631. package/dist/chunks/cli-1.1.6-hq074xvz.mjs +0 -2
  632. package/dist/chunks/cli-1.1.6-hs257f9p.mjs +0 -12
  633. package/dist/chunks/cli-1.1.6-hsg23shn.mjs +0 -2
  634. package/dist/chunks/cli-1.1.6-j0a0gz8c.mjs +0 -7
  635. package/dist/chunks/cli-1.1.6-j4kwtpg1.mjs +0 -2
  636. package/dist/chunks/cli-1.1.6-j8ngkdcw.mjs +0 -3
  637. package/dist/chunks/cli-1.1.6-jf4c40zg.mjs +0 -42
  638. package/dist/chunks/cli-1.1.6-jf5kbdjm.mjs +0 -2
  639. package/dist/chunks/cli-1.1.6-jhcpddxn.mjs +0 -2
  640. package/dist/chunks/cli-1.1.6-jhyybymr.mjs +0 -3
  641. package/dist/chunks/cli-1.1.6-jjwhpfnp.mjs +0 -2
  642. package/dist/chunks/cli-1.1.6-jrbegmwv.mjs +0 -2
  643. package/dist/chunks/cli-1.1.6-jx50q0sg.mjs +0 -2
  644. package/dist/chunks/cli-1.1.6-k53tny07.mjs +0 -6
  645. package/dist/chunks/cli-1.1.6-k93n8vn6.mjs +0 -50
  646. package/dist/chunks/cli-1.1.6-knbv8711.mjs +0 -4
  647. package/dist/chunks/cli-1.1.6-m7j2d00d.mjs +0 -2
  648. package/dist/chunks/cli-1.1.6-mantfyp6.mjs +0 -4
  649. package/dist/chunks/cli-1.1.6-mas7f8cv.mjs +0 -2
  650. package/dist/chunks/cli-1.1.6-metnr539.mjs +0 -2
  651. package/dist/chunks/cli-1.1.6-mf4x6fdv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.6-mtznq91n.mjs +0 -2
  653. package/dist/chunks/cli-1.1.6-mvnvwgf3.mjs +0 -2
  654. package/dist/chunks/cli-1.1.6-mvxjj1r6.mjs +0 -2
  655. package/dist/chunks/cli-1.1.6-mwbmfs2b.mjs +0 -2
  656. package/dist/chunks/cli-1.1.6-myrs2n90.mjs +0 -2
  657. package/dist/chunks/cli-1.1.6-n45gq9d8.mjs +0 -2
  658. package/dist/chunks/cli-1.1.6-n7p5sqsx.mjs +0 -2
  659. package/dist/chunks/cli-1.1.6-nhrgk95j.mjs +0 -2
  660. package/dist/chunks/cli-1.1.6-np5xkmje.mjs +0 -2
  661. package/dist/chunks/cli-1.1.6-nrzxwdbd.mjs +0 -2
  662. package/dist/chunks/cli-1.1.6-pfcwqc6w.mjs +0 -2
  663. package/dist/chunks/cli-1.1.6-pgv3skh2.mjs +0 -2
  664. package/dist/chunks/cli-1.1.6-pmr766bh.mjs +0 -2
  665. package/dist/chunks/cli-1.1.6-psfxpvvw.mjs +0 -2
  666. package/dist/chunks/cli-1.1.6-q3h6xhnn.mjs +0 -2
  667. package/dist/chunks/cli-1.1.6-q7s5rc60.mjs +0 -4
  668. package/dist/chunks/cli-1.1.6-q9srpsg7.mjs +0 -2
  669. package/dist/chunks/cli-1.1.6-qem2tnkw.mjs +0 -202
  670. package/dist/chunks/cli-1.1.6-qhzcv293.mjs +0 -45
  671. package/dist/chunks/cli-1.1.6-qnnerc4q.mjs +0 -2
  672. package/dist/chunks/cli-1.1.6-qv0e27w2.mjs +0 -2
  673. package/dist/chunks/cli-1.1.6-qwafs3e9.mjs +0 -2
  674. package/dist/chunks/cli-1.1.6-r7hh6n18.mjs +0 -4
  675. package/dist/chunks/cli-1.1.6-rbnb0fqm.mjs +0 -2
  676. package/dist/chunks/cli-1.1.6-rh4e5g6a.mjs +0 -2
  677. package/dist/chunks/cli-1.1.6-rvy9sw8e.mjs +0 -6
  678. package/dist/chunks/cli-1.1.6-skhrp917.mjs +0 -2
  679. package/dist/chunks/cli-1.1.6-smg65f0q.mjs +0 -2
  680. package/dist/chunks/cli-1.1.6-sqny5wf8.mjs +0 -2
  681. package/dist/chunks/cli-1.1.6-sw693n6v.mjs +0 -2
  682. package/dist/chunks/cli-1.1.6-t0t4f70r.mjs +0 -2
  683. package/dist/chunks/cli-1.1.6-tgfrtwj2.mjs +0 -2
  684. package/dist/chunks/cli-1.1.6-tgq92np6.mjs +0 -12
  685. package/dist/chunks/cli-1.1.6-tjhvveh6.mjs +0 -9
  686. package/dist/chunks/cli-1.1.6-tp1n5k71.mjs +0 -5
  687. package/dist/chunks/cli-1.1.6-tskpkzwj.mjs +0 -2
  688. package/dist/chunks/cli-1.1.6-txa283mq.mjs +0 -2
  689. package/dist/chunks/cli-1.1.6-v4rcg48d.mjs +0 -2
  690. package/dist/chunks/cli-1.1.6-vds1erg6.mjs +0 -2
  691. package/dist/chunks/cli-1.1.6-vgfrx9zz.mjs +0 -2
  692. package/dist/chunks/cli-1.1.6-vjv782dn.mjs +0 -3
  693. package/dist/chunks/cli-1.1.6-vvj4w9mq.mjs +0 -133
  694. package/dist/chunks/cli-1.1.6-w3r2012k.mjs +0 -3
  695. package/dist/chunks/cli-1.1.6-w4nw5yvg.mjs +0 -16
  696. package/dist/chunks/cli-1.1.6-w88sm78a.mjs +0 -2
  697. package/dist/chunks/cli-1.1.6-wbyqyqra.mjs +0 -58
  698. package/dist/chunks/cli-1.1.6-wce7z6cj.mjs +0 -2
  699. package/dist/chunks/cli-1.1.6-wg1zsvap.mjs +0 -2
  700. package/dist/chunks/cli-1.1.6-wh81pn41.mjs +0 -2
  701. package/dist/chunks/cli-1.1.6-wvfzbx8v.mjs +0 -2
  702. package/dist/chunks/cli-1.1.6-xc6fegry.mjs +0 -2
  703. package/dist/chunks/cli-1.1.6-xk9kbqjj.mjs +0 -2
  704. package/dist/chunks/cli-1.1.6-xr47dpcr.mjs +0 -2
  705. package/dist/chunks/cli-1.1.6-y1ef9wcz.mjs +0 -2
  706. package/dist/chunks/cli-1.1.6-y5sst8yn.mjs +0 -2
  707. package/dist/chunks/cli-1.1.6-y629c7ce.mjs +0 -2
  708. package/dist/chunks/cli-1.1.6-yqeznpw6.mjs +0 -2
  709. package/dist/chunks/cli-1.1.6-yqy3sf86.mjs +0 -2
  710. package/dist/chunks/cli-1.1.6-yztkt1v8.mjs +0 -2
  711. package/dist/chunks/cli-1.1.6-z39g71z3.mjs +0 -2
  712. package/dist/chunks/cli-1.1.6-zf2eh2hp.mjs +0 -133
  713. package/dist/chunks/cli-1.1.6-zfad1fbs.mjs +0 -2
  714. package/dist/chunks/client-1.1.6-mkz9k1b4.mjs +0 -1
  715. package/dist/chunks/color-1.1.6-a74e7c15.mjs +0 -1
  716. package/dist/chunks/compact-1.1.6-pfqqd4k1.mjs +0 -3
  717. package/dist/chunks/config-1.1.6-4a4h6yby.mjs +0 -1
  718. package/dist/chunks/config-1.1.6-cj6rdsn7.mjs +0 -1
  719. package/dist/chunks/constants-1.1.6-fth9gfja.mjs +0 -1
  720. package/dist/chunks/context-1.1.6-zj8xnjdz.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.6-fd13cdj6.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.6-6tqbjb48.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.6-vp5s0ap6.mjs +0 -1
  724. package/dist/chunks/copy-1.1.6-kx6fygzk.mjs +0 -9
  725. package/dist/chunks/cost-1.1.6-hbeb6njn.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.6-zpnd7td2.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.6-0x11qyv4.mjs +0 -1
  728. package/dist/chunks/debug-1.1.6-dmmf0z35.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.6-awhxj7xq.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.6-2gfyp9we.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.6-3fyxh3xk.mjs +0 -1
  732. package/dist/chunks/detection-1.1.6-faf39qph.mjs +0 -1
  733. package/dist/chunks/diff-1.1.6-33264egy.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.6-nvrp802y.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.6-w7kzf528.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.6-5xc2vg5z.mjs +0 -1
  737. package/dist/chunks/effort-1.1.6-6cbcyqdk.mjs +0 -13
  738. package/dist/chunks/engine-1.1.6-tdfrzxcr.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.6-jatxh6m2.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.6-m9k7s3fw.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.6-pc4q1v3x.mjs +0 -1
  742. package/dist/chunks/environments-1.1.6-m8qj6rzb.mjs +0 -1
  743. package/dist/chunks/errors-1.1.6-w953w7jb.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.6-gs4fqq7g.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.6-c2jzb6a9.mjs +0 -1
  746. package/dist/chunks/exit-1.1.6-6t37q0td.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.6-s8znafd6.mjs +0 -1
  748. package/dist/chunks/export-1.1.6-9y48q96m.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.6-pem0zs1k.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.6-9j6d1zrm.mjs +0 -1
  751. package/dist/chunks/fast-1.1.6-rw7jfy8x.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.6-n2r6dz69.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.6-ynh9p0pa.mjs +0 -1
  754. package/dist/chunks/git-1.1.6-dmzq4r9j.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.6-y1rrmmjd.mjs +0 -1
  756. package/dist/chunks/goal-1.1.6-jstgq5mn.mjs +0 -4
  757. package/dist/chunks/grove-1.1.6-zaec0hcr.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.6-tg7gg2w1.mjs +0 -1
  759. package/dist/chunks/headless-1.1.6-kbhp9r32.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.6-y2trj2kf.mjs +0 -6
  761. package/dist/chunks/help-1.1.6-bffctqy8.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.6-3xjn2nz3.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.6-qd6nqd1x.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.6-zgz1tg7z.mjs +0 -1
  765. package/dist/chunks/ide-1.1.6-ds1w26yv.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.6-81b82bpc.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.6-0sybnqr5.mjs +0 -1
  768. package/dist/chunks/index-1.1.6-1as8yrj3.mjs +0 -1
  769. package/dist/chunks/index-1.1.6-77xmgpm9.mjs +0 -2
  770. package/dist/chunks/index-1.1.6-8er16qt9.mjs +0 -1
  771. package/dist/chunks/index-1.1.6-aqs218jc.mjs +0 -1
  772. package/dist/chunks/index-1.1.6-bp5ykp32.mjs +0 -1
  773. package/dist/chunks/index-1.1.6-dcz3x5f0.mjs +0 -1
  774. package/dist/chunks/index-1.1.6-dezs32mp.mjs +0 -1
  775. package/dist/chunks/index-1.1.6-e9dmdg4d.mjs +0 -1
  776. package/dist/chunks/index-1.1.6-kxgcs4jr.mjs +0 -2
  777. package/dist/chunks/index-1.1.6-n18eqfnp.mjs +0 -1
  778. package/dist/chunks/index-1.1.6-ncrqpack.mjs +0 -17
  779. package/dist/chunks/index-1.1.6-nfj2jf0j.mjs +0 -9
  780. package/dist/chunks/index-1.1.6-nnqd96xw.mjs +0 -1
  781. package/dist/chunks/index-1.1.6-q9zj36pw.mjs +0 -1
  782. package/dist/chunks/index-1.1.6-qmatppjr.mjs +0 -1
  783. package/dist/chunks/index-1.1.6-r1bmqay8.mjs +0 -30
  784. package/dist/chunks/index-1.1.6-sw2j9mqc.mjs +0 -1
  785. package/dist/chunks/index-1.1.6-tq6ss5ea.mjs +0 -1
  786. package/dist/chunks/index-1.1.6-vgm9924j.mjs +0 -5
  787. package/dist/chunks/index-1.1.6-vspc4xn7.mjs +0 -1
  788. package/dist/chunks/index-1.1.6-wm63hvx1.mjs +0 -9
  789. package/dist/chunks/index-1.1.6-xedyyfgd.mjs +0 -1
  790. package/dist/chunks/index-1.1.6-xz69gkvj.mjs +0 -1
  791. package/dist/chunks/init-1.1.6-hc2ca4dt.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.6-rf94v2mb.mjs +0 -1
  793. package/dist/chunks/ink-1.1.6-n63gvsds.mjs +0 -1
  794. package/dist/chunks/insights-1.1.6-f5g3mjjs.mjs +0 -870
  795. package/dist/chunks/install-1.1.6-9g5bvnbt.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.6-q742k1d8.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.6-2m0r94qq.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.6-ysyashvq.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.6-txkvfp2f.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.6-wdypqj1b.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.6-y954e8zr.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.6-3x744gm9.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.6-s7vq0hex.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.6-3brm7c6q.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.6-yjppjc3w.mjs +0 -1
  806. package/dist/chunks/log-1.1.6-wd96yvx0.mjs +0 -1
  807. package/dist/chunks/main-1.1.6-tszgcjw8.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.6-h7wrx977.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.6-4jn435jj.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.6-kttkg0aq.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.6-w2pzn4yq.mjs +0 -17
  812. package/dist/chunks/mcpb-1.1.6-123k4ssd.mjs +0 -1
  813. package/dist/chunks/memory-1.1.6-zwnxw7r1.mjs +0 -72
  814. package/dist/chunks/model-1.1.6-cgt0wpc7.mjs +0 -1
  815. package/dist/chunks/model-1.1.6-f8jat8v6.mjs +0 -2
  816. package/dist/chunks/node-1.1.6-hydke02w.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.6-e6mvmc8s.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.6-fpw7ztzc.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.6-2jny7104.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.6-1d5w8e0d.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.6-0hz3530h.mjs +0 -1
  822. package/dist/chunks/parser-1.1.6-qmfc1zqp.mjs +0 -1
  823. package/dist/chunks/passes-1.1.6-1tvcc5w4.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.6-53wetvk8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.6-q44j1e6z.mjs +0 -1
  826. package/dist/chunks/plan-1.1.6-n8400ecj.mjs +0 -1
  827. package/dist/chunks/plist-1.1.6-tkmbyyha.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.6-3zyn5n3k.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.6-nhwvnpaw.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.6-z5gj1xg2.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.6-0a6sda26.mjs +0 -2
  832. package/dist/chunks/print-1.1.6-c37g4fe5.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.6-yr53ykx0.mjs +0 -1
  834. package/dist/chunks/process-1.1.6-mvy7evbd.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.6-z74wmg31.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.6-98ma1epv.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.6-q1tcweyb.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.6-qfs7gmje.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.6-7wbfe88q.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.6-4vqjdqs8.mjs +0 -13
  841. package/dist/chunks/provider-1.1.6-px8m07p1.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.6-qfcj6rna.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.6-zpc167c0.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.6-g969jwnk.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.6-hxpvccxn.mjs +0 -34
  846. package/dist/chunks/registry-1.1.6-phrxb4h5.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.6-8xjvckwx.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.6-m01jm3hm.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.6-e7dvbp33.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.6-xch4tnhm.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.6-889wgdvn.mjs +0 -1
  852. package/dist/chunks/rename-1.1.6-5gm06z0q.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.6-gee84nsm.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.6-p4kaptcr.mjs +0 -1
  855. package/dist/chunks/resume-1.1.6-dad8d44r.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.6-ahd4a8a0.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.6-tnjw4cc8.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.6-d8khz20w.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.6-gvshrcnv.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.6-698zj2bb.mjs +0 -1
  861. package/dist/chunks/session-1.1.6-ygn8nthq.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.6-5tf3vq7n.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.6-qdcqxsyf.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.6-v8j65fxd.mjs +0 -1
  865. package/dist/chunks/settings-1.1.6-pqfqbqc8.mjs +0 -1
  866. package/dist/chunks/setup-1.1.6-8gpp5q84.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.6-sgbft9nd.mjs +0 -1
  868. package/dist/chunks/skills-1.1.6-xec48gah.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.6-xc1znvwg.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.6-09npj0tz.mjs +0 -1
  871. package/dist/chunks/state-1.1.6-h6ayf7sc.mjs +0 -1
  872. package/dist/chunks/stats-1.1.6-4yrvq5x0.mjs +0 -6
  873. package/dist/chunks/status-1.1.6-xjmnjsf0.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.6-feprt06h.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.6-v558v26d.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.6-fpxxmwz3.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.6-pvj5v856.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.6-w15n2smy.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.6-n8bvdqye.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.6-a7j2pxzn.mjs +0 -1
  881. package/dist/chunks/theme-1.1.6-6tqv5qg4.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.6-2ape1jwq.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.6-3mq1jb49.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.6-jkgfq8za.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.6-y0sb6bpz.mjs +0 -1
  886. package/dist/chunks/tools-1.1.6-rk47dxc1.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.6-vcnvxckf.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.6-jpzxj1ge.mjs +0 -69
  889. package/dist/chunks/types-1.1.6-vpfqv76z.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.6-qj0rj3n8.mjs +0 -4
  891. package/dist/chunks/update-1.1.6-1b0fwnqk.mjs +0 -72
  892. package/dist/chunks/upgrade-1.1.6-vwnszewt.mjs +0 -1
  893. package/dist/chunks/upload-1.1.6-y4dk84sr.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.6-rb6nathp.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.6-5tknhyb2.mjs +0 -1
  896. package/dist/chunks/usage-1.1.6-y17hrs2n.mjs +0 -1
  897. package/dist/chunks/util-1.1.6-jnjwsw36.mjs +0 -1
  898. package/dist/chunks/utils-1.1.6-v1ka47qy.mjs +0 -1
  899. package/dist/chunks/vim-1.1.6-a4e4tpt2.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.6-ka4q3f8n.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.6-tbtsan22.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.6-qj7bh0ea.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.6-bsfhrn83.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.6-dyrbeptb.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.6-j4mw0mtw.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.6-eck6m7db.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.6-0aspjywf.mjs → cli-1.1.7-72scj2da.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.6-1192yjjf.mjs → cli-1.1.7-8yk0ktps.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.6-gzsjjcf2.mjs → cli-1.1.7-c1q5d5ds.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.6-y9xnpn7x.mjs → cli-1.1.7-f0hcstcc.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.6-32gxvr4y.mjs → cli-1.1.7-h8bj6vzr.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.6-p9y9z3vv.mjs → cli-1.1.7-hr9a4wzy.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.6-phpnk311.mjs → cli-1.1.7-k69a0vax.mjs} +0 -0
@@ -0,0 +1,88 @@
1
+ import{Cb as yJ,Db as xz,Eb as rz,Fb as cz,Gb as iz,Hb as bJ}from"./cli-1.1.7-cgcj8thk.mjs";import{Jb as Tz}from"./cli-1.1.7-qgh6hg9x.mjs";import{Rb as TJ,Sb as xJ,Tb as MJ,Ub as wJ,Vb as fJ}from"./cli-1.1.7-yvfbn06j.mjs";import{Xb as kJ}from"./cli-1.1.7-709xp7h3.mjs";import{Se as VJ,Te as lJ}from"./cli-1.1.7-0ptzaz8z.mjs";import{if as EJ,kf as oz,mf as DK}from"./cli-1.1.7-5hy6nrtz.mjs";import{Bf as LJ,Ff as OJ,zf as mz}from"./cli-1.1.7-zcxfemky.mjs";import{Jn as UJ,KH as JJ,Kn as CK,LH as Cz,MH as KJ,NH as ZJ,PH as $J,QH as YJ,RH as XJ,SH as QJ,TH as WJ,bm as AJ,ck as RJ,cm as vz,dk as NK,gm as BK}from"./cli-1.1.7-g69xsadf.mjs";import"./cli-1.1.7-vegzg3sv.mjs";import"./cli-1.1.7-asnfms2j.mjs";import"./cli-1.1.7-qrkqafcw.mjs";import"./cli-1.1.7-vyxrgqgm.mjs";import"./cli-1.1.7-z10gdn10.mjs";import"./cli-1.1.7-sf4he5ds.mjs";import"./cli-1.1.7-00xwy80x.mjs";import"./cli-1.1.7-pcg3fv2k.mjs";import"./cli-1.1.7-247qq37c.mjs";import{AW as _K,uW as DJ}from"./cli-1.1.7-5jtj2ksb.mjs";import"./cli-1.1.7-9cr42mkf.mjs";import"./cli-1.1.7-yf8r2p8t.mjs";import{WW as az,_W as RK}from"./cli-1.1.7-dnhbz3wm.mjs";import"./cli-1.1.7-czrff7za.mjs";import"./cli-1.1.7-903dbpsw.mjs";import"./cli-1.1.7-f47dycnc.mjs";import"./cli-1.1.7-wxge1tea.mjs";import"./cli-1.1.7-wnveck2c.mjs";import"./cli-1.1.7-rb629pva.mjs";import"./cli-1.1.7-sqb51kyw.mjs";import"./cli-1.1.7-8e3qerv0.mjs";import"./cli-1.1.7-gejatr5b.mjs";import"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-h6bad0y5.mjs";import{H2 as pz,K2 as PK}from"./cli-1.1.7-53ptk5md.mjs";import"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-m7nyg4k2.mjs";import"./cli-1.1.7-tdw09vfy.mjs";import"./cli-1.1.7-be3bepsr.mjs";import"./cli-1.1.7-bsg2jwaz.mjs";import"./cli-1.1.7-ybe5t1at.mjs";import"./cli-1.1.7-29jtrc18.mjs";import"./cli-1.1.7-1pt67y2k.mjs";import"./cli-1.1.7-ac6ve6ks.mjs";import"./cli-1.1.7-dax2hwtd.mjs";import"./cli-1.1.7-x1mh9vnk.mjs";import"./cli-1.1.7-nay1q35s.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import{X7 as i,Y7 as FK}from"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import{x9 as G,y9 as pJ}from"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import"./cli-1.1.7-pm52s8y4.mjs";import{Aba as CJ,Bba as qK,Q_ as Wz,Rga as yz,S_ as HK,Zga as OK,aca as fz,bca as ez,cca as zJ,dca as cJ}from"./cli-1.1.7-370fzee5.mjs";import{cha as sz,dha as gJ,fha as Rz,mha as qz,uha as GK}from"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import{bia as PJ,jia as jK}from"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import{Xja as zz,Yja as NJ,_ja as QK}from"./cli-1.1.7-tj4a73gm.mjs";import{Dka as qJ,Eka as uz,Ika as oJ,_ka as q,bla as tz}from"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import{Fla as VK,yla as g}from"./cli-1.1.7-gm3vnavd.mjs";import{Lla as _J,Tla as BJ,Vla as WK}from"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import{lta as I}from"./cli-1.1.7-a1sffgeq.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
2
+ `).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
3
+ `)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
4
+ `))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
5
+ `)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
6
+ `);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
7
+ `),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
8
+ `);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
9
+ `)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
10
+ `)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
11
+ `);let Qz=A??U;if(Qz){m(`
12
+ `);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
13
+ `),m(`${Kz}${r}
14
+ `)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
15
+ `);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
16
+ `),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
17
+ `);J(G.dim("Environment ID: ")+`${j}
18
+ `)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
19
+ `);J(`
20
+ `),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
21
+ `)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
22
+ `)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
23
+ `)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
24
+ `)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
25
+ `)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
26
+ `)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
27
+ `)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
28
+ `);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
29
+ `)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
30
+ `),m(`${G.dim(XJ)}
31
+ `),$)m(`${G.red($)}
32
+ `)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
33
+ `);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
34
+ `);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
35
+ `);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
36
+ `),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
37
+ `):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.7-a0t9ns7c.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.7-pcfmgmj9.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
38
+ Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.7-vwc3xcnn.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
39
+ (default: same-dir)
40
+ --capacity <N> Max concurrent sessions in worktree or
41
+ same-dir mode (default: ${vJ})
42
+ --[no-]create-session-in-dir Pre-create a session in the current
43
+ directory; in worktree mode this session
44
+ stays in cwd while on-demand sessions get
45
+ isolated worktrees (default: on)
46
+ `:"",R=`
47
+ Remote Control - Connect your local environment to claude.ai/code
48
+
49
+ USAGE
50
+ claude remote-control [options]
51
+ OPTIONS
52
+ --name <name> Name for the session (shown in claude.ai/code)
53
+ --permission-mode <mode> Permission mode for spawned sessions
54
+ (${J})
55
+ --debug-file <path> Write debug logs to file
56
+ -v, --verbose Enable verbose output
57
+ -h, --help Show this help
58
+ ${Y}
59
+ DESCRIPTION
60
+ Remote Control allows you to control sessions on your local device from
61
+ claude.ai/code (https://claude.ai/code). Run this command in the
62
+ directory you want to work in, then connect from the Claude app or web.
63
+ ${K?`
64
+ Remote Control runs as a persistent server that accepts multiple concurrent
65
+ sessions in the current directory. One session is pre-created on start so
66
+ you have somewhere to type immediately. Use --spawn=worktree to isolate
67
+ each on-demand session in its own git worktree, or --spawn=session for
68
+ the classic single-session mode (exits when that session ends). Press 'w'
69
+ during runtime to toggle between same-dir and worktree.
70
+ `:""}
71
+ NOTES
72
+ - You must be logged in with a Claude account that has a subscription
73
+ - Run \`claude\` first in the directory to accept the workspace trust dialog
74
+ ${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
75
+ `:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.7-a0t9ns7c.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.7-vwc3xcnn.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-1.1.7-nejamxf1.mjs");_();let{initSinks:k}=await import("./sinks-1.1.7-agpm7pdt.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.7-a4z499r3.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.7-nrjefdt5.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.7-dfwv9704.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.7-nejamxf1.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
76
+ Remote Control lets you access this CLI session from the web (claude.ai/code)
77
+ or the Claude app, so you can pick up where you left off on any device.
78
+
79
+ You can disconnect remote access anytime by running /remote-control again.
80
+ `);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-1.1.7-9z0c0q3r.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.7-jp0h65wb.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
81
+ Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
82
+
83
+ Spawn mode for this project:
84
+ `+` [1] same-dir — sessions share the current directory (default)
85
+ `+` [2] worktree — each session gets an isolated git worktree
86
+
87
+ `+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
88
+ `);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.7-pcfmgmj9.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.7-nrjefdt5.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-1.1.7-p52dxbn9.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.7-a0t9ns7c.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.7-pcfmgmj9.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.7-a4z499r3.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.7-nejamxf1.mjs");R();let{initSinks:U}=await import("./sinks-1.1.7-agpm7pdt.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.7-dfwv9704.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-1.1.7-9z0c0q3r.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.7-jp0h65wb.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.7-a0t9ns7c.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
@@ -0,0 +1 @@
1
+ import{aja as Y,cja as O,dja as S,eja as _,kia as A,lia as k,via as G,wia as N,zia as M}from"./cli-1.1.7-5a7dx8xv.mjs";import{Dka as K,Eka as W,Ika as j,_ka as C,bla as R}from"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import{Ala as y,Fla as c}from"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-a1sffgeq.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
@@ -0,0 +1 @@
1
+ import{Uh as a,Vh as bJ}from"./cli-1.1.7-phntwycy.mjs";import{Wh as x,Xh as AJ}from"./cli-1.1.7-00r59ren.mjs";import{$H as $,EE as kJ,Hx as i,Ix as HJ,Rn as m,Sn as UJ,TQ as r,TR as o,Uy as u,Wy as WJ,aI as vJ,aR as TJ,fS as hJ,lU as s,mU as t,nU as DJ,yE as l}from"./cli-1.1.7-g69xsadf.mjs";import"./cli-1.1.7-vegzg3sv.mjs";import"./cli-1.1.7-asnfms2j.mjs";import"./cli-1.1.7-qrkqafcw.mjs";import"./cli-1.1.7-vyxrgqgm.mjs";import"./cli-1.1.7-z10gdn10.mjs";import"./cli-1.1.7-sf4he5ds.mjs";import"./cli-1.1.7-00xwy80x.mjs";import"./cli-1.1.7-pcg3fv2k.mjs";import"./cli-1.1.7-247qq37c.mjs";import"./cli-1.1.7-5jtj2ksb.mjs";import"./cli-1.1.7-9cr42mkf.mjs";import"./cli-1.1.7-yf8r2p8t.mjs";import"./cli-1.1.7-dnhbz3wm.mjs";import"./cli-1.1.7-czrff7za.mjs";import"./cli-1.1.7-903dbpsw.mjs";import"./cli-1.1.7-f47dycnc.mjs";import"./cli-1.1.7-wxge1tea.mjs";import"./cli-1.1.7-wnveck2c.mjs";import{LY as c,NY as IJ,oY as g,pY as QJ}from"./cli-1.1.7-rb629pva.mjs";import"./cli-1.1.7-sqb51kyw.mjs";import{EZ as GJ,I1 as NJ,b1 as k,d1 as v,u1 as j,w1 as KJ}from"./cli-1.1.7-8e3qerv0.mjs";import"./cli-1.1.7-gejatr5b.mjs";import"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-h6bad0y5.mjs";import"./cli-1.1.7-53ptk5md.mjs";import"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-m7nyg4k2.mjs";import"./cli-1.1.7-tdw09vfy.mjs";import"./cli-1.1.7-be3bepsr.mjs";import"./cli-1.1.7-bsg2jwaz.mjs";import"./cli-1.1.7-ybe5t1at.mjs";import"./cli-1.1.7-29jtrc18.mjs";import{p4 as F,q4 as W,r4 as d}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as zJ}from"./cli-1.1.7-ac6ve6ks.mjs";import"./cli-1.1.7-dax2hwtd.mjs";import"./cli-1.1.7-x1mh9vnk.mjs";import"./cli-1.1.7-nay1q35s.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import"./cli-1.1.7-pm52s8y4.mjs";import{Mba as p,Nba as C,Vea as S,dca as ZJ,rfa as FJ}from"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import{Fla as YJ,yla as f}from"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import{gta as R,kta as XJ}from"./cli-1.1.7-a1sffgeq.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
@@ -0,0 +1,3 @@
1
+ import{FX as p,GX as f,HX as a,IX as S}from"./cli-1.1.7-f47dycnc.mjs";import{Vea as d,rfa as C}from"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import{Kja as m,Lja as y,Mja as b}from"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import{kta as g}from"./cli-1.1.7-a1sffgeq.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
2
+
3
+ Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
@@ -0,0 +1 @@
1
+ import"./cli-1.1.7-a1sffgeq.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
@@ -0,0 +1,21 @@
1
+ import{V2 as h,Z2 as zz}from"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import{U6 as m,s7 as e}from"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import{Cga as v,Fga as r,rga as y,zga as s}from"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import{_ka as k,bla as o}from"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import{yra as a,zna as b}from"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import{kta as n}from"./cli-1.1.7-a1sffgeq.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
2
+
3
+ `)){let w=B.split(`
4
+ `).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
5
+ `));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
6
+ `);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
7
+ `)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
8
+ `)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
9
+ For GitHub Copilot: run /provider and choose GitHub Copilot.
10
+ For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
11
+ `);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
12
+ ${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
13
+ ${z.error.slice(0,300)}
14
+
15
+ Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
16
+ ${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
17
+ Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
18
+ `));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
19
+ `)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
20
+
21
+ `)});Qz();export{jz as call};
@@ -0,0 +1,4 @@
1
+ import{b3 as L,c3 as P,d3 as $,h3 as Q,i3 as U,j3 as V,k3 as j}from"./cli-1.1.7-m7nyg4k2.mjs";import{kta as Z}from"./cli-1.1.7-a1sffgeq.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
2
+ No API requests yet this session.
3
+ Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
4
+ `)}};var A=Z(()=>{j();$()});A();export{O as call};
@@ -0,0 +1 @@
1
+ import{$h as b,_h as a}from"./cli-1.1.7-91mbg6d2.mjs";import"./cli-1.1.7-vbkerts0.mjs";import"./cli-1.1.7-dc8xhdv8.mjs";import"./cli-1.1.7-g69xsadf.mjs";import"./cli-1.1.7-vegzg3sv.mjs";import"./cli-1.1.7-asnfms2j.mjs";import"./cli-1.1.7-qrkqafcw.mjs";import"./cli-1.1.7-vyxrgqgm.mjs";import"./cli-1.1.7-z10gdn10.mjs";import"./cli-1.1.7-sf4he5ds.mjs";import"./cli-1.1.7-00xwy80x.mjs";import"./cli-1.1.7-pcg3fv2k.mjs";import"./cli-1.1.7-247qq37c.mjs";import"./cli-1.1.7-5jtj2ksb.mjs";import"./cli-1.1.7-9cr42mkf.mjs";import"./cli-1.1.7-yf8r2p8t.mjs";import"./cli-1.1.7-dnhbz3wm.mjs";import"./cli-1.1.7-czrff7za.mjs";import"./cli-1.1.7-903dbpsw.mjs";import"./cli-1.1.7-f47dycnc.mjs";import"./cli-1.1.7-wxge1tea.mjs";import"./cli-1.1.7-wnveck2c.mjs";import"./cli-1.1.7-rb629pva.mjs";import"./cli-1.1.7-sqb51kyw.mjs";import"./cli-1.1.7-8e3qerv0.mjs";import"./cli-1.1.7-gejatr5b.mjs";import"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-h6bad0y5.mjs";import"./cli-1.1.7-53ptk5md.mjs";import"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-m7nyg4k2.mjs";import"./cli-1.1.7-tdw09vfy.mjs";import"./cli-1.1.7-be3bepsr.mjs";import"./cli-1.1.7-bsg2jwaz.mjs";import"./cli-1.1.7-ybe5t1at.mjs";import"./cli-1.1.7-29jtrc18.mjs";import"./cli-1.1.7-1pt67y2k.mjs";import"./cli-1.1.7-ac6ve6ks.mjs";import"./cli-1.1.7-dax2hwtd.mjs";import"./cli-1.1.7-x1mh9vnk.mjs";import"./cli-1.1.7-nay1q35s.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import"./cli-1.1.7-pm52s8y4.mjs";import"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import"./cli-1.1.7-a1sffgeq.mjs";b();export{a as clearSessionCaches};
@@ -0,0 +1 @@
1
+ import{Rga as X,U$ as V,V$ as W,W$ as J,Zga as H,cba as k,hba as N,wca as x,zca as A}from"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import{Fla as y,zla as b}from"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-a1sffgeq.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
@@ -0,0 +1 @@
1
+ import{$T as k,RT as a,ST as b,TT as c,UT as d,VT as e,WT as f,XT as g,YT as h,ZT as i,_T as j,aU as l,bU as m,cU as n,dU as o,eU as p,fU as q,gU as r,hU as s,iU as t}from"./cli-1.1.7-g69xsadf.mjs";import"./cli-1.1.7-vegzg3sv.mjs";import"./cli-1.1.7-asnfms2j.mjs";import"./cli-1.1.7-qrkqafcw.mjs";import"./cli-1.1.7-vyxrgqgm.mjs";import"./cli-1.1.7-z10gdn10.mjs";import"./cli-1.1.7-sf4he5ds.mjs";import"./cli-1.1.7-00xwy80x.mjs";import"./cli-1.1.7-pcg3fv2k.mjs";import"./cli-1.1.7-247qq37c.mjs";import"./cli-1.1.7-5jtj2ksb.mjs";import"./cli-1.1.7-9cr42mkf.mjs";import"./cli-1.1.7-yf8r2p8t.mjs";import"./cli-1.1.7-dnhbz3wm.mjs";import"./cli-1.1.7-czrff7za.mjs";import"./cli-1.1.7-903dbpsw.mjs";import"./cli-1.1.7-f47dycnc.mjs";import"./cli-1.1.7-wxge1tea.mjs";import"./cli-1.1.7-wnveck2c.mjs";import"./cli-1.1.7-rb629pva.mjs";import"./cli-1.1.7-sqb51kyw.mjs";import"./cli-1.1.7-8e3qerv0.mjs";import"./cli-1.1.7-gejatr5b.mjs";import"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-h6bad0y5.mjs";import"./cli-1.1.7-53ptk5md.mjs";import"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-m7nyg4k2.mjs";import"./cli-1.1.7-tdw09vfy.mjs";import"./cli-1.1.7-be3bepsr.mjs";import"./cli-1.1.7-bsg2jwaz.mjs";import"./cli-1.1.7-ybe5t1at.mjs";import"./cli-1.1.7-29jtrc18.mjs";import"./cli-1.1.7-1pt67y2k.mjs";import"./cli-1.1.7-ac6ve6ks.mjs";import"./cli-1.1.7-dax2hwtd.mjs";import"./cli-1.1.7-x1mh9vnk.mjs";import"./cli-1.1.7-nay1q35s.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import"./cli-1.1.7-pm52s8y4.mjs";import"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import"./cli-1.1.7-a1sffgeq.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
@@ -0,0 +1 @@
1
+ import{Yh as a,Zh as l}from"./cli-1.1.7-ndrf1r31.mjs";import"./cli-1.1.7-91mbg6d2.mjs";import"./cli-1.1.7-vbkerts0.mjs";import"./cli-1.1.7-asb7164v.mjs";import"./cli-1.1.7-dc8xhdv8.mjs";import"./cli-1.1.7-g69xsadf.mjs";import"./cli-1.1.7-vegzg3sv.mjs";import"./cli-1.1.7-asnfms2j.mjs";import"./cli-1.1.7-qrkqafcw.mjs";import"./cli-1.1.7-vyxrgqgm.mjs";import"./cli-1.1.7-z10gdn10.mjs";import"./cli-1.1.7-sf4he5ds.mjs";import"./cli-1.1.7-00xwy80x.mjs";import"./cli-1.1.7-pcg3fv2k.mjs";import"./cli-1.1.7-247qq37c.mjs";import"./cli-1.1.7-5jtj2ksb.mjs";import"./cli-1.1.7-9cr42mkf.mjs";import"./cli-1.1.7-yf8r2p8t.mjs";import"./cli-1.1.7-dnhbz3wm.mjs";import"./cli-1.1.7-czrff7za.mjs";import"./cli-1.1.7-903dbpsw.mjs";import"./cli-1.1.7-f47dycnc.mjs";import"./cli-1.1.7-wxge1tea.mjs";import"./cli-1.1.7-wnveck2c.mjs";import"./cli-1.1.7-rb629pva.mjs";import"./cli-1.1.7-sqb51kyw.mjs";import"./cli-1.1.7-8e3qerv0.mjs";import"./cli-1.1.7-gejatr5b.mjs";import"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-h6bad0y5.mjs";import"./cli-1.1.7-53ptk5md.mjs";import"./cli-1.1.7-rtcac49z.mjs";import"./cli-1.1.7-m7nyg4k2.mjs";import"./cli-1.1.7-tdw09vfy.mjs";import"./cli-1.1.7-be3bepsr.mjs";import"./cli-1.1.7-bsg2jwaz.mjs";import"./cli-1.1.7-ybe5t1at.mjs";import"./cli-1.1.7-29jtrc18.mjs";import"./cli-1.1.7-1pt67y2k.mjs";import"./cli-1.1.7-ac6ve6ks.mjs";import"./cli-1.1.7-dax2hwtd.mjs";import"./cli-1.1.7-x1mh9vnk.mjs";import"./cli-1.1.7-nay1q35s.mjs";import"./cli-1.1.7-gjhe5v32.mjs";import"./cli-1.1.7-6327xnsa.mjs";import"./cli-1.1.7-t3vmh9fp.mjs";import"./cli-1.1.7-x20kjfvg.mjs";import"./cli-1.1.7-0yczgbvg.mjs";import"./cli-1.1.7-gzqe35hp.mjs";import"./cli-1.1.7-pm52s8y4.mjs";import"./cli-1.1.7-370fzee5.mjs";import"./cli-1.1.7-xv2n043b.mjs";import"./cli-1.1.7-fhatjz8y.mjs";import"./cli-1.1.7-a16gq5s9.mjs";import"./cli-1.1.7-avhh3ykn.mjs";import"./cli-1.1.7-5a7dx8xv.mjs";import"./cli-1.1.7-svpmye16.mjs";import"./cli-1.1.7-1sjzdsvt.mjs";import"./cli-1.1.7-tj4a73gm.mjs";import"./cli-1.1.7-4jb3802k.mjs";import"./cli-1.1.7-55sdnwxx.mjs";import"./cli-1.1.7-gm3vnavd.mjs";import"./cli-1.1.7-aq4f719n.mjs";import"./cli-1.1.7-avggtwyk.mjs";import"./cli-1.1.7-kbdranyx.mjs";import"./cli-1.1.7-m4c2snne.mjs";import"./cli-1.1.7-w7qe5saq.mjs";import"./cli-1.1.7-q5cm825a.mjs";import"./cli-1.1.7-n642xdmn.mjs";import{kta as t}from"./cli-1.1.7-a1sffgeq.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
@@ -0,0 +1 @@
1
+ import{x2 as a,y2 as b,z2 as c}from"./cli-1.1.7-natjc2r8.mjs";import"./cli-1.1.7-a1sffgeq.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
@@ -0,0 +1,2 @@
1
+ import{L0 as v,M0 as Z,N0 as D,s0 as T,t0 as X,u0 as I,w0 as Y,x0 as p}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as P,r4 as V}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as H}from"./cli-1.1.7-ac6ve6ks.mjs";import{Hoa as W,yra as F}from"./cli-1.1.7-avggtwyk.mjs";import{gta as A,kta as C}from"./cli-1.1.7-a1sffgeq.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
2
+ export{u as Wh,M as Xh};
@@ -0,0 +1,2 @@
1
+ import{Lla as w,Vla as F}from"./cli-1.1.7-aq4f719n.mjs";import{kta as D}from"./cli-1.1.7-a1sffgeq.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
+ export{Q as uV,V as vV,L as wV};
@@ -0,0 +1,15 @@
1
+ import{Hx as L,Ix as k,fS as _,ok as J,wO as f,yO as z}from"./cli-1.1.7-g69xsadf.mjs";import{cba as F,hba as A}from"./cli-1.1.7-370fzee5.mjs";import{aja as Y,cja as h,dja as H,eja as X}from"./cli-1.1.7-5a7dx8xv.mjs";import{Xja as W,_ja as M}from"./cli-1.1.7-tj4a73gm.mjs";import{_ka as D,bla as R}from"./cli-1.1.7-4jb3802k.mjs";import{opa as q,yra as C}from"./cli-1.1.7-avggtwyk.mjs";import{kta as V}from"./cli-1.1.7-a1sffgeq.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
+ `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
+
4
+ Return JSON with a single "title" field.
5
+
6
+ Good examples:
7
+ {"title": "Fix login button on mobile"}
8
+ {"title": "Add OAuth authentication"}
9
+ {"title": "Debug failing CI tests"}
10
+ {"title": "Refactor API client error handling"}
11
+
12
+ Bad (too vague): {"title": "Code changes"}
13
+ Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
+ Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
+ export{S as xe,T as ye,I as ze};
@@ -0,0 +1,2 @@
1
+ import{Ph as v,Qh as i}from"./cli-1.1.7-4w65nb7a.mjs";import{Rh as E,Sh as t}from"./cli-1.1.7-5afzqeez.mjs";import{oY as b,pY as s}from"./cli-1.1.7-rb629pva.mjs";import{I1 as m,b1 as L,d1 as X}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as $,r4 as F}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as d}from"./cli-1.1.7-ac6ve6ks.mjs";import{E_ as C,F_ as n}from"./cli-1.1.7-370fzee5.mjs";import{cha as O,dha as l,eha as P,fha as k,uha as o}from"./cli-1.1.7-xv2n043b.mjs";import{gta as g,kta as a}from"./cli-1.1.7-a1sffgeq.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?v(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=b(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let w=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:w,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var _,e=8,qq=15,y,Jq=" ",B,j,Yq,Mq;var $q=a(()=>{n();s();l();m();i();o();t();F();_=g(d(),1),y=`${C.pointer} `,B=O(y),j=E();Yq=_.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=b().columns,Y=K?y:Jq,G=K?"suggestion":void 0,w=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,x=q.id.startsWith("file-"),c=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(x){let N=q.description?Math.min(20,O(q.description)):0,r=A-B-2-4-R-N;z=P(q.displayText,r)}else if(c)z=k(q.displayText,30);else z=q.displayText;let u=A-B-2-O(z)-R-4,M;if(q.description){let N=k(q.description.replace(/\s+/g," "),Math.max(0,u));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=k(Z,U-2);let Q=Qq(q)?`${j?v(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),f=q.tag?`[${q.tag}] `:"",S=O(f),h=Math.max(0,A-B-U-S-4),p=q.description?k(q.description.replace(/\s+/g," "),h):"",T=`${W}${f}${p}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(X,{color:w,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=_.memo(Zq)});
2
+ export{Zq as Kh,Mq as Lh,$q as Mh};
@@ -0,0 +1,15 @@
1
+ import{ita as T,kta as J5,lta as M}from"./cli-1.1.7-a1sffgeq.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 Se,X5 as Te};