@claudiolabs/claudin 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (911) hide show
  1. package/dist/chunks/AgentTool-1.1.10-gj63wvsc.mjs +1 -0
  2. package/dist/chunks/App-1.1.10-sk0bjxfk.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.10-7yenejkw.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.10-0aa0zy1a.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.10-vyft90yk.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.10-657b3x88.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.10-2vb72aje.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.10-dcrmyx9b.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.10-3k4xatjv.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.10-rgy7nenk.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.10-7tka6rrk.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.10-mzvca2vd.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.10-zf1cxr4h.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.10-xbvct858.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.10-29tqjn4y.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.10-0fdsdbna.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.10-pwtdmht6.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.10-qdhkgymy.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.10-d1wzzd1a.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.10-qxv36tqp.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.10-1w85m05k.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.10-qsf4xmkj.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.10-b0js9xk0.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.10-v8g7z6vy.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.10-mh9af70m.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.10-23pzjxjm.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.10-561ps5mb.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.10-1spf7213.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.10-pvac31nq.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.10-1g7w3dx1.mjs +1 -0
  31. package/dist/chunks/agents-1.1.10-8m9yb7xs.mjs +110 -0
  32. package/dist/chunks/agents-1.1.10-spgs7zfh.mjs +3 -0
  33. package/dist/chunks/api-1.1.10-6md4ym02.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.10-r808f4jx.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.10-2jgdpy2m.mjs +1 -0
  36. package/dist/chunks/auth-1.1.10-c58sakkr.mjs +1 -0
  37. package/dist/chunks/auth-1.1.10-sfzbw010.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.10-c8tm40pq.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.10-avtbnsyp.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.10-n208vt88.mjs +1 -0
  41. package/dist/chunks/branch-1.1.10-qtvf52jq.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.10-ryc7krfd.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.10-3j77pwcn.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.10-mdqzrmk6.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.10-0da3j9a0.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.10-hjbfhk32.mjs +1 -0
  47. package/dist/chunks/btw-1.1.10-k6ndf81e.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.10-t5yrtkdq.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.10-tkh4t0g0.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.10-q4zvr7r5.mjs +4 -0
  51. package/dist/chunks/caches-1.1.10-107p4aea.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.10-fkx2a88x.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.10-n325a040.mjs +1 -0
  54. package/dist/chunks/clear-1.1.10-evfcfpzq.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.10-9c6e5w18.mjs +1 -0
  56. package/dist/chunks/cli-1.1.10-051sym72.mjs +2 -0
  57. package/dist/chunks/cli-1.1.10-05ry3ydz.mjs +2 -0
  58. package/dist/chunks/cli-1.1.10-0hqk157z.mjs +2 -0
  59. package/dist/chunks/cli-1.1.10-0j2bz40j.mjs +2 -0
  60. package/dist/chunks/cli-1.1.10-0ss6k2ta.mjs +133 -0
  61. package/dist/chunks/cli-1.1.10-0sxx8rkz.mjs +21 -0
  62. package/dist/chunks/cli-1.1.10-0t3bda7e.mjs +45 -0
  63. package/dist/chunks/cli-1.1.10-0v84m667.mjs +2 -0
  64. package/dist/chunks/cli-1.1.10-0v8v9gwe.mjs +17 -0
  65. package/dist/chunks/cli-1.1.10-0vae4j38.mjs +2 -0
  66. package/dist/chunks/cli-1.1.10-0vm5evaf.mjs +2 -0
  67. package/dist/chunks/cli-1.1.10-0yx9c9s1.mjs +2 -0
  68. package/dist/chunks/cli-1.1.10-12dzgaq4.mjs +2 -0
  69. package/dist/chunks/cli-1.1.10-15m7f0r3.mjs +50 -0
  70. package/dist/chunks/cli-1.1.10-1jkxjyqd.mjs +2 -0
  71. package/dist/chunks/cli-1.1.10-1mh77njj.mjs +2 -0
  72. package/dist/chunks/cli-1.1.10-1qxr18wg.mjs +2 -0
  73. package/dist/chunks/cli-1.1.10-220cer0v.mjs +9 -0
  74. package/dist/chunks/cli-1.1.10-250q8bef.mjs +2 -0
  75. package/dist/chunks/cli-1.1.10-2rygdbq2.mjs +2 -0
  76. package/dist/chunks/cli-1.1.10-2scx8n6c.mjs +2 -0
  77. package/dist/chunks/cli-1.1.10-2thwcpkf.mjs +18 -0
  78. package/dist/chunks/cli-1.1.10-2w383pwf.mjs +2 -0
  79. package/dist/chunks/cli-1.1.10-2w4c9red.mjs +3 -0
  80. package/dist/chunks/cli-1.1.10-2wkvf65f.mjs +2 -0
  81. package/dist/chunks/cli-1.1.10-2x1a8qcr.mjs +2 -0
  82. package/dist/chunks/cli-1.1.10-374zmax8.mjs +2 -0
  83. package/dist/chunks/cli-1.1.10-39crhqg8.mjs +2 -0
  84. package/dist/chunks/cli-1.1.10-3a3dw1b0.mjs +6 -0
  85. package/dist/chunks/cli-1.1.10-3pch2a3h.mjs +2 -0
  86. package/dist/chunks/cli-1.1.10-3vfwktcp.mjs +2 -0
  87. package/dist/chunks/cli-1.1.10-453rs0bh.mjs +3 -0
  88. package/dist/chunks/cli-1.1.10-49bvng33.mjs +2 -0
  89. package/dist/chunks/cli-1.1.10-4fjjvbb7.mjs +2 -0
  90. package/dist/chunks/cli-1.1.10-4h8gax7r.mjs +2 -0
  91. package/dist/chunks/cli-1.1.10-4xztz3b9.mjs +24 -0
  92. package/dist/chunks/cli-1.1.10-51vyhqae.mjs +2 -0
  93. package/dist/chunks/cli-1.1.10-5828mt9m.mjs +2 -0
  94. package/dist/chunks/cli-1.1.10-58e888gh.mjs +2 -0
  95. package/dist/chunks/cli-1.1.10-58vqqfgj.mjs +2 -0
  96. package/dist/chunks/cli-1.1.10-5hrs5rqr.mjs +2 -0
  97. package/dist/chunks/cli-1.1.10-5t6aryqe.mjs +2 -0
  98. package/dist/chunks/cli-1.1.10-5t95b8cn.mjs +2 -0
  99. package/dist/chunks/cli-1.1.10-5y236qn7.mjs +2 -0
  100. package/dist/chunks/cli-1.1.10-6g4fntdc.mjs +3 -0
  101. package/dist/chunks/cli-1.1.10-6km1ymnm.mjs +2 -0
  102. package/dist/chunks/cli-1.1.10-6m1jpn0s.mjs +24 -0
  103. package/dist/chunks/cli-1.1.10-6q7mx8f2.mjs +2 -0
  104. package/dist/chunks/cli-1.1.10-6smvkrsd.mjs +2 -0
  105. package/dist/chunks/cli-1.1.10-6vxxztf9.mjs +2 -0
  106. package/dist/chunks/cli-1.1.10-6ya9ptdc.mjs +2 -0
  107. package/dist/chunks/cli-1.1.10-795jmkhb.mjs +2 -0
  108. package/dist/chunks/cli-1.1.10-84ev8nya.mjs +2 -0
  109. package/dist/chunks/cli-1.1.10-85j5ems7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.10-8fgppw70.mjs +2 -0
  111. package/dist/chunks/cli-1.1.10-8vmgbrks.mjs +2 -0
  112. package/dist/chunks/cli-1.1.10-8xx1v7p2.mjs +2 -0
  113. package/dist/chunks/cli-1.1.10-910qbqn7.mjs +133 -0
  114. package/dist/chunks/cli-1.1.10-9jy4caft.mjs +2 -0
  115. package/dist/chunks/cli-1.1.10-9pxnk8yg.mjs +6 -0
  116. package/dist/chunks/cli-1.1.10-9q1p3zj2.mjs +2 -0
  117. package/dist/chunks/cli-1.1.10-9r8td4sp.mjs +2 -0
  118. package/dist/chunks/cli-1.1.10-a0ypafa6.mjs +2 -0
  119. package/dist/chunks/cli-1.1.10-a565mgy8.mjs +2 -0
  120. package/dist/chunks/cli-1.1.10-a7j4a04g.mjs +2 -0
  121. package/dist/chunks/cli-1.1.10-a8e8n1bk.mjs +2 -0
  122. package/dist/chunks/cli-1.1.10-aq5a8xs2.mjs +2 -0
  123. package/dist/chunks/cli-1.1.10-azskxdmb.mjs +2 -0
  124. package/dist/chunks/cli-1.1.10-b0b04nbj.mjs +2 -0
  125. package/dist/chunks/cli-1.1.10-b1hac494.mjs +2 -0
  126. package/dist/chunks/cli-1.1.10-b41dat7h.mjs +2 -0
  127. package/dist/chunks/cli-1.1.10-b6my5t3h.mjs +2 -0
  128. package/dist/chunks/cli-1.1.10-ba3fhh55.mjs +2 -0
  129. package/dist/chunks/cli-1.1.10-bpcmdnpg.mjs +2 -0
  130. package/dist/chunks/cli-1.1.10-bs5xjsav.mjs +39 -0
  131. package/dist/chunks/cli-1.1.10-c2wdnady.mjs +3 -0
  132. package/dist/chunks/cli-1.1.10-c3g5ab8n.mjs +2 -0
  133. package/dist/chunks/cli-1.1.10-c67v6p50.mjs +2 -0
  134. package/dist/chunks/cli-1.1.10-c77kxdjj.mjs +2 -0
  135. package/dist/chunks/cli-1.1.10-cbgx6hw2.mjs +9 -0
  136. package/dist/chunks/cli-1.1.10-cn0a8vwn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.10-ct81y4qh.mjs +4 -0
  138. package/dist/chunks/cli-1.1.10-cvxq4g91.mjs +2 -0
  139. package/dist/chunks/cli-1.1.10-cyv1wwen.mjs +3 -0
  140. package/dist/chunks/cli-1.1.10-d15qrtw2.mjs +2 -0
  141. package/dist/chunks/cli-1.1.10-d4ncq82f.mjs +8 -0
  142. package/dist/chunks/cli-1.1.10-dppcc1yx.mjs +6 -0
  143. package/dist/chunks/cli-1.1.10-dvxkr02c.mjs +2 -0
  144. package/dist/chunks/cli-1.1.10-e7wxspgz.mjs +4 -0
  145. package/dist/chunks/cli-1.1.10-e8zhf6q8.mjs +2 -0
  146. package/dist/chunks/cli-1.1.10-ecahzspx.mjs +2 -0
  147. package/dist/chunks/cli-1.1.10-effpqe7k.mjs +2 -0
  148. package/dist/chunks/cli-1.1.10-ejwjw031.mjs +6 -0
  149. package/dist/chunks/cli-1.1.10-eqscqpev.mjs +3 -0
  150. package/dist/chunks/cli-1.1.10-erh9bkn9.mjs +24 -0
  151. package/dist/chunks/cli-1.1.10-ex9enqps.mjs +2 -0
  152. package/dist/chunks/cli-1.1.10-f00rps59.mjs +2 -0
  153. package/dist/chunks/cli-1.1.10-f2zv6ggd.mjs +2 -0
  154. package/dist/chunks/cli-1.1.10-f7dqg4nd.mjs +2 -0
  155. package/dist/chunks/cli-1.1.10-f8q95jfw.mjs +2 -0
  156. package/dist/chunks/cli-1.1.10-f8znbdgf.mjs +4 -0
  157. package/dist/chunks/cli-1.1.10-fdxccf2v.mjs +3 -0
  158. package/dist/chunks/cli-1.1.10-fkqba8ty.mjs +58 -0
  159. package/dist/chunks/cli-1.1.10-fsq46r6j.mjs +2 -0
  160. package/dist/chunks/cli-1.1.10-fz99ag3y.mjs +2 -0
  161. package/dist/chunks/cli-1.1.10-gafedg04.mjs +2 -0
  162. package/dist/chunks/cli-1.1.10-gjdh1yvr.mjs +2 -0
  163. package/dist/chunks/cli-1.1.10-gnmyahda.mjs +7 -0
  164. package/dist/chunks/cli-1.1.10-gr69gke8.mjs +15 -0
  165. package/dist/chunks/cli-1.1.10-gydf5ktx.mjs +2 -0
  166. package/dist/chunks/cli-1.1.10-h0b2x5t4.mjs +2 -0
  167. package/dist/chunks/cli-1.1.10-h49727f7.mjs +3 -0
  168. package/dist/chunks/cli-1.1.10-h4m6563f.mjs +4 -0
  169. package/dist/chunks/cli-1.1.10-hdz1r66z.mjs +2 -0
  170. package/dist/chunks/cli-1.1.10-hg2m67ya.mjs +15 -0
  171. package/dist/chunks/cli-1.1.10-hhkgpzgz.mjs +2 -0
  172. package/dist/chunks/cli-1.1.10-hk2c91wp.mjs +5379 -0
  173. package/dist/chunks/cli-1.1.10-hr4ety9s.mjs +2 -0
  174. package/dist/chunks/cli-1.1.10-hs44pkht.mjs +2 -0
  175. package/dist/chunks/cli-1.1.10-hx9513je.mjs +2 -0
  176. package/dist/chunks/cli-1.1.10-j20txpzn.mjs +2 -0
  177. package/dist/chunks/cli-1.1.10-j4vg803f.mjs +25 -0
  178. package/dist/chunks/cli-1.1.10-jd00fn0g.mjs +34 -0
  179. package/dist/chunks/cli-1.1.10-jeaf93w2.mjs +2 -0
  180. package/dist/chunks/cli-1.1.10-jfmgqmt5.mjs +17 -0
  181. package/dist/chunks/cli-1.1.10-jfwqa1gq.mjs +3 -0
  182. package/dist/chunks/cli-1.1.10-jn6w68wj.mjs +6 -0
  183. package/dist/chunks/cli-1.1.10-jp5ga1mx.mjs +2 -0
  184. package/dist/chunks/cli-1.1.10-jrpxc13y.mjs +2 -0
  185. package/dist/chunks/cli-1.1.10-jyk734bb.mjs +2 -0
  186. package/dist/chunks/cli-1.1.10-k9q658g7.mjs +2 -0
  187. package/dist/chunks/cli-1.1.10-kdvf271d.mjs +4 -0
  188. package/dist/chunks/cli-1.1.10-kdxm85xx.mjs +20 -0
  189. package/dist/chunks/cli-1.1.10-kw60xwcx.mjs +3 -0
  190. package/dist/chunks/cli-1.1.10-kxqtg1q9.mjs +2 -0
  191. package/dist/chunks/cli-1.1.10-kzbg67rw.mjs +5 -0
  192. package/dist/chunks/cli-1.1.10-m0pdck7q.mjs +202 -0
  193. package/dist/chunks/cli-1.1.10-m0xgys17.mjs +2 -0
  194. package/dist/chunks/cli-1.1.10-m10z6jbs.mjs +4 -0
  195. package/dist/chunks/cli-1.1.10-m86zy5vy.mjs +2 -0
  196. package/dist/chunks/cli-1.1.10-mawng745.mjs +12 -0
  197. package/dist/chunks/cli-1.1.10-mdkc2azc.mjs +2 -0
  198. package/dist/chunks/cli-1.1.10-mnbek10k.mjs +2 -0
  199. package/dist/chunks/cli-1.1.10-msg7sda2.mjs +59 -0
  200. package/dist/chunks/cli-1.1.10-mx6xpamf.mjs +2 -0
  201. package/dist/chunks/cli-1.1.10-n8ed7a8a.mjs +4 -0
  202. package/dist/chunks/cli-1.1.10-nfpy32s8.mjs +66 -0
  203. package/dist/chunks/cli-1.1.10-njf3620e.mjs +2 -0
  204. package/dist/chunks/cli-1.1.10-np84s5kd.mjs +2 -0
  205. package/dist/chunks/cli-1.1.10-ntrb7636.mjs +3 -0
  206. package/dist/chunks/cli-1.1.10-p28vy0yz.mjs +2 -0
  207. package/dist/chunks/cli-1.1.10-pkyv2v8k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.10-ppft1w3p.mjs +2 -0
  209. package/dist/chunks/cli-1.1.10-psqaker4.mjs +2 -0
  210. package/dist/chunks/cli-1.1.10-pxdj0vvb.mjs +3 -0
  211. package/dist/chunks/cli-1.1.10-q2nbtgde.mjs +15 -0
  212. package/dist/chunks/cli-1.1.10-qh2qrbg9.mjs +2 -0
  213. package/dist/chunks/cli-1.1.10-qk19t6fd.mjs +2 -0
  214. package/dist/chunks/cli-1.1.10-qnswwjvv.mjs +4 -0
  215. package/dist/chunks/cli-1.1.10-qny1442k.mjs +2 -0
  216. package/dist/chunks/cli-1.1.10-qtkktme0.mjs +2 -0
  217. package/dist/chunks/cli-1.1.10-rgpghq5k.mjs +6 -0
  218. package/dist/chunks/cli-1.1.10-ryjne6pb.mjs +2 -0
  219. package/dist/chunks/cli-1.1.10-saacbyca.mjs +2 -0
  220. package/dist/chunks/cli-1.1.10-sbfv4gg3.mjs +2 -0
  221. package/dist/chunks/cli-1.1.10-sc2myky4.mjs +25 -0
  222. package/dist/chunks/cli-1.1.10-sdgrrb7v.mjs +2 -0
  223. package/dist/chunks/cli-1.1.10-sgrbnxr1.mjs +2 -0
  224. package/dist/chunks/cli-1.1.10-sv5wy20e.mjs +2 -0
  225. package/dist/chunks/cli-1.1.10-syrhp8d1.mjs +12 -0
  226. package/dist/chunks/cli-1.1.10-sz5x71xt.mjs +42 -0
  227. package/dist/chunks/cli-1.1.10-szjm5cs0.mjs +2 -0
  228. package/dist/chunks/cli-1.1.10-t0ypk4ke.mjs +2 -0
  229. package/dist/chunks/cli-1.1.10-t1vfqzsp.mjs +4 -0
  230. package/dist/chunks/cli-1.1.10-t3pn4ww9.mjs +2 -0
  231. package/dist/chunks/cli-1.1.10-t8n5jx0z.mjs +2 -0
  232. package/dist/chunks/cli-1.1.10-tntdtvhr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.10-tnymg33g.mjs +2 -0
  234. package/dist/chunks/cli-1.1.10-tqfkjw71.mjs +2 -0
  235. package/dist/chunks/cli-1.1.10-trsts9v3.mjs +2 -0
  236. package/dist/chunks/cli-1.1.10-tv3hs8t2.mjs +2 -0
  237. package/dist/chunks/cli-1.1.10-ty52w0t8.mjs +2 -0
  238. package/dist/chunks/cli-1.1.10-v4mtt7fd.mjs +2 -0
  239. package/dist/chunks/cli-1.1.10-v9q9ddhz.mjs +2 -0
  240. package/dist/chunks/cli-1.1.10-vr1kd1f6.mjs +1 -0
  241. package/dist/chunks/cli-1.1.10-w6tkqgvq.mjs +2 -0
  242. package/dist/chunks/cli-1.1.10-w7zqsk0a.mjs +2 -0
  243. package/dist/chunks/cli-1.1.10-wb8bcef1.mjs +2 -0
  244. package/dist/chunks/cli-1.1.10-wjc9jsjt.mjs +2 -0
  245. package/dist/chunks/cli-1.1.10-wjcgsn42.mjs +24 -0
  246. package/dist/chunks/cli-1.1.10-wkzbqdmr.mjs +2 -0
  247. package/dist/chunks/cli-1.1.10-wm2kd8d3.mjs +5 -0
  248. package/dist/chunks/cli-1.1.10-wqc9fp4g.mjs +18 -0
  249. package/dist/chunks/cli-1.1.10-x7s7dnjf.mjs +2 -0
  250. package/dist/chunks/cli-1.1.10-x83wfqf9.mjs +4 -0
  251. package/dist/chunks/cli-1.1.10-x8dpgrgj.mjs +2 -0
  252. package/dist/chunks/cli-1.1.10-y4afn758.mjs +2 -0
  253. package/dist/chunks/cli-1.1.10-y8334h0w.mjs +3 -0
  254. package/dist/chunks/cli-1.1.10-y95f28g5.mjs +2 -0
  255. package/dist/chunks/cli-1.1.10-yzpymdrc.mjs +16 -0
  256. package/dist/chunks/cli-1.1.10-z0ddrtr1.mjs +2 -0
  257. package/dist/chunks/cli-1.1.10-z0zzjeej.mjs +4 -0
  258. package/dist/chunks/cli-1.1.10-z1mewb4a.mjs +3 -0
  259. package/dist/chunks/cli-1.1.10-zaq3qp5f.mjs +12 -0
  260. package/dist/chunks/client-1.1.10-n6skmcnp.mjs +1 -0
  261. package/dist/chunks/color-1.1.10-xgpy38nc.mjs +1 -0
  262. package/dist/chunks/compact-1.1.10-ywm45c47.mjs +3 -0
  263. package/dist/chunks/config-1.1.10-070kwjeg.mjs +1 -0
  264. package/dist/chunks/config-1.1.10-bvmgcws9.mjs +1 -0
  265. package/dist/chunks/constants-1.1.10-bfbmy8wz.mjs +1 -0
  266. package/dist/chunks/context-1.1.10-hfeqyewx.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.10-ayept5ex.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.10-eqnmzmgt.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.10-rjwess9f.mjs +1 -0
  270. package/dist/chunks/copy-1.1.10-dvs7kz34.mjs +9 -0
  271. package/dist/chunks/cost-1.1.10-dk74vep1.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.10-dx93q1fp.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.10-m7x38yn5.mjs +1 -0
  274. package/dist/chunks/debug-1.1.10-14v3zx1d.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.10-qa7ksxxs.mjs +1526 -0
  276. package/dist/chunks/desktop-1.1.10-yexkfd86.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.10-71gvqxzs.mjs +1 -0
  278. package/dist/chunks/detection-1.1.10-ccdhhprp.mjs +1 -0
  279. package/dist/chunks/diff-1.1.10-m3gq5b6x.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.10-td2cwcvc.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.10-9c7dzt7n.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.10-hz3yh50c.mjs +1 -0
  283. package/dist/chunks/effort-1.1.10-19pz34nx.mjs +13 -0
  284. package/dist/chunks/engine-1.1.10-44xhf5x0.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.10-4xe76fe7.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.10-dg023dvr.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.10-wrrx6jm9.mjs +1 -0
  288. package/dist/chunks/environments-1.1.10-x9feeaeq.mjs +1 -0
  289. package/dist/chunks/errors-1.1.10-yhgdas17.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.10-t5sggm4m.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.10-rgt8yj28.mjs +1 -0
  292. package/dist/chunks/exit-1.1.10-f5jn3kgb.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.10-hex7p7et.mjs +1 -0
  294. package/dist/chunks/export-1.1.10-tqf9qfs4.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.10-2ess7s1c.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.10-rjjrh2xh.mjs +1 -0
  297. package/dist/chunks/fast-1.1.10-j2pmqx3f.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.10-ae5vhd02.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.10-909y3hrr.mjs +1 -0
  300. package/dist/chunks/git-1.1.10-0v4t8ap3.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.10-zfjn71v3.mjs +1 -0
  302. package/dist/chunks/goal-1.1.10-c1ngzwh9.mjs +4 -0
  303. package/dist/chunks/grove-1.1.10-1btbm4ss.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.10-jb56c9h4.mjs +1 -0
  305. package/dist/chunks/headless-1.1.10-ef38srvy.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.10-tp8h06gk.mjs +6 -0
  307. package/dist/chunks/help-1.1.10-d0kff6qz.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.10-dey6b4ns.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.10-76n26ek9.mjs +79 -0
  310. package/dist/chunks/hooks-1.1.10-ke0jh0zh.mjs +1 -0
  311. package/dist/chunks/ide-1.1.10-8dv11nsj.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.10-pdf041f5.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.10-qaypt5tq.mjs +1 -0
  314. package/dist/chunks/index-1.1.10-21s5496v.mjs +23 -0
  315. package/dist/chunks/index-1.1.10-2eg2nfya.mjs +5 -0
  316. package/dist/chunks/index-1.1.10-3cnyfq9h.mjs +2 -0
  317. package/dist/chunks/index-1.1.10-4t4pr0x3.mjs +1 -0
  318. package/dist/chunks/index-1.1.10-5ckjpq80.mjs +1 -0
  319. package/dist/chunks/index-1.1.10-5mechh5k.mjs +1 -0
  320. package/dist/chunks/index-1.1.10-7hmv8qcy.mjs +30 -0
  321. package/dist/chunks/index-1.1.10-9v096e06.mjs +1 -0
  322. package/dist/chunks/index-1.1.10-abgftsv6.mjs +1 -0
  323. package/dist/chunks/index-1.1.10-ckjn4w4s.mjs +1 -0
  324. package/dist/chunks/index-1.1.10-ctta1ge7.mjs +1 -0
  325. package/dist/chunks/index-1.1.10-d57z21y9.mjs +9 -0
  326. package/dist/chunks/index-1.1.10-fnhrat0c.mjs +1 -0
  327. package/dist/chunks/index-1.1.10-fw2aa53g.mjs +1 -0
  328. package/dist/chunks/index-1.1.10-p4xpsvnc.mjs +1 -0
  329. package/dist/chunks/index-1.1.10-qzkv1wgv.mjs +1 -0
  330. package/dist/chunks/index-1.1.10-vk9vb3b3.mjs +9 -0
  331. package/dist/chunks/index-1.1.10-vxy96cge.mjs +1 -0
  332. package/dist/chunks/index-1.1.10-wsc6cpqa.mjs +1 -0
  333. package/dist/chunks/index-1.1.10-yvr6d150.mjs +1 -0
  334. package/dist/chunks/index-1.1.10-ywef0hmk.mjs +1 -0
  335. package/dist/chunks/index-1.1.10-zj3yzybb.mjs +1 -0
  336. package/dist/chunks/index-1.1.10-znghd3d1.mjs +2 -0
  337. package/dist/chunks/init-1.1.10-vd74ec5b.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.10-sgkbmqqp.mjs +1 -0
  339. package/dist/chunks/ink-1.1.10-n9qcenb6.mjs +1 -0
  340. package/dist/chunks/insights-1.1.10-jfrnsmw1.mjs +870 -0
  341. package/dist/chunks/install-1.1.10-wxs00yc5.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.10-zxbkcqd1.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.10-tv0p6dq9.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.10-fxcjzzc0.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.10-f7cwwren.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.10-b8121c36.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.10-tmxkye8d.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.10-dtghtfgq.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.10-hh30mnyw.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.10-32f6reyc.mjs +1 -0
  351. package/dist/chunks/log-1.1.10-kvrqr31p.mjs +1 -0
  352. package/dist/chunks/main-1.1.10-fpywq82b.mjs +1 -0
  353. package/dist/chunks/managedEnv-1.1.10-0x8ncmb7.mjs +1 -0
  354. package/dist/chunks/mcp-1.1.10-0trfp77x.mjs +17 -0
  355. package/dist/chunks/mcp-1.1.10-j59azp3f.mjs +4 -0
  356. package/dist/chunks/mcp-1.1.10-tz7gvpxy.mjs +1 -0
  357. package/dist/chunks/mcpb-1.1.10-2ypk133j.mjs +1 -0
  358. package/dist/chunks/memory-1.1.10-hgcgdw39.mjs +72 -0
  359. package/dist/chunks/model-1.1.10-27ysny3w.mjs +1 -0
  360. package/dist/chunks/model-1.1.10-m4n7t06v.mjs +2 -0
  361. package/dist/chunks/node-1.1.10-gtb48qhp.mjs +12 -0
  362. package/dist/chunks/oauth-1.1.10-d6p06vbt.mjs +1 -0
  363. package/dist/chunks/openaiShim-1.1.10-e130485k.mjs +14 -0
  364. package/dist/chunks/output-style-1.1.10-mb75wr50.mjs +1 -0
  365. package/dist/chunks/package-L37ZVTF4-1.1.10-9a2hkd1x.mjs +1 -0
  366. package/dist/chunks/parseConnectUrl-1.1.10-h0c8png1.mjs +1 -0
  367. package/dist/chunks/parser-1.1.10-mw2brrzk.mjs +1 -0
  368. package/dist/chunks/passes-1.1.10-d8xzm3jv.mjs +1 -0
  369. package/dist/chunks/permissions-1.1.10-01fgr8vp.mjs +3 -0
  370. package/dist/chunks/permissions-1.1.10-jxhg9dnn.mjs +1 -0
  371. package/dist/chunks/plan-1.1.10-cqaej565.mjs +1 -0
  372. package/dist/chunks/plist-1.1.10-cssvr9wq.mjs +1 -0
  373. package/dist/chunks/plugin-1.1.10-zh92hjbn.mjs +29 -0
  374. package/dist/chunks/pluginStartupCheck-1.1.10-dk9bb5aj.mjs +1 -0
  375. package/dist/chunks/plugins-1.1.10-e40pek7s.mjs +9 -0
  376. package/dist/chunks/preActionHook-1.1.10-59kjxx2m.mjs +2 -0
  377. package/dist/chunks/print-1.1.10-exvxk5s6.mjs +57 -0
  378. package/dist/chunks/privacy-settings-1.1.10-4bdpnrms.mjs +1 -0
  379. package/dist/chunks/process-1.1.10-km5rbq9n.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.1.10-h4jmaj4v.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.1.10-r7k9bvny.mjs +9 -0
  382. package/dist/chunks/prompt-1.1.10-01smdx9v.mjs +1 -0
  383. package/dist/chunks/prompt-1.1.10-e7736a74.mjs +1 -0
  384. package/dist/chunks/prompts-1.1.10-xq2654jw.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.1.10-y0y188tv.mjs +13 -0
  386. package/dist/chunks/provider-1.1.10-6w0w7pgq.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.1.10-z18shscr.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.1.10-1dsjh7z9.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.1.10-fe3cq8zn.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.1.10-r3mc5gga.mjs +34 -0
  391. package/dist/chunks/registry-1.1.10-n9xv1qjw.mjs +1 -0
  392. package/dist/chunks/release-notes-1.1.10-2ecqsjx0.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.1.10-pb7wpz5e.mjs +2 -0
  394. package/dist/chunks/remote-env-1.1.10-tybykfn7.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.1.10-crdtgqbs.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.1.10-1egxb08k.mjs +1 -0
  397. package/dist/chunks/rename-1.1.10-0j2dbrfg.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.1.10-yf9vdp0m.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.1.10-y2ykrkt0.mjs +1 -0
  400. package/dist/chunks/resume-1.1.10-e4w4vqsa.mjs +2 -0
  401. package/dist/chunks/rewind-1.1.10-2sjz5jw8.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.1.10-5hysyde5.mjs +1 -0
  403. package/dist/chunks/runWorkflowHeadless-1.1.10-nengktmv.mjs +10 -0
  404. package/dist/chunks/sandbox-adapter-1.1.10-svdktpkg.mjs +1 -0
  405. package/dist/chunks/sandbox-toggle-1.1.10-q8da9hjz.mjs +1 -0
  406. package/dist/chunks/session-1.1.10-1g27gvqt.mjs +2 -0
  407. package/dist/chunks/sessionDiscovery-1.1.10-0hb3n5na.mjs +1 -0
  408. package/dist/chunks/sessionFileAccessHooks-1.1.10-z13dd76y.mjs +1 -0
  409. package/dist/chunks/sessionStorage-1.1.10-60nqzt83.mjs +1 -0
  410. package/dist/chunks/settings-1.1.10-95zpybsa.mjs +1 -0
  411. package/dist/chunks/setup-1.1.10-400hhq7t.mjs +5 -0
  412. package/dist/chunks/sinks-1.1.10-w9vqb1fc.mjs +1 -0
  413. package/dist/chunks/skills-1.1.10-4rvw7gjv.mjs +1 -0
  414. package/dist/chunks/startupProfiler-1.1.10-va3s727x.mjs +1 -0
  415. package/dist/chunks/startupUpdateCheck-1.1.10-en1qgfv4.mjs +1 -0
  416. package/dist/chunks/state-1.1.10-m7z4cc4k.mjs +1 -0
  417. package/dist/chunks/stats-1.1.10-zr2qwhhw.mjs +6 -0
  418. package/dist/chunks/status-1.1.10-shjkyaf2.mjs +1 -0
  419. package/dist/chunks/stickers-1.1.10-2q6r4f9v.mjs +1 -0
  420. package/dist/chunks/subprocessEnv-1.1.10-whznjthj.mjs +1 -0
  421. package/dist/chunks/tasks-1.1.10-xvxjn48w.mjs +1 -0
  422. package/dist/chunks/teamHelpers-1.1.10-3a06a8cd.mjs +1 -0
  423. package/dist/chunks/teammateModeSnapshot-1.1.10-yns217pf.mjs +1 -0
  424. package/dist/chunks/teleport-1.1.10-gc3e0hfm.mjs +1 -0
  425. package/dist/chunks/terminalSetup-1.1.10-4tqezn3j.mjs +1 -0
  426. package/dist/chunks/theme-1.1.10-qp7v8yaq.mjs +1 -0
  427. package/dist/chunks/thinkback-1.1.10-xyd2apjc.mjs +1 -0
  428. package/dist/chunks/thinkback-play-1.1.10-a5hhp9ca.mjs +1 -0
  429. package/dist/chunks/toolPool-1.1.10-n1hm8qqk.mjs +1 -0
  430. package/dist/chunks/toolSearch-1.1.10-29584y2q.mjs +1 -0
  431. package/dist/chunks/tools-1.1.10-yd9tmhpe.mjs +1 -0
  432. package/dist/chunks/trustedDevice-1.1.10-qs4pk9wc.mjs +1 -0
  433. package/dist/chunks/turndown.cjs-1.1.10-m0c9pvs3.mjs +69 -0
  434. package/dist/chunks/types-1.1.10-gz59ngmz.mjs +1 -0
  435. package/dist/chunks/ultrareviewCommand-1.1.10-8arx59cc.mjs +4 -0
  436. package/dist/chunks/update-1.1.10-1w823rha.mjs +72 -0
  437. package/dist/chunks/upgrade-1.1.10-0h5fvvfp.mjs +1 -0
  438. package/dist/chunks/upload-1.1.10-ge981abh.mjs +7 -0
  439. package/dist/chunks/upstreamproxy-1.1.10-80kjt167.mjs +14 -0
  440. package/dist/chunks/url-handler-napi-1.1.10-x60fj9h0.mjs +1 -0
  441. package/dist/chunks/usage-1.1.10-gxymk7vd.mjs +1 -0
  442. package/dist/chunks/util-1.1.10-s4sj88my.mjs +1 -0
  443. package/dist/chunks/utils-1.1.10-haynqk5y.mjs +1 -0
  444. package/dist/chunks/vim-1.1.10-6yhqt71v.mjs +1 -0
  445. package/dist/chunks/watchLoop-1.1.10-cg0f8n71.mjs +13 -0
  446. package/dist/chunks/watcher-1.1.10-y1qwkajd.mjs +1 -0
  447. package/dist/chunks/wiki-1.1.10-1djxp3tb.mjs +132 -0
  448. package/dist/chunks/workflows-1.1.10-brkbd7wc.mjs +1 -0
  449. package/dist/chunks/worktree-1.1.10-bn0ac41k.mjs +1 -0
  450. package/dist/chunks/worktreeModeEnabled-1.1.10-rhvwpn43.mjs +1 -0
  451. package/dist/chunks/wrapper-1.1.10-dthrwggp.mjs +7 -0
  452. package/dist/cli.mjs +2 -2
  453. package/package.json +9 -9
  454. package/dist/chunks/AgentTool-1.1.9-wkz9sjmc.mjs +0 -1
  455. package/dist/chunks/App-1.1.9-xgs7khyz.mjs +0 -1
  456. package/dist/chunks/ApproveApiKey-1.1.9-7gfmxnyz.mjs +0 -1
  457. package/dist/chunks/AssistantSessionChooser-1.1.9-pf08j23x.mjs +0 -1
  458. package/dist/chunks/AutoModeOptInDialog-1.1.9-4ze1tfxe.mjs +0 -1
  459. package/dist/chunks/BypassPermissionsModeDialog-1.1.9-ztaz7kpc.mjs +0 -1
  460. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.9-hzpy5qvh.mjs +0 -1
  461. package/dist/chunks/ConsoleOAuthFlow-1.1.9-ajjzhfrp.mjs +0 -1
  462. package/dist/chunks/DiffDialog-1.1.9-m3n0bamd.mjs +0 -7
  463. package/dist/chunks/Doctor-1.1.9-74y6nka7.mjs +0 -1
  464. package/dist/chunks/ExplorerDialog-1.1.9-9av1q0k2.mjs +0 -6
  465. package/dist/chunks/Grove-1.1.9-me7gmbqp.mjs +0 -1
  466. package/dist/chunks/ITermBackend-1.1.9-776dpey8.mjs +0 -1
  467. package/dist/chunks/InvalidConfigDialog-1.1.9-gzyybqqn.mjs +0 -1
  468. package/dist/chunks/InvalidSettingsDialog-1.1.9-e71y6pr4.mjs +0 -1
  469. package/dist/chunks/MigrationDialog-1.1.9-4bkckq3q.mjs +0 -1
  470. package/dist/chunks/Onboarding-1.1.9-d6c3hrvj.mjs +0 -1
  471. package/dist/chunks/ProviderManager-1.1.9-2dk7z5b6.mjs +0 -1
  472. package/dist/chunks/REPL-1.1.9-ds8mvm64.mjs +0 -1
  473. package/dist/chunks/ResumeConversation-1.1.9-2z1ye829.mjs +0 -1
  474. package/dist/chunks/SnapshotUpdateDialog-1.1.9-68k8x7yf.mjs +0 -1
  475. package/dist/chunks/TeleportProgress-1.1.9-anh2z73y.mjs +0 -1
  476. package/dist/chunks/TeleportRepoMismatchDialog-1.1.9-tedma9q3.mjs +0 -1
  477. package/dist/chunks/TeleportResumeWrapper-1.1.9-3n1b2vrf.mjs +0 -1
  478. package/dist/chunks/TmuxBackend-1.1.9-63awezwe.mjs +0 -9
  479. package/dist/chunks/ToolSearchTool-1.1.9-msa503cz.mjs +0 -1
  480. package/dist/chunks/TrustDialog-1.1.9-w058z417.mjs +0 -1
  481. package/dist/chunks/activeProvider-1.1.9-t27aw1nb.mjs +0 -1
  482. package/dist/chunks/add-dir-1.1.9-dxvbnrfa.mjs +0 -1
  483. package/dist/chunks/agentTypes-1.1.9-3kevh6af.mjs +0 -1
  484. package/dist/chunks/agents-1.1.9-eabf2wdc.mjs +0 -3
  485. package/dist/chunks/agents-1.1.9-nj93ac5m.mjs +0 -110
  486. package/dist/chunks/api-1.1.9-m1mrnd2p.mjs +0 -1
  487. package/dist/chunks/asciicast-1.1.9-d0kjtphm.mjs +0 -1
  488. package/dist/chunks/assistant-1.1.9-e3zkxz2m.mjs +0 -1
  489. package/dist/chunks/auth-1.1.9-8qm9p05y.mjs +0 -1
  490. package/dist/chunks/auth-1.1.9-gm4sybx1.mjs +0 -1
  491. package/dist/chunks/autoMode-1.1.9-p9fppced.mjs +0 -48
  492. package/dist/chunks/autoUpdater-1.1.9-m6etj2pr.mjs +0 -1
  493. package/dist/chunks/backgroundHousekeeping-1.1.9-4hvzygqr.mjs +0 -1
  494. package/dist/chunks/branch-1.1.9-wqszm8z2.mjs +0 -4
  495. package/dist/chunks/bridge-1.1.9-h886wtcd.mjs +0 -2
  496. package/dist/chunks/bridgeConfig-1.1.9-ehv4dp42.mjs +0 -1
  497. package/dist/chunks/bridgeEnabled-1.1.9-8qkc9feq.mjs +0 -1
  498. package/dist/chunks/bridgeMain-1.1.9-1sdw2z47.mjs +0 -88
  499. package/dist/chunks/bridgePointer-1.1.9-bvwdykpj.mjs +0 -1
  500. package/dist/chunks/btw-1.1.9-sm4j5bt8.mjs +0 -1
  501. package/dist/chunks/buddy-1.1.9-fesnzyh6.mjs +0 -3
  502. package/dist/chunks/cache-probe-1.1.9-6kzb7z5q.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.1.9-9j06fcrx.mjs +0 -4
  504. package/dist/chunks/caches-1.1.9-4g38wyxp.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.1.9-gd3bgkhe.mjs +0 -1
  506. package/dist/chunks/claudemd-1.1.9-7xr0h7qv.mjs +0 -1
  507. package/dist/chunks/clear-1.1.9-nadfsynk.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.1.9-48k9fftx.mjs +0 -1
  509. package/dist/chunks/cli-1.1.9-06k8vem7.mjs +0 -3
  510. package/dist/chunks/cli-1.1.9-0da4szeq.mjs +0 -2
  511. package/dist/chunks/cli-1.1.9-0dcyhvk3.mjs +0 -2
  512. package/dist/chunks/cli-1.1.9-0evqvwgb.mjs +0 -2
  513. package/dist/chunks/cli-1.1.9-0h7f33hw.mjs +0 -66
  514. package/dist/chunks/cli-1.1.9-0s7kmsaa.mjs +0 -6
  515. package/dist/chunks/cli-1.1.9-0w9c82qd.mjs +0 -2
  516. package/dist/chunks/cli-1.1.9-1932rbs7.mjs +0 -2
  517. package/dist/chunks/cli-1.1.9-1b1mw6v2.mjs +0 -6
  518. package/dist/chunks/cli-1.1.9-1ganj1qj.mjs +0 -1
  519. package/dist/chunks/cli-1.1.9-1gg4qe92.mjs +0 -4
  520. package/dist/chunks/cli-1.1.9-1q40zcz0.mjs +0 -2
  521. package/dist/chunks/cli-1.1.9-1ydmnrp6.mjs +0 -2
  522. package/dist/chunks/cli-1.1.9-223enqdr.mjs +0 -2
  523. package/dist/chunks/cli-1.1.9-22gp283h.mjs +0 -2
  524. package/dist/chunks/cli-1.1.9-260z6ry3.mjs +0 -3
  525. package/dist/chunks/cli-1.1.9-2t4pp98q.mjs +0 -133
  526. package/dist/chunks/cli-1.1.9-2wrs8key.mjs +0 -9
  527. package/dist/chunks/cli-1.1.9-2zeypqcv.mjs +0 -3
  528. package/dist/chunks/cli-1.1.9-3ajc04xt.mjs +0 -4
  529. package/dist/chunks/cli-1.1.9-3mgd7wkd.mjs +0 -20
  530. package/dist/chunks/cli-1.1.9-3nfhvvzw.mjs +0 -3
  531. package/dist/chunks/cli-1.1.9-3t9by3gn.mjs +0 -2
  532. package/dist/chunks/cli-1.1.9-4eqcxefk.mjs +0 -4
  533. package/dist/chunks/cli-1.1.9-4k5khbp0.mjs +0 -5
  534. package/dist/chunks/cli-1.1.9-4p8zymhf.mjs +0 -2
  535. package/dist/chunks/cli-1.1.9-4qctf8p1.mjs +0 -2
  536. package/dist/chunks/cli-1.1.9-4ygmyvas.mjs +0 -2
  537. package/dist/chunks/cli-1.1.9-4z0nxn7p.mjs +0 -3
  538. package/dist/chunks/cli-1.1.9-4z7ddbsc.mjs +0 -3
  539. package/dist/chunks/cli-1.1.9-573zndr8.mjs +0 -2
  540. package/dist/chunks/cli-1.1.9-5cr2dpgf.mjs +0 -2
  541. package/dist/chunks/cli-1.1.9-5hzaexj9.mjs +0 -2
  542. package/dist/chunks/cli-1.1.9-5v03p4xq.mjs +0 -2
  543. package/dist/chunks/cli-1.1.9-6a8pdm8s.mjs +0 -2
  544. package/dist/chunks/cli-1.1.9-6h5nwsn1.mjs +0 -18
  545. package/dist/chunks/cli-1.1.9-6kcc57kb.mjs +0 -42
  546. package/dist/chunks/cli-1.1.9-6mwsk9z2.mjs +0 -2
  547. package/dist/chunks/cli-1.1.9-6sv92w0b.mjs +0 -2
  548. package/dist/chunks/cli-1.1.9-79wdzxep.mjs +0 -4
  549. package/dist/chunks/cli-1.1.9-7y42yxmj.mjs +0 -2
  550. package/dist/chunks/cli-1.1.9-840ckwq8.mjs +0 -2
  551. package/dist/chunks/cli-1.1.9-890aswmq.mjs +0 -2
  552. package/dist/chunks/cli-1.1.9-8f0a6ved.mjs +0 -2
  553. package/dist/chunks/cli-1.1.9-8gkjdbxs.mjs +0 -202
  554. package/dist/chunks/cli-1.1.9-8gypdqm2.mjs +0 -2
  555. package/dist/chunks/cli-1.1.9-8sktt26v.mjs +0 -2
  556. package/dist/chunks/cli-1.1.9-8vfhjyxn.mjs +0 -2
  557. package/dist/chunks/cli-1.1.9-8xy2498p.mjs +0 -2
  558. package/dist/chunks/cli-1.1.9-8zhwfv3p.mjs +0 -2
  559. package/dist/chunks/cli-1.1.9-914mh2gv.mjs +0 -16
  560. package/dist/chunks/cli-1.1.9-97jvvqrz.mjs +0 -2
  561. package/dist/chunks/cli-1.1.9-98ypzgj0.mjs +0 -25
  562. package/dist/chunks/cli-1.1.9-9bqrz8qn.mjs +0 -2
  563. package/dist/chunks/cli-1.1.9-9f1te59e.mjs +0 -2
  564. package/dist/chunks/cli-1.1.9-9t7xx2r9.mjs +0 -2
  565. package/dist/chunks/cli-1.1.9-9yrwnzf6.mjs +0 -2
  566. package/dist/chunks/cli-1.1.9-a4c57zxm.mjs +0 -21
  567. package/dist/chunks/cli-1.1.9-a5z84t63.mjs +0 -2
  568. package/dist/chunks/cli-1.1.9-a6yyaw1d.mjs +0 -2
  569. package/dist/chunks/cli-1.1.9-a7x6qt7v.mjs +0 -6
  570. package/dist/chunks/cli-1.1.9-agbzpv77.mjs +0 -2
  571. package/dist/chunks/cli-1.1.9-ajr585mm.mjs +0 -4
  572. package/dist/chunks/cli-1.1.9-aqbj20gg.mjs +0 -2
  573. package/dist/chunks/cli-1.1.9-atdcgnab.mjs +0 -2
  574. package/dist/chunks/cli-1.1.9-atge24ab.mjs +0 -2
  575. package/dist/chunks/cli-1.1.9-ax8tkq65.mjs +0 -2
  576. package/dist/chunks/cli-1.1.9-b353901w.mjs +0 -2
  577. package/dist/chunks/cli-1.1.9-b78c2fws.mjs +0 -8
  578. package/dist/chunks/cli-1.1.9-b9ykbj6y.mjs +0 -17
  579. package/dist/chunks/cli-1.1.9-bc22evty.mjs +0 -2
  580. package/dist/chunks/cli-1.1.9-bftwnbgn.mjs +0 -5390
  581. package/dist/chunks/cli-1.1.9-bfyz4xjz.mjs +0 -2
  582. package/dist/chunks/cli-1.1.9-bwhdpxw6.mjs +0 -12
  583. package/dist/chunks/cli-1.1.9-c27gt3w1.mjs +0 -2
  584. package/dist/chunks/cli-1.1.9-c5wsttrd.mjs +0 -2
  585. package/dist/chunks/cli-1.1.9-c6nqtzv9.mjs +0 -2
  586. package/dist/chunks/cli-1.1.9-ckr5mgw1.mjs +0 -25
  587. package/dist/chunks/cli-1.1.9-ct1yqfqn.mjs +0 -2
  588. package/dist/chunks/cli-1.1.9-cwtcnyyj.mjs +0 -2
  589. package/dist/chunks/cli-1.1.9-d9wz5g8s.mjs +0 -2
  590. package/dist/chunks/cli-1.1.9-de902mzz.mjs +0 -2
  591. package/dist/chunks/cli-1.1.9-dh5213n0.mjs +0 -2
  592. package/dist/chunks/cli-1.1.9-dxt1d7jm.mjs +0 -2
  593. package/dist/chunks/cli-1.1.9-e0bejpfk.mjs +0 -2
  594. package/dist/chunks/cli-1.1.9-e1ak8jhn.mjs +0 -12
  595. package/dist/chunks/cli-1.1.9-e2ny87k0.mjs +0 -15
  596. package/dist/chunks/cli-1.1.9-e4jhw8xj.mjs +0 -2
  597. package/dist/chunks/cli-1.1.9-e5xq1msp.mjs +0 -58
  598. package/dist/chunks/cli-1.1.9-e6x7cyw4.mjs +0 -2
  599. package/dist/chunks/cli-1.1.9-egv4z3tf.mjs +0 -2
  600. package/dist/chunks/cli-1.1.9-ena9w4sg.mjs +0 -24
  601. package/dist/chunks/cli-1.1.9-etmwe3pd.mjs +0 -2
  602. package/dist/chunks/cli-1.1.9-ewst4gvt.mjs +0 -2
  603. package/dist/chunks/cli-1.1.9-ezkc7ag5.mjs +0 -2
  604. package/dist/chunks/cli-1.1.9-fcqz89mq.mjs +0 -2
  605. package/dist/chunks/cli-1.1.9-fdzgypr3.mjs +0 -3
  606. package/dist/chunks/cli-1.1.9-fqk44arm.mjs +0 -45
  607. package/dist/chunks/cli-1.1.9-frwdaeyw.mjs +0 -2
  608. package/dist/chunks/cli-1.1.9-fxyfgpjj.mjs +0 -2
  609. package/dist/chunks/cli-1.1.9-fy9kv0hx.mjs +0 -2
  610. package/dist/chunks/cli-1.1.9-fygnj03b.mjs +0 -2
  611. package/dist/chunks/cli-1.1.9-fzh3d8n1.mjs +0 -2
  612. package/dist/chunks/cli-1.1.9-ga16e8rd.mjs +0 -3
  613. package/dist/chunks/cli-1.1.9-gbtz45hn.mjs +0 -3
  614. package/dist/chunks/cli-1.1.9-gmb2wpqf.mjs +0 -2
  615. package/dist/chunks/cli-1.1.9-grhcdmgm.mjs +0 -2
  616. package/dist/chunks/cli-1.1.9-gttthtg1.mjs +0 -2
  617. package/dist/chunks/cli-1.1.9-gv5x5e8a.mjs +0 -2
  618. package/dist/chunks/cli-1.1.9-h45gam34.mjs +0 -2
  619. package/dist/chunks/cli-1.1.9-h66p9ghw.mjs +0 -2
  620. package/dist/chunks/cli-1.1.9-hq4kcpxc.mjs +0 -2
  621. package/dist/chunks/cli-1.1.9-j1bj4zfy.mjs +0 -2
  622. package/dist/chunks/cli-1.1.9-jah1vcdm.mjs +0 -2
  623. package/dist/chunks/cli-1.1.9-jaq6r6ba.mjs +0 -2
  624. package/dist/chunks/cli-1.1.9-jfyv5vb1.mjs +0 -7
  625. package/dist/chunks/cli-1.1.9-jmwr69v2.mjs +0 -2
  626. package/dist/chunks/cli-1.1.9-jn9kh16z.mjs +0 -39
  627. package/dist/chunks/cli-1.1.9-jqs0ktme.mjs +0 -2
  628. package/dist/chunks/cli-1.1.9-jqz75k6h.mjs +0 -4
  629. package/dist/chunks/cli-1.1.9-k0b62q76.mjs +0 -2
  630. package/dist/chunks/cli-1.1.9-k3tzdef2.mjs +0 -50
  631. package/dist/chunks/cli-1.1.9-k4gthvh4.mjs +0 -4
  632. package/dist/chunks/cli-1.1.9-k8kz8k9t.mjs +0 -2
  633. package/dist/chunks/cli-1.1.9-k9bbqwgs.mjs +0 -2
  634. package/dist/chunks/cli-1.1.9-kaxffmz4.mjs +0 -2
  635. package/dist/chunks/cli-1.1.9-kdavw6zm.mjs +0 -2
  636. package/dist/chunks/cli-1.1.9-kdgc8zvn.mjs +0 -24
  637. package/dist/chunks/cli-1.1.9-kdpv38ab.mjs +0 -2
  638. package/dist/chunks/cli-1.1.9-kgtexer1.mjs +0 -2
  639. package/dist/chunks/cli-1.1.9-khhnt4hq.mjs +0 -2
  640. package/dist/chunks/cli-1.1.9-khskdxps.mjs +0 -6
  641. package/dist/chunks/cli-1.1.9-kvk6ba28.mjs +0 -2
  642. package/dist/chunks/cli-1.1.9-kyn85fwa.mjs +0 -15
  643. package/dist/chunks/cli-1.1.9-kzqqvms6.mjs +0 -34
  644. package/dist/chunks/cli-1.1.9-m2x94hxw.mjs +0 -5
  645. package/dist/chunks/cli-1.1.9-md4ratv1.mjs +0 -4
  646. package/dist/chunks/cli-1.1.9-mdd84pmt.mjs +0 -2
  647. package/dist/chunks/cli-1.1.9-mgm6zdpx.mjs +0 -2
  648. package/dist/chunks/cli-1.1.9-mk4nfh2a.mjs +0 -2
  649. package/dist/chunks/cli-1.1.9-mp2pqq66.mjs +0 -24
  650. package/dist/chunks/cli-1.1.9-mt1mshmr.mjs +0 -2
  651. package/dist/chunks/cli-1.1.9-mw0y14ny.mjs +0 -133
  652. package/dist/chunks/cli-1.1.9-mz91g55f.mjs +0 -4
  653. package/dist/chunks/cli-1.1.9-n2qz0enm.mjs +0 -2
  654. package/dist/chunks/cli-1.1.9-n886v2tr.mjs +0 -2
  655. package/dist/chunks/cli-1.1.9-nacg7asv.mjs +0 -2
  656. package/dist/chunks/cli-1.1.9-nadf4arq.mjs +0 -2
  657. package/dist/chunks/cli-1.1.9-nbdn95s0.mjs +0 -2
  658. package/dist/chunks/cli-1.1.9-nbtds7y5.mjs +0 -2
  659. package/dist/chunks/cli-1.1.9-p24jbscq.mjs +0 -2
  660. package/dist/chunks/cli-1.1.9-pdcfc5y5.mjs +0 -3
  661. package/dist/chunks/cli-1.1.9-pjfvmwr9.mjs +0 -2
  662. package/dist/chunks/cli-1.1.9-ppnsbsqg.mjs +0 -2
  663. package/dist/chunks/cli-1.1.9-pr2kkmf8.mjs +0 -15
  664. package/dist/chunks/cli-1.1.9-pxbfakmz.mjs +0 -2
  665. package/dist/chunks/cli-1.1.9-qc93tafw.mjs +0 -2
  666. package/dist/chunks/cli-1.1.9-qr51aqsa.mjs +0 -2
  667. package/dist/chunks/cli-1.1.9-r5gk3nve.mjs +0 -2
  668. package/dist/chunks/cli-1.1.9-r7g33857.mjs +0 -2
  669. package/dist/chunks/cli-1.1.9-r7gng5fx.mjs +0 -2
  670. package/dist/chunks/cli-1.1.9-rawga9ty.mjs +0 -2
  671. package/dist/chunks/cli-1.1.9-rh6wjwvg.mjs +0 -2
  672. package/dist/chunks/cli-1.1.9-rjztj1ez.mjs +0 -9
  673. package/dist/chunks/cli-1.1.9-rmd68sfp.mjs +0 -2
  674. package/dist/chunks/cli-1.1.9-rvmgrj4q.mjs +0 -2
  675. package/dist/chunks/cli-1.1.9-s52npgq0.mjs +0 -2
  676. package/dist/chunks/cli-1.1.9-s5b8svr6.mjs +0 -3
  677. package/dist/chunks/cli-1.1.9-sbmesghv.mjs +0 -2
  678. package/dist/chunks/cli-1.1.9-se5tezpj.mjs +0 -3
  679. package/dist/chunks/cli-1.1.9-spn11xgr.mjs +0 -2
  680. package/dist/chunks/cli-1.1.9-sqfgvaz9.mjs +0 -2
  681. package/dist/chunks/cli-1.1.9-sxsgvz9x.mjs +0 -2
  682. package/dist/chunks/cli-1.1.9-tcx9qwzz.mjs +0 -18
  683. package/dist/chunks/cli-1.1.9-tt85wfyx.mjs +0 -2
  684. package/dist/chunks/cli-1.1.9-txs7wza6.mjs +0 -59
  685. package/dist/chunks/cli-1.1.9-tze0002b.mjs +0 -4
  686. package/dist/chunks/cli-1.1.9-v4hh4r8g.mjs +0 -2
  687. package/dist/chunks/cli-1.1.9-v6dh85e0.mjs +0 -4
  688. package/dist/chunks/cli-1.1.9-vhsgp7b5.mjs +0 -2
  689. package/dist/chunks/cli-1.1.9-vmggmsba.mjs +0 -2
  690. package/dist/chunks/cli-1.1.9-w3xqbxyp.mjs +0 -2
  691. package/dist/chunks/cli-1.1.9-w462299v.mjs +0 -3
  692. package/dist/chunks/cli-1.1.9-w4yjadk7.mjs +0 -2
  693. package/dist/chunks/cli-1.1.9-wg00txsx.mjs +0 -2
  694. package/dist/chunks/cli-1.1.9-wscqghf9.mjs +0 -2
  695. package/dist/chunks/cli-1.1.9-wsqhh56s.mjs +0 -2
  696. package/dist/chunks/cli-1.1.9-wx0fgtgp.mjs +0 -3
  697. package/dist/chunks/cli-1.1.9-wydc25pa.mjs +0 -2
  698. package/dist/chunks/cli-1.1.9-x1ame9j0.mjs +0 -2
  699. package/dist/chunks/cli-1.1.9-x9jz46tx.mjs +0 -2
  700. package/dist/chunks/cli-1.1.9-xa48sv5y.mjs +0 -6
  701. package/dist/chunks/cli-1.1.9-xccq68bp.mjs +0 -2
  702. package/dist/chunks/cli-1.1.9-xmqye6j6.mjs +0 -2
  703. package/dist/chunks/cli-1.1.9-xn1fx31s.mjs +0 -2
  704. package/dist/chunks/cli-1.1.9-xxwf95xq.mjs +0 -17
  705. package/dist/chunks/cli-1.1.9-ygp7jfm9.mjs +0 -2
  706. package/dist/chunks/cli-1.1.9-ytgc0me8.mjs +0 -2
  707. package/dist/chunks/cli-1.1.9-yw9403an.mjs +0 -24
  708. package/dist/chunks/cli-1.1.9-z0wenj5y.mjs +0 -6
  709. package/dist/chunks/cli-1.1.9-zhyjqy1b.mjs +0 -2
  710. package/dist/chunks/cli-1.1.9-zp9cpxw5.mjs +0 -12
  711. package/dist/chunks/cli-1.1.9-zv6e4k6z.mjs +0 -2
  712. package/dist/chunks/cli-1.1.9-zy71vgyg.mjs +0 -2
  713. package/dist/chunks/client-1.1.9-ew20apkg.mjs +0 -1
  714. package/dist/chunks/color-1.1.9-r9fb3e7k.mjs +0 -1
  715. package/dist/chunks/compact-1.1.9-ea493ntb.mjs +0 -3
  716. package/dist/chunks/config-1.1.9-6fxf7dj2.mjs +0 -1
  717. package/dist/chunks/config-1.1.9-snnk2z79.mjs +0 -1
  718. package/dist/chunks/constants-1.1.9-adx0a3k9.mjs +0 -1
  719. package/dist/chunks/context-1.1.9-nxs61bmq.mjs +0 -1
  720. package/dist/chunks/context-noninteractive-1.1.9-cppfq9pr.mjs +0 -1
  721. package/dist/chunks/conversation-1.1.9-3x6s0c83.mjs +0 -1
  722. package/dist/chunks/copilotHeaders-1.1.9-vvy4jfh7.mjs +0 -1
  723. package/dist/chunks/copy-1.1.9-sx84nhzr.mjs +0 -9
  724. package/dist/chunks/cost-1.1.9-msc3677c.mjs +0 -1
  725. package/dist/chunks/createSSHSession-1.1.9-cpa9c11q.mjs +0 -1
  726. package/dist/chunks/createSession-1.1.9-kapv4jes.mjs +0 -1
  727. package/dist/chunks/debug-1.1.9-h57648ft.mjs +0 -1
  728. package/dist/chunks/defaultActionDeps-1.1.9-j6kdarmk.mjs +0 -1526
  729. package/dist/chunks/desktop-1.1.9-4z5p38ma.mjs +0 -1
  730. package/dist/chunks/detectRepository-1.1.9-9c8ws2cg.mjs +0 -1
  731. package/dist/chunks/detection-1.1.9-2vb502cf.mjs +0 -1
  732. package/dist/chunks/diff-1.1.9-8m7str6k.mjs +0 -1
  733. package/dist/chunks/doctor-1.1.9-0f6jzgas.mjs +0 -1
  734. package/dist/chunks/doctorDiagnostic-1.1.9-w983dv1c.mjs +0 -1
  735. package/dist/chunks/earlyInput-1.1.9-c047s7qm.mjs +0 -1
  736. package/dist/chunks/effort-1.1.9-5qnffzr4.mjs +0 -13
  737. package/dist/chunks/engine-1.1.9-5jjj151c.mjs +0 -1
  738. package/dist/chunks/envLessBridgeConfig-1.1.9-jex25t6e.mjs +0 -1
  739. package/dist/chunks/envUtils-1.1.9-krdbmbwa.mjs +0 -1
  740. package/dist/chunks/environmentSelection-1.1.9-nbbgerx3.mjs +0 -1
  741. package/dist/chunks/environments-1.1.9-1t7bdxn2.mjs +0 -1
  742. package/dist/chunks/errors-1.1.9-e3vc9p8s.mjs +0 -1
  743. package/dist/chunks/exampleCommands-1.1.9-xazstg5e.mjs +0 -1
  744. package/dist/chunks/execFileNoThrow-1.1.9-c14n54h8.mjs +0 -1
  745. package/dist/chunks/exit-1.1.9-r4x4th0b.mjs +0 -1
  746. package/dist/chunks/explorer-1.1.9-wdzp1dsf.mjs +0 -1
  747. package/dist/chunks/export-1.1.9-0zmn3m1m.mjs +0 -2
  748. package/dist/chunks/extra-usage-1.1.9-v3cypezj.mjs +0 -1
  749. package/dist/chunks/extra-usage-noninteractive-1.1.9-1b722pj8.mjs +0 -1
  750. package/dist/chunks/fast-1.1.9-ys3bnnx1.mjs +0 -1
  751. package/dist/chunks/feedback-1.1.9-xtbxr07t.mjs +0 -14
  752. package/dist/chunks/firstPartyEventLogger-1.1.9-anc9n41n.mjs +0 -1
  753. package/dist/chunks/git-1.1.9-9dmxfhs7.mjs +0 -1
  754. package/dist/chunks/githubModelsCredentials-1.1.9-tyw52d6k.mjs +0 -1
  755. package/dist/chunks/goal-1.1.9-64kdsaz8.mjs +0 -4
  756. package/dist/chunks/grove-1.1.9-feqpprte.mjs +0 -1
  757. package/dist/chunks/growthbook-1.1.9-5haradn1.mjs +0 -1
  758. package/dist/chunks/headless-1.1.9-x413dfed.mjs +0 -2
  759. package/dist/chunks/heapdump-1.1.9-z0mn192y.mjs +0 -6
  760. package/dist/chunks/help-1.1.9-fsng3h1g.mjs +0 -1
  761. package/dist/chunks/hookChains-1.1.9-h0b5hx6z.mjs +0 -3
  762. package/dist/chunks/hooks-1.1.9-gsjxxhxg.mjs +0 -79
  763. package/dist/chunks/hooks-1.1.9-hhydka88.mjs +0 -1
  764. package/dist/chunks/ide-1.1.9-ke6a38yk.mjs +0 -3
  765. package/dist/chunks/image-processor-napi-1.1.9-0cf7sh4j.mjs +0 -1
  766. package/dist/chunks/inboundAttachments-1.1.9-j5vez7jv.mjs +0 -1
  767. package/dist/chunks/index-1.1.9-1cqvjp5p.mjs +0 -1
  768. package/dist/chunks/index-1.1.9-1pambxgy.mjs +0 -1
  769. package/dist/chunks/index-1.1.9-2gb6syse.mjs +0 -1
  770. package/dist/chunks/index-1.1.9-2sk8q3x9.mjs +0 -30
  771. package/dist/chunks/index-1.1.9-3wevfp37.mjs +0 -1
  772. package/dist/chunks/index-1.1.9-3xm5j58t.mjs +0 -1
  773. package/dist/chunks/index-1.1.9-66dcm0v8.mjs +0 -1
  774. package/dist/chunks/index-1.1.9-6skqhhzf.mjs +0 -1
  775. package/dist/chunks/index-1.1.9-97yrmssd.mjs +0 -1
  776. package/dist/chunks/index-1.1.9-a0nf5r6f.mjs +0 -1
  777. package/dist/chunks/index-1.1.9-a6c1xz4e.mjs +0 -2
  778. package/dist/chunks/index-1.1.9-ad1rhnqp.mjs +0 -9
  779. package/dist/chunks/index-1.1.9-bw0cax5s.mjs +0 -2
  780. package/dist/chunks/index-1.1.9-h341k1xk.mjs +0 -1
  781. package/dist/chunks/index-1.1.9-jneayavn.mjs +0 -23
  782. package/dist/chunks/index-1.1.9-nc3014dy.mjs +0 -1
  783. package/dist/chunks/index-1.1.9-r1qk4xvr.mjs +0 -1
  784. package/dist/chunks/index-1.1.9-sfyz5cb7.mjs +0 -9
  785. package/dist/chunks/index-1.1.9-sg4e7zkb.mjs +0 -5
  786. package/dist/chunks/index-1.1.9-wkj78xgk.mjs +0 -1
  787. package/dist/chunks/index-1.1.9-wqjwb4zm.mjs +0 -1
  788. package/dist/chunks/index-1.1.9-x3yr70wm.mjs +0 -1
  789. package/dist/chunks/index-1.1.9-yznkq9s3.mjs +0 -1
  790. package/dist/chunks/init-1.1.9-0pss5n1w.mjs +0 -1
  791. package/dist/chunks/initReplBridge-1.1.9-xn4x74kj.mjs +0 -1
  792. package/dist/chunks/ink-1.1.9-zwhy78y6.mjs +0 -1
  793. package/dist/chunks/insights-1.1.9-hgpde32q.mjs +0 -870
  794. package/dist/chunks/install-1.1.9-34x0hj9y.mjs +0 -1
  795. package/dist/chunks/install-github-app-1.1.9-9sw6tr8d.mjs +0 -149
  796. package/dist/chunks/install-slack-app-1.1.9-sddcp9xd.mjs +0 -1
  797. package/dist/chunks/instrumentation-1.1.9-b52jmsm9.mjs +0 -1
  798. package/dist/chunks/interactiveHelpers-1.1.9-9d7d8js5.mjs +0 -1
  799. package/dist/chunks/keybindings-1.1.9-8amnba42.mjs +0 -2
  800. package/dist/chunks/knowledge-1.1.9-kz84fs8v.mjs +0 -2
  801. package/dist/chunks/latestVersionCache-1.1.9-d4kwr00h.mjs +0 -1
  802. package/dist/chunks/loadAgentsDir-1.1.9-smk51q1t.mjs +0 -1
  803. package/dist/chunks/loadPluginHooks-1.1.9-a8ny49aa.mjs +0 -1
  804. package/dist/chunks/log-1.1.9-e9py7g1v.mjs +0 -1
  805. package/dist/chunks/main-1.1.9-vx43js6g.mjs +0 -1
  806. package/dist/chunks/managedEnv-1.1.9-zdhg1zfw.mjs +0 -1
  807. package/dist/chunks/mcp-1.1.9-66xztk7e.mjs +0 -4
  808. package/dist/chunks/mcp-1.1.9-6q4s5vpd.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.9-sgvnwe73.mjs +0 -17
  810. package/dist/chunks/mcpb-1.1.9-67ew9jzm.mjs +0 -1
  811. package/dist/chunks/memory-1.1.9-d580fc8g.mjs +0 -72
  812. package/dist/chunks/model-1.1.9-n7gjmzqe.mjs +0 -2
  813. package/dist/chunks/model-1.1.9-r24h6ebx.mjs +0 -1
  814. package/dist/chunks/node-1.1.9-kx2wx79w.mjs +0 -12
  815. package/dist/chunks/oauth-1.1.9-mb03cbrk.mjs +0 -1
  816. package/dist/chunks/openaiShim-1.1.9-7n9g3sj8.mjs +0 -14
  817. package/dist/chunks/output-style-1.1.9-eb07k735.mjs +0 -1
  818. package/dist/chunks/package-L37ZVTF4-1.1.9-s5ve90jq.mjs +0 -1
  819. package/dist/chunks/parseConnectUrl-1.1.9-zdgekp41.mjs +0 -1
  820. package/dist/chunks/parser-1.1.9-v7w400w6.mjs +0 -1
  821. package/dist/chunks/passes-1.1.9-eq2gaejx.mjs +0 -1
  822. package/dist/chunks/permissions-1.1.9-e410dndk.mjs +0 -1
  823. package/dist/chunks/permissions-1.1.9-qdtk36nc.mjs +0 -3
  824. package/dist/chunks/plan-1.1.9-fz63v9vy.mjs +0 -1
  825. package/dist/chunks/plist-1.1.9-vvf1dmeh.mjs +0 -1
  826. package/dist/chunks/plugin-1.1.9-5wgxw7e5.mjs +0 -29
  827. package/dist/chunks/pluginStartupCheck-1.1.9-wsqp215d.mjs +0 -1
  828. package/dist/chunks/plugins-1.1.9-gn7vrvsn.mjs +0 -9
  829. package/dist/chunks/preActionHook-1.1.9-hk5p06zk.mjs +0 -2
  830. package/dist/chunks/print-1.1.9-ccqx25s0.mjs +0 -57
  831. package/dist/chunks/privacy-settings-1.1.9-53703vc6.mjs +0 -1
  832. package/dist/chunks/process-1.1.9-6e5jfgee.mjs +0 -1
  833. package/dist/chunks/processBashCommand-1.1.9-q27mqh31.mjs +0 -1
  834. package/dist/chunks/processSlashCommand-1.1.9-pmx45pst.mjs +0 -9
  835. package/dist/chunks/prompt-1.1.9-2374kg79.mjs +0 -1
  836. package/dist/chunks/prompt-1.1.9-rmzk76ja.mjs +0 -1
  837. package/dist/chunks/prompts-1.1.9-vw2cgjmn.mjs +0 -1
  838. package/dist/chunks/protocolHandler-1.1.9-5qy2tmvh.mjs +0 -13
  839. package/dist/chunks/provider-1.1.9-a55a0767.mjs +0 -2
  840. package/dist/chunks/providerProfiles-1.1.9-0qf6737w.mjs +0 -1
  841. package/dist/chunks/providerValidation-1.1.9-xy0peh3y.mjs +0 -6
  842. package/dist/chunks/rate-limit-options-1.1.9-3mv4vcm2.mjs +0 -1
  843. package/dist/chunks/registerSubcommands-1.1.9-xwrrc93y.mjs +0 -34
  844. package/dist/chunks/registry-1.1.9-nhs76azt.mjs +0 -1
  845. package/dist/chunks/release-notes-1.1.9-evdvm41n.mjs +0 -5
  846. package/dist/chunks/reload-plugins-1.1.9-nsan544v.mjs +0 -2
  847. package/dist/chunks/remote-env-1.1.9-wqd0jdhv.mjs +0 -1
  848. package/dist/chunks/remoteBridgeCore-1.1.9-epxhjpaw.mjs +0 -1
  849. package/dist/chunks/remoteSession-1.1.9-80pvqseg.mjs +0 -1
  850. package/dist/chunks/rename-1.1.9-t6q4frnz.mjs +0 -1
  851. package/dist/chunks/replBridgeHandle-1.1.9-fhcz3nmf.mjs +0 -1
  852. package/dist/chunks/replLauncher-1.1.9-k6bt66pp.mjs +0 -1
  853. package/dist/chunks/resume-1.1.9-f8pqevkb.mjs +0 -2
  854. package/dist/chunks/rewind-1.1.9-mqnvjgnw.mjs +0 -1
  855. package/dist/chunks/rootOptions-1.1.9-hm3xq5ew.mjs +0 -1
  856. package/dist/chunks/runWorkflowHeadless-1.1.9-yzzt2wgy.mjs +0 -10
  857. package/dist/chunks/sandbox-adapter-1.1.9-djbmdqmh.mjs +0 -1
  858. package/dist/chunks/sandbox-toggle-1.1.9-ca1f9nar.mjs +0 -1
  859. package/dist/chunks/session-1.1.9-1h4w7jv2.mjs +0 -2
  860. package/dist/chunks/sessionDiscovery-1.1.9-4xav26hz.mjs +0 -1
  861. package/dist/chunks/sessionFileAccessHooks-1.1.9-76sy9frv.mjs +0 -1
  862. package/dist/chunks/sessionStorage-1.1.9-054r3b21.mjs +0 -1
  863. package/dist/chunks/settings-1.1.9-6xnvy3wf.mjs +0 -1
  864. package/dist/chunks/setup-1.1.9-ryytyyyq.mjs +0 -5
  865. package/dist/chunks/sinks-1.1.9-1tmn5q67.mjs +0 -1
  866. package/dist/chunks/skills-1.1.9-21b3ema9.mjs +0 -1
  867. package/dist/chunks/startupProfiler-1.1.9-4cynjbh6.mjs +0 -1
  868. package/dist/chunks/startupUpdateCheck-1.1.9-0zeaaev8.mjs +0 -1
  869. package/dist/chunks/state-1.1.9-4vnhh3s5.mjs +0 -1
  870. package/dist/chunks/stats-1.1.9-n37acpyb.mjs +0 -6
  871. package/dist/chunks/status-1.1.9-e7fgh9na.mjs +0 -1
  872. package/dist/chunks/stickers-1.1.9-vpzantjb.mjs +0 -1
  873. package/dist/chunks/subprocessEnv-1.1.9-qja4apm2.mjs +0 -1
  874. package/dist/chunks/tasks-1.1.9-xvrvpcpf.mjs +0 -1
  875. package/dist/chunks/teamHelpers-1.1.9-kc45263x.mjs +0 -1
  876. package/dist/chunks/teammateModeSnapshot-1.1.9-5jf6f8yz.mjs +0 -1
  877. package/dist/chunks/teleport-1.1.9-f1mzkj3j.mjs +0 -1
  878. package/dist/chunks/terminalSetup-1.1.9-7xczc9pg.mjs +0 -1
  879. package/dist/chunks/theme-1.1.9-xnntw39r.mjs +0 -1
  880. package/dist/chunks/thinkback-1.1.9-2agv1je1.mjs +0 -1
  881. package/dist/chunks/thinkback-play-1.1.9-0f61agae.mjs +0 -1
  882. package/dist/chunks/toolPool-1.1.9-x4dvej7a.mjs +0 -1
  883. package/dist/chunks/toolSearch-1.1.9-2n3qz8m6.mjs +0 -1
  884. package/dist/chunks/tools-1.1.9-2st9wxya.mjs +0 -1
  885. package/dist/chunks/trustedDevice-1.1.9-24j13chh.mjs +0 -1
  886. package/dist/chunks/turndown.cjs-1.1.9-6a2bdbmc.mjs +0 -69
  887. package/dist/chunks/types-1.1.9-hx767c40.mjs +0 -1
  888. package/dist/chunks/ultrareviewCommand-1.1.9-1d65a9qv.mjs +0 -4
  889. package/dist/chunks/update-1.1.9-2qs71qk6.mjs +0 -72
  890. package/dist/chunks/upgrade-1.1.9-4m89wfqh.mjs +0 -1
  891. package/dist/chunks/upload-1.1.9-141vg13j.mjs +0 -7
  892. package/dist/chunks/upstreamproxy-1.1.9-1hh4dkwb.mjs +0 -14
  893. package/dist/chunks/url-handler-napi-1.1.9-awan17cf.mjs +0 -1
  894. package/dist/chunks/usage-1.1.9-3e6gg2kg.mjs +0 -1
  895. package/dist/chunks/util-1.1.9-jy80stt8.mjs +0 -1
  896. package/dist/chunks/utils-1.1.9-k4q7cea1.mjs +0 -1
  897. package/dist/chunks/vim-1.1.9-s13xmm4h.mjs +0 -1
  898. package/dist/chunks/watchLoop-1.1.9-cbww8p0b.mjs +0 -13
  899. package/dist/chunks/watcher-1.1.9-2mym56cs.mjs +0 -1
  900. package/dist/chunks/wiki-1.1.9-yyjrhwn4.mjs +0 -132
  901. package/dist/chunks/workflows-1.1.9-4jccerzk.mjs +0 -1
  902. package/dist/chunks/worktree-1.1.9-fq2ry5d2.mjs +0 -1
  903. package/dist/chunks/worktreeModeEnabled-1.1.9-42k3m5c3.mjs +0 -1
  904. package/dist/chunks/wrapper-1.1.9-8kjvkg3x.mjs +0 -7
  905. /package/dist/chunks/{cli-1.1.9-gpmbky2h.mjs → cli-1.1.10-436vz31m.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.1.9-q384fwfa.mjs → cli-1.1.10-99ep1sr9.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.1.9-jew2xd4p.mjs → cli-1.1.10-cgan8hpz.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.9-b3za9cts.mjs → cli-1.1.10-fnvz77rd.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.9-fws7k6ak.mjs → cli-1.1.10-gmf5w0a4.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.9-bk3tqt6v.mjs → cli-1.1.10-wvw85hk5.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.9-s66nvzb4.mjs → cli-1.1.10-xkq6mdj6.mjs} +0 -0
@@ -0,0 +1,21 @@
1
+ import{cS as F,ds as O,es as Z,hk as L,kK as X,wE as V,xE as $}from"./cli-1.1.10-hk2c91wp.mjs";import{Ysa as Y}from"./cli-1.1.10-gmf5w0a4.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 Mh,b as Nh,C as Oh};
@@ -0,0 +1,45 @@
1
+ import{Ge as BY,He as Bz}from"./cli-1.1.10-zaq3qp5f.mjs";import{Gg as qY,Hg as qz}from"./cli-1.1.10-ppft1w3p.mjs";import{jh as $Y,kh as yz,lh as cY,mh as mz}from"./cli-1.1.10-qh2qrbg9.mjs";import{CK as GY,HK as Gz,HT as V0,LP as iY,OP as XJ,PP as GZ,QP as X0,Sn as UJ,Tn as UY,Un as AJ,Vn as XY,Wn as NJ,Xn as VY,bQ as rY,cQ as Lz,eI as hY,eT as nY,fI as Tz,hG as uY,iG as wz,ls as Zz,ms as KK,rG as B0,sG as MY,sP as gY,tu as eY,uu as JK}from"./cli-1.1.10-hk2c91wp.mjs";import{BY as KY,EY as SY,FY as jz,LY as pY,MY as Fz,lY as _Y,mY as Az,zY as $J}from"./cli-1.1.10-qk19t6fd.mjs";import{BZ as f0,E0 as bY,F1 as U0,KZ as LY,RZ as IY,SZ as Rz,V0 as fY,X0 as Ez,_0 as b,a1 as N,u1 as xY}from"./cli-1.1.10-msg7sda2.mjs";import{i4 as U,j4 as m,k4 as bJ}from"./cli-1.1.10-t8n5jx0z.mjs";import{l4 as b0}from"./cli-1.1.10-c67v6p50.mjs";import{I6 as tY,k7 as ez}from"./cli-1.1.10-yzpymdrc.mjs";import{p9 as $0,q9 as Cz}from"./cli-1.1.10-dppcc1yx.mjs";import{Ega as fJ,Hga as l0,K$ as Mz,Pga as mY,paa as r0,raa as tz,s$ as yY}from"./cli-1.1.10-m0pdck7q.mjs";import{Uga as S0,Vga as Hz,Xga as G0,gha as zY,hha as c0,kha as I0}from"./cli-1.1.10-kdvf271d.mjs";import{Jja as $,Mja as Nz}from"./cli-1.1.10-fz99ag3y.mjs";import{Mka as CJ,Pka as oz,qka as oY,uka as sz}from"./cli-1.1.10-jn6w68wj.mjs";import{kra as TY,lna as wY,rna as H0}from"./cli-1.1.10-f00rps59.mjs";import{Usa as UZ,Ysa as XZ}from"./cli-1.1.10-gmf5w0a4.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let jJ;if(J[30]!==l||J[31]!==M)jJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=jJ;else jJ=J[32];return jJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,jJ=vz,c=Wz,BJ=C??jJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var AY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function dY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${dY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=lY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=iY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,jJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},OZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:A,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(A),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>jJ(Y)),rY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!A){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==A){let z=A.toLowerCase();Y=EZ.filter((q)=>{let j=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return j.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=A,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,AZ,jZ;if(J[42]!==YJ||J[43]!==yJ)AZ=()=>{},jZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=AZ,J[45]=jZ;else AZ=J[44],jZ=J[45];R.default.useEffect(AZ,jZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let j of mJ.results)if(j.searchableText){let x=Sz(j.searchableText,YJ,_z);if(x)pJ.set(j.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let j;if(J[60]!==z)j=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=j;else j=J[61];let x=mJ.results.map(pz).filter(j);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[j,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${j}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
+ ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${j}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
+ ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${j}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
+ ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,j)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=dY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
+ ${K0}`:LJ+EJ,dimDescription:!0,value:j.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let j=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return j?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("tengu_session_search_toggled",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("tengu_session_search_toggled",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==A)fZ=async()=>{A.trim();return},J[94]=K,J[95]=O,J[96]=A,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==A)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==A||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=A,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==A)_Z=[A,V],J[102]=V,J[103]=A,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let A0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let j0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("tengu_agentic_search_cancelled",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==A||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)A.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("tengu_session_tag_filter_changed",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,j=Y.toLowerCase();if(j==="a"&&z.ctrl&&W)W(),$("tengu_session_all_projects_toggled",{enabled:!C});else if(j==="b"&&z.ctrl){let x=!c;BJ(x),$("tengu_session_branch_filter_toggled",{enabled:x})}else if(j==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("tengu_session_worktree_filter_toggled",{enabled:x})}else if(j==="/"&&q)h("search"),$("tengu_session_search_toggled",{enabled:!0});else if(j==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("tengu_session_rename_started",{});else if(j==="v"&&z.ctrl&&I)k(I),h("preview"),$("tengu_session_preview_opened",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("tengu_session_search_toggled",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=A,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==A||J[179]!==m0)sJ=U($Y,{query:A,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=A,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==A)YZ=Boolean(A.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=A,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==A0||J[211]!==R0||J[212]!==j0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:j0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("tengu_session_group_expanded",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let j=new Set(q);return j.delete(z),j})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:A0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=A0,J[211]=R0,J[212]=j0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(AJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(gY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,jY),...Z.messages.slice(-jY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var lY,R,Iz=2,bz=4,fz=2000,jY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();jz();mz();Az();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();AY();bJ();lY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
+ ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
+ `)}
8
+
9
+ Search query: "${Z}"
10
+
11
+ Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
+
13
+ You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
+
15
+ Each session may include:
16
+ - Title (display name or custom title)
17
+ - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
+ - Branch (git branch name, shown as [branch: name])
19
+ - Summary (AI-generated summary)
20
+ - First message (beginning of the conversation)
21
+ - Transcript (excerpt of conversation content)
22
+
23
+ IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
+
25
+ For each session, consider (in order of priority):
26
+ 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
+ 2. Partial tag matches or tag-related terms
28
+ 3. Title matches (custom titles or first message content)
29
+ 4. Branch name matches
30
+ 5. Summary and transcript content matches
31
+ 6. Semantic similarity and related concepts
32
+
33
+ CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
+ - Contain the query term anywhere in any field
35
+ - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
+ - Discuss topics that could be related to the query
37
+ - Have transcripts that mention the concept even in passing
38
+
39
+ When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
+
41
+ Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
+
43
+ Respond with ONLY the JSON object, no markdown formatting:
44
+ {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
+ export{YU as qe,az as re,QU as se,zK as te,WU as ue,UK as ve};
@@ -0,0 +1,2 @@
1
+ import{sd as t,td as DJ}from"./cli-1.1.10-ex9enqps.mjs";import{Wh as s,Xh as jJ}from"./cli-1.1.10-fkqba8ty.mjs";import{$l as _J,Cj as g,DF as a,EF as LJ,Em as UJ,HT as bJ,LD as ZJ,Ln as JJ,Yl as p,cH as r,cS as h,dE as PJ,eE as xJ,gH as IJ,hH as l,iH as TJ,jE as o,kE as yJ,mm as m,oz as f,pz as wJ,rm as BJ,tO as $J,ym as d,yx as XJ}from"./cli-1.1.10-hk2c91wp.mjs";import{AV as c,LV as MJ,zV as u}from"./cli-1.1.10-sv5wy20e.mjs";import{k7 as YJ}from"./cli-1.1.10-yzpymdrc.mjs";import{Hga as _,Oda as j,Pga as k,Wda as D,Xda as zJ,raa as KJ,yga as A,zga as NJ}from"./cli-1.1.10-m0pdck7q.mjs";import{Zha as GJ}from"./cli-1.1.10-dvxkr02c.mjs";import{Jja as b,Mja as S}from"./cli-1.1.10-fz99ag3y.mjs";import{Cka as VJ,Mka as I,Pka as WJ,uka as qJ,yka as W}from"./cli-1.1.10-jn6w68wj.mjs";import{rla as e}from"./cli-1.1.10-e7wxspgz.mjs";import{Hla as QJ,ula as B}from"./cli-1.1.10-49bvng33.mjs";import{bpa as R,kra as C,soa as H}from"./cli-1.1.10-f00rps59.mjs";import{Vsa as SJ}from"./cli-1.1.10-gmf5w0a4.mjs";yJ();jJ();C();GJ();S();KJ();h();YJ();qJ();$J();JJ();k();e();h();XJ();ZJ();function P(){}C();S();NJ();WJ();QJ();VJ();wJ();k();LJ();BJ();bJ();TJ();MJ();zJ();UJ();_J();import{join as Q}from"path";var AJ=30;function N(){let q=((j()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function n(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(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 x(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await W().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Z){_(Z)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")_(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await x(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Z=K.filter((Y)=>Y.isDirectory()&&Y.name.startsWith("mcp-logs-")).map((Y)=>Q($,Y.name));for(let Y of Z)G=n(G,await x(Y,J,!0)),await V(Y,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")_(K)}return G}async function U(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function RJ(){let X=N(),J={messages:0,errors:0},q=g(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Z=Q(q,K.name),Y;try{Y=await $.readdir(Z)}catch{J.errors++;continue}for(let z of Y)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await U(Q(Z,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Q(Z,z.name),M=Q(L,d),v;try{v=await $.readdir(M)}catch{await V(L,$);continue}for(let w of v)if(w.isFile())try{if(await U(Q(M,w.name),X,$))J.messages++}catch{J.errors++}else if(w.isDirectory()){let T=Q(M,w.name),O;try{O=await $.readdir(T)}catch{continue}for(let E of O){if(!E.isFile())continue;try{if(await U(Q(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(M,$),await V(L,$)}await V(Z,$)}return J}async function y(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Z;try{Z=await K.readdir(X)}catch{return G}for(let Y of Z){if(!Y.isFile()||!Y.name.endsWith(J))continue;try{if(await U(Q(X,Y.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function vJ(){let X=m(),J=await y(X,".md"),q=Q(B(),"plans");if(q!==X){let $=await y(q,".md");return n(J,$)}return J}async function OJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));await Promise.all(Z.map(async(Y)=>{try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){_($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));for(let Y of Z)try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){_($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Q(B(),"tasks"),G=c(u()),K;try{K=await q.readdir($)}catch{return J}for(let Z of K){if(!Z.isDirectory()||Z.name===G)continue;let Y=Q($,Z.name);try{if(await hJ(Y,q)<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){_($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Q(X,G.name));if(K>q)q=K}catch{}}return q}async function CJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Q(B(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await U(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function i(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){I("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await RJ(),await vJ(),await OJ(),await EJ(),await kJ(),await CJ(),await f(),await a(N());let J=await p(N());if(J>0)b("tengu_worktree_cleanup",{removed:J})}IJ();DJ();var gJ=(xJ(),SJ(PJ));var F=600000;function dX(){s(),P(),gJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}if(X)X=!1,await i();if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}await r()}setTimeout(J,F).unref()}
2
+ export{dX as ka};
@@ -0,0 +1,17 @@
1
+ import{I7 as x,O7 as K}from"./cli-1.1.10-yzpymdrc.mjs";import{Oda as w,Xda as J}from"./cli-1.1.10-m0pdck7q.mjs";import{Nha as v,Zha as I}from"./cli-1.1.10-dvxkr02c.mjs";import{Hla as G,xla as q}from"./cli-1.1.10-49bvng33.mjs";import{Ysa as z}from"./cli-1.1.10-gmf5w0a4.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as _U,k as $U,N as aV,X as bV,Z as cV,$ as dV,B as eV,D as fV,F as gV,O as hV};
@@ -0,0 +1,2 @@
1
+ import{$n as k,_n as g,rG as h,tG as I}from"./cli-1.1.10-hk2c91wp.mjs";import{BZ as S,F1 as _,a1 as s}from"./cli-1.1.10-msg7sda2.mjs";import{i4 as c,j4 as m,k4 as T}from"./cli-1.1.10-t8n5jx0z.mjs";import{Lea as b,hfa as P}from"./cli-1.1.10-m0pdck7q.mjs";import{Usa as D}from"./cli-1.1.10-gmf5w0a4.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
+ export{E as aa};
@@ -0,0 +1,2 @@
1
+ import{Fd as x,Gd as o}from"./cli-1.1.10-f2zv6ggd.mjs";import{CM as W,FM as t,Su as Z,Yu as v,eA as K,fp as Y,gA as m,hD as M,hp as g,kL as O,lL as a,nD as l,sz as $,tz as d,wL as R,xz as y,zL as i,zz as u}from"./cli-1.1.10-hk2c91wp.mjs";import{Hga as X,Pga as h}from"./cli-1.1.10-m0pdck7q.mjs";import{Mka as I,Pka as c}from"./cli-1.1.10-jn6w68wj.mjs";import{kla as V,rla as f}from"./cli-1.1.10-e7wxspgz.mjs";import{kra as _,rna as U}from"./cli-1.1.10-f00rps59.mjs";import{Ysa as C}from"./cli-1.1.10-gmf5w0a4.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
2
+ export{Lj as Bd,p as Cd};
@@ -0,0 +1,2 @@
1
+ import{Oea as P,hfa as y}from"./cli-1.1.10-m0pdck7q.mjs";import{Ysa as U}from"./cli-1.1.10-gmf5w0a4.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ export{G as iX,M as jX,N as kX,Y as lX,C as mX,_ as nX,R as oX,f as pX,E as qX,I as rX,k as sX,A as tX,b as uX,h as vX,m as wX,p as xX,u as yX,T as zX,e as AX,W as BX,a as CX,s as DX,r as EX,g as FX};
@@ -0,0 +1,2 @@
1
+ import{Ysa as y}from"./cli-1.1.10-gmf5w0a4.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
+ export{N as V2,P as W2,M as X2,C as Y2,I as Z2,L as _2,w as $2,T as a3,R as b3,b as c3,g as d3,l as e3,k as f3};
@@ -0,0 +1,50 @@
1
+ import{xc as zc,yc as on}from"./cli-1.1.10-wjc9jsjt.mjs";import{Ac as jt,Bc as Vt,Cc as Oc,Ec as jn,zc as Vh}from"./cli-1.1.10-jrpxc13y.mjs";import{Fc as ft,Ic as Dn}from"./cli-1.1.10-wb8bcef1.mjs";import{$p as pu,IG as bu,JG as ln,KG as Ou,LG as zu,MG as Ru,Mp as Mu,NG as rn,Np as Tu,Op as Uu,Pp as Eu,Qp as nc,Rp as Ct,Sp as Xh,Tp as Pu,Up as Bu,Vp as Ln,Wp as Nh,Yp as ou,Zp as ac,ay as bc,cq as ku,cy as Pn,dq as An,eI as eh,eq as Lu,fI as jc,fq as Qu,gq as Nu,hG as Xt,hI as In,hq as Ju,iG as sh,iI as xn,iq as at,jq as Ah,jx as Cc,kq as gn,kx as lc,lq as Jh,lx as rc,mx as wc,nq as Gu,nx as En,oq as mc,pr as yc,qq as Su,qr as Un,rG as S,sG as Dc,tG as Bn}from"./cli-1.1.10-hk2c91wp.mjs";import{BY as Mn,NY as uc,OY as Tn,zY as D}from"./cli-1.1.10-qk19t6fd.mjs";import{F1 as Eh,_0 as F,a1 as y}from"./cli-1.1.10-msg7sda2.mjs";import{G2 as Ph,H2 as Bh,I2 as Ih,J2 as xh,K2 as Dh,L2 as xc,O2 as jh,S2 as oh,T2 as cc,U2 as ph}from"./cli-1.1.10-5hrs5rqr.mjs";import{h4 as yt,i4 as n,j4 as z,k4 as Tt}from"./cli-1.1.10-t8n5jx0z.mjs";import{l4 as Qt}from"./cli-1.1.10-c67v6p50.mjs";import{K4 as Pt,L4 as qu}from"./cli-1.1.10-453rs0bh.mjs";import{$4 as Uh,T6 as Dt,b5 as Ic,k7 as Wn}from"./cli-1.1.10-yzpymdrc.mjs";import{$fa as pt,Bfa as kh,Ffa as Th,Kfa as Oh,Lfa as yu,Mfa as Cu,Nfa as Ut,Ofa as zh,Pfa as lu,Qfa as bh,Rfa as ru,Sfa as wu,Tfa as Cn,Ufa as Lh,Vfa as gu,Wfa as Qh,Yfa as Xu,_fa as hc,ifa as tc,jfa as $t,kfa as Hn,lfa as ot,mfa as x,ofa as B,pfa as xt,pga as Kn,rfa as Jt,sfa as Fh,tfa as ut,ufa as ct,v_ as qt,w_ as Sn,yfa as nt,zfa as _h}from"./cli-1.1.10-m0pdck7q.mjs";import{Hla as Et,zla as o}from"./cli-1.1.10-49bvng33.mjs";import{Usa as Lt,Vsa as Gn,Ysa as I}from"./cli-1.1.10-gmf5w0a4.mjs";function pc(t,h=Ch,u){let a=x().find((w)=>w.provider==="openai"&&w.extras?.githubToken!==void 0);if(a){if(!ct(a.id,{provider:"openai",name:a.name,baseUrl:u||a.baseUrl,model:a.model||h,apiKey:t,extras:{...a.extras,githubToken:t}}))return{mode:"failed"};return nt(a.id),{mode:"updated"}}if(!ut({provider:"openai",name:"GitHub Copilot",baseUrl:u||oc,model:h,apiKey:t,extras:{githubToken:t}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function vh({onDone:t,onBack:h,onChangeAPIKey:u}){let a=jh()?.trim()?"already-authed":"menu",[C,w]=j.useState(a),[f,A]=j.useState(null),[$,R]=j.useState(""),[X,J]=j.useState(0),[Q,H]=j.useState(null),V=j.useCallback(async(i,Z=Ch,mt,N)=>{let P=oh(i,mt,N?.enterpriseDomain);if(!P.success){A(P.warning??"Could not save token to secure storage."),w("error");return}if(pc(i,Z,N?.baseUrl).mode==="failed"){A("Could not save the GitHub Copilot provider profile."),w("error");return}Uh(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),O=j.useCallback(async(i)=>{w("device-busy"),A(null),H(null);try{let Z=await Bh({domain:i});H({user_code:Z.user_code,verification_uri:Z.verification_uri}),await xh(Z.verification_uri);let mt=await Ih(Z.device_code,{initialInterval:Z.interval,timeoutSeconds:Z.expires_in,domain:i}),N=await Dh(mt,{domain:i});await V(N.token,Ch,mt,{baseUrl:N.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:i})}catch(Z){A(Z instanceof Error?Z.message:String(Z)),w("error")}},[V]);if(C==="already-authed")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot"}),n(y,{children:"You are already signed in to GitHub Copilot."}),n(y,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),n(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"back"}],onChange:(Z)=>{if(Z==="sign-in-again"){O();return}if(Z==="enterprise"){w("enterprise-domain");return}if(h){h();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="enterprise-domain")return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Enterprise sign-in"}),n(y,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:">"}),n(Xt,{value:$,onChange:R,onSubmit:()=>{let Z=Ph($);if(!Z){O();return}O(Z)},onExit:()=>w(a),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:X,onChangeCursorOffset:J})]}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(C==="error"&&f)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"red",children:f}),n(S,{options:[{label:h?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(Z)=>{if(Z==="back"){if(h){h();return}w("menu"),A(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(C==="device-busy")return z(F,{flexDirection:"column",gap:1,children:[n(y,{children:"GitHub Copilot sign-in"}),Q?z(yt,{children:[z(y,{children:["Enter code ",n(y,{bold:!0,children:Q.user_code})," at"," ",Q.verification_uri]}),n(y,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):n(y,{dimColor:!0,children:"Requesting device code from GitHub..."}),n(eh,{})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{bold:!0,children:"GitHub Copilot setup"}),n(y,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),n(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:h?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(i)=>{if(i==="cancel"){if(h){h();return}t("GitHub onboard cancelled",{display:"system"});return}if(i==="enterprise"){w("enterprise-domain");return}O()}})]})}var j,Ch="github:copilot",oc="https://api.githubcopilot.com";var tu=I(()=>{Dc();jc();sh();Eh();xc();ph();Ic();Th();Tt();j=Lt(Qt(),1)});function uu(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function Nt(t,h){return h.some((u)=>t.includes(u))}function tn(t){return!Nt(uu(t),hu)}function hn(t){return t.find(tn)??null}function lh(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function un(t){return(t.quantizationLevel??t.name).toLowerCase()}function cn(t,h,u){if(t===null)return u.push("unknown size"),0;if(h==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(h==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function nn(t,h,u){let a=un(t);if(a.includes("q4"))return u.push("efficient Q4 quantization"),h==="latency"?8:4;if(a.includes("q5"))return u.push("balanced Q5 quantization"),h==="latency"?6:5;if(a.includes("q8"))return u.push("higher quality Q8 quantization"),h==="latency"?2:5;return 0}function an(t,h,u){if(h.score!==t.score)return h.score-t.score;let a=lh(t)??Number.POSITIVE_INFINITY,C=lh(h)??Number.POSITIVE_INFINITY;if(u==="latency")return a-C;if(u==="coding")return C-a;let w=14;return Math.abs(a-w)-Math.abs(C-w)}function rh(t,h){return t.map((u)=>{let a=uu(u),C=[],w=0;if(Nt(a,hu))w-=40,C.push("not a chat-first model");if(Nt(a,sc))w+=h==="coding"?24:h==="balanced"?10:4,C.push("coding-oriented model family");if(Nt(a,ec))w+=h==="latency"?4:h==="coding"?6:8,C.push("strong general-purpose model family");if(Nt(a,vc))w+=h==="latency"?2:6,C.push("chat/instruct tuned");if(a.includes("vision")||a.includes("vl"))w-=2,C.push("vision model adds extra overhead");w+=cn(lh(u),h,C),w+=nn(u,h,C);let f=C.slice(0,3).join(", ");return{...u,score:w,reasons:C,summary:f}}).sort((u,a)=>an(u,a,h))}function cu(t,h){return hn(rh(t,h))}var sc,ec,vc,hu;var nu=I(()=>{sc=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],ec=["llama","qwen","mistral","gemma","phi","deepseek"],vc=["instruct","chat","assistant"],hu=["embed","embedding","rerank","bge","whisper"]});function yn(t){let h=t.toLowerCase();return mn.some((u)=>h.includes(u))}function wh(t){try{let h=new URL(t);if(h.username)h.username="redacted";if(h.password)h.password="redacted";for(let u of h.searchParams.keys())if(yn(u))h.searchParams.set(u,"redacted");return h.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var mn;var au=I(()=>{mn=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function wn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URL(`${Oh}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",zh()),u.searchParams.append("redirect_uri",h),u.searchParams.append("scope",yu),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Cu),u.toString()}function bn(){return`<!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>Codex Login Complete</title>
6
+ <style>
7
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
8
+ h1 { margin: 0 0 12px; font-size: 22px; }
9
+ p { margin: 0 0 10px; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>Codex login complete</h1>
14
+ <p>You can return to Claudin now.</p>
15
+ <p>Claudin will finish activating your new Codex OAuth login.</p>
16
+ </body>
17
+ </html>`}function On(t){return`<!doctype html>
18
+ <html lang="en">
19
+ <head>
20
+ <meta charset="utf-8" />
21
+ <title>Codex Login Failed</title>
22
+ <style>
23
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
24
+ h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
25
+ p { margin: 0 0 10px; }
26
+ </style>
27
+ </head>
28
+ <body>
29
+ <h1>Codex login failed</h1>
30
+ <p>${ru(t)}</p>
31
+ <p>You can close this window and try again in Claudin.</p>
32
+ </body>
33
+ </html>`}function mu(){return`<!doctype html>
34
+ <html lang="en">
35
+ <head>
36
+ <meta charset="utf-8" />
37
+ <title>Codex Login Cancelled</title>
38
+ <style>
39
+ body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
40
+ h1 { margin: 0 0 12px; font-size: 22px; }
41
+ p { margin: 0 0 10px; }
42
+ </style>
43
+ </head>
44
+ <body>
45
+ <h1>Codex login cancelled</h1>
46
+ <p>You can close this window and retry in Claudin.</p>
47
+ </body>
48
+ </html>`}async function zn(t){let h=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:h,client_id:zh(),code_verifier:t.codeVerifier}),a=await fetch(`${Oh}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!a.ok){let R=await a.text().catch(()=>"");throw Error(R.trim()?`Codex OAuth token exchange failed (${a.status}): ${R.trim()}`:`Codex OAuth token exchange failed with status ${a.status}.`)}let C=await a.json(),w=Ut(C.access_token),f=Ut(C.refresh_token);if(!w||!f)throw Error("Codex OAuth completed, but the token response was missing credentials.");let A=Ut(C.id_token);return{apiKey:A?await wu(A).catch(()=>{return}):void 0,accessToken:w,refreshToken:f,idToken:A,accountId:bh(A)??bh(w)}}class Rh{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let h=Ou(),u=lu(),a=new bu("/auth/callback");this.authCodeListener=a,this.port=null;try{let C=await a.start(u);this.port=C;let w=Ru(),f=await zu(h),A=wn({port:C,codeChallenge:f,state:w});try{let $=await a.waitForAuthorization(w,async()=>{await t(A)}),R=new AbortController;this.tokenExchangeAbortController=R;let X;try{X=await zn({authorizationCode:$,codeVerifier:h,port:C,signal:R.signal})}finally{if(this.tokenExchangeAbortController===R)this.tokenExchangeAbortController=null}if(this.authCodeListener!==a)throw this.buildCancellationError();return a.handleSuccessRedirect([],(J)=>{J.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),J.end(bn())}),X}catch($){let R=this.authCodeListener===a?$:this.buildCancellationError();if(a.hasPendingResponse()){let X=R instanceof Error&&R.message==="Codex OAuth flow was cancelled.";a.handleErrorRedirect((J)=>{J.writeHead(X?200:400,{"Content-Type":"text/html; charset=utf-8"}),J.end(X?mu():On(R instanceof Error?R.message:String(R)))})}throw R}finally{this.cleanup()}}catch(C){let w=C instanceof Error?C.message:String(C);if(w.includes("EADDRINUSE")||w.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw C}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((h)=>{h.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),h.end(mu())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var Au=I(()=>{ln();rn();Cn()});function Rn(){return new Rh}function $u(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Rn,a=t.deps?.openBrowser??Pt,C=t.deps?.saveCodexCredentials??gu,w=t.deps?.isBareMode??o,[f,A]=Bt.useState({state:"starting"});return Bt.useEffect(()=>{if(w()){A({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startOAuthFlow(async(X)=>{if($)return;A({state:"waiting",authUrl:X,browserOpened:null});let J=await a(X);if($)return;A({state:"waiting",authUrl:X,browserOpened:J})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=C({apiKey:X.apiKey,accessToken:X.accessToken,refreshToken:X.refreshToken,idToken:X.idToken,accountId:X.accountId,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;A({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,w,h,a,C]),f}var Bt;var fu=I(()=>{Au();qu();Xu();Et();Bt=Lt(Qt(),1)});function du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ku()}}function _u(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function fn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Fn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Qu,{method:"POST",headers:du(),body:new URLSearchParams({client_id:Ah(),scope:Ju}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`xAI device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=at(C.device_code),f=at(C.user_code),A=at(C.verification_uri);if(!w||!f||!A)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:at(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:Zu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Vu/1000}}async function _n(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??fn,C=h?.now??(()=>Date.now()),w=_u(t.expires_in,Zu),f=C()+w,A=Math.max(_u(t.interval,Vu),Xn);while(C()<f){if(h?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let $=await u(Lu,{method:"POST",headers:du(),body:new URLSearchParams({grant_type:Nu,client_id:Ah(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=at(Q.access_token),V=at(Q.refresh_token);if(!H||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600;return{accessToken:H,refreshToken:V,idToken:at(Q.id_token),expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+qn,$n),await a(Math.min(A+Fu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(R.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`xAI device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("xAI device authorization timed out.")}class gh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Fn({signal:h.signal});return await t(u),await _n(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Vu=5000,Xn=1000,qn=5000,$n=60000,Zu=300000,Fu=3000;var Yu=I(()=>{An();gn()});function kn(){return new gh}function Hu(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??kn,a=t.deps?.saveXaiCredentials??Gu,C=t.deps?.isBareMode??o,[w,f]=It.useState({state:"starting"});return It.useEffect(()=>{if(C()){f({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let A=!1,$=u();return $.startDeviceFlow(async(R)=>{if(A)return;f({state:"waiting",userCode:R.user_code,verificationUri:R.verification_uri,verificationUriComplete:R.verification_uri_complete})}).then(async(R)=>{if(A)return;await h(R,(J)=>{let Q=a({accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,expiresAt:R.expiresAt,profileId:J?.profileId});if(!Q.success)throw Error(Q.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(A)return;f({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{A=!0,$.cleanup()}},[u,C,h,a]),w}var It;var Ku=I(()=>{Yu();Et();Su();It=Lt(Qt(),1)});async function Du(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":Eu,...await Bu()}}function iu(t,h){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:h}function Vn(t,h){if(h?.aborted)return Promise.resolve();return new Promise((u)=>{let a=setTimeout(()=>{h?.removeEventListener("abort",C),u()},t),C=()=>{clearTimeout(a),u()};h?.addEventListener("abort",C,{once:!0})})}async function Zn(t){let h=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),a=await h(Mu,{method:"POST",headers:await Du(),body:new URLSearchParams({client_id:Xh()}).toString(),signal:u});if(!a.ok){let $=await a.text().catch(()=>"");throw Error(`Kimi device code request failed (${a.status})${$?`: ${$.trim()}`:""}`)}let C=await a.json(),w=Ct(C.device_code),f=Ct(C.user_code),A=Ct(C.verification_uri);if(!w||!f||!A)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:w,user_code:f,verification_uri:A,verification_uri_complete:Ct(C.verification_uri_complete),expires_in:typeof C.expires_in==="number"&&C.expires_in>0?C.expires_in:xu/1000,interval:typeof C.interval==="number"&&C.interval>0?C.interval:Iu/1000}}async function dn(t,h){let u=h?.fetchImpl??fetch,a=h?.sleep??Vn,C=h?.now??(()=>Date.now()),w=iu(t.expires_in,xu),f=C()+w,A=Math.max(iu(t.interval,Iu),Qn);while(C()<f){if(h?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let $=await u(Tu,{method:"POST",headers:await Du(),body:new URLSearchParams({grant_type:Uu,client_id:Xh(),device_code:t.device_code}).toString(),signal:h?.signal});if($.ok){let Q=await $.json(),H=Ct(Q.access_token),V=Ct(Q.refresh_token);if(!H||!V)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let O=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:900;return{accessToken:H,refreshToken:V,expiresAt:C()+O*1000}}let R=await $.json().catch(()=>({})),X=Math.max(0,f-C());if(R.error==="authorization_pending"){await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="slow_down"){A=Math.min(A+Nn,Jn),await a(Math.min(A+Wu,X),h?.signal);continue}if(R.error==="access_denied"||R.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(R.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let J=R.error_description??R.error??"";throw Error(`Kimi device token exchange failed (${$.status})${J?`: ${J}`:""}`)}throw Error("Kimi device authorization timed out.")}class qh{abortController=null;async startDeviceFlow(t){let h=new AbortController;this.abortController=h;try{let u=await Zn({signal:h.signal});return await t(u),await dn(u,{signal:h.signal})}finally{if(this.abortController===h)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var Iu=5000,Qn=1000,Nn=5000,Jn=60000,xu=1800000,Wu=3000;var ju=I(()=>{Ln();Pu()});function Yn(){return new qh}function su(t){let{onAuthenticated:h}=t,u=t.deps?.createOAuthService??Yn,a=t.deps?.saveKimiCredentials??ou,C=t.deps?.isBareMode??o,[w,f]=lt.useState({state:"starting"}),A=lt.useRef(!1);return lt.useEffect(()=>{if(C()){f({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let $=!1,R=u();return R.startDeviceFlow(async(X)=>{if($)return;f({state:"waiting",userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete})}).then(async(X)=>{if($)return;await h(X,(Q)=>{let H=a({accessToken:X.accessToken,refreshToken:X.refreshToken,expiresAt:X.expiresAt,profileId:Q?.profileId});if(!H.success)throw Error(H.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((X)=>{if($)return;f({state:"error",message:X instanceof Error?X.message:String(X)})}),()=>{$=!0,R.cleanup()}},[u,C,h,a]),lt.useEffect(()=>{if(w.state!=="waiting")return;if(A.current)return;let $=w.verificationUriComplete??w.verificationUri;if(!$)return;A.current=!0,Pt($).catch(()=>{})},[w]),w}var lt;var eu=I(()=>{ju();qu();Et();pu();lt=Lt(Qt(),1)});function ca(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function na(t){let h=ot(t);return{name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""}}function aa(t){let h={};for(let u of t.split(/\r?\n/)){let a=u.trim();if(!a)continue;let C=a.indexOf(":");if(C<=0)continue;let w=a.slice(0,C).trim(),f=a.slice(C+1).trim();if(w&&f)h[w]=f}return h}function ma(t){if(!t)return"";return Object.entries(t).map(([h,u])=>`${h}: ${u}`).join(`
49
+ `)}function ya(t,h){let u={},a=t.awsRegion?.trim();if(a)u.awsRegion=a;let C=t.gcpProject?.trim();if(C)u.gcpProject=C;let w=t.gcpRegion?.trim();if(w)u.gcpRegion=w;let f=t.azureResource?.trim();if(f)u.azureResource=f;let A=aa(h);if(Object.keys(A).length>0)u.customHeaders=A;return Object.keys(u).length>0?u:void 0}function la(t,h){let u=h?" (active)":"",a=t.apiKey?"key set":"no key",C=t.provider==="anthropic"?"anthropic":"openai-compatible",w=tc(t.model),f=w.length<=3?w.join(", "):`${w[0]}, ${w[1]} + ${w.length-2} more`;return`${C} · ${t.baseUrl} · ${f} · ${a}${u}`}function ra(t,h){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${wh(h)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function wa(t,h){if(t.state==="unreachable")return`Could not reach Ollama at ${wh(h)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let u=t.probeModel??"the selected model",a=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${a} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function fh(t,h){if(!h)return;return t.find((u)=>u.id===h)}function vu(t,h){return Boolean(t&&h&&t.id===h)}function ba(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===Zh&&!u.apiKey)}function Oa(t,h){if(h){let u=t.find((a)=>a.id===h);if(u)return u}return t.find((u)=>u.provider==="openai"&&u.baseUrl===pt&&!u.apiKey)}function za(t,h){return t.find((u)=>u.provider==="anthropic"&&u.baseUrl===h&&!u.apiKey)}function Ra({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=$u({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Codex OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Codex OAuth"}),n(y,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),a.state==="starting"?n(y,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):a.browserOpened===!1?z(yt,{children:[n(y,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),n(y,{children:a.authUrl})]}):a.browserOpened===!0?z(yt,{children:[n(y,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),n(y,{children:a.authUrl})]}):n(y,{dimColor:!0,children:"Opening your browser..."}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Aa({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t,[t]);let a=Hu({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"xAI OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from xAI..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:h}){let u=g.useCallback(async(C,w)=>{await h(C,w)},[h]);D("confirm:no",t);let a=su({onAuthenticated:u});if(a.state==="error")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),n(y,{children:a.message}),n(y,{dimColor:!0,children:"Press Enter or Esc to go back."}),n(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),a.state==="starting"?n(y,{dimColor:!0,children:"Requesting a device code from Kimi..."}):z(yt,{children:[z(y,{children:["Open this URL on any device:"," ",n(y,{bold:!0,children:a.verificationUri})]}),z(y,{children:["Enter code ",n(y,{bold:!0,children:a.userCode})]}),a.verificationUriComplete&&a.verificationUriComplete!==a.verificationUri?z(y,{dimColor:!0,children:["Or open this prefilled URL: ",a.verificationUriComplete]}):null,n(y,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),n(y,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Vm({mode:t,onDone:h}){let u=bc(),[a,C]=g.useState([]),[w,f]=g.useState(),[A,$]=g.useState(),[R,X]=g.useState(!1),[J,Q]=g.useState(),H=g.useRef(0),[V,O]=g.useState(t==="first-run"?"select-preset":"menu"),[wt,i]=g.useState(null),[Z,mt]=g.useState("openai"),[N,P]=g.useState(()=>na("ollama")),[Zt,dt]=g.useState({}),[dh,st]=g.useState(""),[Rc,Ac]=g.useState(0),[gc,Xc]=g.useState(0),[et,Yh]=g.useState(null),[bt,Ft]=g.useState(0),[Ot,p]=g.useState(0),[qc,s]=g.useState(0),[Gh,Y]=g.useState(),[zt,_]=g.useState(),[$c,fc]=g.useState(),[Sh,Yt]=g.useState(!1),[_t,kt]=g.useState(),[e,Gt]=g.useState({state:"idle"}),[v,St]=g.useState({state:"idle"}),[tt,vt]=g.useState({state:"idle"}),[Fc,_c]=g.useState(!0),[kc,E]=g.useState(!1),th=g.useRef(!1),[hh,uh]=g.useState(()=>Vt()),[Hh,Lc]=g.useState(()=>Oc());g.useEffect(()=>{queueMicrotask(()=>{let c=x(),m=B()?.id;C(c),f(m),$(xt()),Q(Fh()),X(Jt()),_c(!1)})},[]);let Rt=rt[Ot]??rt[0],Ht=Rt.key,Qc=N[Ht],ch=a.length>0,Kt=ch,Kh=g.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:J?`Currently: ${a.find((c)=>c.id===J)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!Kt},{value:"activate-project",label:"Set active provider (Project)",description:A?`Currently: ${a.find((c)=>c.id===A)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!Kt},...R?[{value:"clear-project-override",label:"Clear project provider override",description:A?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!ch},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Kt},...Sh?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Kt,ch,Sh,hh,J,A,a]),nh=g.useCallback(()=>{if(o()){H.current+=1,Yt(!1),kt(void 0);return}let c=++H.current;(async()=>{let m=await Lh();if(c!==H.current)return;Yt(Boolean(m?.apiKey||m?.accessToken||m?.refreshToken||m?.idToken)),kt(m?.profileId)})()},[]);g.useEffect(()=>{return nh(),()=>{H.current+=1}},[nh]),g.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Gt({state:"loading"}),(async()=>{let m=await wc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)Gt({state:"unavailable",message:wa(m,N.baseUrl)});return}let l=rh(m.models,"balanced"),r=cu(m.models,"balanced");if(!c)Gt({state:"ready",defaultValue:r?.name??l[0]?.name,options:l.map((b)=>({label:b.name,value:b.name,description:b.summary}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return St({state:"loading"}),(async()=>{let m=await rc({baseUrl:N.baseUrl});if(m.state!=="ready"){if(!c)St({state:"unavailable",message:ra(m,N.baseUrl)});return}if(!c)St({state:"ready",defaultValue:m.models[0],options:m.models.map((l)=>({label:l,value:l}))})})(),()=>{c=!0}},[N.baseUrl,V]),g.useEffect(()=>{if(V!=="select-openai-model")return;let c=!1;return vt({state:"loading"}),(async()=>{let m=await Cc({baseUrl:N.baseUrl,apiKey:N.apiKey||void 0});if(c)return;if(!m||m.length===0){vt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:l,defaultValue:r}=lc(m,N.model);vt({state:"ready",options:l,defaultValue:r})})(),()=>{c=!0}},[N.baseUrl,N.apiKey,V]);function K(){if(th.current)return;th.current=!0,queueMicrotask(()=>{let c=x();C(c),f(B()?.id),$(xt()),Q(Fh()),X(Jt()),nh(),th.current=!1})}function At(){return null}function ah(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function mh(c){if(c?.accessToken&&c.accountId)return null;let m=await Lh();if(!m)return"stored Codex OAuth credentials could not be loaded";if(!m.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function Wh(){yc()}async function Nc(c){let m="provider";E(!0),Y("Activating provider...");try{await new Promise((ht)=>queueMicrotask(ht));let l=Jt(),r=nt(c);if(!r){_("Could not change active provider."),E(!1),L();return}let b=l?B()??r:r,q=$t(b.model)||Dt();if(!l)u((ht)=>({...ht,mainLoopModel:q,mainLoopModelForSession:null}));m=r.name;let k=At(),d=vu(r,_t),T=d?await mh():null;K();let U=l&&b.id!==r.id?` (project override still active — this project keeps using ${b.name}; use "Clear project provider override" to apply the new default here)`:"",W=d?ah({prefix:`Active provider: ${r.name}${U}`,activationWarning:T,warnings:[T,k?`could not clear startup provider override (${k})`:null].filter((ht)=>Boolean(ht))}):k?`Active provider: ${r.name}${U}. Warning: could not clear startup provider override (${k}).`:`Active provider: ${r.name}${U}`;Y(W),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:q,message:`Provider switched to ${r.name} (${q})`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish activating ${m}: ${r}`),L()}}async function Jc(){E(!0),Y("Clearing project provider override...");try{await new Promise((m)=>queueMicrotask(m)),_h(null),K();let c=B();if(c){let m=$t(c.model)||Dt();ft(),u((l)=>({...l,mainLoopModel:m,mainLoopModelForSession:null})),Y(`Project override cleared. Using global default: ${c.name}.`),E(!1),h({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:m,message:`Project override cleared — using ${c.name} (${m})`}),L()}else Y("Project provider override cleared. No global default set."),E(!1),h({action:"saved",message:"Project provider override cleared. No global default set."}),L()}catch(c){K(),Y(void 0),E(!1);let m=c instanceof Error?c.message:String(c);_(`Could not clear project provider override: ${m}`),L()}}async function Vc(c){let m="provider";E(!0),Y("Setting provider for this project...");try{await new Promise((W)=>queueMicrotask(W));let l=xt(),r=_h(c);if(!r){_("Could not set project provider override."),E(!1),L();return}let b=$t(r.model)||Dt();if(l===r.id)ft();u((W)=>({...W,mainLoopModel:b,mainLoopModelForSession:null})),m=r.name;let q=At(),k=vu(r,_t),d=k?await mh():null;K();let T=`Active provider for this project: ${r.name}. Other projects keep the global default.`,U=k?ah({prefix:T,activationWarning:d,warnings:[d,q?`could not clear startup provider override (${q})`:null].filter((W)=>Boolean(W))}):q?`${T} Warning: could not clear startup provider override (${q}).`:T;Y(U),E(!1),h({action:"activated",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:b,message:`Provider switched to ${r.name} (${b}) for this project`}),L()}catch(l){K(),Y(void 0),E(!1);let r=l instanceof Error?l.message:String(l);_(`Could not finish setting ${m} for this project: ${r}`),L()}}function L(){fc("done"),O("menu")}function Wt(c){h({action:"cancelled",message:c})}function ih(c){let m=ot(c),l={name:m.name,baseUrl:m.baseUrl,model:m.model,apiKey:m.apiKey??""};if(i(null),mt(m.provider??"openai"),P(l),dt({}),st(""),Yh(c),p(0),Ft(0),s(l.name.length),_(void 0),c==="ollama"){Gt({state:"loading"}),O("select-ollama-model");return}if(c==="atomic-chat"){St({state:"loading"}),O("select-atomic-chat-model");return}if(c==="anthropic"){O("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){O("cloud-extras");return}O("form")}function Zc(c){let m=a.find((r)=>r.id===c);if(!m)return;let l=ca(m);i(c),mt(m.provider??"openai"),P(l),dt({awsRegion:m.extras?.awsRegion,gcpProject:m.extras?.gcpProject,gcpRegion:m.extras?.gcpRegion,azureResource:m.extras?.azureResource}),st(ma(m.extras?.customHeaders)),Yh(null),p(0),Ft(0),s(l.name.length),_(void 0),O("form")}function it(c=N){let m=ya(Zt,dh),l={provider:Z,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:m},r=wt?ct(wt,l):ut(l,{makeActive:!0});if(!r){_("Could not save provider. Fill all required fields.");return}let b=B()?.id===r.id;if(b)ft(),u((U)=>({...U,mainLoopModel:$t(r.model),mainLoopModelForSession:null}));let q=b?At():null;K();let k=!wt&&Jt()&&!b,d=k?B()?.name??"override target":null,T=wt?`Updated provider: ${r.name}`:k?`Added provider: ${r.name} (now global default — project keeps using ${d}; use "Clear project provider override" to apply here)`:`Added provider: ${r.name} (now active)`;if(Y(q?`${T}. Warning: could not clear startup provider override (${q}).`:T),t==="first-run"){h({action:"saved",activeProfileId:r.id,message:`Provider configured: ${r.name}`});return}i(null),p(0),_(void 0),L()}function dc(){if(v.state==="loading"||v.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),n(y,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(v.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Atomic Chat setup"}),n(y,{dimColor:!0,children:v.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),n(y,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),n(S,{options:v.options,defaultValue:v.defaultValue,defaultFocusValue:v.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,v.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function Yc(){if(e.state==="loading"||e.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Checking Ollama"}),n(y,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(e.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Ollama setup"}),n(y,{dimColor:!0,children:e.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(c)=>{if(c==="manual"){p(0),s(N.name.length),O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:2})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose an Ollama model"}),n(y,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),n(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(c)=>{let m={...N,model:c};P(m),it(m)},onCancel:()=>O("select-preset")})]})}function gt(c){let m=rt.findIndex((l)=>l.key===c);p(m<0?0:m),s(N[c].length),_(void 0),O("form")}function Gc(){if(tt.state==="loading"||tt.state==="idle")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Fetching models"}),n(y,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),n(y,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(tt.state==="unavailable")return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:tt.message}),n(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(l)=>{if(l==="manual"){gt("model");return}gt("apiKey")},onCancel:()=>gt("apiKey"),visibleOptionCount:2})]});let c=[...tt.options,{value:$h,label:"Enter a model id manually",description:"Type an id the provider did not list"}],m=tt.defaultValue??$h;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Choose a model"}),n(y,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),n(S,{options:c,defaultValue:m,defaultFocusValue:m,inlineDescriptions:!0,visibleOptionCount:Math.min(8,c.length),onChange:(l)=>{if(l===$h){gt("model");return}let r={...N,model:l};P(r),Mh(r)},onCancel:()=>gt("apiKey")}),n(y,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Mh(c){if(et==="anthropic"||et==="custom"){P(c),O("custom-headers");return}it(c)}function Sc(c){let m=c.trim();if(!Rt.optional&&m.length===0){_(`${Rt.label} is required.`);return}let l={...N,[Ht]:m};if(P(l),_(void 0),Ot<rt.length-1){let r=Ot+1,b=rt[r]?.key??"name";if(b==="model"&&!pn.has(Z)&&l.baseUrl.trim().length>0){O("select-openai-model");return}p(r),s(l[b].length);return}Mh(l)}function Hc(){if(_(void 0),Ot>0){let c=Ot-1,m=rt[c]?.key??"name";p(c),s(N[m].length);return}if(t==="first-run"){O("select-preset");return}L()}D("confirm:no",Hc,{context:"Settings",isActive:V==="form"}),D("confirm:no",()=>gt("model"),{context:"Settings",isActive:V==="select-openai-model"&&(tt.state==="loading"||tt.state==="idle")});function Kc(){if(_(void 0),bt>0){Ft(bt-1);return}O("select-preset")}D("confirm:no",Kc,{context:"Settings",isActive:V==="cloud-extras"}),D("confirm:no",()=>O("form"),{context:"Settings",isActive:V==="custom-headers"}),D("confirm:no",()=>O("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"||V==="kimi-auth-choice"}),D("confirm:no",()=>O("kimi-auth-choice"),{context:"Settings",isActive:V==="kimi-oauth"});function Wc(){let c=!o(),m=[...hh?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...c?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),n(y,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),n(S,{options:m,onChange:(l)=>{if(l==="skip"){Wt("Provider setup skipped");return}if(l==="codex-oauth"){O("codex-oauth");return}if(l==="xai-oauth"){O("xai-oauth");return}if(l==="moonshotai"){O("kimi-auth-choice");return}if(l==="github-onboard"){O("github-onboard");return}if(l==="import-legacy"){(async()=>{let r=await Vh({force:!0});uh(Vt()),K();let b=jt(r);if(r.errors.length>0){_(b);return}let q=B();if(t==="first-run"&&q){h({action:"saved",activeProfileId:q.id,activeProviderName:q.name,activeProviderModel:q.model,message:b});return}if(Y(b),_(void 0),t==="manage")L()})();return}ih(l)},onCancel:()=>{if(t==="first-run"){Wt("Provider setup skipped");return}L()},visibleOptionCount:Math.min(13,m.length)})]})}function ic(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("anthropic-oauth");return}if(c==="apiKey"){O("form");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Mc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),n(y,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),n(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(c)=>{if(c==="oauth"){O("kimi-oauth");return}if(c==="apiKey"){ih("moonshotai");return}O("select-preset")},onCancel:()=>O("select-preset"),visibleOptionCount:3})]})}function Tc(){let c=(xn(),Gn(In)).ConsoleOAuthFlow;return n(F,{flexDirection:"column",gap:1,children:n(c,{mode:"login",onDone:()=>{let m=ot("anthropic"),l={provider:"anthropic",name:m.name,baseUrl:m.baseUrl,model:m.model},r=za(x(),m.baseUrl),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("OAuth completed, but the Anthropic profile could not be saved."),O("select-preset");return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("OAuth completed, but the Anthropic profile could not be set as the startup provider."),O("select-preset");return}let k=`Anthropic OAuth configured: ${q.name}`;if(K(),t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}})})}function Uc(){let c=et;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let m=Ca[c],l=m[bt]??m[0],r=Zt[l.key]??"";function b(q){let k=q.trim();if(k.length===0){_(`${l.label} is required.`);return}let d={...Zt,[l.key]:k};if(dt(d),_(void 0),bt<m.length-1){Ft(bt+1);return}Ft(0),O("form")}return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),n(y,{dimColor:!0,children:l.helpText}),z(y,{dimColor:!0,children:["Step ",bt+1," of ",m.length,": ",l.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:r,onChange:(q)=>dt((k)=>({...k,[l.key]:q})),onSubmit:b,focus:!0,showCursor:!0,placeholder:`${l.placeholder}${qt.ellipsis}`,columns:80,cursorOffset:Rc,onChangeCursorOffset:Ac})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Ec(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Custom headers (optional)"}),z(y,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",n(y,{children:"Header: Value"}),". Leave empty to skip."]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:dh,onChange:st,onSubmit:()=>it(N),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:gc,onChangeCursorOffset:Xc})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function Pc(){return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:wt?"Edit provider profile":"Create provider profile"}),n(y,{dimColor:!0,children:Rt.helpText}),z(y,{dimColor:!0,children:["Provider type:"," ",Z==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),z(y,{dimColor:!0,children:["Step ",Ot+1," of ",rt.length,": ",Rt.label]}),z(F,{flexDirection:"row",gap:1,children:[n(y,{children:qt.pointer}),n(Xt,{value:Qc,onChange:(c)=>P((m)=>({...m,[Ht]:c})),onSubmit:Sc,focus:!0,showCursor:!0,placeholder:`${Rt.placeholder}${qt.ellipsis}`,mask:Ht==="apiKey"?"*":void 0,columns:80,cursorOffset:qc,onChangeCursorOffset:s})]}),zt&&n(y,{color:"error",children:zt}),n(y,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Bc(){let c=a.length>0,m=c;return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Provider manager"}),n(y,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),Gh&&n(y,{children:Gh}),n(F,{flexDirection:"column",children:a.length===0?n(y,{dimColor:!0,children:"No provider profiles configured yet."}):a.map((l)=>z(y,{dimColor:!0,children:["- ",l.name,": ",la(l,l.id===w)]},l.id))}),n(S,{options:Kh,onChange:(l)=>{switch(_(void 0),l){case"add":O("select-preset");break;case"import-legacy":{(async()=>{let r=await Vh({force:!0});if(uh(Vt()),K(),r.errors.length>0)_(jt(r));else Y(jt(r))})();break}case"activate":if(m)O("select-active");break;case"activate-project":if(m)O("select-active-project");break;case"clear-project-override":Jc();break;case"edit":if(c)O("select-edit");break;case"delete":if(m)O("select-delete");break;case"logout-codex-oauth":{let r=Qh();if(!r.success){_(r.warning??"Could not clear Codex OAuth credentials.");break}Yt(!1),kt(void 0);let b=fh(x(),_t),q=null;if(b){let k=kh(b.id);if(!k.removed){_("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),K();break}Wh(),q=k.activeProfileId?At():null}K(),Y(q?`Codex OAuth logged out. Warning: could not clear startup provider override (${q}).`:"Codex OAuth logged out.");break}default:Wt("Provider manager closed");break}},onCancel:()=>Wt("Provider manager closed"),defaultFocusValue:$c,visibleOptionCount:Kh.length})]})}function Mt(c,m,l){let r=a.map((b)=>{let q=[];if(b.id===w)q.push("active");if(A&&b.id===A)q.push("this project");if(J&&b.id===J)q.push("global default");let k=q.length>0?` (${q.join(", ")})`:"";return{value:b.id,label:`${b.name}${k}`,description:`${b.provider==="anthropic"?"anthropic":"openai-compatible"} · ${b.baseUrl} · ${b.model}`}});if(r.length===0)return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(y,{dimColor:!0,children:m}),n(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>L(),onCancel:()=>L(),visibleOptionCount:1})]});return z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:c}),n(S,{options:r,onChange:l,onCancel:()=>L(),visibleOptionCount:Math.min(10,Math.max(2,r.length))})]})}let G;switch(V){case"select-preset":G=Wc();break;case"select-ollama-model":G=Yc();break;case"select-openai-model":G=Gc();break;case"select-atomic-chat-model":G=dc();break;case"codex-oauth":G=n(Ra,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:sn,baseUrl:hc,model:en,apiKey:""},r=fh(x(),_t),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Codex OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Codex OAuth login finished, but the provider could not be set as the startup provider."),L();return}m({profileId:b.id});let k=At(),d=await mh(c);Yt(!0),kt(b.id),K();let T=[d,k?`could not clear startup provider override (${k})`:null].filter((W)=>Boolean(W)),U=ah({prefix:"Codex OAuth configured",activationWarning:d,warnings:T});if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:U});return}Y(U),_(void 0),L()}});break;case"xai-oauth":G=n(Aa,{onBack:()=>O("select-preset"),onConfigured:async(c,m)=>{let l={provider:"openai",name:vn,baseUrl:pt,model:ta,apiKey:""},r=Oa(x(),Jh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("xAI OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("xAI OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"kimi-auth-choice":G=Mc();break;case"kimi-oauth":G=n(ga,{onBack:()=>O("kimi-auth-choice"),onConfigured:async(c,m)=>{let l={provider:"openai",name:ha,baseUrl:Zh,model:ua,apiKey:""},r=ba(x(),Nh()?.profileId),b=r?ct(r.id,l):ut(l,{makeActive:!0});if(!b){_("Kimi Code OAuth login finished, but the provider profile could not be saved."),L();return}let q=r&&w!==b.id?nt(b.id):b;if(!q){_("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),L();return}try{m({profileId:b.id})}catch(d){_(d instanceof Error?d.message:String(d)),L();return}K();let k="Kimi Code configured. Claudin switched to it for this session.";if(t==="first-run"){h({action:"saved",activeProfileId:q.id,message:k});return}Y(k),_(void 0),L()}});break;case"github-onboard":G=n(vh,{onDone:(c)=>{if(c)Y(c),_(void 0);K(),L()},onBack:()=>O("select-preset"),onChangeAPIKey:K});break;case"anthropic-auth-choice":G=ic();break;case"anthropic-oauth":G=Tc();break;case"cloud-extras":G=Uc();break;case"custom-headers":G=Ec();break;case"form":G=Pc();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Nc(c)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(c)=>{Vc(c)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(c)=>{Zc(c)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(c)=>{let m=a.find((W)=>W.id===c),l=m?.provider==="openai"&&m?.extras?.githubToken!==void 0,r=fh(a,_t)?.id===c,b=Jh()?.profileId,q=m?.provider==="openai"&&m.baseUrl===pt&&!m.apiKey&&b===c,k=Nh()?.profileId,d=m?.provider==="openai"&&m.baseUrl===Zh&&!m.apiKey&&k===c,T=B()?.id===c,U=kh(c);if(!U.removed)_("Could not delete provider.");else{let W=[];if(r){let M=Qh();if(!M.success)W.push(M.warning??"could not clear Codex OAuth credentials");else kt(void 0);Wh()}if(l){let M=cc();if(!M.success)W.push(M.warning??"could not clear GitHub Copilot token")}if(q){let M=mc();if(!M.success)W.push(M.warning??"could not clear xAI OAuth credentials")}if(d){let M=ac();if(!M.success)W.push(M.warning??"could not clear Kimi Code OAuth credentials")}let ht=U.activeProfileId?At():null;if(ht)W.push(`could not clear startup provider override (${ht})`);if(K(),T){let M=B();if(M)ft(),u((yh)=>({...yh,mainLoopModel:$t(M.model),mainLoopModelForSession:null}));else ft(),u((yh)=>({...yh,mainLoopModel:null,mainLoopModelForSession:null}))}Y(W.length>0?`Provider deleted. Warning: ${W.join("; ")}.`:"Provider deleted")}L()});break;case"menu":default:G=Bc();break}return z(uc,{color:"permission",children:[n(zc,{enabled:Hh,onDismiss:(c)=>{uh(Vt()),Lc(!1),K();let m=B();if(c==="migrated"&&t==="first-run"&&m)h({action:"saved",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:m.model})}}),Hh?null:Fc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Loading providers..."}),n(y,{dimColor:!0,children:"Reading provider profiles from disk."})]}):kc?z(F,{flexDirection:"column",gap:1,children:[n(y,{color:"remember",bold:!0,children:"Activating provider..."}),n(y,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var g,rt,$h="\x00__manual__",pn,sn="Codex OAuth",en="codexplan",vn="xAI / Grok (OAuth)",ta="grok-4",ha="Moonshot AI",ua,Zh="https://api.kimi.com/coding/v1",Ca;var Xa=I(()=>{Sn();tu();Kn();Eh();Mn();Pn();Dn();Xu();Et();Hn();Wn();Un();Th();ph();En();nu();au();Bn();Tn();on();sh();fu();Ku();eu();Su();pu();Pu();jn();Tt();g=Lt(Qt(),1),rt=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],pn=new Set(["anthropic","bedrock","vertex","foundry"]),ua=nc;Ca={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
50
+ export{wh as sc,au as tc,aa as uc,Vm as vc,Xa as wc};
@@ -0,0 +1,2 @@
1
+ import{Ysa as C}from"./cli-1.1.10-gmf5w0a4.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as Qi,M as Ri,N as Si,H as Ti};
@@ -0,0 +1,2 @@
1
+ import{Ysa as g}from"./cli-1.1.10-gmf5w0a4.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 iW,d as jW,$J as kW,DJ as lW,GJ as mW};
@@ -0,0 +1,2 @@
1
+ import{U8 as v,V8 as C}from"./cli-1.1.10-yzpymdrc.mjs";import{Ifa as x,Jfa as Y,hea as Z,iea as V}from"./cli-1.1.10-m0pdck7q.mjs";import{Nha as R,Rha as W,Zha as O}from"./cli-1.1.10-dvxkr02c.mjs";import{Hja as Q,Ija as M}from"./cli-1.1.10-2wkvf65f.mjs";import{Mka as f,Pka as L,pka as P,uka as I}from"./cli-1.1.10-jn6w68wj.mjs";import{kla as w,rla as H}from"./cli-1.1.10-e7wxspgz.mjs";import{Jra as N,Kra as F}from"./cli-1.1.10-j20txpzn.mjs";import{esa as X,wsa as U}from"./cli-1.1.10-6m1jpn0s.mjs";import{Vsa as h,Ysa as B}from"./cli-1.1.10-gmf5w0a4.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
2
+ export{u as TW,n as UW,o as VW,t as WW,d as XW};