@claudiolabs/claudin 0.6.8 → 0.6.10

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 (890) hide show
  1. package/dist/chunks/AgentTool-0.6.10-pc63a9d0.mjs +1 -0
  2. package/dist/chunks/App-0.6.10-q3xcd47r.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.6.10-w6fsssyp.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.6.10-4bd71ef1.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.6.10-v0mg8ypk.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.6.10-kbqv74m9.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.10-1n2n7jm7.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.6.10-aw1g8h4f.mjs +1 -0
  9. package/dist/chunks/DiffDialog-0.6.10-b2cwrvz7.mjs +7 -0
  10. package/dist/chunks/Doctor-0.6.10-ggfaar35.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-0.6.10-e692sh3q.mjs +6 -0
  12. package/dist/chunks/Grove-0.6.10-eavgjwkr.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.6.10-5h3fqa7n.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.6.10-4wm5hbn1.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.6.10-2c9rvk27.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.6.10-zhcbfmky.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.6.10-x6tqmt67.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.6.10-vazqkyya.mjs +1 -0
  19. package/dist/chunks/REPL-0.6.10-s7sv4jaz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.6.10-r11yajt2.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.6.10-vc41e76h.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.6.10-66zbwap8.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.6.10-67wymxzf.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.6.10-xsnsqwdz.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.6.10-wa4f54d8.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.6.10-anxny4hp.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.6.10-wdx9ym5t.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.6.10-tfw5ne13.mjs +1 -0
  29. package/dist/chunks/add-dir-0.6.10-m2awyvem.mjs +1 -0
  30. package/dist/chunks/agents-0.6.10-dfnc3z0x.mjs +110 -0
  31. package/dist/chunks/agents-0.6.10-q6rwqt5n.mjs +3 -0
  32. package/dist/chunks/api-0.6.10-2kpxwpf7.mjs +1 -0
  33. package/dist/chunks/asciicast-0.6.10-phpj95t0.mjs +1 -0
  34. package/dist/chunks/assistant-0.6.10-bk619hgs.mjs +1 -0
  35. package/dist/chunks/auth-0.6.10-exndmshh.mjs +1 -0
  36. package/dist/chunks/auth-0.6.10-zwse97wh.mjs +1 -0
  37. package/dist/chunks/autoMode-0.6.10-r7cygq5e.mjs +48 -0
  38. package/dist/chunks/autoUpdater-0.6.10-pyp05p5g.mjs +1 -0
  39. package/dist/chunks/backgroundHousekeeping-0.6.10-rfs50a2d.mjs +1 -0
  40. package/dist/chunks/branch-0.6.10-nycehd04.mjs +4 -0
  41. package/dist/chunks/bridge-0.6.10-bra19vvb.mjs +2 -0
  42. package/dist/chunks/bridgeConfig-0.6.10-kmxyfzt6.mjs +1 -0
  43. package/dist/chunks/bridgeEnabled-0.6.10-405me6tc.mjs +1 -0
  44. package/dist/chunks/bridgeMain-0.6.10-m3hwnhak.mjs +88 -0
  45. package/dist/chunks/bridgePointer-0.6.10-sgr296jn.mjs +1 -0
  46. package/dist/chunks/btw-0.6.10-e8fae0g4.mjs +1 -0
  47. package/dist/chunks/buddy-0.6.10-y9g75nde.mjs +3 -0
  48. package/dist/chunks/cacache-0.6.10-8a56gyhe.mjs +1 -0
  49. package/dist/chunks/cache-probe-0.6.10-j5dv0ze8.mjs +21 -0
  50. package/dist/chunks/cacheStats-0.6.10-kn5hkwnr.mjs +4 -0
  51. package/dist/chunks/caches-0.6.10-hyfrtp91.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-0.6.10-23mgx59s.mjs +1 -0
  53. package/dist/chunks/claudemd-0.6.10-znbbeehm.mjs +1 -0
  54. package/dist/chunks/clear-0.6.10-f4z7nb46.mjs +1 -0
  55. package/dist/chunks/clearTerminal-0.6.10-q3ntmyx6.mjs +1 -0
  56. package/dist/chunks/cli-0.6.10-007bw6rq.mjs +2 -0
  57. package/dist/chunks/cli-0.6.10-04xyjtqp.mjs +18 -0
  58. package/dist/chunks/cli-0.6.10-06yft8cy.mjs +2 -0
  59. package/dist/chunks/cli-0.6.10-09xkvgtb.mjs +3 -0
  60. package/dist/chunks/cli-0.6.10-0b7z3d0a.mjs +2 -0
  61. package/dist/chunks/cli-0.6.10-0fr4nchy.mjs +17 -0
  62. package/dist/chunks/cli-0.6.10-0h6a9dcq.mjs +2 -0
  63. package/dist/chunks/cli-0.6.10-0had63e0.mjs +2 -0
  64. package/dist/chunks/cli-0.6.10-0k8b5g3y.mjs +2 -0
  65. package/dist/chunks/cli-0.6.10-0w502raj.mjs +12 -0
  66. package/dist/chunks/cli-0.6.10-0xjd83ey.mjs +25 -0
  67. package/dist/chunks/cli-0.6.10-0xxezqeh.mjs +21 -0
  68. package/dist/chunks/cli-0.6.10-194zm15b.mjs +2 -0
  69. package/dist/chunks/cli-0.6.10-20dx8cv9.mjs +2 -0
  70. package/dist/chunks/cli-0.6.10-25arf7er.mjs +15 -0
  71. package/dist/chunks/cli-0.6.10-2rxbwttq.mjs +5 -0
  72. package/dist/chunks/cli-0.6.10-2trx2sqp.mjs +1 -0
  73. package/dist/chunks/cli-0.6.10-375wa3y2.mjs +2 -0
  74. package/dist/chunks/cli-0.6.10-3e7ajk04.mjs +3 -0
  75. package/dist/chunks/cli-0.6.10-3kakfn9p.mjs +2 -0
  76. package/dist/chunks/cli-0.6.10-3nht1qk2.mjs +193 -0
  77. package/dist/chunks/cli-0.6.10-3web3hbd.mjs +2 -0
  78. package/dist/chunks/cli-0.6.10-3ytqex80.mjs +3 -0
  79. package/dist/chunks/cli-0.6.10-4bwskbrr.mjs +2 -0
  80. package/dist/chunks/cli-0.6.10-4d9mssh1.mjs +2 -0
  81. package/dist/chunks/cli-0.6.10-4faavn4z.mjs +2 -0
  82. package/dist/chunks/cli-0.6.10-4fswsxhh.mjs +2 -0
  83. package/dist/chunks/cli-0.6.10-4paz5m54.mjs +2 -0
  84. package/dist/chunks/cli-0.6.10-4pptj4dt.mjs +34 -0
  85. package/dist/chunks/cli-0.6.10-4r4t8cq3.mjs +2 -0
  86. package/dist/chunks/cli-0.6.10-4rwy0hf2.mjs +2 -0
  87. package/dist/chunks/cli-0.6.10-4sd7w0ny.mjs +2 -0
  88. package/dist/chunks/cli-0.6.10-4tqfq3bh.mjs +2 -0
  89. package/dist/chunks/cli-0.6.10-4v3edm8v.mjs +2 -0
  90. package/dist/chunks/cli-0.6.10-5cz3150z.mjs +8 -0
  91. package/dist/chunks/cli-0.6.10-5fk9pv4j.mjs +2 -0
  92. package/dist/chunks/cli-0.6.10-5jaxzkj9.mjs +4 -0
  93. package/dist/chunks/cli-0.6.10-5qrbfb57.mjs +3 -0
  94. package/dist/chunks/cli-0.6.10-5rr1dmag.mjs +6 -0
  95. package/dist/chunks/cli-0.6.10-5v3ebsy8.mjs +2 -0
  96. package/dist/chunks/cli-0.6.10-5yr3hp7q.mjs +2 -0
  97. package/dist/chunks/cli-0.6.10-63mrsvws.mjs +2 -0
  98. package/dist/chunks/cli-0.6.10-6bnz1wsy.mjs +2 -0
  99. package/dist/chunks/cli-0.6.10-6q9gvpdq.mjs +4 -0
  100. package/dist/chunks/cli-0.6.10-6sssjkv6.mjs +5 -0
  101. package/dist/chunks/cli-0.6.10-6wxgepz0.mjs +2 -0
  102. package/dist/chunks/cli-0.6.10-6z9r1a31.mjs +3 -0
  103. package/dist/chunks/cli-0.6.10-71mkw30e.mjs +2 -0
  104. package/dist/chunks/cli-0.6.10-743jgjs6.mjs +2 -0
  105. package/dist/chunks/cli-0.6.10-74gxtz55.mjs +2 -0
  106. package/dist/chunks/cli-0.6.10-7as21ajf.mjs +3 -0
  107. package/dist/chunks/cli-0.6.10-7gxqhb8g.mjs +133 -0
  108. package/dist/chunks/cli-0.6.10-83yhdrwz.mjs +2 -0
  109. package/dist/chunks/cli-0.6.10-87cpzzxg.mjs +4 -0
  110. package/dist/chunks/cli-0.6.10-88w2c7gx.mjs +2 -0
  111. package/dist/chunks/cli-0.6.10-8kpb0kxt.mjs +2 -0
  112. package/dist/chunks/cli-0.6.10-8s6we29m.mjs +4 -0
  113. package/dist/chunks/cli-0.6.10-96nfaf30.mjs +2 -0
  114. package/dist/chunks/cli-0.6.10-99j1abq3.mjs +2 -0
  115. package/dist/chunks/cli-0.6.10-9f868v6c.mjs +2 -0
  116. package/dist/chunks/cli-0.6.10-9qweq8dd.mjs +6 -0
  117. package/dist/chunks/cli-0.6.10-9rcjng8s.mjs +2 -0
  118. package/dist/chunks/cli-0.6.10-9t8aqsnm.mjs +2 -0
  119. package/dist/chunks/cli-0.6.10-a2byqzdb.mjs +2 -0
  120. package/dist/chunks/cli-0.6.10-ajjmvx3c.mjs +59 -0
  121. package/dist/chunks/cli-0.6.10-an35ek0n.mjs +20 -0
  122. package/dist/chunks/cli-0.6.10-aqf0kax9.mjs +2 -0
  123. package/dist/chunks/cli-0.6.10-b0ppj1eq.mjs +2 -0
  124. package/dist/chunks/cli-0.6.10-b3070g3s.mjs +2 -0
  125. package/dist/chunks/cli-0.6.10-b4qd3yag.mjs +2 -0
  126. package/dist/chunks/cli-0.6.10-b93fsrew.mjs +2 -0
  127. package/dist/chunks/cli-0.6.10-bgr2v2kx.mjs +2 -0
  128. package/dist/chunks/cli-0.6.10-bhj11561.mjs +2 -0
  129. package/dist/chunks/cli-0.6.10-bm2rzyr5.mjs +2 -0
  130. package/dist/chunks/cli-0.6.10-bmy2rmqm.mjs +2 -0
  131. package/dist/chunks/cli-0.6.10-bz35vcq0.mjs +4 -0
  132. package/dist/chunks/cli-0.6.10-c6ffp79z.mjs +39 -0
  133. package/dist/chunks/cli-0.6.10-c9e5xj4m.mjs +5 -0
  134. package/dist/chunks/cli-0.6.10-crqx6pmb.mjs +3 -0
  135. package/dist/chunks/cli-0.6.10-cs82frbp.mjs +2 -0
  136. package/dist/chunks/cli-0.6.10-d4b00jtd.mjs +2 -0
  137. package/dist/chunks/cli-0.6.10-ds086npj.mjs +4 -0
  138. package/dist/chunks/cli-0.6.10-dshvbx8m.mjs +2 -0
  139. package/dist/chunks/cli-0.6.10-dypx2apn.mjs +2 -0
  140. package/dist/chunks/cli-0.6.10-e2g2kwb3.mjs +2 -0
  141. package/dist/chunks/cli-0.6.10-e5n6kpjg.mjs +2 -0
  142. package/dist/chunks/cli-0.6.10-e5t2wkjj.mjs +2 -0
  143. package/dist/chunks/cli-0.6.10-e61zdre3.mjs +2 -0
  144. package/dist/chunks/cli-0.6.10-ec8zak20.mjs +2 -0
  145. package/dist/chunks/cli-0.6.10-ej031rhh.mjs +2 -0
  146. package/dist/chunks/cli-0.6.10-ew2xpxpt.mjs +10 -0
  147. package/dist/chunks/cli-0.6.10-fctpqtz9.mjs +2 -0
  148. package/dist/chunks/cli-0.6.10-fdhf61fm.mjs +2 -0
  149. package/dist/chunks/cli-0.6.10-feh3ehq8.mjs +2 -0
  150. package/dist/chunks/cli-0.6.10-fh0qe3jw.mjs +5408 -0
  151. package/dist/chunks/cli-0.6.10-fq0vvkgg.mjs +2 -0
  152. package/dist/chunks/cli-0.6.10-fv4b397t.mjs +2 -0
  153. package/dist/chunks/cli-0.6.10-fxvfvpfc.mjs +2 -0
  154. package/dist/chunks/cli-0.6.10-g42hbbyx.mjs +2 -0
  155. package/dist/chunks/cli-0.6.10-gfmq62a5.mjs +2 -0
  156. package/dist/chunks/cli-0.6.10-gfzq1xdw.mjs +2 -0
  157. package/dist/chunks/cli-0.6.10-gj0a1s24.mjs +2 -0
  158. package/dist/chunks/cli-0.6.10-gne1gsrc.mjs +2 -0
  159. package/dist/chunks/cli-0.6.10-gqpxsx7v.mjs +2 -0
  160. package/dist/chunks/cli-0.6.10-gzj1pee6.mjs +2 -0
  161. package/dist/chunks/cli-0.6.10-h1hfr2mp.mjs +2 -0
  162. package/dist/chunks/cli-0.6.10-hf96nx3k.mjs +2 -0
  163. package/dist/chunks/cli-0.6.10-hrefj58w.mjs +2 -0
  164. package/dist/chunks/cli-0.6.10-hwk82bpw.mjs +2 -0
  165. package/dist/chunks/cli-0.6.10-jax39fxj.mjs +2 -0
  166. package/dist/chunks/cli-0.6.10-jb5y0jfb.mjs +2 -0
  167. package/dist/chunks/cli-0.6.10-jrnddxjb.mjs +2 -0
  168. package/dist/chunks/cli-0.6.10-jrx0zpgt.mjs +2 -0
  169. package/dist/chunks/cli-0.6.10-k0bx2zac.mjs +24 -0
  170. package/dist/chunks/cli-0.6.10-k0qapztr.mjs +17 -0
  171. package/dist/chunks/cli-0.6.10-k3yqwnmf.mjs +15 -0
  172. package/dist/chunks/cli-0.6.10-k4mwvdt2.mjs +3 -0
  173. package/dist/chunks/cli-0.6.10-k5hnyqvs.mjs +58 -0
  174. package/dist/chunks/cli-0.6.10-kcg9xtd4.mjs +2 -0
  175. package/dist/chunks/cli-0.6.10-kfm5062s.mjs +2 -0
  176. package/dist/chunks/cli-0.6.10-kqqk6z5r.mjs +18 -0
  177. package/dist/chunks/cli-0.6.10-kr2hhxcp.mjs +2 -0
  178. package/dist/chunks/cli-0.6.10-kvy7e0hs.mjs +24 -0
  179. package/dist/chunks/cli-0.6.10-kwx06ffr.mjs +133 -0
  180. package/dist/chunks/cli-0.6.10-m2atbxmp.mjs +2 -0
  181. package/dist/chunks/cli-0.6.10-m56cm615.mjs +2 -0
  182. package/dist/chunks/cli-0.6.10-m6mnqx47.mjs +2 -0
  183. package/dist/chunks/cli-0.6.10-m8egkzv6.mjs +4 -0
  184. package/dist/chunks/cli-0.6.10-m8w0yqyk.mjs +2 -0
  185. package/dist/chunks/cli-0.6.10-ma1ft2z7.mjs +12 -0
  186. package/dist/chunks/cli-0.6.10-mdmda3yh.mjs +2 -0
  187. package/dist/chunks/cli-0.6.10-mhrx6w6c.mjs +3 -0
  188. package/dist/chunks/cli-0.6.10-n91j8t48.mjs +2 -0
  189. package/dist/chunks/cli-0.6.10-n9ad0dqs.mjs +2 -0
  190. package/dist/chunks/cli-0.6.10-nj568nb8.mjs +2 -0
  191. package/dist/chunks/cli-0.6.10-nnr6bgey.mjs +2 -0
  192. package/dist/chunks/cli-0.6.10-p4e34m9m.mjs +2 -0
  193. package/dist/chunks/cli-0.6.10-peshnw7x.mjs +2 -0
  194. package/dist/chunks/cli-0.6.10-pjybpta5.mjs +2 -0
  195. package/dist/chunks/cli-0.6.10-ps3qshm2.mjs +2 -0
  196. package/dist/chunks/cli-0.6.10-q3pn77m0.mjs +2 -0
  197. package/dist/chunks/cli-0.6.10-qdff7bwc.mjs +2 -0
  198. package/dist/chunks/cli-0.6.10-qhnh10xs.mjs +2 -0
  199. package/dist/chunks/cli-0.6.10-qpvrjcxj.mjs +2 -0
  200. package/dist/chunks/cli-0.6.10-r053kteh.mjs +2 -0
  201. package/dist/chunks/cli-0.6.10-r1zg8hjd.mjs +4 -0
  202. package/dist/chunks/cli-0.6.10-r261gqbz.mjs +2 -0
  203. package/dist/chunks/cli-0.6.10-r6n3t4y5.mjs +2 -0
  204. package/dist/chunks/cli-0.6.10-rpqzxn5n.mjs +2 -0
  205. package/dist/chunks/cli-0.6.10-rq0hdash.mjs +4 -0
  206. package/dist/chunks/cli-0.6.10-rtfnxx5g.mjs +2 -0
  207. package/dist/chunks/cli-0.6.10-rvt5834w.mjs +2 -0
  208. package/dist/chunks/cli-0.6.10-rvxxsgew.mjs +3 -0
  209. package/dist/chunks/cli-0.6.10-s48vqp7h.mjs +3 -0
  210. package/dist/chunks/cli-0.6.10-s9s4y4pe.mjs +2 -0
  211. package/dist/chunks/cli-0.6.10-sdbmeewb.mjs +2 -0
  212. package/dist/chunks/cli-0.6.10-seh7emsc.mjs +2 -0
  213. package/dist/chunks/cli-0.6.10-tarr1aa6.mjs +2 -0
  214. package/dist/chunks/cli-0.6.10-tbarj9ac.mjs +12 -0
  215. package/dist/chunks/cli-0.6.10-tgw0ne6b.mjs +28 -0
  216. package/dist/chunks/cli-0.6.10-twyctfxx.mjs +2 -0
  217. package/dist/chunks/cli-0.6.10-v6686g2y.mjs +2 -0
  218. package/dist/chunks/cli-0.6.10-vbc7veda.mjs +2 -0
  219. package/dist/chunks/cli-0.6.10-vevjmd3s.mjs +2 -0
  220. package/dist/chunks/cli-0.6.10-vpf2h2ys.mjs +2 -0
  221. package/dist/chunks/cli-0.6.10-vwy25zxd.mjs +2 -0
  222. package/dist/chunks/cli-0.6.10-vx8ghs2a.mjs +2 -0
  223. package/dist/chunks/cli-0.6.10-vytrd6pp.mjs +2 -0
  224. package/dist/chunks/cli-0.6.10-w0xpqx8x.mjs +2 -0
  225. package/dist/chunks/cli-0.6.10-w5ktgwb6.mjs +2 -0
  226. package/dist/chunks/cli-0.6.10-w6wtb66q.mjs +7 -0
  227. package/dist/chunks/cli-0.6.10-wchnn74m.mjs +2 -0
  228. package/dist/chunks/cli-0.6.10-wd70haac.mjs +3 -0
  229. package/dist/chunks/cli-0.6.10-wgqzy62m.mjs +42 -0
  230. package/dist/chunks/cli-0.6.10-wnwqatq5.mjs +67 -0
  231. package/dist/chunks/cli-0.6.10-wtzszqn5.mjs +2 -0
  232. package/dist/chunks/cli-0.6.10-x7r5d517.mjs +9 -0
  233. package/dist/chunks/cli-0.6.10-x8wy7g7p.mjs +6 -0
  234. package/dist/chunks/cli-0.6.10-xjymzbm2.mjs +4 -0
  235. package/dist/chunks/cli-0.6.10-xmthj4tb.mjs +2 -0
  236. package/dist/chunks/cli-0.6.10-xwjzecgn.mjs +2 -0
  237. package/dist/chunks/cli-0.6.10-y2tx5msk.mjs +2 -0
  238. package/dist/chunks/cli-0.6.10-y5m55y2e.mjs +45 -0
  239. package/dist/chunks/cli-0.6.10-yet22s9x.mjs +2 -0
  240. package/dist/chunks/cli-0.6.10-yr88z6pr.mjs +2 -0
  241. package/dist/chunks/cli-0.6.10-yrm9vds4.mjs +2 -0
  242. package/dist/chunks/cli-0.6.10-yy76qw7h.mjs +2 -0
  243. package/dist/chunks/cli-0.6.10-yz5cd33k.mjs +15 -0
  244. package/dist/chunks/cli-0.6.10-z43zd6gx.mjs +2 -0
  245. package/dist/chunks/cli-0.6.10-z59d7tmt.mjs +3 -0
  246. package/dist/chunks/cli-0.6.10-z5gp5z38.mjs +50 -0
  247. package/dist/chunks/cli-0.6.10-z663hb6c.mjs +2 -0
  248. package/dist/chunks/cli-0.6.10-z6n2741b.mjs +2 -0
  249. package/dist/chunks/cli-0.6.10-z94hfa8d.mjs +2 -0
  250. package/dist/chunks/cli-0.6.10-zngfmjtq.mjs +2 -0
  251. package/dist/chunks/cli-0.6.10-zqv22c50.mjs +6 -0
  252. package/dist/chunks/cli-0.6.10-zyvt1jxy.mjs +16 -0
  253. package/dist/chunks/client-0.6.10-e68bga3q.mjs +1 -0
  254. package/dist/chunks/color-0.6.10-jgca92d2.mjs +1 -0
  255. package/dist/chunks/compact-0.6.10-pga6j4et.mjs +3 -0
  256. package/dist/chunks/config-0.6.10-2kqc2t3y.mjs +1 -0
  257. package/dist/chunks/config-0.6.10-tcm75jey.mjs +1 -0
  258. package/dist/chunks/constants-0.6.10-sya0fxh4.mjs +1 -0
  259. package/dist/chunks/context-0.6.10-h4r1j554.mjs +1 -0
  260. package/dist/chunks/context-noninteractive-0.6.10-yg6kn1vx.mjs +1 -0
  261. package/dist/chunks/conversation-0.6.10-j15gzcdd.mjs +1 -0
  262. package/dist/chunks/copilotHeaders-0.6.10-kf7jcp6s.mjs +1 -0
  263. package/dist/chunks/copy-0.6.10-3kzpyps7.mjs +9 -0
  264. package/dist/chunks/cost-0.6.10-fnaq264n.mjs +1 -0
  265. package/dist/chunks/createSSHSession-0.6.10-k5ftya6a.mjs +1 -0
  266. package/dist/chunks/createSession-0.6.10-35y67jwe.mjs +1 -0
  267. package/dist/chunks/debug-0.6.10-n5x9y9vq.mjs +1 -0
  268. package/dist/chunks/defaultActionDeps-0.6.10-7gcm2ant.mjs +1367 -0
  269. package/dist/chunks/desktop-0.6.10-w10y9c6s.mjs +1 -0
  270. package/dist/chunks/detectRepository-0.6.10-91bht5eh.mjs +1 -0
  271. package/dist/chunks/detection-0.6.10-2rcvg6a7.mjs +1 -0
  272. package/dist/chunks/diff-0.6.10-37y80eve.mjs +1 -0
  273. package/dist/chunks/doctor-0.6.10-03khmb2e.mjs +1 -0
  274. package/dist/chunks/doctorDiagnostic-0.6.10-eh1pjv87.mjs +1 -0
  275. package/dist/chunks/earlyInput-0.6.10-jfrac0rt.mjs +1 -0
  276. package/dist/chunks/effort-0.6.10-np8ncze8.mjs +10 -0
  277. package/dist/chunks/envLessBridgeConfig-0.6.10-e7bn5pg5.mjs +1 -0
  278. package/dist/chunks/envUtils-0.6.10-a012cz9g.mjs +1 -0
  279. package/dist/chunks/environmentSelection-0.6.10-swhy83d9.mjs +1 -0
  280. package/dist/chunks/environments-0.6.10-zqjx2w2e.mjs +1 -0
  281. package/dist/chunks/errors-0.6.10-hm45ztbm.mjs +1 -0
  282. package/dist/chunks/exampleCommands-0.6.10-3446gnbr.mjs +1 -0
  283. package/dist/chunks/exit-0.6.10-vpeceb21.mjs +1 -0
  284. package/dist/chunks/explorer-0.6.10-zjjzxksb.mjs +1 -0
  285. package/dist/chunks/export-0.6.10-hnnqngd5.mjs +2 -0
  286. package/dist/chunks/extra-usage-0.6.10-gtda3wg0.mjs +1 -0
  287. package/dist/chunks/extra-usage-noninteractive-0.6.10-nz1j41qz.mjs +1 -0
  288. package/dist/chunks/fast-0.6.10-rd5z4x7d.mjs +1 -0
  289. package/dist/chunks/feedback-0.6.10-kc7f8az3.mjs +14 -0
  290. package/dist/chunks/firstPartyEventLogger-0.6.10-wk8nq6xn.mjs +1 -0
  291. package/dist/chunks/git-0.6.10-ah8x7bvn.mjs +1 -0
  292. package/dist/chunks/githubModelsCredentials-0.6.10-9ps0y1s1.mjs +1 -0
  293. package/dist/chunks/goal-0.6.10-z0xn3kbc.mjs +4 -0
  294. package/dist/chunks/grove-0.6.10-tzn8va81.mjs +1 -0
  295. package/dist/chunks/growthbook-0.6.10-d0bhv83x.mjs +1 -0
  296. package/dist/chunks/headless-0.6.10-j23342en.mjs +2 -0
  297. package/dist/chunks/heapdump-0.6.10-40jdp89t.mjs +6 -0
  298. package/dist/chunks/help-0.6.10-x5j1shx8.mjs +1 -0
  299. package/dist/chunks/hookChains-0.6.10-vz0kajv4.mjs +3 -0
  300. package/dist/chunks/hooks-0.6.10-cjctc3pk.mjs +1 -0
  301. package/dist/chunks/hooks-0.6.10-d4e5d4jq.mjs +79 -0
  302. package/dist/chunks/ide-0.6.10-c9vx5yyv.mjs +3 -0
  303. package/dist/chunks/image-processor-napi-0.6.10-j9xbdedd.mjs +1 -0
  304. package/dist/chunks/inboundAttachments-0.6.10-qvc8gtq1.mjs +1 -0
  305. package/dist/chunks/index-0.6.10-1ce12br9.mjs +1 -0
  306. package/dist/chunks/index-0.6.10-23bed64t.mjs +1 -0
  307. package/dist/chunks/index-0.6.10-2e15j6y7.mjs +9 -0
  308. package/dist/chunks/index-0.6.10-4ggrtp02.mjs +1 -0
  309. package/dist/chunks/index-0.6.10-5cgqvkpd.mjs +1 -0
  310. package/dist/chunks/index-0.6.10-7g3qxmqy.mjs +1 -0
  311. package/dist/chunks/index-0.6.10-7hb2kw34.mjs +1 -0
  312. package/dist/chunks/index-0.6.10-bwp7ejkw.mjs +1 -0
  313. package/dist/chunks/index-0.6.10-jeq5t7bt.mjs +1 -0
  314. package/dist/chunks/index-0.6.10-jhysvfs4.mjs +1 -0
  315. package/dist/chunks/index-0.6.10-k83tg0hk.mjs +1 -0
  316. package/dist/chunks/index-0.6.10-m4xrd2ck.mjs +2 -0
  317. package/dist/chunks/index-0.6.10-nvnk8f62.mjs +1 -0
  318. package/dist/chunks/index-0.6.10-p0npme3e.mjs +9 -0
  319. package/dist/chunks/index-0.6.10-pj7qk1ay.mjs +1 -0
  320. package/dist/chunks/index-0.6.10-rm91h20d.mjs +1 -0
  321. package/dist/chunks/index-0.6.10-s5e9thxx.mjs +1 -0
  322. package/dist/chunks/index-0.6.10-stt9s3ap.mjs +1 -0
  323. package/dist/chunks/index-0.6.10-v0x2gvb2.mjs +1 -0
  324. package/dist/chunks/index-0.6.10-w4pech08.mjs +2 -0
  325. package/dist/chunks/index-0.6.10-xa7j7j51.mjs +1 -0
  326. package/dist/chunks/index-0.6.10-xvpvs1cq.mjs +30 -0
  327. package/dist/chunks/index-0.6.10-yajn443n.mjs +5 -0
  328. package/dist/chunks/init-0.6.10-cx438e1r.mjs +1 -0
  329. package/dist/chunks/initReplBridge-0.6.10-yzeqrx1r.mjs +1 -0
  330. package/dist/chunks/ink-0.6.10-ehmdxdda.mjs +1 -0
  331. package/dist/chunks/insights-0.6.10-ymy0ax9s.mjs +870 -0
  332. package/dist/chunks/install-0.6.10-6xsxh8rw.mjs +1 -0
  333. package/dist/chunks/install-github-app-0.6.10-n0mqxv7y.mjs +149 -0
  334. package/dist/chunks/install-slack-app-0.6.10-vdzembtq.mjs +1 -0
  335. package/dist/chunks/instrumentation-0.6.10-ee94ynfg.mjs +1 -0
  336. package/dist/chunks/interactiveHelpers-0.6.10-dcfkv2ya.mjs +1 -0
  337. package/dist/chunks/keybindings-0.6.10-3xnrfxvh.mjs +2 -0
  338. package/dist/chunks/knowledge-0.6.10-0szdqkwe.mjs +2 -0
  339. package/dist/chunks/latestVersionCache-0.6.10-6ekyepyt.mjs +1 -0
  340. package/dist/chunks/loadAgentsDir-0.6.10-82jwqyyq.mjs +1 -0
  341. package/dist/chunks/loadPluginHooks-0.6.10-7fkt9ad8.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.6.10-fhqsm9y4.mjs +1 -0
  343. package/dist/chunks/log-0.6.10-78vjy53b.mjs +1 -0
  344. package/dist/chunks/main-0.6.10-4dvm6d6t.mjs +1 -0
  345. package/dist/chunks/managedEnv-0.6.10-zhfxjy3j.mjs +1 -0
  346. package/dist/chunks/mcp-0.6.10-5f83tgd5.mjs +4 -0
  347. package/dist/chunks/mcp-0.6.10-b4snzba2.mjs +17 -0
  348. package/dist/chunks/mcp-0.6.10-kbj234ww.mjs +1 -0
  349. package/dist/chunks/mcpb-0.6.10-vag783ma.mjs +1 -0
  350. package/dist/chunks/memory-0.6.10-henf0b1g.mjs +3 -0
  351. package/dist/chunks/model-0.6.10-7160y81e.mjs +2 -0
  352. package/dist/chunks/model-0.6.10-9rdwx1ek.mjs +1 -0
  353. package/dist/chunks/node-0.6.10-2nyw5nh5.mjs +12 -0
  354. package/dist/chunks/oauth-0.6.10-rktmj1b2.mjs +1 -0
  355. package/dist/chunks/openaiShim-0.6.10-mv9eg82h.mjs +14 -0
  356. package/dist/chunks/output-style-0.6.10-0pav9q8w.mjs +1 -0
  357. package/dist/chunks/package-FMOR3ELU-0.6.10-5ar9yxr7.mjs +1 -0
  358. package/dist/chunks/parseConnectUrl-0.6.10-yz44fdhk.mjs +1 -0
  359. package/dist/chunks/parser-0.6.10-13sm7kqb.mjs +1 -0
  360. package/dist/chunks/passes-0.6.10-5h06jj2r.mjs +1 -0
  361. package/dist/chunks/permissions-0.6.10-k9dwtyqj.mjs +3 -0
  362. package/dist/chunks/permissions-0.6.10-twx9c8mp.mjs +1 -0
  363. package/dist/chunks/plan-0.6.10-z9h0c075.mjs +1 -0
  364. package/dist/chunks/plist-0.6.10-j533y42p.mjs +1 -0
  365. package/dist/chunks/plugin-0.6.10-erwx5c5x.mjs +29 -0
  366. package/dist/chunks/pluginStartupCheck-0.6.10-q85wj5v2.mjs +1 -0
  367. package/dist/chunks/plugins-0.6.10-jpsbbg01.mjs +9 -0
  368. package/dist/chunks/preActionHook-0.6.10-zpxbgrg4.mjs +2 -0
  369. package/dist/chunks/print-0.6.10-kbctj6hv.mjs +57 -0
  370. package/dist/chunks/privacy-settings-0.6.10-c0bv0th2.mjs +1 -0
  371. package/dist/chunks/process-0.6.10-dkct366y.mjs +1 -0
  372. package/dist/chunks/processBashCommand-0.6.10-5yz1hvk7.mjs +1 -0
  373. package/dist/chunks/processSlashCommand-0.6.10-71w6nfyj.mjs +9 -0
  374. package/dist/chunks/prompt-0.6.10-f9y98av4.mjs +1 -0
  375. package/dist/chunks/prompt-0.6.10-fgbs1m66.mjs +1 -0
  376. package/dist/chunks/prompts-0.6.10-676epz7k.mjs +1 -0
  377. package/dist/chunks/protocolHandler-0.6.10-773g9qer.mjs +13 -0
  378. package/dist/chunks/provider-0.6.10-5qsacwg4.mjs +2 -0
  379. package/dist/chunks/providerProfiles-0.6.10-p7hdwrt5.mjs +1 -0
  380. package/dist/chunks/providerValidation-0.6.10-0djsjgat.mjs +6 -0
  381. package/dist/chunks/rate-limit-options-0.6.10-sw7x1zh6.mjs +1 -0
  382. package/dist/chunks/registerSubcommands-0.6.10-qnj3g3nr.mjs +34 -0
  383. package/dist/chunks/registry-0.6.10-gbcb4fsk.mjs +1 -0
  384. package/dist/chunks/release-notes-0.6.10-ncd08wgw.mjs +5 -0
  385. package/dist/chunks/reload-plugins-0.6.10-c81xxbym.mjs +2 -0
  386. package/dist/chunks/remote-env-0.6.10-43xt4gtw.mjs +1 -0
  387. package/dist/chunks/remoteBridgeCore-0.6.10-wbf6j8px.mjs +1 -0
  388. package/dist/chunks/remoteSession-0.6.10-k6vbpv3e.mjs +1 -0
  389. package/dist/chunks/rename-0.6.10-4cdkqswx.mjs +1 -0
  390. package/dist/chunks/replBridgeHandle-0.6.10-xq933mdz.mjs +1 -0
  391. package/dist/chunks/replLauncher-0.6.10-cr3jja5a.mjs +1 -0
  392. package/dist/chunks/resume-0.6.10-c2j899e6.mjs +2 -0
  393. package/dist/chunks/rewind-0.6.10-n9fy7yby.mjs +1 -0
  394. package/dist/chunks/rootOptions-0.6.10-xz0vqcck.mjs +1 -0
  395. package/dist/chunks/sandbox-adapter-0.6.10-d5xfqw9c.mjs +1 -0
  396. package/dist/chunks/sandbox-toggle-0.6.10-spmpkwez.mjs +1 -0
  397. package/dist/chunks/session-0.6.10-ymz837t4.mjs +2 -0
  398. package/dist/chunks/sessionDiscovery-0.6.10-admkdc69.mjs +1 -0
  399. package/dist/chunks/sessionFileAccessHooks-0.6.10-r33t5jhr.mjs +1 -0
  400. package/dist/chunks/sessionStorage-0.6.10-49gm7w2n.mjs +1 -0
  401. package/dist/chunks/settings-0.6.10-wzzcwaad.mjs +1 -0
  402. package/dist/chunks/setup-0.6.10-bvhn26jk.mjs +5 -0
  403. package/dist/chunks/sinks-0.6.10-0fd872vw.mjs +1 -0
  404. package/dist/chunks/skills-0.6.10-km050qe9.mjs +1 -0
  405. package/dist/chunks/startupProfiler-0.6.10-f1cddfrv.mjs +1 -0
  406. package/dist/chunks/startupUpdateCheck-0.6.10-5e18qqrf.mjs +1 -0
  407. package/dist/chunks/state-0.6.10-mpkke4ym.mjs +1 -0
  408. package/dist/chunks/stats-0.6.10-28h5f8jt.mjs +6 -0
  409. package/dist/chunks/status-0.6.10-qv0herbz.mjs +1 -0
  410. package/dist/chunks/stickers-0.6.10-t6950ynt.mjs +1 -0
  411. package/dist/chunks/subprocessEnv-0.6.10-y41znt8f.mjs +1 -0
  412. package/dist/chunks/tasks-0.6.10-nzx570q8.mjs +1 -0
  413. package/dist/chunks/teamHelpers-0.6.10-423jdy2s.mjs +1 -0
  414. package/dist/chunks/teammateModeSnapshot-0.6.10-py06s880.mjs +1 -0
  415. package/dist/chunks/teleport-0.6.10-re7mans7.mjs +1 -0
  416. package/dist/chunks/terminalSetup-0.6.10-9drqbrvg.mjs +1 -0
  417. package/dist/chunks/theme-0.6.10-nfjdb2a2.mjs +1 -0
  418. package/dist/chunks/thinkback-0.6.10-s417vqj3.mjs +1 -0
  419. package/dist/chunks/thinkback-play-0.6.10-mfppeqst.mjs +1 -0
  420. package/dist/chunks/toolPool-0.6.10-592457ck.mjs +1 -0
  421. package/dist/chunks/toolSearch-0.6.10-cmsrw1tk.mjs +1 -0
  422. package/dist/chunks/tools-0.6.10-srv0bd3j.mjs +1 -0
  423. package/dist/chunks/trustedDevice-0.6.10-qbjy3xd7.mjs +1 -0
  424. package/dist/chunks/turndown.cjs-0.6.10-j32w9asd.mjs +69 -0
  425. package/dist/chunks/types-0.6.10-k6bfpqde.mjs +1 -0
  426. package/dist/chunks/ultrareviewCommand-0.6.10-fh4xtvd7.mjs +4 -0
  427. package/dist/chunks/update-0.6.10-29rz32zf.mjs +86 -0
  428. package/dist/chunks/upgrade-0.6.10-sf6fmrcg.mjs +1 -0
  429. package/dist/chunks/upload-0.6.10-vnxpnpf4.mjs +7 -0
  430. package/dist/chunks/upstreamproxy-0.6.10-jtxth348.mjs +14 -0
  431. package/dist/chunks/url-handler-napi-0.6.10-ma00svp5.mjs +1 -0
  432. package/dist/chunks/usage-0.6.10-rc7hv408.mjs +1 -0
  433. package/dist/chunks/util-0.6.10-vjjkrrxd.mjs +1 -0
  434. package/dist/chunks/utils-0.6.10-t87q7ghn.mjs +1 -0
  435. package/dist/chunks/vim-0.6.10-c84ddjyn.mjs +1 -0
  436. package/dist/chunks/watcher-0.6.10-yv6sjckm.mjs +1 -0
  437. package/dist/chunks/wiki-0.6.10-xffa4ex9.mjs +132 -0
  438. package/dist/chunks/worktree-0.6.10-91ksabjj.mjs +1 -0
  439. package/dist/chunks/worktreeModeEnabled-0.6.10-25q9hj62.mjs +1 -0
  440. package/dist/chunks/wrapper-0.6.10-3f51d8k0.mjs +7 -0
  441. package/dist/claudin-vscode.vsix +0 -0
  442. package/dist/cli.mjs +2 -2
  443. package/package.json +1 -1
  444. package/dist/chunks/AgentTool-0.6.8-1h6eg55x.mjs +0 -1
  445. package/dist/chunks/App-0.6.8-gf7z37d0.mjs +0 -1
  446. package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +0 -1
  447. package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +0 -1
  448. package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +0 -1
  449. package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +0 -1
  450. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +0 -1
  451. package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +0 -1
  452. package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +0 -7
  453. package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +0 -1
  454. package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +0 -6
  455. package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +0 -1
  456. package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +0 -1
  457. package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +0 -1
  458. package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +0 -1
  459. package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +0 -1
  460. package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +0 -1
  461. package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +0 -1
  462. package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +0 -1
  463. package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +0 -1
  464. package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +0 -1
  465. package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +0 -1
  466. package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +0 -1
  467. package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +0 -1
  468. package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +0 -9
  469. package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +0 -1
  470. package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +0 -1
  471. package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +0 -1
  472. package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +0 -1
  473. package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +0 -3
  474. package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +0 -110
  475. package/dist/chunks/api-0.6.8-dx65vfgr.mjs +0 -1
  476. package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +0 -1
  477. package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +0 -1
  478. package/dist/chunks/auth-0.6.8-jzmpk916.mjs +0 -1
  479. package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +0 -1
  480. package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +0 -48
  481. package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +0 -1
  482. package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +0 -1
  483. package/dist/chunks/branch-0.6.8-bht94rzm.mjs +0 -4
  484. package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +0 -2
  485. package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +0 -1
  486. package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +0 -1
  487. package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +0 -88
  488. package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +0 -1
  489. package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +0 -1
  490. package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +0 -3
  491. package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +0 -1
  492. package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +0 -21
  493. package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +0 -4
  494. package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +0 -1
  495. package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +0 -1
  496. package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +0 -1
  497. package/dist/chunks/clear-0.6.8-wr581077.mjs +0 -1
  498. package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +0 -1
  499. package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +0 -4
  500. package/dist/chunks/cli-0.6.8-026meybw.mjs +0 -2
  501. package/dist/chunks/cli-0.6.8-070cxjdc.mjs +0 -2
  502. package/dist/chunks/cli-0.6.8-097dncsw.mjs +0 -2
  503. package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +0 -10
  504. package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +0 -34
  505. package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +0 -2
  506. package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +0 -3
  507. package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +0 -2
  508. package/dist/chunks/cli-0.6.8-0rt710pa.mjs +0 -2
  509. package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +0 -2
  510. package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +0 -2
  511. package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +0 -17
  512. package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +0 -2
  513. package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +0 -3
  514. package/dist/chunks/cli-0.6.8-1k0se62h.mjs +0 -2
  515. package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +0 -8
  516. package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +0 -2
  517. package/dist/chunks/cli-0.6.8-21y1120z.mjs +0 -2
  518. package/dist/chunks/cli-0.6.8-239wrpj3.mjs +0 -2
  519. package/dist/chunks/cli-0.6.8-259kprym.mjs +0 -2
  520. package/dist/chunks/cli-0.6.8-25he0rqv.mjs +0 -2
  521. package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +0 -4
  522. package/dist/chunks/cli-0.6.8-2f4081dz.mjs +0 -2
  523. package/dist/chunks/cli-0.6.8-2h6sve00.mjs +0 -12
  524. package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +0 -67
  525. package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +0 -2
  526. package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +0 -2
  527. package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +0 -2
  528. package/dist/chunks/cli-0.6.8-34gwg749.mjs +0 -2
  529. package/dist/chunks/cli-0.6.8-3a510y9k.mjs +0 -2
  530. package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +0 -2
  531. package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +0 -3
  532. package/dist/chunks/cli-0.6.8-3z78waf8.mjs +0 -4
  533. package/dist/chunks/cli-0.6.8-416cqzak.mjs +0 -2
  534. package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +0 -2
  535. package/dist/chunks/cli-0.6.8-4avmxq80.mjs +0 -6
  536. package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +0 -2
  537. package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +0 -2
  538. package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +0 -2
  539. package/dist/chunks/cli-0.6.8-5enet6dq.mjs +0 -2
  540. package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +0 -2
  541. package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +0 -2
  542. package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +0 -3
  543. package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +0 -2
  544. package/dist/chunks/cli-0.6.8-6050y1gw.mjs +0 -2
  545. package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +0 -2
  546. package/dist/chunks/cli-0.6.8-6495m72a.mjs +0 -2
  547. package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +0 -2
  548. package/dist/chunks/cli-0.6.8-6nasamhy.mjs +0 -2
  549. package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +0 -6
  550. package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +0 -133
  551. package/dist/chunks/cli-0.6.8-6v315rd0.mjs +0 -2
  552. package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +0 -3
  553. package/dist/chunks/cli-0.6.8-6z1655sa.mjs +0 -2
  554. package/dist/chunks/cli-0.6.8-72sec87k.mjs +0 -3
  555. package/dist/chunks/cli-0.6.8-77sjcesf.mjs +0 -2
  556. package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +0 -2
  557. package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +0 -2
  558. package/dist/chunks/cli-0.6.8-7rznct58.mjs +0 -2
  559. package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +0 -2
  560. package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +0 -6
  561. package/dist/chunks/cli-0.6.8-82xanm26.mjs +0 -3
  562. package/dist/chunks/cli-0.6.8-883y3p0j.mjs +0 -5348
  563. package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +0 -4
  564. package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +0 -2
  565. package/dist/chunks/cli-0.6.8-8h913n7t.mjs +0 -2
  566. package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +0 -2
  567. package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +0 -2
  568. package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +0 -2
  569. package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +0 -2
  570. package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +0 -2
  571. package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +0 -18
  572. package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +0 -2
  573. package/dist/chunks/cli-0.6.8-9xem54f8.mjs +0 -2
  574. package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +0 -2
  575. package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +0 -5
  576. package/dist/chunks/cli-0.6.8-abapkbf0.mjs +0 -15
  577. package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +0 -2
  578. package/dist/chunks/cli-0.6.8-atjt49c4.mjs +0 -2
  579. package/dist/chunks/cli-0.6.8-b280gnkv.mjs +0 -1
  580. package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +0 -2
  581. package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +0 -2
  582. package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +0 -2
  583. package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +0 -2
  584. package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +0 -17
  585. package/dist/chunks/cli-0.6.8-bh09cgap.mjs +0 -6
  586. package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +0 -2
  587. package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +0 -58
  588. package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +0 -2
  589. package/dist/chunks/cli-0.6.8-c838p5hk.mjs +0 -3
  590. package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +0 -12
  591. package/dist/chunks/cli-0.6.8-cctyv31j.mjs +0 -4
  592. package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +0 -2
  593. package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +0 -4
  594. package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +0 -3
  595. package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +0 -2
  596. package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +0 -5
  597. package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +0 -2
  598. package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +0 -2
  599. package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +0 -5
  600. package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +0 -2
  601. package/dist/chunks/cli-0.6.8-efkksxch.mjs +0 -2
  602. package/dist/chunks/cli-0.6.8-efve08ng.mjs +0 -2
  603. package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +0 -2
  604. package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +0 -2
  605. package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +0 -15
  606. package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +0 -15
  607. package/dist/chunks/cli-0.6.8-fnet85r6.mjs +0 -2
  608. package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +0 -2
  609. package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +0 -3
  610. package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +0 -2
  611. package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +0 -2
  612. package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +0 -2
  613. package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +0 -4
  614. package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +0 -2
  615. package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +0 -2
  616. package/dist/chunks/cli-0.6.8-hvckc721.mjs +0 -2
  617. package/dist/chunks/cli-0.6.8-j22112y9.mjs +0 -2
  618. package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +0 -2
  619. package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +0 -2
  620. package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +0 -2
  621. package/dist/chunks/cli-0.6.8-janhze0q.mjs +0 -39
  622. package/dist/chunks/cli-0.6.8-jea2s05x.mjs +0 -2
  623. package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +0 -2
  624. package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +0 -2
  625. package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +0 -2
  626. package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +0 -2
  627. package/dist/chunks/cli-0.6.8-k533p6s5.mjs +0 -2
  628. package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +0 -2
  629. package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +0 -2
  630. package/dist/chunks/cli-0.6.8-kv1xtman.mjs +0 -2
  631. package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +0 -4
  632. package/dist/chunks/cli-0.6.8-m1r6z413.mjs +0 -2
  633. package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +0 -2
  634. package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +0 -2
  635. package/dist/chunks/cli-0.6.8-ma2wastm.mjs +0 -50
  636. package/dist/chunks/cli-0.6.8-mecr32eb.mjs +0 -24
  637. package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +0 -7
  638. package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +0 -2
  639. package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +0 -2
  640. package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +0 -2
  641. package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +0 -2
  642. package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +0 -2
  643. package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +0 -2
  644. package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +0 -2
  645. package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +0 -2
  646. package/dist/chunks/cli-0.6.8-pz3sbced.mjs +0 -25
  647. package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +0 -2
  648. package/dist/chunks/cli-0.6.8-q027tb7b.mjs +0 -2
  649. package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +0 -2
  650. package/dist/chunks/cli-0.6.8-qg557m5n.mjs +0 -2
  651. package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +0 -2
  652. package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +0 -2
  653. package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +0 -2
  654. package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +0 -133
  655. package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +0 -9
  656. package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +0 -2
  657. package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +0 -2
  658. package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +0 -2
  659. package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +0 -24
  660. package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +0 -2
  661. package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +0 -2
  662. package/dist/chunks/cli-0.6.8-sn09eprm.mjs +0 -2
  663. package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +0 -2
  664. package/dist/chunks/cli-0.6.8-sznj03wy.mjs +0 -3
  665. package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +0 -2
  666. package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +0 -2
  667. package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +0 -20
  668. package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +0 -16
  669. package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +0 -2
  670. package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +0 -3
  671. package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +0 -12
  672. package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +0 -4
  673. package/dist/chunks/cli-0.6.8-v582jfcn.mjs +0 -4
  674. package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +0 -2
  675. package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +0 -2
  676. package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +0 -59
  677. package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +0 -193
  678. package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +0 -2
  679. package/dist/chunks/cli-0.6.8-vseqtday.mjs +0 -21
  680. package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +0 -2
  681. package/dist/chunks/cli-0.6.8-wdjsawer.mjs +0 -3
  682. package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +0 -2
  683. package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +0 -2
  684. package/dist/chunks/cli-0.6.8-wh069qak.mjs +0 -2
  685. package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +0 -2
  686. package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +0 -2
  687. package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +0 -45
  688. package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +0 -2
  689. package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +0 -2
  690. package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +0 -42
  691. package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +0 -2
  692. package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +0 -2
  693. package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +0 -28
  694. package/dist/chunks/cli-0.6.8-yztx4k12.mjs +0 -18
  695. package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +0 -2
  696. package/dist/chunks/client-0.6.8-8kz2zw01.mjs +0 -1
  697. package/dist/chunks/color-0.6.8-jhpvc051.mjs +0 -1
  698. package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +0 -3
  699. package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +0 -1
  700. package/dist/chunks/config-0.6.8-xdt0r55h.mjs +0 -1
  701. package/dist/chunks/constants-0.6.8-49aaqy22.mjs +0 -1
  702. package/dist/chunks/context-0.6.8-tavd1s8s.mjs +0 -1
  703. package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +0 -1
  704. package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +0 -1
  705. package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +0 -1
  706. package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +0 -9
  707. package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +0 -1
  708. package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +0 -1
  709. package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +0 -1
  710. package/dist/chunks/debug-0.6.8-pzm167m4.mjs +0 -1
  711. package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +0 -1367
  712. package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +0 -1
  713. package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +0 -1
  714. package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +0 -1
  715. package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +0 -1
  716. package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +0 -1
  717. package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +0 -1
  718. package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +0 -1
  719. package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +0 -10
  720. package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +0 -1
  721. package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +0 -1
  722. package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +0 -1
  723. package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +0 -1
  724. package/dist/chunks/errors-0.6.8-svsjkqng.mjs +0 -1
  725. package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +0 -1
  726. package/dist/chunks/exit-0.6.8-507vwyf9.mjs +0 -1
  727. package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +0 -1
  728. package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +0 -2
  729. package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +0 -1
  730. package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +0 -1
  731. package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +0 -1
  732. package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +0 -14
  733. package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +0 -1
  734. package/dist/chunks/git-0.6.8-drry71tr.mjs +0 -1
  735. package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +0 -1
  736. package/dist/chunks/goal-0.6.8-vp972bd7.mjs +0 -4
  737. package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +0 -1
  738. package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +0 -1
  739. package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +0 -2
  740. package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +0 -6
  741. package/dist/chunks/help-0.6.8-hbsb7av5.mjs +0 -1
  742. package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +0 -3
  743. package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +0 -1
  744. package/dist/chunks/hooks-0.6.8-80h8h076.mjs +0 -79
  745. package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +0 -3
  746. package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +0 -1
  747. package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +0 -1
  748. package/dist/chunks/index-0.6.8-1q3w68f1.mjs +0 -1
  749. package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +0 -1
  750. package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +0 -2
  751. package/dist/chunks/index-0.6.8-3782mjyy.mjs +0 -1
  752. package/dist/chunks/index-0.6.8-6eeqw069.mjs +0 -1
  753. package/dist/chunks/index-0.6.8-7dmsg46k.mjs +0 -5
  754. package/dist/chunks/index-0.6.8-7prxs8kr.mjs +0 -1
  755. package/dist/chunks/index-0.6.8-azcjsyp8.mjs +0 -1
  756. package/dist/chunks/index-0.6.8-ccq5xheq.mjs +0 -2
  757. package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +0 -1
  758. package/dist/chunks/index-0.6.8-dv8qe20v.mjs +0 -1
  759. package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +0 -1
  760. package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +0 -1
  761. package/dist/chunks/index-0.6.8-ke45hjqk.mjs +0 -1
  762. package/dist/chunks/index-0.6.8-kvjzqm75.mjs +0 -9
  763. package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +0 -30
  764. package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +0 -1
  765. package/dist/chunks/index-0.6.8-svxnm6ph.mjs +0 -1
  766. package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +0 -9
  767. package/dist/chunks/index-0.6.8-wec8yb9e.mjs +0 -1
  768. package/dist/chunks/index-0.6.8-y535r49s.mjs +0 -1
  769. package/dist/chunks/index-0.6.8-yf6035wh.mjs +0 -1
  770. package/dist/chunks/index-0.6.8-zcf4qg35.mjs +0 -1
  771. package/dist/chunks/init-0.6.8-brwjmnyg.mjs +0 -1
  772. package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +0 -1
  773. package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +0 -1
  774. package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +0 -870
  775. package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +0 -1
  776. package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +0 -149
  777. package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +0 -1
  778. package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +0 -1
  779. package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +0 -1
  780. package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +0 -2
  781. package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +0 -2
  782. package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +0 -1
  783. package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +0 -1
  784. package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +0 -1
  786. package/dist/chunks/log-0.6.8-srvm2n7a.mjs +0 -1
  787. package/dist/chunks/main-0.6.8-5mcvdtte.mjs +0 -1
  788. package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +0 -1
  789. package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +0 -17
  790. package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +0 -4
  791. package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +0 -1
  792. package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +0 -1
  793. package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +0 -3
  794. package/dist/chunks/model-0.6.8-00wgempd.mjs +0 -2
  795. package/dist/chunks/model-0.6.8-99m80ayt.mjs +0 -1
  796. package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +0 -12
  797. package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +0 -1
  798. package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +0 -14
  799. package/dist/chunks/output-style-0.6.8-586m3zta.mjs +0 -1
  800. package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +0 -1
  801. package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +0 -1
  802. package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +0 -1
  803. package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +0 -1
  804. package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +0 -1
  805. package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +0 -3
  806. package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +0 -1
  807. package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +0 -1
  808. package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +0 -29
  809. package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +0 -1
  810. package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +0 -9
  811. package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +0 -2
  812. package/dist/chunks/print-0.6.8-tm9918yr.mjs +0 -57
  813. package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +0 -1
  814. package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +0 -1
  815. package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +0 -1
  816. package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +0 -9
  817. package/dist/chunks/prompt-0.6.8-57r1r589.mjs +0 -1
  818. package/dist/chunks/prompt-0.6.8-npwq825f.mjs +0 -1
  819. package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +0 -1
  820. package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +0 -13
  821. package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +0 -2
  822. package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +0 -1
  823. package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +0 -6
  824. package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +0 -1
  825. package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +0 -34
  826. package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +0 -1
  827. package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +0 -5
  828. package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +0 -2
  829. package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +0 -1
  830. package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +0 -1
  831. package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +0 -1
  832. package/dist/chunks/rename-0.6.8-8jb90c48.mjs +0 -1
  833. package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +0 -1
  834. package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +0 -1
  835. package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +0 -2
  836. package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +0 -1
  837. package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +0 -1
  838. package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +0 -1
  839. package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +0 -1
  840. package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +0 -2
  841. package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +0 -1
  842. package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +0 -1
  843. package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +0 -1
  844. package/dist/chunks/settings-0.6.8-m72ttv29.mjs +0 -1
  845. package/dist/chunks/setup-0.6.8-f3y64bte.mjs +0 -5
  846. package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +0 -1
  847. package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +0 -1
  848. package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +0 -1
  849. package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +0 -1
  850. package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +0 -1
  851. package/dist/chunks/stats-0.6.8-fc152nhd.mjs +0 -6
  852. package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +0 -1
  853. package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +0 -1
  854. package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +0 -1
  855. package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +0 -1
  856. package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +0 -1
  857. package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +0 -1
  858. package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +0 -1
  859. package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +0 -1
  860. package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +0 -1
  861. package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +0 -1
  862. package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +0 -1
  863. package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +0 -1
  864. package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +0 -1
  865. package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +0 -1
  866. package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +0 -1
  867. package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +0 -69
  868. package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +0 -1
  869. package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +0 -4
  870. package/dist/chunks/update-0.6.8-hv3gahmz.mjs +0 -86
  871. package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +0 -1
  872. package/dist/chunks/upload-0.6.8-er3nq389.mjs +0 -7
  873. package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +0 -14
  874. package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +0 -1
  875. package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +0 -1
  876. package/dist/chunks/util-0.6.8-rt8y16fm.mjs +0 -1
  877. package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +0 -1
  878. package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +0 -1
  879. package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +0 -1
  880. package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +0 -132
  881. package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +0 -1
  882. package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +0 -1
  883. package/dist/chunks/wrapper-0.6.8-r1wx821t.mjs +0 -7
  884. /package/dist/chunks/{cli-0.6.8-0fra5z78.mjs → cli-0.6.10-1cr6dzck.mjs} +0 -0
  885. /package/dist/chunks/{cli-0.6.8-9bt8c69s.mjs → cli-0.6.10-8grbj06a.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.6.8-akzaeas1.mjs → cli-0.6.10-9k81xmw8.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.6.8-7cychtp8.mjs → cli-0.6.10-aywg0dk7.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.6.8-0s2z302k.mjs → cli-0.6.10-dhp14pdf.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.6.8-aasxytdk.mjs → cli-0.6.10-dn50fre7.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.6.8-fe86xfp4.mjs → cli-0.6.10-xp9mthnh.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{FX as O}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as X,N1 as Q}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as b}from"./cli-0.6.10-w0xpqx8x.mjs";import{Kca as P,wca as W}from"./cli-0.6.10-3nht1qk2.mjs";import{Kpa as U}from"./cli-0.6.10-yr88z6pr.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as Ob,C as Pb};
@@ -0,0 +1,2 @@
1
+ import{j2 as M,k2 as E}from"./cli-0.6.10-5qrbfb57.mjs";import{Pca as _,Tda as S,Wda as p,Xca as F,gda as l,jda as L,kda as c}from"./cli-0.6.10-3nht1qk2.mjs";import{Gia as m,yia as Y}from"./cli-0.6.10-kr2hhxcp.mjs";import{Opa as B}from"./cli-0.6.10-yr88z6pr.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"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"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
+ export{R as I0,r as J0,o as K0,e as L0,I as M0,O as N0,U as O0,VJ as P0,a as Q0,WJ as R0,yJ as S0,zJ as T0,n as U0,jJ as V0,s as W0};
@@ -0,0 +1,2 @@
1
+ import{FX as u2,FZ as e2,OX as Z,_Y as Y,aZ as u}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as t,M1 as o,N1 as U}from"./cli-0.6.10-gj0a1s24.mjs";import{__ as X,a$ as j}from"./cli-0.6.10-3nht1qk2.mjs";import{Kpa as s}from"./cli-0.6.10-yr88z6pr.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.10"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.6.10"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.6.10"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.6.10"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as O};
@@ -0,0 +1,2 @@
1
+ import{mW as M,oW as X}from"./cli-0.6.10-nnr6bgey.mjs";import{D_ as B,M_ as V,kba as K,qba as L,zba as W}from"./cli-0.6.10-3nht1qk2.mjs";import{Opa as Q}from"./cli-0.6.10-yr88z6pr.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as Sb,Y as Tb};
@@ -0,0 +1,2 @@
1
+ import{ie as V,ke as B}from"./cli-0.6.10-yz5cd33k.mjs";import{FP as F,Oj as L,py as Q,qy as q,xM as U,zM as w}from"./cli-0.6.10-fh0qe3jw.mjs";import{C_ as k,x_ as K}from"./cli-0.6.10-3nht1qk2.mjs";import{Rha as I,Uha as $}from"./cli-0.6.10-zqv22c50.mjs";import{jia as G,qia as _}from"./cli-0.6.10-87cpzzxg.mjs";import{Opa as Z}from"./cli-0.6.10-yr88z6pr.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
+ export{h as ge,D as he};
@@ -0,0 +1,2 @@
1
+ import{Apa as p,Bpa as a}from"./cli-0.6.10-x7r5d517.mjs";import{Mpa as i}from"./cli-0.6.10-yr88z6pr.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
2
+ export{u as g7};
@@ -0,0 +1,2 @@
1
+ import{Opa as l}from"./cli-0.6.10-yr88z6pr.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as K1,E as L1,a as M1,c as N1};
@@ -0,0 +1,2 @@
1
+ import{$o as n,_o as W,by as I,cy as P,fy as t}from"./cli-0.6.10-fh0qe3jw.mjs";import{T1 as H,U1 as p}from"./cli-0.6.10-wtzszqn5.mjs";import{V1 as C,X1 as i}from"./cli-0.6.10-q3pn77m0.mjs";import{D2 as S,I2 as c,U5 as R,_5 as V,s6 as l,t5 as v}from"./cli-0.6.10-zyvt1jxy.mjs";import{Jda as T,Kca as O,Kda as Y,Lba as q,Mba as u,Qda as y,Tda as k,Wda as g,gea as D,mca as E,oea as m,pca as X}from"./cli-0.6.10-3nht1qk2.mjs";import{Tfa as G,Vfa as f,Wfa as $,Xfa as h}from"./cli-0.6.10-wnwqatq5.mjs";import{Hga as Z,Mga as _,Nga as M}from"./cli-0.6.10-r6n3t4y5.mjs";import{Rha as x,Uha as b}from"./cli-0.6.10-zqv22c50.mjs";import{cpa as Q,upa as A}from"./cli-0.6.10-tgw0ne6b.mjs";import{Opa as U}from"./cli-0.6.10-yr88z6pr.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
+ export{Yj as gc,r as hc};
@@ -0,0 +1,2 @@
1
+ import{uha as E,vha as F,zha as M}from"./cli-0.6.10-zqv22c50.mjs";import{cpa as H,upa as N}from"./cli-0.6.10-tgw0ne6b.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
2
+ export{V as pb,W as qb,X as rb,Y as sb,Z as tb};
@@ -0,0 +1,2 @@
1
+ import{Kca as L,gea as B,oea as N,pca as A}from"./cli-0.6.10-3nht1qk2.mjs";import{Rha as z,Uha as K}from"./cli-0.6.10-zqv22c50.mjs";import{Npa as I,Opa as J}from"./cli-0.6.10-yr88z6pr.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
2
+ export{P as pT,Q as qT,R as rT,H as sT,U as tT,V as uT,W as vT};
@@ -0,0 +1,2 @@
1
+ import{nF as U,oF as A,sF as V,tF as E}from"./cli-0.6.10-fh0qe3jw.mjs";import{UU as W,aV as G}from"./cli-0.6.10-3ytqex80.mjs";import{FZ as O,_Y as F,aZ as H}from"./cli-0.6.10-ajjmvx3c.mjs";import{L1 as q,M1 as K,N1 as L}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as I}from"./cli-0.6.10-w0xpqx8x.mjs";import{U5 as Q,s6 as p}from"./cli-0.6.10-zyvt1jxy.mjs";import{Kca as $,mca as M,pca as N}from"./cli-0.6.10-3nht1qk2.mjs";import{Kpa as Z,Opa as _}from"./cli-0.6.10-yr88z6pr.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
+ export{b as Wb,d as Xb,P as Yb};
@@ -0,0 +1,2 @@
1
+ import{Zc as K,_c as Y}from"./cli-0.6.10-0h6a9dcq.mjs";import{$k as B,_k as G,dl as U,el as V,ep as H,fp as W,hL as J,pL as X}from"./cli-0.6.10-fh0qe3jw.mjs";import{Lpa as q,Opa as v}from"./cli-0.6.10-yr88z6pr.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
+ export{P as Vc,C as Wc,A as Xc,D as Yc};
@@ -0,0 +1,2 @@
1
+ import{Dc as L,Ec as m}from"./cli-0.6.10-63mrsvws.mjs";import{Kc as O,Lc as G,Mc as u}from"./cli-0.6.10-bgr2v2kx.mjs";import{D5 as U,H5 as k,M5 as A,s6 as E}from"./cli-0.6.10-zyvt1jxy.mjs";import{B$ as K,C$ as Z,I$ as P,Kca as h,Sca as R,Yca as _,Zca as $,gda as x,gea as y,mba as N,mca as F,oea as C,pca as D,wca as Q,zba as g}from"./cli-0.6.10-3nht1qk2.mjs";import{iia as Y,qia as f}from"./cli-0.6.10-87cpzzxg.mjs";import{hoa as b,xla as J}from"./cli-0.6.10-seh7emsc.mjs";import{Opa as T}from"./cli-0.6.10-yr88z6pr.mjs";function n(){V=!0}function M(){if(!V)return!1;return V=!1,!0}function a(j){return(z)=>({...z,...typeof j.permission_mode==="string"?{toolPermissionContext:{...z.toolPermissionContext,mode:Z(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function t({newState:j,oldState:z}){let W=M(),X=z.toolPermissionContext.mode,H=j.toolPermissionContext.mode;if(X!==H){let q=K(X),B=K(H);if(q!==B){let I=B==="plan"&&j.isUltraplanMode&&!z.isUltraplanMode?!0:null;O({permission_mode:B,is_ultraplan_mode:I})}G(H)}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel===null){if(J(null),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:void 0}));else N("userSettings",{model:void 0}),$()}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel!==null){if(J(j.mainLoopModel),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:j.mainLoopModel??void 0}));else N("userSettings",{model:j.mainLoopModel}),_(j.mainLoopModel)}if(j.expandedView!==z.expandedView){let q=j.expandedView==="tasks",B=j.expandedView==="teammates";if(D().showExpandedTodos!==q||D().showSpinnerTree!==B)F((I)=>({...I,showExpandedTodos:q,showSpinnerTree:B}))}if(j.verbose!==z.verbose&&D().verbose!==j.verbose){let q=j.verbose;F((B)=>({...B,verbose:q}))}if(j.collapseSubagentProgress!==z.collapseSubagentProgress&&D().collapseSubagentProgress!==j.collapseSubagentProgress){let q=j.collapseSubagentProgress;F((B)=>({...B,collapseSubagentProgress:q}))}if(j.settings!==z.settings)try{if(U(),k(),A(),j.settings.env!==z.settings.env)L()}catch(q){y(Y(q))}}var V=!1;var c=T(()=>{b();E();h();f();C();m();x();P();u();g()});
2
+ export{n as yc,a as zc,t as Ac,c as Bc};
@@ -0,0 +1,2 @@
1
+ import{A9 as f,C8 as K,D8 as E,gea as U,oea as m,w9 as F}from"./cli-0.6.10-3nht1qk2.mjs";import{$fa as x,_fa as v}from"./cli-0.6.10-4v3edm8v.mjs";import{Dha as D,Hha as g}from"./cli-0.6.10-zqv22c50.mjs";import{Opa as S}from"./cli-0.6.10-yr88z6pr.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
2
+ export{P as nh,o as oh,h as ph,C as qh};
@@ -0,0 +1,2 @@
1
+ import{Opa as n}from"./cli-0.6.10-yr88z6pr.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
2
+ export{o as tU,e as uU,i as vU,g as wU,r as xU,u as yU,f as zU,l as AU,t as BU};
@@ -0,0 +1,2 @@
1
+ import{Rha as Q,Uha as $}from"./cli-0.6.10-zqv22c50.mjs";import{lia as K,qia as Z}from"./cli-0.6.10-87cpzzxg.mjs";import{Gia as Y,tia as J}from"./cli-0.6.10-kr2hhxcp.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
+ export{T as Q,w as R,y as S};
@@ -0,0 +1,2 @@
1
+ import{Bo as G,wo as Z}from"./cli-0.6.10-fh0qe3jw.mjs";import{gea as X,oea as R}from"./cli-0.6.10-3nht1qk2.mjs";import{Dha as C,Hha as M,Rha as U,Uha as O,uha as v,vha as B,zha as A}from"./cli-0.6.10-zqv22c50.mjs";import{Opa as b}from"./cli-0.6.10-yr88z6pr.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
2
+ export{o as nd,c as od,p as pd,d as qd,g as rd,w as sd};
@@ -0,0 +1,2 @@
1
+ import{GM as O,HM as P,IM as Q,Ii as M,JM as U,Ji as W,MM as X}from"./cli-0.6.10-fh0qe3jw.mjs";import{Opa as V}from"./cli-0.6.10-yr88z6pr.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
2
+ export{F as ig,$ as jg};
@@ -0,0 +1,24 @@
1
+ import{Cb as DY}from"./cli-0.6.10-dn50fre7.mjs";import{Jc as LY,Mc as iQ}from"./cli-0.6.10-bgr2v2kx.mjs";import{Nh as V0,Oh as p6}from"./cli-0.6.10-kqqk6z5r.mjs";import{li as pY,mi as A6}from"./cli-0.6.10-qdff7bwc.mjs";import{$P as iY,$o as i6,$w as m0,$z as L6,AC as HY,BC as aQ,Dp as iZ,Ep as AY,FP as wZ,Fk as L9,Fp as FZ,Gk as u6,Gp as _Y,Hj as KZ,Hk as z9,Ik as q9,Jk as bZ,KM as BY,KN as gY,Kj as E0,Kk as Y0,Lk as D9,MC as NY,MM as rQ,Mk as XZ,NC as nQ,Nk as Q0,OC as RY,Ok as v9,Pj as hY,Pk as A9,QC as z6,Qk as sY,Rz as uY,SJ as P9,SP as rY,Sw as h0,TN as dY,Tw as uZ,Tz as v6,UC as n,UJ as F9,Uw as k0,VN as lY,Vw as x0,WC as U6,Ww as u0,XA as cY,Xw as p0,YA as _6,YJ as M9,YO as s,Yw as pZ,ZN as w6,Zw as cZ,Zz as CY,_o as j9,_w as c0,_z as TY,aB as mY,ax as g0,bB as O6,bx as d0,cH as T0,cP as aY,cx as l0,dH as s9,dK as o6,dQ as zY,dt as ZY,dx as a0,et as xQ,ex as n0,ft as JY,fx as r0,gQ as qY,gt as lQ,gx as i0,ht as kY,hx as GQ,iJ as PY,jP as nY,kP as kZ,ks as M0,lJ as J6,mm as yZ,mv as I0,nF as C0,ns as b0,nz as xY,oF as o9,oP as xZ,os as fZ,pm as $Z,pv as i9,qm as e0,qz as D6,ss as r9}from"./cli-0.6.10-fh0qe3jw.mjs";import{HV as Q9,LV as R6}from"./cli-0.6.10-kvy7e0hs.mjs";import{DW as $0,EW as j0,FW as l9,IW as P0,JW as a9,PW as F0,QW as n9,pW as y0,qW as d9}from"./cli-0.6.10-r261gqbz.mjs";import{FX as m9,FZ as g9,_Y as p,aZ as M}from"./cli-0.6.10-ajjmvx3c.mjs";import{K1 as a,L1 as E,M1 as b,N1 as J0}from"./cli-0.6.10-gj0a1s24.mjs";import{O1 as c9}from"./cli-0.6.10-w0xpqx8x.mjs";import{T3 as $Y,X3 as K6,s6 as G6,v5 as jY}from"./cli-0.6.10-zyvt1jxy.mjs";import{$$ as $9,$7 as k9,$da as U0,C_ as T6,N8 as E9,U9 as TZ,W9 as x9,Z9 as y9,_7 as _Z,cea as p9,gaa as r6,gea as e,l8 as GY,n8 as dQ,n9 as a6,oea as w0,qba as yY,raa as wY,saa as EY,u_ as n6,uaa as V6,x_ as Y9,zba as W6}from"./cli-0.6.10-3nht1qk2.mjs";import{Hea as L0,Lea as h9,zea as B0}from"./cli-0.6.10-5jaxzkj9.mjs";import{Afa as $6,pfa as oY}from"./cli-0.6.10-3kakfn9p.mjs";import{Tfa as Y,Ufa as h,Vfa as JZ,Wfa as q,Xfa as EZ}from"./cli-0.6.10-wnwqatq5.mjs";import{$fa as X6,Dga as u9,_fa as UY,bga as RZ,ega as z0,fga as q0,gga as D0,hga as v0,kga as A0,lga as _0,xga as O0}from"./cli-0.6.10-4v3edm8v.mjs";import{Oga as g,Rga as UZ}from"./cli-0.6.10-qhnh10xs.mjs";import{Rha as I,Uga as Z9,Uha as HZ,Wga as C6,uha as ZZ,vha as WY,zha as PZ}from"./cli-0.6.10-zqv22c50.mjs";import{Wha as KY,_ha as gQ}from"./cli-0.6.10-ps3qshm2.mjs";import{bia as VY,jia as w9,kia as tZ,qia as lZ}from"./cli-0.6.10-87cpzzxg.mjs";import{Rma as J9,Sma as DZ,Tma as H9,Vma as N9,Wma as X0,Yma as B9,eoa as IY,hoa as BZ,kka as NZ,qka as W0,rka as eY,zla as OY}from"./cli-0.6.10-seh7emsc.mjs";import{Kpa as N0,Npa as hZ,Opa as OZ,Ppa as rZ}from"./cli-0.6.10-yr88z6pr.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
2
+ ${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
3
+ ${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
4
+ ${c}
5
+ ${R}`);else if(c)z(`Failed to restore the conversation:
6
+ ${c}`);else if(R)z(`Failed to restore the code:
7
+ ${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
8
+ `).slice(0,4).join(`
9
+ `)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-0.6.10-1ce12br9.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
+
11
+ Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
+ ${K}
13
+ ${W.prompt}
14
+ ${K}`});return`${X}
15
+
16
+ ${V.join(`
17
+
18
+ `)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
+ `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
+ `);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
+ `)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[aY(`${$}
22
+
23
+ Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?lY(A.commandName,V.options.commands):void 0;if(j)if(dY(j))C=!1;else{let N=`/${gY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),nY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.6.10-5yz1hvk7.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.6.10-71w6nfyj.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
24
+ export{HV as Z,N6 as _,OV as $,e9 as aa,S0 as ba,VQ as ca,WQ as da,KQ as ea,wV as fa,iV as ga,gZ as ha,jZ as ia,QY as ja,oQ as ka,Z6 as la,e6 as ma,IW as na,M6 as oa,b6 as pa,I6 as qa,g6 as ra,d6 as sa,l6 as ta};
@@ -0,0 +1,17 @@
1
+ import{f5 as x,l5 as K}from"./cli-0.6.10-zyvt1jxy.mjs";import{pba as w,zba as J}from"./cli-0.6.10-3nht1qk2.mjs";import{Afa as I,ofa as v}from"./cli-0.6.10-3kakfn9p.mjs";import{Gia as G,wia as q}from"./cli-0.6.10-kr2hhxcp.mjs";import{Opa as z}from"./cli-0.6.10-yr88z6pr.mjs";function W(b){return b.type==="advisor_tool_result"||b.type==="server_tool_use"&&b.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let b=j();return k()&&!N()&&b.baseModel&&b.advisorModel?{baseModel:b.baseModel,advisorModel:b.advisorModel}:void 0}function Z(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-4-6")}function $(b){let h=b.toLowerCase();return h.includes("opus-4-8")||h.includes("opus-4-7")||h.includes("opus-4-6")||h.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(b){let h=b.iterations;if(!h)return[];return h.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as fT,k as gT,N as hT,X as iT,Z as jT,$ as kT,B as lT,D as mT,F as nT,O as oT};
@@ -0,0 +1,15 @@
1
+ import{Mpa as T,Opa as J5,Ppa as M}from"./cli-0.6.10-yr88z6pr.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 De,X5 as Ee};
@@ -0,0 +1,3 @@
1
+ import{C0 as N,x0 as d,y0 as X}from"./cli-0.6.10-e5n6kpjg.mjs";import{Kca as p,Lba as O,Mba as f,gea as B,mca as U,oea as y,pca as G}from"./cli-0.6.10-3nht1qk2.mjs";import{iia as x,qia as b}from"./cli-0.6.10-87cpzzxg.mjs";import{Gia as E,tia as H}from"./cli-0.6.10-kr2hhxcp.mjs";import{Zla as w,hoa as P}from"./cli-0.6.10-seh7emsc.mjs";import{cpa as k,upa as S}from"./cli-0.6.10-tgw0ne6b.mjs";import{Kpa as M,Opa as R}from"./cli-0.6.10-yr88z6pr.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
+ export{zq as _e,Jq as $e,C as af,h as bf,Kq as cf,Qq as df,g as ef};
@@ -0,0 +1,58 @@
1
+ import{$B as p,FP as a,Kw as U,Mi as $,Mw as h,Pi as m,YO as F,_B as A,jA as k,kA as I,mP as L}from"./cli-0.6.10-fh0qe3jw.mjs";import{o2 as O,p2 as f}from"./cli-0.6.10-zyvt1jxy.mjs";import{Dha as S,Hha as E}from"./cli-0.6.10-zqv22c50.mjs";import{oia as b,qia as T}from"./cli-0.6.10-87cpzzxg.mjs";import{Gia as C,tia as y}from"./cli-0.6.10-kr2hhxcp.mjs";import{Opa as N}from"./cli-0.6.10-yr88z6pr.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
2
+
3
+ Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
4
+
5
+ The file {{docPath}} has already been read for you. Here are its current contents:
6
+ <current_doc_content>
7
+ {{docContents}}
8
+ </current_doc_content>
9
+
10
+ Document title: {{docTitle}}
11
+ {{customInstructions}}
12
+
13
+ Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
14
+
15
+ CRITICAL RULES FOR EDITING:
16
+ - Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
17
+ - If there's an italicized line immediately after the header, preserve it exactly as-is
18
+ - Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
19
+ - Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
20
+ - Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
21
+ - Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
22
+ - Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
23
+ - Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
24
+
25
+ DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
26
+ - BE TERSE. High signal only. No filler words or unnecessary elaboration.
27
+ - Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
28
+ - Do NOT duplicate information that's already obvious from reading the source code
29
+ - Do NOT document every function, parameter, or line number reference
30
+ - Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
31
+ - Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
32
+
33
+ What TO document:
34
+ - High-level architecture and system design
35
+ - Non-obvious patterns, conventions, or gotchas
36
+ - Key entry points and where to start reading code
37
+ - Important design decisions and their rationale
38
+ - Critical dependencies or integration points
39
+ - References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
40
+
41
+ What NOT to document:
42
+ - Anything obvious from reading the code itself
43
+ - Exhaustive lists of files, functions, or parameters
44
+ - Step-by-step implementation details
45
+ - Low-level code mechanics
46
+ - Information already in CLAUDE.md or other project docs
47
+
48
+ Use the Edit tool with file_path: {{docPath}}
49
+
50
+ REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
51
+
52
+ DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
53
+ The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
54
+
55
+ "${J}"
56
+
57
+ These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
58
+ export{Xw as Ph,Zw as Qh,s as Rh};