@claudiolabs/claudin 1.1.13 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (902) hide show
  1. package/README.md +15 -0
  2. package/dist/chunks/AgentTool-1.1.15-gx8fc8ee.mjs +1 -0
  3. package/dist/chunks/App-1.1.15-qpr6dmbc.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.15-rtnhqcns.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.15-s7er4t5d.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.15-kr2k1h8a.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.15-hw9nhwyy.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.15-0x92en6s.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.15-d6xm1gwy.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.15-c7mf2z38.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.15-0epyn26c.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.15-ctfaxbr1.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.15-e0tff61r.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.15-yd169vrz.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.15-n45xnvpn.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.15-k01hesh9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.15-asr4k8v7.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.15-hrth7zcv.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.15-zbv78tw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.15-nx65m66j.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.15-ywaycst9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.15-etyznx6r.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.15-0fg2psza.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.15-rse3qrff.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.15-v5yc09rw.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.15-yf6w94dh.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.15-8wp0rdty.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.15-gsenj0tc.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.15-gdh1b8nf.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.15-j0xgsz6j.mjs +1 -0
  31. package/dist/chunks/agents-1.1.15-5492tnsb.mjs +3 -0
  32. package/dist/chunks/agents-1.1.15-7hc1h2ch.mjs +110 -0
  33. package/dist/chunks/api-1.1.15-xk3v2kp8.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.15-e2v4yew0.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.15-nw8cp5g9.mjs +1 -0
  36. package/dist/chunks/auth-1.1.15-e4p3txt8.mjs +1 -0
  37. package/dist/chunks/auth-1.1.15-mwc856q9.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.15-a9fb2v1b.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.15-5wavzb5n.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.15-83x041z8.mjs +1 -0
  41. package/dist/chunks/branch-1.1.15-91a0yyws.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.15-5da0fvad.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.15-tg57j3bm.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.15-d4nwdh4g.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.15-rmb5208z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.15-rn0mx8rq.mjs +1 -0
  47. package/dist/chunks/btw-1.1.15-0jmj5h91.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.15-smncbttv.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.15-tcd6d5ha.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.15-nhmnthg5.mjs +4 -0
  51. package/dist/chunks/caches-1.1.15-ef0rrkeh.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.15-mhq3r4nw.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.15-khb8ybx5.mjs +1 -0
  54. package/dist/chunks/clear-1.1.15-8pawqyx1.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.15-xt8nj2kp.mjs +1 -0
  56. package/dist/chunks/cli-1.1.15-08shmxg9.mjs +2 -0
  57. package/dist/chunks/cli-1.1.15-0dyh92xq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.15-0h2kcmr1.mjs +18 -0
  59. package/dist/chunks/cli-1.1.15-0pfa5bmf.mjs +2 -0
  60. package/dist/chunks/cli-1.1.15-0rfyjnzd.mjs +2 -0
  61. package/dist/chunks/cli-1.1.15-0we6hqxv.mjs +2 -0
  62. package/dist/chunks/cli-1.1.15-10px11sw.mjs +3 -0
  63. package/dist/chunks/cli-1.1.15-13a7c1kp.mjs +42 -0
  64. package/dist/chunks/cli-1.1.15-1686x3bq.mjs +2 -0
  65. package/dist/chunks/cli-1.1.15-180mwt3m.mjs +12 -0
  66. package/dist/chunks/cli-1.1.15-198p1q51.mjs +2 -0
  67. package/dist/chunks/cli-1.1.15-1dxkde62.mjs +24 -0
  68. package/dist/chunks/cli-1.1.15-1j51w5q4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.15-1kjb39xj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.15-23s6jgky.mjs +2 -0
  71. package/dist/chunks/cli-1.1.15-28rcg0zk.mjs +2 -0
  72. package/dist/chunks/cli-1.1.15-2a8j57jc.mjs +3 -0
  73. package/dist/chunks/cli-1.1.15-2cqj7ng5.mjs +2 -0
  74. package/dist/chunks/cli-1.1.15-2ds94snw.mjs +2 -0
  75. package/dist/chunks/cli-1.1.15-2h049njx.mjs +2 -0
  76. package/dist/chunks/cli-1.1.15-2hm1vd94.mjs +2 -0
  77. package/dist/chunks/cli-1.1.15-2y7wsmne.mjs +4 -0
  78. package/dist/chunks/cli-1.1.15-336vzqmv.mjs +2 -0
  79. package/dist/chunks/cli-1.1.15-37qaz9g1.mjs +2 -0
  80. package/dist/chunks/cli-1.1.15-3ehpt6h2.mjs +2 -0
  81. package/dist/chunks/cli-1.1.15-3j79dbx9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.15-3rdskywh.mjs +39 -0
  83. package/dist/chunks/cli-1.1.15-3vx70sys.mjs +24 -0
  84. package/dist/chunks/cli-1.1.15-49wq39yd.mjs +2 -0
  85. package/dist/chunks/cli-1.1.15-4efmr7vy.mjs +2 -0
  86. package/dist/chunks/cli-1.1.15-4gknk1rg.mjs +18 -0
  87. package/dist/chunks/cli-1.1.15-4hpce0rc.mjs +2 -0
  88. package/dist/chunks/cli-1.1.15-4yp9xqth.mjs +2 -0
  89. package/dist/chunks/cli-1.1.15-59jq5mvw.mjs +2 -0
  90. package/dist/chunks/cli-1.1.15-59t4k8sr.mjs +66 -0
  91. package/dist/chunks/cli-1.1.15-5cr53mcj.mjs +2 -0
  92. package/dist/chunks/cli-1.1.15-5gp5r54s.mjs +58 -0
  93. package/dist/chunks/cli-1.1.15-657rhkrw.mjs +4 -0
  94. package/dist/chunks/cli-1.1.15-6g08vy98.mjs +2 -0
  95. package/dist/chunks/cli-1.1.15-6txc31rr.mjs +2 -0
  96. package/dist/chunks/cli-1.1.15-6w168zj1.mjs +2 -0
  97. package/dist/chunks/cli-1.1.15-716m1dh6.mjs +3 -0
  98. package/dist/chunks/cli-1.1.15-736kw6rq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.15-78j1ffsw.mjs +2 -0
  100. package/dist/chunks/cli-1.1.15-7enkgabc.mjs +2 -0
  101. package/dist/chunks/cli-1.1.15-7g1qck6b.mjs +2 -0
  102. package/dist/chunks/cli-1.1.15-7pdnxwtt.mjs +2 -0
  103. package/dist/chunks/cli-1.1.15-7sppxsya.mjs +2 -0
  104. package/dist/chunks/cli-1.1.15-7z4ctjx7.mjs +4 -0
  105. package/dist/chunks/cli-1.1.15-82j4qb2a.mjs +2 -0
  106. package/dist/chunks/cli-1.1.15-83qj7w53.mjs +2 -0
  107. package/dist/chunks/cli-1.1.15-89z8afvw.mjs +2 -0
  108. package/dist/chunks/cli-1.1.15-8mpc9ecv.mjs +2 -0
  109. package/dist/chunks/cli-1.1.15-8w8262sk.mjs +2 -0
  110. package/dist/chunks/cli-1.1.15-937n7y0j.mjs +2 -0
  111. package/dist/chunks/cli-1.1.15-9ec5jmz5.mjs +2 -0
  112. package/dist/chunks/cli-1.1.15-9mbbz0a1.mjs +6 -0
  113. package/dist/chunks/cli-1.1.15-9vzy8b6c.mjs +2 -0
  114. package/dist/chunks/cli-1.1.15-a2yw7vw1.mjs +2 -0
  115. package/dist/chunks/cli-1.1.15-a3xwxptj.mjs +3 -0
  116. package/dist/chunks/cli-1.1.15-a6p2wwtc.mjs +2 -0
  117. package/dist/chunks/cli-1.1.15-a9y6yf7g.mjs +45 -0
  118. package/dist/chunks/cli-1.1.15-ae2hn1xh.mjs +12 -0
  119. package/dist/chunks/cli-1.1.15-akhz6et5.mjs +3 -0
  120. package/dist/chunks/cli-1.1.15-arysgyep.mjs +3 -0
  121. package/dist/chunks/cli-1.1.15-axdksp5m.mjs +15 -0
  122. package/dist/chunks/cli-1.1.15-b16e0ajk.mjs +5440 -0
  123. package/dist/chunks/cli-1.1.15-ba6p63pk.mjs +2 -0
  124. package/dist/chunks/cli-1.1.15-baktd8w0.mjs +8 -0
  125. package/dist/chunks/cli-1.1.15-bhxf1gde.mjs +2 -0
  126. package/dist/chunks/cli-1.1.15-bkenrcdp.mjs +9 -0
  127. package/dist/chunks/cli-1.1.15-bkk9d70e.mjs +2 -0
  128. package/dist/chunks/cli-1.1.15-c0e6k21y.mjs +2 -0
  129. package/dist/chunks/cli-1.1.15-c6h2gge7.mjs +202 -0
  130. package/dist/chunks/cli-1.1.15-c74jnte8.mjs +6 -0
  131. package/dist/chunks/cli-1.1.15-c985ap3y.mjs +2 -0
  132. package/dist/chunks/cli-1.1.15-cagegn51.mjs +2 -0
  133. package/dist/chunks/cli-1.1.15-chxsepr7.mjs +2 -0
  134. package/dist/chunks/cli-1.1.15-cj6zmtng.mjs +2 -0
  135. package/dist/chunks/cli-1.1.15-cvwkywg9.mjs +2 -0
  136. package/dist/chunks/cli-1.1.15-cx3reatp.mjs +4 -0
  137. package/dist/chunks/cli-1.1.15-czbvbd5n.mjs +2 -0
  138. package/dist/chunks/cli-1.1.15-d4stmd3a.mjs +2 -0
  139. package/dist/chunks/cli-1.1.15-d4xme5sm.mjs +15 -0
  140. package/dist/chunks/cli-1.1.15-dbnqj3tk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.15-dpxcysrc.mjs +2 -0
  142. package/dist/chunks/cli-1.1.15-dv1zb375.mjs +4 -0
  143. package/dist/chunks/cli-1.1.15-dw51tkmc.mjs +3 -0
  144. package/dist/chunks/cli-1.1.15-e0wdjxcm.mjs +2 -0
  145. package/dist/chunks/cli-1.1.15-e69gmp99.mjs +2 -0
  146. package/dist/chunks/cli-1.1.15-e7t7w0n4.mjs +2 -0
  147. package/dist/chunks/cli-1.1.15-emegjc48.mjs +2 -0
  148. package/dist/chunks/cli-1.1.15-engyyzpk.mjs +2 -0
  149. package/dist/chunks/cli-1.1.15-erwqj4vs.mjs +34 -0
  150. package/dist/chunks/cli-1.1.15-evwsdckr.mjs +2 -0
  151. package/dist/chunks/cli-1.1.15-ewmcb0r7.mjs +133 -0
  152. package/dist/chunks/cli-1.1.15-ez7210ck.mjs +2 -0
  153. package/dist/chunks/cli-1.1.15-f0xy8ndf.mjs +2 -0
  154. package/dist/chunks/cli-1.1.15-f146m97m.mjs +2 -0
  155. package/dist/chunks/cli-1.1.15-f9eqbjqc.mjs +2 -0
  156. package/dist/chunks/cli-1.1.15-fcgk3maq.mjs +3 -0
  157. package/dist/chunks/cli-1.1.15-ffs08nv9.mjs +2 -0
  158. package/dist/chunks/cli-1.1.15-fk3ac4gc.mjs +2 -0
  159. package/dist/chunks/cli-1.1.15-fm6herjr.mjs +2 -0
  160. package/dist/chunks/cli-1.1.15-fnh28phg.mjs +24 -0
  161. package/dist/chunks/cli-1.1.15-fr6qfqgh.mjs +2 -0
  162. package/dist/chunks/cli-1.1.15-fyy1ehtf.mjs +3 -0
  163. package/dist/chunks/cli-1.1.15-g7tjhqzb.mjs +2 -0
  164. package/dist/chunks/cli-1.1.15-g9e4rkeg.mjs +2 -0
  165. package/dist/chunks/cli-1.1.15-gbrgyagf.mjs +7 -0
  166. package/dist/chunks/cli-1.1.15-gk6d4ahd.mjs +21 -0
  167. package/dist/chunks/cli-1.1.15-gngz1xbk.mjs +6 -0
  168. package/dist/chunks/cli-1.1.15-gpks2b5v.mjs +4 -0
  169. package/dist/chunks/cli-1.1.15-gq3wg30t.mjs +2 -0
  170. package/dist/chunks/cli-1.1.15-gs56p0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.15-gw258rrk.mjs +50 -0
  172. package/dist/chunks/cli-1.1.15-gwgwd5hm.mjs +4 -0
  173. package/dist/chunks/cli-1.1.15-h3y5qymm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.15-h6ev26yt.mjs +2 -0
  175. package/dist/chunks/cli-1.1.15-hf65t2c2.mjs +2 -0
  176. package/dist/chunks/cli-1.1.15-hq3xwfa3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.15-j8xzj86y.mjs +15 -0
  178. package/dist/chunks/cli-1.1.15-jd4x21q0.mjs +2 -0
  179. package/dist/chunks/cli-1.1.15-jdkggndk.mjs +2 -0
  180. package/dist/chunks/cli-1.1.15-jeqz3hde.mjs +24 -0
  181. package/dist/chunks/cli-1.1.15-jfe29j4s.mjs +2 -0
  182. package/dist/chunks/cli-1.1.15-jfs5gybd.mjs +2 -0
  183. package/dist/chunks/cli-1.1.15-jmt39vvh.mjs +2 -0
  184. package/dist/chunks/cli-1.1.15-jzw1d4vb.mjs +2 -0
  185. package/dist/chunks/cli-1.1.15-k1836ne2.mjs +16 -0
  186. package/dist/chunks/cli-1.1.15-k3j7z8yp.mjs +20 -0
  187. package/dist/chunks/cli-1.1.15-k8spwbtd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.15-kb70x0yv.mjs +3 -0
  189. package/dist/chunks/cli-1.1.15-kgm2pw8x.mjs +2 -0
  190. package/dist/chunks/cli-1.1.15-kr36eh1x.mjs +59 -0
  191. package/dist/chunks/cli-1.1.15-kvc672d5.mjs +2 -0
  192. package/dist/chunks/cli-1.1.15-m33mdt7b.mjs +3 -0
  193. package/dist/chunks/cli-1.1.15-m9er763b.mjs +2 -0
  194. package/dist/chunks/cli-1.1.15-mrgk4vjn.mjs +2 -0
  195. package/dist/chunks/cli-1.1.15-n7rft8vb.mjs +2 -0
  196. package/dist/chunks/cli-1.1.15-nffng52m.mjs +2 -0
  197. package/dist/chunks/cli-1.1.15-nnbd4as2.mjs +25 -0
  198. package/dist/chunks/cli-1.1.15-p1trn7j2.mjs +4 -0
  199. package/dist/chunks/cli-1.1.15-p7vaw3hv.mjs +2 -0
  200. package/dist/chunks/cli-1.1.15-pakg6t79.mjs +2 -0
  201. package/dist/chunks/cli-1.1.15-pf3rvvj5.mjs +3 -0
  202. package/dist/chunks/cli-1.1.15-pg56x579.mjs +2 -0
  203. package/dist/chunks/cli-1.1.15-pgqqjddw.mjs +4 -0
  204. package/dist/chunks/cli-1.1.15-ph9jfwh3.mjs +2 -0
  205. package/dist/chunks/cli-1.1.15-q5cap7nt.mjs +3 -0
  206. package/dist/chunks/cli-1.1.15-q6nb88hp.mjs +2 -0
  207. package/dist/chunks/cli-1.1.15-qga6k32k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.15-qnxzqj1z.mjs +2 -0
  209. package/dist/chunks/cli-1.1.15-qxhpqndj.mjs +5 -0
  210. package/dist/chunks/cli-1.1.15-qxprwvyg.mjs +2 -0
  211. package/dist/chunks/cli-1.1.15-r4y8m1sf.mjs +2 -0
  212. package/dist/chunks/cli-1.1.15-rdq10bn2.mjs +2 -0
  213. package/dist/chunks/cli-1.1.15-rhz9fv4x.mjs +4 -0
  214. package/dist/chunks/cli-1.1.15-rkfqf782.mjs +2 -0
  215. package/dist/chunks/cli-1.1.15-rqw4p0ke.mjs +2 -0
  216. package/dist/chunks/cli-1.1.15-rtcyrbsg.mjs +1 -0
  217. package/dist/chunks/cli-1.1.15-rvg56jwp.mjs +2 -0
  218. package/dist/chunks/cli-1.1.15-s28sb1ga.mjs +2 -0
  219. package/dist/chunks/cli-1.1.15-stmx3k3w.mjs +2 -0
  220. package/dist/chunks/cli-1.1.15-swf7050w.mjs +3 -0
  221. package/dist/chunks/cli-1.1.15-syqaq4nv.mjs +2 -0
  222. package/dist/chunks/cli-1.1.15-t0xrcfbr.mjs +2 -0
  223. package/dist/chunks/cli-1.1.15-t3rgyeam.mjs +2 -0
  224. package/dist/chunks/cli-1.1.15-t61ax3rg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.15-t80k8k17.mjs +2 -0
  226. package/dist/chunks/cli-1.1.15-t8xsja3r.mjs +6 -0
  227. package/dist/chunks/cli-1.1.15-tc86fw6x.mjs +2 -0
  228. package/dist/chunks/cli-1.1.15-tmp788zk.mjs +2 -0
  229. package/dist/chunks/cli-1.1.15-tpbkevjz.mjs +2 -0
  230. package/dist/chunks/cli-1.1.15-tv01zd9c.mjs +2 -0
  231. package/dist/chunks/cli-1.1.15-vsctpke4.mjs +2 -0
  232. package/dist/chunks/cli-1.1.15-vvc5kd0e.mjs +6 -0
  233. package/dist/chunks/cli-1.1.15-w1xsnsrr.mjs +2 -0
  234. package/dist/chunks/cli-1.1.15-w79kpn9z.mjs +17 -0
  235. package/dist/chunks/cli-1.1.15-w957aq1a.mjs +2 -0
  236. package/dist/chunks/cli-1.1.15-wbqj4f48.mjs +133 -0
  237. package/dist/chunks/cli-1.1.15-wkxn6fq7.mjs +9 -0
  238. package/dist/chunks/cli-1.1.15-wq860b6c.mjs +2 -0
  239. package/dist/chunks/cli-1.1.15-x4dh9ra2.mjs +2 -0
  240. package/dist/chunks/cli-1.1.15-x6z56vxt.mjs +2 -0
  241. package/dist/chunks/cli-1.1.15-xh72g5md.mjs +25 -0
  242. package/dist/chunks/cli-1.1.15-xmm250at.mjs +2 -0
  243. package/dist/chunks/cli-1.1.15-xn5kcp4k.mjs +2 -0
  244. package/dist/chunks/cli-1.1.15-xrdr3a8j.mjs +2 -0
  245. package/dist/chunks/cli-1.1.15-xtf04fdy.mjs +5 -0
  246. package/dist/chunks/cli-1.1.15-xvwbdkk2.mjs +2 -0
  247. package/dist/chunks/cli-1.1.15-y4jpgjpy.mjs +6 -0
  248. package/dist/chunks/cli-1.1.15-ya3zmpbf.mjs +2 -0
  249. package/dist/chunks/cli-1.1.15-ybhmmbr3.mjs +2 -0
  250. package/dist/chunks/cli-1.1.15-z9szqcyg.mjs +17 -0
  251. package/dist/chunks/cli-1.1.15-zg7csyzz.mjs +2 -0
  252. package/dist/chunks/cli-1.1.15-zm1sx1vh.mjs +2 -0
  253. package/dist/chunks/cli-1.1.15-zm9a5m0b.mjs +2 -0
  254. package/dist/chunks/cli-1.1.15-zpt8yv0b.mjs +2 -0
  255. package/dist/chunks/cli-1.1.15-zrabw726.mjs +2 -0
  256. package/dist/chunks/cli-1.1.15-ztgk02re.mjs +4 -0
  257. package/dist/chunks/cli-1.1.15-zw3cc5m8.mjs +2 -0
  258. package/dist/chunks/client-1.1.15-7zxfy90s.mjs +1 -0
  259. package/dist/chunks/color-1.1.15-v6smmkca.mjs +1 -0
  260. package/dist/chunks/compact-1.1.15-mey332ra.mjs +3 -0
  261. package/dist/chunks/config-1.1.15-jcwja4eb.mjs +1 -0
  262. package/dist/chunks/config-1.1.15-pafh429c.mjs +1 -0
  263. package/dist/chunks/constants-1.1.15-qvh9m3yg.mjs +1 -0
  264. package/dist/chunks/context-1.1.15-gef0rkyp.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.1.15-y4tcdh2q.mjs +1 -0
  266. package/dist/chunks/conversation-1.1.15-r506ktpr.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.1.15-nwyxv1c6.mjs +1 -0
  268. package/dist/chunks/copy-1.1.15-bm5qhs38.mjs +9 -0
  269. package/dist/chunks/cost-1.1.15-9en5vp81.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.1.15-46chvft6.mjs +1 -0
  271. package/dist/chunks/createSession-1.1.15-pxd63w9x.mjs +1 -0
  272. package/dist/chunks/debug-1.1.15-8nbm2xpt.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.1.15-wxt2kmzg.mjs +1526 -0
  274. package/dist/chunks/desktop-1.1.15-gdsmr24w.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.1.15-cdm0wycs.mjs +1 -0
  276. package/dist/chunks/detection-1.1.15-ftsf9hbz.mjs +1 -0
  277. package/dist/chunks/diff-1.1.15-q3a5dtec.mjs +1 -0
  278. package/dist/chunks/doctor-1.1.15-p6cn9vhk.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.1.15-1bqd038t.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.1.15-h3s4mc10.mjs +1 -0
  281. package/dist/chunks/effort-1.1.15-ntfkkphx.mjs +13 -0
  282. package/dist/chunks/engine-1.1.15-bafn3xae.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.1.15-jyzc1ek9.mjs +1 -0
  284. package/dist/chunks/envUtils-1.1.15-djhm9sn3.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.1.15-dk14rrw7.mjs +1 -0
  286. package/dist/chunks/environments-1.1.15-dgwyaqx6.mjs +1 -0
  287. package/dist/chunks/errors-1.1.15-dv0cz15v.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.1.15-263nxjc7.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.1.15-cgv6pwrz.mjs +1 -0
  290. package/dist/chunks/exit-1.1.15-7jy2eyny.mjs +1 -0
  291. package/dist/chunks/explorer-1.1.15-3cqntxjp.mjs +1 -0
  292. package/dist/chunks/export-1.1.15-w57hsyes.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.1.15-caapnsf9.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.1.15-2hrhqvj4.mjs +1 -0
  295. package/dist/chunks/fast-1.1.15-556g3z6s.mjs +1 -0
  296. package/dist/chunks/feedback-1.1.15-g0fbb2v3.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.1.15-5d6tk014.mjs +1 -0
  298. package/dist/chunks/git-1.1.15-xzay0ztr.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.1.15-4py0k74v.mjs +1 -0
  300. package/dist/chunks/goal-1.1.15-e1em0116.mjs +4 -0
  301. package/dist/chunks/growthbook-1.1.15-6xn6q0sp.mjs +1 -0
  302. package/dist/chunks/headless-1.1.15-rafx8eee.mjs +2 -0
  303. package/dist/chunks/heapdump-1.1.15-6q8q4788.mjs +6 -0
  304. package/dist/chunks/help-1.1.15-zs3pgg4k.mjs +1 -0
  305. package/dist/chunks/hookChains-1.1.15-9a6pb5w5.mjs +3 -0
  306. package/dist/chunks/hooks-1.1.15-b9gs32vb.mjs +1 -0
  307. package/dist/chunks/hooks-1.1.15-hfwjnas3.mjs +79 -0
  308. package/dist/chunks/ide-1.1.15-ece17mva.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.1.15-fejg7fwn.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.1.15-pk7rphxz.mjs +1 -0
  311. package/dist/chunks/index-1.1.15-2vvc784g.mjs +5 -0
  312. package/dist/chunks/index-1.1.15-58q8vth9.mjs +30 -0
  313. package/dist/chunks/index-1.1.15-61gtszck.mjs +23 -0
  314. package/dist/chunks/index-1.1.15-63sm4p3b.mjs +1 -0
  315. package/dist/chunks/index-1.1.15-bqgefxac.mjs +2 -0
  316. package/dist/chunks/index-1.1.15-cmeghrr8.mjs +1 -0
  317. package/dist/chunks/index-1.1.15-dh3eqcj6.mjs +1 -0
  318. package/dist/chunks/index-1.1.15-gt3z8ez8.mjs +2 -0
  319. package/dist/chunks/index-1.1.15-hngbp5j9.mjs +1 -0
  320. package/dist/chunks/index-1.1.15-hv4e77y5.mjs +1 -0
  321. package/dist/chunks/index-1.1.15-jbcn1htw.mjs +1 -0
  322. package/dist/chunks/index-1.1.15-jsq8t7gh.mjs +1 -0
  323. package/dist/chunks/index-1.1.15-jxrabdxb.mjs +9 -0
  324. package/dist/chunks/index-1.1.15-k2qf0p34.mjs +1 -0
  325. package/dist/chunks/index-1.1.15-kegec7g7.mjs +1 -0
  326. package/dist/chunks/index-1.1.15-px3s42jj.mjs +1 -0
  327. package/dist/chunks/index-1.1.15-qa2n341d.mjs +1 -0
  328. package/dist/chunks/index-1.1.15-rb6gwjnr.mjs +9 -0
  329. package/dist/chunks/index-1.1.15-v1jbnyfv.mjs +1 -0
  330. package/dist/chunks/index-1.1.15-v3xjhkgg.mjs +1 -0
  331. package/dist/chunks/index-1.1.15-wn5dzvtp.mjs +1 -0
  332. package/dist/chunks/index-1.1.15-yxqqa2q5.mjs +1 -0
  333. package/dist/chunks/index-1.1.15-ztxh3p91.mjs +1 -0
  334. package/dist/chunks/init-1.1.15-s0513abb.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.1.15-nfxwvhxr.mjs +1 -0
  336. package/dist/chunks/ink-1.1.15-06g53x2d.mjs +1 -0
  337. package/dist/chunks/insights-1.1.15-2ttbvk7c.mjs +870 -0
  338. package/dist/chunks/install-1.1.15-w5d46eyw.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.1.15-tqjywtyy.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.1.15-7qyq36aa.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.1.15-5nywr7k6.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.1.15-9akt8s2v.mjs +1 -0
  343. package/dist/chunks/keybindings-1.1.15-1tvzezk8.mjs +2 -0
  344. package/dist/chunks/knowledge-1.1.15-bkkcs3a3.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.1.15-2ksjmrzy.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.1.15-95r643y9.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.1.15-h3znhdpc.mjs +1 -0
  348. package/dist/chunks/log-1.1.15-efrp1hpn.mjs +1 -0
  349. package/dist/chunks/main-1.1.15-ba7dtwzz.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.1.15-5b44apg9.mjs +1 -0
  351. package/dist/chunks/mcp-1.1.15-219ec2vw.mjs +4 -0
  352. package/dist/chunks/mcp-1.1.15-84m4prhz.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.15-9f3zyt67.mjs +17 -0
  354. package/dist/chunks/mcpb-1.1.15-ykxze1k6.mjs +1 -0
  355. package/dist/chunks/memory-1.1.15-96pdt13p.mjs +72 -0
  356. package/dist/chunks/model-1.1.15-b40xd4h1.mjs +1 -0
  357. package/dist/chunks/model-1.1.15-pvecp9fh.mjs +2 -0
  358. package/dist/chunks/node-1.1.15-e5eqx52s.mjs +12 -0
  359. package/dist/chunks/oauth-1.1.15-7fxj0bcf.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.1.15-dq3fghyq.mjs +14 -0
  361. package/dist/chunks/output-style-1.1.15-e7ttz7b5.mjs +1 -0
  362. package/dist/chunks/package-L37ZVTF4-1.1.15-kss8kwyd.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.1.15-km2j6z0r.mjs +1 -0
  364. package/dist/chunks/parser-1.1.15-2x7mpppq.mjs +1 -0
  365. package/dist/chunks/passes-1.1.15-8x4mva12.mjs +1 -0
  366. package/dist/chunks/permissions-1.1.15-134fj94y.mjs +1 -0
  367. package/dist/chunks/permissions-1.1.15-a2d8pgtp.mjs +3 -0
  368. package/dist/chunks/plan-1.1.15-swdve0xr.mjs +1 -0
  369. package/dist/chunks/plist-1.1.15-5ged16we.mjs +1 -0
  370. package/dist/chunks/plugin-1.1.15-kcpdt96s.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.1.15-aazppe92.mjs +1 -0
  372. package/dist/chunks/plugins-1.1.15-atzwgc9x.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.1.15-611jrgf1.mjs +2 -0
  374. package/dist/chunks/print-1.1.15-ma7jjc0w.mjs +57 -0
  375. package/dist/chunks/process-1.1.15-6rbhzpg0.mjs +1 -0
  376. package/dist/chunks/processBashCommand-1.1.15-aamrz1kj.mjs +1 -0
  377. package/dist/chunks/processSlashCommand-1.1.15-azxvy7pb.mjs +9 -0
  378. package/dist/chunks/prompt-1.1.15-1k4m318a.mjs +1 -0
  379. package/dist/chunks/prompt-1.1.15-xe79z4pr.mjs +1 -0
  380. package/dist/chunks/prompts-1.1.15-wte4x7e4.mjs +1 -0
  381. package/dist/chunks/protocolHandler-1.1.15-88zg9mk8.mjs +13 -0
  382. package/dist/chunks/provider-1.1.15-c8z6c4xj.mjs +2 -0
  383. package/dist/chunks/providerProfiles-1.1.15-srn11t8e.mjs +1 -0
  384. package/dist/chunks/providerValidation-1.1.15-yef6qwy2.mjs +6 -0
  385. package/dist/chunks/rate-limit-options-1.1.15-dk2mf38m.mjs +1 -0
  386. package/dist/chunks/registerSubcommands-1.1.15-v5kze215.mjs +26 -0
  387. package/dist/chunks/registry-1.1.15-jnsk0t9a.mjs +1 -0
  388. package/dist/chunks/release-notes-1.1.15-nbmmmwbh.mjs +5 -0
  389. package/dist/chunks/reload-plugins-1.1.15-thmm1n66.mjs +2 -0
  390. package/dist/chunks/remote-env-1.1.15-mt6r7s6d.mjs +1 -0
  391. package/dist/chunks/remoteBridgeCore-1.1.15-28aykv35.mjs +1 -0
  392. package/dist/chunks/remoteSession-1.1.15-br9mvf70.mjs +1 -0
  393. package/dist/chunks/rename-1.1.15-4cnm57qq.mjs +1 -0
  394. package/dist/chunks/replBridgeHandle-1.1.15-554c9pxz.mjs +1 -0
  395. package/dist/chunks/replLauncher-1.1.15-0ymjxtxx.mjs +1 -0
  396. package/dist/chunks/resume-1.1.15-tka4a9rz.mjs +2 -0
  397. package/dist/chunks/rewind-1.1.15-pskzwz2n.mjs +1 -0
  398. package/dist/chunks/rootOptions-1.1.15-k8vyvzs4.mjs +1 -0
  399. package/dist/chunks/runWorkflowHeadless-1.1.15-2sgm9477.mjs +10 -0
  400. package/dist/chunks/sandbox-adapter-1.1.15-jjpkvd4w.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.1.15-e2bqcnkv.mjs +1 -0
  402. package/dist/chunks/session-1.1.15-p4vbgb6n.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.1.15-krx4yyg5.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.1.15-gmsn6pxt.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.1.15-7b040mx5.mjs +1 -0
  406. package/dist/chunks/settings-1.1.15-ekfty1pj.mjs +1 -0
  407. package/dist/chunks/setup-1.1.15-zep22435.mjs +5 -0
  408. package/dist/chunks/sinks-1.1.15-5b2jbvzk.mjs +1 -0
  409. package/dist/chunks/skills-1.1.15-tqfym88e.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.1.15-x5r52mgd.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.1.15-zvm4gj9j.mjs +1 -0
  412. package/dist/chunks/state-1.1.15-92brngf3.mjs +1 -0
  413. package/dist/chunks/stats-1.1.15-83zt06hn.mjs +6 -0
  414. package/dist/chunks/status-1.1.15-z168hre8.mjs +1 -0
  415. package/dist/chunks/stickers-1.1.15-7hf6025s.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.1.15-vsw2gnsy.mjs +1 -0
  417. package/dist/chunks/tasks-1.1.15-0jrt2qg7.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.1.15-k13jejzh.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.1.15-s9t0zyne.mjs +1 -0
  420. package/dist/chunks/teleport-1.1.15-9dd1smb0.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.1.15-qc30y99e.mjs +1 -0
  422. package/dist/chunks/theme-1.1.15-6q2jy7n3.mjs +1 -0
  423. package/dist/chunks/thinkback-1.1.15-nm1h90a9.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.1.15-f67z5b5k.mjs +1 -0
  425. package/dist/chunks/toolPool-1.1.15-tfcesaq1.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.1.15-8ta5a4z3.mjs +1 -0
  427. package/dist/chunks/tools-1.1.15-y5hj8rpq.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.1.15-8tfqjnhv.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.1.15-hh9kd6yr.mjs +69 -0
  430. package/dist/chunks/types-1.1.15-9baqmv4a.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.1.15-pgr4087d.mjs +4 -0
  432. package/dist/chunks/update-1.1.15-3g32jxm9.mjs +72 -0
  433. package/dist/chunks/upgrade-1.1.15-n01mknp0.mjs +1 -0
  434. package/dist/chunks/upload-1.1.15-7swxydm4.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.1.15-0kwe084a.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.1.15-6zmtv9xn.mjs +1 -0
  437. package/dist/chunks/usage-1.1.15-24aqj3m1.mjs +1 -0
  438. package/dist/chunks/util-1.1.15-5jq3gm50.mjs +1 -0
  439. package/dist/chunks/utils-1.1.15-w1h2z3bz.mjs +1 -0
  440. package/dist/chunks/vim-1.1.15-saehb9jw.mjs +1 -0
  441. package/dist/chunks/watchLoop-1.1.15-5whne0rd.mjs +13 -0
  442. package/dist/chunks/watcher-1.1.15-jgbek4vd.mjs +1 -0
  443. package/dist/chunks/wiki-1.1.15-d8an1sjy.mjs +132 -0
  444. package/dist/chunks/workflows-1.1.15-hxrpwge7.mjs +1 -0
  445. package/dist/chunks/worktree-1.1.15-1es3bab6.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.1.15-c62gcjdh.mjs +1 -0
  447. package/dist/chunks/wrapper-1.1.15-jn7yrxqc.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +9 -9
  450. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
  451. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
  458. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
  459. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
  461. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
  467. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
  477. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
  479. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
  480. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
  481. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
  482. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
  483. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
  484. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
  485. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
  486. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
  489. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
  490. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
  495. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
  496. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
  497. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
  498. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
  499. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
  500. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
  501. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
  502. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
  503. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
  504. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
  505. package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
  506. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
  507. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
  508. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
  510. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
  511. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
  512. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
  513. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
  514. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
  517. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
  518. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
  519. package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
  520. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
  521. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
  522. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
  524. package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
  525. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
  526. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
  529. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
  530. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
  531. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
  532. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
  533. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
  535. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
  537. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
  538. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
  539. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
  540. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
  541. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
  542. package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
  543. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
  544. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
  545. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
  546. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
  547. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
  548. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
  549. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
  550. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
  551. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
  553. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
  554. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
  556. package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
  557. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
  559. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
  560. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
  561. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
  562. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
  563. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
  564. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
  565. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
  566. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
  567. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
  568. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
  569. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
  570. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
  571. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
  573. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
  574. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
  575. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
  576. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
  577. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
  578. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
  579. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
  580. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
  581. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
  582. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
  583. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
  584. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
  585. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
  586. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
  587. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
  588. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
  589. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
  590. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
  591. package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
  592. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
  593. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
  594. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
  595. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
  596. package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
  597. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
  598. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
  600. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
  601. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
  602. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
  603. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
  604. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
  605. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
  606. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
  607. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
  608. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
  609. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
  610. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
  611. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
  612. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
  614. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
  615. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
  616. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
  617. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
  618. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
  619. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
  620. package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
  621. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
  622. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
  623. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
  624. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
  625. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
  626. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
  627. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
  628. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
  629. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
  630. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
  631. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
  632. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
  633. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
  634. package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
  635. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
  636. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
  637. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
  638. package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
  640. package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
  642. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
  643. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
  644. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
  645. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
  646. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
  647. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
  648. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
  649. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
  650. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
  651. package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
  652. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
  653. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
  654. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
  655. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
  656. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
  657. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
  658. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
  659. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
  660. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
  661. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
  662. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
  663. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
  664. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
  665. package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
  666. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
  667. package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
  668. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
  669. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
  670. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
  671. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
  672. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
  673. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
  674. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
  675. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
  676. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
  677. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
  678. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
  680. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
  681. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
  682. package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
  683. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
  684. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
  685. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
  686. package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
  687. package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
  688. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
  690. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
  691. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
  692. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
  693. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
  694. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
  695. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
  696. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
  697. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
  698. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
  700. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
  701. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
  702. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
  703. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
  704. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
  705. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
  706. package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
  707. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
  708. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
  709. package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
  710. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
  711. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
  712. package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
  713. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
  714. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
  715. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
  716. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
  717. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
  718. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
  719. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
  720. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
  721. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
  722. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
  723. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
  724. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
  725. package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
  726. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
  727. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
  728. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
  729. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
  730. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
  731. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
  732. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
  733. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
  734. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
  735. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
  736. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
  737. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
  738. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
  739. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
  740. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
  741. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
  742. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
  743. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
  744. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
  745. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
  746. package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
  747. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
  748. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
  749. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
  750. package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
  751. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
  752. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
  753. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
  754. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
  755. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
  756. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
  757. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
  758. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
  759. package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
  760. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
  761. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
  762. package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
  763. package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
  764. package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
  765. package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
  766. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
  767. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
  768. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
  769. package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
  770. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
  771. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
  772. package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
  773. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
  774. package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
  775. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
  776. package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
  777. package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
  778. package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
  779. package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
  780. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
  781. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
  782. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
  783. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
  784. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
  785. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
  786. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
  787. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
  788. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
  789. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
  790. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
  791. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
  792. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
  793. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
  794. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
  796. package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
  797. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
  799. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
  800. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
  801. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
  802. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
  803. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
  804. package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
  805. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
  806. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
  807. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
  809. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
  810. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
  812. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
  813. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
  814. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
  815. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
  816. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
  817. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
  818. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
  820. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
  822. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
  823. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
  824. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
  825. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
  826. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
  827. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
  828. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
  829. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
  830. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
  831. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
  832. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
  833. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
  834. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
  835. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
  836. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
  837. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
  838. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
  839. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
  840. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
  841. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
  842. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
  843. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
  844. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
  845. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
  846. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
  847. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
  848. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
  850. package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
  854. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
  855. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
  856. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
  857. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
  860. package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
  861. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
  862. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
  863. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
  865. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
  868. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
  870. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
  871. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
  873. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
  875. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
  878. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
  880. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
  881. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
  882. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
  885. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
  886. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
  887. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
  888. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
  889. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
  890. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
  891. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
  892. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
  893. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
  894. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
  895. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
  896. /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.15-7rhgft7r.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.15-a86ebv4c.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.15-bwy6nhdk.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.15-g9n3fyq0.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.15-h58yf3xj.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.15-r64a0n76.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.15-yrmh6ksq.mjs} +0 -0
@@ -0,0 +1,12 @@
1
+ import{pg as $Z,qg as uZ,rg as pz}from"./cli-1.1.15-0we6hqxv.mjs";import{Bh as HJ,Ch as Vz}from"./cli-1.1.15-w957aq1a.mjs";import{Mh as GJ,Nh as Bz}from"./cli-1.1.15-ffs08nv9.mjs";import{$J as gQ,$x as $Q,Ay as PX,BR as nZ,CR as aQ,CT as pZ,ER as g0,FR as rQ,Fn as zQ,Gn as $z,HR as eJ,Hk as mZ,Hx as xQ,IR as ZQ,Ik as FX,JR as oQ,KR as tQ,Kx as OX,MR as OZ,NT as BQ,Nn as RQ,On as NX,Zj as _Z,Zx as DQ,_j as TQ,_x as UQ,ay as uQ,bo as XQ,dB as e0,do as xZ,eB as gJ,ey as MQ,fB as mJ,fy as EQ,gB as nJ,gk as SJ,gt as wJ,hB as yz,hk as IJ,kt as Dz,no as WQ,ok as fJ,ro as uz,ry as pQ,sA as IZ,sy as AX,tA as hZ,uA as TZ,uR as nQ,vA as dJ,wA as cQ,wT as VQ,xA as cJ,yR as lQ,zR as iQ,zT as KQ,zy as dQ}from"./cli-1.1.15-b16e0ajk.mjs";import{PU as fQ,YU as jX}from"./cli-1.1.15-z9szqcyg.mjs";import{VX as FZ,WX as qJ,oY as YJ,sY as qz,tY as DZ,uY as wX}from"./cli-1.1.15-tpbkevjz.mjs";import{$Y as WJ,B0 as hQ,C0 as KX,HZ as c0,I0 as b,J0 as PQ,K0 as g,L0 as JX,MZ as vZ,aZ as Wz,j0 as UZ,jZ as u0,l0 as Jz,n1 as f0}from"./cli-1.1.15-kr36eh1x.mjs";import{K3 as p0,L3 as B,M3 as $,N3 as F0}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as I0}from"./cli-1.1.15-fk3ac4gc.mjs";import{k4 as VJ,l4 as BJ,m4 as Yz}from"./cli-1.1.15-fyy1ehtf.mjs";import{T7 as JQ,b8 as QQ,q7 as jQ,r7 as ZX,w7 as JZ,w8 as xz,z7 as QZ}from"./cli-1.1.15-k1836ne2.mjs";import{S8 as gZ,T8 as GX}from"./cli-1.1.15-gngz1xbk.mjs";import{Eba as LX,Oca as LZ,Rea as HQ,Wca as XJ,d_ as v0,e_ as zJ,iba as IQ,wea as PZ}from"./cli-1.1.15-c6h2gge7.mjs";import{Cga as jZ,Dga as TJ,Nga as ZZ,Uga as hz}from"./cli-1.1.15-p1trn7j2.mjs";import{Dia as RZ,Fia as Rz,Qia as KZ,Via as NZ,Wia as wZ,gja as Pz}from"./cli-1.1.15-mrgk4vjn.mjs";import{uka as m0,xka as ez}from"./cli-1.1.15-vvc5kd0e.mjs";import{fla as SQ,nla as HX}from"./cli-1.1.15-tc86fw6x.mjs";import{Sqa as BX,nqa as kQ}from"./cli-1.1.15-xn5kcp4k.mjs";import{Asa as w0,Esa as L0}from"./cli-1.1.15-bwy6nhdk.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Jz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??Nz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(wz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),w=B(jz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function Nz(){}function wz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function jz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();f0();Yz();vZ();XJ();CZ();Vz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Pz();Dz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Uz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Uz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
+ `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
+ `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
+ `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
+ `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
+ `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
+ `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
+ `))}return Q.join(`
10
+ `)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Sz(J.message,J.streamingToolUseIDs),W=Iz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();yz();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(_z,Tz)});import{relative as fz}from"path";function qQ(J){return iz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,lz,iz;var YQ=L0(()=>{f0();BQ();zJ();Rz();hz();xz();pz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?fz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},lz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},iz=[dz,nz,cz,gz,mz,lz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??sz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/tz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??rz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-oz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,rz=3,o0=80,oz=30,tz,fZ=1,WZ=300,qZ=25,sz=()=>{};var wQ=L0(()=>{m=w0(I0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
+ `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??YX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=XX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{wQ();f0();JX();LJ();ez();ZX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function SX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var mQ,YZ,p,DX,UX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(nQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>tQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=gQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:lQ(T,{includeSnipped:!0}),U=aQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>iQ(S0,D)),w),B0=[yQ,MX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?EX(U,B0):a.length>0?bX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(PJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=U.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(UX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(DX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(kX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();f0();NX();OX();FX();jX();AJ();DJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();SZ();wX();AX();iZ();oJ();EQ();PX();CZ();gJ();FQ();vQ();F0();mQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),DX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(SX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
+ export{s0 as se,TX as te,iZ as ue,xX as ve,$X as we,JJ as xe,QW as ye,zW as ze,XW as Ae,LJ as Be,g8 as Ce,sJ as De};
@@ -0,0 +1,2 @@
1
+ import{K0 as t,jZ as s,n1 as f}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as n,M3 as c,N3 as r}from"./cli-1.1.15-e0wdjxcm.mjs";import{Asa as m,Esa as l}from"./cli-1.1.15-bwy6nhdk.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
2
+ export{T as jg,p as kg};
@@ -0,0 +1,24 @@
1
+ import{xg as _Q,zg as iQ}from"./cli-1.1.15-qxhpqndj.mjs";import{qi as WQ,ri as zX}from"./cli-1.1.15-xh72g5md.mjs";import{DJ as JJ,EJ as mJ,Fs as CQ,LJ as GQ,MJ as KQ,NJ as VQ,OJ as OQ,Ps as qX,QJ as NQ,TJ as IJ,UJ as nJ,VJ as rJ,WJ as gQ,ZF as SJ,_F as YQ,yp as ZQ,zp as uQ}from"./cli-1.1.15-b16e0ajk.mjs";import{VX as bJ,WX as aJ,hY as BQ,jY as ZX,mY as FQ,nY as $X,tY as zJ,uY as iJ}from"./cli-1.1.15-tpbkevjz.mjs";import{$Y as LJ,D0 as FJ,E0 as CJ,F0 as oJ,I0 as N,K0 as M,U0 as t,aZ as lJ,c1 as e,n1 as WJ,sZ as BJ}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as q,M3 as _,N3 as s}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as AJ}from"./cli-1.1.15-fk3ac4gc.mjs";import{S8 as i,T8 as dJ}from"./cli-1.1.15-gngz1xbk.mjs";import{pga as x,xga as DJ}from"./cli-1.1.15-c6h2gge7.mjs";import{Cga as f,Dga as pJ,Fga as n,Jga as uJ,Oga as vJ,Uga as kQ}from"./cli-1.1.15-p1trn7j2.mjs";import{Dia as UQ,Fia as aQ}from"./cli-1.1.15-mrgk4vjn.mjs";import{Asa as OJ,Esa as qJ,Fsa as oQ}from"./cli-1.1.15-bwy6nhdk.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let A of HJ(H.agents))if(K+=1,!A.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((A)=>!A.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",A=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return A+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),A=eJ(J),W=Math.min(U,Math.max(0,A.length-1)),X=A[W],{done:I,total:w}=tJ(J),[S]=BJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=A.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[A,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...A.filter(($)=>$.runId!==J.runId)]:A).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((B)=>Math.max(0,B-1));else if(Y.downArrow)O(),S((B)=>Math.min(Math.max(0,P-1),B+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(AJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),A=J.instructions.trim();return`---
2
+ ${H}
3
+ ---
4
+ ${A?`${A}
5
+ `:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((A,W)=>({...A,name:W===U?K:A.name,handbackTo:A.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[A]=BJ(),W=FJ(A),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.15-j0xgsz6j.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),B=C-1,u=X&&B>=0?X.steps[B]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
6
+ `:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,B).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,B,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&B>=0)P((G)=>({...G,steps:qQ(G.steps,B,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,B,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,B,P]),jQ=E.useCallback(()=>{if(B<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==B)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,B,P]),gJ=E.useCallback((Q)=>{if(!X||B<0)return;let Z=B+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(B,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,B,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
7
+ `):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(AJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,A]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{A(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((B)=>Math.max(0,B-1));else if(P.downArrow)w((B)=>Math.min(H.length-1,B+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let B=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,B?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
8
+ name: ${J}
9
+ description: What this workflow does
10
+ steps:
11
+ - name: explore
12
+ agents: [explorer]
13
+ - name: synthesize
14
+ agents: [synthesizer]
15
+ handbackTo: [explore]
16
+ - name: done
17
+ ---
18
+ Describe the goal and any house rules for this workflow.
19
+ `;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(AJ(),1)});function AQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return BQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[A,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
20
+ <status>${c.status}</status>
21
+ <summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
22
+ <result>${$}</result>
23
+ </task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:A==="running",inverse:A==="running",children:[" ","Running"," "]}),_(M,{bold:A==="library",inverse:A==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(A==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(AQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(AQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(AJ(),1)});
24
+ export{NZ as Xb,YX as Yb};
@@ -0,0 +1,2 @@
1
+ import{Esa as o}from"./cli-1.1.15-bwy6nhdk.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p,r,a,E;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),r=new Set(["api.deepseek.com"]),a={"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"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
+ export{t as a9,n as b9,i as c9,_ as d9,s as e9,c as f9,p as g9,r as h9,a as i9,E as j9,e as k9};
@@ -0,0 +1,2 @@
1
+ import{Xn as T,Yn as j,hG as I,jG as _}from"./cli-1.1.15-b16e0ajk.mjs";import{I0 as P,K0 as J,O0 as C,jZ as S,n1 as g}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as G,M3 as H,N3 as R}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as v}from"./cli-1.1.15-fk3ac4gc.mjs";import{Dea as B,Rea as h}from"./cli-1.1.15-c6h2gge7.mjs";import{rja as W,uja as D}from"./cli-1.1.15-8w8262sk.mjs";import{Asa as f,Esa as p}from"./cli-1.1.15-bwy6nhdk.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
2
+ export{l as Gg,r as Hg};
@@ -0,0 +1,2 @@
1
+ import{H as F}from"./cli-1.1.15-r64a0n76.mjs";import{R as k}from"./cli-1.1.15-baktd8w0.mjs";import{ab as x}from"./cli-1.1.15-7z4ctjx7.mjs";import{bb as O}from"./cli-1.1.15-8mpc9ecv.mjs";import{Go as G,Ho as U,Ko as L,Lo as d,RT as b,ST as p}from"./cli-1.1.15-b16e0ajk.mjs";import{EU as R,HU as u}from"./cli-1.1.15-cvwkywg9.mjs";import{F4 as Y,L4 as D,O6 as j,P6 as z,R7 as w,S7 as E,w8 as m}from"./cli-1.1.15-k1836ne2.mjs";import{Rda as X,Sda as B,aga as $,dga as M}from"./cli-1.1.15-c6h2gge7.mjs";import{Dia as _,Fia as I}from"./cli-1.1.15-mrgk4vjn.mjs";import{uka as K,xka as y}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as v,Uka as V}from"./cli-1.1.15-dv1zb375.mjs";import{fla as J,hla as N,nla as C}from"./cli-1.1.15-tc86fw6x.mjs";import{Mra as W,csa as A}from"./cli-1.1.15-fnh28phg.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
2
+ export{Xq as F};
@@ -0,0 +1,2 @@
1
+ import{FM as L,PM as h,YM as y,ZM as S,dN as w}from"./cli-1.1.15-b16e0ajk.mjs";import{I0 as U,K0 as D,O0 as v,jZ as l,n1 as B}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as G,M3 as H,N3 as W}from"./cli-1.1.15-e0wdjxcm.mjs";import{Asa as C,Esa as M}from"./cli-1.1.15-bwy6nhdk.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{h();w();B();W();u=C(l(),1)});
2
+ export{x as sg,p as tg};
@@ -0,0 +1,3 @@
1
+ import{Cg as p,Dg as Aq}from"./cli-1.1.15-78j1ffsw.mjs";import{dT as a,pT as bq,rS as l,tS as Rq}from"./cli-1.1.15-b16e0ajk.mjs";import{I0 as j,K0 as K,c1 as c,jZ as Zq,n1 as yq}from"./cli-1.1.15-kr36eh1x.mjs";import{d2 as t,f2 as L,i2 as e}from"./cli-1.1.15-q6nb88hp.mjs";import{L3 as B,M3 as M,N3 as S}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as Yq}from"./cli-1.1.15-fk3ac4gc.mjs";import{l4 as $,m4 as Gq}from"./cli-1.1.15-fyy1ehtf.mjs";import{caa as m,u_ as y,w_ as o,zaa as s}from"./cli-1.1.15-c6h2gge7.mjs";import{Dia as w,Fia as r}from"./cli-1.1.15-mrgk4vjn.mjs";import{uka as U,xka as n}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as Xq,Uka as D}from"./cli-1.1.15-dv1zb375.mjs";import{Sqa as i,Tma as T}from"./cli-1.1.15-xn5kcp4k.mjs";import{Asa as I,Esa as h}from"./cli-1.1.15-bwy6nhdk.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return m("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await y("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await y("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await y("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>V.coerce(W)!==null).sort((W,P)=>{let A=V.coerce(W),R=V.coerce(P);return A.compare(R)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function v(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=V.coerce(q);if(!z||!L(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(U(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await y("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await y("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await y("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await y("cmd",["/c","start","",H]);return z===0}return!1}async function k(){let H=T();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var V,Hq="1.1.2396";var x=h(()=>{i();r();n();o();s();e();V=I(t(),1)});function Vq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function kq(H){let q=d.c(20),{onDone:z}=H,[Q,Y]=G.useState("checking"),[W,P]=G.useState(null),[A,R]=G.useState(""),b;if(q[0]!==W||q[1]!==z||q[2]!==Q)b=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")$(Vq()).catch(Kq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
+ Learn more at ${u}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${u}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=b;else b=q[3];c(b);let O,E;if(q[4]!==z)O=()=>{(async function(){Y("checking");let X=await v();if(X.status==="not-installed"){R("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){R(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await a(),Y("opening");let f=await k();if(!f.success){P(f.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Bq,500,z)})().catch((Z)=>{P(D(Z)),Y("error")})},E=[z],q[4]=z,q[5]=O,q[6]=E;else O=q[5],E=q[6];if(G.useEffect(O,E),Q==="error"){let J;if(q[7]!==W)J=M(K,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==A)J=B(K,{children:A}),q[12]=A,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let N=C[Q],F;if(q[18]!==N)F=B(p,{message:N}),q[18]=N,q[19]=F;else F=q[19];return F}async function Bq(H){H("Session transferred to Claude Desktop",{display:"system"}),await l(0,"other")}function Kq(){}var d,G,u="https://clau.de/desktop";var Pq=h(()=>{yq();Gq();x();Xq();Rq();bq();Aq();S();d=I(Zq(),1),G=I(Yq(),1)});
3
+ export{kq as Ag,Pq as Bg};
@@ -0,0 +1,2 @@
1
+ import{Esa as H}from"./cli-1.1.15-bwy6nhdk.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
+ export{F as cha,K as dha,M as eha,N as fha,O as gha,P as hha,J as iha};
@@ -0,0 +1,2 @@
1
+ import{Nd as Jq,Rd as Tq}from"./cli-1.1.15-pgqqjddw.mjs";import{Wd as zq,Xd as bq}from"./cli-1.1.15-3ehpt6h2.mjs";import{AL as s,BL as _q,FL as a,IL as l,ML as t,RL as e,TL as Rq,WH as h,XH as fq,Xn as n,Yn as yq,_L as qq,cM as Fq,hG as r,iG as Gq,mL as S,pL as Nq,sM as D,vM as Cq}from"./cli-1.1.15-b16e0ajk.mjs";import{$Y as i,I0 as F,K0 as C,aZ as Kq,jZ as Bq,n1 as Oq}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as v,M3 as R,N3 as p}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as Lq}from"./cli-1.1.15-fk3ac4gc.mjs";import{caa as x,h_ as g,i_ as Zq,pga as m,u$ as o,u_ as $,v$ as Hq,w_ as Xq,xga as wq,zaa as vq}from"./cli-1.1.15-c6h2gge7.mjs";import{uka as B,xka as Yq}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as Wq,Tka as P,Wka as u}from"./cli-1.1.15-dv1zb375.mjs";import{Asa as d,Esa as Vq}from"./cli-1.1.15-bwy6nhdk.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Dd,Yz as Ed,Dq as Fd};
@@ -0,0 +1,2 @@
1
+ import{p_ as B,r_ as E}from"./cli-1.1.15-c6h2gge7.mjs";import{rja as C,uja as y}from"./cli-1.1.15-8w8262sk.mjs";import{_ja as T,cka as M,uka as O,xka as p}from"./cli-1.1.15-vvc5kd0e.mjs";import{$ka as x,Uka as L}from"./cli-1.1.15-dv1zb375.mjs";y();p();E();x();M();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function F(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function c(W){let Z=F(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var h=300000,j=1800000,H=3,R=60000;function t({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=h}){let J=new Map,Y=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=c(Q);if(!$){O(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let V=J.get(q);if(V)clearTimeout(V);let v=U(q),X=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){O(`[${z}:token] Token for sessionId=${q} expires=${X} (past or within buffer), refreshing immediately`),K(q,v);return}O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${X}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,v);J.set(q,k)}function D(q,Q){let $=J.get(q);if($)clearTimeout($);let V=U(q),v=Math.max(Q*1000-P,30000);O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let X=setTimeout(K,v,q,V);J.set(q,X)}async function K(q,Q){let $;try{$=await W()}catch(v){O(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(v)}`,{level:"error"})}if(w.get(q)!==Q){O(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(Y.get(q)??0)+1;if(Y.set(q,v),O(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),v<H){let X=setTimeout(K,R,q,Q);J.set(q,X)}return}Y.delete(q),O(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("",{}),Z(q,$);let V=setTimeout(K,j,q,Q);J.set(q,V),O(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);Y.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),Y.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
+ export{c as Hb,t as Ib};
@@ -0,0 +1,2 @@
1
+ import{Qh as g,Rh as Uf}from"./cli-1.1.15-qnxzqj1z.mjs";import{Vh as A,Xh as Kf}from"./cli-1.1.15-0h2kcmr1.mjs";import{AD as u,Bm as Vf,CE as c,DD as bf,DE as jf,Dl as y,Fj as W,KS as S,NR as l,OC as I,PC as $f,SE as v,Sj as w,Tj as zf,XS as p,Yl as Jf,ZE as Df,cT as k,et as h,ft as Yf,im as N,iz as C,mz as T,nS as Ff,nv as m,oT as Hf,om as Qf,ov as Zf,pT as d,qz as _f,us as E,vs as P,wl as Bf,wm as L,ws as Xf,xl as Gf,zC as M}from"./cli-1.1.15-b16e0ajk.mjs";import{pga as R,xga as ff}from"./cli-1.1.15-c6h2gge7.mjs";import{rja as O,uja as e}from"./cli-1.1.15-8w8262sk.mjs";import{Hpa as H,Sqa as s,Tma as U,Uma as q,Una as F,Zma as x}from"./cli-1.1.15-xn5kcp4k.mjs";import{Bsa as K,Esa as t}from"./cli-1.1.15-bwy6nhdk.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:c(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
+ export{lf as Oh,xf as Ph};
@@ -0,0 +1,4 @@
1
+ import{Bn as R,Cn as BJ,HE as k,IE as HJ,Zs as D,_s as hJ,lp as G,op as a}from"./cli-1.1.15-b16e0ajk.mjs";import{Y7 as ZJ,h8 as $J,w8 as bJ}from"./cli-1.1.15-k1836ne2.mjs";import{Fda as jJ,I$ as C,J$ as GJ,K$ as h,L$ as FJ,M$ as u,N$ as kJ,rda as WJ}from"./cli-1.1.15-c6h2gge7.mjs";import{Hha as gJ,vha as x}from"./cli-1.1.15-zw3cc5m8.mjs";import{Aia as r,wia as q,yia as s,zia as Y}from"./cli-1.1.15-59t4k8sr.mjs";import{bja as M,gja as yJ}from"./cli-1.1.15-mrgk4vjn.mjs";import{Gja as o,Hja as CJ,Qja as n,Rja as EJ,Wja as l,Xja as TJ}from"./cli-1.1.15-vvc5kd0e.mjs";import{Ala as A,Bla as wJ,Mla as f,Nla as PJ,Sqa as mJ,qma as c,rma as OJ,uma as H,vma as F,wma as I,wqa as QJ,xma as YJ,yla as g,yma as P,zla as zJ,zma as XJ}from"./cli-1.1.15-xn5kcp4k.mjs";import{$qa as K,ara as DJ}from"./cli-1.1.15-zg7csyzz.mjs";import{Esa as B}from"./cli-1.1.15-bwy6nhdk.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as Kf,_J as Lf,JJ as Mf,bQ as Nf,uQ as Of,cJ as Pf,iQ as Qf,oJ as Rf};
@@ -0,0 +1,2 @@
1
+ import{Esa as o}from"./cli-1.1.15-bwy6nhdk.mjs";var l=()=>null,e;var n=o(()=>{e=l});
2
+ export{e as Ji,n as Ki};
@@ -0,0 +1,2 @@
1
+ import{hG as U,iG as A,mG as V,nG as E}from"./cli-1.1.15-b16e0ajk.mjs";import{GW as G,yW as W}from"./cli-1.1.15-kb70x0yv.mjs";import{I0 as F,K0 as H,n1 as O}from"./cli-1.1.15-kr36eh1x.mjs";import{L3 as q,M3 as K,N3 as L}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as I}from"./cli-1.1.15-fk3ac4gc.mjs";import{Y7 as Q,w8 as p}from"./cli-1.1.15-k1836ne2.mjs";import{Rea as $,tea as M,wea as N}from"./cli-1.1.15-c6h2gge7.mjs";import{Asa as Z,Esa as _}from"./cli-1.1.15-bwy6nhdk.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 bc,d as cc,P as dc};
@@ -0,0 +1,2 @@
1
+ import{PL as C,TL as S,WL as O,aM as _,cM as P,hM as h,iM as f,ip as N,jp as D,kp as x,mM as c,np as A,op as b}from"./cli-1.1.15-b16e0ajk.mjs";import{Fda as E,fca as L,nca as v,pga as H,rda as G,tda as M,wda as R,xga as T}from"./cli-1.1.15-c6h2gge7.mjs";import{Dia as U,Fia as F}from"./cli-1.1.15-mrgk4vjn.mjs";import{uka as w,xka as y}from"./cli-1.1.15-vvc5kd0e.mjs";import{Esa as m}from"./cli-1.1.15-bwy6nhdk.mjs";import{join as I}from"path";async function e(){let q=R(),J=[],Q=N();for(let[z,K]of Object.entries(Q))if(z.includes("@")&&K)J.push(z);if(q.enabledPlugins)for(let[z,K]of Object.entries(q.enabledPlugins)){if(!z.includes("@"))continue;let W=J.indexOf(z);if(K){if(W===-1)J.push(z)}else if(W!==-1)J.splice(W,1)}return J}function qq(){let q=new Map,J=N();for(let[z,K]of Object.entries(J)){if(!z.includes("@"))continue;if(K===!0)q.set(z,"flag");else if(K===!1)q.delete(z)}let Q=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:z,source:K}of Q){let W=G(K);if(!W?.enabledPlugins)continue;for(let[V,Y]of Object.entries(W.enabledPlugins)){if(!V.includes("@"))continue;if(V in J&&J[V]!==Y)w(`Plugin ${V} from --add-dir (${J[V]}) overridden by ${K} (${Y})`);if(Y===!0)q.set(V,z);else if(Y===!1)q.delete(V)}}return w(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([z,K])=>`${z}(${K})`).join(", ")}`),q}function zq(q){return x[q]}async function Jq(){_().catch((Q)=>{H(Q)});let q=O(),J=Object.keys(q.plugins);return w(`Found ${J.length} installed plugins`),J}async function Kq(q,J,Q="user"){let z=Q!=="user"?U():void 0,K=A(Q),W=G(K),V={...W?.enabledPlugins},Y=[],B=[];for(let k=0;k<q.length;k++){let X=q[k];if(!X)continue;if(J)J(X,k+1,q.length);try{let Z=await C(X);if(!Z){B.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:j}=Z;if(!L($.source))await h(X,$,Q,z);else f({pluginId:X,installPath:I(j,$.source),version:$.version},Q,z);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);B.push({name:X,error:$}),H(Z)}}return M(K,{...W,enabledPlugins:V}),{installed:Y,failed:B}}var p=m(()=>{F();y();T();E();D();P();S();b();c();v()});
2
+ export{e as Sd,qq as Td,zq as Ud,Jq as Vd,Kq as Wd,p as Xd};
@@ -0,0 +1,2 @@
1
+ import{Esa as r}from"./cli-1.1.15-bwy6nhdk.mjs";var i,p=(t,e)=>function(){try{return e||(0,t[i(t)[0]])((e={exports:{}}).exports,e),e.exports}catch(s){throw e=0,s}},c;var a=r(()=>{i=Object.getOwnPropertyNames,c=p({"package.json"(t,e){e.exports={name:"@mendable/firecrawl-js",version:"4.32.0",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.30.1","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"}}}})});
2
+ export{c as ji,a as ki};
@@ -0,0 +1,39 @@
1
+ import{JQ as L,KQ as w,Kw as B,MR as M,Mw as U,yR as N}from"./cli-1.1.15-b16e0ajk.mjs";import{Laa as z,Saa as F,Wca as P}from"./cli-1.1.15-c6h2gge7.mjs";import{Oga as I,Uga as v}from"./cli-1.1.15-p1trn7j2.mjs";import{Esa as j}from"./cli-1.1.15-bwy6nhdk.mjs";async function V(W){let{messages:J,getAppState:Q,options:{mainLoopModel:K,tools:Z,agentDefinitions:_,customSystemPrompt:X,appendSystemPrompt:Y}}=W,R=N(J),{messages:O}=await B(R),q=Q();return L(O,K,async()=>q.toolPermissionContext,Z,_,void 0,{options:{customSystemPrompt:X,appendSystemPrompt:Y}},void 0,R)}async function g(W,J){let Q=await V(J);return{type:"text",value:b(Q)}}function b(W){let{categories:J,totalTokens:Q,rawMaxTokens:K,percentage:Z,model:_,memoryFiles:X,mcpTools:Y,agents:R,skills:O}=W,q=`## Context Usage
2
+
3
+ `;q+=`**Model:** ${_}
4
+ `,q+=`**Tokens:** ${I(Q)} / ${I(K)} (${Z}%)
5
+ `,q+=`
6
+ `;let $=J.filter((E)=>E.tokens>0&&E.name!=="Free space"&&E.name!=="Autocompact buffer");if($.length>0){q+=`### Estimated usage by category
7
+
8
+ `,q+=`| Category | Tokens | Percentage |
9
+ `,q+=`|----------|--------|------------|
10
+ `;for(let H of $){let h=(H.tokens/K*100).toFixed(1);q+=`| ${H.name} | ${I(H.tokens)} | ${h}% |
11
+ `}let E=J.find((H)=>H.name==="Free space");if(E&&E.tokens>0){let H=(E.tokens/K*100).toFixed(1);q+=`| Free space | ${I(E.tokens)} | ${H}% |
12
+ `}let G=J.find((H)=>H.name==="Autocompact buffer");if(G&&G.tokens>0){let H=(G.tokens/K*100).toFixed(1);q+=`| Autocompact buffer | ${I(G.tokens)} | ${H}% |
13
+ `}q+=`
14
+ `}if(Y.length>0){q+=`### MCP Tools
15
+
16
+ `,q+=`| Tool | Server | Tokens |
17
+ `,q+=`|------|--------|--------|
18
+ `;for(let E of Y)q+=`| ${E.name} | ${E.serverName} | ${I(E.tokens)} |
19
+ `;q+=`
20
+ `}if(R.length>0){q+=`### Custom Agents
21
+
22
+ `,q+=`| Agent Type | Source | Tokens |
23
+ `,q+=`|------------|--------|--------|
24
+ `;for(let E of R){let G;switch(E.source){case"projectSettings":G="Project";break;case"userSettings":G="User";break;case"localSettings":G="Local";break;case"flagSettings":G="Flag";break;case"policySettings":G="Policy";break;case"plugin":G="Plugin";break;case"built-in":G="Built-in";break;default:G=String(E.source)}q+=`| ${E.agentType} | ${G} | ${I(E.tokens)} |
25
+ `}q+=`
26
+ `}if(X.length>0){q+=`### Memory Files
27
+
28
+ `,q+=`| Type | Path | Tokens |
29
+ `,q+=`|------|------|--------|
30
+ `;for(let E of X)q+=`| ${E.type} | ${E.path} | ${I(E.tokens)} |
31
+ `;q+=`
32
+ `}if(O&&O.tokens>0&&O.skillFrontmatter.length>0){q+=`### Skills
33
+
34
+ `,q+=`| Skill | Source | Tokens |
35
+ `,q+=`|-------|--------|--------|
36
+ `;for(let E of O.skillFrontmatter)q+=`| ${E.name} | ${z(E.source)} | ${I(E.tokens)} |
37
+ `;q+=`
38
+ `}return q}var A=j(()=>{U();w();v();M();F();P()});
39
+ export{V as rh,g as sh,A as th};
@@ -0,0 +1,24 @@
1
+ import{Pb as qY}from"./cli-1.1.15-yrmh6ksq.mjs";import{Nc as LY,Qc as rQ}from"./cli-1.1.15-7enkgabc.mjs";import{Wh as X0,Xh as p6}from"./cli-1.1.15-0h2kcmr1.mjs";import{wi as IY,xi as J6}from"./cli-1.1.15-d4stmd3a.mjs";import{$K as O6,$k as v9,At as i9,Dv as x0,Ev as u0,Fv as p0,GL as P9,Gv as c0,HA as jY,Hv as m0,Hx as M0,IA as OY,IL as F9,Iv as d0,JA as X6,Jm as UZ,Jv as pZ,Kv as cZ,Kx as r9,Lv as g0,ML as b9,MR as OZ,Mm as EZ,Mv as l0,ND as NY,Nm as h0,Nv as a0,OD as nQ,Ov as n0,Pv as i0,Qv as r0,Rv as o0,Sv as s0,TL as o6,Tv as t0,UA as HY,Uv as NQ,Uy as bY,VA as aQ,WH as C0,WP as hY,XH as s9,Xy as K6,YD as n,YK as rY,Yk as L9,ZR as xY,Zj as KZ,Zk as u6,_A as yY,_D as B6,_k as z9,aB as V6,aK as s,ak as O0,al as MZ,bl as Z0,cl as q9,dQ as SY,dl as XZ,el as Y0,fC as CY,fQ as kY,fk as $Y,fl as D9,gC as H6,gK as TY,gS as uY,gl as A9,hG as I0,hl as sY,iG as o9,jO as BY,jQ as L6,kS as zY,lO as iQ,lu as S0,mB as MY,mu as GQ,nC as RY,nK as fY,nS as vY,nu as JY,oB as G6,oC as N6,ou as lQ,pu as FY,rR as kZ,st as F0,uq as iZ,vR as xZ,vp as $9,vq as cY,vt as b0,wp as r6,wq as FZ,wt as fZ,xq as PY}from"./cli-1.1.15-b16e0ajk.mjs";import{oX as Q9,sX as T6}from"./cli-1.1.15-jeqz3hde.mjs";import{VX as y0,WX as g9,hY as U0,iY as E0,jY as l9,mY as $0,nY as a9,tY as P0,uY as n9}from"./cli-1.1.15-tpbkevjz.mjs";import{I0 as p,K0 as b,jZ as m9,n1 as d9}from"./cli-1.1.15-kr36eh1x.mjs";import{K3 as a,L3 as y,M3 as M,N3 as G0}from"./cli-1.1.15-e0wdjxcm.mjs";import{O3 as c9}from"./cli-1.1.15-fk3ac4gc.mjs";import{T5 as nY,X5 as w6,w8 as j6,z7 as iY}from"./cli-1.1.15-k1836ne2.mjs";import{$$ as x9,Bca as A6,Daa as Y9,Fda as _6,Iaa as R6,S_ as y9,Z$ as RZ,caa as U9,d_ as _Z,e_ as k9,gca as E9,iga as w0,lga as p9,nca as i6,p_ as GY,pga as e,r_ as gQ,s$ as a6,wda as aY,xga as j0,yca as gY,zaa as n6,zca as lY}from"./cli-1.1.15-c6h2gge7.mjs";import{Iga as N0,Qga as B0,Uga as S9}from"./cli-1.1.15-p1trn7j2.mjs";import{Hha as E6,wha as oY}from"./cli-1.1.15-zw3cc5m8.mjs";import{Aia as yZ,wia as Y,xia as S,yia as HZ,zia as D}from"./cli-1.1.15-59t4k8sr.mjs";import{Dia as dY,Fia as D6,Hia as TZ,Kia as L0,Lia as z0,Mia as v0,Nia as q0,Pia as D0,Qia as A0,aja as _0,gja as u9}from"./cli-1.1.15-mrgk4vjn.mjs";import{rja as g,uja as jZ}from"./cli-1.1.15-8w8262sk.mjs";import{Zja as ZZ,_ja as WY,cka as PZ,uka as I,xja as Z9,xka as JZ,zja as C6}from"./cli-1.1.15-vvc5kd0e.mjs";import{Dka as dQ,zka as KY}from"./cli-1.1.15-f0xy8ndf.mjs";import{$ka as gZ,Gka as VY,Uka as O9,Vka as sZ}from"./cli-1.1.15-dv1zb375.mjs";import{Apa as J9,Bpa as qZ,Cpa as H9,Epa as N9,Fpa as Q0,Hpa as B9,Pqa as wY,Sqa as NZ,Tma as BZ,Zma as V0,_ma as eY,ioa as mY}from"./cli-1.1.15-xn5kcp4k.mjs";import{Asa as H0,Dsa as SZ,Esa as wZ,Fsa as nZ}from"./cli-1.1.15-bwy6nhdk.mjs";var WQ={};SZ(WQ,{selectableUserMessagesFilter:()=>f0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function hZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:W,onSummarize:V,onClose:H,preselectedMessage:G}){let K=M0((j)=>j.fileHistory),[B,z]=R.useState(void 0),J=F0(),L=R.useMemo(t9,[]),_=R.useMemo(()=>[...Q.filter(f0),{...s({content:""}),uuid:L}],[Q,L]),[O,q]=R.useState(_.length-1),P=Math.max(0,Math.min(O-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[v,F]=R.useState(G),[U,h]=R.useState(void 0);R.useEffect(()=>{if(!G||!J)return;let j=!1;return fZ(K,G.uuid).then((T)=>{if(!j)h(T)}),()=>{j=!0}},[G,J,K]);let[E,w]=R.useState(!1),[c,r]=R.useState(null),[o,C]=R.useState("both"),[k,x]=R.useState(""),[A,$]=R.useState("");function N(j){let T=j?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],m={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return T.push({value:"summarize",label:"Summarize from here",...m,onChange:x}),T.push({value:"nevermind",label:"Never mind"}),T}R.useEffect(()=>{g("",{})},[]);async function u(j){Z(),w(!0);try{await X(j),w(!1),H()}catch(T){e(T),w(!1),z(`Failed to restore the conversation:
2
+ ${T}`)}}async function l(j){let T=Q.indexOf(j),m=Q.length-1-T;if(g("",{index_from_end:m,message_type:j.type,is_current_prompt:!1}),!Q.includes(j)){H();return}if(!J){await u(j);return}let d=await fZ(K,j.uuid);F(j),h(d)}async function VZ(j){if(g("",{option:j}),!v){z("Message not found.");return}if(j==="nevermind"){if(G)H();else F(void 0);return}if(hZ(j)){Z(),w(!0),r(j),z(void 0);try{let d=j==="summarize_up_to"?"up_to":"from",YZ=(d==="up_to"?A:k).trim()||void 0;await V(v,YZ,d),w(!1),r(null),F(void 0),H()}catch(d){e(d),w(!1),r(null),F(void 0),z(`Failed to summarize:
3
+ ${d}`)}return}Z(),w(!0),z(void 0);let T=null,m=null;if(j==="code"||j==="both")try{await W(v)}catch(d){T=d,e(T)}if(j==="conversation"||j==="both")try{await X(v)}catch(d){m=d,e(m)}if(w(!1),F(void 0),m&&T)z(`Failed to restore the conversation and code:
4
+ ${m}
5
+ ${T}`);else if(m)z(`Failed to restore the conversation:
6
+ ${m}`);else if(T)z(`Failed to restore the code:
7
+ ${T}`);else H()}let WZ=$0(),t=R.useCallback(()=>{if(v&&!G){F(void 0);return}g("",{}),H()},[H,v,G]),I9=R.useCallback(()=>q((j)=>Math.max(0,j-1)),[]),C9=R.useCallback(()=>q((j)=>Math.min(_.length-1,j+1)),[_.length]),R9=R.useCallback(()=>q(0),[]),T9=R.useCallback(()=>q(_.length-1),[_.length]),f9=R.useCallback(()=>{let j=_[O];if(j)l(j)},[_,O,l]);U0("confirm:no",t,{context:"Confirmation",isActive:!v}),E0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":R9,"messageSelector:bottom":T9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!E&&!B&&!v&&f});let[W0,K0]=R.useState({});R.useEffect(()=>{async function j(){if(!J)return;Promise.all(_.map(async(T,m)=>{if(T.uuid!==L){let d=b0(K,T.uuid),YZ=_.at(m+1),AZ=d?XQ(Q,T.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)K0((i)=>({...i,[m]:AZ}));else K0((i)=>({...i,[m]:void 0}))}}))}j()},[_,Q,L,K,J]);let DZ=J&&U?.filesChanged&&U.filesChanged.length>0,h9=!B&&!v&&!G&&f;return M(p,{flexDirection:"column",width:"100%",children:[y(P0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[y(b,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(a,{children:M(b,{color:"error",children:["Error: ",B]})}),!f&&y(a,{children:y(b,{children:"Nothing to rewind to yet."})}),!B&&v&&f&&M(a,{children:[M(b,{children:["Confirm you want to restore"," ",!U&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(J0,{userMessage:v,color:"text",isCurrent:!1}),M(b,{dimColor:!0,children:["(",B0(new Date(v.timestamp)),")"]})]}),y(YQ,{selectedRestoreOption:o,canRestoreCode:!!DZ,diffStatsForRestore:U}),E&&hZ(c)?M(p,{flexDirection:"row",gap:1,children:[y(C0,{}),y(b,{children:"Summarizing…"})]}):y(I0,{isDisabled:E,options:N(!!DZ),defaultFocusValue:DZ?"both":"conversation",onFocus:(j)=>C(j),onChange:(j)=>VZ(j),onCancel:()=>G?H():F(void 0)}),DZ&&y(p,{marginBottom:1,children:M(b,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),h9&&M(a,{children:[J?y(b,{children:"Restore the code and/or conversation to the point before…"}):y(b,{children:"Restore and fork the conversation to the point before…"}),y(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((j,T)=>{let m=P+T,d=m===O,YZ=j.uuid===L,AZ=m in W0,i=W0[m],IZ=i?.filesChanged&&i.filesChanged.length;return M(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(p,{width:2,minWidth:2,children:d?M(b,{color:"permission",bold:!0,children:[_Z.pointer," "]}):y(b,{children:" "})}),M(p,{flexDirection:"column",children:[y(p,{flexShrink:1,height:1,overflow:"hidden",children:y(J0,{userMessage:j,color:d?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&y(p,{height:1,flexDirection:"row",children:i?y(a,{children:y(b,{dimColor:!d,color:"inactive",children:IZ?M(a,{children:[IZ===1&&i.filesChanged[0]?`${QZ.basename(i.filesChanged[0])} `:`${IZ} files changed `,y(T0,{diffStats:i})]}):y(a,{children:"No code changes"})})}):M(b,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},j.uuid)})})]}),!v&&y(b,{dimColor:!0,italic:!0,children:WZ.pending?M(a,{children:["Press ",WZ.keyName," again to exit"]}):M(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:W,diffStatsForRestore:V}=Q,H=W&&(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=y(b,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==V||Z[5]!==X||Z[6]!==H)B=!hZ(X)&&(H?y(QQ,{diffStatsForRestore:V}):y(b,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=M(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=y(b,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let W=X.filesChanged.length,V;if(W===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];V=K}else if(W===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];V=`${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];V=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=y(T0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==V||Z[12]!==H)G=y(a,{children:M(b,{dimColor:!0,children:["The code will be restored"," ",H," in ",V,"."]})}),Z[11]=V,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let W;if(Z[0]!==X.insertions)W=M(b,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=W;else W=Z[1];let V;if(Z[2]!==X.deletions)V=M(b,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=V;else V=Z[3];let H;if(Z[4]!==W||Z[5]!==V)H=M(a,{children:[W,V]}),Z[4]=W,Z[5]=V,Z[6]=H;else H=Z[6];return H}function J0(Q){let Z=GZ.c(31),{userMessage:X,color:W,dimColor:V,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let h;if(Z[0]!==W||Z[1]!==V)h=y(p,{width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"(current)"})}),Z[0]=W,Z[1]=V,Z[2]=h;else h=Z[2];return h}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,O,q,P,f,v;if(Z[3]!==W||Z[4]!==K||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==G){v=Symbol.for("react.early_return_sentinel");Z:{let h=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",E=w0(h);if(O0(E)){let w;if(Z[17]!==W||Z[18]!==V)w=y(p,{flexDirection:"row",width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"((empty message))"})}),Z[17]=W,Z[18]=V,Z[19]=w;else w=Z[19];v=w;break Z}if(E.includes("<bash-input>")){let w=KZ(E,"bash-input");if(w){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(b,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];v=M(p,{flexDirection:"row",width:"100%",children:[c,M(b,{color:W,dimColor:V,children:[" ",w]})]});break Z}}if(E.includes(`<${TZ}>`)){let w=KZ(E,TZ),c=KZ(E,"command-args"),r=KZ(E,"skill-format")==="true";if(w)if(r){v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["Skill(",w,")"]})});break Z}else{v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["/",w," ",c]})});break Z}}L=p,P="row",f="100%",J=b,_=W,O=V,q=G?N0(E,K-G,!0):E.slice(0,500).split(`
8
+ `).slice(0,4).join(`
9
+ `)}Z[3]=W,Z[4]=K,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=O,Z[13]=q,Z[14]=P,Z[15]=f,Z[16]=v}else J=Z[9],L=Z[10],_=Z[11],O=Z[12],q=Z[13],P=Z[14],f=Z[15],v=Z[16];if(v!==Symbol.for("react.early_return_sentinel"))return v;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==O||Z[24]!==q)F=y(J,{color:_,dimColor:O,children:q}),Z[21]=J,Z[22]=_,Z[23]=O,Z[24]=q,Z[25]=F;else F=Z[25];let U;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)U=y(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=U;else U=Z[30];return U}function XQ(Q,Z,X){let W=Q.findIndex((B)=>B.uuid===Z);if(W===-1)return;let V=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(V===-1)V=Q.length;let H=[],G=0,K=0;for(let B=W+1;B<V;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 _=RZ(L.lines,(q)=>q.startsWith("+")),O=RZ(L.lines,(q)=>q.startsWith("-"));G+=_,K+=O}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function f0(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],W=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(W.indexOf(`<${v0}>`)!==-1||W.indexOf(`<${q0}>`)!==-1||W.indexOf(`<${L0}>`)!==-1||W.indexOf(`<${z0}>`)!==-1||W.indexOf(`<${A0}>`)!==-1||W.indexOf(`<${D0}>`)!==-1||W.indexOf(`<${_0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let W=Q[X];if(!W)continue;if(kZ(W))continue;if(xZ(W))continue;if(W.type==="progress")continue;if(W.type==="system")continue;if(W.type==="attachment")continue;if(W.type==="user"&&W.isMeta)continue;if(W.type==="assistant"){let V=W.message.content;if(Array.isArray(V)){if(V.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(W.type==="user")return!1}return!0}var GZ,R,CZ=7;var KQ=wZ(()=>{k9();jZ();r9();i9();j0();a9();d9();l9();p9();OZ();o9();s9();g9();u9();x9();S9();n9();G0();GZ=H0(m9(),1),R=H0(c9(),1)});var M6={};SZ(M6,{getCronJitterConfig:()=>b6});function b6(){let Q=oY("tengu_kairos_cron_config",XZ,$6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var $6=60000,rZ=1800000,P6=2592000000,F6;var I6=wZ(()=>{HZ();E6();sY();yZ();F6=D(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(rZ),oneShotMaxMs:Y.number().int().min(0).max(rZ),oneShotFloorMs:Y.number().int().min(0).max(rZ),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 h6,unlink as X9,writeFile as tZ}from"fs/promises";import{dirname as S6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await h6(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),W=ZZ(Q);try{return await tZ(X,W,{flag:"wx"}),!0}catch(V){let H=sZ(V);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(S6(X),{recursive:!0});try{return await tZ(X,W,{flag:"wx"}),!0}catch(G){if(sZ(G)==="EEXIST")return!1;throw G}}throw V}}function oZ(Q){bZ?.(),bZ=Z9(async()=>{await vZ(Q)})}async function eZ(Q){let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(W,Z))return LZ=void 0,oZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await W9(Z);if(V?.sessionId===X){if(V.pid!==process.pid)await tZ(zZ(Z),ZZ(W)),oZ(Q);return!0}if(V&&Q9(V.pid)){if(LZ!==V.sessionId)LZ=V.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(W,Z))return LZ=void 0,oZ(Q),!0;return!1}async function vZ(Q){bZ?.(),bZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W=await W9(Z);if(!W||W.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,bZ,LZ;var K9=wZ(()=>{HZ();NZ();C6();JZ();gZ();T6();R6();yZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=D(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var g6={};SZ(g6,{takeDueSessionWakeup:()=>w9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>d6,buildMissedTaskNotification:()=>j9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function w9(Q){let Z=Q0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:X0(Z.prompt),reason:Z.reason}}function d6(Q){let{onFire:Z,isLoading:X,assistantMode:W=!1,onFireTask:V,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,O=[],q=new Map,P=new Set,f=new Set,v=null,F=null,U=null,h=null,E=!1,w=!1;async function c(C){let k=await v9(K);if(E)return;if(O=k,!C)return;let x=Date.now(),A=A9(k,x).filter(($)=>!$.recurring&&!P.has($.id)&&(!L||L($)));if(A.length>0){for(let $ of A)P.add($.id),q.set($.id,1/0);if(g("",{count:A.length,taskIds:A.map(($)=>$.id).join(",")}),H)H(A);else Z(j9(A));Z0(A.map(($)=>$.id),K).catch(($)=>I(`[ScheduledTasks] failed to remove missed tasks: ${$}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function r(){if(J?.())return;if(X()&&!W)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function $(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=q.get(N.id);if(l===void 0)l=N.recurring?Y0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:D9(N.cron,N.createdAt,N.id,A)??1/0,q.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("",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?X0(N.prompt,void 0,N.agentId):N.prompt;if(V)V(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("",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Y0(N.cron,C,N.id,A)??1/0;if(q.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),q.delete(N.id);else f.add(N.id),Z0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),q.delete(N.id)}if(w){for(let N of O)$(N,!1);if(x.length>0){for(let N of x)f.add(N);q9(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())$(u,!0);let N=w9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){q.clear();return}for(let N of q.keys())if(!k.has(N))q.delete(N)}async function o(){if(E)return;if(v)clearInterval(v),v=null;let{default:C}=await import("./index-1.1.15-kegec7g7.mjs");if(E)return;if(w=await eZ(_).catch(()=>!1),E){if(w)w=!1,vZ(_);return}if(!w)U=setInterval(()=>{eZ(_).then((x)=>{if(E){if(x)vZ(_);return}if(x){if(w=!0,U)clearInterval(U),U=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),U.unref?.();c(!0);let k=z9(K);h=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),h.on("add",()=>void c(!1)),h.on("change",()=>void c(!1)),h.on("unlink",()=>{if(!E)O=[],q.clear()}),F=setInterval(r,G9),F.unref?.()}return{start(){if(E=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${MZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${qZ()}, hasTasks=${MZ()}`),!qZ()&&(W||MZ()))J9(!0);if(qZ()){o();return}v=setInterval((C)=>{if(qZ())C()},G9,o),v.unref?.()},stop(){if(E=!0,v)clearInterval(v),v=null;if(F)clearInterval(F),F=null;if(U)clearInterval(U),U=null;if(h?.close(),h=null,w)w=!1,vZ(_)},getNextFireTime(){let C=1/0;for(let k of q.values())if(k<C)C=k;if(K===void 0){let k=Q0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function j9(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.`,W=Q.map((V)=>{let H=`[${L9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,G=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
+ ${K}
13
+ ${V.prompt}
14
+ ${K}`});return`${X}
15
+
16
+ ${W.join(`
17
+
18
+ `)}`}var G9=1000,c6=300,m6=5000;var l6=wZ(()=>{NZ();jZ();u6();sY();K9();JZ();p6()});HZ();JZ();yZ();h0();GQ();var EX=D(()=>S.object({tool_name:S.string().describe("The name of the tool requesting permission"),input:S.record(S.string(),S.unknown()).describe("The input for the tool"),tool_use_id:S.string().optional().describe("The unique tool use request ID")})),k0=D(()=>S.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),JQ=D(()=>S.object({behavior:S.literal("allow"),updatedInput:S.record(S.string(),S.unknown()),updatedPermissions:S.array(S0()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:S.string().optional(),decisionClassification:k0()})),HQ=D(()=>S.object({behavior:S.literal("deny"),message:S.string(),interrupt:S.boolean().optional(),toolUseID:S.string().optional(),decisionClassification:k0()})),uZ=D(()=>S.union([JQ(),HQ()]));function $Z(Q,Z,X,W){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)W.setAppState((K)=>({...K,toolPermissionContext:UZ(K.toolPermissionContext,H)})),EZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),W.abortController.abort();return{...Q,decisionReason:V}}import{randomUUID as dZ}from"crypto";HZ();yZ();NQ();var BQ=D(()=>Y.unknown()),LQ=D(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),zQ=D(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(m0(),Y.array(LQ())).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(),a0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),MX=D(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(g0()),account:l0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:t0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),vQ=D(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),qQ=D(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(p0()).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.")),DQ=D(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:c0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),AQ=D(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),_Q=D(()=>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.")),wQ=D(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),jQ=D(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),OQ=D(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),yQ=D(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),IX=D(()=>Y.object({categories:Y.array(OQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(yQ())),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=D(()=>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.")),EQ=D(()=>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.")),$Q=D(()=>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.")),PQ=D(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:d0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),FQ=D(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:BQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),bQ=D(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),x0())}).describe("Replaces the set of dynamically managed MCP servers.")),CX=D(()=>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.")),MQ=D(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),RX=D(()=>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(u0()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),IQ=D(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),CQ=D(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),RQ=D(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),TQ=D(()=>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.")),fQ=D(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),TX=D(()=>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.")),hQ=D(()=>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).")),e0=D(()=>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.")),SQ=D(()=>Y.union([vQ(),qQ(),zQ(),DQ(),AQ(),_Q(),wQ(),jQ(),PQ(),FQ(),UQ(),EQ(),$Q(),bQ(),MQ(),IQ(),CQ(),RQ(),TQ(),fQ(),hQ()])),mZ=D(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:SQ()})),kQ=D(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),xQ=D(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),ZY=D(()=>Y.object({type:Y.literal("control_response"),response:Y.union([kQ(),xQ()])})),uQ=D(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),YY=D(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),pQ=D(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),fX=D(()=>Y.union([s0(),i0(),r0(),o0(),ZY(),mZ(),uQ(),YY()])),hX=D(()=>Y.union([n0(),mZ(),ZY(),YY(),pQ()]));lQ();JZ();gQ();gZ();iQ();dQ();PZ();HZ();nQ();vY();h0();rQ();PZ();aQ();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,W){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:X,request_id:W,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 HY;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 W=Q.slice(0,X);Q=Q.slice(X+1);let V=await this.processLine(W);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.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 W=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(W))}catch(V){X.reject(V)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=qY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[V,H]of Object.entries(Z.variables))process.env[V]=H;I(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)NY(W,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${K} 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 H=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(H))}catch(G){V.reject(G)}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;let X=Z.message;if(X.role!=="user")XY(`Error: Expected message role 'user', got '${String(X.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,W=dZ()){let V={type:"control_request",request_id:W,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:W});let G=this.pendingRequests.get(W);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(W,{request:{type:"control_request",request_id:W,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(W)}}createCanUseTool(Q){return async(Z,X,W,V,H,G)=>{let K=G??await BY(Z,X,W,V,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=W.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,W,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let O=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:W.agentId},uZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),q=await Promise.race([L,O]);if(q.source==="hook"){if(q.decision)return O.catch(()=>{}),B.abort(),q.decision;let P=await O;return $Z(P.result,Z,X,W)}return $Z(q.result,Z,X,W)}catch(L){return $Z({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,W)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,W,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:W||void 0},JY(),V)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,W,V,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:H,elicitation_id:G,requested_schema:X},e0(),W)}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}?`},uZ())).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,W,V){let G=W.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,W,G,V,W.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){EZ(L);let _=W.getAppState(),O=UZ(_.toolPermissionContext,L);W.setAppState((q)=>{if(q.toolPermissionContext===O)return q;return{...q,toolPermissionContext:O}})}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}var DY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function Q6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let W=[],V=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(V){if(V==="["&&L==="["){H=J;continue}if(L!==DY[V])continue;if(V==="'"&&G(Q[J+1]))continue;W.push({start:H,end:J+1}),V=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in DY)V=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(W.some((P)=>L>=P.start&&L<P.end))continue;let O=Q[L-1],q=Q[_];if(O==="/"||O==="\\"||O==="-")continue;if(q==="/"||q==="\\"||q==="-"||q==="?")continue;if(q==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function WV(Q){return Q6(Q,"ultrareview")}jZ();OZ();L6();H6();N6();G6();vY();PY();K6();OZ();B6();J6();import{randomUUID as z6}from"crypto";NZ();jZ();OZ();X6();V6();import{randomUUID as W6}from"crypto";function AY(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 _Y(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function UY(Q,Z,X,W,V,H,G){let K=W6();wY(K);let B=typeof Q==="string"?Q:Q.find((O)=>O.type==="text")?.text||"";yY(B);let z=typeof Q==="string"?Q:Q.findLast((O)=>O.type==="text")?.text||"";if(z)OY("user_prompt",{prompt_length:String(z.length),prompt:jY(z),"prompt.id":K});let J=AY(B),L=_Y(B);if(g("",{is_negative:J,is_keep_going:L}),Z.length>0){let O=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...O,...Z],uuid:V,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}async function TV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:W,context:V,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:O,bridgeOrigin:q,isMeta:P,skipAttachments:f}){let v=typeof Q==="string"?Q:null;if(X==="prompt"&&v!==null&&!P)B?.(v);n("query_process_user_input_base_start");let F=V.getAppState(),U=await v6(Q,X,W,V,H,G,K,z,J,L,_,F.toolPermissionContext.mode,O,q,P,f,Z);if(n("query_process_user_input_base_end"),!U.shouldQuery)return U;n("query_hooks_start");let h=$Y(Q)||"";for await(let E of uY(h,F.toolPermissionContext.mode,V,V.requestPrompt)){if(E.message?.type==="progress")continue;if(E.blockingError){let c=xY(E.blockingError);return{messages:[TY(`${c}
22
+
23
+ Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:U.allowedTools}}if(E.preventContinuation){let c=E.stopReason?`Operation stopped by hook: ${E.stopReason}`:"Operation stopped by hook";return U.messages.push(s({content:c})),U.shouldQuery=!1,U}if(E.additionalContexts&&E.additionalContexts.length>0)U.messages.push(FY({type:"hook_additional_context",content:E.additionalContexts.map(EY),hookName:"UserPromptSubmit",toolUseID:`hook-${z6()}`,hookEvent:"UserPromptSubmit"}));let w=E.message;if(w&&w.type==="attachment")switch(w.attachment.type){case"hook_success":if(!w.attachment.content)break;U.messages.push({...w,attachment:{...w.attachment,content:EY(w.attachment.content)}});break;default:U.messages.push(w);break}else if(w)U.messages.push(w)}return n("query_hooks_end"),U}var lZ=1e4;function EY(Q){if(Q.length>lZ)return`${Q.substring(0,lZ)}… [output truncated - exceeded ${lZ} characters]`;return Q}async function v6(Q,Z,X,W,V,H,G,K,B,z,J,L,_,O,q,P,f){let v=null,F=[],U=[],h=Q;if(typeof Q==="string")v=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)U.push(l)}A.push(u.block)}else A.push(N);h=A,n("query_image_processing_end");let $=A[A.length-1];if($?.type==="text")v=$.text,F=A.slice(0,-1);else F=A}if(v===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let E=V?Object.values(V).filter(CY):[],w=E.map((A)=>A.id),c=V?await bY(V):new Map;n("query_pasted_image_processing_start");let r=await Promise.all(E.map(async(A)=>{let $={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("",{original_size_bytes:A.content.length}),{resized:await iZ($),originalDimensions:A.dimensions,sourcePath:A.sourcePath??c.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:$,sourcePath:N}of r){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)U.push(u)}else if($){let u=FZ($,N);if(u)U.push(u)}else if(N)U.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(O&&v!==null&&v.startsWith("/")){let A=IY(v),$=A?kY(A.commandName,W.options.commands):void 0;if($)if(SY($))C=!1;else{let N=`/${hY($)} isn't available over Remote Control.`;return{messages:[s({content:v,uuid:K}),fY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&v!==null&&(Z!=="prompt"||C||!v.startsWith("/"));n("query_attachment_loading_start");let x=k?await MY(RY(v,W,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),v!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.15-aamrz1kj.mjs");return aZ(await A(v,F,x,W,X),U)}if(v!==null&&!C&&v.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.15-azxvy7pb.mjs"),$=await A(v,F,o,x,W,X,K,B,J);return aZ($,U)}if(v!==null&&Z==="prompt"){let A=v.trim(),$=x.find((N)=>N.attachment.type==="agent_mention");if($){let N=`@agent-${$.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("",{is_subagent_only:u,is_prefix:l})}}return aZ(UY(h,o,w,x,K,L,q),U)}function aZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}PY();function SV(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(pY))return Q;return Q.map((Z)=>{if(!pY(Z))return Z;let X=Z.source,W=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:cY(Z.source.data);return{...Z,source:{type:"base64",media_type:W,data:Z.source.data}}})}function pY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}NZ();O6();A6();j6();D6();w6();_6();import{randomUUID as y6}from"crypto";function U6(Q){return Q===gY?lY:Q}function aV(Q){let X=aY()?.outputStyle??rY,W={type:"system",subtype:"init",cwd:dY(),session_id:BZ(),tools:Q.tools.map((V)=>U6(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:iY().source,betas:mY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:y6()};return W.fast_mode_state=nY(Q.model,Q.fastMode),W}r6();NZ();JZ();gZ();n6();a6();j0();o6();i6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let W=[],V=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=M9(K.source,X?.projectRoot);if(!B)W.push(G);else if(K.sourceIsFallback)H.push(G);else if(!$9(z,B.source))V.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:W,sourceChanged:V,upToDate:H}}async function FW(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 W=e6(Z,X,{projectRoot:V0()}),V=[...W.missing.map((J)=>({name:J,source:M9(Z[J].source),action:"install"})),...W.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of V){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&E9(J.source)&&!await U9(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:W.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:O}=G[J];Q?.onProgress?.({type:"installing",name:L,action:O,index:J+1,total:G.length});try{let q=await b9(_);if(O==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:q.alreadyMaterialized})}catch(q){let P=O9(q);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(q)}}return{installed:K,updated:B,failed:z,upToDate:W.upToDate,skipped:H}}function M9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??V0(),W=y9(X);return{...Q,path:t6(W??X,Q.path)}}return Q}
24
+ export{uZ as ka,$Z as la,QY as ma,oQ as na,Z6 as oa,e9 as pa,f0 as qa,VQ as ra,WQ as sa,KQ as ta,WV as ua,TV as va,SV as wa,U6 as xa,aV as ya,e6 as za,FW as Aa,b6 as Ba,M6 as Ca,I6 as Da,d6 as Ea,g6 as Fa,l6 as Ga};
@@ -0,0 +1,2 @@
1
+ import{Zja as E,_ja as F,cka as M}from"./cli-1.1.15-vvc5kd0e.mjs";import{Mra as H,csa as N}from"./cli-1.1.15-fnh28phg.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 Cb,W as Db,X as Eb,Y as Fb,Z as Gb};