@claudiolabs/claudin 1.1.23 → 1.1.25

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 (912) hide show
  1. package/dist/chunks/AgentTool-1.1.25-wemjscyz.mjs +1 -0
  2. package/dist/chunks/App-1.1.25-k5h3kma3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.25-z8vqxm93.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.25-qmr6qf3r.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.25-78m4mvsv.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.25-htk8qebw.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.25-8evt7epy.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.25-3nbcvm6d.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.25-7n5581yw.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.25-zvcm13vd.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.25-jazr0v5h.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.25-tb139x32.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.25-h27j1v12.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.25-7gxkqb1q.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.25-21kzry6a.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.25-z4ps8td0.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.25-dekvcwna.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.25-x77jymbq.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.25-z1n7c0cp.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.25-ye8czpf8.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.25-qy9dcwtf.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.25-se513tcw.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.25-shafx13k.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.25-q9jqjghn.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.25-c9b16qp6.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.25-4x0h3a7n.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.25-9z82gazg.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.25-3eark7aj.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.25-88qbcwen.mjs +1 -0
  30. package/dist/chunks/agents-1.1.25-58s95cy7.mjs +110 -0
  31. package/dist/chunks/agents-1.1.25-rprb9rf9.mjs +3 -0
  32. package/dist/chunks/api-1.1.25-ceedtxx2.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.25-dtyww79s.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.25-12s5z3q2.mjs +1 -0
  35. package/dist/chunks/auth-1.1.25-cd9y34xe.mjs +1 -0
  36. package/dist/chunks/auth-1.1.25-gphkwwnp.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.25-zdd4g2rn.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.25-17zj185q.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.25-tb3pf0cw.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.25-mtctkars.mjs +1 -0
  41. package/dist/chunks/branch-1.1.25-ytfahhwq.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.25-kkjx4g4j.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.25-9h63taqc.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.25-yq7hv80q.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.25-rmcdgp77.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.25-x3jjj2ek.mjs +1 -0
  47. package/dist/chunks/btw-1.1.25-xdh8rhdz.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.25-aj90p6ww.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.25-4wztx76s.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.25-9bd12my6.mjs +4 -0
  51. package/dist/chunks/caches-1.1.25-2ewrwm5x.mjs +1 -0
  52. package/dist/chunks/cd-1.1.25-9yhaw8rp.mjs +3 -0
  53. package/dist/chunks/claudeDesktop-1.1.25-bw8arps4.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.25-f621m88g.mjs +1 -0
  55. package/dist/chunks/clear-1.1.25-jk3ztva0.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.25-7jtejen6.mjs +1 -0
  57. package/dist/chunks/cli-1.1.25-0m4pyzaf.mjs +2 -0
  58. package/dist/chunks/cli-1.1.25-0q6rqkec.mjs +58 -0
  59. package/dist/chunks/cli-1.1.25-12b1rzfj.mjs +2 -0
  60. package/dist/chunks/cli-1.1.25-14jerc0x.mjs +2 -0
  61. package/dist/chunks/cli-1.1.25-1c4t0f2p.mjs +2 -0
  62. package/dist/chunks/cli-1.1.25-1c633j9v.mjs +2 -0
  63. package/dist/chunks/cli-1.1.25-1gz0w81n.mjs +2 -0
  64. package/dist/chunks/cli-1.1.25-1hx796kk.mjs +2 -0
  65. package/dist/chunks/cli-1.1.25-1s7ketx0.mjs +2 -0
  66. package/dist/chunks/cli-1.1.25-1sf51thg.mjs +3 -0
  67. package/dist/chunks/cli-1.1.25-221zdn3h.mjs +4 -0
  68. package/dist/chunks/cli-1.1.25-24f6az0s.mjs +2 -0
  69. package/dist/chunks/cli-1.1.25-2gjxmbsj.mjs +2 -0
  70. package/dist/chunks/cli-1.1.25-2gtabky3.mjs +60 -0
  71. package/dist/chunks/cli-1.1.25-2wd0qj2d.mjs +2 -0
  72. package/dist/chunks/cli-1.1.25-2we0778z.mjs +2 -0
  73. package/dist/chunks/cli-1.1.25-2zepg15b.mjs +2 -0
  74. package/dist/chunks/cli-1.1.25-32br2csx.mjs +2 -0
  75. package/dist/chunks/cli-1.1.25-32qfxqyg.mjs +2 -0
  76. package/dist/chunks/cli-1.1.25-348yqf3d.mjs +2 -0
  77. package/dist/chunks/cli-1.1.25-37rs38eq.mjs +2 -0
  78. package/dist/chunks/cli-1.1.25-3dd0c7xd.mjs +4 -0
  79. package/dist/chunks/cli-1.1.25-3ev2q4bm.mjs +4 -0
  80. package/dist/chunks/cli-1.1.25-3hnrfkxc.mjs +2 -0
  81. package/dist/chunks/cli-1.1.25-3nhwpx0q.mjs +3 -0
  82. package/dist/chunks/cli-1.1.25-3nm4kgwz.mjs +2 -0
  83. package/dist/chunks/cli-1.1.25-3qj0n5y0.mjs +21 -0
  84. package/dist/chunks/cli-1.1.25-3tnd3xyt.mjs +3 -0
  85. package/dist/chunks/cli-1.1.25-3v5624jg.mjs +2 -0
  86. package/dist/chunks/cli-1.1.25-3vtsr7s2.mjs +2 -0
  87. package/dist/chunks/cli-1.1.25-45mx738r.mjs +3 -0
  88. package/dist/chunks/cli-1.1.25-4cgvw7e3.mjs +2 -0
  89. package/dist/chunks/cli-1.1.25-4d1zk1ar.mjs +12 -0
  90. package/dist/chunks/cli-1.1.25-4h4yaa4x.mjs +2 -0
  91. package/dist/chunks/cli-1.1.25-4yjtqfa0.mjs +2 -0
  92. package/dist/chunks/cli-1.1.25-54q2vnck.mjs +2 -0
  93. package/dist/chunks/cli-1.1.25-5f8d8bx1.mjs +2 -0
  94. package/dist/chunks/cli-1.1.25-5g78avtr.mjs +2 -0
  95. package/dist/chunks/cli-1.1.25-5n21xpvc.mjs +16 -0
  96. package/dist/chunks/cli-1.1.25-5qknjpxc.mjs +2 -0
  97. package/dist/chunks/cli-1.1.25-5r495hn7.mjs +4 -0
  98. package/dist/chunks/cli-1.1.25-5s22yhkx.mjs +3 -0
  99. package/dist/chunks/cli-1.1.25-5s65r14h.mjs +2 -0
  100. package/dist/chunks/cli-1.1.25-5ye3ascx.mjs +2 -0
  101. package/dist/chunks/cli-1.1.25-639mzh6g.mjs +2 -0
  102. package/dist/chunks/cli-1.1.25-63kkff0g.mjs +2 -0
  103. package/dist/chunks/cli-1.1.25-683ggh08.mjs +2 -0
  104. package/dist/chunks/cli-1.1.25-687hxtdb.mjs +1 -0
  105. package/dist/chunks/cli-1.1.25-69shxnnp.mjs +2 -0
  106. package/dist/chunks/cli-1.1.25-6bb29bw7.mjs +2 -0
  107. package/dist/chunks/cli-1.1.25-6panntay.mjs +17 -0
  108. package/dist/chunks/cli-1.1.25-6pthkv1w.mjs +4 -0
  109. package/dist/chunks/cli-1.1.25-6r6r7rep.mjs +4 -0
  110. package/dist/chunks/cli-1.1.25-6t9phfap.mjs +2 -0
  111. package/dist/chunks/cli-1.1.25-6vwz5vma.mjs +2 -0
  112. package/dist/chunks/cli-1.1.25-6wcggeyr.mjs +25 -0
  113. package/dist/chunks/cli-1.1.25-6wjrv08c.mjs +6 -0
  114. package/dist/chunks/cli-1.1.25-746dypse.mjs +2 -0
  115. package/dist/chunks/cli-1.1.25-74ys7518.mjs +42 -0
  116. package/dist/chunks/cli-1.1.25-7d3fdbq5.mjs +17 -0
  117. package/dist/chunks/cli-1.1.25-7d7cptk6.mjs +10 -0
  118. package/dist/chunks/cli-1.1.25-7qert3s4.mjs +2 -0
  119. package/dist/chunks/cli-1.1.25-7qxwpfwh.mjs +2 -0
  120. package/dist/chunks/cli-1.1.25-7wsdhgky.mjs +2 -0
  121. package/dist/chunks/cli-1.1.25-82ht7pxh.mjs +2 -0
  122. package/dist/chunks/cli-1.1.25-8byrahks.mjs +2 -0
  123. package/dist/chunks/cli-1.1.25-8eznzbsa.mjs +5 -0
  124. package/dist/chunks/cli-1.1.25-8hv1dfrb.mjs +2 -0
  125. package/dist/chunks/cli-1.1.25-8k2bszzr.mjs +2 -0
  126. package/dist/chunks/cli-1.1.25-8v1gw0tw.mjs +9 -0
  127. package/dist/chunks/cli-1.1.25-8vqmp6g5.mjs +20 -0
  128. package/dist/chunks/cli-1.1.25-9f27xm90.mjs +25 -0
  129. package/dist/chunks/cli-1.1.25-9grz07r4.mjs +34 -0
  130. package/dist/chunks/cli-1.1.25-9m237kwt.mjs +2 -0
  131. package/dist/chunks/cli-1.1.25-9xqq9dsw.mjs +3 -0
  132. package/dist/chunks/cli-1.1.25-9yhnadye.mjs +24 -0
  133. package/dist/chunks/cli-1.1.25-9z7tyxc4.mjs +2 -0
  134. package/dist/chunks/cli-1.1.25-a0zejb5c.mjs +2 -0
  135. package/dist/chunks/cli-1.1.25-am98khq7.mjs +2 -0
  136. package/dist/chunks/cli-1.1.25-anhj1nnt.mjs +2 -0
  137. package/dist/chunks/cli-1.1.25-anvsm1cs.mjs +2 -0
  138. package/dist/chunks/cli-1.1.25-b1hj5x42.mjs +2 -0
  139. package/dist/chunks/cli-1.1.25-ba3yrxg9.mjs +2 -0
  140. package/dist/chunks/cli-1.1.25-bmjvmtgk.mjs +2 -0
  141. package/dist/chunks/cli-1.1.25-bvg3kwg7.mjs +4 -0
  142. package/dist/chunks/cli-1.1.25-cc10r97z.mjs +2 -0
  143. package/dist/chunks/cli-1.1.25-cmsea0j8.mjs +15 -0
  144. package/dist/chunks/cli-1.1.25-csgmna38.mjs +2 -0
  145. package/dist/chunks/cli-1.1.25-ctfh8503.mjs +2 -0
  146. package/dist/chunks/cli-1.1.25-d029ezbm.mjs +2 -0
  147. package/dist/chunks/cli-1.1.25-d15hk64v.mjs +2 -0
  148. package/dist/chunks/cli-1.1.25-d6ybhba5.mjs +2 -0
  149. package/dist/chunks/cli-1.1.25-dc92c5gy.mjs +2 -0
  150. package/dist/chunks/cli-1.1.25-df9x7s0j.mjs +2 -0
  151. package/dist/chunks/cli-1.1.25-dn7m24cg.mjs +2 -0
  152. package/dist/chunks/cli-1.1.25-drtfsgw8.mjs +3 -0
  153. package/dist/chunks/cli-1.1.25-dw0mshd5.mjs +2 -0
  154. package/dist/chunks/cli-1.1.25-e2ng6vcx.mjs +2 -0
  155. package/dist/chunks/cli-1.1.25-ed14rf9g.mjs +2 -0
  156. package/dist/chunks/cli-1.1.25-eqtpax1f.mjs +6 -0
  157. package/dist/chunks/cli-1.1.25-etb23y0w.mjs +4 -0
  158. package/dist/chunks/cli-1.1.25-ex6f69yn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.25-f424x1de.mjs +2 -0
  160. package/dist/chunks/cli-1.1.25-f57233sm.mjs +8 -0
  161. package/dist/chunks/cli-1.1.25-f5ag59tm.mjs +4 -0
  162. package/dist/chunks/cli-1.1.25-f6w108cp.mjs +6 -0
  163. package/dist/chunks/cli-1.1.25-f9pk1asa.mjs +7 -0
  164. package/dist/chunks/cli-1.1.25-fr1nw6bz.mjs +2 -0
  165. package/dist/chunks/cli-1.1.25-fwh7d55c.mjs +2 -0
  166. package/dist/chunks/cli-1.1.25-g6y71why.mjs +24 -0
  167. package/dist/chunks/cli-1.1.25-gba9rrnp.mjs +15 -0
  168. package/dist/chunks/cli-1.1.25-gezpvyzq.mjs +2 -0
  169. package/dist/chunks/cli-1.1.25-gm5mfwmy.mjs +2 -0
  170. package/dist/chunks/cli-1.1.25-gmvcd8bm.mjs +2 -0
  171. package/dist/chunks/cli-1.1.25-gnsqbh0h.mjs +2 -0
  172. package/dist/chunks/cli-1.1.25-gsngwhfp.mjs +2 -0
  173. package/dist/chunks/cli-1.1.25-gz32rhhs.mjs +2 -0
  174. package/dist/chunks/cli-1.1.25-h164y8f5.mjs +2 -0
  175. package/dist/chunks/cli-1.1.25-h6ag26rc.mjs +2 -0
  176. package/dist/chunks/cli-1.1.25-hdgk2770.mjs +2 -0
  177. package/dist/chunks/cli-1.1.25-hjvawqyb.mjs +2 -0
  178. package/dist/chunks/cli-1.1.25-hjwttff4.mjs +2 -0
  179. package/dist/chunks/cli-1.1.25-hpfkk20r.mjs +2 -0
  180. package/dist/chunks/cli-1.1.25-j6x483np.mjs +2 -0
  181. package/dist/chunks/cli-1.1.25-jaz67hdc.mjs +2 -0
  182. package/dist/chunks/cli-1.1.25-jk7skh2n.mjs +2 -0
  183. package/dist/chunks/cli-1.1.25-jmv6jw6b.mjs +2 -0
  184. package/dist/chunks/cli-1.1.25-jsn4we2f.mjs +2 -0
  185. package/dist/chunks/cli-1.1.25-k6kqfxnq.mjs +2 -0
  186. package/dist/chunks/cli-1.1.25-k6v3tvg9.mjs +2 -0
  187. package/dist/chunks/cli-1.1.25-k9qcf2mf.mjs +2 -0
  188. package/dist/chunks/cli-1.1.25-kdamwjt1.mjs +2 -0
  189. package/dist/chunks/cli-1.1.25-kn1yv4f6.mjs +2 -0
  190. package/dist/chunks/cli-1.1.25-kpah4ttt.mjs +2 -0
  191. package/dist/chunks/cli-1.1.25-kpv8j6wf.mjs +2 -0
  192. package/dist/chunks/cli-1.1.25-kvwevqsc.mjs +18 -0
  193. package/dist/chunks/cli-1.1.25-m0h0ddew.mjs +2 -0
  194. package/dist/chunks/cli-1.1.25-m86a8tmc.mjs +2 -0
  195. package/dist/chunks/cli-1.1.25-n10jmzvk.mjs +2 -0
  196. package/dist/chunks/cli-1.1.25-n5gb4kx8.mjs +2 -0
  197. package/dist/chunks/cli-1.1.25-n6df4vnz.mjs +2 -0
  198. package/dist/chunks/cli-1.1.25-nh2xj15f.mjs +2 -0
  199. package/dist/chunks/cli-1.1.25-njrez2x5.mjs +12 -0
  200. package/dist/chunks/cli-1.1.25-nmw9agm4.mjs +133 -0
  201. package/dist/chunks/cli-1.1.25-nmxbk4dt.mjs +2 -0
  202. package/dist/chunks/cli-1.1.25-np8863pb.mjs +3 -0
  203. package/dist/chunks/cli-1.1.25-ntfm6tbg.mjs +2 -0
  204. package/dist/chunks/cli-1.1.25-nwdtve8h.mjs +2 -0
  205. package/dist/chunks/cli-1.1.25-nxvqf4sh.mjs +2 -0
  206. package/dist/chunks/cli-1.1.25-p2kmhxd3.mjs +3 -0
  207. package/dist/chunks/cli-1.1.25-p9j8prqh.mjs +2 -0
  208. package/dist/chunks/cli-1.1.25-pcamey8m.mjs +2 -0
  209. package/dist/chunks/cli-1.1.25-peepax79.mjs +66 -0
  210. package/dist/chunks/cli-1.1.25-pgs0x971.mjs +50 -0
  211. package/dist/chunks/cli-1.1.25-px1h2b7d.mjs +2 -0
  212. package/dist/chunks/cli-1.1.25-pxq7zyjb.mjs +2 -0
  213. package/dist/chunks/cli-1.1.25-pzp73p0x.mjs +2 -0
  214. package/dist/chunks/cli-1.1.25-q257pczz.mjs +133 -0
  215. package/dist/chunks/cli-1.1.25-q5qj0wfa.mjs +18 -0
  216. package/dist/chunks/cli-1.1.25-q5tqh3tz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.25-q88hb4qg.mjs +5459 -0
  218. package/dist/chunks/cli-1.1.25-qd1b1zr7.mjs +3 -0
  219. package/dist/chunks/cli-1.1.25-qd1q5w85.mjs +2 -0
  220. package/dist/chunks/cli-1.1.25-qgnyys4j.mjs +6 -0
  221. package/dist/chunks/cli-1.1.25-qp9j9ma3.mjs +24 -0
  222. package/dist/chunks/cli-1.1.25-qpb14xj4.mjs +2 -0
  223. package/dist/chunks/cli-1.1.25-qtjt3cq9.mjs +2 -0
  224. package/dist/chunks/cli-1.1.25-r0dwt4a0.mjs +2 -0
  225. package/dist/chunks/cli-1.1.25-r2a8d0xg.mjs +26 -0
  226. package/dist/chunks/cli-1.1.25-rbapdr02.mjs +2 -0
  227. package/dist/chunks/cli-1.1.25-rbnjv023.mjs +2 -0
  228. package/dist/chunks/cli-1.1.25-rf05pze2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.25-rf0c9c9r.mjs +3 -0
  230. package/dist/chunks/cli-1.1.25-rg5rxmym.mjs +9 -0
  231. package/dist/chunks/cli-1.1.25-rkh9pz84.mjs +2 -0
  232. package/dist/chunks/cli-1.1.25-rqzwndms.mjs +45 -0
  233. package/dist/chunks/cli-1.1.25-rwg08ga2.mjs +39 -0
  234. package/dist/chunks/cli-1.1.25-s1ykc389.mjs +2 -0
  235. package/dist/chunks/cli-1.1.25-s54emewd.mjs +206 -0
  236. package/dist/chunks/cli-1.1.25-s9sv7xk9.mjs +2 -0
  237. package/dist/chunks/cli-1.1.25-sjqg08ww.mjs +2 -0
  238. package/dist/chunks/cli-1.1.25-sm3q65hz.mjs +2 -0
  239. package/dist/chunks/cli-1.1.25-svtt1qhf.mjs +5 -0
  240. package/dist/chunks/cli-1.1.25-sz3dey5y.mjs +2 -0
  241. package/dist/chunks/cli-1.1.25-t6rdfhp9.mjs +3 -0
  242. package/dist/chunks/cli-1.1.25-t80ab9f0.mjs +7 -0
  243. package/dist/chunks/cli-1.1.25-tftyt531.mjs +3 -0
  244. package/dist/chunks/cli-1.1.25-tj3kqgbv.mjs +2 -0
  245. package/dist/chunks/cli-1.1.25-tz7k6gjy.mjs +2 -0
  246. package/dist/chunks/cli-1.1.25-vc7150xz.mjs +2 -0
  247. package/dist/chunks/cli-1.1.25-vkg5fb0z.mjs +2 -0
  248. package/dist/chunks/cli-1.1.25-vwe1fsde.mjs +2 -0
  249. package/dist/chunks/cli-1.1.25-wcw9vrkz.mjs +2 -0
  250. package/dist/chunks/cli-1.1.25-wd0p9nmj.mjs +24 -0
  251. package/dist/chunks/cli-1.1.25-wtrb99c9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.25-wy18zt7a.mjs +3 -0
  253. package/dist/chunks/cli-1.1.25-x26vkphq.mjs +6 -0
  254. package/dist/chunks/cli-1.1.25-x4ww7pe7.mjs +2 -0
  255. package/dist/chunks/cli-1.1.25-xbxtyfje.mjs +2 -0
  256. package/dist/chunks/cli-1.1.25-y0f45gyf.mjs +2 -0
  257. package/dist/chunks/cli-1.1.25-y4xjnn7w.mjs +2 -0
  258. package/dist/chunks/cli-1.1.25-ybe971qx.mjs +15 -0
  259. package/dist/chunks/cli-1.1.25-yctc3qt8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.25-yf3nnsg1.mjs +2 -0
  261. package/dist/chunks/cli-1.1.25-z31z20wf.mjs +2 -0
  262. package/dist/chunks/cli-1.1.25-zk74mh7n.mjs +2 -0
  263. package/dist/chunks/cli-1.1.25-zpzhf7zc.mjs +2 -0
  264. package/dist/chunks/cli-1.1.25-zqqpy89q.mjs +6 -0
  265. package/dist/chunks/cli-1.1.25-zrj2zpkp.mjs +2 -0
  266. package/dist/chunks/client-1.1.25-08n7ywgz.mjs +1 -0
  267. package/dist/chunks/color-1.1.25-n45p3cdv.mjs +1 -0
  268. package/dist/chunks/compact-1.1.25-qqv3fce7.mjs +3 -0
  269. package/dist/chunks/config-1.1.25-bvznkf41.mjs +1 -0
  270. package/dist/chunks/config-1.1.25-n6dtcns2.mjs +1 -0
  271. package/dist/chunks/constants-1.1.25-g61cz55f.mjs +1 -0
  272. package/dist/chunks/context-1.1.25-e3n1bdyd.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.25-6drmca9m.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.25-5xfam12e.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.25-n3q0s4gz.mjs +1 -0
  276. package/dist/chunks/copy-1.1.25-wcjjc2td.mjs +9 -0
  277. package/dist/chunks/cost-1.1.25-czrc10qr.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.25-q7sr5mgy.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.25-abgdr9mn.mjs +1 -0
  280. package/dist/chunks/debug-1.1.25-4284each.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.25-bh5e3czf.mjs +1534 -0
  282. package/dist/chunks/desktop-1.1.25-kb98q9vj.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.25-a7pfgy12.mjs +1 -0
  284. package/dist/chunks/detection-1.1.25-8nzvw5jn.mjs +1 -0
  285. package/dist/chunks/diff-1.1.25-dhnj1tfb.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.25-0x83n5n5.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.25-qmg4yght.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.25-jz9ewwc0.mjs +1 -0
  289. package/dist/chunks/effort-1.1.25-6gemkp3j.mjs +13 -0
  290. package/dist/chunks/engine-1.1.25-hb7ppn8y.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.25-32s3yykr.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.25-trphmt1z.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.25-jew2phex.mjs +1 -0
  294. package/dist/chunks/environments-1.1.25-nkh2j8kv.mjs +1 -0
  295. package/dist/chunks/errors-1.1.25-0t1vtdpj.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.25-n2ktzve3.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.25-2f72pb95.mjs +1 -0
  298. package/dist/chunks/exit-1.1.25-302bsne4.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.25-f47vrcdd.mjs +1 -0
  300. package/dist/chunks/export-1.1.25-655jmasp.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.25-9f3dc9de.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.25-wjzcb1d3.mjs +1 -0
  303. package/dist/chunks/fast-1.1.25-k4a1t9tc.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.25-crmhd8kn.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.25-pr01pvjg.mjs +1 -0
  306. package/dist/chunks/git-1.1.25-r40xnnqg.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.25-8r84eppg.mjs +1 -0
  308. package/dist/chunks/goal-1.1.25-2fz16dne.mjs +4 -0
  309. package/dist/chunks/growthbook-1.1.25-vr1d3g20.mjs +1 -0
  310. package/dist/chunks/headless-1.1.25-b7ma19kx.mjs +2 -0
  311. package/dist/chunks/heapdump-1.1.25-s74fnvr9.mjs +6 -0
  312. package/dist/chunks/help-1.1.25-jphw3nwb.mjs +1 -0
  313. package/dist/chunks/hookChains-1.1.25-wad3j7ae.mjs +3 -0
  314. package/dist/chunks/hooks-1.1.25-5psxtbt2.mjs +79 -0
  315. package/dist/chunks/hooks-1.1.25-n6f1dkc7.mjs +1 -0
  316. package/dist/chunks/ide-1.1.25-21kw5qe1.mjs +3 -0
  317. package/dist/chunks/image-processor-napi-1.1.25-jymb540y.mjs +1 -0
  318. package/dist/chunks/import-1.1.25-71q60jx1.mjs +261 -0
  319. package/dist/chunks/inboundAttachments-1.1.25-qg5v4c4j.mjs +1 -0
  320. package/dist/chunks/index-1.1.25-0f94rjfd.mjs +1 -0
  321. package/dist/chunks/index-1.1.25-0n1ksx20.mjs +2 -0
  322. package/dist/chunks/index-1.1.25-1n597wy3.mjs +1 -0
  323. package/dist/chunks/index-1.1.25-1rwmhexf.mjs +1 -0
  324. package/dist/chunks/index-1.1.25-6160t93h.mjs +30 -0
  325. package/dist/chunks/index-1.1.25-645qcmbw.mjs +9 -0
  326. package/dist/chunks/index-1.1.25-70ggh135.mjs +1 -0
  327. package/dist/chunks/index-1.1.25-7nk5p28a.mjs +1 -0
  328. package/dist/chunks/index-1.1.25-7p7qd15b.mjs +23 -0
  329. package/dist/chunks/index-1.1.25-8z7y79bf.mjs +1 -0
  330. package/dist/chunks/index-1.1.25-affe6cxt.mjs +9 -0
  331. package/dist/chunks/index-1.1.25-bec2ajvp.mjs +1 -0
  332. package/dist/chunks/index-1.1.25-f64qrtc9.mjs +5 -0
  333. package/dist/chunks/index-1.1.25-g7v9zhk1.mjs +1 -0
  334. package/dist/chunks/index-1.1.25-g99896ns.mjs +1 -0
  335. package/dist/chunks/index-1.1.25-hcbmys9p.mjs +1 -0
  336. package/dist/chunks/index-1.1.25-j8rm4qgs.mjs +2 -0
  337. package/dist/chunks/index-1.1.25-kh02yd5c.mjs +1 -0
  338. package/dist/chunks/index-1.1.25-m6k2vy2a.mjs +1 -0
  339. package/dist/chunks/index-1.1.25-pmn6pnjv.mjs +1 -0
  340. package/dist/chunks/index-1.1.25-t0kaa1dy.mjs +1 -0
  341. package/dist/chunks/index-1.1.25-xfdfregs.mjs +1 -0
  342. package/dist/chunks/index-1.1.25-ychm6aj7.mjs +1 -0
  343. package/dist/chunks/init-1.1.25-x7cr3p65.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.25-zcgy02rq.mjs +1 -0
  345. package/dist/chunks/ink-1.1.25-evxr7syt.mjs +1 -0
  346. package/dist/chunks/insights-1.1.25-0zz5y2cs.mjs +870 -0
  347. package/dist/chunks/install-1.1.25-nghrpc4k.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.25-1tb3cz5k.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.25-vsp3sc6d.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.25-e9arjmhp.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.25-dvn7nkzf.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.25-7tf4nkft.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.25-gchxmcv2.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.25-gzy09f8s.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.25-3fvea40c.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.25-1b1z5t2x.mjs +1 -0
  357. package/dist/chunks/log-1.1.25-rhpcv45j.mjs +1 -0
  358. package/dist/chunks/main-1.1.25-hpaj9gzw.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.25-19sxqzbj.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.25-bkgk2vye.mjs +1 -0
  361. package/dist/chunks/mcp-1.1.25-n5bde32b.mjs +17 -0
  362. package/dist/chunks/mcp-1.1.25-wsfk73n2.mjs +4 -0
  363. package/dist/chunks/mcpb-1.1.25-jwd1ff98.mjs +1 -0
  364. package/dist/chunks/memory-1.1.25-ae4515h6.mjs +72 -0
  365. package/dist/chunks/model-1.1.25-kdc32s97.mjs +1 -0
  366. package/dist/chunks/model-1.1.25-x3hpj8mx.mjs +2 -0
  367. package/dist/chunks/node-1.1.25-bmakbgcc.mjs +15 -0
  368. package/dist/chunks/oauth-1.1.25-dpw2v0gf.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.25-frxz7cxz.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.25-ja0xn44t.mjs +1 -0
  371. package/dist/chunks/package-SHMK2LJE-1.1.25-n5senjea.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.25-2w1mb832.mjs +1 -0
  373. package/dist/chunks/parser-1.1.25-226xm2zk.mjs +1 -0
  374. package/dist/chunks/passes-1.1.25-3pbcz45a.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.25-3yb8c211.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.25-g8395q9y.mjs +3 -0
  377. package/dist/chunks/plan-1.1.25-335rgqar.mjs +1 -0
  378. package/dist/chunks/plist-1.1.25-4gx9kzb9.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.25-7twsr9qb.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.25-h43rcveq.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.25-36r120jp.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.25-mq77hmkq.mjs +2 -0
  383. package/dist/chunks/print-1.1.25-nyqwpaw6.mjs +57 -0
  384. package/dist/chunks/process-1.1.25-40rkvfxz.mjs +1 -0
  385. package/dist/chunks/processBashCommand-1.1.25-4rt9wd52.mjs +1 -0
  386. package/dist/chunks/processSlashCommand-1.1.25-50jz8vq4.mjs +9 -0
  387. package/dist/chunks/prompt-1.1.25-ab2m25ry.mjs +1 -0
  388. package/dist/chunks/prompt-1.1.25-tsf93p18.mjs +1 -0
  389. package/dist/chunks/prompts-1.1.25-7asah358.mjs +1 -0
  390. package/dist/chunks/protocolHandler-1.1.25-fjma0898.mjs +13 -0
  391. package/dist/chunks/provider-1.1.25-jcm6xct3.mjs +2 -0
  392. package/dist/chunks/providerProfiles-1.1.25-86yene25.mjs +1 -0
  393. package/dist/chunks/providerValidation-1.1.25-gbve71cz.mjs +6 -0
  394. package/dist/chunks/rate-limit-options-1.1.25-n6v741p7.mjs +1 -0
  395. package/dist/chunks/registerSubcommands-1.1.25-d988tp7q.mjs +26 -0
  396. package/dist/chunks/registry-1.1.25-jda5me4n.mjs +1 -0
  397. package/dist/chunks/release-notes-1.1.25-depx979r.mjs +5 -0
  398. package/dist/chunks/reload-plugins-1.1.25-nc27sfgy.mjs +2 -0
  399. package/dist/chunks/remote-env-1.1.25-adtemst2.mjs +1 -0
  400. package/dist/chunks/remoteBridgeCore-1.1.25-vyw0r3a7.mjs +1 -0
  401. package/dist/chunks/remoteSession-1.1.25-f1hb7zcj.mjs +1 -0
  402. package/dist/chunks/rename-1.1.25-r9khtthn.mjs +1 -0
  403. package/dist/chunks/replBridgeHandle-1.1.25-5tbm27ae.mjs +1 -0
  404. package/dist/chunks/replLauncher-1.1.25-dy1jxrha.mjs +1 -0
  405. package/dist/chunks/resume-1.1.25-qcctpvst.mjs +2 -0
  406. package/dist/chunks/rewind-1.1.25-2tpvsdz2.mjs +1 -0
  407. package/dist/chunks/rootOptions-1.1.25-6gjd4t0k.mjs +1 -0
  408. package/dist/chunks/runWorkflowHeadless-1.1.25-1x11b1xy.mjs +10 -0
  409. package/dist/chunks/sandbox-adapter-1.1.25-2qsj3g4r.mjs +1 -0
  410. package/dist/chunks/sandbox-toggle-1.1.25-tn86q9kj.mjs +1 -0
  411. package/dist/chunks/session-1.1.25-tpnhf7nk.mjs +2 -0
  412. package/dist/chunks/sessionDiscovery-1.1.25-z48aepj2.mjs +1 -0
  413. package/dist/chunks/sessionFileAccessHooks-1.1.25-w9mqv7x2.mjs +1 -0
  414. package/dist/chunks/sessionStorage-1.1.25-f61wmxkh.mjs +1 -0
  415. package/dist/chunks/settings-1.1.25-5f0ye0zf.mjs +1 -0
  416. package/dist/chunks/setup-1.1.25-hq096wz8.mjs +12 -0
  417. package/dist/chunks/sinks-1.1.25-k89ee9jd.mjs +1 -0
  418. package/dist/chunks/skills-1.1.25-zny3acfm.mjs +1 -0
  419. package/dist/chunks/startupProfiler-1.1.25-jrb54jgv.mjs +1 -0
  420. package/dist/chunks/startupUpdateCheck-1.1.25-0e8arnxt.mjs +1 -0
  421. package/dist/chunks/state-1.1.25-2f0mn1s8.mjs +1 -0
  422. package/dist/chunks/stats-1.1.25-w4v85n4m.mjs +1 -0
  423. package/dist/chunks/status-1.1.25-vyxf29s0.mjs +1 -0
  424. package/dist/chunks/stickers-1.1.25-db9b5d86.mjs +1 -0
  425. package/dist/chunks/subprocessEnv-1.1.25-b06h7dn5.mjs +1 -0
  426. package/dist/chunks/tasks-1.1.25-d44s3czy.mjs +1 -0
  427. package/dist/chunks/teamHelpers-1.1.25-yy2zwqy3.mjs +1 -0
  428. package/dist/chunks/teammateModeSnapshot-1.1.25-45w75v4y.mjs +1 -0
  429. package/dist/chunks/teleport-1.1.25-5be1s310.mjs +1 -0
  430. package/dist/chunks/terminalSetup-1.1.25-b5a4adgd.mjs +1 -0
  431. package/dist/chunks/theme-1.1.25-wkyf9b5k.mjs +1 -0
  432. package/dist/chunks/thinkback-1.1.25-6575xnpn.mjs +1 -0
  433. package/dist/chunks/thinkback-play-1.1.25-amw47kg0.mjs +1 -0
  434. package/dist/chunks/toolPool-1.1.25-h7pp3y85.mjs +1 -0
  435. package/dist/chunks/toolSearch-1.1.25-brpn0e66.mjs +1 -0
  436. package/dist/chunks/tools-1.1.25-t4rr3y1m.mjs +1 -0
  437. package/dist/chunks/trustedDevice-1.1.25-dgx4z9gb.mjs +1 -0
  438. package/dist/chunks/turndown.cjs-1.1.25-9c24hgzw.mjs +69 -0
  439. package/dist/chunks/types-1.1.25-tj3y8ycy.mjs +1 -0
  440. package/dist/chunks/ultrareviewCommand-1.1.25-kj7js02p.mjs +4 -0
  441. package/dist/chunks/update-1.1.25-fn4tnxnw.mjs +72 -0
  442. package/dist/chunks/upgrade-1.1.25-zd805a6y.mjs +1 -0
  443. package/dist/chunks/upload-1.1.25-nhsynsbb.mjs +7 -0
  444. package/dist/chunks/upstreamproxy-1.1.25-bh4an4es.mjs +14 -0
  445. package/dist/chunks/url-handler-napi-1.1.25-z7v66h19.mjs +1 -0
  446. package/dist/chunks/usage-1.1.25-0frq9der.mjs +1 -0
  447. package/dist/chunks/util-1.1.25-hqbcvpk3.mjs +1 -0
  448. package/dist/chunks/utils-1.1.25-mqy166xe.mjs +1 -0
  449. package/dist/chunks/vim-1.1.25-0gnwfzcy.mjs +1 -0
  450. package/dist/chunks/watchLoop-1.1.25-dnpy6c6e.mjs +13 -0
  451. package/dist/chunks/watcher-1.1.25-43n00zw0.mjs +1 -0
  452. package/dist/chunks/wiki-1.1.25-mvay6amg.mjs +132 -0
  453. package/dist/chunks/workflows-1.1.25-a2drn8b3.mjs +1 -0
  454. package/dist/chunks/worktree-1.1.25-cghd8r64.mjs +1 -0
  455. package/dist/chunks/worktreeModeEnabled-1.1.25-a15vww7v.mjs +1 -0
  456. package/dist/chunks/wrapper-1.1.25-chacpj74.mjs +7 -0
  457. package/dist/cli.mjs +2 -2
  458. package/package.json +9 -9
  459. package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +0 -1
  460. package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
  461. package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
  462. package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
  463. package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
  464. package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
  465. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
  466. package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
  467. package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
  468. package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
  469. package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
  470. package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
  471. package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
  472. package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
  473. package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
  474. package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
  475. package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
  476. package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
  477. package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
  478. package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
  479. package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
  480. package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
  481. package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
  482. package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
  483. package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
  484. package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
  485. package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
  486. package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
  487. package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
  488. package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
  489. package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
  490. package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
  491. package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
  492. package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
  493. package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
  494. package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
  495. package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
  496. package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
  497. package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
  498. package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
  499. package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
  500. package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
  501. package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
  502. package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
  503. package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
  504. package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
  505. package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
  506. package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
  507. package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
  508. package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
  509. package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
  510. package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
  511. package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
  512. package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
  513. package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
  514. package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
  515. package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
  516. package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
  517. package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
  518. package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
  519. package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
  520. package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
  521. package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
  522. package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
  523. package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
  524. package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
  525. package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
  526. package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
  527. package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
  528. package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
  529. package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
  530. package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
  531. package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
  532. package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
  533. package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
  534. package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
  535. package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
  536. package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
  537. package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
  538. package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
  539. package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
  540. package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
  541. package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
  542. package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
  544. package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
  545. package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
  546. package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
  547. package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
  548. package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
  549. package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
  550. package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
  551. package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
  552. package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
  553. package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
  554. package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
  555. package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
  556. package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
  557. package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
  558. package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
  559. package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
  561. package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
  562. package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
  563. package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
  564. package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
  565. package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
  566. package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
  567. package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
  568. package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
  569. package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
  570. package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
  571. package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
  572. package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
  573. package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
  574. package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
  575. package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
  576. package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
  577. package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
  578. package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
  579. package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
  580. package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
  581. package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
  582. package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
  583. package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
  584. package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
  585. package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
  586. package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
  587. package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
  588. package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
  589. package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
  590. package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
  591. package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
  592. package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
  593. package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
  594. package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
  595. package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
  596. package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
  597. package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
  598. package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
  599. package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
  600. package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
  601. package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
  602. package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
  603. package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
  604. package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
  605. package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
  606. package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
  607. package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
  608. package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
  609. package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
  610. package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
  611. package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
  612. package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
  613. package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
  614. package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
  615. package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
  616. package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
  617. package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
  618. package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
  619. package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
  620. package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
  621. package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
  622. package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
  623. package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
  624. package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
  625. package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
  626. package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
  627. package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
  628. package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
  629. package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
  630. package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
  631. package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
  632. package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
  633. package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
  634. package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
  635. package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
  636. package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
  637. package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
  638. package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
  639. package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
  640. package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
  641. package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
  642. package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
  643. package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
  644. package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
  645. package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
  646. package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
  647. package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
  648. package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
  649. package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
  650. package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
  651. package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
  652. package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
  653. package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
  654. package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
  655. package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
  656. package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
  657. package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
  658. package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
  659. package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
  660. package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
  661. package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
  662. package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
  663. package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
  664. package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
  665. package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
  666. package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
  667. package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
  668. package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
  669. package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
  670. package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
  671. package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
  672. package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
  673. package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
  674. package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
  675. package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
  676. package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
  677. package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
  678. package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
  679. package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
  680. package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
  681. package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
  682. package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
  683. package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
  684. package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
  685. package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
  686. package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
  687. package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
  688. package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
  689. package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
  690. package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
  691. package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
  692. package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
  693. package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
  694. package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
  695. package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
  696. package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
  697. package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
  698. package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
  699. package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
  700. package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
  701. package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
  702. package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
  703. package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
  704. package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
  705. package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
  706. package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
  707. package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
  708. package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
  709. package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
  710. package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
  711. package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
  712. package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
  713. package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
  714. package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
  715. package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
  716. package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
  717. package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
  718. package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
  719. package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
  720. package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
  721. package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
  722. package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
  723. package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
  724. package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
  725. package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
  726. package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
  727. package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
  728. package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
  729. package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
  730. package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
  731. package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
  732. package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
  733. package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
  734. package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
  735. package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
  736. package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
  737. package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
  738. package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
  739. package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
  740. package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
  741. package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
  742. package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
  743. package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
  744. package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
  745. package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
  746. package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
  747. package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
  748. package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
  749. package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
  750. package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
  751. package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
  752. package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
  753. package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
  754. package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
  755. package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
  756. package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
  757. package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
  758. package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
  759. package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
  760. package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
  761. package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
  762. package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
  763. package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
  764. package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
  765. package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
  766. package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
  767. package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
  768. package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
  769. package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
  770. package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
  771. package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
  772. package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
  773. package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
  774. package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
  775. package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
  776. package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
  777. package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
  778. package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
  779. package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
  780. package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
  781. package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
  782. package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
  783. package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
  784. package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
  785. package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
  786. package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
  787. package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
  788. package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
  789. package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
  790. package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
  791. package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
  792. package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
  793. package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
  794. package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
  795. package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
  796. package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
  797. package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
  798. package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
  799. package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
  800. package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
  801. package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
  802. package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
  803. package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
  804. package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
  805. package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
  806. package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
  807. package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
  808. package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
  809. package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
  810. package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
  811. package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
  812. package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
  813. package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
  814. package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
  815. package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
  816. package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
  817. package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
  818. package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
  819. package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
  820. package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
  821. package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
  822. package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
  823. package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
  824. package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
  825. package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
  826. package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
  827. package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
  828. package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
  829. package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
  830. package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
  831. package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
  832. package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
  833. package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
  834. package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
  835. package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
  836. package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
  837. package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
  838. package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
  839. package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
  840. package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
  841. package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
  842. package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
  843. package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
  844. package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
  845. package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
  846. package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
  847. package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
  848. package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
  849. package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
  850. package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
  851. package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
  852. package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
  853. package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
  854. package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
  855. package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
  856. package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
  857. package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
  858. package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
  859. package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
  860. package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
  861. package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
  862. package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
  863. package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
  864. package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
  865. package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
  866. package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
  867. package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
  868. package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
  869. package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
  870. package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
  871. package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
  872. package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
  873. package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
  874. package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
  875. package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
  876. package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
  877. package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
  878. package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
  879. package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
  880. package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
  881. package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
  882. package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
  883. package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
  884. package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
  885. package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
  886. package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
  887. package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
  888. package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
  889. package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
  890. package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
  891. package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
  892. package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
  893. package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
  894. package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
  895. package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
  896. package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
  897. package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
  898. package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
  899. package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
  900. package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
  901. package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
  902. package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
  903. package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
  904. package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
  905. package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
  906. package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
  907. package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
  908. package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
  909. package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
  910. package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
  911. package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
  912. /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
@@ -1 +0,0 @@
1
- import{Bf as o0,Cf as Pq,Df as l0,Ef as Mq,Ff as v0,Gf as Bq,Hf as S0,If as Aq}from"./cli-1.1.23-3t45wkcy.mjs";import{Kf as Eq,Lf as hq,Nf as Dq}from"./cli-1.1.23-y3ea6683.mjs";import"./cli-1.1.23-1fy18jhn.mjs";import{Fg as Kq,Gg as jq}from"./cli-1.1.23-cp5z31eb.mjs";import{$N as Zq,CN as B0,DG as Jq,IN as fq,JN as zq,KG as uq,TN as Xq,WN as Yq,XN as yq,ao as J0,ay as F0,bo as t0,co as W0,cy as Rq,do as e0,dy as _0,eo as y0,fo as qq,io as P0,jo as Gq,uN as b0,vI as M0,wI as Qq}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import{UW as Vq,XW as lq}from"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import{NY as r0,OY as Nq,PY as s0}from"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import{PZ as A0,T1 as d0,YZ as X0,k1 as u,m1 as L,o1 as U,s1 as f0}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import"./cli-1.1.23-v5e3cr99.mjs";import"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import{p4 as J,q4 as W,r4 as m}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as U0}from"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-4tcfdexs.mjs";import"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Ada as a0,Bda as Fq,J_ as w,Jda as n0,K_ as u0}from"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import{ela as kq,pla as dq}from"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as o,Fta as Q0}from"./cli-1.1.23-bdj1ne1r.mjs";function j0({agentServer:G,onCancel:q,onComplete:Q}){let[X]=X0(),[y,M]=d.useState(!1),[B,Y]=d.useState(null),[O,D]=d.useState(null),R=d.useRef(null);d.useEffect(()=>()=>R.current?.abort(),[]);let T=d.useCallback(()=>{if(y)R.current?.abort(),R.current=null,M(!1),D(null)},[y]);r0("confirm:no",T,{context:"Confirmation",isActive:y});let b=d.useCallback(async()=>{if(!G.needsAuth||!G.url)return;M(!0),Y(null);let N=new AbortController;R.current=N;try{let H={type:G.transport,url:G.url};await Yq(G.name,H,D,N.signal),Q?.(`Authentication successful for ${G.name}. The server will connect when the agent runs.`)}catch(H){if(H instanceof Error&&!(H instanceof Xq))Y(H.message)}finally{M(!1),R.current=null}},[G,Q]),k=a0(String(G.name));if(y)return W(L,{flexDirection:"column",gap:1,padding:1,children:[W(U,{color:"claude",children:["Authenticating with ",G.name,"…"]}),W(L,{children:[J(M0,{}),J(U,{children:" A browser window will open for authentication"})]}),O&&W(L,{flexDirection:"column",children:[J(U,{dimColor:!0,children:"If your browser doesn't open automatically, copy this URL manually:"}),J(f0,{url:O})]}),J(L,{marginLeft:3,children:W(U,{dimColor:!0,children:["Return here after authenticating in your browser."," ",J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]})})]});let f=[];if(G.needsAuth)f.push({label:G.isAuthenticated?"Re-authenticate":"Authenticate",value:"auth"});return f.push({label:"Back",value:"back"}),W(P0,{title:`${k} MCP Server`,subtitle:"agent-only",onCancel:q,inputGuide:(N)=>N.pending?W(U,{children:["Press ",N.keyName," again to exit"]}):W(y0,{children:[J(J0,{shortcut:"↑↓",action:"navigate"}),J(J0,{shortcut:"Enter",action:"confirm"}),J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})]}),children:[W(L,{flexDirection:"column",gap:0,children:[W(L,{children:[J(U,{bold:!0,children:"Type: "}),J(U,{dimColor:!0,children:G.transport})]}),G.url&&W(L,{children:[J(U,{bold:!0,children:"URL: "}),J(U,{dimColor:!0,children:G.url})]}),G.command&&W(L,{children:[J(U,{bold:!0,children:"Command: "}),J(U,{dimColor:!0,children:G.command})]}),W(L,{children:[J(U,{bold:!0,children:"Used by: "}),J(U,{dimColor:!0,children:G.sourceAgents.join(", ")})]}),W(L,{marginTop:1,children:[J(U,{bold:!0,children:"Status: "}),W(U,{children:[u("inactive",X)(w.radioOff)," not connected (agent-only)"]})]}),G.needsAuth&&W(L,{children:[J(U,{bold:!0,children:"Auth: "}),G.isAuthenticated?W(U,{children:[u("success",X)(w.tick)," authenticated"]}):W(U,{children:[u("warning",X)(w.triangleUpOutline)," may need authentication"]})]})]}),J(L,{children:J(U,{dimColor:!0,children:"This server connects only when running the agent."})}),B&&J(L,{children:W(U,{color:"error",children:["Error: ",B]})}),J(L,{children:J(Jq,{options:f,onChange:async(N)=>{switch(N){case"auth":await b();break;case"back":q();break}},onCancel:q})})]})}var d;var m0=Q0(()=>{u0();d0();s0();Zq();n0();e0();uq();qq();Gq();t0();Qq();m();d=o(U0(),1)});function Uq(G){switch(G){case"project":return{label:"Project MCPs",path:B0(G)};case"user":return{label:"User MCPs",path:B0(G)};case"local":return{label:"Local MCPs",path:B0(G)};case"enterprise":return{label:"Enterprise MCPs"};case"dynamic":return{label:"Built-in MCPs",path:"always available"};default:return{label:G}}}function mq(G){let q=new Map;for(let Q of G){let X=Q.scope;if(!q.has(X))q.set(X,[]);q.get(X).push(Q)}for(let[,Q]of q)Q.sort((X,y)=>X.name.localeCompare(y.name));return q}function p0(G){let q=Lq.c(78),{servers:Q,agentServers:X,onSelectServer:y,onSelectAgentServer:M,onComplete:B}=G,Y;if(q[0]!==X)Y=X===void 0?[]:X,q[0]=X,q[1]=Y;else Y=q[1];let O=Y,[D]=X0(),[R,T]=Oq.useState(0),b;if(q[2]!==Q){let Z=Q.filter(oq);b=mq(Z),q[2]=Q,q[3]=b}else b=q[3];let k=b,f;if(q[4]!==Q)f=Q.filter(cq).sort(xq),q[4]=Q,q[5]=f;else f=q[5];let N=f,H;if(q[6]!==k)H=(k.get("dynamic")??[]).sort(_q),q[6]=k,q[7]=H;else H=q[7];let P=H,C;if(q[8]===Symbol.for("react.memo_cache_sentinel"))C=Uq("dynamic"),q[8]=C;else C=q[8];let l=C,K;if(q[9]!==O||q[10]!==N||q[11]!==P||q[12]!==k){K=[];for(let Z of Wq){let A=k.get(Z)??[];for(let I of A)K.push({type:"server",server:I})}for(let Z of N)K.push({type:"server",server:Z});for(let Z of O)K.push({type:"agent-server",agentServer:Z});for(let Z of P)K.push({type:"server",server:Z});q[9]=O,q[10]=N,q[11]=P,q[12]=k,q[13]=K}else K=q[13];let z=K,V;if(q[14]!==B)V=()=>{B("MCP dialog dismissed",{display:"system"})},q[14]=B,q[15]=V;else V=q[15];let E=V,F;if(q[16]!==M||q[17]!==y||q[18]!==z||q[19]!==R)F=()=>{let Z=z[R];if(!Z)return;if(Z.type==="server")y(Z.server);else if(Z.type==="agent-server"&&M)M(Z.agentServer)},q[16]=M,q[17]=y,q[18]=z,q[19]=R,q[20]=F;else F=q[20];let h=F,p,g;if(q[21]!==z)g=()=>T((Z)=>Z===0?z.length-1:Z-1),p=()=>T((Z)=>Z===z.length-1?0:Z+1),q[21]=z,q[22]=p,q[23]=g;else p=q[22],g=q[23];let S;if(q[24]!==E||q[25]!==h||q[26]!==p||q[27]!==g)S={"confirm:previous":g,"confirm:next":p,"confirm:yes":h,"confirm:no":E},q[24]=E,q[25]=h,q[26]=p,q[27]=g,q[28]=S;else S=q[28];let v;if(q[29]===Symbol.for("react.memo_cache_sentinel"))v={context:"Confirmation"},q[29]=v;else v=q[29];Nq(S,v);let _;if(q[30]!==z)_=(Z)=>z.findIndex((A)=>A.type==="server"&&A.server===Z),q[30]=z,q[31]=_;else _=q[31];let N0=_,i;if(q[32]!==z)i=(Z)=>z.findIndex((A)=>A.type==="agent-server"&&A.agentServer===Z),q[32]=z,q[33]=i;else i=q[33];let Z0=i,$;if(q[34]===Symbol.for("react.memo_cache_sentinel"))$=kq(),q[34]=$;else $=q[34];let Cq=$,z0;if(q[35]!==Q)z0=Q.some(gq),q[35]=Q,q[36]=z0;else z0=q[36];let h0=z0;if(Q.length===0&&O.length===0)return null;let K0;if(q[37]!==N0||q[38]!==R||q[39]!==D)K0=(Z)=>{let A=N0(Z),I=R===A,j,c;if(Z.client.type==="disabled")j=u("inactive",D)(w.radioOff),c="disabled";else if(Z.client.type==="connected")j=u("success",D)(w.tick),c="connected";else if(Z.client.type==="pending"){j=u("inactive",D)(w.radioOff);let{reconnectAttempt:i0,maxReconnectAttempts:$0}=Z.client;if(i0&&$0)c=`reconnecting (${i0}/${$0})…`;else c="connecting…"}else if(Z.client.type==="needs-auth")j=u("warning",D)(w.triangleUpOutline),c="needs authentication";else j=u("error",D)(w.cross),c="failed";return W(L,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${w.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",j," "]}),J(U,{dimColor:!I,children:c})]},`${Z.name}-${A}`)},q[37]=N0,q[38]=R,q[39]=D,q[40]=K0;else K0=q[40];let x=K0,L0;if(q[41]!==Z0||q[42]!==R||q[43]!==D)L0=(Z)=>{let A=Z0(Z),I=R===A,j=Z.needsAuth?u("warning",D)(w.triangleUpOutline):u("inactive",D)(w.radioOff),c=Z.needsAuth?"may need auth":"agent-only";return W(L,{children:[J(U,{color:I?"suggestion":void 0,children:I?`${w.pointer} `:" "}),J(U,{color:I?"suggestion":void 0,children:Z.name}),W(U,{dimColor:!I,children:[" · ",j," "]}),J(U,{dimColor:!I,children:c})]},`agent-${Z.name}-${A}`)},q[41]=Z0,q[42]=R,q[43]=D,q[44]=L0;else L0=q[44];let T0=L0,O0=Q.length+O.length,R0;if(q[45]===Symbol.for("react.memo_cache_sentinel"))R0=J(Kq,{}),q[45]=R0;else R0=q[45];let E0;if(q[46]!==O0)E0=Fq(O0,"server"),q[46]=O0,q[47]=E0;else E0=q[47];let C0=`${O0} ${E0}`,a;if(q[48]!==x||q[49]!==k)a=Wq.map((Z)=>{let A=k.get(Z);if(!A||A.length===0)return null;let I=Uq(Z);return W(L,{flexDirection:"column",marginBottom:1,children:[W(L,{paddingLeft:2,children:[J(U,{bold:!0,children:I.label}),I.path&&W(U,{dimColor:!0,children:[" (",I.path,")"]})]}),A.map((j)=>x(j))]},Z)}),q[48]=x,q[49]=k,q[50]=a;else a=q[50];let n;if(q[51]!==N||q[52]!==x)n=N.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[J(L,{paddingLeft:2,children:J(U,{bold:!0,children:"claude.ai"})}),N.map((Z)=>x(Z))]}),q[51]=N,q[52]=x,q[53]=n;else n=q[53];let r;if(q[54]!==O||q[55]!==T0)r=O.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[J(L,{paddingLeft:2,children:J(U,{bold:!0,children:"Agent MCPs"})}),[...new Set(O.flatMap(pq))].map((Z)=>W(L,{flexDirection:"column",marginTop:1,children:[J(L,{paddingLeft:2,children:W(U,{dimColor:!0,children:["@",Z]})}),O.filter((A)=>A.sourceAgents.includes(Z)).map((A)=>T0(A))]},Z))]}),q[54]=O,q[55]=T0,q[56]=r;else r=q[56];let s;if(q[57]!==P||q[58]!==x)s=P.length>0&&W(L,{flexDirection:"column",marginBottom:1,children:[W(L,{paddingLeft:2,children:[J(U,{bold:!0,children:l.label}),l.path&&W(U,{dimColor:!0,children:[" (",l.path,")"]})]}),P.map((Z)=>x(Z))]}),q[57]=P,q[58]=x,q[59]=s;else s=q[59];let t;if(q[60]!==h0)t=h0&&J(U,{dimColor:!0,children:Cq?"※ Error logs shown inline with --debug":"※ Run claude --debug to see error logs"}),q[60]=h0,q[61]=t;else t=q[61];let D0;if(q[62]===Symbol.for("react.memo_cache_sentinel"))D0=W(U,{dimColor:!0,children:[J(f0,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})," ","for help"]}),q[62]=D0;else D0=q[62];let e;if(q[63]!==t)e=W(L,{flexDirection:"column",children:[t,D0]}),q[63]=t,q[64]=e;else e=q[64];let q0;if(q[65]!==a||q[66]!==n||q[67]!==r||q[68]!==s||q[69]!==e)q0=W(L,{flexDirection:"column",children:[a,n,r,s,e]}),q[65]=a,q[66]=n,q[67]=r,q[68]=s,q[69]=e,q[70]=q0;else q0=q[70];let G0;if(q[71]!==E||q[72]!==C0||q[73]!==q0)G0=J(P0,{title:"Manage MCP servers",subtitle:C0,onCancel:E,hideInputGuide:!0,children:q0}),q[71]=E,q[72]=C0,q[73]=q0,q[74]=G0;else G0=q[74];let H0;if(q[75]===Symbol.for("react.memo_cache_sentinel"))H0=J(L,{paddingX:1,children:J(U,{dimColor:!0,italic:!0,children:W(y0,{children:[J(J0,{shortcut:"↑↓",action:"navigate"}),J(J0,{shortcut:"Enter",action:"confirm"}),J(W0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[75]=H0;else H0=q[75];let V0;if(q[76]!==G0)V0=W(L,{flexDirection:"column",children:[R0,G0,H0]}),q[76]=G0,q[77]=V0;else V0=q[77];return V0}function pq(G){return G.sourceAgents}function gq(G){return G.client.type==="failed"}function _q(G,q){return G.name.localeCompare(q.name)}function xq(G,q){return G.name.localeCompare(q.name)}function cq(G){return G.client.config.type==="claudeai-proxy"}function oq(G){return G.client.config.type!=="claudeai-proxy"}var Lq,Oq,Wq;var g0=Q0(()=>{u0();d0();s0();zq();dq();n0();e0();qq();Gq();t0();jq();m();Lq=o(A0(),1),Oq=o(U0(),1),Wq=["project","local","user","enterprise"]});function x0(G){let q=Hq.c(25),{serverName:Q,onComplete:X}=G,[y]=X0(),M=Rq(),B=Eq(),[Y,O]=k0.useState(!0),[D,R]=k0.useState(null),T,b;if(q[0]!==X||q[1]!==B||q[2]!==Q||q[3]!==M)T=()=>{(async function(){try{if(!M.getState().mcp.clients.find((P)=>P.name===Q)){R(`MCP server "${Q}" not found`),O(!1),X(`MCP server "${Q}" not found`);return}let H=await B(Q);q:switch(H.client.type){case"connected":{O(!1),X(`Successfully reconnected to ${Q}`);break q}case"needs-auth":{R(`${Q} requires authentication`),O(!1),X(`${Q} requires authentication. Use /mcp to authenticate.`);break q}case"pending":case"failed":case"disabled":R(`Failed to reconnect to ${Q}`),O(!1),X(`Failed to reconnect to ${Q}`)}}catch(N){let H=N,P=H instanceof Error?H.message:String(H);R(P),O(!1),X(`Error: ${P}`)}})()},b=[Q,B,M,X],q[0]=X,q[1]=B,q[2]=Q,q[3]=M,q[4]=T,q[5]=b;else T=q[4],b=q[5];if(k0.useEffect(T,b),Y){let k;if(q[6]!==Q)k=W(U,{color:"text",children:["Reconnecting to ",J(U,{bold:!0,children:Q})]}),q[6]=Q,q[7]=k;else k=q[7];let f;if(q[8]===Symbol.for("react.memo_cache_sentinel"))f=W(L,{children:[J(M0,{}),J(U,{children:" Establishing connection to MCP server"})]}),q[8]=f;else f=q[8];let N;if(q[9]!==k)N=W(L,{flexDirection:"column",gap:1,padding:1,children:[k,f]}),q[9]=k,q[10]=N;else N=q[10];return N}if(D){let k;if(q[11]!==y)k=u("error",y)(w.cross),q[11]=y,q[12]=k;else k=q[12];let f;if(q[13]!==k)f=W(U,{children:[k," "]}),q[13]=k,q[14]=f;else f=q[14];let N;if(q[15]!==Q)N=W(U,{color:"error",children:["Failed to reconnect to ",Q]}),q[15]=Q,q[16]=N;else N=q[16];let H;if(q[17]!==f||q[18]!==N)H=W(L,{children:[f,N]}),q[17]=f,q[18]=N,q[19]=H;else H=q[19];let P;if(q[20]!==D)P=W(U,{dimColor:!0,children:["Error: ",D]}),q[20]=D,q[21]=P;else P=q[21];let C;if(q[22]!==H||q[23]!==P)C=W(L,{flexDirection:"column",gap:1,padding:1,children:[H,P]}),q[22]=H,q[23]=P,q[24]=C;else C=q[24];return C}return null}var Hq,k0;var c0=Q0(()=>{u0();d0();Dq();_0();Qq();m();Hq=o(A0(),1),k0=o(U0(),1)});function I0(G){let q=bq.c(66),{onComplete:Q}=G,X=F0($q),y=F0(iq),M=X.clients,B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B={type:"list"},q[0]=B;else B=q[0];let[Y,O]=Y0.default.useState(B),D;if(q[1]===Symbol.for("react.memo_cache_sentinel"))D=[],q[1]=D;else D=q[1];let[R,T]=Y0.default.useState(D),b;if(q[2]!==y.allAgents)b=fq(y.allAgents),q[2]=y.allAgents,q[3]=b;else b=q[3];let k=b,f;if(q[4]!==M)f=M.filter(Sq).sort(vq),q[4]=M,q[5]=f;else f=q[5];let N=f,H,P;if(q[6]!==N||q[7]!==X.tools)H=()=>{let K=!1;return async function(){let E=await Promise.all(N.map(async(F)=>{let h=F.config.scope,p=F.config.type==="sse",g=F.config.type==="http",S=F.config.type==="claudeai-proxy",v=void 0;if(p||g){let i=await new yq(F.name,F.config).tokens(),Z0=Vq()!==null&&F.type==="connected",$=F.type==="connected"&&b0(X.tools,F.name).length>0;v=Boolean(i)||Z0||$}let _={name:F.name,client:F,scope:h};if(S)return{..._,transport:"claudeai-proxy",isAuthenticated:!1,config:F.config};else if(p)return{..._,transport:"sse",isAuthenticated:v,config:F.config};else if(g)return{..._,transport:"http",isAuthenticated:v,config:F.config};else return{..._,transport:"stdio",config:F.config}}));if(K)return;T(E)}(),()=>{K=!0}},P=[N,X.tools],q[6]=N,q[7]=X.tools,q[8]=H,q[9]=P;else H=q[8],P=q[9];Y0.default.useEffect(H,P);let C,l;if(q[10]!==k.length||q[11]!==N.length||q[12]!==Q||q[13]!==R.length)C=()=>{if(R.length===0&&N.length>0)return;if(R.length===0&&k.length===0)Q("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},l=[R.length,N.length,k.length,Q],q[10]=k.length,q[11]=N.length,q[12]=Q,q[13]=R.length,q[14]=C,q[15]=l;else C=q[14],l=q[15];switch(Y0.useEffect(C,l),Y.type){case"list":{let K,z;if(q[16]===Symbol.for("react.memo_cache_sentinel"))z=(E)=>O({type:"server-menu",server:E}),K=(E)=>O({type:"agent-server-menu",agentServer:E}),q[16]=K,q[17]=z;else K=q[16],z=q[17];let V;if(q[18]!==k||q[19]!==Q||q[20]!==R||q[21]!==Y.defaultTab)V=J(p0,{servers:R,agentServers:k,onSelectServer:z,onSelectAgentServer:K,onComplete:Q,defaultTab:Y.defaultTab}),q[18]=k,q[19]=Q,q[20]=R,q[21]=Y.defaultTab,q[22]=V;else V=q[22];return V}case"server-menu":{let K;if(q[23]!==X.tools||q[24]!==Y.server.name)K=b0(X.tools,Y.server.name),q[23]=X.tools,q[24]=Y.server.name,q[25]=K;else K=q[25];let z=K,V=Y.server.transport==="claudeai-proxy"?"claude.ai":"Claude Code";if(Y.server.transport==="stdio"){let E;if(q[26]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[26]=Y.server,q[27]=E;else E=q[27];let F;if(q[28]!==V)F=()=>O({type:"list",defaultTab:V}),q[28]=V,q[29]=F;else F=q[29];let h;if(q[30]!==Q||q[31]!==z.length||q[32]!==E||q[33]!==F||q[34]!==Y.server)h=J(l0,{server:Y.server,serverToolsCount:z.length,onViewTools:E,onCancel:F,onComplete:Q}),q[30]=Q,q[31]=z.length,q[32]=E,q[33]=F,q[34]=Y.server,q[35]=h;else h=q[35];return h}else{let E;if(q[36]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[36]=Y.server,q[37]=E;else E=q[37];let F;if(q[38]!==V)F=()=>O({type:"list",defaultTab:V}),q[38]=V,q[39]=F;else F=q[39];let h;if(q[40]!==Q||q[41]!==z.length||q[42]!==E||q[43]!==F||q[44]!==Y.server)h=J(o0,{server:Y.server,serverToolsCount:z.length,onViewTools:E,onCancel:F,onComplete:Q}),q[40]=Q,q[41]=z.length,q[42]=E,q[43]=F,q[44]=Y.server,q[45]=h;else h=q[45];return h}}case"server-tools":{let K,z;if(q[46]!==Y.server)z=(E,F)=>O({type:"server-tool-detail",server:Y.server,toolIndex:F}),K=()=>O({type:"server-menu",server:Y.server}),q[46]=Y.server,q[47]=K,q[48]=z;else K=q[47],z=q[48];let V;if(q[49]!==K||q[50]!==z||q[51]!==Y.server)V=J(S0,{server:Y.server,onSelectTool:z,onBack:K}),q[49]=K,q[50]=z,q[51]=Y.server,q[52]=V;else V=q[52];return V}case"server-tool-detail":{let K;if(q[53]!==X.tools||q[54]!==Y.server.name)K=b0(X.tools,Y.server.name),q[53]=X.tools,q[54]=Y.server.name,q[55]=K;else K=q[55];let V=K[Y.toolIndex];if(!V)return O({type:"server-tools",server:Y.server}),null;let E;if(q[56]!==Y.server)E=()=>O({type:"server-tools",server:Y.server}),q[56]=Y.server,q[57]=E;else E=q[57];let F;if(q[58]!==E||q[59]!==V||q[60]!==Y.server)F=J(v0,{tool:V,server:Y.server,onBack:E}),q[58]=E,q[59]=V,q[60]=Y.server,q[61]=F;else F=q[61];return F}case"agent-server-menu":{let K;if(q[62]===Symbol.for("react.memo_cache_sentinel"))K=()=>O({type:"list",defaultTab:"Agents"}),q[62]=K;else K=q[62];let z;if(q[63]!==Q||q[64]!==Y.agentServer)z=J(j0,{agentServer:Y.agentServer,onCancel:K,onComplete:Q}),q[63]=Q,q[64]=Y.agentServer,q[65]=z;else z=q[65];return z}}}function vq(G,q){return G.name.localeCompare(q.name)}function Sq(G){return G.name!=="ide"}function iq(G){return G.agentDefinitions}function $q(G){return G.mcp}var bq,Y0;var Iq=Q0(()=>{Zq();zq();_0();lq();m0();g0();Pq();Mq();Bq();Aq();m();bq=o(A0(),1),Y0=o(U0(),1)});var wq=Q0(()=>{m0();g0();c0();Pq();Iq();Mq();Bq();Aq()});function aq(G){let q=Tq.c(7),{action:Q,target:X,onComplete:y}=G,M=F0(rq),B=hq(),Y=w0.useRef(!1),O,D;if(q[0]!==Q||q[1]!==M||q[2]!==y||q[3]!==X||q[4]!==B)O=()=>{if(Y.current)return;Y.current=!0;let R=Q==="enable",T=M.filter(nq),b=X==="all"?T.filter((k)=>R?k.type==="disabled":k.type!=="disabled"):T.filter((k)=>k.name===X);if(b.length===0){y(X==="all"?`All MCP servers are already ${R?"enabled":"disabled"}`:`MCP server "${X}" not found`);return}for(let k of b)B(k.name);y(X==="all"?`${R?"Enabled":"Disabled"} ${b.length} MCP server(s)`:`MCP server "${X}" ${R?"enabled":"disabled"}`)},D=[Q,X,M,B,y],q[0]=Q,q[1]=M,q[2]=y,q[3]=X,q[4]=B,q[5]=O,q[6]=D;else O=q[5],D=q[6];return w0.useEffect(O,D),null}function nq(G){return G.name!=="ide"}function rq(G){return G.mcp.clients}async function UJ(G,q,Q){if(Q){let X=Q.trim().split(/\s+/);if(X[0]==="no-redirect")return J(I0,{onComplete:G});if(X[0]==="reconnect"&&X[1])return J(x0,{serverName:X.slice(1).join(" "),onComplete:G});if(X[0]==="enable"||X[0]==="disable")return J(aq,{action:X[0],target:X.length>1?X.slice(1).join(" "):"all",onComplete:G})}return J(I0,{onComplete:G})}var Tq,w0;var sq=Q0(()=>{wq();c0();Dq();_0();m();Tq=o(A0(),1),w0=o(U0(),1)});sq();export{UJ as call};
@@ -1 +0,0 @@
1
- import{Fta as z}from"./cli-1.1.23-bdj1ne1r.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
@@ -1,72 +0,0 @@
1
- import{Kg as LJ,Mg as NQ}from"./cli-1.1.23-1a2n71wn.mjs";import{$T as HQ,CE as gq,DE as mJ,DG as nq,GE as dq,HE as lJ,KG as iJ,WT as kq,XT as JJ,YT as QJ,ZT as ZJ,ay as bq,dU as Uq,dy as nJ,eU as bJ,im as cq,io as VJ,jo as LQ,lm as uJ,rU as iq,vG as Cq,wG as sJ}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import{NY as y,PY as $J,SY as uq,TY as gJ}from"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import{PZ as hq,T1 as Aq,m1 as S,o1 as C,s1 as XJ}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import"./cli-1.1.23-v5e3cr99.mjs";import"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import{p4 as k,q4 as K,r4 as _}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as pq}from"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import{Q4 as $q,S4 as dJ}from"./cli-1.1.23-4tcfdexs.mjs";import"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import{w9 as Dq,x9 as yJ}from"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Bea as zq,Eea as fq,Kea as Eq,Nea as Fq,Oea as jq,Pea as xJ,Raa as Pq,Tea as WJ,Uea as zJ,Y$ as wJ,Yea as cJ,Zea as yq,dba as pJ,gea as Nq,gha as HJ,oha as VQ,v$ as Sq,wea as hJ,xea as T}from"./cli-1.1.23-keftnbc6.mjs";import{Hha as _q,Lha as fJ}from"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import{vja as rq,xja as UQ}from"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import{jka as Lq,mka as PJ}from"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import{Nla as KJ,Tla as XQ}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as p,fma as Tq}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as DJ,Rna as Mq}from"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as Wq,Cta as _J,Fta as b}from"./cli-1.1.23-bdj1ne1r.mjs";function vq(J){return Sq(J)!==null}var Oq=b(()=>{wJ()});import{basename as RJ,join as MJ}from"path";function TJ(J){return J.type==="Project"&&J.parent===void 0&&jq(RJ(J.path))}function wq(J,q){let U=new Set(J.filter(TJ).map((Z)=>Z.path));return Fq(q,(Z)=>U.has(Z))??MJ(q,Eq)}var xq=b(()=>{xJ()});import{mkdir as rJ}from"fs/promises";import{basename as aJ,join as oJ}from"path";function lq(J){let q=mq.c(58),{onSelect:U,onCancel:Z}=J,z=H.use(Uq()),V=Mq(),L=oJ(p(),"CLAUDE.md"),A=wq(z,V),h=aJ(A),CJ=z.some((Q)=>Q.path===L),AJ=z.some((Q)=>Q.path===A),IJ=[...z.filter(zQ).map(WQ),...CJ?[]:[{path:L,type:"User",content:"",exists:!1}],...AJ?[]:[{path:A,type:"Project",content:"",exists:!1}]],Iq=new Map,N=IJ.map((Q)=>{let W=Pq(Q.path),Vq=Q.exists?"":" (new)",Qq=Q.parent?(Iq.get(Q.parent)??0)+1:0;Iq.set(Q.path,Qq);let FJ=Qq>0?" ".repeat(Qq-1):"",P;if(Q.type==="User"&&!Q.isNested&&Q.path===L)P="User memory";else if(Q.type==="Project"&&!Q.isNested&&Q.path===A)P="Project memory";else if(Qq>0)P=`${FJ}L ${W}${Vq}`;else P=`${W}`;let M,jJ=vq(V);if(Q.type==="User"&&!Q.isNested)M="Saved in ~/.claudin/CLAUDE.md";else if(Q.type==="Project"&&!Q.isNested&&Q.path===A)M=`${jJ?"Checked in at":"Saved in"} ./${h}`;else if(Q.parent)M="@-imported";else if(Q.isNested)M="dynamically loaded";else M="";return{label:P,value:Q.path,description:M}}),c=[],SJ=bq(ZQ);if(T()){let Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q={label:"Open auto-memory folder",value:`${f}${zq()}`,description:""},q[0]=Q;else Q=q[0];if(c.push(Q),Rq?.isTeamMemoryEnabled()){let W;if(q[1]===Symbol.for("react.memo_cache_sentinel"))W={label:"Open team memory folder",value:`${f}${Rq?.getTeamMemPath()}`,description:""},q[1]=W;else W=q[1];c.push(W)}for(let W of SJ.activeAgents)if(W.memory){let Vq=cq(W.agentType,W.memory);c.push({label:`Open ${Dq.bold(W.agentType)} agent memory`,value:`${f}${Vq}`,description:`${W.memory} scope`})}}N.push(...c);let u;if(q[2]!==N)u=Zq&&N.some(QQ)?Zq:N[0]?.value||"",q[2]=N,q[3]=u;else u=q[3];let Yq=u,[$,vJ]=H.useState(T),[I,OJ]=H.useState(gq),[B]=H.useState(T),X=bq(qQ),[D,EJ]=H.useState(null),g;if(q[4]!==B)g=()=>{if(!B)return;dq().then(EJ)},q[4]=B,q[5]=g;else g=q[5];let d;if(q[6]!==X||q[7]!==B)d=[B,X],q[6]=X,q[7]=B,q[8]=d;else d=q[8];H.useEffect(g,d);let n;if(q[9]!==X||q[10]!==D)n=X?"running":D===null?"":D===0?"never":`last ran ${_q(new Date(D))}`,q[9]=X,q[10]=D,q[11]=n;else n=q[11];let m=n,[G,Bq]=H.useState(null),Y=G!==null,v=B?1:0,l;if(q[12]!==$)l=function(){let W=!$;Nq("userSettings",{autoMemoryEnabled:W}),vJ(W),Lq("",{enabled:W})},q[12]=$,q[13]=l;else l=q[13];let Gq=l,s;if(q[14]!==I)s=function(){let W=!I;Nq("userSettings",{autoDreamEnabled:W}),OJ(W),Lq("",{enabled:W})},q[14]=I,q[15]=s;else s=q[15];let Kq=s;uq();let i;if(q[16]===Symbol.for("react.memo_cache_sentinel"))i={context:"Confirmation"},q[16]=i;else i=q[16];y("confirm:no",Z,i);let r;if(q[17]!==G||q[18]!==Kq||q[19]!==Gq)r=()=>{if(G===0)Gq();else if(G===1)Kq()},q[17]=G,q[18]=Kq,q[19]=Gq,q[20]=r;else r=q[20];let a;if(q[21]!==Y)a={context:"Confirmation",isActive:Y},q[21]=Y,q[22]=a;else a=q[22];y("confirm:yes",r,a);let o;if(q[23]!==v)o=()=>{Bq((Q)=>Q!==null&&Q<v?Q+1:null)},q[23]=v,q[24]=o;else o=q[24];let t;if(q[25]!==Y)t={context:"Select",isActive:Y},q[25]=Y,q[26]=t;else t=q[26];y("select:next",o,t);let e;if(q[27]===Symbol.for("react.memo_cache_sentinel"))e=()=>{Bq(eJ)},q[27]=e;else e=q[27];let qq;if(q[28]!==Y)qq={context:"Select",isActive:Y},q[28]=Y,q[29]=qq;else qq=q[29];y("select:previous",e,qq);let Hq=G===0,Xq=$?"on":"off",O;if(q[30]!==Xq)O=K(C,{children:["Auto-memory: ",Xq]}),q[30]=Xq,q[31]=O;else O=q[31];let E;if(q[32]!==Hq||q[33]!==O)E=k(Cq,{isFocused:Hq,children:O}),q[32]=Hq,q[33]=O,q[34]=E;else E=q[34];let F;if(q[35]!==I||q[36]!==m||q[37]!==G||q[38]!==X||q[39]!==B)F=B&&k(Cq,{isFocused:G===1,styled:!1,children:K(C,{color:G===1?"suggestion":void 0,children:["Auto-dream: ",I?"on":"off",m&&K(C,{dimColor:!0,children:[" · ",m]}),!X&&I&&k(C,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=I,q[36]=m,q[37]=G,q[38]=X,q[39]=B,q[40]=F;else F=q[40];let j;if(q[41]!==E||q[42]!==F)j=K(S,{flexDirection:"column",marginBottom:1,children:[E,F]}),q[41]=E,q[42]=F,q[43]=j;else j=q[43];let w;if(q[44]!==U)w=(Q)=>{if(Q.startsWith(f)){let W=Q.slice(f.length);rJ(W,{recursive:!0}).catch(tJ).then(()=>$q(W));return}Zq=Q,U(Q)},q[44]=U,q[45]=w;else w=q[45];let x;if(q[46]!==v)x=()=>Bq(v),q[46]=v,q[47]=x;else x=q[47];let R;if(q[48]!==Yq||q[49]!==N||q[50]!==Z||q[51]!==w||q[52]!==x||q[53]!==Y)R=k(nq,{defaultFocusValue:Yq,options:N,isDisabled:Y,onChange:w,onCancel:Z,onUpFromFirstItem:x}),q[48]=Yq,q[49]=N,q[50]=Z,q[51]=w,q[52]=x,q[53]=Y,q[54]=R;else R=q[54];let Jq;if(q[55]!==j||q[56]!==R)Jq=K(S,{flexDirection:"column",width:"100%",children:[j,R]}),q[55]=j,q[56]=R,q[57]=Jq;else Jq=q[57];return Jq}function tJ(){}function eJ(J){return J!==null&&J>0?J-1:J}function qQ(J){return Object.values(J.tasks).some(JQ)}function JQ(J){return J.type==="dream"&&J.status==="running"}function QQ(J){return J.value===Zq}function ZQ(J){return J.agentDefinitions}function WQ(J){return{...J,exists:!0}}function zQ(J){return J.type!=="AutoMem"&&J.type!=="TeamMem"}var mq,H,Rq,Zq,f="__open_folder__";var sq=b(()=>{yJ();DJ();gJ();Aq();$J();fq();PJ();mJ();lJ();nJ();uJ();dJ();iq();Tq();pJ();fJ();Oq();hJ();iJ();sJ();xq();_();mq=Wq(hq(),1),H=Wq(pq(),1),Rq=(yq(),_J(cJ))});import{homedir as YQ}from"os";import{relative as BQ}from"path";function aq(J){let q=YQ(),U=rq(),Z=J.startsWith(q)?"~"+J.slice(q.length):null,z=J.startsWith(U)?"./"+BQ(U,J):null;if(Z&&z)return Z.length<=z.length?Z:z;return Z||z||J}var kQ;var oq=b(()=>{Aq();UQ();_();kQ=Wq(hq(),1)});function tq(J){return J.replace(GQ,"")}function eq(J,q){let U=tq(J),Z=q===null?null:tq(q),z=Math.round(QJ/KQ),V=Z!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",L=Z!==null?`
2
- ## Team memory
3
-
4
- Also tidy the team memory directory: \`${Z}\`
5
-
6
- - Apply the exact same orient → identify → merge → update-index steps inside \`${Z}\` (its index is \`${Z}/${kq}\`)
7
- - The team index may have its own structure beyond bare index lines — a \`# Team Memory\` header, an intro blockquote, \`## Section\` groupings. **Preserve all of it**: only touch the individual index lines for files you deleted or renamed, exactly as in the private index. Never reformat, reorder, or flatten the team index's sections.
8
- - **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${U}\` and \`${Z}\`, do not merge a pair that spans the two, and do not "promote" a private memory into team — that is a deliberate user decision, not tidy's job.
9
- - Files you change or delete here propagate to the team via automatic sync — another reason to stay strictly conservative.
10
- `:"";return`# Memory Tidy: conservative duplicate merge
11
-
12
- You are tidying the memory directory — a **conservative** pass that merges duplicate memory files and updates the index. This is NOT a dream/consolidation: do not look at transcripts, do not create new memories, do not reorganize by topic, and do not rewrite the content of files that are not duplicates.
13
-
14
- Memory directory: \`${U}\`
15
- ${ZJ}
16
- ${L}
17
- ---
18
-
19
- ## Step 1 — Orient
20
-
21
- - Read \`${U}/${kq}\` to see the current index
22
- - Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${V})
23
-
24
- ## Step 2 — Identify duplicates
25
-
26
- Look for pairs or groups of files that record the **same fact**:
27
-
28
- - Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
29
- - Near-identical \`description\` frontmatter
30
- - Heavily overlapping body content
31
-
32
- Two files that merely **partially overlap** are NOT duplicates: if file A covers facts X+Y and file B covers X+Z, each holds a distinct fact — leave both alone. Only files where one is (nearly) fully redundant with the other qualify.
33
-
34
- If you are not confident two files describe the same fact, they are NOT duplicates — leave both untouched and list them under "ambiguous pairs" in your report.
35
-
36
- ## Step 3 — Merge (conservatively)
37
-
38
- For each confirmed duplicate group:
39
-
40
- 1. Pick the survivor: prefer the file with the more complete frontmatter and richer content; on a tie prefer the older file (check mtime with \`ls -l\` — its name is more likely already referenced elsewhere).
41
- 2. Fold the redundant file's content into the survivor. When the two files **conflict factually**, keep BOTH facts (union) and note the contradiction in your report — never silently pick one side.
42
- 3. Keep the survivor's frontmatter \`type\`; refresh its \`description\` only if the merged content demands it. If a file's frontmatter is malformed, skip that file entirely and note it in the report.
43
- 4. Delete the redundant file with \`rm\`. The user will see a permission prompt for each deletion — that is intentional, it is their chance to veto a merge.
44
-
45
- Hard rules:
46
- - Never merge across the private ↔ team boundary.
47
- - Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
48
- - Never create new memory files, and never touch files outside the memory directories.
49
-
50
- ## Step 4 — Update the index (minimal edits, NOT a rewrite)
51
-
52
- Edit \`${U}/${kq}\` (and the team index if applicable) **in place, surgically**:
53
-
54
- - Remove only the lines pointing at files you deleted
55
- - Update the survivor's line only if its title/hook changed
56
- - Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
57
- - Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
58
- - The index must stay under ${JJ} lines AND under ~${z}KB — it's an index, never write memory content into it
59
-
60
- ## Step 5 — Report
61
-
62
- Finish with a brief summary:
63
-
64
- - **Merged**: which files combined into which survivor (X + Y → Z)
65
- - **Deleted**: files removed
66
- - **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
67
- - **Conflicts noted**: factual contradictions you kept as union
68
- - **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
69
-
70
- If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var GQ,KQ=1024;var qJ=b(()=>{HQ();GQ=/[/\\]+$/});function UJ(){if(WJ())return zJ();return null}var kJ=b(()=>{yq()});function YJ(J){return J.trim()==="tidy"?"tidy":null}function BJ(J){if(!T())return J("Memory tidy unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDIN_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;return J("Running memory tidy — merging duplicate memories…",{display:"system",shouldQuery:!0,metaMessages:[eq(zq(),UJ())]}),null}var GJ=b(()=>{fq();qJ();kJ()});import{mkdir as bQ,writeFile as CQ}from"fs/promises";function AQ({onDone:J}){let q=async(Z)=>{try{if(Z.includes(p()))await bQ(p(),{recursive:!0});try{await CQ(Z,"",{encoding:"utf8",flag:"wx"})}catch(h){if(KJ(h)!=="EEXIST")throw h}await LJ(Z);let z="default",V="";if(process.env.VISUAL)z="$VISUAL",V=process.env.VISUAL;else if(process.env.EDITOR)z="$EDITOR",V=process.env.EDITOR;let L=z!=="default"?`Using ${z}="${V}".`:"",A=L?`> ${L} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";J(`Opened memory file at ${aq(Z)}
71
-
72
- ${A}`,{display:"system"})}catch(z){HJ(z),J(`Error opening memory file: ${z}`)}},U=()=>{J("Cancelled memory editing",{display:"system"})};return k(VJ,{title:"Memory",onCancel:U,color:"remember",children:K(S,{flexDirection:"column",children:[k(NJ.Suspense,{fallback:null,children:k(lq,{onSelect:q,onCancel:U})}),k(S,{marginTop:1,children:K(C,{dimColor:!0,children:["Learn more: ",k(XJ,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var NJ,vZ=async(J,q,U)=>{if(YJ(U)==="tidy")return BJ(J);return bJ(),await Uq(),k(AQ,{onDone:J})};var IQ=b(()=>{LQ();sq();oq();Aq();iq();Tq();XQ();VQ();NQ();GJ();_();NJ=Wq(pq(),1)});IQ();export{vZ as call};
@@ -1 +0,0 @@
1
- import{$6 as m,P6 as a,Q6 as b,R6 as c,S6 as d,T6 as e,U6 as f,V6 as g,W6 as h,X6 as i,Y6 as j,Z6 as k,_6 as l,a7 as n,b7 as o,c7 as p,d7 as q,e7 as r,f7 as s,g7 as t,h7 as u,i7 as v,j7 as w,k7 as x,l7 as y,m7 as z,n7 as A,o7 as B,p7 as C,q7 as D,r7 as E}from"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import"./cli-1.1.23-bdj1ne1r.mjs";E();export{y as resolveSkillModelOverride,t as renderModelSetting,v as renderModelName,p as renderDefaultModelSetting,x as parseUserSpecifiedModel,C as normalizeModelStringForAPI,D as modelRejectsSamplingParams,A as modelDisplayString,s as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,z as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,w as getPublicModelName,u as getPublicModelDisplayName,r as getOpus5PricingSuffix,q as getOpus46PricingSuffix,B as getMarketingNameForModel,e as getMainLoopModel,h as getDefaultSonnetModel,g as getDefaultOpusModel,k as getDefaultMainLoopModelSetting,l as getDefaultMainLoopModel,i as getDefaultHaikuModel,o as getClaudeAiUserDefaultModelDescription,n as getCanonicalName,f as getBestModel,m as firstPartyNameToCanonical};
@@ -1,2 +0,0 @@
1
- import"./cli-1.1.23-eh1w5te8.mjs";import{nh as m,oh as Rb,ph as _,qh as Ub}from"./cli-1.1.23-cmmvjc9g.mjs";import"./cli-1.1.23-r3waeyk4.mjs";import"./cli-1.1.23-vvcr72vv.mjs";import{ay as W,by as v,dy as Qb,ex as i,fx as r,gx as Pb,sQ as t,tQ as Wb}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import{PZ as Nb}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import"./cli-1.1.23-v5e3cr99.mjs";import"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import{p4 as Y,r4 as V}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as Kb}from"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-4tcfdexs.mjs";import{B6 as Bb,L6 as f,M6 as Eb,N6 as $,O6 as Gb,Z6 as M,c7 as g,f7 as I,h6 as w,i6 as x,n6 as X,r7 as Hb,s6 as A,w7 as p,y7 as Jb}from"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import{w9 as Q,x9 as e}from"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Ifa as bb,Kga as C,Pfa as L,Qga as qb,bga as h,cga as S,ega as kb,tfa as u}from"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import{Yja as F,Zja as D,_ja as zb}from"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import{jka as Z,mka as o}from"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as c,Fta as s}from"./cli-1.1.23-bdj1ne1r.mjs";function Xb(k){let b=a.c(17),{onDone:z}=k,B=W(Ib),q=W(yb),G=W(Zb),J=v(),E;if(b[0]!==B||b[1]!==z)E=function(){Z("",{action:"cancel"});let N=y(B);z(`Kept model as ${Q.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=E;else E=b[2];let R=E,H;if(b[3]!==G||b[4]!==B||b[5]!==z||b[6]!==J)H=function(N,O){Z("",{action:N,from_model:B,to_model:N}),J((n)=>({...n,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${Q.bold(y(N))}`;if(O!==void 0)P=P+` with ${Q.bold(O)} effort`;let T=void 0;if(w()){if(A(),!X(N)&&G)J(Yb),T=!1;else if(X(N)&&x()&&G)P=P+" · Fast mode ON",T=!0}if(_(N,T===!0,I()))P=P+" · Billed as extra usage";if(T===!1)P=P+" · Fast mode OFF";z(P)},b[3]=G,b[4]=B,b[5]=z,b[6]=J,b[7]=H;else H=b[7];let U=H,K;if(b[8]!==G||b[9]!==B)K=w()&&G&&X(B)&&x(),b[8]=G,b[9]=B,b[10]=K;else K=b[10];let j;if(b[11]!==R||b[12]!==U||b[13]!==B||b[14]!==q||b[15]!==K)j=Y(m,{initial:B,sessionModel:q,onSelect:U,onCancel:R,isStandaloneCommand:!0,showFastModeNotice:K}),b[11]=R,b[12]=U,b[13]=B,b[14]=q,b[15]=K,b[16]=j;else j=b[16];return j}function Yb(k){return{...k,fastMode:!1}}function Zb(k){return k.fastMode}function yb(k){return k.mainLoopModelForSession}function Ib(k){return k.mainLoopModel}function jb({args:k,onDone:b}){let z=W((G)=>G.fastMode),B=v(),q=k==="default"?null:k;return l.useEffect(()=>{async function G(){if(q&&!$(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&wb(q)){b("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(q&&xb(q)){b("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!q){J(null);return}if(Tb(q)){J(q);return}try{let{valid:E,error:R}=await t(q);if(E)J(q);else b(R||`Model '${q}' not found`,{display:"system"})}catch(E){b(`Failed to validate model: ${E.message}`,{display:"system"})}}function J(E){B((K)=>({...K,mainLoopModel:E,mainLoopModelForSession:null}));let R=E?Q.dim(" · for this project"):"",H=`Set model to ${Q.bold(y(E))}${R}`,U=void 0;if(w()){if(A(),!X(E)&&z)B((K)=>({...K,fastMode:!1})),U=!1;else if(X(E)&&z)H+=" · Fast mode ON",U=!0}if(_(E,U===!0,I()))H+=" · Billed as extra usage";if(U===!1)H+=" · Fast mode OFF";b(H)}G()},[q,b,B]),null}function Tb(k){return f.includes(k.toLowerCase().trim())}function wb(k){let b=k.toLowerCase();return!i()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function xb(k){let b=k.toLowerCase();return!r()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function Cb(k){let{onDone:b}=k,z=W(_b),B=W(vb),q=W(Ab),G=y(z),J=q!==void 0?` (effort: ${q})`:"",E=u(),H=(E.activeModelForProject?E.activeModelForProjectProfileId===void 0||E.activeModelForProjectProfileId===L()?.id:!1)?Q.dim(" (project)"):"";if(B)b(`Current model: ${Q.bold(y(B))} (session override from plan mode)
2
- Base model: ${G}${H}${J}`);else b(`Current model: ${G}${H}${J}`);return null}function Ab(k){return k.effortValue}function vb(k){return k.mainLoopModelForSession}function _b(k){return k.mainLoopModel}function Ob(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function Vb(){if(!C()?.startsWith("openai:"))return;try{let k=await p();if(k.length===0)return;let b=h();if(Ob(b,k))return;S(k)}catch{}}function y(k){let b=g(k??M());return k===null?`${b} (default)`:b}var a,l,lb=async(k,b,z)=>{if(z=z?.trim()||"",D.includes(z))return Z("",{args:z}),Y(Cb,{onDone:k});if(F.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Z("",{args:z}),Y(jb,{args:z,onDone:k});if(C()?.startsWith("openai:"))Vb();return Y(Xb,{onDone:k})};var cb=s(()=>{e();Rb();zb();o();Qb();bb();Ub();Bb();Eb();Pb();Jb();kb();Hb();Gb();Wb();qb();V();a=c(Nb(),1),l=c(Kb(),1)});cb();export{lb as call};
@@ -1,14 +0,0 @@
1
- import{Asa as F,Bsa as z1,Csa as C,Dsa as vQ,Esa as HQ,Fsa as z0,Gsa as q0,Hsa as K0,Isa as jQ,Jsa as G1,Msa as y0,jsa as w,ksa as X,lsa as V0,msa as R,tsa as LQ,usa as dQ,vsa as Z0,wsa as hQ,xsa as VQ,ysa as FQ,zsa as j0}from"./cli-1.1.23-dm6get34.mjs";import{Fta as u}from"./cli-1.1.23-bdj1ne1r.mjs";var TQ=u(()=>{j0()});function m(V){if(V.inputSchema.type!=="object")throw Error(`JSON schema for tool "${V.name}" must be an object, but got ${V.inputSchema.type}`);return{type:"custom",name:V.name,input_schema:V.inputSchema,description:V.description,run:V.run,parse:(Q)=>Q,...V.close?{close:V.close}:{}}}var xQ=u(()=>{y0();TQ()});import*as x from"node:fs/promises";import*as A from"node:path";import{randomUUID as T0}from"node:crypto";function $Q(V,Q){let $=A.relative(V,Q);return $===""||!$.startsWith(".."+A.sep)&&$!==".."&&!A.isAbsolute($)}async function DQ(V,Q){for(let $ of V)if($Q(await a(A.resolve($)),Q))return $;return}function s(V){let Q=V?.code;return typeof Q==="string"?Q:void 0}async function a(V){let Q=[],$=V,Z=0;for(;;){let z;try{z=await x.realpath($)}catch(q){let K;try{K=(await x.lstat($)).isSymbolicLink()}catch(Y){let H=s(Y);if(H!=="ENOENT"&&H!=="ENOTDIR")throw Y;let W=A.dirname($);if(W===$)throw Y;Q.push(A.basename($)),$=W;continue}if(!K)throw q;if(++Z>v0)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});$=A.resolve(A.dirname($),await x.readlink($));continue}return Q.length?A.join(z,...Q.reverse()):z}}async function bQ(V,Q,$){let Z=$?.allowedRoots??[],z=await a(A.resolve(V)),q;try{q=await a(A.resolve(z,Q))}catch(Y){throw new C(d(Y,`path ${JSON.stringify(Q)}`))}if($Q(z,q)||await DQ(Z,q)!==void 0)return q;let K=Z.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new C(`path ${JSON.stringify(Q)} is outside ${K}`)}async function GQ(V,Q){let $=A.dirname(V),Z=A.join($,`.tmp-${process.pid}-${T0()}`),z;try{z=await x.open(Z,"wx",x0),await z.writeFile(Q,"utf-8"),await z.sync(),await z.close(),z=void 0,await x.rename(Z,V)}catch(q){if(z)await z.close().catch(()=>{});throw await x.unlink(Z).catch(()=>{}),q}}function d(V,Q){let $=s(V);switch($){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${$!==void 0?`i/o error (${$})`:"i/o error"}`}}var o=493,x0=420,v0=40;var NQ=u(()=>{vQ()});import*as I from"node:fs/promises";import*as gQ from"node:fs";import*as M from"node:path";import{execFile as b0}from"node:child_process";import{promisify as P0}from"node:util";import{Readable as F0}from"node:stream";import{pipeline as g0}from"node:stream/promises";async function f0(V){let{client:Q,sessionId:$}=V;if(!Q)return async()=>{};let Z=VQ(Q),z=V.session;if(!z){if($===void 0)return async()=>{};Z.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),z=await Q.beta.sessions.retrieve($)}let q=M.resolve(V.workdir,"skills"),K=[];for(let Y of z.agent.skills)try{let H=await EQ(Q,Y.skill_id,Y.version),W=await Q.beta.skills.versions.retrieve(H,{skill_id:Y.skill_id}),J=M.basename(W.name.trim());if(J===""||J==="."||J==="..")J=Y.skill_id;let U=M.resolve(q,J);if(U!==q&&!U.startsWith(q+M.sep)){Z.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:W.name});continue}let O=await Q.beta.skills.versions.download(H,{skill_id:Y.skill_id});await I.rm(U,{recursive:!0,force:!0}),await I.mkdir(U,{recursive:!0,mode:o}),K.push(U),await uQ(O,U),Z.info("downloaded skill",{component:"agent-tool-context",skill_id:Y.skill_id,version:H,dest:U})}catch(H){Z.warn("failed to download skill",{component:"agent-tool-context",skill_id:Y.skill_id,error:String(H)})}return async()=>{for(let Y of K)await I.rm(Y,{recursive:!0,force:!0}).catch((H)=>{Z.warn("failed to clean up skill",{component:"agent-tool-context",dest:Y,error:String(H)})})}}async function EQ(V,Q,$){if(/^\d+$/.test($))return $;let Z;for await(let z of V.beta.skills.versions.list(Q))if(/^\d+$/.test(z.version)&&(Z===void 0||BigInt(z.version)>BigInt(Z)))Z=z.version;if(Z===void 0)throw new R(`skill ${JSON.stringify(Q)} has no concrete version to resolve ${JSON.stringify($)} against`);return Z}function u0(V){for(let Q of V){let $=Q.trim();if(!$)continue;if(M.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new R(`refusing to extract unsafe archive member: ${$}`)}}function PQ(V){let Q=V.split(`
2
- `);if(Q[Q.length-1]==="")Q.pop();return Q}function _0(V,Q){return/^[\x20-\x7E]+$/.test(Q)&&!/[\\^#]/.test(Q)&&!(V==="unzip"&&Q.startsWith("-"))}function S0(V,Q,$){let Z=PQ(Q),z=PQ($);if(Z.length!==z.length)throw new R(wQ);let q=[],K=[];return Z.forEach((Y,H)=>{if(m0[V].has(z[H].charAt(0))){q.push(Y);return}if(!_0(V,Y))throw new R(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(Y)}`);K.push(Y)}),{plain:q,special:K}}async function fQ(V){for(let Q of await I.readdir(V,{withFileTypes:!0}))if(Q.isDirectory())await fQ(M.join(V,Q.name));else if(!Q.isFile())throw new R(wQ)}async function kQ(V,Q){try{let{stdout:$}=await E0(V,Q);return $}catch($){if(s($)==="ENOENT")throw new R(`skill extraction requires the \`${V}\` command, but it was not found on PATH`);throw $}}function p0(V){let Q,$=!1;for(let Z of V){let z=Z.trim().split("/").filter((K)=>K!==""&&K!==".");if(z.length===0)continue;let q=z[0];if(Q===void 0)Q=q;else if(q!==Q)return"";if(z.length>1)$=!0}return Q!==void 0&&$?Q:""}async function uQ(V,Q){let $=M.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!V.body)throw new R("skill download response had no body");await g0(F0.fromWeb(V.body),gQ.createWriteStream($));let Z=M.join(M.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`),z=M.join(M.dirname(Q),`.skill-exclude-${process.pid}-${Date.now()}`);try{let q=await h0($,4),K=q.length>=4&&q[0]===80&&q[1]===75&&q[2]===3&&q[3]===4,Y=K?"unzip":"tar",H=await kQ(Y,K?["-Z1",$]:["-tf",$]),W=await kQ(Y,K?["-Z","--h","--t",$]:["-tvf",$]),{plain:J,special:U}=S0(Y,H,W);u0([...J,...U]);let O=p0(J);if(await I.mkdir(Z,{recursive:!0,mode:o}),J.length>0)await kQ(Y,await d0(Y,$,Z,U,z));await fQ(Z);let g=O?M.join(Z,O):Z,b=await I.readdir(g).catch((P)=>{throw s(P)==="ENOENT"?new R(wQ):P});for(let P of b)await I.rename(M.join(g,P),M.join(Q,P))}finally{await I.rm($,{force:!0}),await I.rm(z,{force:!0}),await I.rm(Z,{recursive:!0,force:!0})}}async function d0(V,Q,$,Z,z){let q=Z.map((K)=>K.replace(/[*?[\\]/g,"\\$&"));if(V==="unzip")return["-oq",Q,"-d",$,...q.length>0?["-x",...q]:[]];if(q.length===0)return["-xf",Q,"-C",$];return await I.writeFile(z,q.join(`
3
- `)+`
4
- `,{flag:"wx",mode:384}),["-xf",Q,"-C",$,"-X",z]}async function h0(V,Q){let $=await I.open(V,"r");try{let Z=Buffer.alloc(Q),{bytesRead:z}=await $.read(Z,0,Q,0);return Z.subarray(0,z)}finally{await $.close()}}var E0,wQ="skill archive listing is inconsistent; refusing to extract",m0;var mQ=u(()=>{LQ();FQ();NQ();E0=P0(b0);m0={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])}});import*as N from"node:fs/promises";import*as L from"node:path";import{constants as h}from"node:fs";import{createHash as c0,randomBytes as n0}from"node:crypto";function MQ(V){return V.startsWith("/")&&!V.split("/").includes("..")}class c{constructor(V,Q,$=!1){this.hashes=new Map,this.rootPath=V,this.removedOnDispose=Q,this.decoder=$?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(V,Q){if(!o0())throw Error("FileStore requires O_NOFOLLOW support on this platform");let $=!1;try{await N.lstat(V)}catch(Z){if(Z.code!=="ENOENT")throw Z;$=!0}return new c(L.resolve(V),$,Q?.utf8??!1)}async createRoot(){await s0(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await N.rm(this.rootPath,{recursive:!0,force:!0})}async put(V,Q,$){let Z=V.replace(/\\/g,"/");if(Z.endsWith("/")||Z.endsWith("/.")||Z===""||Z===".")throw new D(D.NOT_A_FILE,V);let z=this.resolveUnderRoot(V),q=typeof Q==="string"?dQ(Q):Q;this.requireUtf8(V,q),await _Q(this.rootPath,L.dirname(z)),await t0(z,q,$?.executable??!1)}async get(V){let Q=this.resolveUnderRoot(V),$;try{$=await nQ(V,Q)}catch(z){if(z.code==="ENOENT")return null;throw z}let Z;try{let z=await $.readFile();Z=new Uint8Array(z.buffer,z.byteOffset,z.byteLength)}finally{await $.close()}return this.requireUtf8(V,Z),Z}async ls(V="/"){let Q=this.resolveUnderRoot(V);return new Set((await SQ(this.rootPath,V,Q)).map(([$])=>$))}async findSymlinks(V="/"){let Q=this.resolveUnderRoot(V);return e0(this.rootPath,V,Q)}async hashtree(V="/"){let Q=this.resolveUnderRoot(V),$=ZQ.nowNs(),Z=Object.create(null);for(let[z,q]of await SQ(this.rootPath,V,Q)){let K=await this.hashViaCache(z,q,$);if(K!==null)Z[z]=K}return Z}async hashFile(V){let Q=this.resolveUnderRoot(V),$;try{$=await N.lstat(Q,{bigint:!0})}catch(z){if(z.code==="ENOENT")return null;throw z}if($.isSymbolicLink())throw new D(D.IS_A_SYMLINK,V);if(!$.isFile())throw new D(D.NOT_A_FILE,V);let Z=L.relative(this.rootPath,Q).split(L.sep).join("/");return this.hashViaCache(Z,Q,ZQ.nowNs())}async move(V,Q){let $=this.resolveUnderRoot(V),Z=this.resolveUnderRoot(Q);if($===this.rootPath||Z===this.rootPath)return;if(await N.stat(Z).then(()=>!0,()=>!1))throw new D(D.MOVE_DESTINATION_EXISTS,Q);await _Q(this.rootPath,L.dirname(Z)),await N.rename($,Z)}async remove(V){let Q=this.resolveUnderRoot(V);if(Q===this.rootPath)return;let $;try{$=await N.lstat(Q,{bigint:!0})}catch(Z){if(Z.code==="ENOENT")return;throw Z}if($.isDirectory())await N.rm(Q,{recursive:!0,force:!0});else try{await N.unlink(Q)}catch(Z){if(Z.code!=="ENOENT")throw Z}}resolveUnderRoot(V){let Q=V.replace(/\\/g,"/").replace(/^\/+/,""),$=Q.split("/").filter((Z)=>Z!==""&&Z!==".");if(L.posix.isAbsolute(Q)||$.includes(".."))throw new D(D.ESCAPES_ROOT,V);return $.length===0?this.rootPath:L.join(this.rootPath,...$)}requireUtf8(V,Q){if(!this.decoder)return;try{this.decoder.decode(Q)}catch{throw new D(D.NOT_UTF8,V)}}async hashViaCache(V,Q,$){let Z;try{Z=await N.lstat(Q,{bigint:!0})}catch(K){if(K.code==="ENOENT")return null;throw K}if(!Z.isFile())return null;let z=this.hashes.get(V),q;if(z!==void 0&&$1(z,Z))q=z.sha;else try{q=await ZQ.hashFile(Q)}catch(K){let Y=K.code;if(Y==="ENOENT"||K instanceof D)return null;if(Y==="ELOOP"||Y==="EMLINK")return null;throw K}if(V1(Z,$))this.hashes.set(V,{mtimeNs:Z.mtimeNs,ctimeNs:Z.ctimeNs,size:Z.size,sha:q});return q}}function o0(){return AQ!==0}async function s0(V){let Q=[],$=V;for(;;){try{await N.stat($);break}catch(z){let q=z.code;if(q!=="ENOENT"&&q!=="ENOTDIR"&&q!=="ELOOP")throw z}Q.push($);let Z=L.dirname($);if(Z===$)break;$=Z}for(let Z of Q.reverse())try{await N.mkdir(Z,{mode:cQ})}catch(z){if(z.code!=="EEXIST")throw z}}async function _Q(V,Q){let $=L.relative(V,Q);if($==="")return;let Z=V;for(let z of $.split(L.sep)){Z=L.join(Z,z);try{await N.mkdir(Z,{mode:cQ})}catch(q){if(q.code!=="EEXIST")throw q}}}async function t0(V,Q,$){let Z=$?l0:i0,z=L.join(L.dirname(V),`.fs-${n0(8).toString("hex")}.tmp`),q;try{q=await N.open(z,h.O_WRONLY|h.O_CREAT|h.O_EXCL|AQ,Z),await q.writeFile(Q),await q.close(),q=void 0,await N.rename(z,V)}catch(K){if(q)await q.close().catch(()=>{});throw await N.unlink(z).catch(()=>{}),K}}async function nQ(V,Q){let $;try{$=await N.open(Q,h.O_RDONLY|AQ|a0)}catch(Z){let z=Z.code;if(z==="ELOOP"||z==="EMLINK")throw new D(D.IS_A_SYMLINK,V);throw Z}try{if(!(await $.stat()).isFile())throw new D(D.NOT_A_FILE,V)}catch(Z){throw await $.close().catch(()=>{}),Z}return $}async function r0(V){let Q=c0("sha256"),$=await nQ(L.basename(V),V),Z=new Uint8Array(1048576);try{for(;;){let{bytesRead:z}=await $.read(Z,0,Z.length);if(z===0)break;Q.update(Z.subarray(0,z))}}finally{await $.close()}return Q.digest("hex")}async function SQ(V,Q,$){if(!await Q1(Q,$))return[];let Z=[];return await iQ($,(z,q)=>{if(q.isFile())Z.push([L.relative(V,z).split(L.sep).join("/"),z])}),Z.sort(),Z}async function e0(V,Q,$){let Z=(K)=>L.relative(V,K).split(L.sep).join("/"),z;try{z=await N.lstat($,{bigint:!0})}catch(K){let Y=K.code;if(Y==="ENOENT"||Y==="ENOTDIR")return new Set;throw K}if(z.isSymbolicLink())return new Set([Z($)]);if(!z.isDirectory())throw new D(D.NOT_A_DIRECTORY,Q);let q=new Set;return await iQ($,(K,Y)=>{if(Y.isSymbolicLink())q.add(Z(K))}),q}async function Q1(V,Q){let $;try{$=await N.lstat(Q,{bigint:!0})}catch(Z){let z=Z.code;if(z==="ENOENT"||z==="ENOTDIR")return!1;throw Z}if(!$.isDirectory())throw new D(D.NOT_A_DIRECTORY,V);return!0}async function iQ(V,Q){let $=[V];while($.length){let Z=$.pop(),z;try{z=await N.readdir(Z,{withFileTypes:!0})}catch(q){if(q.code==="ENOENT")continue;throw q}for(let q of z){let K=L.join(Z,q.name);if(Q(K,q),q.isDirectory()&&!q.isSymbolicLink())$.push(K)}}}function $1(V,Q){return Q.mtimeNs===V.mtimeNs&&Q.ctimeNs===V.ctimeNs&&Q.size===V.size}function V1(V,Q){return(V.mtimeNs>V.ctimeNs?V.mtimeNs:V.ctimeNs)<Q-ZQ.timestampTrustMarginNs}var cQ=448,i0=384,l0=448,AQ,a0,D,Z1=2000000000n,ZQ,lQ,pQ;var aQ=u(()=>{hQ();AQ=h.O_NOFOLLOW??0,a0=h.O_NONBLOCK??0;D=class D extends Error{constructor(V,Q){super(`path ${JSON.stringify(Q)} ${V}`);this.name="FileStoreError",this.reason=V,this.relPath=Q}};D.ESCAPES_ROOT="escapes the store root";D.IS_A_SYMLINK="is a symlink";D.NOT_A_FILE="is not a regular file";D.NOT_A_DIRECTORY="is not a directory";D.NOT_UTF8="is not valid utf-8";D.MOVE_DESTINATION_EXISTS="already exists";c.isPathLegal=MQ;ZQ={hashFile:r0,timestampTrustMarginNs:Z1,nowNs:()=>BigInt(Date.now())*1000000n},lQ=c,pQ=Symbol.asyncDispose;if(pQ)Object.defineProperty(c.prototype,pQ,{value:c.prototype.dispose,configurable:!0,writable:!0})});import*as H0 from"node:path";import{createHash as q1}from"node:crypto";function $0(V){return q1("sha256").update(`version ${W0}
5
- ${V}`,"utf-8").digest("hex")}class C0{constructor(V,Q,$){this.mode=V,this.cap=Q,this.waiveWindow=$,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}class U0{constructor(V,Q){k.add(this),f.set(this,void 0),YQ.set(this,void 0),t.set(this,void 0),JQ.set(this,void 0),G.set(this,void 0),n.set(this,void 0),KQ.set(this,!1),E.set(this,[]),w(this,f,V,"f"),w(this,YQ,Q.workdir,"f"),w(this,t,Q.syncIntervalMs??HQ,"f"),q0(X(this,t,"f"),"syncIntervalMs"),w(this,JQ,Q.syncDeletions??"enabled","f"),w(this,G,VQ(V),"f"),w(this,n,Date.now(),"f")}get roots(){return X(this,E,"f").map((V)=>V.files.root().path)}get readOnlyRoots(){return X(this,E,"f").filter((V)=>V.readOnly).map((V)=>V.files.root().path)}async download(V){for(let Q of V.resources){if(Q.type!=="memory_store")continue;let $=X(this,k,"m",X0).call(this,Q),Z;try{if(Z={memoryStoreId:Q.memory_store_id,files:await lQ.open($,{utf8:!0}),readOnly:Q.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!Z.files.root().removedOnDispose)throw new _(`something already exists at the memory store's path: ${$} (memory_store_id=${Q.memory_store_id}); it must not exist when the session starts`);try{await Z.files.createRoot()}catch(z){if(!l(z))throw z;throw new _(`cannot create the memory store's folder: ${$} (memory_store_id=${Q.memory_store_id}): ${z}; the worker host must make this mount path writable`,z)}await X(this,k,"m",BQ).call(this,Z),X(this,G,"f").info("downloaded memories",{count:Z.baseline.size,memory_store_id:Z.memoryStoreId,dest:Z.files.root().path}),X(this,E,"f").push(Z)}catch(z){if(Z)await Z.files.dispose().catch(()=>{});if(z instanceof _)throw z;throw new _(`failed to download memory store memory_store_id=${Q.memory_store_id}: ${z}`,z)}}w(this,n,Date.now(),"f")}async finish(){if(X(this,KQ,"f"))throw new R("finish() was already called: it is the session's last sync and runs once");w(this,KQ,!0,"f"),await this.syncAll(!0)}async syncAll(V){await Promise.all(X(this,E,"f").map((Q)=>X(this,k,"m",Y0).call(this,Q,V))),w(this,n,Date.now(),"f")}async syncIfDue(){if(Date.now()-X(this,n,"f")<X(this,t,"f"))return;await this.syncAll(!1)}async flushWrites(V){await Promise.all(X(this,E,"f").map((Q)=>X(this,k,"m",J0).call(this,Q,V)))}async dispose(){for(let V of X(this,E,"f")){let Q=V.files.root();try{let $=await X(this,k,"m",XQ).call(this,V);if(!$.markerOk&&Object.keys($.files).length>0){X(this,G,"f").warn(`${$.distrustReason}; leaving the memory store folder on disk`,{root:Q.path,memory_store_id:V.memoryStoreId});continue}await V.files.dispose()}catch($){if(!($ instanceof D)&&!l($))throw $;X(this,G,"f").warn("failed to remove the memory store folder",{root:V.files.root().path,memory_store_id:V.memoryStoreId,error:String($)});continue}if(Q.removedOnDispose)X(this,G,"f").info("removed memory store dir",{dest:Q.path,memory_store_id:V.memoryStoreId})}}}function l(V){return typeof V==="object"&&V!==null&&typeof V.code==="string"}async function D1(V,Q){if(!Q){await V;return}let $,Z=new Promise((z)=>{if($=z,Q.aborted)z()});Q.addEventListener("abort",$,{once:!0});try{await Promise.race([V,Z])}finally{Q.removeEventListener("abort",$)}}var k,f,YQ,t,JQ,G,n,KQ,E,X0,XQ,Y0,J0,RQ,BQ,oQ,sQ,IQ,tQ,rQ,zQ,qQ,eQ,Q0,K1=30000,i=".anthropic-memory-store",W0=1,X1=30000,Y1=100,J1=20,H1=16,W1=32,C1=8,U1=50,_;var D0=u(()=>{V0();LQ();FQ();hQ();z1();aQ();K0();K0();_=class _ extends R{constructor(V,Q){super(V);if(this.name="SessionMemoryError",Q!==void 0)this.cause=Q}};f=new WeakMap,YQ=new WeakMap,t=new WeakMap,JQ=new WeakMap,G=new WeakMap,n=new WeakMap,KQ=new WeakMap,E=new WeakMap,k=new WeakSet,X0=function(Q){if(Q.mount_path){if(!MQ(Q.mount_path))throw new _(`memory store mount_path is not a clean absolute path: ${JSON.stringify(Q.mount_path)} (memory_store_id=${Q.memory_store_id})`);return Q.mount_path}return H0.join(X(this,YQ,"f"),"memory",Q.name||Q.memory_store_id)},XQ=async function(Q){let $=await Q.files.hashtree(),Z=$[i];if(delete $[i],Z===$0(Q.memoryStoreId))return{files:$,markerOk:!0,distrustReason:null};return{files:$,markerOk:!1,distrustReason:Z!==void 0?"the marker file does not match this store":"the marker file is gone"}},Y0=async function(Q,$){try{let Z=await X(this,k,"m",XQ).call(this,Q),z=Z.files;if(!Z.markerOk){if(Object.keys(z).length>0){X(this,G,"f").warn(`${Z.distrustReason}; leaving the memory store folder as found and not syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}await X(this,k,"m",RQ).call(this,Q,"the folder or its marker is gone");return}if(Object.keys(z).length===0&&Q.baseline.size>1){await X(this,k,"m",RQ).call(this,Q,"every memory file is gone at once");return}let q=new Map;for await(let[J,U]of X(this,k,"m",zQ).call(this,Q.memoryStoreId))q.set(J,U);let K=new C0(X(this,JQ,"f"),Math.max(C1,Math.min(U1,Math.floor(Q.baseline.size/4))),$),Y=[],H=new Map,W=[...new Set([...q.keys(),...Object.keys(z),...Q.baseline.keys()])].sort();for(let J of W){let U=q.get(J),O=z[J],g=Q.baseline.get(J),b;if(O===void 0&&g!==void 0&&U!==void 0&&U.content_sha256===g&&!Q.readOnly)b=await X(this,k,"m",eQ).call(this,Q,J,U,g,K);else b=await X(this,k,"m",oQ).call(this,Q,J,U,O,Y);if(b!==void 0)H.set(J,b)}if(Q.baseline=H,await X(this,k,"m",tQ).call(this,Q,Y),K.suppressed>0)X(this,G,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:K.suppressed,memory_store_id:Q.memoryStoreId});if(K.capped>0)X(this,G,"f").warn(`delete cap reached: ${K.mode==="log_only"?"would send":"sent"} ${K.attempted} deletes, held ${K.capped} for later syncs`,{memory_store_id:Q.memoryStoreId})}catch(Z){X(this,G,"f").warn("memory sync failed",{memory_store_id:Q.memoryStoreId,error:String(Z)})}},J0=async function(Q,$){let Z=new Map,z=new Set,q=async()=>{if(Q.readOnly)return;let K=await X(this,k,"m",XQ).call(this,Q);if(!K.markerOk){X(this,G,"f").warn(`${K.distrustReason}; not uploading anything from the memory store folder`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}for(let[W,J]of Object.entries(K.files))if(J!==Q.baseline.get(W)&&Q.refusedShas.get(W)!==J)Z.set(W,J),z.add(W);if(Z.size===0||$?.aborted)return;let Y=new Map;for await(let[W,J]of X(this,k,"m",zQ).call(this,Q.memoryStoreId)){if($?.aborted)return;Y.set(W,J)}let H=[];for(let W of[...Z.keys()].sort()){let J=Z.get(W),U=Q.baseline.get(W),O=Y.get(W);if(O!==void 0&&O.content_sha256===J){Q.baseline.set(W,O.content_sha256),z.delete(W);continue}if(O!==void 0&&O.content_sha256!==U){X(this,G,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:W,memory_store_id:Q.memoryStoreId}),z.delete(W);continue}H.push([W,J,O])}await X(this,k,"m",rQ).call(this,Q,H,z,$)};try{if(await D1(q(),$),$?.aborted&&z.size>0)X(this,G,"f").warn(`memory flush cut off part-way; ${z.size} of ${Z.size} changed files had not finished uploading`,{memory_store_id:Q.memoryStoreId})}catch(K){X(this,G,"f").warn("memory flush failed",{memory_store_id:Q.memoryStoreId,error:String(K)})}},RQ=async function(Q,$){X(this,G,"f").warn(`${$}; re-downloading the memory store folder instead of syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId}),await Q.files.createRoot(),await X(this,k,"m",BQ).call(this,Q)},BQ=async function(Q){Q.baseline=new Map,Q.pendingDeletes.clear(),await Q.files.put(i,`version ${W0}
6
- ${Q.memoryStoreId}`);for await(let[$,Z]of X(this,k,"m",zQ).call(this,Q.memoryStoreId,"full"))if(await X(this,k,"m",IQ).call(this,Q,$,Z.content??""))Q.baseline.set($,Z.content_sha256)},oQ=async function(Q,$,Z,z,q){let K=Q.baseline.get($);if(z!==void 0)Q.pendingDeletes.delete($);if(!Z){if(z===void 0){Q.pendingDeletes.delete($);return}if(K!==void 0){if(z===K){let U=await X(this,k,"m",sQ).call(this,Q,$,K);if(U===void 0)return;if(U===K)return K;z=U}if(Q.readOnly)X(this,G,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:$,memory_store_id:Q.memoryStoreId});else if(Q.refusedShas.get($)!==z)X(this,G,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:$,memory_store_id:Q.memoryStoreId})}if(Q.readOnly)return;if(Q.refusedShas.get($)===z)return;return await X(this,k,"m",qQ).call(this,Q,$,z,void 0)}let Y=Z.content_sha256,H=Y!==K,W=z!==void 0&&z!==K&&z!==Y,J=!Q.readOnly&&W;if(z===void 0&&K!==void 0){if(H)X(this,G,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:$,memory_store_id:Q.memoryStoreId}),Q.pendingDeletes.delete($),q.push([$,Z]);return K}if(H){if(z===Y)return Y;if(W)X(this,G,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});return q.push([$,Z]),K}if(J){if(Q.refusedShas.get($)===z)return Y;return await X(this,k,"m",qQ).call(this,Q,$,z,Z)??Y}return Y},sQ=async function(Q,$,Z){let z;try{z=await Q.files.hashFile($)}catch(q){if(!(q instanceof D)&&!l(q))throw q;return Z}if(z===null)return;if(z!==Z)return z;try{await Q.files.remove($)}catch(q){if(!(q instanceof D)&&!l(q))throw q;return X(this,G,"f").warn("failed to remove memory deleted remotely",{path:$,memory_store_id:Q.memoryStoreId,error:String(q)}),Z}return},IQ=async function(Q,$,Z){try{await Q.files.put($,Z)}catch(z){if(!(z instanceof D)&&!l(z))throw z;return X(this,G,"f").warn("failed to write memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(z)}),!1}return!0},tQ=async function(Q,$){if($.length===0)return;let Z=async(K,Y)=>{let H;try{H=await X(this,f,"f").beta.memoryStores.memories.retrieve(Y.id,{memory_store_id:Q.memoryStoreId,view:"full"})}catch(W){if(F(W,404))return;X(this,G,"f").warn("failed to fetch memory content",{path:K,memory_store_id:Q.memoryStoreId,error:String(W)});return}if(await X(this,k,"m",IQ).call(this,Q,K,H.content??""))Q.baseline.set(K,H.content_sha256)},z=$[Symbol.iterator](),q=async()=>{for(let[K,Y]of z)await Z(K,Y)};await Promise.all(Array.from({length:Math.min(H1,$.length)},q))},rQ=async function(Q,$,Z,z){let q=$[Symbol.iterator](),K=async()=>{for(let[Y,H,W]of q){if(z?.aborted)return;let J=await X(this,k,"m",qQ).call(this,Q,Y,H,W);if(Z.delete(Y),J!==void 0)Q.baseline.set(Y,J)}};await Promise.all(Array.from({length:Math.min(W1,$.length)},K))},zQ=async function*(Q,$="basic"){let Z=$==="basic"?Y1:J1;for await(let z of X(this,f,"f").beta.memoryStores.memories.list(Q,{view:$,limit:Z})){if(z.type!=="memory")continue;let q=z.path.replace(/^\/+/,"");if(q===i){X(this,G,"f").warn("the server listed the reserved marker path; skipping",{path:z.path,memory_store_id:Q});continue}yield[q,z]}},qQ=async function V(Q,$,Z,z){try{let q=await Q.files.get($);if(q===null)return;let K=Z0(q),Y=z?await X(this,f,"f").beta.memoryStores.memories.update(z.id,{memory_store_id:Q.memoryStoreId,content:K,precondition:{type:"content_sha256",content_sha256:z.content_sha256}}):await X(this,f,"f").beta.memoryStores.memories.create(Q.memoryStoreId,{path:"/"+$,content:K});return Q.refusedShas.delete($),Y.content_sha256}catch(q){if(z&&F(q,404))return await X(this,k,"m",V).call(this,Q,$,Z,void 0);let K=q instanceof D||F(q,400)||F(q,413);if(z&&F(q,409))X(this,G,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:$,memory_store_id:Q.memoryStoreId});else if(K&&Z!==void 0)Q.refusedShas.set($,Z),X(this,G,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:$,memory_store_id:Q.memoryStoreId,rejection:String(q)});else X(this,G,"f").warn("failed to upload memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(q)});return}},eQ=async function(Q,$,Z,z,q){if(q.mode==="disabled")return q.suppressed++,z;let K=Q.pendingDeletes.get($);if(K===void 0)K=Date.now(),Q.pendingDeletes.set($,K);if(!q.waiveWindow&&Date.now()-K<X1)return z;let Y,H;try{Y=await Q.files.hashFile(i)===$0(Q.memoryStoreId),H=await Q.files.hashFile($)===null}catch(J){if(!(J instanceof D)&&!l(J))throw J;Y=H=!1}if(!Y)return z;if(!H)return Q.pendingDeletes.delete($),z;if(!q.takeSlot())return z;if(q.mode==="log_only")return X(this,G,"f").info("log-only: sync would delete this memory on the server",{path:$,memory_store_id:Q.memoryStoreId}),z;let W=await X(this,k,"m",Q0).call(this,Q,$,Z,z);if(W===void 0)Q.pendingDeletes.delete($);return W},Q0=async function(Q,$,Z,z){try{await X(this,f,"f").beta.memoryStores.memories.delete(Z.id,{memory_store_id:Q.memoryStoreId,expected_content_sha256:z})}catch(q){if(F(q,404))return;if(F(q,409)||F(q,412))X(this,G,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});else X(this,G,"f").warn("failed to delete memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(q)});return z}X(this,G,"f").info("propagated local deletion",{path:$,memory_store_id:Q.memoryStoreId});return}});import*as B from"node:fs/promises";import*as CQ from"node:fs";import*as y from"node:path";import*as yQ from"node:child_process";import*as k0 from"node:crypto";import*as L0 from"node:readline";function M0(V){return V===void 0?N1:V}function p(V){if(V===void 0)return;throw new R("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function w2(V){return[R1(V),I1(V),B1(V),O1(V),y1(V),T1(V)]}async function QQ(V,Q){return p(V.unrestrictedPaths),bQ(V.workdir,Q,{allowedRoots:V.allowedRoots??[]})}function R0(V,Q){return DQ(V.readOnlyRoots??[],Q)}function M1(){let V={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;V[Q]=$}return V}class I0{constructor(V,Q=M1()){WQ.add(this),j.set(this,void 0),T.set(this,""),r.set(this,!1),S.set(this,!1),v.set(this,null),w(this,j,yQ.spawn("/bin/bash",["--noprofile","--norc"],{cwd:V,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),X(this,j,"f").stdout.setEncoding("utf8"),X(this,j,"f").stderr.setEncoding("utf8"),X(this,j,"f").stdout.on("data",($)=>X(this,WQ,"m",OQ).call(this,$)),X(this,j,"f").stderr.on("data",($)=>X(this,WQ,"m",OQ).call(this,$)),X(this,j,"f").once("close",()=>{w(this,S,!0,"f");let $=X(this,v,"f");w(this,v,null,"f"),$?.resolve()})}get closed(){return X(this,S,"f")}async exec(V,Q={}){if(X(this,S,"f"))throw new R("bash session terminated");let $=Q.timeoutMs??w0,Z=Q.signal;Z?.throwIfAborted(),w(this,T,"","f"),w(this,r,!1,"f");let z=`__ANT_CMD_${k0.randomUUID()}_DONE__`,q=`${z.slice(0,8)}''${z.slice(8)}`,K=`{ ${V}
7
- } </dev/null 2>&1; printf '\\n${q}%d\\n' $?
8
- `;if(X(this,j,"f").stdin.write(K),X(this,T,"f").indexOf(z)<0){let{promise:O,resolve:g}=jQ();w(this,v,{sentinel:z,resolve:g},"f");let b,P;try{await Promise.race([O,new Promise((O0,UQ)=>{b=setTimeout(()=>UQ(new A0($)),$)}),new Promise((O0,UQ)=>{if(!Z)return;P=()=>UQ(Z.reason),Z.addEventListener("abort",P,{once:!0})})])}finally{if(b)clearTimeout(b);if(P&&Z)Z.removeEventListener("abort",P);w(this,v,null,"f")}}let Y=X(this,T,"f").indexOf(z);if(Y<0)throw new R("bash session terminated");let W=X(this,T,"f").slice(Y+z.length).match(/^(-?\d+)/),J=W?parseInt(W[1],10):-1,U=X(this,T,"f").slice(0,Y).replace(w1,"").replace(/\n+$/,"");if(X(this,r,"f"))U=`[output truncated]
9
- ${U}`;return{output:U,exitCode:J}}close(){if(X(this,S,"f"))return;w(this,S,!0,"f");let V=X(this,v,"f");w(this,v,null,"f"),V?.resolve(),X(this,j,"f").stdout.destroy(),X(this,j,"f").stderr.destroy(),X(this,j,"f").stdin.destroy();try{process.kill(-X(this,j,"f").pid,"SIGKILL")}catch{X(this,j,"f").kill("SIGKILL")}X(this,j,"f").unref()}}function R1(V){p(V.unrestrictedPaths);let Q,$=Promise.resolve();return m({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:Z,restart:z,timeout_ms:q},K)=>{let Y=$,H=jQ();$=H.promise;try{await Y}catch{}try{if(z)Q?.close(),Q=void 0;if(!Z){if(z)return"bash session restarted";throw new C("bash: command is required")}Q??(Q=new I0(V.workdir,V.env));try{let{output:W,exitCode:J}=await Q.exec(Z,{timeoutMs:q??w0,signal:K?.signal});if(J!==0)throw new C(W||`exit ${J}`);return W}catch(W){if(W instanceof C)throw W;throw Q.close(),Q=void 0,new C(`bash: ${W instanceof Error?W.message:String(W)}`)}}finally{H.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function I1(V){return p(V.unrestrictedPaths),m({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new C("read: file_path is required");let Z=await QQ(V,Q),z;try{let J=await B.stat(Z);if(!J.isFile())throw new C(`read: ${Q} is not a regular file`);let U=M0(V.maxFileBytes);if(U!==null&&J.size>U)throw new C(`read: ${Q} is ${J.size} bytes, exceeds ${U}-byte limit. Use bash (head/tail/sed) to read a slice.`);z=await B.readFile(Z,"utf8")}catch(J){if(J instanceof C)throw J;throw new C(`read: ${d(J,Q)}`)}if(!$?.length)return z;if($.length!==2)throw new C("read: view_range must be [start_line, end_line]");let[q,K]=$,Y=z.split(`
10
- `),H=Math.max(0,q-1),W=K>0?K:Y.length;return Y.slice(H,W).join(`
11
- `)}})}function B1(V){return p(V.unrestrictedPaths),m({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new C("write: file_path is required");let Z=await QQ(V,Q),z=await R0(V,Z);if(z!==void 0)throw new C(`write: ${Q} is inside read-only directory ${z}`);try{await B.mkdir(y.dirname(Z),{recursive:!0,mode:o}),await GQ(Z,$??"")}catch(q){throw new C(`write: ${d(q,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function O1(V){return p(V.unrestrictedPaths),m({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:Z,replace_all:z})=>{if(!Q)throw new C("edit: file_path is required");if(!$)throw new C("edit: old_string is required");let q=await QQ(V,Q),K=await R0(V,q);if(K!==void 0)throw new C(`edit: ${Q} is inside read-only directory ${K}`);let Y;try{let J=await B.stat(q);if(!J.isFile())throw new C(`edit: ${Q} is not a regular file`);let U=M0(V.maxFileBytes);if(U!==null&&J.size>U)throw new C(`edit: ${Q} is ${J.size} bytes, exceeds ${U}-byte limit. Use bash (sed/awk) to edit a large file.`);Y=await B.readFile(q,"utf8")}catch(J){if(J instanceof C)throw J;throw new C(`edit: ${d(J,Q)}`)}let H=Y.split($).length-1;if(H===0)throw new C(`edit: old_string not found in ${Q}`);let W;if(z)W=Y.split($).join(Z);else{if(H>1)throw new C(`edit: old_string appears ${H} times in ${Q} (must be unique)`);W=Y.replace($,()=>Z)}try{await GQ(q,W)}catch(J){throw new C(`edit: write: ${d(J,Q)}`)}return`edited ${Q} (${z?H:1} replacement(s))`}})}function j1(V){return V.split(/[\\/{},]/).includes("..")}function y1(V){return p(V.unrestrictedPaths),m({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new C("glob: pattern is required");if(y.isAbsolute(Q))throw new C("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(j1(Q))throw new C('glob: ".." is not permitted in the pattern');let Z=$?await QQ(V,$):y.resolve(V.workdir),z=$?Z:await a(Z),q=[],K=B0;try{for await(let Y of A1(Q,{cwd:Z,withFileTypes:!0,exclude:(H)=>H.name===".git"||H.name==="node_modules"})){if(K--<=0)break;if(!Y.isFile())continue;let H=y.join(Y.parentPath,Y.name),W;try{W=await B.realpath(H)}catch{continue}if(!$Q(z,W))continue;let J=0;try{J=(await B.stat(H)).mtimeMs}catch{}q.push({path:H,mtime:J})}}catch(Y){throw new C(`glob: ${Y instanceof Error?Y.message:String(Y)}`)}if(q.length===0)return"no matches";return q.sort((Y,H)=>H.mtime-Y.mtime),q.slice(0,L1).map((Y)=>Y.path).join(`
12
- `)}})}function T1(V){return p(V.unrestrictedPaths),m({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},Z)=>{if(!Q)throw new C("grep: pattern is required");let z=y.resolve(V.workdir);if($)z=await QQ(V,$);let q=await F1();return q?x1(q,Q,z,Z?.signal):v1(Q,z,Z?.signal)}})}function x1(V,Q,$,Z){return new Promise((z,q)=>{let K=yQ.spawn(V,["-n","--no-heading","-e",Q,"--",$],{...Z?{signal:Z}:{}}),Y="",H="",W=!1;K.stdout.on("data",(J)=>{if(W)return;if(Y+=J,Y.length>e)W=!0,Y=Y.slice(0,e),K.kill("SIGKILL")}),K.stderr.on("data",(J)=>H+=J),K.on("close",(J)=>{if(Z?.aborted)return q(new C("grep: aborted"));if(W)return z(Y+`
13
- [output truncated at ${e} bytes]`);if(J===0)return z(Y);if(J===1)return z("no matches");q(new C(`grep: rg failed: ${H||`exit ${J}`}`))}),K.on("error",(J)=>{if(Z?.aborted)return q(new C("grep: aborted"));q(new C(`grep: rg failed: ${J.message}`))})})}async function v1(V,Q,$){let Z;try{Z=new RegExp(V)}catch(H){throw new C(`grep: invalid regex: ${H instanceof Error?H.message:String(H)}`)}let z=[],q=e,K=(H)=>{if(q-=H.length+1,q<0)return z.push(`[output truncated at ${e} bytes]`),!1;return z.push(H),!0};if((await B.stat(Q).catch(()=>null))?.isFile())await N0(Q,Z,K);else await P1(Q,"",(H)=>N0(y.join(Q,H),Z,K),$);if($?.aborted)throw new C("grep: aborted");if(z.length===0)return"no matches";return z.join(`
14
- `)}async function N0(V,Q,$){let Z=CQ.createReadStream(V,{encoding:"utf8"}),z=L0.createInterface({input:Z,crlfDelay:1/0}),q=0;try{for await(let K of z){if(q++,K.length>k1)continue;if(Q.test(K)&&!$(`${V}:${q}:${K}`))return!1}}catch{}finally{Z.destroy()}return!0}async function P1(V,Q,$,Z){let z=B0;async function q(K,Y){if(Y>b1)return!0;if(Z?.aborted)return!1;let H;try{H=await B.readdir(y.join(V,K),{withFileTypes:!0})}catch{return!0}for(let W of H){if(W.name===".git"||W.name==="node_modules")continue;if(z--<=0)return!1;if(Z?.aborted)return!1;let J=K?y.join(K,W.name):W.name;if(W.isDirectory()){if(!await q(J,Y+1))return!1}else if(W.isFile()){if(await $(J)===!1)return!1}}return!0}await q(Q,0)}async function F1(){let V=(process.env.PATH??"").split(y.delimiter);for(let Q of V){let $=y.join(Q,"rg");try{return await B.access($,CQ.constants.X_OK),$}catch{}}return null}var WQ,j,T,r,S,v,OQ,G0=102400,w0=120000,N1=262144,e=102400,k1=2000,L1=200,A0,w1,A1,b1=40,B0=50000;var g1=u(()=>{V0();LQ();vQ();xQ();G1();NQ();mQ();D0();A0=class A0 extends R{constructor(V){super(`bash command timed out after ${V}ms`);this.name="BashTimeoutError",this.timeoutMs=V}};w1=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,A1=B.glob;j=new WeakMap,T=new WeakMap,r=new WeakMap,S=new WeakMap,v=new WeakMap,WQ=new WeakSet,OQ=function(Q){if(w(this,T,X(this,T,"f")+Q,"f"),X(this,T,"f").length>G0)w(this,T,X(this,T,"f").slice(X(this,T,"f").length-G0),"f"),w(this,r,!0,"f");if(X(this,v,"f")&&X(this,T,"f").indexOf(X(this,v,"f").sentinel)>=0){let $=X(this,v,"f");w(this,v,null,"f"),$.resolve()}}});g1();export{f0 as setupSkills,EQ as resolveSkillVersion,QQ as resolvePath,uQ as extractSkillArchive,B1 as betaWriteTool,I1 as betaReadTool,T1 as betaGrepTool,y1 as betaGlobTool,O1 as betaEditTool,R1 as betaBashTool,w2 as betaAgentToolset20260401,U0 as SessionMemoryStores,_ as SessionMemoryError,z0 as MIN_MEMORY_SYNC_INTERVAL_MS,K1 as MEMORY_FLUSH_TIMEOUT_MS,i as MARKER_PATH,HQ as DEFAULT_MEMORY_SYNC_INTERVAL_MS,A0 as BashTimeoutError,I0 as BashSession};
@@ -1 +0,0 @@
1
- import{$ja as a,aka as b,bka as c,cka as d,dka as e,eka as f,fka as g,gka as h,hka as i,ika as j}from"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-bdj1ne1r.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
@@ -1,14 +0,0 @@
1
- import{Ji as QZ,Ki as W0,Li as WZ}from"./cli-1.1.23-jb9w45wb.mjs";import{Oi as l$,Qi as J1}from"./cli-1.1.23-zwpmh1ab.mjs";import{$r as z0,Bq as Z0,Br as hZ,CR as H0,Cq as Z1,DR as TZ,Dq as c$,ER as r$,Eq as i$,FR as gZ,Fq as f$,Gq as Q1,Hk as _$,Ik as e0,Lq as e$,Mq as O0,Mr as Y0,Vq as J0,Vr as Y1,Wr as n$,Xr as z1,Yr as X$,Zr as EZ,_r as y$,as as K0,bs as a$,cs as j0,ds as X0,es as o$,fs as K1,mr as D0,rj as U$,sj as tZ,tj as a,tr as D1,uj as m$,ur as Z$,vj as d$,wj as p$,xj as eZ,yj as R$}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import{c3 as $0,g3 as $1}from"./cli-1.1.23-v5e3cr99.mjs";import{i3 as M$,m3 as SZ}from"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import"./cli-1.1.23-hdrz15yh.mjs";import"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import{D4 as Q0,E4 as W1}from"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-4tcfdexs.mjs";import{j5 as sZ,p5 as t0}from"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import{G9 as aZ,H9 as oZ,I9 as rZ,O9 as u$,P9 as bZ,Q9 as kZ}from"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Dga as k$,Ega as cZ,Fga as iZ,Hga as h$,Iga as lZ,Mga as nZ,Qga as s0,Tga as Y$,Wga as ZZ,hga as $Z,iga as w0,tga as dZ,wga as pZ,xga as r0}from"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import{mla as T,pla as O$}from"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import{$la as D$,Zla as e,fma as P$}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as a0,Lna as b$}from"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import{Msa as o0,nsa as V$}from"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Fta as y}from"./cli-1.1.23-bdj1ne1r.mjs";function J$($,Z=!0){let Q=e$($);if(Q.type==="object"&&Q.properties){let W=Q.properties,J=Array.isArray(Q.required)?Q.required:[],D={};for(let[z,X]of Object.entries(W))D[z]=J$(X,Z);if(Q.properties=D,Z)Q.required=J.filter((z)=>(z in D)),Q.additionalProperties=!1;else Q.required=J.filter((z)=>(z in D))}if("items"in Q)if(Array.isArray(Q.items))Q.items=Q.items.map((W)=>J$(W,Z));else Q.items=J$(Q.items,Z);for(let W of["anyOf","oneOf","allOf"])if(W in Q&&Array.isArray(Q[W]))Q[W]=Q[W].map((J)=>J$(J,Z));return Q}function A$($){let Q=!a()&&!e(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return $.filter((W)=>W.name!=="ToolSearchTool").filter((W)=>!W.type||W.type==="function"||W.type==="custom").map((W)=>{let J=W.description??"";if(W.input_schema){let X=t$.get(W.input_schema);if(X&&X.name===W.name&&X.description===J&&X.strict===Q)return X.result}N0.computes++;let D={...W.input_schema??{type:"object",properties:{}}};if(W.name==="Agent"&&D.properties){let X=D.properties;if(!Array.isArray(D.required))D.required=[];let Y=D.required;for(let K of["message","subagent_type"])if(K in X&&!Y.includes(K))Y.push(K)}let z={type:"function",function:{name:W.name,description:J,parameters:J$(D,Q)}};if(W.input_schema)t$.set(W.input_schema,{name:W.name,description:J,strict:Q,result:z});return z})}var t$,N0;var B$=y(()=>{P$();O0();R$();t$=new WeakMap,N0={computes:0}});function L0(){if(D$())return;try{return $Z().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function JZ(){if(Y$()?.transport!=="gemini")return;let $=QZ(process.env);if($&&$!=="access-token")return;if(D$())return;L0()}var DZ=y(()=>{ZZ();P$();WZ();w0()});import{randomUUID as M0}from"crypto";function U0(){return M0()}function YZ($,Z){let Q=U0(),W=Date.now();return T(JSON.stringify({type:"api_call_start",correlationId:Q,provider:$,model:Z,timestamp:W}),{level:"debug"}),{correlationId:Q,startTime:W}}function zZ($,Z,Q,W,J,D,z,X,Y,K){let V=Date.now()-Z,F={type:W==="error"?"api_call_error":"api_call_end",correlationId:$,model:Q,duration_ms:V,status:W,tokens_in:J,tokens_out:D,streaming:z};if(X!==void 0)F.first_token_ms=X;if(Y!==void 0)F.total_chunks=Y;if(K)F.error=K;T(JSON.stringify(F),{level:W==="error"?"error":"debug"})}var KZ=y(()=>{O$()});function jZ($){return $.trim().length===0}function _0($){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test($)}function f0($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function I0($){return VZ[$]??null}function FZ($){return $ in VZ}function XZ($,Z){let Q=I0($);if(!Q)return null;return{[Q]:Z}}function $$($,Z){if(Z===void 0)return{};try{let Q=JSON.parse(Z);if(f0(Q))return Q;if(typeof Q==="string"&&!jZ(Q))return XZ($,Q)??Q;return Q}catch{if(jZ(Z)||_0(Z))return{};return XZ($,Z)??{}}}var VZ;var v$=y(()=>{VZ={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function z$($){if(!$)return{};let Z={};for(let[Q,W]of Object.entries($)){let J=Q.toLowerCase();if(J.startsWith("x-anthropic")||J.startsWith("anthropic-")||J.startsWith("x-claude")||J==="x-app"||J==="x-client-app"||J==="authorization"||J==="x-api-key"||J==="api-key")continue;Z[Q]=W}return Z}function GZ($){let Z=$.headers.get("retry-after");return Z?` (Retry-After: ${Z})`:""}var HZ=()=>{};function PZ($){return new Promise((Z)=>setTimeout(Z,$))}function K$(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var q$=()=>{};function R0($){let Z=OZ.get($);if(Z!==void 0)return Z;wZ.toolResultComputes++;let Q=B0($.content,$.is_error);return OZ.set($,Q),Q}function A0($){if(typeof $==="string")return $;if($===null||$===void 0)return"{}";if(typeof $!=="object")return JSON.stringify($);let Z=NZ.get($);if(Z!==void 0)return Z;wZ.toolUseArgumentsComputes++;let Q=JSON.stringify($);return NZ.set($,Q),Q}function S$($){if(!$)return"";if(typeof $==="string")return $;if(Array.isArray($))return $.map((Z)=>Z.type==="text"?Z.text??"":"").join(`
2
-
3
- `);return String($)}function B0($,Z){if(typeof $==="string")return Z?`Error: ${$}`:$;if(!Array.isArray($)){let J=JSON.stringify($??"");return Z?`Error: ${J}`:J}let Q=[];for(let J of $){if(J?.type==="text"&&typeof J.text==="string"){Q.push({type:"text",text:J.text});continue}if(J?.type==="image"){let D=J.source;if(D?.type==="url"&&D.url)Q.push({type:"image_url",image_url:{url:D.url}});else if(D?.type==="base64"&&D.media_type&&D.data)Q.push({type:"image_url",image_url:{url:`data:${D.media_type};base64,${D.data}`}});continue}if(typeof J?.text==="string")Q.push({type:"text",text:J.text})}if(Q.length===0)return"";if(Q.length===1&&Q[0].type==="text"){let J=Q[0].text??"";return Z?`Error: ${J}`:J}if(Q.every((J)=>J.type==="text")){let J=Q.map((D)=>D.text??"").join(`
4
-
5
- `);return Z?`Error: ${J}`:J}if(Z&&Q[0]?.type==="text")Q[0]={...Q[0],text:`Error: ${Q[0].text??""}`};else if(Z)Q.unshift({type:"text",text:"Error:"});return Q}function N$($){if(typeof $==="string")return $;if(!Array.isArray($))return String($??"");let Z=[];for(let W of $)switch(W.type){case"text":Z.push({type:"text",text:W.text??""});break;case"image":{let J=W.source;if(J?.type==="base64")Z.push({type:"image_url",image_url:{url:`data:${J.media_type};base64,${J.data}`}});else if(J?.type==="url")Z.push({type:"image_url",image_url:{url:J.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(W.text)Z.push({type:"text",text:W.text})}if(Z.length===0)return"";if(Z.length===1&&Z[0].type==="text")return Z[0].text??"";if(Z.every((W)=>W.type==="text"))return Z.map((W)=>W.text??"").join(`
6
-
7
- `);return Z}function LZ($,Z,Q){let W=Q?.preserveReasoningContent===!0,J=[],D=new Set,z=new Set;for(let K of $){let F=(K.message??K).content;if(Array.isArray(F)){for(let w of F)if(w.type==="tool_result"&&w.tool_use_id)z.add(w.tool_use_id)}}let X=S$(Z);if(X)J.push({role:"system",content:X});for(let K=0;K<$.length;K++){let V=$[K],F=K===$.length-1,w=V.message??V,M=w.role??V.role,H=w.content;if(M==="user")if(Array.isArray(H)){let L=H.filter((O)=>O.type==="tool_result"),_=H.filter((O)=>O.type!=="tool_result");for(let O of L){let R=O.tool_use_id??"unknown";if(D.has(R))J.push({role:"tool",tool_call_id:R,content:R0(O)});else T(`Dropping orphan tool_result for ID: ${R} to prevent API error`)}if(_.length>0)J.push({role:"user",content:N$(_)})}else J.push({role:"user",content:N$(H)});else if(M==="assistant")if(Array.isArray(H)){let L=H.filter((P)=>P.type==="tool_use"),_=H.find((P)=>P.type==="thinking"),O=H.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),R={role:"assistant",content:(()=>{let P=N$(O);return typeof P==="string"?P:Array.isArray(P)?P.map((f)=>f.text??"").join(""):""})()};if(W){let P=_?.thinking;if(typeof P==="string"&&P.trim().length>0)R.reasoning_content=P;else R.reasoning_content=""}if(L.length>0){let P=L.map((f)=>{let g=f.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!z.has(g)&&!F)return null;D.add(g);let b={id:g,type:"function",function:{name:f.name??"unknown",arguments:A0(f.input)}};if(f.extra_content)b.extra_content={...f.extra_content};if(a()){let l=f.signature??_?.signature,o=b.extra_content?.google??{};b.extra_content={...b.extra_content,google:{...o,thought_signature:l??"skip_thought_signature_validator"}}}return b}).filter((f)=>f!==null);if(P.length>0)R.tool_calls=P}if(R.content||R.tool_calls?.length)J.push(R)}else{let L={role:"assistant",content:(()=>{let _=N$(H);return typeof _==="string"?_:Array.isArray(_)?_.map((O)=>O.text??"").join(""):""})()};if(L.content)J.push(L)}}let Y=[];for(let K of J){let V=Y[Y.length-1];if(V&&V.role==="tool"&&K.role==="user")Y.push({role:"assistant",content:"[Tool execution interrupted by user]"});let F=Y[Y.length-1];if(F&&F.role===K.role&&K.role!=="tool"&&K.role!=="system"){let w=F.content,M=K.content;if(typeof w==="string"&&typeof M==="string")F.content=w+(w&&M?`
8
- `:"")+M;else{let H=(L)=>{if(!L)return[];if(typeof L==="string")return L?[{type:"text",text:L}]:[];return L};F.content=[...H(w),...H(M)]}if(K.tool_calls?.length)F.tool_calls=[...F.tool_calls??[],...K.tool_calls]}else Y.push(K)}return Y}var OZ,NZ,wZ;var MZ=y(()=>{O$();R$();OZ=new WeakMap,NZ=new WeakMap,wZ={toolResultComputes:0,toolUseArgumentsComputes:0}});function _Z($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}function fZ($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}var UZ;var E$=y(()=>{UZ=["reasoning_content","reasoning","reasoning_text","thinking"]});function IZ(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function x$($,Z){if($.firstTokenTime===null)$.firstTokenTime=Date.now();$.chunkCount++}function RZ($){let Z=Date.now(),Q=$.firstTokenTime?Z-$.firstTokenTime:null,W=Z-$.startTime;return{totalChunks:$.chunkCount,firstTokenMs:Q,durationMs:W}}var AZ=()=>{};function j$($){let Z=$.trim();if(Z==="")return"";try{return JSON.parse(Z)}catch{return $}}function m0($,Z){let Q=0,W=!1,J=!1;for(let D=Z;D<$.length;D++){let z=$[D];if(J){J=!1;continue}if(z==="\\"&&W){J=!0;continue}if(z==='"'){W=!W;continue}if(W)continue;if(z==="{")Q++;else if(z==="}"){if(Q--,Q===0)return $.slice(Z,D+1)}}return null}function d0($,Z){let Q=[...Z].sort((D,z)=>D[0]-z[0]),W="",J=0;for(let[D,z]of Q)W+=$.slice(J,D),J=z;return W+$.slice(J)}function w$($){return $.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function p0($){let Z={},Q=$.trim(),W=Q.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),J=!1;for(let D of $.matchAll(b0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(k0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(h0)){let z=D[1]?.trim();if(z)J=!0,Z[z]=j$(D[2]??"")}return{name:W&&u0.test(W)&&(J||Q===W)?W:void 0,args:Z}}function vZ($,Z){let Q=0,W=Z?BZ:[C$];for(let J of W){let D=Math.min($.length,J.length-1);for(let z=D;z>0;z--)if(J.startsWith($.slice($.length-z))){Q=Math.max(Q,z);break}}return Q}function qZ($,Z){return(Z?BZ:[C$]).reduce((W,J)=>{let D=$.indexOf(J);return D===-1?W:W===-1?D:Math.min(W,D)},-1)}function c0($,Z=!1){let Q=[],W=new Set,J=[],D=(Y,K)=>{let V=`${Y}:${JSON.stringify(K)}`;if(W.has(V))return;W.add(V),Q.push({id:`xml_tc_${++v0}`,name:Y,arguments:K})},z=Z?[...$.matchAll(y0)].map((Y)=>({range:[Y.index,Y.index+Y[0].length],parsed:p0(Y[1]??"")})):[],X=Z?[...$.matchAll(x0)].filter((Y)=>{let K=[Y.index,Y.index+Y[0].length];return z.some((V)=>V.parsed.name&&K[0]<=V.range[0]&&V.range[1]<=K[1])}).map((Y)=>[Y.index,Y.index+Y[0].length]):[];for(let Y of z){let{name:K,args:V}=Y.parsed;if(!K)continue;let F=Y.range;if(!X.some((w)=>w[0]<=F[0]&&F[1]<=w[1]))J.push(F);D(K,V)}J.push(...X);for(let Y of $.matchAll(E0)){let K=Y[1]??"",V=[Y.index,Y.index+Y[0].length],F,w={},M=K.match(C0);if(M){F=M[1];for(let H of K.matchAll(T0)){let L=H[1];if(L)w[L]=j$(H[2]??"")}}else{let H=K.trim(),L=[...K.matchAll(g0)];if(L.length>0&&!H.startsWith("{")){let _=H.split(/[\n<]/,1)[0]?.trim();if(_)F=_;for(let O of L){let R=(O[1]??"").trim();if(R)w[R]=j$(O[2]??"")}}else{let _=H.indexOf("{");if(_!==-1){let O=m0(H,_);if(O)try{let R=JSON.parse(O);if(typeof R.name==="string"){F=R.name;let P=R.arguments;if(typeof P==="string")try{Object.assign(w,JSON.parse(P))}catch{}else if(P&&typeof P==="object")Object.assign(w,P)}}catch{}}}}if(!F)continue;J.push(V),D(F,w)}return{calls:Q,toolCallRanges:J}}function L$($,Z={}){let{calls:Q,toolCallRanges:W}=c0($,Z.allowHy3??!1),J=Z.toolNames?Q.filter((z)=>Z.toolNames.has(z.name)):Q;if(J.length===0)return null;return{visibleText:X$(d0($,W).trim()).trim(),calls:J}}var v0=0,C$="<tool_call>",q0="<tool_calls:",S0="<tool_call:",BZ,E0,x0,y0,C0,T0,g0,b0,k0,h0,u0;var T$=y(()=>{y$();BZ=[C$,q0,S0],E0=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,x0=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,y0=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,C0=/<function=([^>\s]+)\s*>/,T0=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,g0=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,b0=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,k0=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,h0=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,u0=/^[A-Za-z_][\w.-]*$/});function i0($){if(!$)return;return M$($)}function l0($){try{let Z=JSON.parse($);return Z&&typeof Z==="object"&&!Array.isArray(Z)?$:null}catch{for(let Z of xZ)try{let Q=$+Z,W=JSON.parse(Q);if(W&&typeof W==="object"&&!Array.isArray(W))return Q}catch{}return null}}async function*yZ($,Z,Q,W,J){let D=K$(),z=0,X=new Map,Y=!1,K=!1,V=!1,F=EZ(),w=null,M=!1,H=!1,L=0,_=IZ(),O=!!J&&J.size>0&&!e(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),R=w$(Z),P=null,f="",g=null;yield{type:"message_start",message:{id:D,type:"message",role:"assistant",content:[],model:Z,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let b=$.body?.getReader();if(!b)return;let l=b,o=new TextDecoder,r="",p=120000,k=Date.now();async function F$(){return new Promise((I,B)=>{let S=setTimeout(()=>{let U=Math.round((Date.now()-k)/1000);B(Error(`OpenAI/Gemini SSE stream idle for ${U}s (limit: ${p/1000}s). Connection likely dropped.`))},p),A;if(Q)A=()=>{clearTimeout(S)},Q.addEventListener("abort",A,{once:!0});l.read().then((U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);if(U.value)k=Date.now();I(U)},(U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);B(U)})})}let n=async function*(){if(!Y)return;let I=F.flush();if(I)yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}};yield{type:"content_block_stop",index:z},z++,Y=!1},h=async function*(I){if(!I)return;if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;L+=I.length,yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}}},W$=async function*(I){if(!I)return;if(P!==null){P+=I;return}let B=f+I,S=qZ(B,R);if(S!==-1){let A=B.slice(0,S);if(A)yield*h(A);f="",P=B.slice(S)}else{let A=vZ(B,R),U=A>0?B.slice(0,B.length-A):B;if(f=A>0?B.slice(B.length-A):"",U)yield*h(U)}},G$=async function*(){if(O){let I=F.flush();if(I)yield*W$(I)}if(P!==null){let I=P;P=null;let B=L$(I,{allowHy3:R,toolNames:J});if(B){if(B.visibleText)yield*h(B.visibleText);if(Y)yield*n();for(let S of B.calls){let A=z;yield{type:"content_block_start",index:A,content_block:{type:"tool_use",id:S.id,name:S.name,input:{}}},z++,yield{type:"content_block_delta",index:A,delta:{type:"input_json_delta",partial_json:JSON.stringify($$(S.name,JSON.stringify(S.arguments)))}},yield{type:"content_block_stop",index:A}}g="tool_use"}else yield*h(I)}else if(f)yield*h(f),f=""};try{while(!0){let{done:I,value:B}=await F$();if(I)break;r+=o.decode(B,{stream:!0});let S=r.split(`
9
- `);r=S.pop()??"";for(let A of S){let U=A.trim();if(!U||U==="data: [DONE]")continue;if(!U.startsWith("data: "))continue;let t;try{t=JSON.parse(U.slice(6))}catch{continue}let c=i0(t.usage);for(let u of t.choices??[]){let d=u.delta,G=_Z(d);if(G!=null){if(!K)yield{type:"content_block_start",index:z,content_block:{type:"thinking",thinking:""}},K=!0;yield{type:"content_block_delta",index:z,delta:{type:"thinking_delta",thinking:G}}}if(d.content!=null&&d.content!==""){let j=F.feed(d.content);if(x$(_,d.content),j)if(O)yield*W$(j);else yield*h(j)}if(d.tool_calls){if(P!==null)yield*h(P),P=null;if(f)yield*h(f),f="";for(let j of d.tool_calls)if(j.id&&j.function?.name){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(Y)yield*n();let N=z,v=j.function.arguments??"",E=FZ(j.function.name);if(x$(_,j.function.arguments??""),X.set(j.index,{id:j.id,name:j.function.name,index:N,jsonBuffer:v,normalizeAtStop:E}),yield{type:"content_block_start",index:N,content_block:{type:"tool_use",id:j.id,name:j.function.name,input:{},...j.extra_content?{extra_content:j.extra_content}:{},...j.extra_content?.google?.thought_signature?{signature:(j.extra_content?.google).thought_signature}:{}}},z++,j.function.arguments&&!E)L+=j.function.arguments.length,yield{type:"content_block_delta",index:N,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}else if(j.function?.arguments){let N=X.get(j.index);if(N){if(j.function.arguments)L+=j.function.arguments.length,N.jsonBuffer+=j.function.arguments;if(N.normalizeAtStop)continue;yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}}}if(u.finish_reason&&!H){if(H=!0,K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),g)u.finish_reason="tool_calls";if(Y)yield*n();for(let[,N]of X){if(N.normalizeAtStop){let E;if(u.finish_reason==="length")E=N.jsonBuffer;else{let C=l0(N.jsonBuffer);if(C)E=C;else E=JSON.stringify($$(N.name,N.jsonBuffer))}yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:E}},yield{type:"content_block_stop",index:N.index};continue}let v="";if(N.jsonBuffer)try{JSON.parse(N.jsonBuffer)}catch{let E=N.jsonBuffer.trimEnd();for(let C of xZ)try{JSON.parse(E+C),v=C;break}catch{}}if(v)yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:v}};yield{type:"content_block_stop",index:N.index}}let j=u.finish_reason==="tool_calls"?"tool_use":u.finish_reason==="length"?"max_tokens":"end_turn";if(u.finish_reason==="content_filter"||u.finish_reason==="safety"){if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:`
10
-
11
- [Content blocked by provider safety filter]`}}}if(w=j,yield{type:"message_delta",delta:{stop_reason:j,stop_sequence:null},...c?{usage:c}:{}},c)M=!0}}if(!M&&c&&(t.choices?.length??0)===0&&w!==null)yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:c},M=!0}}}finally{l.releaseLock()}if(!H&&(P!==null||f)){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),Y)yield*n();w=g??"end_turn",yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null}}}let s=RZ(_);if(s.totalChunks>0)T(JSON.stringify({type:"stream_stats",model:Z,total_chunks:s.totalChunks,first_token_ms:s.firstTokenMs,duration_ms:s.durationMs}),{level:"debug"});if(!M&&w!==null&&(L>0||(W??0)>0)){let I=TZ(Z);yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:{input_tokens:W??0,output_tokens:Math.ceil(L/I),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var xZ,g$;var CZ=y(()=>{O$();AZ();SZ();y$();v$();gZ();P$();q$();E$();T$();xZ=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];g$=class g${generator;controller=new AbortController;constructor($){this.generator=$}async*[Symbol.asyncIterator](){yield*this.generator}}});function n0($){let Z=$.toLowerCase();return bZ.some((Q)=>Z.includes(Q))}function Q$($){try{let Z=new URL($);if(Z.username)Z.username="redacted";if(Z.password)Z.password="redacted";for(let W of Z.searchParams.keys())if(n0(W))Z.searchParams.set(W,"redacted");let Q=Z.toString();return Z$(Q,process.env)??Q}catch{return Z$($,process.env)??$}}var uZ=y(()=>{hZ();kZ()});function mZ($){if(!$)return!1;try{let Z=new URL($).host;return Z==="api.openai.com"||Z.endsWith(".api.openai.com")}catch{return!1}}class V0{defaultHeaders;reasoningEffort;constructor($,Z){this.defaultHeaders=z$($),this.reasoningEffort=Z}create($,Z){let Q=this,W,J=(async()=>{let D=D0($.model,$.effortValue),z=D==="low"||D==="medium"||D==="high"||D==="xhigh"||D==="max"?D:Q.reasoningEffort,X=lZ({model:$.model,reasoningEffortOverride:z}),Y=await Q._doRequest(X,$,Z);W=Y;let K=new Set(($.tools??[]).map((M)=>M.name).filter((M)=>typeof M==="string"));if($.stream){let M=Y.url?.includes("/responses"),H=0;for(let L of $.messages){let _=L,O=_.message?_.message.content:_.content;if(O!=null&&typeof O!=="string"&&!Array.isArray(O))continue;H+=r$(O??void 0)}if(typeof $.system==="string")H+=H0($.system);else if(Array.isArray($.system))H+=r$($.system);return new g$(X.transport==="codex_responses"||M?X0(Y,X.resolvedModel,Z?.signal):yZ(Y,X.resolvedModel,Z?.signal,H,K))}if(X.transport==="codex_responses"){let M=await j0(Y,Z?.signal);return o$(M,X.resolvedModel)}if(Y.url?.includes("/responses")||X.transport==="chat_completions"&&U$()){if((Y.headers.get("content-type")??"").includes("application/json")){let H=await Y.json();if(H&&typeof H==="object"&&(("output"in H)||("incomplete_details"in H)))return o$(H,X.resolvedModel);return Q._convertNonStreamingResponse(H,X.resolvedModel,K)}}if((Y.headers.get("content-type")??"").includes("application/json")){let M=await Y.json();return Q._convertNonStreamingResponse(M,X.resolvedModel,K)}let w=await Y.text().catch(()=>"");throw V$.generate(Y.status,void 0,`OpenAI API error ${Y.status}: unexpected response: ${w.slice(0,500)}`,Y.headers)})();return J.withResponse=async()=>{return{data:await J,response:W??new Response,request_id:W?.headers.get("x-request-id")??K$()}},J}async _doRequest($,Z,Q){let W=h$($.baseUrl),J=U$();if(J&&$.transport==="codex_responses"){let z=Y$(),X=z?.extras?.githubToken??z?.apiKey??"";if(!X)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return a$({request:$,credentials:{apiKey:X,source:"env"},params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers),...u$,...l$(Z.messages)},signal:Q?.signal})}if($.transport==="codex_responses"&&!J){let z=await pZ().catch(async(Y)=>{return T(`[codex] access token refresh failed before request: ${Y instanceof Error?Y.message:String(Y)}`,{level:"warn"}),{refreshed:!1,credentials:await dZ()}}),X=nZ({storedCredentials:z.credentials});if(!X.apiKey){let Y=D$()?"":", choose Codex OAuth in /provider",K=X.authPath?`${Y} or place a Codex auth.json at ${X.authPath}`:Y,V=Z$($.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${V}. Set CODEX_API_KEY${K}.`)}if(!X.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");return a$({request:$,credentials:X,params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers)},signal:Q?.signal})}return this._doOpenAIRequest($,Z,Q)}async _doOpenAIRequest($,Z,Q){let W=Y0(Z.messages),J=LZ(W,Z.system,{preserveReasoningContent:m$($.baseUrl)||p$($.baseUrl)||d$($.baseUrl)}),D={model:$.resolvedModel,messages:J,stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:b$(),prompt_cache_retention:"24h"}},z=typeof Z.max_tokens==="number"&&Z.max_tokens>0?Z.max_tokens:void 0,X=typeof Z.max_completion_tokens==="number"?Z.max_completion_tokens:void 0;if(z!==void 0)D.max_completion_tokens=z;else if(X!==void 0)D.max_completion_tokens=X;if(Z.stream&&!k$($.baseUrl))D.stream_options={include_usage:!0};let Y=U$(),K=tZ(),V=k$($.baseUrl),F=h$($.baseUrl),w=Y&&F==="copilot",M=Y&&(F==="models"||F==="custom"),H=m$($.baseUrl),L=p$($.baseUrl),_=d$($.baseUrl);if((Y||K||V||H||L||_)&&D.max_completion_tokens!==void 0)D.max_tokens=D.max_completion_tokens,delete D.max_completion_tokens;if(K||a()||H||L||_)delete D.store;if(Z.temperature!==void 0)D.temperature=Z.temperature;if(Z.top_p!==void 0)D.top_p=Z.top_p;if(L){let G=Z.thinking?.type,j=G==="disabled"?"disabled":G==="enabled"||G==="adaptive"?"enabled":void 0;if(j)D.thinking={type:j};if(j==="enabled"){let N=$.reasoning?.effort;if(N)D.reasoning_effort=eZ(N)}}if(H){let G=$.reasoning?.effort;if(G&&J0($.resolvedModel))D.thinking={type:"enabled",effort:G,keep:"all"}}if(Z.tools&&Z.tools.length>0){let G=A$(Z.tools);if(G.length>0){if(D.tools=G,Z.tool_choice){let j=Z.tool_choice;if(j.type==="auto")D.tool_choice="auto";else if(j.type==="tool"&&j.name)D.tool_choice={type:"function",function:{name:j.name}};else if(j.type==="any")D.tool_choice="required";else if(j.type==="none")D.tool_choice="none"}}}let O={"Content-Type":"application/json",...this.defaultHeaders,...z$(Q?.headers),"User-Agent":Q0()},R=a(),P=Y$(),f=await Z0(P),g=P?.apiKey??P?.extras?.githubToken??f.accessToken??"",b=!1;try{let{hostname:G}=new URL($.baseUrl);b=G.endsWith(".azure.com")&&(G.includes("cognitiveservices")||G.includes("openai")||G.includes("services.ai"))}catch{}let l=!1;try{l=$.baseUrl.toLowerCase().includes("bankr")}catch{}if(g){if(b)O["api-key"]=g;else if(l)O["X-API-Key"]=g;else O.Authorization=`Bearer ${g}`;if(f.userAgent)O["User-Agent"]=f.userAgent;if(f.deviceHeaders)Object.assign(O,f.deviceHeaders)}else if(R){let G=await W0(process.env);if(G.kind!=="none"){if(O.Authorization=`Bearer ${G.credential}`,G.kind!=="api-key"&&"projectId"in G&&G.projectId)O["x-goog-user-project"]=G.projectId}}if(w)Object.assign(O,u$,l$(Z.messages));else if(M)O.Accept="application/vnd.github+json",O["X-GitHub-Api-Version"]="2022-11-28";let o=(G)=>{if(b){let j=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",N=$.resolvedModel??P?.model??"gpt-4o";if(/\/deployments\//i.test(G))return`${G.replace(/\/+$/,"")}/chat/completions?api-version=${j}`;return`${G.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${N}/chat/completions?api-version=${j}`}return`${G}/chat/completions`},r=V?cZ($.baseUrl):[],p=$.baseUrl,k=o(p),F$=new Set([p]),n=!1,h=(G)=>{for(let j of r){if(F$.has(j))continue;let N=k;return F$.add(j),p=j,k=o(p),T(`[OpenAIShim] self-heal retry reason=${G} method=POST from=${Q$(N)} to=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"}),!0}return!1},W$=_$(D),G$=()=>{W$=_$(D)},s=()=>({method:"POST",headers:O,body:W$,signal:Q?.signal}),I=V?r.length+1:0,B=(Y?aZ:1)+I,S=(G,j,N)=>{if(Q?.signal?.aborted)throw G;let v=N??i$(G,{url:j}),E=Q$(j),C=Z$(v.message,process.env)||"Request failed";throw T(`[OpenAIShim] transport failure category=${v.category} retryable=${v.retryable} code=${v.code??"unknown"} method=POST url=${E} model=${$.resolvedModel} message=${C}`,{level:"warn"}),V$.generate(503,void 0,c$(`OpenAI API transport error: ${C}${v.code?` (code=${v.code})`:""}`,v),new Headers)},A=(G,j,N,v,E,C="",q)=>{let x=q??f$({status:G,body:j}),i=Q$(E);throw T(`[OpenAIShim] request failed category=${x.category} retryable=${x.retryable} status=${G} method=POST url=${i} model=${$.resolvedModel}`,{level:"warn"}),V$.generate(G,N,c$(`OpenAI API error ${G}: ${j}${C}`,x),v)},U,t=$.baseUrl.includes("nvidia")?"nvidia-nim":$.baseUrl.includes("minimax")?"minimax":$.baseUrl.includes("localhost:11434")||$.baseUrl.includes("localhost:11435")?"ollama":$.baseUrl.includes("anthropic")?"anthropic":"openai",c=sZ(),{correlationId:u,startTime:d}=YZ(t,$.resolvedModel);for(let G=0;G<B;G++){try{U=await n$(k,s(),{provider:c})}catch(q){if(Q?.signal?.aborted===!0||typeof DOMException<"u"&&q instanceof DOMException&&q.name==="AbortError"||typeof q==="object"&&q!==null&&"name"in q&&q.name==="AbortError")throw q;let i=i$(q,{url:k});if(V&&i.category==="localhost_resolution_failed"&&h("localhost_resolution_failed"))continue;S(q,k,i)}if(U.ok){let q=0,x=0;if(!Z.stream)try{let m=await U.clone().json();q=m.usage?.prompt_tokens??0,x=m.usage?.completion_tokens??0}catch{}return zZ(u,d,$.resolvedModel,"success",q,x,!1),U}if(Y&&U.status===429&&G<B-1){await U.text().catch(()=>{});let q=Math.min(oZ*2**G,rZ);await PZ(q*1000);continue}let j=await U.text().catch(()=>"unknown error"),N=Y&&U.status===429?GZ(U):"";if(Y&&U.status===400){if(j.includes("/chat/completions")||j.includes("not accessible")){let q=`${$.baseUrl}/responses`,x={model:$.resolvedModel,input:z0(Z.messages),stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:b$(),prompt_cache_retention:"24h"}};if(!Array.isArray(x.input)||x.input.length===0)x.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let i=S$(Z.system);if(i)x.instructions=i;if(D.max_tokens!==void 0)x.max_output_tokens=D.max_tokens;if(Z.tools&&Z.tools.length>0){let H$=K0(Z.tools);if(H$.length>0)x.tools=H$}let m;try{m=await n$(q,{method:"POST",headers:O,body:_$(x),signal:Q?.signal},{provider:c})}catch(H$){S(H$,q)}if(m.ok)return m;let I$=await m.text().catch(()=>"unknown error"),P0=f$({status:m.status,body:I$}),s$;try{s$=JSON.parse(I$)}catch{}A(m.status,I$,s$,m.headers,q,"",P0)}}let v=f$({status:U.status,body:j});if(V&&v.category==="endpoint_not_found"&&h("endpoint_not_found"))continue;let E=Array.isArray(D.tools)&&D.tools.length>0;if(!n&&v.category==="tool_call_incompatible"&&iZ({baseUrl:p,hasTools:E})){n=!0,delete D.tools,delete D.tool_choice,G$(),T(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"});continue}let C;try{C=JSON.parse(j)}catch{}A(U.status,j,C,U.headers,k,N,v)}throw V$.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse($,Z,Q){let W=$.choices?.[0],J=[],D=!1,z=fZ(W?.message??{});if(z)J.push({type:"thinking",thinking:z});let X=W?.message?.content!==""&&W?.message?.content!=null?W?.message?.content:null;if(typeof X==="string"&&X){let V=!!Q&&Q.size>0&&!e(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?L$(X,{allowHy3:w$(Z),toolNames:Q}):null;if(V){if(V.visibleText)J.push({type:"text",text:V.visibleText});for(let F of V.calls)J.push({type:"tool_use",id:F.id,name:F.name,input:$$(F.name,JSON.stringify(F.arguments))});D=!0}else J.push({type:"text",text:X$(X)})}else if(Array.isArray(X)&&X.length>0){let K=[];for(let F of X)if(F&&typeof F==="object"&&F.type==="text"&&typeof F.text==="string")K.push(F.text);let V=K.join(`
12
- `);if(V)J.push({type:"text",text:X$(V)})}if(W?.message?.tool_calls)for(let K of W.message.tool_calls){let V=$$(K.function.name,K.function.arguments);J.push({type:"tool_use",id:K.id,name:K.function.name,input:V,...K.extra_content?{extra_content:K.extra_content}:{},...K.extra_content?.google?.thought_signature?{signature:(K.extra_content?.google).thought_signature}:{}})}let Y=D||W?.finish_reason==="tool_calls"?"tool_use":W?.finish_reason==="length"?"max_tokens":"end_turn";if(W?.finish_reason==="content_filter"||W?.finish_reason==="safety")J.push({type:"text",text:`
13
-
14
- [Content blocked by provider safety filter]`});return{id:$.id??K$(),type:"message",role:"assistant",content:J,model:$.model??Z,stop_reason:Y,stop_sequence:null,usage:M$($.usage)}}}class F0{messages;reasoningEffort;constructor($,Z){this.messages=new V0($,Z),this.reasoningEffort=Z}}function j1($){JZ(),$0();let Z=new F0({...$.defaultHeaders??{}},$.reasoningEffort);return{beta:Z,messages:Z.messages}}var G0=y(()=>{o0();r0();O$();P$();WZ();DZ();$1();t0();D1();hZ();KZ();e0();gZ();Y1();ZZ();SZ();K1();z1();Q1();s0();Z1();y$();v$();W1();J1();kZ();HZ();q$();MZ();R$();E$();CZ();a0();B$();T$();uZ()});var X1=y(()=>{B$();G0()});X1();export{j1 as createOpenAIShimClient,A$ as convertTools};
@@ -1 +0,0 @@
1
- import{Fta as t}from"./cli-1.1.23-bdj1ne1r.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
@@ -1 +0,0 @@
1
- import{ui as e,vi as a}from"./cli-1.1.23-cg8mndc0.mjs";import{Fta as r}from"./cli-1.1.23-bdj1ne1r.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
@@ -1 +0,0 @@
1
- import"./cli-1.1.23-bdj1ne1r.mjs";var o=()=>null,n=o;export{n as default};
@@ -1 +0,0 @@
1
- import{B9 as a,C9 as b,D9 as c,E9 as d,F9 as e}from"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-bdj1ne1r.mjs";e();export{c as parseCommandRaw,a as parseCommand,d as extractCommandArguments,b as PARSE_ABORTED};
@@ -1 +0,0 @@
1
- import{$Y as O,NY as y,PY as Qq,SY as S,TY as Uq,aZ as Xq,bZ as b,dZ as f,fZ as g,gZ as m,iZ as D}from"./cli-1.1.23-ah6fas1q.mjs";import{I1 as R,JZ as w,OZ as Hq,T1 as Nq,m1 as N,o1 as z,s1 as L}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import{o4 as X,p4 as q,q4 as J,r4 as V}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as Jq}from"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Daa as v,Faa as qq,Ifa as Yq,Zba as E,gha as P,kfa as d,nfa as p,oha as Bq,rca as zq}from"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import{jka as _,mka as k}from"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as s,Fta as h}from"./cli-1.1.23-bdj1ne1r.mjs";function c({onDone:Y}){let[C,U]=Q.useState(!0),[M,T]=Q.useState([]),[j,W]=Q.useState(!1),[G,x]=Q.useState(null),[A,l]=Q.useState(void 0),Z=S(()=>Y("Guest passes dialog dismissed",{display:"system"})),o=Q.useCallback(()=>{Y("Guest passes dialog dismissed",{display:"system"})},[Y]);if(y("confirm:no",o,{context:"Confirmation"}),R((H,B)=>{if(B.return&&G)w(G).then((K)=>{if(K)process.stdout.write(K);_("",{}),Y("Referral link copied to clipboard!")})}),Q.useEffect(()=>{async function H(){try{let B=await m();if(!B||!B.eligible){W(!1),U(!1);return}if(W(!0),B.referral_code_details?.referral_link)x(B.referral_code_details.referral_link);l(B.referrer_reward);let K=B.referral_code_details?.campaign??"claude_code_guest_pass",I;try{I=await b(K)}catch($){P($),W(!1),U(!1);return}let t=I.redemptions||[],a=I.limit||3,F=[];for(let $=0;$<a;$++){let e=t[$];F.push({passNumber:$+1,isAvailable:!e})}T(F),U(!1)}catch(B){P(B),W(!1),U(!1)}}H()},[]),C)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{dimColor:!0,children:"Loading guest pass information…"}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});if(!j)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{children:"Guest passes are not currently available."}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});let n=v(M,(H)=>H.isAvailable),r=[...M].sort((H,B)=>+B.isAvailable-+H.isAvailable),i=(H)=>{if(!H.isAvailable)return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{dimColor:!0,children:"┌─────────╱"}),q(z,{dimColor:!0,children:` ) CC ${E} ┊╱`}),q(z,{dimColor:!0,children:"└───────╱"})]},H.passNumber);return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{children:"┌──────────┐"}),J(z,{children:[" ) CC ",q(z,{color:"claude",children:E})," ┊ ( "]}),q(z,{children:"└──────────┘"})]},H.passNumber)};return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[J(z,{color:"permission",children:["Guest passes · ",n," left"]}),q(N,{flexDirection:"row",marginLeft:2,children:r.slice(0,3).map((H)=>i(H))}),G&&q(N,{marginLeft:2,children:q(z,{children:G})}),q(N,{flexDirection:"column",marginLeft:2,children:J(z,{dimColor:!0,children:[A?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${f(A)} of extra usage to keep building. `:"Share a free week of Claude Code with friends. ",q(L,{url:A?"https://support.claude.com/en/articles/13456702-claude-code-guest-passes":"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",children:"Terms apply."})]})}),q(N,{children:q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Enter to copy link · Esc to cancel"})})})]})})}var Q;var u=h(()=>{zq();Uq();Hq();Nq();Qq();k();D();qq();Bq();Xq();V();Q=s(Jq(),1)});async function kq(Y){let U=!p().hasVisitedPasses;if(U){let M=g();d((T)=>({...T,hasVisitedPasses:!0,passesLastSeenRemaining:M??T.passesLastSeenRemaining}))}return _("",{is_first_visit:U}),q(c,{onDone:Y})}var Zq=h(()=>{u();k();D();Yq();V()});Zq();export{kq as call};
@@ -1,3 +0,0 @@
1
- import{ae as e0,be as nN}from"./cli-1.1.23-fxt20eva.mjs";import{Ag as jN,Bg as vG}from"./cli-1.1.23-e3zf752q.mjs";import{vh as OG,wh as I0,xh as IG,yh as O0,zh as fN}from"./cli-1.1.23-xafxg4a2.mjs";import{Ah as iN,Bh as hG}from"./cli-1.1.23-n0182x8j.mjs";import{Fh as EG,Gh as tG}from"./cli-1.1.23-6d34yw4z.mjs";import"./cli-1.1.23-7jpsfgxt.mjs";import"./cli-1.1.23-dxtv4be7.mjs";import"./cli-1.1.23-hmtg8m65.mjs";import"./cli-1.1.23-vvcr72vv.mjs";import"./cli-1.1.23-9vqnsq1x.mjs";import{DG as n,EG as V0,FG as LG,GG as oG,HG as UG,IG as $G,LO as kG,MO as wG,NK as KG,NO as qG,OO as QG,QO as WG,RO as sG,Vm as E0,Ym as $0,_m as KN,ay as ZG,by as zG,cp as MN,dp as gG,dy as aG,io as s0,jo as DN,qS as wJ,tG as hN,tJ as pN,uG as mG,uJ as _G,wD as a0,xD as TN}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import{$Y as YG,AY as SG,NY as P0,PY as mN,SY as T0,TY as _N,aZ as rG,zY as SN}from"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import{I1 as uN,PZ as G0,S0 as XG,T1 as J0,m1 as v,o1 as H,w1 as RN}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import"./cli-1.1.23-v5e3cr99.mjs";import"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import{o4 as a,p4 as Y,q4 as T,r4 as x}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as t0}from"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-4tcfdexs.mjs";import"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import{w9 as s,x9 as lG}from"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import{Bda as FN,J_ as X0,Jda as jG,K_ as BN,dea as IN,vba as ON,wba as DG,wda as yN,wea as CG,xda as u,yda as HN}from"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import{Rka as b0,Wka as nG}from"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import{Kra as dG,Rna as tN}from"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as i,Fta as e}from"./cli-1.1.23-bdj1ne1r.mjs";function o0(U){let N=bN.c(9),{ruleValue:J}=U;switch(J.toolName){case a0.name:if(J.ruleContent)if(J.ruleContent.endsWith(":*")){let z;if(N[0]!==J.ruleContent)z=J.ruleContent.slice(0,-2),N[0]=J.ruleContent,N[1]=z;else z=N[1];let G;if(N[2]!==z)G=T(H,{dimColor:!0,children:["Any Bash command starting with"," ",Y(H,{bold:!0,children:z})]}),N[2]=z,N[3]=G;else G=N[3];return G}else{let z;if(N[4]!==J.ruleContent)z=T(H,{dimColor:!0,children:["The Bash command ",Y(H,{bold:!0,children:J.ruleContent})]}),N[4]=J.ruleContent,N[5]=z;else z=N[5];return z}else{let z;if(N[6]===Symbol.for("react.memo_cache_sentinel"))z=Y(H,{dimColor:!0,children:"Any Bash command"}),N[6]=z;else z=N[6];return z}default:if(!J.ruleContent){let z;if(N[7]!==J.toolName)z=T(H,{dimColor:!0,children:["Any use of the ",Y(H,{bold:!0,children:J.toolName})," tool"]}),N[7]=J.toolName,N[8]=z;else z=N[8];return z}else return null}}var bN;var EN=e(()=>{J0();TN();x();bN=i(G0(),1)});function yG(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IN("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IN("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function gN(U){let N=CN.c(26),{onAddRules:J,onCancel:z,ruleValues:G,ruleBehavior:w,initialContext:B,setToolPermissionContext:q}=U,E;if(N[0]===Symbol.for("react.memo_cache_sentinel"))E=ON.map(yG),N[0]=E;else E=N[0];let k=E,W;if(N[1]!==B||N[2]!==J||N[3]!==z||N[4]!==w||N[5]!==G||N[6]!==q)W=(j)=>{if(j==="cancel"){z();return}else if(ON.includes(j)){let A=j,D=E0(B,{type:"addRules",rules:G,behavior:w,destination:A});$0({type:"addRules",rules:G,behavior:w,destination:A}),q(D);let C=G.map((m)=>({ruleValue:m,ruleBehavior:w,source:A})),S=MN.isSandboxingEnabled()&&MN.isAutoAllowBashIfSandboxedEnabled(),l=jN(D,{sandboxAutoAllowEnabled:S}).filter((m)=>G.some((R)=>R.toolName===m.rule.ruleValue.toolName&&R.ruleContent===m.rule.ruleValue.ruleContent));J(C,l.length>0?l:void 0)}},N[1]=B,N[2]=J,N[3]=z,N[4]=w,N[5]=G,N[6]=q,N[7]=W;else W=N[7];let Z=W,L;if(N[8]!==G.length)L=FN(G.length,"rule"),N[8]=G.length,N[9]=L;else L=N[9];let I=`Add ${w} permission ${L}`,M;if(N[10]!==G)M=G.map(RG),N[10]=G,N[11]=M;else M=N[11];let O;if(N[12]!==M)O=Y(v,{flexDirection:"column",paddingX:2,children:M}),N[12]=M,N[13]=O;else O=N[13];let K=G.length===1?"Where should this rule be saved?":"Where should these rules be saved?",b;if(N[14]!==K)b=Y(H,{children:K}),N[14]=K,N[15]=b;else b=N[15];let Q;if(N[16]!==Z)Q=Y(n,{options:k,onChange:Z}),N[16]=Z,N[17]=Q;else Q=N[17];let f;if(N[18]!==b||N[19]!==Q)f=T(v,{flexDirection:"column",marginY:1,children:[b,Q]}),N[18]=b,N[19]=Q,N[20]=f;else f=N[20];let F;if(N[21]!==z||N[22]!==O||N[23]!==f||N[24]!==I)F=T(s0,{title:I,onCancel:z,color:"permission",children:[O,f]}),N[21]=z,N[22]=O,N[23]=f,N[24]=I,N[25]=F;else F=N[25];return F}function RG(U){return T(v,{flexDirection:"column",children:[Y(H,{bold:!0,children:u(U)}),Y(o0,{ruleValue:U})]},u(U))}var CN;var vN=e(()=>{V0();J0();KN();HN();vG();gG();DG();CG();jG();DN();EN();x();CN=i(G0(),1)});function cN(U){let N=xN.c(24),{onCancel:J,onSubmit:z,ruleBehavior:G}=U,[w,B]=AN.useState(""),[q,E]=AN.useState(0),k=T0(),W;if(N[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},N[0]=W;else W=N[0];P0("confirm:no",J,W);let{columns:Z}=SN(),L=Z-6,I;if(N[1]!==z||N[2]!==G)I=(C)=>{let S=C.trim();if(S.length===0)return;let p=yN(S);z(p,G)},N[1]=z,N[2]=G,N[3]=I;else I=N[3];let M=I,O;if(N[4]!==G)O=T(H,{bold:!0,color:"permission",children:["Add ",G," permission rule"]}),N[4]=G,N[5]=O;else O=N[5];let K;if(N[6]===Symbol.for("react.memo_cache_sentinel"))K=Y(RN,{}),N[6]=K;else K=N[6];let b,Q;if(N[7]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{bold:!0,children:u({toolName:pN.name})}),Q=Y(H,{bold:!1,children:" or "}),N[7]=b,N[8]=Q;else b=N[7],Q=N[8];let f;if(N[9]===Symbol.for("react.memo_cache_sentinel"))f=T(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",b,Q,Y(H,{bold:!0,children:u({toolName:a0.name,ruleContent:"ls:*"})})]}),N[9]=f;else f=N[9];let F;if(N[10]!==q||N[11]!==M||N[12]!==w||N[13]!==L)F=T(v,{flexDirection:"column",children:[f,Y(v,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Y(hN,{showCursor:!0,value:w,onChange:B,onSubmit:M,placeholder:`Enter permission rule${X0.ellipsis}`,columns:L,cursorOffset:q,onChangeCursorOffset:E})})]}),N[10]=q,N[11]=M,N[12]=w,N[13]=L,N[14]=F;else F=N[14];let j;if(N[15]!==O||N[16]!==F)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,F]}),N[15]=O,N[16]=F,N[17]=j;else j=N[17];let A;if(N[18]!==k.keyName||N[19]!==k.pending)A=Y(v,{marginLeft:3,children:k.pending?T(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),N[18]=k.keyName,N[19]=k.pending,N[20]=A;else A=N[20];let D;if(N[21]!==A||N[22]!==j)D=T(a,{children:[j,A]}),N[21]=A,N[22]=j,N[23]=D;else D=N[23];return D}var xN,AN;var dN=e(()=>{BN();mG();_N();SG();J0();mN();TN();_G();HN();x();xN=i(G0(),1),AN=i(t0(),1)});function rN(U){let N=lN.c(30),{onHeaderFocusChange:J,onStateChange:z}=U,{headerFocused:G,focusHeader:w}=O0(),B,q;if(N[0]!==G||N[1]!==J)B=()=>{J?.(G)},q=[G,J],N[0]=G,N[1]=J,N[2]=B,N[3]=q;else B=N[2],q=N[3];N0.useEffect(B,q);let[E]=N0.useState(cG),[k,W]=N0.useState(xG),[Z,L]=N0.useState(pG),[I,M]=N0.useState(0),O,K;if(N[4]!==k||N[5]!==E||N[6]!==z||N[7]!==Z)O=()=>{z({approved:k,retry:Z,denials:E})},K=[k,Z,E,z],N[4]=k,N[5]=E,N[6]=z,N[7]=Z,N[8]=O,N[9]=K;else O=N[8],K=N[9];N0.useEffect(O,K);let b;if(N[10]===Symbol.for("react.memo_cache_sentinel"))b=(R)=>{let _=Number(R);W((c)=>{let h=new Set(c);if(h.has(_))h.delete(_);else h.add(_);return h})},N[10]=b;else b=N[10];let Q=b,f;if(N[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},N[11]=f;else f=N[11];let F=f,j;if(N[12]!==I)j=(R,_)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},N[12]=I,N[13]=j;else j=N[13];let A=E.length>0,D;if(N[14]!==A)D={isActive:A},N[14]=A,N[15]=D;else D=N[15];if(uN(j,D),E.length===0){let R;if(N[16]===Symbol.for("react.memo_cache_sentinel"))R=Y(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),N[16]=R;else R=N[16];return R}let C;if(N[17]!==k||N[18]!==E||N[19]!==Z){let R;if(N[21]!==k||N[22]!==Z)R=(_,c)=>{let h=k.has(c),NN=Z.has(c)?" (retry)":"";return{label:T(H,{children:[Y(iN,{status:h?"success":"error",withSpace:!0}),_.display,Y(H,{dimColor:!0,children:NN})]}),value:String(c)}},N[21]=k,N[22]=Z,N[23]=R;else R=N[23];C=E.map(R),N[17]=k,N[18]=E,N[19]=Z,N[20]=C}else C=N[20];let S=C,p;if(N[24]===Symbol.for("react.memo_cache_sentinel"))p=Y(H,{children:"Commands recently denied by the auto mode classifier."}),N[24]=p;else p=N[24];let l=Math.min(10,S.length),m;if(N[25]!==w||N[26]!==G||N[27]!==S||N[28]!==l)m=T(v,{flexDirection:"column",children:[p,Y(v,{marginTop:1,children:Y(n,{options:S,onChange:Q,onFocus:F,visibleOptionCount:l,isDisabled:G,onUpFromFirstItem:w})})]}),N[25]=w,N[26]=G,N[27]=S,N[28]=l,N[29]=m;else m=N[29];return m}function pG(){return new Set}function xG(){return new Set}function cG(){return e0()}var lN,N0;var aN=e(()=>{J0();nN();V0();hG();fN();x();lN=i(G0(),1),N0=i(t0(),1)});function $N(U){let N=oN.c(19),{directoryPath:J,onRemove:z,onCancel:G,permissionContext:w,setPermissionContext:B}=U,q;if(N[0]!==J||N[1]!==z||N[2]!==w||N[3]!==B)q=()=>{let K=E0(w,{type:"removeDirectories",directories:[J],destination:"session"});B(K),z()},N[0]=J,N[1]=z,N[2]=w,N[3]=B,N[4]=q;else q=N[4];let E=q,k;if(N[5]!==E||N[6]!==G)k=(K)=>{if(K==="yes")E();else G()},N[5]=E,N[6]=G,N[7]=k;else k=N[7];let W=k,Z;if(N[8]!==J)Z=Y(v,{marginX:2,flexDirection:"column",children:Y(H,{bold:!0,children:J})}),N[8]=J,N[9]=Z;else Z=N[9];let L;if(N[10]===Symbol.for("react.memo_cache_sentinel"))L=Y(H,{children:"Claudin will no longer have access to files in this directory."}),N[10]=L;else L=N[10];let I;if(N[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[11]=I;else I=N[11];let M;if(N[12]!==W||N[13]!==G)M=Y(n,{onChange:W,onCancel:G,options:I}),N[12]=W,N[13]=G,N[14]=M;else M=N[14];let O;if(N[15]!==G||N[16]!==Z||N[17]!==M)O=T(s0,{title:"Remove directory from workspace?",onCancel:G,color:"error",children:[Z,L,M]}),N[15]=G,N[16]=Z,N[17]=M,N[18]=O;else O=N[18];return O}var oN;var sN=e(()=>{V0();J0();KN();DN();x();oN=i(G0(),1)});function GG(U){let N=eN.c(23),{onExit:J,toolPermissionContext:z,onRequestAddDirectory:G,onRequestRemoveDirectory:w,onHeaderFocusChange:B}=U,{headerFocused:q,focusHeader:E}=O0(),k,W;if(N[0]!==q||N[1]!==B)k=()=>{B?.(q)},W=[q,B],N[0]=q,N[1]=B,N[2]=k,N[3]=W;else k=N[2],W=N[3];NG.useEffect(k,W);let Z;if(N[4]!==z.additionalWorkingDirectories)Z=Array.from(z.additionalWorkingDirectories.keys()).map(iG),N[4]=z.additionalWorkingDirectories,N[5]=Z;else Z=N[5];let L=Z,I;if(N[6]!==L||N[7]!==G||N[8]!==w)I=(A)=>{if(A==="add-directory"){G();return}let D=L.find((C)=>C.path===A);if(D&&D.isDeletable)w(D.path)},N[6]=L,N[7]=G,N[8]=w,N[9]=I;else I=N[9];let M=I,O;if(N[10]!==J)O=()=>J("Workspace dialog dismissed",{display:"system"}),N[10]=J,N[11]=O;else O=N[11];let K=O,b;if(N[12]!==L){b=L.map(uG);let A;if(N[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${X0.ellipsis}`,value:"add-directory"},N[14]=A;else A=N[14];b.push(A),N[12]=L,N[13]=b}else b=N[13];let Q=b,f;if(N[15]===Symbol.for("react.memo_cache_sentinel"))f=T(v,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Y(H,{children:`- ${tN()}`}),Y(H,{dimColor:!0,children:"(Original working directory)"})]}),N[15]=f;else f=N[15];let F=Math.min(10,Q.length),j;if(N[16]!==E||N[17]!==K||N[18]!==M||N[19]!==q||N[20]!==Q||N[21]!==F)j=T(v,{flexDirection:"column",marginBottom:1,children:[f,Y(n,{options:Q,onChange:M,onCancel:K,visibleOptionCount:F,onUpFromFirstItem:E,isDisabled:q})]}),N[16]=E,N[17]=K,N[18]=M,N[19]=q,N[20]=Q,N[21]=F,N[22]=j;else j=N[22];return j}function uG(U){return{label:U.path,value:U.path}}function iG(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eN,NG;var JG=e(()=>{BN();dG();V0();J0();fN();x();eN=i(G0(),1),NG=i(t0(),1)});function eG(U){let N=M0.c(4),{rule:J}=U,z;if(N[0]!==J.source)z=kG(J.source),N[0]=J.source,N[1]=z;else z=N[1];let G=`From ${z}`,w;if(N[2]!==G)w=Y(H,{dimColor:!0,children:G}),N[2]=G,N[3]=w;else w=N[3];return w}function NJ(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function GJ(U){let N=M0.c(42),{rule:J,onDelete:z,onCancel:G}=U,w=T0(),B;if(N[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},N[0]=B;else B=N[0];P0("confirm:no",G,B);let q;if(N[1]!==J.ruleValue)q=u(J.ruleValue),N[1]=J.ruleValue,N[2]=q;else q=N[2];let E;if(N[3]!==q)E=Y(H,{bold:!0,children:q}),N[3]=q,N[4]=E;else E=N[4];let k;if(N[5]!==J.ruleValue)k=Y(o0,{ruleValue:J.ruleValue}),N[5]=J.ruleValue,N[6]=k;else k=N[6];let W;if(N[7]!==J)W=Y(eG,{rule:J}),N[7]=J,N[8]=W;else W=N[8];let Z;if(N[9]!==E||N[10]!==k||N[11]!==W)Z=T(v,{flexDirection:"column",marginX:2,children:[E,k,W]}),N[9]=E,N[10]=k,N[11]=W,N[12]=Z;else Z=N[12];let L=Z,I;if(N[13]!==w.keyName||N[14]!==w.pending)I=Y(v,{marginLeft:3,children:w.pending?T(H,{dimColor:!0,children:["Press ",w.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Esc to cancel"})}),N[13]=w.keyName,N[14]=w.pending,N[15]=I;else I=N[15];let M=I;if(J.source==="policySettings"){let D;if(N[16]===Symbol.for("react.memo_cache_sentinel"))D=Y(H,{bold:!0,color:"permission",children:"Rule details"}),N[16]=D;else D=N[16];let C;if(N[17]===Symbol.for("react.memo_cache_sentinel"))C=T(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
2
- `,"Contact your system administrator for more information."]}),N[17]=C;else C=N[17];let S;if(N[18]!==L)S=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[D,L,C]}),N[18]=L,N[19]=S;else S=N[19];let p;if(N[20]!==M||N[21]!==S)p=T(a,{children:[S,M]}),N[20]=M,N[21]=S,N[22]=p;else p=N[22];return p}let O;if(N[23]!==J.ruleBehavior)O=NJ(J.ruleBehavior),N[23]=J.ruleBehavior,N[24]=O;else O=N[24];let K;if(N[25]!==O)K=T(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),N[25]=O,N[26]=K;else K=N[26];let b;if(N[27]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{children:"Are you sure you want to delete this permission rule?"}),N[27]=b;else b=N[27];let Q;if(N[28]!==G||N[29]!==z)Q=(D)=>D==="yes"?z():G(),N[28]=G,N[29]=z,N[30]=Q;else Q=N[30];let f;if(N[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[31]=f;else f=N[31];let F;if(N[32]!==G||N[33]!==Q)F=Y(n,{onChange:Q,onCancel:G,options:f}),N[32]=G,N[33]=Q,N[34]=F;else F=N[34];let j;if(N[35]!==L||N[36]!==F||N[37]!==K)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,b,F]}),N[35]=L,N[36]=F,N[37]=K,N[38]=j;else j=N[38];let A;if(N[39]!==M||N[40]!==j)A=T(a,{children:[j,M]}),N[39]=M,N[40]=j,N[41]=A;else A=N[41];return A}function JJ(U){let N=M0.c(26),{options:J,searchQuery:z,isSearchMode:G,isFocused:w,onSelect:B,onCancel:q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,Z=IG(),{headerFocused:L,focusHeader:I,blurHeader:M}=O0(),O,K;if(N[0]!==M||N[1]!==L||N[2]!==G)O=()=>{if(G&&L)M()},K=[G,L,M],N[0]=M,N[1]=L,N[2]=G,N[3]=O,N[4]=K;else O=N[3],K=N[4];d.useEffect(O,K);let b,Q;if(N[5]!==L||N[6]!==W)b=()=>{W?.(L)},Q=[L,W],N[5]=L,N[6]=W,N[7]=b,N[8]=Q;else b=N[7],Q=N[8];d.useEffect(b,Q);let f=G&&!L,F;if(N[9]!==k||N[10]!==w||N[11]!==z||N[12]!==f||N[13]!==Z)F=Y(v,{marginBottom:1,flexDirection:"column",children:Y(UG,{query:z,isFocused:f,isTerminalFocused:w,width:Z,cursorOffset:k})}),N[9]=k,N[10]=w,N[11]=z,N[12]=f,N[13]=Z,N[14]=F;else F=N[14];let j=Math.min(10,J.length),A=G||L,D;if(N[15]!==I||N[16]!==E||N[17]!==q||N[18]!==B||N[19]!==J||N[20]!==j||N[21]!==A)D=Y(n,{options:J,onChange:B,onCancel:q,visibleOptionCount:j,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),N[15]=I,N[16]=E,N[17]=q,N[18]=B,N[19]=J,N[20]=j,N[21]=A,N[22]=D;else D=N[22];let C;if(N[23]!==F||N[24]!==D)C=T(v,{flexDirection:"column",children:[F,D]}),N[23]=F,N[24]=D,N[25]=C;else C=N[25];return C}function VN(U){let N=M0.c(27),J,z,G,w,B,q,E,k,W;if(N[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...b}=U;W=M,G=K,w=b,z=v,q="column",E=W==="allow"?0:void 0;let Q;if(N[10]===Symbol.for("react.memo_cache_sentinel"))Q={allow:"Claudin won't ask before using allowed tools.",ask:"Claudin will always ask for confirmation before using these tools.",deny:"Claudin will always reject requests to use denied tools."},N[10]=Q;else Q=N[10];let f=Q[W];if(N[11]!==f)k=Y(H,{children:f}),N[11]=f,N[12]=k;else k=N[12];J=JJ,B=O(W,w.searchQuery),N[0]=U,N[1]=J,N[2]=z,N[3]=G,N[4]=w,N[5]=B,N[6]=q,N[7]=E,N[8]=k,N[9]=W}else J=N[1],z=N[2],G=N[3],w=N[4],B=N[5],q=N[6],E=N[7],k=N[8],W=N[9];let Z;if(N[13]!==G||N[14]!==W)Z=(M)=>G(M,W),N[13]=G,N[14]=W,N[15]=Z;else Z=N[15];let L;if(N[16]!==J||N[17]!==w||N[18]!==B.options||N[19]!==Z)L=Y(J,{options:B.options,onSelect:Z,...w}),N[16]=J,N[17]=w,N[18]=B.options,N[19]=Z,N[20]=L;else L=N[20];let I;if(N[21]!==z||N[22]!==q||N[23]!==E||N[24]!==k||N[25]!==L)I=T(z,{flexDirection:q,flexShrink:E,children:[k,L]}),N[21]=z,N[22]=q,N[23]=E,N[24]=k,N[25]=L,N[26]=I;else I=N[26];return I}function MG(U){let N=M0.c(113),{onExit:J,initialTab:z,onRetryDenials:G}=U,w;if(N[0]===Symbol.for("react.memo_cache_sentinel"))w=e0(),N[0]=w;else w=N[0];let B=w.length>0,q=z??(B?"recent":"allow"),E;if(N[1]===Symbol.for("react.memo_cache_sentinel"))E=[],N[1]=E;else E=N[1];let[k,W]=d.useState(E),Z=ZG(UJ),L=zG(),I=XG(),M;if(N[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},N[2]=M;else M=N[2];let O=d.useRef(M),K;if(N[3]===Symbol.for("react.memo_cache_sentinel"))K=(X)=>{O.current=X},N[3]=K;else K=N[3];let b=K,[Q,f]=d.useState(),[F,j]=d.useState(),[A,D]=d.useState(null),[C,S]=d.useState(null),[p,l]=d.useState(!1),[m,R]=d.useState(null),[_,c]=d.useState(!1),[h,NN]=d.useState(!0),F0;if(N[4]===Symbol.for("react.memo_cache_sentinel"))F0=(X)=>{NN(X)},N[4]=F0;else F0=N[4];let GN=F0,H0;if(N[5]!==Z)H0=new Map,wG(Z).forEach((X)=>{H0.set(b0(X),X)}),N[5]=Z,N[6]=H0;else H0=N[6];let JN=H0,K0;if(N[7]!==Z)K0=new Map,qG(Z).forEach((X)=>{K0.set(b0(X),X)}),N[7]=Z,N[8]=K0;else K0=N[8];let XN=K0,A0;if(N[9]!==Z)A0=new Map,QG(Z).forEach((X)=>{A0.set(b0(X),X)}),N[9]=Z,N[10]=A0;else A0=N[10];let YN=A0,D0;if(N[11]!==JN||N[12]!==YN||N[13]!==XN)D0=(X,V)=>{let P=V===void 0?"":V,g=(()=>{switch(X){case"allow":return JN;case"deny":return XN;case"ask":return YN;case"workspace":case"recent":return new Map}})(),y=[];if(X!=="workspace"&&X!=="recent"&&!P)y.push({label:`Add a new rule${X0.ellipsis}`,value:"add-new-rule"});let r=Array.from(g.keys()).sort((W0,t)=>{let f0=g.get(W0),PN=g.get(t);if(f0&&PN){let bG=u(f0.ruleValue).toLowerCase(),FG=u(PN.ruleValue).toLowerCase();return bG.localeCompare(FG)}return 0}),Q0=P.toLowerCase();for(let W0 of r){let t=g.get(W0);if(t){let f0=u(t.ruleValue);if(P&&!f0.toLowerCase().includes(Q0))continue;y.push({label:f0,value:W0})}}return{options:y,rulesByKey:g}},N[11]=JN,N[12]=YN,N[13]=XN,N[14]=D0;else D0=N[14];let o=D0,Y0=T0(),B0=!Q&&!A&&!C&&!p&&!m,ZN=B0&&_,j0;if(N[15]===Symbol.for("react.memo_cache_sentinel"))j0=()=>{c(!1)},N[15]=j0;else j0=N[15];let C0;if(N[16]!==ZN)C0={isActive:ZN,onExit:j0},N[16]=ZN,N[17]=C0;else C0=N[17];let{query:zN,setQuery:g0,cursorOffset:LN}=LG(C0),v0;if(N[18]!==_||N[19]!==B0||N[20]!==g0)v0=(X)=>{if(!B0)return;if(_)return;if(X.ctrl||X.meta)return;if(X.key==="/")X.preventDefault(),c(!0),g0("");else if(X.key.length===1&&X.key!=="j"&&X.key!=="k"&&X.key!=="m"&&X.key!=="i"&&X.key!=="r"&&X.key!==" ")X.preventDefault(),c(!0),g0(X.key)},N[18]=_,N[19]=B0,N[20]=g0,N[21]=v0;else v0=N[21];let UN=v0,y0;if(N[22]!==o)y0=(X,V)=>{let{rulesByKey:P}=o(V);if(X==="add-new-rule"){D(V);return}else{f(P.get(X));return}},N[22]=o,N[23]=y0;else y0=N[23];let kN=y0,R0;if(N[24]===Symbol.for("react.memo_cache_sentinel"))R0=()=>{D(null)},N[24]=R0;else R0=N[24];let AG=R0,S0;if(N[25]===Symbol.for("react.memo_cache_sentinel"))S0=(X,V)=>{S({ruleValue:X,ruleBehavior:V}),D(null)},N[25]=S0;else S0=N[25];let BG=S0,m0;if(N[26]===Symbol.for("react.memo_cache_sentinel"))m0=(X,V)=>{S(null);for(let P of X)W((g)=>[...g,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let g=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${X0.warning} Warning: ${u(P.rule.ruleValue)} is ${g}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},N[26]=m0;else m0=N[26];let fG=m0,_0;if(N[27]===Symbol.for("react.memo_cache_sentinel"))_0=()=>{S(null)},N[27]=_0;else _0=N[27];let VG=_0,h0;if(N[28]===Symbol.for("react.memo_cache_sentinel"))h0=()=>l(!0),N[28]=h0;else h0=N[28];let PG=h0,p0;if(N[29]===Symbol.for("react.memo_cache_sentinel"))p0=(X)=>R(X),N[29]=p0;else p0=N[29];let TG=p0,x0;if(N[30]!==k||N[31]!==J||N[32]!==G)x0=()=>{let X=O.current,V=(y)=>Array.from(y).map((r)=>X.denials[r]).filter(LJ),P=V(X.retry);if(P.length>0){let y=P.map(zJ);G?.(y),J(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let g=V(X.approved);if(g.length>0||k.length>0){let y=g.length>0?[`Approved ${g.map(ZJ).join(", ")}`]:[];J([...y,...k].join(`
3
- `))}else J("Permissions dialog dismissed",{display:"system"})},N[30]=k,N[31]=J,N[32]=G,N[33]=x0;else x0=N[33];let c0=x0,wN=B0&&!_,d0;if(N[34]!==wN)d0={context:"Settings",isActive:wN},N[34]=wN,N[35]=d0;else d0=N[35];P0("confirm:no",c0,d0);let u0;if(N[36]!==o||N[37]!==Q||N[38]!==L||N[39]!==Z)u0=()=>{if(!Q)return;let{options:X}=o(Q.ruleBehavior),V=b0(Q),P=X.filter(YJ).map(XJ),g=P.indexOf(V),y;if(g!==-1){if(g<P.length-1)y=P[g+1];else if(g>0)y=P[g-1]}j(y),WG({rule:Q,initialContext:Z,setToolPermissionContext(r){L((Q0)=>({...Q0,toolPermissionContext:r}))}}),W((r)=>[...r,`Deleted ${Q.ruleBehavior} rule ${s.bold(u(Q.ruleValue))}`]),f(void 0)},N[36]=o,N[37]=Q,N[38]=L,N[39]=Z,N[40]=u0;else u0=N[40];let qN=u0;if(Q){let X;if(N[41]===Symbol.for("react.memo_cache_sentinel"))X=()=>f(void 0),N[41]=X;else X=N[41];let V;if(N[42]!==qN||N[43]!==Q)V=Y(GJ,{rule:Q,onDelete:qN,onCancel:X}),N[42]=qN,N[43]=Q,N[44]=V;else V=N[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let X;if(N[45]!==A)X=Y(cN,{onCancel:AG,onSubmit:BG,ruleBehavior:A}),N[45]=A,N[46]=X;else X=N[46];return X}if(C){let X;if(N[47]!==C.ruleValue)X=[C.ruleValue],N[47]=C.ruleValue,N[48]=X;else X=N[48];let V;if(N[49]!==L)V=(g)=>{L((y)=>({...y,toolPermissionContext:g}))},N[49]=L,N[50]=V;else V=N[50];let P;if(N[51]!==X||N[52]!==V||N[53]!==Z||N[54]!==C.ruleBehavior)P=Y(gN,{onAddRules:fG,onCancel:VG,ruleValues:X,ruleBehavior:C.ruleBehavior,initialContext:Z,setToolPermissionContext:V}),N[51]=X,N[52]=V,N[53]=Z,N[54]=C.ruleBehavior,N[55]=P;else P=N[55];return P}if(p){let X;if(N[56]!==L||N[57]!==Z)X=(g,y)=>{let Q0={type:"addDirectories",directories:[g],destination:y?"localSettings":"session"},W0=E0(Z,Q0);if(L((t)=>({...t,toolPermissionContext:W0})),y)$0(Q0);W((t)=>[...t,`Added directory ${s.bold(g)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},N[56]=L,N[57]=Z,N[58]=X;else X=N[58];let V;if(N[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),N[59]=V;else V=N[59];let P;if(N[60]!==X||N[61]!==Z)P=Y(EG,{onAddDirectory:X,onCancel:V,permissionContext:Z}),N[60]=X,N[61]=Z,N[62]=P;else P=N[62];return P}if(m){let X;if(N[63]!==m)X=()=>{W((y)=>[...y,`Removed directory ${s.bold(m)} from workspace`]),R(null)},N[63]=m,N[64]=X;else X=N[64];let V;if(N[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),N[65]=V;else V=N[65];let P;if(N[66]!==L)P=(y)=>{L((r)=>({...r,toolPermissionContext:y}))},N[66]=L,N[67]=P;else P=N[67];let g;if(N[68]!==m||N[69]!==X||N[70]!==P||N[71]!==Z)g=Y($N,{directoryPath:m,onRemove:X,onCancel:V,permissionContext:Z,setPermissionContext:P}),N[68]=m,N[69]=X,N[70]=P,N[71]=Z,N[72]=g;else g=N[72];return g}let i0;if(N[73]!==o||N[74]!==c0||N[75]!==kN||N[76]!==_||N[77]!==I||N[78]!==F||N[79]!==LN||N[80]!==zN)i0={searchQuery:zN,isSearchMode:_,isFocused:I,onCancel:c0,lastFocusedRuleKey:F,cursorOffset:LN,getRulesOptions:o,handleToolSelect:kN,onHeaderFocusChange:GN},N[73]=o,N[74]=c0,N[75]=kN,N[76]=_,N[77]=I,N[78]=F,N[79]=LN,N[80]=zN,N[81]=i0;else i0=N[81];let $=i0,QN=!!Q||!!A||!!C||p||!!m,WN=!_,n0;if(N[82]===Symbol.for("react.memo_cache_sentinel"))n0=Y(I0,{id:"recent",title:"Recently denied",children:Y(rN,{onHeaderFocusChange:GN,onStateChange:b})}),N[82]=n0;else n0=N[82];let Z0;if(N[83]!==$)Z0=Y(I0,{id:"allow",title:"Allow",children:Y(VN,{tab:"allow",...$})}),N[83]=$,N[84]=Z0;else Z0=N[84];let z0;if(N[85]!==$)z0=Y(I0,{id:"ask",title:"Ask",children:Y(VN,{tab:"ask",...$})}),N[85]=$,N[86]=z0;else z0=N[86];let L0;if(N[87]!==$)L0=Y(I0,{id:"deny",title:"Deny",children:Y(VN,{tab:"deny",...$})}),N[87]=$,N[88]=L0;else L0=N[88];let l0;if(N[89]===Symbol.for("react.memo_cache_sentinel"))l0=Y(H,{children:"Claudin can read files in the workspace, and make edits when auto-accept edits is on."}),N[89]=l0;else l0=N[89];let U0;if(N[90]!==J||N[91]!==Z)U0=Y(I0,{id:"workspace",title:"Workspace",children:T(v,{flexDirection:"column",children:[l0,Y(GG,{onExit:J,toolPermissionContext:Z,onRequestAddDirectory:PG,onRequestRemoveDirectory:TG,onHeaderFocusChange:GN})]})}),N[90]=J,N[91]=Z,N[92]=U0;else U0=N[92];let k0;if(N[93]!==q||N[94]!==QN||N[95]!==WN||N[96]!==Z0||N[97]!==z0||N[98]!==L0||N[99]!==U0)k0=T(OG,{title:"Permissions:",color:"permission",defaultTab:q,hidden:QN,initialHeaderFocused:!B,navFromContent:WN,children:[n0,Z0,z0,L0,U0]}),N[93]=q,N[94]=QN,N[95]=WN,N[96]=Z0,N[97]=z0,N[98]=L0,N[99]=U0,N[100]=k0;else k0=N[100];let w0;if(N[101]!==q||N[102]!==Y0.keyName||N[103]!==Y0.pending||N[104]!==h||N[105]!==_)w0=Y(v,{marginTop:1,paddingLeft:1,children:Y(H,{dimColor:!0,children:Y0.pending?T(a,{children:["Press ",Y0.keyName," again to exit"]}):h?Y(a,{children:"←/→ tab switch · ↓ return · Esc cancel"}):_?Y(a,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&q==="recent"?Y(a,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Y(a,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),N[101]=q,N[102]=Y0.keyName,N[103]=Y0.pending,N[104]=h,N[105]=_,N[106]=w0;else w0=N[106];let q0;if(N[107]!==k0||N[108]!==w0)q0=T(YG,{color:"permission",children:[k0,w0]}),N[107]=k0,N[108]=w0,N[109]=q0;else q0=N[109];let r0;if(N[110]!==UN||N[111]!==q0)r0=Y(v,{flexDirection:"column",onKeyDown:UN,children:q0}),N[110]=UN,N[111]=q0,N[112]=r0;else r0=N[112];return r0}function XJ(U){return U.value}function YJ(U){return U.value!=="add-new-rule"}function ZJ(U){return s.bold(U.display)}function zJ(U){return U.display}function LJ(U){return U!==void 0}function UJ(U){return U.toolPermissionContext}var M0,d;var HG=e(()=>{lG();BN();aG();KN();V0();_N();oG();J0();mN();nN();HN();sG();nG();rG();fN();$G();vN();tG();EN();dN();aN();sN();JG();x();M0=i(G0(),1),d=i(t0(),1)});var mX=async(U,N)=>{return Y(MG,{onExit:U,onRetryDenials:(J)=>{N.setMessages((z)=>[...z,KG(J)])}})};var kJ=e(()=>{HG();wJ();x()});kJ();export{mX as call};
@@ -1 +0,0 @@
1
- import{aia as a,bia as b,cia as c}from"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-bdj1ne1r.mjs";c();export{b as PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
@@ -1 +0,0 @@
1
- import{de as S,ee as d}from"./cli-1.1.23-jax91df0.mjs";import{Ig as B,Jg as P,Kg as F,Mg as D}from"./cli-1.1.23-1a2n71wn.mjs";import{Ao as I,Eo as c,Vm as A,_m as m,tm as U,um as _,wL as y,xm as g,yL as j}from"./cli-1.1.23-hynrf6x1.mjs";import"./cli-1.1.23-jv6dcqe2.mjs";import"./cli-1.1.23-5xfyp6fr.mjs";import"./cli-1.1.23-eyrgaj5n.mjs";import"./cli-1.1.23-dd8dp11f.mjs";import"./cli-1.1.23-h9a97qvh.mjs";import"./cli-1.1.23-6fa2z4j7.mjs";import"./cli-1.1.23-1rv4y64b.mjs";import"./cli-1.1.23-pjmjhm4y.mjs";import"./cli-1.1.23-1fexxp20.mjs";import"./cli-1.1.23-dnf57r3v.mjs";import"./cli-1.1.23-69bhvv0j.mjs";import"./cli-1.1.23-v9bysq9w.mjs";import"./cli-1.1.23-91n79mdp.mjs";import"./cli-1.1.23-b00bqmpw.mjs";import"./cli-1.1.23-5nf6hd1y.mjs";import"./cli-1.1.23-6zb0fha5.mjs";import"./cli-1.1.23-jefmjg1q.mjs";import"./cli-1.1.23-3tbvgbsz.mjs";import"./cli-1.1.23-c49xxwj4.mjs";import"./cli-1.1.23-ah6fas1q.mjs";import"./cli-1.1.23-6801e7pm.mjs";import{PZ as h,T1 as T,m1 as V,o1 as G}from"./cli-1.1.23-7081am2r.mjs";import"./cli-1.1.23-1e9zjn1z.mjs";import"./cli-1.1.23-2zmj7bmt.mjs";import"./cli-1.1.23-8qrr5zea.mjs";import"./cli-1.1.23-jam2qpf9.mjs";import"./cli-1.1.23-v5e3cr99.mjs";import"./cli-1.1.23-9txgxd8x.mjs";import"./cli-1.1.23-67rrc0m6.mjs";import"./cli-1.1.23-n3aqpv08.mjs";import"./cli-1.1.23-g6b9c447.mjs";import"./cli-1.1.23-g16f6f0k.mjs";import{p4 as w,q4 as W,r4 as Z}from"./cli-1.1.23-hdrz15yh.mjs";import"./cli-1.1.23-534g4n3n.mjs";import"./cli-1.1.23-swf2c8db.mjs";import"./cli-1.1.23-z1mvb05m.mjs";import"./cli-1.1.23-vns1fwxz.mjs";import"./cli-1.1.23-4tcfdexs.mjs";import"./cli-1.1.23-9qe28y65.mjs";import"./cli-1.1.23-a1w72kgd.mjs";import"./cli-1.1.23-r21frpa6.mjs";import"./cli-1.1.23-yy2jcnc3.mjs";import"./cli-1.1.23-re0ge1zr.mjs";import"./cli-1.1.23-g3ps2zfa.mjs";import"./cli-1.1.23-n2b7hpwm.mjs";import"./cli-1.1.23-keftnbc6.mjs";import"./cli-1.1.23-2cqrzcwp.mjs";import"./cli-1.1.23-dmc5g4zs.mjs";import"./cli-1.1.23-3hnz7314.mjs";import"./cli-1.1.23-e3g5ahaf.mjs";import"./cli-1.1.23-a95wepyn.mjs";import"./cli-1.1.23-7ke90t8x.mjs";import"./cli-1.1.23-nr6xamsd.mjs";import"./cli-1.1.23-j9tza8qb.mjs";import"./cli-1.1.23-kc1tbe8y.mjs";import"./cli-1.1.23-y3fpdh43.mjs";import"./cli-1.1.23-6vn61k3h.mjs";import"./cli-1.1.23-fxyf1cph.mjs";import{Iqa as R,Kra as u}from"./cli-1.1.23-wkvjbzna.mjs";import"./cli-1.1.23-rpxkp0kh.mjs";import"./cli-1.1.23-dm6get34.mjs";import"./cli-1.1.23-61q858yx.mjs";import"./cli-1.1.23-zb8savhy.mjs";import"./cli-1.1.23-qrr9yfsn.mjs";import{Bta as C,Fta as N}from"./cli-1.1.23-bdj1ne1r.mjs";function $(z){let b=v.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),E=X?I(X):void 0,M=await S(w($,{planContent:q,planPath:f,editorName:E}));return z(M),null}var v;var x=N(()=>{u();T();P();c();m();j();g();D();d();Z();v=C(h(),1)});x();export{bb as call};
@@ -1 +0,0 @@
1
- import{Fta as z}from"./cli-1.1.23-bdj1ne1r.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};