@claudiolabs/claudin 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +1 -0
  2. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +1 -0
  31. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +3 -0
  32. package/dist/chunks/agents-1.1.2-rxkey856.mjs +110 -0
  33. package/dist/chunks/api-1.1.2-fpd74byc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +1 -0
  36. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +1 -0
  37. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +1 -0
  41. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +1 -0
  47. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +4 -0
  52. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +1 -0
  55. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +1 -0
  57. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +9 -0
  58. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +2 -0
  60. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +2 -0
  61. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +2 -0
  62. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +2 -0
  63. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +2 -0
  64. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +2 -0
  65. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +133 -0
  66. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +2 -0
  67. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +2 -0
  68. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +17 -0
  69. package/dist/chunks/cli-1.1.2-26xrf159.mjs +2 -0
  70. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +25 -0
  71. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +3 -0
  72. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +4 -0
  73. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +2 -0
  74. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +15 -0
  75. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +3 -0
  76. package/dist/chunks/cli-1.1.2-312r29db.mjs +2 -0
  77. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +2 -0
  78. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +24 -0
  79. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +2 -0
  80. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +2 -0
  81. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +2 -0
  82. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +2 -0
  83. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +2 -0
  84. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +2 -0
  85. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +2 -0
  86. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +2 -0
  87. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +6 -0
  88. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +67 -0
  89. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +2 -0
  90. package/dist/chunks/cli-1.1.2-526csky8.mjs +2 -0
  91. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +12 -0
  92. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +25 -0
  93. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +2 -0
  94. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +2 -0
  95. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +4 -0
  96. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +2 -0
  97. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +2 -0
  98. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +5638 -0
  99. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +2 -0
  100. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +18 -0
  101. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +7 -0
  102. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +2 -0
  103. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +2 -0
  104. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +2 -0
  105. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +2 -0
  106. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +2 -0
  107. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +24 -0
  108. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +20 -0
  109. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +2 -0
  110. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +2 -0
  111. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +2 -0
  112. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +3 -0
  113. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +2 -0
  114. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +2 -0
  115. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +2 -0
  116. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +2 -0
  117. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +2 -0
  118. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +2 -0
  119. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +2 -0
  120. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +2 -0
  121. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +2 -0
  122. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +4 -0
  123. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +2 -0
  124. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +2 -0
  125. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +2 -0
  126. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +21 -0
  127. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +4 -0
  128. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +2 -0
  129. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +2 -0
  130. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +2 -0
  131. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +4 -0
  132. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +2 -0
  133. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +4 -0
  135. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +2 -0
  136. package/dist/chunks/cli-1.1.2-efe0402v.mjs +2 -0
  137. package/dist/chunks/cli-1.1.2-em7hye78.mjs +4 -0
  138. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +2 -0
  139. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +2 -0
  140. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +2 -0
  141. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +16 -0
  142. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +2 -0
  143. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +2 -0
  144. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +2 -0
  145. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +2 -0
  146. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +2 -0
  147. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +15 -0
  148. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +3 -0
  149. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +2 -0
  150. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +2 -0
  151. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +24 -0
  152. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +2 -0
  153. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +2 -0
  154. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +2 -0
  155. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +2 -0
  156. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +2 -0
  157. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +6 -0
  158. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +9 -0
  159. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +2 -0
  160. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +4 -0
  161. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +2 -0
  162. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +2 -0
  163. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +3 -0
  164. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +17 -0
  165. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +2 -0
  166. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +59 -0
  167. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +2 -0
  168. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +3 -0
  169. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +2 -0
  170. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +2 -0
  171. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +2 -0
  173. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +3 -0
  174. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +2 -0
  175. package/dist/chunks/cli-1.1.2-kav702qr.mjs +2 -0
  176. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +2 -0
  177. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +3 -0
  178. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +2 -0
  179. package/dist/chunks/cli-1.1.2-m0529q09.mjs +45 -0
  180. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +18 -0
  181. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +2 -0
  182. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +2 -0
  183. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +2 -0
  184. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +12 -0
  185. package/dist/chunks/cli-1.1.2-mr55880g.mjs +2 -0
  186. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +2 -0
  187. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +2 -0
  188. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +2 -0
  189. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +2 -0
  190. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +5 -0
  191. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +4 -0
  192. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +2 -0
  193. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +2 -0
  194. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +2 -0
  195. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +2 -0
  196. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +4 -0
  197. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +2 -0
  198. package/dist/chunks/cli-1.1.2-r32per66.mjs +2 -0
  199. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +2 -0
  200. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +6 -0
  201. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +2 -0
  202. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +2 -0
  203. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +8 -0
  204. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +15 -0
  205. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +2 -0
  207. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +2 -0
  208. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +2 -0
  209. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +2 -0
  210. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +34 -0
  211. package/dist/chunks/cli-1.1.2-se3yz188.mjs +2 -0
  212. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +2 -0
  213. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +133 -0
  214. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +2 -0
  215. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +2 -0
  216. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +2 -0
  217. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +2 -0
  218. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +12 -0
  219. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +6 -0
  220. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +2 -0
  221. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +2 -0
  222. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +2 -0
  223. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +4 -0
  224. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +2 -0
  225. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +3 -0
  226. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +39 -0
  227. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +2 -0
  228. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +2 -0
  229. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +2 -0
  230. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +5 -0
  231. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +2 -0
  232. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +2 -0
  233. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +42 -0
  234. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +2 -0
  235. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +2 -0
  236. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +2 -0
  237. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +58 -0
  238. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +3 -0
  239. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +50 -0
  240. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +2 -0
  241. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +2 -0
  242. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +2 -0
  243. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +2 -0
  244. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +12 -0
  245. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +18 -0
  246. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +2 -0
  247. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +2 -0
  248. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +2 -0
  249. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +202 -0
  250. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +3 -0
  251. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +2 -0
  252. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +1 -0
  253. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +2 -0
  254. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +2 -0
  255. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +6 -0
  256. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +3 -0
  257. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +2 -0
  258. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +2 -0
  259. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +2 -0
  260. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +1 -0
  261. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +1 -0
  262. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +3 -0
  263. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +1 -0
  264. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +1 -0
  265. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +1 -0
  266. package/dist/chunks/context-1.1.2-rw4msk80.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +1 -0
  270. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +9 -0
  271. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +1 -0
  274. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +1 -0
  278. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +1 -0
  279. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +1 -0
  283. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +13 -0
  284. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +1 -0
  288. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +1 -0
  289. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +1 -0
  292. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +1 -0
  294. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +1 -0
  297. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +1 -0
  300. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +1 -0
  302. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +4 -0
  303. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +1 -0
  305. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +6 -0
  307. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +1 -0
  311. package/dist/chunks/ide-1.1.2-je812srr.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +1 -0
  314. package/dist/chunks/index-1.1.2-3evh58r7.mjs +1 -0
  315. package/dist/chunks/index-1.1.2-69bhefzj.mjs +1 -0
  316. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +1 -0
  317. package/dist/chunks/index-1.1.2-7sphewt0.mjs +5 -0
  318. package/dist/chunks/index-1.1.2-947wna4y.mjs +1 -0
  319. package/dist/chunks/index-1.1.2-95c20hmc.mjs +1 -0
  320. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +1 -0
  321. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +2 -0
  322. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +1 -0
  323. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +9 -0
  324. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +1 -0
  325. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +1 -0
  326. package/dist/chunks/index-1.1.2-kzzb5289.mjs +1 -0
  327. package/dist/chunks/index-1.1.2-madt9yt1.mjs +1 -0
  328. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +2 -0
  329. package/dist/chunks/index-1.1.2-pzx0977r.mjs +1 -0
  330. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +1 -0
  331. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +1 -0
  332. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +1 -0
  333. package/dist/chunks/index-1.1.2-thaazk19.mjs +17 -0
  334. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +30 -0
  335. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +1 -0
  336. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +9 -0
  337. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +1 -0
  339. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +1 -0
  340. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +870 -0
  341. package/dist/chunks/install-1.1.2-89hhj53e.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +1 -0
  352. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +1 -0
  353. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +17 -0
  357. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +4 -0
  358. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +1 -0
  359. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +72 -0
  360. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +1 -0
  361. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +2 -0
  362. package/dist/chunks/node-1.1.2-msn09mvf.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +1 -0
  368. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +1 -0
  369. package/dist/chunks/passes-1.1.2-z98me43k.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +1 -0
  372. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +1 -0
  373. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +2 -0
  378. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +1 -0
  380. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +13 -0
  387. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +34 -0
  392. package/dist/chunks/registry-1.1.2-bteqae43.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +1 -0
  398. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +1 -0
  401. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +1 -0
  407. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +1 -0
  411. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +1 -0
  412. package/dist/chunks/setup-1.1.2-5f344krn.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +1 -0
  414. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +1 -0
  417. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +1 -0
  418. package/dist/chunks/stats-1.1.2-x2men93c.mjs +6 -0
  419. package/dist/chunks/status-1.1.2-k6342tq7.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +1 -0
  427. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +1 -0
  432. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +69 -0
  435. package/dist/chunks/types-1.1.2-vst16v9y.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +4 -0
  437. package/dist/chunks/update-1.1.2-7daxbkja.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +1 -0
  439. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +1 -0
  442. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +1 -0
  443. package/dist/chunks/util-1.1.2-790z163z.mjs +1 -0
  444. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +1 -0
  445. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.1-s78q59z8.mjs +0 -1
  456. package/dist/chunks/App-1.1.1-efs19kgh.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.1-batyxczq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.1-gxh3rb0c.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.1-xn0ghhf8.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.1-myj4gs4r.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.1-1f2wwv81.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.1-915bc3fz.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.1-zvp5dxyf.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.1-j54rpjza.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.1-my62gkan.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.1-shq78y5c.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.1-f7y0hygx.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.1-875g6ewa.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.1-1e52f3nk.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.1-f7qyyszc.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.1-ns4dbmkj.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.1-491ha27w.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.1-kkw6hq2j.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.1-whkx0y5w.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.1-j6jzkdg3.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.1-b37cg7xp.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.1-52gwqn04.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.1-83ejnp5w.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.1-4hre6f8b.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.1-7tb8517v.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.1-z9y2cj95.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.1-3c8p876v.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.1-z9eg0949.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.1-hnfrh305.mjs +0 -1
  485. package/dist/chunks/agents-1.1.1-hf8w814g.mjs +0 -3
  486. package/dist/chunks/agents-1.1.1-xqrqkwb5.mjs +0 -110
  487. package/dist/chunks/api-1.1.1-934f8zxk.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.1-e8353bvt.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.1-mzpss3sh.mjs +0 -1
  490. package/dist/chunks/auth-1.1.1-8xse81z1.mjs +0 -1
  491. package/dist/chunks/auth-1.1.1-9f3cp9gp.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.1-15ahwpy1.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.1-81k0pg1h.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.1-pndv2vca.mjs +0 -1
  495. package/dist/chunks/branch-1.1.1-wyjy4jfq.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.1-fz27rnbb.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.1-1srg7w12.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.1-hpve37v3.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.1-va485rwj.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.1-4e6545em.mjs +0 -1
  501. package/dist/chunks/btw-1.1.1-2hj5cz16.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.1-mbavcpyj.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.1-5brj0j0a.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.1-cy6xfej9.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.1-01qjcc1e.mjs +0 -4
  506. package/dist/chunks/caches-1.1.1-vcss5vxp.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.1-827j42dz.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.1-5j35wnk1.mjs +0 -1
  509. package/dist/chunks/clear-1.1.1-eb6r6tee.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.1-a2zg5e0p.mjs +0 -1
  511. package/dist/chunks/cli-1.1.1-01gn0bc1.mjs +0 -2
  512. package/dist/chunks/cli-1.1.1-01nvax13.mjs +0 -2
  513. package/dist/chunks/cli-1.1.1-05m3jbze.mjs +0 -2
  514. package/dist/chunks/cli-1.1.1-0eqyjkcc.mjs +0 -2
  515. package/dist/chunks/cli-1.1.1-0hn5dj2w.mjs +0 -2
  516. package/dist/chunks/cli-1.1.1-0rnw8vxn.mjs +0 -2
  517. package/dist/chunks/cli-1.1.1-0xwez66d.mjs +0 -67
  518. package/dist/chunks/cli-1.1.1-0xz1de77.mjs +0 -2
  519. package/dist/chunks/cli-1.1.1-152wk4rk.mjs +0 -2
  520. package/dist/chunks/cli-1.1.1-1987jcbz.mjs +0 -5
  521. package/dist/chunks/cli-1.1.1-19wm2xn6.mjs +0 -2
  522. package/dist/chunks/cli-1.1.1-1q3ezkgp.mjs +0 -4
  523. package/dist/chunks/cli-1.1.1-1rn8sc8r.mjs +0 -2
  524. package/dist/chunks/cli-1.1.1-1zr9ww4h.mjs +0 -2
  525. package/dist/chunks/cli-1.1.1-2b66vsz3.mjs +0 -3
  526. package/dist/chunks/cli-1.1.1-2ck5yx9f.mjs +0 -18
  527. package/dist/chunks/cli-1.1.1-2eervm4j.mjs +0 -2
  528. package/dist/chunks/cli-1.1.1-2g0asdx9.mjs +0 -2
  529. package/dist/chunks/cli-1.1.1-2hr65a5m.mjs +0 -4
  530. package/dist/chunks/cli-1.1.1-2jscs5ek.mjs +0 -2
  531. package/dist/chunks/cli-1.1.1-2r6j3hc2.mjs +0 -2
  532. package/dist/chunks/cli-1.1.1-2wmsmw96.mjs +0 -2
  533. package/dist/chunks/cli-1.1.1-2xecrgas.mjs +0 -2
  534. package/dist/chunks/cli-1.1.1-2y2npk6a.mjs +0 -2
  535. package/dist/chunks/cli-1.1.1-2yqkaj2a.mjs +0 -4
  536. package/dist/chunks/cli-1.1.1-38kc1r2d.mjs +0 -2
  537. package/dist/chunks/cli-1.1.1-3avcamf3.mjs +0 -39
  538. package/dist/chunks/cli-1.1.1-3fb7zat9.mjs +0 -9
  539. package/dist/chunks/cli-1.1.1-3nhzbd0x.mjs +0 -2
  540. package/dist/chunks/cli-1.1.1-3pspjtmp.mjs +0 -18
  541. package/dist/chunks/cli-1.1.1-3wx8xt0d.mjs +0 -2
  542. package/dist/chunks/cli-1.1.1-3y91rx7d.mjs +0 -2
  543. package/dist/chunks/cli-1.1.1-3yhgq98b.mjs +0 -2
  544. package/dist/chunks/cli-1.1.1-3yk5zm2a.mjs +0 -2
  545. package/dist/chunks/cli-1.1.1-3zwjajhq.mjs +0 -2
  546. package/dist/chunks/cli-1.1.1-4232y84r.mjs +0 -2
  547. package/dist/chunks/cli-1.1.1-48eqv75k.mjs +0 -202
  548. package/dist/chunks/cli-1.1.1-4exyd7ra.mjs +0 -2
  549. package/dist/chunks/cli-1.1.1-4j7t9vcq.mjs +0 -2
  550. package/dist/chunks/cli-1.1.1-4nf2hftc.mjs +0 -24
  551. package/dist/chunks/cli-1.1.1-51qpx7j4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.1-5a13gyb4.mjs +0 -2
  553. package/dist/chunks/cli-1.1.1-5yv8wq29.mjs +0 -2
  554. package/dist/chunks/cli-1.1.1-6121wy9f.mjs +0 -3
  555. package/dist/chunks/cli-1.1.1-6587ae95.mjs +0 -2
  556. package/dist/chunks/cli-1.1.1-65apqfps.mjs +0 -2
  557. package/dist/chunks/cli-1.1.1-6h5x77nq.mjs +0 -2
  558. package/dist/chunks/cli-1.1.1-6n2sxzhk.mjs +0 -2
  559. package/dist/chunks/cli-1.1.1-6tztmxpt.mjs +0 -2
  560. package/dist/chunks/cli-1.1.1-6wwgxn4p.mjs +0 -2
  561. package/dist/chunks/cli-1.1.1-6zke1wc8.mjs +0 -2
  562. package/dist/chunks/cli-1.1.1-71h16h6t.mjs +0 -4
  563. package/dist/chunks/cli-1.1.1-71vwpynf.mjs +0 -2
  564. package/dist/chunks/cli-1.1.1-774eebcf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.1-783296xh.mjs +0 -6
  566. package/dist/chunks/cli-1.1.1-7bhncvpq.mjs +0 -4
  567. package/dist/chunks/cli-1.1.1-7gkmf39y.mjs +0 -25
  568. package/dist/chunks/cli-1.1.1-7t3w18nd.mjs +0 -2
  569. package/dist/chunks/cli-1.1.1-7x4t5f2a.mjs +0 -2
  570. package/dist/chunks/cli-1.1.1-85rrb9q4.mjs +0 -2
  571. package/dist/chunks/cli-1.1.1-884t9g0f.mjs +0 -2
  572. package/dist/chunks/cli-1.1.1-8ar2s628.mjs +0 -2
  573. package/dist/chunks/cli-1.1.1-8bt9x8md.mjs +0 -2
  574. package/dist/chunks/cli-1.1.1-8g62r2pb.mjs +0 -2
  575. package/dist/chunks/cli-1.1.1-8hpszz5x.mjs +0 -3
  576. package/dist/chunks/cli-1.1.1-8tzp0yrd.mjs +0 -2
  577. package/dist/chunks/cli-1.1.1-8zfnrs72.mjs +0 -2
  578. package/dist/chunks/cli-1.1.1-8zjem87v.mjs +0 -9
  579. package/dist/chunks/cli-1.1.1-8zzt6htb.mjs +0 -3
  580. package/dist/chunks/cli-1.1.1-94s27fva.mjs +0 -2
  581. package/dist/chunks/cli-1.1.1-98h55a72.mjs +0 -2
  582. package/dist/chunks/cli-1.1.1-9kv5a6f4.mjs +0 -2
  583. package/dist/chunks/cli-1.1.1-9p39qc3e.mjs +0 -5638
  584. package/dist/chunks/cli-1.1.1-9q6jbhm6.mjs +0 -6
  585. package/dist/chunks/cli-1.1.1-9rjrg0tv.mjs +0 -7
  586. package/dist/chunks/cli-1.1.1-9rrtz0k2.mjs +0 -2
  587. package/dist/chunks/cli-1.1.1-9syt3cqd.mjs +0 -2
  588. package/dist/chunks/cli-1.1.1-9tqznq04.mjs +0 -6
  589. package/dist/chunks/cli-1.1.1-9w0d3wxf.mjs +0 -2
  590. package/dist/chunks/cli-1.1.1-9wd4xvzd.mjs +0 -2
  591. package/dist/chunks/cli-1.1.1-9xxs59n0.mjs +0 -4
  592. package/dist/chunks/cli-1.1.1-a0pp3xv5.mjs +0 -2
  593. package/dist/chunks/cli-1.1.1-a2aanf2k.mjs +0 -2
  594. package/dist/chunks/cli-1.1.1-a8r32wr9.mjs +0 -2
  595. package/dist/chunks/cli-1.1.1-ajerx2nx.mjs +0 -2
  596. package/dist/chunks/cli-1.1.1-atzkmfy8.mjs +0 -2
  597. package/dist/chunks/cli-1.1.1-b1kqmh2w.mjs +0 -8
  598. package/dist/chunks/cli-1.1.1-b7abx3n7.mjs +0 -2
  599. package/dist/chunks/cli-1.1.1-bb95back.mjs +0 -2
  600. package/dist/chunks/cli-1.1.1-bkqayrk3.mjs +0 -2
  601. package/dist/chunks/cli-1.1.1-bzdx5f9h.mjs +0 -2
  602. package/dist/chunks/cli-1.1.1-bzqzhffr.mjs +0 -4
  603. package/dist/chunks/cli-1.1.1-ck3y4av6.mjs +0 -2
  604. package/dist/chunks/cli-1.1.1-cw6t7x5a.mjs +0 -2
  605. package/dist/chunks/cli-1.1.1-d21wwf9h.mjs +0 -2
  606. package/dist/chunks/cli-1.1.1-d63f9zds.mjs +0 -2
  607. package/dist/chunks/cli-1.1.1-daz59drp.mjs +0 -2
  608. package/dist/chunks/cli-1.1.1-dmd0wakf.mjs +0 -21
  609. package/dist/chunks/cli-1.1.1-e5sc3rwd.mjs +0 -1
  610. package/dist/chunks/cli-1.1.1-ea6eap5z.mjs +0 -2
  611. package/dist/chunks/cli-1.1.1-ebax5r8y.mjs +0 -2
  612. package/dist/chunks/cli-1.1.1-ec3zbk9q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.1-egnem382.mjs +0 -24
  614. package/dist/chunks/cli-1.1.1-ekcthfcd.mjs +0 -25
  615. package/dist/chunks/cli-1.1.1-ex0sqz63.mjs +0 -2
  616. package/dist/chunks/cli-1.1.1-f4f8asne.mjs +0 -12
  617. package/dist/chunks/cli-1.1.1-fnhx5s3j.mjs +0 -18
  618. package/dist/chunks/cli-1.1.1-fwshj75j.mjs +0 -2
  619. package/dist/chunks/cli-1.1.1-g1awxrn4.mjs +0 -4
  620. package/dist/chunks/cli-1.1.1-g69kxy79.mjs +0 -2
  621. package/dist/chunks/cli-1.1.1-g76vwnqj.mjs +0 -2
  622. package/dist/chunks/cli-1.1.1-g7j0r82j.mjs +0 -2
  623. package/dist/chunks/cli-1.1.1-g96by86m.mjs +0 -2
  624. package/dist/chunks/cli-1.1.1-gkynj1h3.mjs +0 -133
  625. package/dist/chunks/cli-1.1.1-gmxcjwmv.mjs +0 -2
  626. package/dist/chunks/cli-1.1.1-gnhxj8zp.mjs +0 -2
  627. package/dist/chunks/cli-1.1.1-gtbama8g.mjs +0 -2
  628. package/dist/chunks/cli-1.1.1-gv6thx1d.mjs +0 -2
  629. package/dist/chunks/cli-1.1.1-h13exkfb.mjs +0 -2
  630. package/dist/chunks/cli-1.1.1-hd439wse.mjs +0 -2
  631. package/dist/chunks/cli-1.1.1-hjpxjf64.mjs +0 -2
  632. package/dist/chunks/cli-1.1.1-hz3enw9q.mjs +0 -5
  633. package/dist/chunks/cli-1.1.1-jebnfazq.mjs +0 -2
  634. package/dist/chunks/cli-1.1.1-jfy1zmx2.mjs +0 -15
  635. package/dist/chunks/cli-1.1.1-jht24afj.mjs +0 -2
  636. package/dist/chunks/cli-1.1.1-jhxy6tyz.mjs +0 -2
  637. package/dist/chunks/cli-1.1.1-jtdjbvbn.mjs +0 -50
  638. package/dist/chunks/cli-1.1.1-jv6s649f.mjs +0 -3
  639. package/dist/chunks/cli-1.1.1-jvcpm7sm.mjs +0 -58
  640. package/dist/chunks/cli-1.1.1-kb84b41j.mjs +0 -45
  641. package/dist/chunks/cli-1.1.1-kbqy5x92.mjs +0 -2
  642. package/dist/chunks/cli-1.1.1-kembhhn1.mjs +0 -3
  643. package/dist/chunks/cli-1.1.1-kwhspda1.mjs +0 -2
  644. package/dist/chunks/cli-1.1.1-ma5v2jch.mjs +0 -2
  645. package/dist/chunks/cli-1.1.1-matkcn4v.mjs +0 -3
  646. package/dist/chunks/cli-1.1.1-mfkfar88.mjs +0 -2
  647. package/dist/chunks/cli-1.1.1-mqrbnazn.mjs +0 -2
  648. package/dist/chunks/cli-1.1.1-mqx6avyz.mjs +0 -4
  649. package/dist/chunks/cli-1.1.1-mxx5vd6y.mjs +0 -2
  650. package/dist/chunks/cli-1.1.1-mymbst6p.mjs +0 -4
  651. package/dist/chunks/cli-1.1.1-n5zzg2fv.mjs +0 -2
  652. package/dist/chunks/cli-1.1.1-n70wqfbp.mjs +0 -2
  653. package/dist/chunks/cli-1.1.1-n7mc6bx5.mjs +0 -2
  654. package/dist/chunks/cli-1.1.1-npd8k2hb.mjs +0 -2
  655. package/dist/chunks/cli-1.1.1-nrfj4jj5.mjs +0 -6
  656. package/dist/chunks/cli-1.1.1-ntngssqy.mjs +0 -2
  657. package/dist/chunks/cli-1.1.1-nwg10cz1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.1-p6v0z6hs.mjs +0 -2
  659. package/dist/chunks/cli-1.1.1-ped3g2j0.mjs +0 -16
  660. package/dist/chunks/cli-1.1.1-q40shhn8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.1-q9wvkkjf.mjs +0 -59
  662. package/dist/chunks/cli-1.1.1-qfasf488.mjs +0 -3
  663. package/dist/chunks/cli-1.1.1-qx9beg4x.mjs +0 -2
  664. package/dist/chunks/cli-1.1.1-r0ewpxvn.mjs +0 -2
  665. package/dist/chunks/cli-1.1.1-r6d3a12p.mjs +0 -2
  666. package/dist/chunks/cli-1.1.1-r6rebhmb.mjs +0 -6
  667. package/dist/chunks/cli-1.1.1-r9nn4cq9.mjs +0 -2
  668. package/dist/chunks/cli-1.1.1-rcxk0q47.mjs +0 -3
  669. package/dist/chunks/cli-1.1.1-rd13jv1m.mjs +0 -2
  670. package/dist/chunks/cli-1.1.1-rkjpq1rt.mjs +0 -2
  671. package/dist/chunks/cli-1.1.1-rrfnctm7.mjs +0 -2
  672. package/dist/chunks/cli-1.1.1-s0qbvs8w.mjs +0 -2
  673. package/dist/chunks/cli-1.1.1-sbhptgsa.mjs +0 -2
  674. package/dist/chunks/cli-1.1.1-sj83jazr.mjs +0 -2
  675. package/dist/chunks/cli-1.1.1-sj9xzz88.mjs +0 -2
  676. package/dist/chunks/cli-1.1.1-str8bn0w.mjs +0 -20
  677. package/dist/chunks/cli-1.1.1-t3pmg9eh.mjs +0 -2
  678. package/dist/chunks/cli-1.1.1-tekhwq09.mjs +0 -2
  679. package/dist/chunks/cli-1.1.1-tmpebtqd.mjs +0 -24
  680. package/dist/chunks/cli-1.1.1-tmrnrx8v.mjs +0 -2
  681. package/dist/chunks/cli-1.1.1-tn50af03.mjs +0 -2
  682. package/dist/chunks/cli-1.1.1-v9ar4kzn.mjs +0 -15
  683. package/dist/chunks/cli-1.1.1-v9xqeqz0.mjs +0 -12
  684. package/dist/chunks/cli-1.1.1-ve2ye3ad.mjs +0 -2
  685. package/dist/chunks/cli-1.1.1-vj8vq3r2.mjs +0 -2
  686. package/dist/chunks/cli-1.1.1-vrj1t108.mjs +0 -2
  687. package/dist/chunks/cli-1.1.1-vsc2bhws.mjs +0 -2
  688. package/dist/chunks/cli-1.1.1-vvjjnyzw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.1-vyet04sj.mjs +0 -2
  690. package/dist/chunks/cli-1.1.1-wp27gqf3.mjs +0 -12
  691. package/dist/chunks/cli-1.1.1-wpky02br.mjs +0 -2
  692. package/dist/chunks/cli-1.1.1-wqdpr3ra.mjs +0 -2
  693. package/dist/chunks/cli-1.1.1-wtn7e4jz.mjs +0 -15
  694. package/dist/chunks/cli-1.1.1-wxtm9yxy.mjs +0 -34
  695. package/dist/chunks/cli-1.1.1-x3ae1bxc.mjs +0 -42
  696. package/dist/chunks/cli-1.1.1-x61tsmhm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.1-x7n7cp4n.mjs +0 -3
  698. package/dist/chunks/cli-1.1.1-xdq9vz2v.mjs +0 -2
  699. package/dist/chunks/cli-1.1.1-xksd65yv.mjs +0 -3
  700. package/dist/chunks/cli-1.1.1-xx3e0bn5.mjs +0 -2
  701. package/dist/chunks/cli-1.1.1-ya166ffm.mjs +0 -17
  702. package/dist/chunks/cli-1.1.1-yc3xhtyn.mjs +0 -12
  703. package/dist/chunks/cli-1.1.1-ych7rrbd.mjs +0 -2
  704. package/dist/chunks/cli-1.1.1-ye3hmdgh.mjs +0 -3
  705. package/dist/chunks/cli-1.1.1-yga1m543.mjs +0 -2
  706. package/dist/chunks/cli-1.1.1-ypkgwx9d.mjs +0 -2
  707. package/dist/chunks/cli-1.1.1-yqss3x1b.mjs +0 -133
  708. package/dist/chunks/cli-1.1.1-z0pk7sm0.mjs +0 -2
  709. package/dist/chunks/cli-1.1.1-z31vnjht.mjs +0 -2
  710. package/dist/chunks/cli-1.1.1-zbnepy2q.mjs +0 -4
  711. package/dist/chunks/cli-1.1.1-zmzpxmeq.mjs +0 -2
  712. package/dist/chunks/cli-1.1.1-zve2w6c9.mjs +0 -17
  713. package/dist/chunks/cli-1.1.1-zxvwb38m.mjs +0 -2
  714. package/dist/chunks/client-1.1.1-j3w0pe6c.mjs +0 -1
  715. package/dist/chunks/color-1.1.1-h26c9ne7.mjs +0 -1
  716. package/dist/chunks/compact-1.1.1-w47181ep.mjs +0 -3
  717. package/dist/chunks/config-1.1.1-6zcy87ar.mjs +0 -1
  718. package/dist/chunks/config-1.1.1-trscazmb.mjs +0 -1
  719. package/dist/chunks/constants-1.1.1-ttnprx1k.mjs +0 -1
  720. package/dist/chunks/context-1.1.1-5sgcsmam.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.1-7hjf19rb.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.1-z6tpmna3.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.1-qv8vd2vd.mjs +0 -1
  724. package/dist/chunks/copy-1.1.1-x5m52tqg.mjs +0 -9
  725. package/dist/chunks/cost-1.1.1-rt2rxwm1.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.1-fgm4775d.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.1-878gtbt1.mjs +0 -1
  728. package/dist/chunks/debug-1.1.1-d8qa0g0j.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.1-bepehy24.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.1-abjyemqy.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.1-khq8s53d.mjs +0 -1
  732. package/dist/chunks/detection-1.1.1-hjbac0c8.mjs +0 -1
  733. package/dist/chunks/diff-1.1.1-9xwv88x6.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.1-fszqkj4v.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.1-w8ngdv52.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.1-c4n49v4q.mjs +0 -1
  737. package/dist/chunks/effort-1.1.1-esmpmzxn.mjs +0 -13
  738. package/dist/chunks/engine-1.1.1-07myw22m.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.1-byfwm61g.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.1-ww093azg.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.1-295v5dqy.mjs +0 -1
  742. package/dist/chunks/environments-1.1.1-hpwr5w28.mjs +0 -1
  743. package/dist/chunks/errors-1.1.1-hftq1zkm.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.1-f82pb78c.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.1-d1aydfab.mjs +0 -1
  746. package/dist/chunks/exit-1.1.1-yc9akff2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.1-vmv967b9.mjs +0 -1
  748. package/dist/chunks/export-1.1.1-0z1e15hc.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.1-4twkmntw.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.1-jg9fj653.mjs +0 -1
  751. package/dist/chunks/fast-1.1.1-qys2km8z.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.1-tr4y0ch0.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.1-7wz7x5ra.mjs +0 -1
  754. package/dist/chunks/git-1.1.1-51pkabvr.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.1-2zygs5gw.mjs +0 -1
  756. package/dist/chunks/goal-1.1.1-e9phftpw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.1-1ag8h7p5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.1-qef68xgb.mjs +0 -1
  759. package/dist/chunks/headless-1.1.1-jy6w561r.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.1-ed456vky.mjs +0 -6
  761. package/dist/chunks/help-1.1.1-t8j5v83g.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.1-vhpc5ejj.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.1-sb1mqcpz.mjs +0 -79
  764. package/dist/chunks/hooks-1.1.1-v40qht7p.mjs +0 -1
  765. package/dist/chunks/ide-1.1.1-jq6fzrr8.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.1-4y6xb66j.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.1-kt406stw.mjs +0 -1
  768. package/dist/chunks/index-1.1.1-22g434vw.mjs +0 -1
  769. package/dist/chunks/index-1.1.1-3tqmdx42.mjs +0 -1
  770. package/dist/chunks/index-1.1.1-6b23qrhd.mjs +0 -1
  771. package/dist/chunks/index-1.1.1-831bha9e.mjs +0 -1
  772. package/dist/chunks/index-1.1.1-8cnva9ne.mjs +0 -1
  773. package/dist/chunks/index-1.1.1-8da5q9g0.mjs +0 -1
  774. package/dist/chunks/index-1.1.1-90ykavq0.mjs +0 -2
  775. package/dist/chunks/index-1.1.1-99zmp2ps.mjs +0 -30
  776. package/dist/chunks/index-1.1.1-9px0bvba.mjs +0 -1
  777. package/dist/chunks/index-1.1.1-9y71kyrj.mjs +0 -2
  778. package/dist/chunks/index-1.1.1-adq8vvcq.mjs +0 -5
  779. package/dist/chunks/index-1.1.1-d9d1y0xy.mjs +0 -1
  780. package/dist/chunks/index-1.1.1-f3c3172e.mjs +0 -9
  781. package/dist/chunks/index-1.1.1-faj87xfe.mjs +0 -1
  782. package/dist/chunks/index-1.1.1-g0ax59dw.mjs +0 -1
  783. package/dist/chunks/index-1.1.1-h17gbfyk.mjs +0 -1
  784. package/dist/chunks/index-1.1.1-q6fnrh31.mjs +0 -1
  785. package/dist/chunks/index-1.1.1-qzgt3tqq.mjs +0 -1
  786. package/dist/chunks/index-1.1.1-rkne46w2.mjs +0 -1
  787. package/dist/chunks/index-1.1.1-wy3wddv5.mjs +0 -17
  788. package/dist/chunks/index-1.1.1-x398ec1v.mjs +0 -1
  789. package/dist/chunks/index-1.1.1-y44m8pc8.mjs +0 -9
  790. package/dist/chunks/index-1.1.1-ymbhqb7a.mjs +0 -1
  791. package/dist/chunks/init-1.1.1-xz02rb2g.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.1-kv3zvcqm.mjs +0 -1
  793. package/dist/chunks/ink-1.1.1-ts8kz51v.mjs +0 -1
  794. package/dist/chunks/insights-1.1.1-ngjqkjt0.mjs +0 -870
  795. package/dist/chunks/install-1.1.1-4r1x1e7v.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.1-bwwf005w.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.1-adwykfa7.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.1-mgk4dsdp.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.1-2kmkwc3e.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.1-217cgz80.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.1-h9nvn3pk.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.1-v0bjj4j7.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.1-fvfkg4pz.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.1-09829bee.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.1-ks9c0rqf.mjs +0 -1
  806. package/dist/chunks/log-1.1.1-ny9tjyjz.mjs +0 -1
  807. package/dist/chunks/main-1.1.1-dk2pmpcr.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.1-vh54nadj.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.1-0xajrtdb.mjs +0 -17
  810. package/dist/chunks/mcp-1.1.1-vbcrdqmb.mjs +0 -4
  811. package/dist/chunks/mcp-1.1.1-xp78k98x.mjs +0 -1
  812. package/dist/chunks/mcpb-1.1.1-rhne101r.mjs +0 -1
  813. package/dist/chunks/memory-1.1.1-scrmwf7c.mjs +0 -72
  814. package/dist/chunks/model-1.1.1-as90vvvf.mjs +0 -1
  815. package/dist/chunks/model-1.1.1-jyf2vnvg.mjs +0 -2
  816. package/dist/chunks/node-1.1.1-ha7q8qzq.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.1-stj442qp.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.1-tbbj59s9.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.1-s7dgeq38.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.1-sw5txmkn.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.1-yq34k18v.mjs +0 -1
  822. package/dist/chunks/parser-1.1.1-905wxz1h.mjs +0 -1
  823. package/dist/chunks/passes-1.1.1-tzyxx4nr.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.1-32frrkp8.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.1-52vyx1cw.mjs +0 -1
  826. package/dist/chunks/plan-1.1.1-1xwn0q2w.mjs +0 -1
  827. package/dist/chunks/plist-1.1.1-x63x823y.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.1-2137mb81.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.1-vswc3yva.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.1-qwrzc7gx.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.1-81dgne38.mjs +0 -2
  832. package/dist/chunks/print-1.1.1-zxwjkq6w.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.1-7taqcgcn.mjs +0 -1
  834. package/dist/chunks/process-1.1.1-cmc5gnbm.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.1-7mebt6rm.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.1-hp957bf8.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.1-1ebtk0je.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.1-rghw84pr.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.1-x63nzadg.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.1-8006jsvm.mjs +0 -13
  841. package/dist/chunks/provider-1.1.1-znmbhpqc.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.1-tncrzs7g.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.1-hvgdx6gz.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.1-03pfc3mn.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.1-d7trtqbt.mjs +0 -34
  846. package/dist/chunks/registry-1.1.1-10hk5pdr.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.1-ymmqtngr.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.1-y2fq7m0b.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.1-09923mmx.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.1-shksn0qq.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.1-x6zsy3p0.mjs +0 -1
  852. package/dist/chunks/rename-1.1.1-33edcj9v.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.1-pm1k9p9p.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.1-v540zdz4.mjs +0 -1
  855. package/dist/chunks/resume-1.1.1-dh01es5c.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.1-c67qy3xg.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.1-ffyvn3c6.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.1-mm9fvkrt.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.1-t72pc0m1.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.1-ftncjx7h.mjs +0 -1
  861. package/dist/chunks/session-1.1.1-npa4qjy3.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.1-mnz0wg6k.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.1-rkn2r5h7.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.1-1swj757c.mjs +0 -1
  865. package/dist/chunks/settings-1.1.1-22mzj46y.mjs +0 -1
  866. package/dist/chunks/setup-1.1.1-f7fxdsa8.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.1-000q9sh0.mjs +0 -1
  868. package/dist/chunks/skills-1.1.1-e5343fy7.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.1-47a6124t.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.1-acthvy1s.mjs +0 -1
  871. package/dist/chunks/state-1.1.1-7pv2ergw.mjs +0 -1
  872. package/dist/chunks/stats-1.1.1-gkq9kw3d.mjs +0 -6
  873. package/dist/chunks/status-1.1.1-c8wh646y.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.1-x16691x3.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.1-s9eb1ebz.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.1-hf2m8vwd.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.1-bh0tny54.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.1-33rs06c9.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.1-8tegxvgv.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.1-dckvxw7f.mjs +0 -1
  881. package/dist/chunks/theme-1.1.1-xdyfpwgx.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.1-48dgjam0.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.1-ja387fza.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.1-7byzrvcw.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.1-ptantdef.mjs +0 -1
  886. package/dist/chunks/tools-1.1.1-ptw1g92g.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.1-adv5nypt.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.1-b28vqpjf.mjs +0 -69
  889. package/dist/chunks/types-1.1.1-8fh9zk18.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.1-g05tw4qq.mjs +0 -4
  891. package/dist/chunks/update-1.1.1-kbve1bfd.mjs +0 -88
  892. package/dist/chunks/upgrade-1.1.1-6kxsf3f3.mjs +0 -1
  893. package/dist/chunks/upload-1.1.1-ymhqntg7.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.1-e5mpv3vk.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.1-v5t4s4mm.mjs +0 -1
  896. package/dist/chunks/usage-1.1.1-7vhbkw6t.mjs +0 -1
  897. package/dist/chunks/util-1.1.1-1gy72074.mjs +0 -1
  898. package/dist/chunks/utils-1.1.1-dk86qenr.mjs +0 -1
  899. package/dist/chunks/vim-1.1.1-3xxzx58p.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.1-cs9xsv8s.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.1-36zhrjfn.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.1-wgesmc0j.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.1-gjxqq9he.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.1-2bwg78x8.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.1-d42z1v61.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.1-tevg51mj.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.1-x3ph4re0.mjs → cli-1.1.2-3vyt3jw9.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.1-10s3pxec.mjs → cli-1.1.2-6d3jf0sj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.1-xd0vsxbj.mjs → cli-1.1.2-6jbsqbdw.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.1-f1n1hjs0.mjs → cli-1.1.2-8t8veykp.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.1-kr5z77zj.mjs → cli-1.1.2-btgmqahb.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.1-y1n8t2yy.mjs → cli-1.1.2-pgz05ddc.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.1-ghx32shb.mjs → cli-1.1.2-r4rfggdk.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{ysa as g}from"./cli-1.1.1-vsc2bhws.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
- export{Bq as fW,d as gW,$J as hW,DJ as iW,GJ as jW};
@@ -1,2 +0,0 @@
1
- import{Ad as GJ,Bd as aJ}from"./cli-1.1.1-4232y84r.mjs";import{ai as $J,bi as cJ}from"./cli-1.1.1-jvcpm7sm.mjs";import{DF as s,DT as kJ,EF as SJ,Em as l,Hx as C,Ij as g,Km as vJ,PD as LJ,Rk as wJ,Rn as x,_R as I,cH as b,cm as c,dE as mJ,eE as uJ,fm as OJ,gH as r,hH as t,iH as EJ,jE as XJ,kE as gJ,sm as a,vO as P,xm as bJ,xz as o,yz as TJ}from"./cli-1.1.1-9p39qc3e.mjs";import{IV as FJ,wV as i,xV as n}from"./cli-1.1.1-xx3e0bn5.mjs";import{k7 as UJ}from"./cli-1.1.1-ped3g2j0.mjs";import{Hga as B,Pda as m,Pga as H,Xda as u,Yda as AJ,hea as HJ,saa as BJ,yga as O,zga as RJ}from"./cli-1.1.1-48eqv75k.mjs";import{$ha as VJ}from"./cli-1.1.1-4exyd7ra.mjs";import{Aia as WJ}from"./cli-1.1.1-ma5v2jch.mjs";import{mja as R,pja as y}from"./cli-1.1.1-h13exkfb.mjs";import{Zja as zJ,bka as V,fka as _J,pka as f,ska as MJ}from"./cli-1.1.1-nrfj4jj5.mjs";import{Wka as h}from"./cli-1.1.1-zbnepy2q.mjs";import{Zka as w,kla as NJ}from"./cli-1.1.1-gmxcjwmv.mjs";import{Goa as T,Pqa as j,Xna as F}from"./cli-1.1.1-s0qbvs8w.mjs";import{vsa as fJ}from"./cli-1.1.1-vsc2bhws.mjs";gJ();cJ();j();VJ();y();P();wJ();x();BJ();WJ();h();H();I();UJ();zJ();C();P();x();H();h();I();C();LJ();function D(){}j();y();RJ();MJ();NJ();_J();TJ();HJ();H();r();SJ();bJ();kJ();EJ();FJ();AJ();vJ();OJ();import{join as Y}from"path";var hJ=30;function U(){let G=((m()||{}).cleanupPeriodDays??hJ)*24*60*60*1000;return new Date(Date.now()-G)}function e(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function xJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,G){let $={messages:0,errors:0};try{let K=await V().readdir(X);for(let Z of K)try{if(xJ(Z.name)<J)if(await V().unlink(Y(X,Z.name)),G)$.messages++;else $.errors++}catch(Q){B(Q)}}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return $}async function CJ(){let X=V(),J=U(),G=O.errors(),$=O.baseLogs(),K=await p(G,J,!1);try{let Z;try{Z=await X.readdir($)}catch{return K}let Q=Z.filter((q)=>q.isDirectory()&&q.name.startsWith("mcp-logs-")).map((q)=>Y($,q.name));for(let q of Q)K=e(K,await p(q,J,!0)),await z(q,X)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")B(Z)}return K}async function L(X,J,G){if((await G.stat(X)).mtime<J)return await G.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function PJ(){let X=U(),J={messages:0,errors:0},G=g(),$=V(),K;try{K=await $.readdir(G)}catch{return J}for(let Z of K){if(!Z.isDirectory())continue;let Q=Y(G,Z.name),q;try{q=await $.readdir(Q)}catch{J.errors++;continue}for(let W of q)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await L(Y(Q,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Y(Q,W.name),N=Y(M,l),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await L(Y(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Y(N,_.name),E;try{E=await $.readdir(A)}catch{continue}for(let k of E){if(!k.isFile())continue;try{if(await L(Y(A,k.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Q,$)}return J}async function d(X,J,G=!0){let $=U(),K={messages:0,errors:0},Z=V(),Q;try{Q=await Z.readdir(X)}catch{return K}for(let q of Q){if(!q.isFile()||!q.name.endsWith(J))continue;try{if(await L(Y(X,q.name),$,Z))K.messages++}catch{K.errors++}}if(G)await z(X,Z);return K}async function IJ(){let X=a(),J=await d(X,".md"),G=Y(w(),"plans");if(G!==X){let $=await d(G,".md");return e(J,$)}return J}async function jJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=w(),K=Y($,"file-history"),Z;try{Z=await G.readdir(K)}catch{return J}let Q=Z.filter((q)=>q.isDirectory()).map((q)=>Y(K,q.name));await Promise.all(Q.map(async(q)=>{try{if((await G.stat(q)).mtime<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(K,G)}catch($){B($)}return J}async function yJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=w(),K=Y($,"session-env"),Z;try{Z=await G.readdir(K)}catch{return J}let Q=Z.filter((q)=>q.isDirectory()).map((q)=>Y(K,q.name));for(let q of Q)try{if((await G.stat(q)).mtime<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(K,G)}catch($){B($)}return J}async function DJ(){let X=U(),J={messages:0,errors:0},G=V();try{let $=Y(w(),"tasks"),K=n(i()),Z;try{Z=await G.readdir($)}catch{return J}for(let Q of Z){if(!Q.isDirectory()||Q.name===K)continue;let q=Y($,Q.name);try{if(await pJ(q,G)<X)await G.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await z($,G)}catch($){B($)}return J}async function pJ(X,J){let G=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let K of $){if(!K.isFile())continue;try{let{mtime:Z}=await J.stat(Y(X,K.name));if(Z>G)G=Z}catch{}}return G}async function dJ(){let X=U(),J={messages:0,errors:0},G=V(),$=Y(w(),"debug"),K;try{K=await G.readdir($)}catch{return J}for(let Z of K){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await L(Y($,Z.name),X,G))J.messages++}catch{J.errors++}}return J}async function JJ(){let{errors:X}=t();if(X.length>0&&u("cleanupPeriodDays")){f("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await CJ(),await PJ(),await IJ(),await jJ(),await yJ(),await DJ(),await dJ(),await o(),await s(U());let J=await c(U());if(J>0)R("tengu_worktree_cleanup",{removed:J})}r();aJ();var lJ=(uJ(),fJ(mJ));var v=600000;function $0(){$J(),D(),lJ.initExtractMemories(),XJ(),GJ();let X=!0;async function J(){if(T()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await JJ();if(T()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await b()}setTimeout(J,v).unref()}
2
- export{$0 as ka};
@@ -1,2 +0,0 @@
1
- import{$ha as K,Qha as G}from"./cli-1.1.1-4exyd7ra.mjs";import{sia as j,uia as M,via as J,wia as N}from"./cli-1.1.1-0xwez66d.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
- export{q as Ib,$ as Jb};
@@ -1,2 +0,0 @@
1
- import{pja as f}from"./cli-1.1.1-h13exkfb.mjs";import{ska as h}from"./cli-1.1.1-nrfj4jj5.mjs";import{ysa as Z}from"./cli-1.1.1-vsc2bhws.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var w=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(){}async function oz(z){if(!z||z.length>D)return null;return null}async function dz(z){if(!z||z.length>D)return null;return null}function nz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(l(J.text));else if(m.has(J.type))break}return X}function l(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,m,pz;var L=Z(()=>{f();h();w();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),m=new Set(["command_substitution","process_substitution"]);pz=Symbol("parse-aborted")});
2
- export{K as f3,w as g3,kz as h3,oz as i3,pz as j3,dz as k3,nz as l3,L as m3};
@@ -1,21 +0,0 @@
1
- import{_R as F,js as O,kK as X,ks as Z,nk as L,wE as V,xE as $}from"./cli-1.1.1-9p39qc3e.mjs";import{ysa as Y}from"./cli-1.1.1-vsc2bhws.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
-
3
- IMPORTANT CONTEXT:
4
- - You are a separate, lightweight agent spawned to answer this one question
5
- - The main agent is NOT interrupted - it continues working independently in the background
6
- - You share the conversation context but are a completely separate instance
7
- - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
-
9
- CRITICAL CONSTRAINTS:
10
- - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
- - This is a one-off response - there will be no follow-up turns
12
- - You can ONLY provide information based on what you already know from the conversation context
13
- - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
- - If you don't know the answer, say so - do not offer to look it up or investigate
15
-
16
- Simply answer the question with the information you have.</system-reminder>
17
-
18
- ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
-
20
- `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
- export{W as Sh,b as Th,C as Uh};
@@ -1 +0,0 @@
1
- import{sia as q,uia as A,via as x,wia as B}from"./cli-1.1.1-0xwez66d.mjs";import{Zja as J}from"./cli-1.1.1-nrfj4jj5.mjs";import{Wka as G}from"./cli-1.1.1-zbnepy2q.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -1,2 +0,0 @@
1
- import{xe as V,ze as B}from"./cli-1.1.1-jfy1zmx2.mjs";import{Gx as Q,Hx as q,_R as F,nk as L,tO as U,vO as w}from"./cli-1.1.1-9p39qc3e.mjs";import{$aa as k,Waa as K}from"./cli-1.1.1-48eqv75k.mjs";import{pka as I,ska as $}from"./cli-1.1.1-nrfj4jj5.mjs";import{Pka as G,Wka as _}from"./cli-1.1.1-zbnepy2q.mjs";import{ysa as Z}from"./cli-1.1.1-vsc2bhws.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
2
- export{h as ve,D as we};
@@ -1,2 +0,0 @@
1
- import{Yf as EG,Zf as iG,dg as rG}from"./cli-1.1.1-bzqzhffr.mjs";import{$M as kG,$N as s,AF as mG,GM as LG,HM as BG,JM as pG,LM as WG,MM as qG,RM as a,TN as bG,VM as DG,WN as sG,Ws as uG,XM as y,YM as o,ZM as lG,_N as f,aO as c,bO as v,cO as i,eN as _G,fO as u,iy as l,jO as cG,jy as jG,kn as FG,ky as HG,ln as OG,ly as dG,nN as aG,pn as VG,vN as $G,wN as oG,xs as vG,zF as KG,zn as fG}from"./cli-1.1.1-9p39qc3e.mjs";import{wZ as QJ}from"./cli-1.1.1-q9wvkkjf.mjs";import{h4 as wG,j4 as PG}from"./cli-1.1.1-94s27fva.mjs";import{k4 as YG}from"./cli-1.1.1-6zke1wc8.mjs";import{Kca as zG,Lga as R,Mga as _,Pca as CG,Pga as gG}from"./cli-1.1.1-48eqv75k.mjs";import{$ha as NG}from"./cli-1.1.1-4exyd7ra.mjs";import{mja as A,pja as MG}from"./cli-1.1.1-h13exkfb.mjs";import{Zja as yG,pka as ZG,ska as SG}from"./cli-1.1.1-nrfj4jj5.mjs";import{Pka as h,Wka as TG}from"./cli-1.1.1-zbnepy2q.mjs";import{Pqa as XG,Qma as QG}from"./cli-1.1.1-s0qbvs8w.mjs";import{usa as r,ysa as p}from"./cli-1.1.1-vsc2bhws.mjs";var e=p(()=>{yG();NG()});function GG(Z){let z="plugin"in Z?Z.plugin:"no-plugin";return`${Z.type}:${Z.source}:${z}`}function JG(Z,z){if(z.length===0)return;Z((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),$=z.filter((j)=>!U.has(GG(j)));if($.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...$]}}})}function GJ(Z,z,k,U){let $=z==="disabled"?U??[]:U;if($===void 0)return Z;let j=new Map;for(let W of $)if(W.name!==void 0)j.set(W.name,W);let V=[],P=new Set;for(let W of Z){if(!W.name?.startsWith(k)){V.push(W);continue}let w=j.get(W.name);if(w)V.push(w),P.add(W.name)}for(let W of $)if(W.name===void 0||!P.has(W.name))V.push(W);return V}function IG(Z,z=!1){let k=HG(),U=l((G)=>G.authVersion),$=l((G)=>G.mcp.pluginReconnectKey),j=jG(),V=D.useRef(new Map),P=D.useRef(new Set),W=D.useRef(null);D.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=D.useRef([]),N=D.useRef(null),C=D.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((Y)=>{let F=Y.mcp;for(let B of G){let{tools:X,commands:H,resources:q,...J}=B,K=J.type==="disabled"||J.type==="failed"?H??[]:H,Q=J.type==="disabled"||J.type==="failed"?q??[]:q,O=zG(J.name),I=F.clients.findIndex((M)=>M.name===J.name)===-1?[...F.clients,J]:F.clients.map((M)=>M.name===J.name?J:M),g=GJ(F.tools,J.type,O,X),x=K===void 0?F.commands:[...$G(F.commands,(M)=>kG(M,J.name)),...K],m=Q===void 0?F.resources:{...F.resources,...Q.length>0?{[J.name]:Q}:EG(F.resources,J.name)};F={...F,clients:I,tools:g,commands:x,resources:m}}return{...Y,mcp:F}})},[j]),b=D.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=D.useCallback(({client:G,tools:Y,commands:F,resources:B})=>{switch(b({...G,tools:Y,commands:F,resources:B}),G.type){case"connected":{if(bG(G.client,G.name,j),G.client.onclose=()=>{let X=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{ZG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){_(G.name,"Server is disabled, skipping automatic reconnection");return}if(X!=="stdio"&&X!=="sdk"){let H=JJ(X);_(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let q=V.current.get(G.name);if(q)clearTimeout(q),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){_(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}b({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let Q=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-Q;if(L.client.type==="connected"){_(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(_(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-Q;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),b({...G,type:"failed"});return}}let O=Math.min(tG*Math.pow(2,K-1),eG);_(G.name,`Scheduling reconnection attempt ${K+1} in ${O}ms`),await new Promise((L)=>{let I=setTimeout(L,O);V.current.set(G.name,I)})}})()}else b({...G,type:"failed"})},!1)switch(X.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{_(G.name,"Received tools/list_changed notification, refreshing tools");try{let X=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),q=H.length;if(X)X.then((J)=>{A("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:q})},()=>{A("tengu_mcp_list_changed",{type:"tools",newCount:q})});else A("tengu_mcp_list_changed",{type:"tools",newCount:q});b({...G,tools:H})}catch(X){R(G.name,`Failed to refresh tools after list_changed notification: ${h(X)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{_(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("tengu_mcp_list_changed",{type:"prompts"});try{c.cache.delete(G.name);let[X,H]=await Promise.all([c(G),Promise.resolve([])]);b({...G,commands:[...X,...H]}),nG?.()}catch(X){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(X)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{_(G.name,"Received resources/list_changed notification, refreshing resources"),A("tengu_mcp_list_changed",{type:"resources"});try{s.cache.delete(G.name);{let X=await s(G);b({...G,resources:X})}}catch(X){R(G.name,`Failed to refresh resources after list_changed notification: ${h(X)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[b]),t=QG();D.useEffect(()=>{async function G(){let{servers:Y,errors:F}=z?{servers:{},errors:[]}:await a(Z),B={...Y,...Z};JG(j,F),j((X)=>{let{stale:H,...q}=_G(X.mcp,B);for(let Q of H){let O=V.current.get(Q.name);if(O)clearTimeout(O),V.current.delete(Q.name);if(Q.type==="connected")Q.client.onclose=void 0,u(Q.name,Q.config).catch(()=>{})}let J=new Set(q.clients.map((Q)=>Q.name)),K=Object.entries(B).filter(([Q])=>!J.has(Q)).map(([Q,O])=>({name:Q,type:y(Q)?"disabled":"pending",config:O}));if(K.length===0&&H.length===0)return X;return{...X,mcp:{...X.mcp,...q,clients:[...q.clients,...K]}}})}G().catch((Y)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(Y)}`)})},[z,Z,j,t,$]),D.useEffect(()=>{let G=!1;async function Y(){let F;if(z||DG())F=Promise.resolve({});else BG(),F=LG();let{servers:B,errors:X}=z?{servers:{},errors:[]}:await a(Z,F);if(G)return;JG(j,X);let H={...B,...Z},q=Object.fromEntries(Object.entries(H).filter(([O])=>!y(O)));i(E,q).catch((O)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(O)}`)});let J={};if(!z){if(J=qG(await F).allowed,G)return;if(Object.keys(J).length>0){let{servers:O}=WG(J,H);J=O}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let O=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,O).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},Q={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let O of Object.values(K))if(O.scope==="enterprise")Q.enterprise++;else if(O.scope==="user")Q.global++;else if(O.scope==="project")Q.project++;else if(O.scope==="local")Q.user++;else if(O.scope==="dynamic")Q.plugin++;else if(O.scope==="claudeai")Q.claudeai++;A("tengu_mcp_servers",{...Q})}return Y(),()=>{G=!0}},[z,Z,E,j,U,t,$]),D.useEffect(()=>{let G=V.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((X)=>X.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let F=V.current.get(G);if(F)clearTimeout(F),V.current.delete(G);let B=await v(G,Y.config);return E(B),B},[k,E]),hG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((B)=>B.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let B=V.current.get(G);if(B)clearTimeout(B),V.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);b({name:G,type:"disabled",config:Y.config})}else{o(G,!0),b({name:G,type:"pending",config:Y.config});let B=await v(G,Y.config);E(B)}},[k,b,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(Z){switch(Z){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var D,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{XG();cG();fG();iG();oG();MG();lG();SG();XG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();aG();vG();D=r(YG(),1)});function aJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpReconnect must be used within MCPConnectionManager");return Z.reconnectMcpServer}function oJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return Z.toggleMcpServer}function sJ(Z){let z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:$}=Z,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,$),P;if(z[0]!==j||z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},z[0]=j,z[1]=V,z[2]=P;else P=z[2];let W=P,w;if(z[3]!==k||z[4]!==W)w=wG(n.Provider,{value:W,children:k}),z[3]=k,z[4]=W,z[5]=w;else w=z[5];return w}var xG,S,n;var XJ=p(()=>{UG();PG();xG=r(QJ(),1),S=r(YG(),1),n=S.createContext(null)});
2
- export{e as Tf,aJ as Uf,oJ as Vf,sJ as Wf,XJ as Xf};
@@ -1,2 +0,0 @@
1
- import{Xs as I,_s as X}from"./cli-1.1.1-9p39qc3e.mjs";import{ala as H,kla as W}from"./cli-1.1.1-gmxcjwmv.mjs";import{ysa as V}from"./cli-1.1.1-vsc2bhws.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
- export{q as Uc,F as Vc,K as Wc,Q as Xc,R as Yc,_ as Zc,j as _c,Y as $c};
@@ -1,24 +0,0 @@
1
- import{cc as DY}from"./cli-1.1.1-kr5z77zj.mjs";import{$c as iQ,Yc as LY}from"./cli-1.1.1-ec3zbk9q.mjs";import{gi as V0,hi as p6}from"./cli-1.1.1-fnhx5s3j.mjs";import{$i as A6,_i as pY}from"./cli-1.1.1-g76vwnqj.mjs";import{AQ as nY,BS as qY,Ct as b0,Dq as iZ,Dt as fZ,EQ as w6,Ep as j9,Eq as AY,FR as kZ,Fp as i6,Fq as FZ,GD as HY,GO as BY,Gq as _Y,HD as aQ,Ht as r9,IO as rQ,JR as xZ,QL as P9,SD as NY,SL as F9,Sm as yZ,TD as nQ,UD as RY,Vm as $Z,WD as z6,WL as M9,Wm as e0,XA as uY,ZA as v6,_D as n,_R as wZ,aE as U6,bC as cY,bM as o6,cC as _6,dB as CY,eB as TY,ew as h0,fB as L6,fl as L9,fw as uZ,gC as mY,gI as T0,gL as PY,gk as KZ,gl as u6,gw as k0,hC as O6,hI as s9,hl as z9,hw as x0,il as q9,iw as u0,iy as I0,jL as J6,jk as E0,jl as bZ,jw as p0,kK as s,kl as Y0,kw as pZ,lS as rY,ll as D9,lw as cZ,ly as i9,ml as XZ,mw as c0,nl as Q0,nw as m0,ok as hY,ol as v9,ow as g0,pQ as lY,pl as A9,pw as d0,qK as gY,ql as sY,qw as l0,rG as C0,rw as a0,sG as o9,su as ZY,sw as n0,tu as xQ,tw as r0,uS as iY,uu as JY,uw as i0,vu as lQ,vw as GQ,vz as xY,wu as kY,xK as dY,yQ as aY,yS as zY,yz as D6,zt as M0}from"./cli-1.1.1-9p39qc3e.mjs";import{BX as Q9,FX as R6}from"./cli-1.1.1-tmpebtqd.mjs";import{AY as a9,GY as F0,HY as n9,gY as y0,hY as d9,uY as $0,vY as j0,wY as l9,zY as P0}from"./cli-1.1.1-kbqy5x92.mjs";import{A1 as g9,V0 as p,X0 as M,wZ as m9}from"./cli-1.1.1-q9wvkkjf.mjs";import{g4 as a,h4 as E,i4 as b,j4 as J0}from"./cli-1.1.1-94s27fva.mjs";import{k4 as c9}from"./cli-1.1.1-6zke1wc8.mjs";import{V8 as G6,Y7 as jY,q6 as $Y,u6 as K6}from"./cli-1.1.1-ped3g2j0.mjs";import{$aa as T6,Aga as U0,Dga as p9,Fca as r6,Hga as e,I_ as GY,K_ as dQ,L$ as a6,Pda as yY,Pga as w0,Qca as wY,Rca as EY,Saa as n6,Tca as V6,Waa as Y9,Yda as W6,j$ as E9,qaa as TZ,saa as x9,vaa as y9,w_ as _Z,x_ as k9,yca as $9}from"./cli-1.1.1-48eqv75k.mjs";import{_ga as B0,gha as L0,kha as h9}from"./cli-1.1.1-9xxs59n0.mjs";import{$ha as $6,Qha as oY}from"./cli-1.1.1-4exyd7ra.mjs";import{sia as Y,tia as h,uia as JZ,via as q,wia as EZ}from"./cli-1.1.1-0xwez66d.mjs";import{Aia as X6,Cia as RZ,Fia as z0,Gia as q0,Hia as D0,Iia as v0,Kia as A0,Lia as _0,Xia as O0,bja as u9,zia as UY}from"./cli-1.1.1-ma5v2jch.mjs";import{mja as g,pja as UZ}from"./cli-1.1.1-h13exkfb.mjs";import{Uja as ZZ,Vja as WY,Zja as PZ,pka as I,sja as Z9,ska as HZ,uja as C6}from"./cli-1.1.1-nrfj4jj5.mjs";import{uka as KY,yka as gQ}from"./cli-1.1.1-8zfnrs72.mjs";import{Bka as VY,Pka as w9,Qka as tZ,Wka as lZ}from"./cli-1.1.1-zbnepy2q.mjs";import{Bpa as N9,Cpa as X0,Epa as B9,Mqa as IY,Pqa as BZ,Qma as NZ,Wma as W0,Xma as eY,foa as OY,xpa as J9,ypa as DZ,zpa as H9}from"./cli-1.1.1-s0qbvs8w.mjs";import{usa as N0,xsa as hZ,ysa as OZ,zsa as rZ}from"./cli-1.1.1-vsc2bhws.mjs";var WQ={};hZ(WQ,{selectableUserMessagesFilter:()=>S0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function SZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:V,onSummarize:W,onClose:H,preselectedMessage:G}){let K=I0((U)=>U.fileHistory),[B,z]=T.useState(void 0),J=M0(),L=T.useMemo(t9,[]),_=T.useMemo(()=>[...Q.filter(S0),{...s({content:""}),uuid:L}],[Q,L]),[w,v]=T.useState(_.length-1),P=Math.max(0,Math.min(w-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[D,F]=T.useState(G),[y,S]=T.useState(void 0);T.useEffect(()=>{if(!G||!J)return;let U=!1;return fZ(K,G.uuid).then((R)=>{if(!U)S(R)}),()=>{U=!0}},[G,J,K]);let[O,$]=T.useState(!1),[d,i]=T.useState(null),[o,C]=T.useState("both"),[k,x]=T.useState(""),[A,j]=T.useState("");function N(U){let R=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}T.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function u(U){Z(),$(!0);try{await X(U),$(!1),H()}catch(R){e(R),$(!1),z(`Failed to restore the conversation:
2
- ${R}`)}}async function l(U){let R=Q.indexOf(U),c=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:c,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){H();return}if(!J){await u(U);return}let m=await fZ(K,U.uuid);F(U),S(m)}async function VZ(U){if(g("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(G)H();else F(void 0);return}if(SZ(U)){Z(),$(!0),i(U),z(void 0);try{let m=U==="summarize_up_to"?"up_to":"from",YZ=(m==="up_to"?A:k).trim()||void 0;await W(D,YZ,m),$(!1),i(null),F(void 0),H()}catch(m){e(m),$(!1),i(null),F(void 0),z(`Failed to summarize:
3
- ${m}`)}return}Z(),$(!0),z(void 0);let R=null,c=null;if(U==="code"||U==="both")try{await V(D)}catch(m){R=m,e(R)}if(U==="conversation"||U==="both")try{await X(D)}catch(m){c=m,e(c)}if($(!1),F(void 0),c&&R)z(`Failed to restore the conversation and code:
4
- ${c}
5
- ${R}`);else if(c)z(`Failed to restore the conversation:
6
- ${c}`);else if(R)z(`Failed to restore the code:
7
- ${R}`);else H()}let WZ=P0(),t=T.useCallback(()=>{if(D&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,D,G]),I9=T.useCallback(()=>v((U)=>Math.max(0,U-1)),[]),C9=T.useCallback(()=>v((U)=>Math.min(_.length-1,U+1)),[_.length]),T9=T.useCallback(()=>v(0),[]),R9=T.useCallback(()=>v(_.length-1),[_.length]),f9=T.useCallback(()=>{let U=_[w];if(U)l(U)},[_,w,l]);$0("confirm:no",t,{context:"Confirmation",isActive:!D}),j0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":T9,"messageSelector:bottom":R9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!O&&!B&&!D&&f});let[K0,G0]=T.useState({});T.useEffect(()=>{async function U(){if(!J)return;Promise.all(_.map(async(R,c)=>{if(R.uuid!==L){let m=b0(K,R.uuid),YZ=_.at(c+1),AZ=m?XQ(Q,R.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)G0((r)=>({...r,[c]:AZ}));else G0((r)=>({...r,[c]:void 0}))}}))}U()},[_,Q,L,K,J]);let vZ=J&&y?.filesChanged&&y.filesChanged.length>0,S9=!B&&!D&&!G&&f;return b(p,{flexDirection:"column",width:"100%",children:[E(F0,{color:"suggestion"}),b(p,{flexDirection:"column",marginX:1,gap:1,children:[E(M,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:b(M,{color:"error",children:["Error: ",B]})}),!f&&E(a,{children:E(M,{children:"Nothing to rewind to yet."})}),!B&&D&&f&&b(a,{children:[b(M,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(H0,{userMessage:D,color:"text",isCurrent:!1}),b(M,{dimColor:!0,children:["(",L0(new Date(D.timestamp)),")"]})]}),E(YQ,{selectedRestoreOption:o,canRestoreCode:!!vZ,diffStatsForRestore:y}),O&&SZ(d)?b(p,{flexDirection:"row",gap:1,children:[E(T0,{}),E(M,{children:"Summarizing…"})]}):E(C0,{isDisabled:O,options:N(!!vZ),defaultFocusValue:vZ?"both":"conversation",onFocus:(U)=>C(U),onChange:(U)=>VZ(U),onCancel:()=>G?H():F(void 0)}),vZ&&E(p,{marginBottom:1,children:b(M,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),S9&&b(a,{children:[J?E(M,{children:"Restore the code and/or conversation to the point before…"}):E(M,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((U,R)=>{let c=P+R,m=c===w,YZ=U.uuid===L,AZ=c in K0,r=K0[c],IZ=r?.filesChanged&&r.filesChanged.length;return b(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:m?b(M,{color:"permission",bold:!0,children:[_Z.pointer," "]}):E(M,{children:" "})}),b(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(H0,{userMessage:U,color:m?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&E(p,{height:1,flexDirection:"row",children:r?E(a,{children:E(M,{dimColor:!m,color:"inactive",children:IZ?b(a,{children:[IZ===1&&r.filesChanged[0]?`${QZ.basename(r.filesChanged[0])} `:`${IZ} files changed `,E(f0,{diffStats:r})]}):E(a,{children:"No code changes"})})}):b(M,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(M,{dimColor:!0,italic:!0,children:WZ.pending?b(a,{children:["Press ",WZ.keyName," again to exit"]}):b(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:V,diffStatsForRestore:W}=Q,H=V&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=E(M,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==W||Z[5]!==X||Z[6]!==H)B=!SZ(X)&&(H?E(QQ,{diffStatsForRestore:W}):E(M,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=W,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=b(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=E(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let V=X.filesChanged.length,W;if(V===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];W=K}else if(V===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];W=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];W=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=E(f0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==W||Z[12]!==H)G=E(a,{children:b(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",W,"."]})}),Z[11]=W,Z[12]=H,Z[13]=G;else G=Z[13];return G}function f0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let V;if(Z[0]!==X.insertions)V=b(M,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=V;else V=Z[1];let W;if(Z[2]!==X.deletions)W=b(M,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=W;else W=Z[3];let H;if(Z[4]!==V||Z[5]!==W)H=b(a,{children:[V,W]}),Z[4]=V,Z[5]=W,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=GZ.c(31),{userMessage:X,color:V,dimColor:W,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let S;if(Z[0]!==V||Z[1]!==W)S=E(p,{width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"(current)"})}),Z[0]=V,Z[1]=W,Z[2]=S;else S=Z[2];return S}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,w,v,P,f,D;if(Z[3]!==V||Z[4]!==K||Z[5]!==B||Z[6]!==W||Z[7]!==z||Z[8]!==G){D=Symbol.for("react.early_return_sentinel");Z:{let S=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",O=U0(S);if(E0(O)){let $;if(Z[17]!==V||Z[18]!==W)$=E(p,{flexDirection:"row",width:"100%",children:E(M,{italic:!0,color:V,dimColor:W,children:"((empty message))"})}),Z[17]=V,Z[18]=W,Z[19]=$;else $=Z[19];D=$;break Z}if(O.includes("<bash-input>")){let $=KZ(O,"bash-input");if($){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=E(M,{color:"bashBorder",children:"!"}),Z[20]=d;else d=Z[20];D=b(p,{flexDirection:"row",width:"100%",children:[d,b(M,{color:V,dimColor:W,children:[" ",$]})]});break Z}}if(O.includes(`<${RZ}>`)){let $=KZ(O,RZ),d=KZ(O,"command-args"),i=KZ(O,"skill-format")==="true";if($)if(i){D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["Skill(",$,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:b(M,{color:V,dimColor:W,children:["/",$," ",d]})});break Z}}L=p,P="row",f="100%",J=M,_=V,w=W,v=G?B0(O,K-G,!0):O.slice(0,500).split(`
8
- `).slice(0,4).join(`
9
- `)}Z[3]=V,Z[4]=K,Z[5]=B,Z[6]=W,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=w,Z[13]=v,Z[14]=P,Z[15]=f,Z[16]=D}else J=Z[9],L=Z[10],_=Z[11],w=Z[12],v=Z[13],P=Z[14],f=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==w||Z[24]!==v)F=E(J,{color:_,dimColor:w,children:v}),Z[21]=J,Z[22]=_,Z[23]=w,Z[24]=v,Z[25]=F;else F=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)y=E(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=y;else y=Z[30];return y}function XQ(Q,Z,X){let V=Q.findIndex((B)=>B.uuid===Z);if(V===-1)return;let W=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(W===-1)W=Q.length;let H=[],G=0,K=0;for(let B=V+1;B<W;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=TZ(L.lines,(v)=>v.startsWith("+")),w=TZ(L.lines,(v)=>v.startsWith("-"));G+=_,K+=w}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function S0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],V=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(V.indexOf(`<${D0}>`)!==-1||V.indexOf(`<${v0}>`)!==-1||V.indexOf(`<${z0}>`)!==-1||V.indexOf(`<${q0}>`)!==-1||V.indexOf(`<${_0}>`)!==-1||V.indexOf(`<${A0}>`)!==-1||V.indexOf(`<${O0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let V=Q[X];if(!V)continue;if(kZ(V))continue;if(xZ(V))continue;if(V.type==="progress")continue;if(V.type==="system")continue;if(V.type==="attachment")continue;if(V.type==="user"&&V.isMeta)continue;if(V.type==="assistant"){let W=V.message.content;if(Array.isArray(W)){if(W.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(V.type==="user")return!1}return!0}var GZ,T,CZ=7;var KQ=OZ(()=>{k9();UZ();i9();r9();w0();a9();g9();l9();p9();wZ();o9();s9();d9();u9();x9();h9();n9();J0();GZ=N0(m9(),1),T=N0(c9(),1)});var b6={};hZ(b6,{getCronJitterConfig:()=>M6});function M6(){let Q=oY("tengu_kairos_cron_config",XZ,j6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var j6=60000,oZ=1800000,P6=2592000000,F6;var I6=OZ(()=>{JZ();$6();sY();EZ();F6=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(oZ),oneShotMaxMs:Y.number().int().min(0).max(oZ),oneShotFloorMs:Y.number().int().min(0).max(oZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as S6,unlink as X9,writeFile as eZ}from"fs/promises";import{dirname as h6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await S6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),V=ZZ(Q);try{return await eZ(X,V,{flag:"wx"}),!0}catch(W){let H=tZ(W);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(h6(X),{recursive:!0});try{return await eZ(X,V,{flag:"wx"}),!0}catch(G){if(tZ(G)==="EEXIST")return!1;throw G}}throw W}}function sZ(Q){MZ?.(),MZ=Z9(async()=>{await qZ(Q)})}async function Z0(Q){let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(V,Z))return LZ=void 0,sZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let W=await W9(Z);if(W?.sessionId===X){if(W.pid!==process.pid)await eZ(zZ(Z),ZZ(V)),sZ(Q);return!0}if(W&&Q9(W.pid)){if(LZ!==W.sessionId)LZ=W.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${W.sessionId} (PID ${W.pid})`);return!1}if(W)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${W.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(V,Z))return LZ=void 0,sZ(Q),!0;return!1}async function qZ(Q){MZ?.(),MZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??NZ(),V=await W9(Z);if(!V||V.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,MZ,LZ;var K9=OZ(()=>{JZ();BZ();C6();HZ();lZ();R6();T6();EZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var d6={};hZ(d6,{takeDueSessionWakeup:()=>O9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>g6,buildMissedTaskNotification:()=>U9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function O9(Q){let Z=X0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:V0(Z.prompt),reason:Z.reason}}function g6(Q){let{onFire:Z,isLoading:X,assistantMode:V=!1,onFireTask:W,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,w=[],v=new Map,P=new Set,f=new Set,D=null,F=null,y=null,S=null,O=!1,$=!1;async function d(C){let k=await q9(K);if(O)return;if(w=k,!C)return;let x=Date.now(),A=A9(k,x).filter((j)=>!j.recurring&&!P.has(j.id)&&(!L||L(j)));if(A.length>0){for(let j of A)P.add(j.id),v.set(j.id,1/0);if(g("tengu_scheduled_task_missed",{count:A.length,taskIds:A.map((j)=>j.id).join(",")}),H)H(A);else Z(U9(A));Y0(A.map((j)=>j.id),K).catch((j)=>I(`[ScheduledTasks] failed to remove missed tasks: ${j}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function i(){if(J?.())return;if(X()&&!V)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function j(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=v.get(N.id);if(l===void 0)l=N.recurring?Q0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:v9(N.cron,N.createdAt,N.id,A)??1/0,v.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?V0(N.prompt,void 0,N.agentId):N.prompt;if(W)W(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Q0(N.cron,C,N.id,A)??1/0;if(v.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),v.delete(N.id);else f.add(N.id),Y0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),v.delete(N.id)}if($){for(let N of w)j(N,!1);if(x.length>0){for(let N of x)f.add(N);D9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())j(u,!0);let N=O9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("tengu_schedule_wakeup_fire",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){v.clear();return}for(let N of v.keys())if(!k.has(N))v.delete(N)}async function o(){if(O)return;if(D)clearInterval(D),D=null;let{default:C}=await import("./index-1.1.1-faj87xfe.mjs");if(O)return;if($=await Z0(_).catch(()=>!1),O){if($)$=!1,qZ(_);return}if(!$)y=setInterval(()=>{Z0(_).then((x)=>{if(O){if(x)qZ(_);return}if(x){if($=!0,y)clearInterval(y),y=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),y.unref?.();d(!0);let k=z9(K);S=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),S.on("add",()=>void d(!1)),S.on("change",()=>void d(!1)),S.on("unlink",()=>{if(!O)w=[],v.clear()}),F=setInterval(i,G9),F.unref?.()}return{start(){if(O=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${bZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${DZ()}, hasTasks=${bZ()}`),!DZ()&&(V||bZ()))J9(!0);if(DZ()){o();return}D=setInterval((C)=>{if(DZ())C()},G9,o),D.unref?.()},stop(){if(O=!0,D)clearInterval(D),D=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(S?.close(),S=null,$)$=!1,qZ(_)},getNextFireTime(){let C=1/0;for(let k of v.values())if(k<C)C=k;if(K===void 0){let k=X0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function U9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
10
-
11
- Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,V=Q.map((W)=>{let H=`[${L9(W.cron)}, created ${new Date(W.createdAt).toLocaleString()}]`,G=(W.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
12
- ${K}
13
- ${W.prompt}
14
- ${K}`});return`${X}
15
-
16
- ${V.join(`
17
-
18
- `)}`}var G9=1000,c6=300,m6=5000;var l6=OZ(()=>{BZ();UZ();u6();sY();K9();HZ();p6()});import{randomUUID as dZ}from"crypto";JZ();EZ();GQ();var JQ=q(()=>Y.unknown()),HQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),NQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(HQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),g0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),EX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:m0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:i0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),BQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),LQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(k0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),zQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:x0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),qQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),DQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),vQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),yX=q(()=>Y.object({mcpServers:Y.array(uZ())}).describe("Response containing the current status of all MCP server connections.")),AQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),_Q=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),OQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),$X=q(()=>Y.object({categories:Y.array(_Q()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(OQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),jX=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),wQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),PX=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),EQ=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:p0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),$Q=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:JQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),jQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),h0())}).describe("Replaces the set of dynamically managed MCP servers.")),FX=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),PQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),MX=q(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(uZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),MQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),bQ=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),IQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),CQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),bX=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),TQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),o0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),RQ=q(()=>Y.union([BQ(),LQ(),NQ(),zQ(),qQ(),DQ(),vQ(),AQ(),yQ(),$Q(),UQ(),wQ(),EQ(),jQ(),PQ(),FQ(),MQ(),bQ(),IQ(),CQ(),TQ()])),mZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:RQ()})),fQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),SQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),s0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([fQ(),SQ()])})),hQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),t0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),kQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),IX=q(()=>Y.union([r0(),l0(),a0(),n0(),s0(),mZ(),hQ(),t0()])),CX=q(()=>Y.union([d0(),mZ(),s0(),t0(),kQ()]));lQ();HZ();dQ();lZ();JZ();HZ();EZ();e0();xQ();var xX=q(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),YY=q(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),uQ=q(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(ZY()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:YY()})),pQ=q(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:YY()})),gZ=q(()=>h.union([uQ(),pQ()]));function jZ(Q,Z,X,V){let W={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)V.setAppState((K)=>({...K,toolPermissionContext:yZ(K.toolPermissionContext,H)})),$Z(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:W}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),V.abortController.abort();return{...Q,decisionReason:W}}rQ();gQ();PZ();JZ();aQ();qY();e0();iQ();PZ();nQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,V){let W;try{W=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{W=Q.name}return{tool_name:Q.name,action_description:W,tool_use_id:X,request_id:V,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new NY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
19
- `)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
20
- `);if(X===-1)break;let V=Q.slice(0,X);Q=Q.slice(X+1);let W=await this.processLine(V);if(W)GY("info","cli_stdin_message_parsed",{type:W.type}),yield W}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let V=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(W){X.reject(W)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=DY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let X=Object.keys(Z.variables);for(let[V,W]of Object.entries(Z.variables))process.env[V]=W;I(`[structuredIO] applied update_environment_variables: ${X.join(", ")}`);return}if(Z.type==="control_response"){let X="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(X)HY(X,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let W=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(W))}catch(H){V.reject(H)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")XY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
21
- `)}async sendRequest(Q,Z,X,V=dZ()){let W={type:"control_request",request_id:V,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(W),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(W);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:V});let G=this.pendingRequests.get(V);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(V,{request:{type:"control_request",request_id:V,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(V)}}createCanUseTool(Q){return async(Z,X,V,W,H,G)=>{let K=G??await BY(Z,X,V,W,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=V.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,V,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let w=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:V.agentId},gZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),v=await Promise.race([L,w]);if(v.source==="hook"){if(v.decision)return w.catch(()=>{}),B.abort(),v.decision;let P=await w;return jZ(P.result,Z,X,V)}return jZ(v.result,Z,X,V)}catch(L){return jZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,V)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,V,W)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:V||void 0},JY(),W)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,V,W,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:W,url:H,elicitation_id:G,requested_schema:X},o0(),V)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},gZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,V,W){let G=V.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,V,G,W,V.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){$Z(L);let _=V.getAppState(),w=yZ(_.toolPermissionContext,L);V.setAppState((v)=>{if(v.toolPermissionContext===w)return v;return{...v,toolPermissionContext:w}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Y();function HV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?Q6(Z):Z,uuid:X}}function Q6(Q){if(!Q.some(vY))return Q;return Q.map((Z)=>{if(!vY(Z))return Z;let X=Z.source,V=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:AY(Z.source.data);return{...Z,source:{type:"base64",media_type:V,data:Z.source.data}}})}function vY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}BZ();J6();V6();G6();X6();K6();W6();import{randomUUID as H6}from"crypto";function N6(Q){return Q===wY?EY:Q}function OV(Q){let X=yY()?.outputStyle??PY,V={type:"system",subtype:"init",cwd:UY(),session_id:NZ(),tools:Q.tools.map((W)=>N6(W.name)),mcp_servers:Q.mcpClients.map((W)=>({name:W.name,status:W.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),apiKeySource:jY().source,betas:OY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((W)=>W.agentType),skills:Q.skills.filter((W)=>W.userInvocable!==!1).map((W)=>W.name),plugins:Q.plugins.map((W)=>({name:W.name,path:W.path,source:W.source})),uuid:H6()};return V.fast_mode_state=$Y(Q.model,Q.fastMode),V}var FY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function B6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let V=[],W=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(W){if(W==="["&&L==="["){H=J;continue}if(L!==FY[W])continue;if(W==="'"&&G(Q[J+1]))continue;V.push({start:H,end:J+1}),W=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in FY)W=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(V.some((P)=>L>=P.start&&L<P.end))continue;let w=Q[L-1],v=Q[_];if(w==="/"||w==="\\"||w==="-")continue;if(v==="/"||v==="\\"||v==="-"||v==="?")continue;if(v==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function wV(Q){return B6(Q,"ultrareview")}UZ();wZ();w6();_6();O6();v6();qY();_Y();D6();wZ();U6();A6();import{randomUUID as E6}from"crypto";BZ();UZ();wZ();L6();z6();import{randomUUID as q6}from"crypto";function MY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function bY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function fY(Q,Z,X,V,W,H,G){let K=q6();IY(K);let B=typeof Q==="string"?Q:Q.find((w)=>w.type==="text")?.text||"";RY(B);let z=typeof Q==="string"?Q:Q.findLast((w)=>w.type==="text")?.text||"";if(z)TY("user_prompt",{prompt_length:String(z.length),prompt:CY(z),"prompt.id":K});let J=MY(B),L=bY(B);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:L}),Z.length>0){let w=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...w,...Z],uuid:W,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}return{messages:[s({content:Q,uuid:W,permissionMode:H,isMeta:G||void 0}),...V],shouldQuery:!0}}async function iV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:V,context:W,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:w,bridgeOrigin:v,isMeta:P,skipAttachments:f}){let D=typeof Q==="string"?Q:null;if(X==="prompt"&&D!==null&&!P)B?.(D);n("query_process_user_input_base_start");let F=W.getAppState(),y=await y6(Q,X,V,W,H,G,K,z,J,L,_,F.toolPermissionContext.mode,w,v,P,f,Z);if(n("query_process_user_input_base_end"),!y.shouldQuery)return y;n("query_hooks_start");let S=hY(Q)||"";for await(let O of iY(S,F.toolPermissionContext.mode,W,W.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let $=rY(O.blockingError);return{messages:[gY(`${$}
22
-
23
- Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let $=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:$})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(kY({type:"hook_additional_context",content:O.additionalContexts.map(SY),hookName:"UserPromptSubmit",toolUseID:`hook-${E6()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:SY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return n("query_hooks_end"),y}var aZ=1e4;function SY(Q){if(Q.length>aZ)return`${Q.substring(0,aZ)}… [output truncated - exceeded ${aZ} characters]`;return Q}async function y6(Q,Z,X,V,W,H,G,K,B,z,J,L,_,w,v,P,f){let D=null,F=[],y=[],S=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)y.push(l)}A.push(u.block)}else A.push(N);S=A,n("query_image_processing_end");let j=A[A.length-1];if(j?.type==="text")D=j.text,F=A.slice(0,-1);else F=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=W?Object.values(W).filter(cY):[],$=O.map((A)=>A.id),d=W?await xY(W):new Map;n("query_pasted_image_processing_start");let i=await Promise.all(O.map(async(A)=>{let j={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await iZ(j),originalDimensions:A.dimensions,sourcePath:A.sourcePath??d.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:j,sourcePath:N}of i){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)y.push(u)}else if(j){let u=FZ(j,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(w&&D!==null&&D.startsWith("/")){let A=pY(D),j=A?nY(A.commandName,V.options.commands):void 0;if(j)if(aY(j))C=!1;else{let N=`/${lY(j)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:K}),dY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&D!==null&&(Z!=="prompt"||C||!D.startsWith("/"));n("query_attachment_loading_start");let x=k?await uY(mY(D,V,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.1-7mebt6rm.mjs");return nZ(await A(D,F,x,V,X),y)}if(D!==null&&!C&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.1-hp957bf8.mjs"),j=await A(D,F,o,x,V,X,K,B,J);return nZ(j,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),j=x.find((N)=>N.attachment.type==="agent_mention");if(j){let N=`@agent-${j.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("tengu_subagent_at_mention",{is_subagent_only:u,is_prefix:l})}}return nZ(fY(S,o,$,x,K,L,v),y)}function nZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}i6();BZ();HZ();lZ();n6();a6();w0();o6();r6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let V=[],W=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=b9(K.source,X?.projectRoot);if(!B)V.push(G);else if(K.sourceIsFallback)H.push(G);else if(!j9(z,B.source))W.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:V,sourceChanged:W,upToDate:H}}async function IW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let V=e6(Z,X,{projectRoot:W0()}),W=[...V.missing.map((J)=>({name:J,source:b9(Z[J].source),action:"install"})),...V.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of W){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&$9(J.source)&&!await y9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:V.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:w}=G[J];Q?.onProgress?.({type:"installing",name:L,action:w,index:J+1,total:G.length});try{let v=await M9(_);if(w==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:v.alreadyMaterialized})}catch(v){let P=w9(v);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(v)}}return{installed:K,updated:B,failed:z,upToDate:V.upToDate,skipped:H}}function b9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??W0(),V=E9(X);return{...Q,path:t6(V??X,Q.path)}}return Q}
24
- export{HV as la,N6 as ma,OV as na,e9 as oa,S0 as pa,VQ as qa,WQ as ra,KQ as sa,wV as ta,iV as ua,gZ as va,jZ as wa,QY as xa,oQ as ya,Z6 as za,e6 as Aa,IW as Ba,M6 as Ca,b6 as Da,I6 as Ea,g6 as Fa,d6 as Ga,l6 as Ha};
@@ -1,25 +0,0 @@
1
- import{$J as Jq,$u as t,FK as Zq,HK as Uq,KJ as b,LJ as R,MJ as vq,PJ as p,Pp as a,QJ as S,RJ as zq,Rp as Kq,SJ as Bq,TJ as I,UJ as k,Vu as s,Zx as e,_x as Nq,aK as Qq,cl as r,eK as wq,el as Wq,fv as Hq,hK as Vq,iK as Oq,kK as Yq,pB as qq,pR as $q,qB as Xq,vR as yq,yK as Pq}from"./cli-1.1.1-9p39qc3e.mjs";import{Hga as h,Pga as Fq}from"./cli-1.1.1-48eqv75k.mjs";import{Aia as Lq,zia as n}from"./cli-1.1.1-ma5v2jch.mjs";import{Ika as y,Wka as jq}from"./cli-1.1.1-zbnepy2q.mjs";import{ysa as M}from"./cli-1.1.1-vsc2bhws.mjs";function x(B,z){let J=g[z]??1,Z=B!==void 0?g[B]:void 0;if(Z===void 0)return z;return Z<=J?B:z}var g;var m=M(()=>{g={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
- …[truncated ${B.length-z} chars]`}function u(B,z,J,Z){let Y=[];if(Y.push(`You are a worker agent in the "${B.name}" workflow, phase "${Z.name}".`),B.instructions.trim())Y.push(`Workflow instructions:
3
- ${B.instructions.trim()}`);if(Y.push(`Task:
4
- ${z}`),J.trim())Y.push(`Work so far (accumulated artifact from earlier phases):
5
- ${C(J.trim(),Gq)}`);return Y.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),Y.join(`
6
-
7
- `)}function c(B,z){let J=[];if(J.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())J.push(`Workflow instructions:
8
- ${z.instructions.trim()}`);J.push(`Task:
9
- ${B.task}`);let Z=z.steps.findIndex((V)=>V.name===B.currentStep),Y=z.steps.map((V,Q)=>{let j=Q<Z?"[done]":Q===Z?"[current]":"[pending]",H=I(V)?" (terminal)":"";return` ${Q+1}. ${V.name} ${j}${H}`}).join(`
10
- `);if(J.push(`Phases:
11
- ${Y}`),B.history.length>0){let V=B.history.map((Q)=>{let j=Q.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
- ${C(q.output,f).split(`
13
- `).map((N)=>` ${N}`).join(`
14
- `)}`}).join(`
15
- `),H=Q.decision?` decision: ${Q.decision.decision}${Q.decision.target?` → ${Q.decision.target}`:""} — ${Q.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${Q.step}":
16
- ${j}
17
- ${Q.synthesis?` synthesis: ${C(Q.synthesis,f)}
18
- `:""}${H}`}).join(`
19
-
20
- `);J.push(`History (all phases so far):
21
- ${V}`)}let G=z.steps[Z]?.handbackTo??[];return J.push(G.length>0?`From the current phase you may hand back to: ${G.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),J.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),J.join(`
22
-
23
- `)}var f=4000,Gq=6000;var l=M(()=>{k()});function d(B,z,J){let Z=J.steps,Y=Z.findIndex((j)=>j.name===B.currentStep),$={...B.refineCounts},G=B.transitions+1,V=B.currentStep,Q="running";if(z.decision==="advance"){let j=Z[Y+1];if(I(j)){if(Q="done",j)V=j.name}else V=j.name}else if(z.decision==="refine"){if($[V]=($[V]??0)+1,$[V]>S)Q="stalled"}else{let j=Z[Y]?.handbackTo??[];if(!z.target||!j.includes(z.target))Q="stalled";else if($[z.target]=($[z.target]??0)+1,$[z.target]>S)Q="stalled";else V=z.target}if(Q==="running"&&G>=p)Q="stalled";return{...B,currentStep:V,status:Q,refineCounts:$,transitions:G,updatedAt:Date.now()}}var i=M(()=>{k()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function hq(B){let z="",J=0;for(let Y=B.length-1;Y>=0;Y--){let $=B[Y];if($.type!=="assistant"||!$.message)continue;if(!z){let G=($.message.content??[]).filter((V)=>V.type==="text"&&V.text);if(G.length>0)z=G.map((V)=>V.text??"").join(`
24
- `)}if(J===0&&$.message.usage)J=$q($.message.usage);if(z&&J)break}let Z=e(B);return{text:z,tokens:J,tools:Z}}async function o(B){let{label:z,agentDef:J,promptText:Z,toolUseContext:Y,canUseTool:$,extraTools:G,runId:V}=B,Q=Date.now(),j=Y.getAppState(),H=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(J.permissionMode,H)},L=Zq(q,j.mcp.tools);if(G&&G.length>0)L=[...L,...G];let N=J.model??String(Y.options.mainLoopModel??""),F=[],X,P=!1;try{let K=qq({agentDefinition:J,promptMessages:[Yq({content:Z})],toolUseContext:Y,canUseTool:$,isAsync:!1,querySource:a(J.agentType,s(J)),availableTools:L,transcriptSubdir:`workflows/${V}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let w of K)if(F.push(w),w.type==="attachment"&&w.attachment?.type==="structured_output")X=w.attachment.data}catch(K){if(y(K))throw K;h(K),P=!0}let{text:E,tokens:_,tools:v}=hq(F);return{run:{label:z,model:N,tokens:_,tools:v,ms:Date.now()-Q,output:P?"":E,failed:P},structuredOutput:X}}async function tq(B){let{def:z,task:J,toolUseContext:Z,canUseTool:Y,onProgress:$,signal:G}=B,{allAgents:V}=await t(n()),Q=new Map(V.map((N)=>[N.agentType,N]));Q.set(b,R);let j=Q.get(z.main??b)??R,H=new AbortController;if(G)if(G.aborted)H.abort();else G.addEventListener("abort",()=>H.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:J,firstStep:z.steps[0].name});$?.(q);let L=async()=>{await Qq(q),$?.(q)};while(q.status==="running"){if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let N=z.steps.findIndex((W)=>W.name===q.currentStep),F=z.steps[N];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let X;try{X=(await Vq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=Q.get(O);A=D?await o({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,J,q.artifact,F),toolUseContext:Z,canUseTool:Y,runId:q.runId,abortController:H}):T}catch(D){if(y(D))throw D;h(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let P={step:F.name,stepIndex:N,agents:X,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+X.reduce((W,O)=>W+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&X.every((W)=>W.failed)){h(Error(`workflow phase "${F.name}": all ${X.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){h(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],v;try{v=await o({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Z,canUseTool:Y,extraTools:_,runId:q.runId,abortController:H})}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let K=zq.safeParse(v.structuredOutput),w=[...q.history];if(w[w.length-1]={...P,synthesis:v.run.output,decision:K.success?K.data:null,agents:[...X,v.run]},q={...q,history:w,artifact:v.run.output.trim()?v.run.output:q.artifact,totalTokens:q.totalTokens+v.run.tokens,updatedAt:Date.now()},!K.success){h(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Hq();Nq();Xq();Wq();Lq();jq();Fq();Pq();Kq();yq();vq();m();l();wq();i();k()});
25
- export{tq as zi,Eq as Ai};
@@ -1,2 +0,0 @@
1
- import{Ak as I,_R as R,jK as Y,um as W,xm as P,zk as Q}from"./cli-1.1.1-9p39qc3e.mjs";import{Sga as B,Tga as f}from"./cli-1.1.1-9xxs59n0.mjs";import{Hia as H,Iia as J,bja as F}from"./cli-1.1.1-ma5v2jch.mjs";import{Pqa as $,Qma as v}from"./cli-1.1.1-s0qbvs8w.mjs";import{ysa as Z}from"./cli-1.1.1-vsc2bhws.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
- export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};