@claudiolabs/claudin 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (910) hide show
  1. package/dist/chunks/AgentTool-1.0.15-94qgeewh.mjs +1 -0
  2. package/dist/chunks/App-1.0.15-57jq3dm4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.0.15-7j5pjhqn.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.0.15-gvkrabya.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.0.15-maf47ycb.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.0.15-ksfgz563.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.15-qryrc5yd.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.0.15-wfx96scv.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.0.15-8kva6vp4.mjs +7 -0
  10. package/dist/chunks/Doctor-1.0.15-fs1gd72r.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.0.15-m3d89j0h.mjs +6 -0
  12. package/dist/chunks/Grove-1.0.15-bcp3xph8.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.0.15-cvm8f87e.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.0.15-ex27d27t.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.0.15-fw1wwzdf.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.0.15-6cbwbchq.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.0.15-w155hs9q.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.0.15-yjze889w.mjs +1 -0
  19. package/dist/chunks/REPL-1.0.15-sbk0f748.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.0.15-03thwnty.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.0.15-7wpe589z.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.0.15-fxpyd5q2.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.0.15-0tjsz46h.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.0.15-y06d9cgd.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.0.15-91km7rpd.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.0.15-5arre2f8.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.0.15-ap6b593c.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.0.15-gmqjj125.mjs +1 -0
  29. package/dist/chunks/add-dir-1.0.15-hrrne1tk.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.0.15-mejg5tt1.mjs +1 -0
  31. package/dist/chunks/agents-1.0.15-4jrtw40v.mjs +110 -0
  32. package/dist/chunks/agents-1.0.15-gjv6cvx4.mjs +3 -0
  33. package/dist/chunks/api-1.0.15-zkp1pkwn.mjs +1 -0
  34. package/dist/chunks/asciicast-1.0.15-47tpa2n4.mjs +1 -0
  35. package/dist/chunks/assistant-1.0.15-7k4zhhjv.mjs +1 -0
  36. package/dist/chunks/auth-1.0.15-6cfbwp6q.mjs +1 -0
  37. package/dist/chunks/auth-1.0.15-gws12a3c.mjs +1 -0
  38. package/dist/chunks/autoMode-1.0.15-03kh1nhy.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.0.15-tapqkcdv.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.0.15-x7vh5q4q.mjs +1 -0
  41. package/dist/chunks/branch-1.0.15-jtjk17fx.mjs +4 -0
  42. package/dist/chunks/bridge-1.0.15-jj3fxj6x.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.0.15-w0d7jbe6.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.0.15-3467pt2w.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.0.15-7hen48qx.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.0.15-tdhgqvrs.mjs +1 -0
  47. package/dist/chunks/btw-1.0.15-d6jb050c.mjs +1 -0
  48. package/dist/chunks/buddy-1.0.15-k7p7569n.mjs +3 -0
  49. package/dist/chunks/cacache-1.0.15-6jycmxaf.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.0.15-cbw43d6t.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.0.15-e5g17k9c.mjs +4 -0
  52. package/dist/chunks/caches-1.0.15-679h38c6.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.0.15-8aewbzbn.mjs +1 -0
  54. package/dist/chunks/claudemd-1.0.15-rcmy3kyx.mjs +1 -0
  55. package/dist/chunks/clear-1.0.15-hqm9m5d6.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.0.15-1ewmdq7w.mjs +1 -0
  57. package/dist/chunks/cli-1.0.15-0bxpp6bh.mjs +20 -0
  58. package/dist/chunks/cli-1.0.15-0cv8mhk9.mjs +3 -0
  59. package/dist/chunks/cli-1.0.15-0dwyast6.mjs +2 -0
  60. package/dist/chunks/cli-1.0.15-0jqatfe7.mjs +2 -0
  61. package/dist/chunks/cli-1.0.15-0trpexvr.mjs +45 -0
  62. package/dist/chunks/cli-1.0.15-0w1nrkxx.mjs +2 -0
  63. package/dist/chunks/cli-1.0.15-0w3yfegp.mjs +2 -0
  64. package/dist/chunks/cli-1.0.15-22y9bkkh.mjs +2 -0
  65. package/dist/chunks/cli-1.0.15-24x4yqe7.mjs +2 -0
  66. package/dist/chunks/cli-1.0.15-27kfy5t8.mjs +4 -0
  67. package/dist/chunks/cli-1.0.15-2bkbr8av.mjs +2 -0
  68. package/dist/chunks/cli-1.0.15-2c6gnna0.mjs +17 -0
  69. package/dist/chunks/cli-1.0.15-2cy827x7.mjs +2 -0
  70. package/dist/chunks/cli-1.0.15-2mmdf6ne.mjs +2 -0
  71. package/dist/chunks/cli-1.0.15-2vbcyvpm.mjs +4 -0
  72. package/dist/chunks/cli-1.0.15-3kkk11ba.mjs +2 -0
  73. package/dist/chunks/cli-1.0.15-3r2dts4j.mjs +2 -0
  74. package/dist/chunks/cli-1.0.15-3t4ep5qt.mjs +2 -0
  75. package/dist/chunks/cli-1.0.15-403qkcqy.mjs +18 -0
  76. package/dist/chunks/cli-1.0.15-42150f5m.mjs +2 -0
  77. package/dist/chunks/cli-1.0.15-45w1vdpc.mjs +3 -0
  78. package/dist/chunks/cli-1.0.15-4a9g8a8r.mjs +2 -0
  79. package/dist/chunks/cli-1.0.15-4av09dyy.mjs +2 -0
  80. package/dist/chunks/cli-1.0.15-4evm96aw.mjs +42 -0
  81. package/dist/chunks/cli-1.0.15-4gh5h0g5.mjs +2 -0
  82. package/dist/chunks/cli-1.0.15-4nyx02ky.mjs +2 -0
  83. package/dist/chunks/cli-1.0.15-4rsdmbvj.mjs +133 -0
  84. package/dist/chunks/cli-1.0.15-4whbpjs9.mjs +3 -0
  85. package/dist/chunks/cli-1.0.15-51jmehra.mjs +6 -0
  86. package/dist/chunks/cli-1.0.15-56c35td6.mjs +2 -0
  87. package/dist/chunks/cli-1.0.15-5hhphy4q.mjs +2 -0
  88. package/dist/chunks/cli-1.0.15-5n34cvnr.mjs +2 -0
  89. package/dist/chunks/cli-1.0.15-60txcqbr.mjs +2 -0
  90. package/dist/chunks/cli-1.0.15-627wdw2h.mjs +2 -0
  91. package/dist/chunks/cli-1.0.15-6aqb3zvc.mjs +4 -0
  92. package/dist/chunks/cli-1.0.15-6b5hvymy.mjs +12 -0
  93. package/dist/chunks/cli-1.0.15-6etncrah.mjs +2 -0
  94. package/dist/chunks/cli-1.0.15-6n5w4q79.mjs +2 -0
  95. package/dist/chunks/cli-1.0.15-6tqavbkd.mjs +2 -0
  96. package/dist/chunks/cli-1.0.15-789kn3by.mjs +2 -0
  97. package/dist/chunks/cli-1.0.15-7aa072q4.mjs +12 -0
  98. package/dist/chunks/cli-1.0.15-7e9adexx.mjs +4 -0
  99. package/dist/chunks/cli-1.0.15-7ewpqvr2.mjs +25 -0
  100. package/dist/chunks/cli-1.0.15-7mvdkxm5.mjs +2 -0
  101. package/dist/chunks/cli-1.0.15-7ndc7stb.mjs +2 -0
  102. package/dist/chunks/cli-1.0.15-7rdtqytk.mjs +2 -0
  103. package/dist/chunks/cli-1.0.15-7s943xnf.mjs +2 -0
  104. package/dist/chunks/cli-1.0.15-7wvjptzb.mjs +2 -0
  105. package/dist/chunks/cli-1.0.15-7xhh90ex.mjs +2 -0
  106. package/dist/chunks/cli-1.0.15-806eqffj.mjs +2 -0
  107. package/dist/chunks/cli-1.0.15-845m2mqp.mjs +7 -0
  108. package/dist/chunks/cli-1.0.15-897dp7hb.mjs +2 -0
  109. package/dist/chunks/cli-1.0.15-897x1y4f.mjs +2 -0
  110. package/dist/chunks/cli-1.0.15-8kr6hy0g.mjs +2 -0
  111. package/dist/chunks/cli-1.0.15-8nvbby9w.mjs +34 -0
  112. package/dist/chunks/cli-1.0.15-8pv1ndbb.mjs +2 -0
  113. package/dist/chunks/cli-1.0.15-8w43v6k1.mjs +2 -0
  114. package/dist/chunks/cli-1.0.15-90162v45.mjs +2 -0
  115. package/dist/chunks/cli-1.0.15-98tcqft6.mjs +2 -0
  116. package/dist/chunks/cli-1.0.15-9aja3602.mjs +2 -0
  117. package/dist/chunks/cli-1.0.15-9bymg5sy.mjs +2 -0
  118. package/dist/chunks/cli-1.0.15-9cvsym9y.mjs +2 -0
  119. package/dist/chunks/cli-1.0.15-9d19jbmy.mjs +2 -0
  120. package/dist/chunks/cli-1.0.15-9rd8f7my.mjs +2 -0
  121. package/dist/chunks/cli-1.0.15-9rjbyjmt.mjs +2 -0
  122. package/dist/chunks/cli-1.0.15-9sp8car7.mjs +2 -0
  123. package/dist/chunks/cli-1.0.15-9vc0hfzc.mjs +3 -0
  124. package/dist/chunks/cli-1.0.15-a6cb4yq6.mjs +2 -0
  125. package/dist/chunks/cli-1.0.15-a7t3xpjc.mjs +4 -0
  126. package/dist/chunks/cli-1.0.15-adsqpzey.mjs +12 -0
  127. package/dist/chunks/cli-1.0.15-aqa2fb74.mjs +2 -0
  128. package/dist/chunks/cli-1.0.15-ar3s6h2h.mjs +2 -0
  129. package/dist/chunks/cli-1.0.15-awv56wcy.mjs +24 -0
  130. package/dist/chunks/cli-1.0.15-axetmvxc.mjs +2 -0
  131. package/dist/chunks/cli-1.0.15-b22bjah2.mjs +58 -0
  132. package/dist/chunks/cli-1.0.15-b3zhfvk0.mjs +2 -0
  133. package/dist/chunks/cli-1.0.15-bb8j8b0v.mjs +5501 -0
  134. package/dist/chunks/cli-1.0.15-bgkssm1d.mjs +3 -0
  135. package/dist/chunks/cli-1.0.15-bhsgw22k.mjs +2 -0
  136. package/dist/chunks/cli-1.0.15-bhvqf0n5.mjs +4 -0
  137. package/dist/chunks/cli-1.0.15-bw109641.mjs +2 -0
  138. package/dist/chunks/cli-1.0.15-c96jhmsg.mjs +3 -0
  139. package/dist/chunks/cli-1.0.15-cdr1b60q.mjs +2 -0
  140. package/dist/chunks/cli-1.0.15-cemjfg9r.mjs +2 -0
  141. package/dist/chunks/cli-1.0.15-cf8b3knv.mjs +2 -0
  142. package/dist/chunks/cli-1.0.15-chtrm59p.mjs +2 -0
  143. package/dist/chunks/cli-1.0.15-d5wv3x0f.mjs +24 -0
  144. package/dist/chunks/cli-1.0.15-d66dn4ap.mjs +4 -0
  145. package/dist/chunks/cli-1.0.15-dnq4fedm.mjs +39 -0
  146. package/dist/chunks/cli-1.0.15-dryj6zd0.mjs +1 -0
  147. package/dist/chunks/cli-1.0.15-dsvwedxw.mjs +2 -0
  148. package/dist/chunks/cli-1.0.15-dyc6dr50.mjs +2 -0
  149. package/dist/chunks/cli-1.0.15-e0drdd8f.mjs +2 -0
  150. package/dist/chunks/cli-1.0.15-e34c38pv.mjs +6 -0
  151. package/dist/chunks/cli-1.0.15-e4z0e2ej.mjs +18 -0
  152. package/dist/chunks/cli-1.0.15-e57f0rf3.mjs +2 -0
  153. package/dist/chunks/cli-1.0.15-ekbw5ftp.mjs +2 -0
  154. package/dist/chunks/cli-1.0.15-em7fgkj3.mjs +2 -0
  155. package/dist/chunks/cli-1.0.15-f2k7cw2y.mjs +2 -0
  156. package/dist/chunks/cli-1.0.15-f4s33z1f.mjs +2 -0
  157. package/dist/chunks/cli-1.0.15-fa1v9kw0.mjs +2 -0
  158. package/dist/chunks/cli-1.0.15-fhxg6mbk.mjs +2 -0
  159. package/dist/chunks/cli-1.0.15-fvcptqfy.mjs +24 -0
  160. package/dist/chunks/cli-1.0.15-fwe1633q.mjs +2 -0
  161. package/dist/chunks/cli-1.0.15-g0xatz0p.mjs +67 -0
  162. package/dist/chunks/cli-1.0.15-g1hd6adc.mjs +2 -0
  163. package/dist/chunks/cli-1.0.15-g2mwrdzj.mjs +2 -0
  164. package/dist/chunks/cli-1.0.15-gp303ekk.mjs +2 -0
  165. package/dist/chunks/cli-1.0.15-hf9a4f7g.mjs +2 -0
  166. package/dist/chunks/cli-1.0.15-hmb8ny4m.mjs +2 -0
  167. package/dist/chunks/cli-1.0.15-hqcpxa3q.mjs +50 -0
  168. package/dist/chunks/cli-1.0.15-hvfz05y7.mjs +2 -0
  169. package/dist/chunks/cli-1.0.15-j5kn8e7z.mjs +2 -0
  170. package/dist/chunks/cli-1.0.15-jm1dwnr3.mjs +2 -0
  171. package/dist/chunks/cli-1.0.15-jm8pjdm2.mjs +2 -0
  172. package/dist/chunks/cli-1.0.15-jw4mky36.mjs +5 -0
  173. package/dist/chunks/cli-1.0.15-jzs0za6k.mjs +2 -0
  174. package/dist/chunks/cli-1.0.15-kcp001eh.mjs +2 -0
  175. package/dist/chunks/cli-1.0.15-krzz1he3.mjs +4 -0
  176. package/dist/chunks/cli-1.0.15-m1vr3gw9.mjs +2 -0
  177. package/dist/chunks/cli-1.0.15-m9f1gq83.mjs +2 -0
  178. package/dist/chunks/cli-1.0.15-mcyk2xwv.mjs +18 -0
  179. package/dist/chunks/cli-1.0.15-mf4fkng2.mjs +2 -0
  180. package/dist/chunks/cli-1.0.15-mfmwv3mt.mjs +2 -0
  181. package/dist/chunks/cli-1.0.15-mh55f2tj.mjs +2 -0
  182. package/dist/chunks/cli-1.0.15-ms1k99rq.mjs +2 -0
  183. package/dist/chunks/cli-1.0.15-mydrjdjj.mjs +2 -0
  184. package/dist/chunks/cli-1.0.15-myfcyqkj.mjs +3 -0
  185. package/dist/chunks/cli-1.0.15-n0d6pnwr.mjs +8 -0
  186. package/dist/chunks/cli-1.0.15-n0d8gv7t.mjs +3 -0
  187. package/dist/chunks/cli-1.0.15-n5pap8w0.mjs +2 -0
  188. package/dist/chunks/cli-1.0.15-n6aad9yp.mjs +2 -0
  189. package/dist/chunks/cli-1.0.15-nbxzsrs2.mjs +2 -0
  190. package/dist/chunks/cli-1.0.15-nc1spcpt.mjs +4 -0
  191. package/dist/chunks/cli-1.0.15-nrwby2vr.mjs +59 -0
  192. package/dist/chunks/cli-1.0.15-nw596g6c.mjs +15 -0
  193. package/dist/chunks/cli-1.0.15-nwh8gbsc.mjs +15 -0
  194. package/dist/chunks/cli-1.0.15-p8ybzj4y.mjs +2 -0
  195. package/dist/chunks/cli-1.0.15-pb66jxfs.mjs +2 -0
  196. package/dist/chunks/cli-1.0.15-peheghd8.mjs +2 -0
  197. package/dist/chunks/cli-1.0.15-pgw4aj9s.mjs +2 -0
  198. package/dist/chunks/cli-1.0.15-pmb32v5y.mjs +2 -0
  199. package/dist/chunks/cli-1.0.15-pq7wsjnv.mjs +2 -0
  200. package/dist/chunks/cli-1.0.15-q0csazva.mjs +2 -0
  201. package/dist/chunks/cli-1.0.15-q8atgecb.mjs +2 -0
  202. package/dist/chunks/cli-1.0.15-qdf1s8sn.mjs +2 -0
  203. package/dist/chunks/cli-1.0.15-qfjesd9x.mjs +15 -0
  204. package/dist/chunks/cli-1.0.15-qqt1dsxy.mjs +2 -0
  205. package/dist/chunks/cli-1.0.15-qssbxbfj.mjs +9 -0
  206. package/dist/chunks/cli-1.0.15-qzntmfak.mjs +2 -0
  207. package/dist/chunks/cli-1.0.15-qzrbfzae.mjs +17 -0
  208. package/dist/chunks/cli-1.0.15-r3wehfgz.mjs +2 -0
  209. package/dist/chunks/cli-1.0.15-rbpevwrr.mjs +2 -0
  210. package/dist/chunks/cli-1.0.15-rgkm224b.mjs +2 -0
  211. package/dist/chunks/cli-1.0.15-rjkszdee.mjs +2 -0
  212. package/dist/chunks/cli-1.0.15-rkt37xy5.mjs +2 -0
  213. package/dist/chunks/cli-1.0.15-rtvt5q4j.mjs +2 -0
  214. package/dist/chunks/cli-1.0.15-rvsmamhh.mjs +2 -0
  215. package/dist/chunks/cli-1.0.15-rxvpfc2v.mjs +2 -0
  216. package/dist/chunks/cli-1.0.15-s13zq2g6.mjs +133 -0
  217. package/dist/chunks/cli-1.0.15-sbj8kz50.mjs +6 -0
  218. package/dist/chunks/cli-1.0.15-sdhb2jht.mjs +2 -0
  219. package/dist/chunks/cli-1.0.15-sens53x7.mjs +2 -0
  220. package/dist/chunks/cli-1.0.15-swecq77h.mjs +2 -0
  221. package/dist/chunks/cli-1.0.15-tf9z0qgg.mjs +2 -0
  222. package/dist/chunks/cli-1.0.15-tksefhgw.mjs +2 -0
  223. package/dist/chunks/cli-1.0.15-tn54byy9.mjs +2 -0
  224. package/dist/chunks/cli-1.0.15-twyy943s.mjs +2 -0
  225. package/dist/chunks/cli-1.0.15-ty850zve.mjs +3 -0
  226. package/dist/chunks/cli-1.0.15-v7c0mmpf.mjs +2 -0
  227. package/dist/chunks/cli-1.0.15-vc4w0s0f.mjs +2 -0
  228. package/dist/chunks/cli-1.0.15-vdfjzwyj.mjs +25 -0
  229. package/dist/chunks/cli-1.0.15-verazxs1.mjs +2 -0
  230. package/dist/chunks/cli-1.0.15-vf4rh7x3.mjs +12 -0
  231. package/dist/chunks/cli-1.0.15-vpx3dnt7.mjs +4 -0
  232. package/dist/chunks/cli-1.0.15-vx6w5s12.mjs +6 -0
  233. package/dist/chunks/cli-1.0.15-w0jtt57y.mjs +3 -0
  234. package/dist/chunks/cli-1.0.15-w0kza2nn.mjs +2 -0
  235. package/dist/chunks/cli-1.0.15-w448x72m.mjs +2 -0
  236. package/dist/chunks/cli-1.0.15-w8jywdxr.mjs +2 -0
  237. package/dist/chunks/cli-1.0.15-w8wkkszd.mjs +2 -0
  238. package/dist/chunks/cli-1.0.15-wbd53m9s.mjs +3 -0
  239. package/dist/chunks/cli-1.0.15-whef4gxw.mjs +2 -0
  240. package/dist/chunks/cli-1.0.15-whew30gy.mjs +2 -0
  241. package/dist/chunks/cli-1.0.15-wm6cn7n7.mjs +5 -0
  242. package/dist/chunks/cli-1.0.15-wsg9cdqp.mjs +2 -0
  243. package/dist/chunks/cli-1.0.15-wv1r62fb.mjs +2 -0
  244. package/dist/chunks/cli-1.0.15-x203gzv4.mjs +2 -0
  245. package/dist/chunks/cli-1.0.15-x68z512d.mjs +3 -0
  246. package/dist/chunks/cli-1.0.15-x6bgcj6j.mjs +202 -0
  247. package/dist/chunks/cli-1.0.15-xw62agkd.mjs +16 -0
  248. package/dist/chunks/cli-1.0.15-y207bwfz.mjs +2 -0
  249. package/dist/chunks/cli-1.0.15-y8h6wfxv.mjs +2 -0
  250. package/dist/chunks/cli-1.0.15-yhkncx78.mjs +21 -0
  251. package/dist/chunks/cli-1.0.15-yrdyyvx7.mjs +6 -0
  252. package/dist/chunks/cli-1.0.15-yv6jvtd3.mjs +2 -0
  253. package/dist/chunks/cli-1.0.15-yxt9f7qb.mjs +2 -0
  254. package/dist/chunks/cli-1.0.15-z3j7rgyp.mjs +9 -0
  255. package/dist/chunks/cli-1.0.15-zfe6g19w.mjs +2 -0
  256. package/dist/chunks/cli-1.0.15-zhz992pf.mjs +2 -0
  257. package/dist/chunks/cli-1.0.15-zv07g6mh.mjs +4 -0
  258. package/dist/chunks/client-1.0.15-1nanrm3v.mjs +1 -0
  259. package/dist/chunks/color-1.0.15-7h09v05v.mjs +1 -0
  260. package/dist/chunks/compact-1.0.15-bbr712y6.mjs +3 -0
  261. package/dist/chunks/config-1.0.15-86c37qyg.mjs +1 -0
  262. package/dist/chunks/config-1.0.15-qkzra3hn.mjs +1 -0
  263. package/dist/chunks/constants-1.0.15-n7mjeepn.mjs +1 -0
  264. package/dist/chunks/context-1.0.15-04nqna96.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.0.15-ph9z0gj0.mjs +1 -0
  266. package/dist/chunks/conversation-1.0.15-vv1sm2bq.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.0.15-agdjct0c.mjs +1 -0
  268. package/dist/chunks/copy-1.0.15-rq1dt4kg.mjs +9 -0
  269. package/dist/chunks/cost-1.0.15-3kw2p2ma.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.0.15-sz4v3xe4.mjs +1 -0
  271. package/dist/chunks/createSession-1.0.15-x29zzv23.mjs +1 -0
  272. package/dist/chunks/debug-1.0.15-yf1ce0zj.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.0.15-8mhqj6ng.mjs +1446 -0
  274. package/dist/chunks/desktop-1.0.15-2hzvek03.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.0.15-11srzskh.mjs +1 -0
  276. package/dist/chunks/detection-1.0.15-q1b1fd1n.mjs +1 -0
  277. package/dist/chunks/diff-1.0.15-8tkhhfaj.mjs +1 -0
  278. package/dist/chunks/doctor-1.0.15-7dd5as8s.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.0.15-mmahxf4w.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.0.15-phgxtad2.mjs +1 -0
  281. package/dist/chunks/effort-1.0.15-jabawz09.mjs +10 -0
  282. package/dist/chunks/engine-1.0.15-m4qq3fdj.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.0.15-wwy4m1tg.mjs +1 -0
  284. package/dist/chunks/envUtils-1.0.15-mhw6b6wv.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.0.15-xvpfcead.mjs +1 -0
  286. package/dist/chunks/environments-1.0.15-01feph82.mjs +1 -0
  287. package/dist/chunks/errors-1.0.15-p523knhf.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.0.15-500mkp8k.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.0.15-c9gp096c.mjs +1 -0
  290. package/dist/chunks/exit-1.0.15-5bxkf4wt.mjs +1 -0
  291. package/dist/chunks/explorer-1.0.15-3xckk4q6.mjs +1 -0
  292. package/dist/chunks/export-1.0.15-x26gp84a.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.0.15-kzammpx2.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.0.15-w616etne.mjs +1 -0
  295. package/dist/chunks/fast-1.0.15-z3hr29w4.mjs +1 -0
  296. package/dist/chunks/feedback-1.0.15-p67b2923.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.0.15-84q6s4wh.mjs +1 -0
  298. package/dist/chunks/git-1.0.15-3hhh7mkb.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.0.15-29cbxgpc.mjs +1 -0
  300. package/dist/chunks/goal-1.0.15-y0abdze5.mjs +4 -0
  301. package/dist/chunks/grove-1.0.15-7d359a5x.mjs +1 -0
  302. package/dist/chunks/growthbook-1.0.15-x8tbedqg.mjs +1 -0
  303. package/dist/chunks/headless-1.0.15-9xqc8rrv.mjs +2 -0
  304. package/dist/chunks/heapdump-1.0.15-b1a00cnt.mjs +6 -0
  305. package/dist/chunks/help-1.0.15-by78ztvc.mjs +1 -0
  306. package/dist/chunks/hookChains-1.0.15-q3mq63xw.mjs +3 -0
  307. package/dist/chunks/hooks-1.0.15-898qsapq.mjs +1 -0
  308. package/dist/chunks/hooks-1.0.15-bwxae2k4.mjs +79 -0
  309. package/dist/chunks/ide-1.0.15-dqp39p4j.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.0.15-s9z99aka.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.0.15-ww5f1k45.mjs +1 -0
  312. package/dist/chunks/index-1.0.15-22hn7r2q.mjs +1 -0
  313. package/dist/chunks/index-1.0.15-41x2b1ba.mjs +1 -0
  314. package/dist/chunks/index-1.0.15-4cngq6jm.mjs +1 -0
  315. package/dist/chunks/index-1.0.15-563jcaxp.mjs +1 -0
  316. package/dist/chunks/index-1.0.15-5ddgt9w9.mjs +5 -0
  317. package/dist/chunks/index-1.0.15-62kzbthr.mjs +1 -0
  318. package/dist/chunks/index-1.0.15-6xra7cxc.mjs +1 -0
  319. package/dist/chunks/index-1.0.15-apej2eyy.mjs +17 -0
  320. package/dist/chunks/index-1.0.15-d7343p0m.mjs +9 -0
  321. package/dist/chunks/index-1.0.15-dn4c5ac3.mjs +1 -0
  322. package/dist/chunks/index-1.0.15-e0ntb25e.mjs +1 -0
  323. package/dist/chunks/index-1.0.15-e1v2z7sq.mjs +1 -0
  324. package/dist/chunks/index-1.0.15-f31ysjpc.mjs +30 -0
  325. package/dist/chunks/index-1.0.15-g3nxsrs6.mjs +1 -0
  326. package/dist/chunks/index-1.0.15-gdf1p5w0.mjs +1 -0
  327. package/dist/chunks/index-1.0.15-h0e2n5hw.mjs +1 -0
  328. package/dist/chunks/index-1.0.15-hppyew9q.mjs +9 -0
  329. package/dist/chunks/index-1.0.15-j1fbvhv0.mjs +1 -0
  330. package/dist/chunks/index-1.0.15-n3xtev9d.mjs +1 -0
  331. package/dist/chunks/index-1.0.15-pjgsjdye.mjs +1 -0
  332. package/dist/chunks/index-1.0.15-qjc4a0hk.mjs +1 -0
  333. package/dist/chunks/index-1.0.15-qkqmt400.mjs +2 -0
  334. package/dist/chunks/index-1.0.15-tsc8b7qt.mjs +2 -0
  335. package/dist/chunks/init-1.0.15-51hrt3sw.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.0.15-hvpb3ya8.mjs +1 -0
  337. package/dist/chunks/ink-1.0.15-abm6e0hy.mjs +1 -0
  338. package/dist/chunks/insights-1.0.15-eb2cz87g.mjs +870 -0
  339. package/dist/chunks/install-1.0.15-ejnp78jw.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.0.15-6njxrjc8.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.0.15-q1bv68wm.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.0.15-xnwxkp42.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.0.15-tmj4ck09.mjs +1 -0
  344. package/dist/chunks/keybindings-1.0.15-neswm6qd.mjs +2 -0
  345. package/dist/chunks/knowledge-1.0.15-th8gzp9y.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.0.15-33bm0j2f.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.0.15-fjgwjk7z.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.0.15-wn9rb1nj.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.15-wytzdx5z.mjs +1 -0
  350. package/dist/chunks/log-1.0.15-g45p6p8b.mjs +1 -0
  351. package/dist/chunks/main-1.0.15-c8b622at.mjs +1 -0
  352. package/dist/chunks/managedEnv-1.0.15-7d0t9knq.mjs +1 -0
  353. package/dist/chunks/mcp-1.0.15-0rz6a665.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.15-2csh0m0q.mjs +17 -0
  355. package/dist/chunks/mcp-1.0.15-mnqw62hf.mjs +4 -0
  356. package/dist/chunks/mcpb-1.0.15-51f0cyna.mjs +1 -0
  357. package/dist/chunks/memory-1.0.15-9ty7878c.mjs +72 -0
  358. package/dist/chunks/model-1.0.15-btfcakpa.mjs +2 -0
  359. package/dist/chunks/model-1.0.15-hkz8nh7n.mjs +1 -0
  360. package/dist/chunks/node-1.0.15-xxbzffcm.mjs +12 -0
  361. package/dist/chunks/oauth-1.0.15-qk2njnqt.mjs +1 -0
  362. package/dist/chunks/openaiShim-1.0.15-d6xqsqaj.mjs +14 -0
  363. package/dist/chunks/output-style-1.0.15-1p25w14b.mjs +1 -0
  364. package/dist/chunks/package-2VNCXFNY-1.0.15-f17c3v8h.mjs +1 -0
  365. package/dist/chunks/parseConnectUrl-1.0.15-evfrx6ef.mjs +1 -0
  366. package/dist/chunks/parser-1.0.15-sw9zp9hx.mjs +1 -0
  367. package/dist/chunks/passes-1.0.15-ve0gv3fn.mjs +1 -0
  368. package/dist/chunks/permissions-1.0.15-czky0wv1.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.15-dybttyne.mjs +3 -0
  370. package/dist/chunks/plan-1.0.15-bgx20yyj.mjs +1 -0
  371. package/dist/chunks/plist-1.0.15-yxp4p4st.mjs +1 -0
  372. package/dist/chunks/plugin-1.0.15-dq2pkmwj.mjs +29 -0
  373. package/dist/chunks/pluginStartupCheck-1.0.15-jfdhfm4m.mjs +1 -0
  374. package/dist/chunks/plugins-1.0.15-2y6cpb5x.mjs +9 -0
  375. package/dist/chunks/preActionHook-1.0.15-d4bfeykw.mjs +2 -0
  376. package/dist/chunks/print-1.0.15-c5qnn914.mjs +57 -0
  377. package/dist/chunks/privacy-settings-1.0.15-vwa3wpm4.mjs +1 -0
  378. package/dist/chunks/process-1.0.15-fn9gq50e.mjs +1 -0
  379. package/dist/chunks/processBashCommand-1.0.15-8acp22x9.mjs +1 -0
  380. package/dist/chunks/processSlashCommand-1.0.15-0kfa0p6x.mjs +9 -0
  381. package/dist/chunks/prompt-1.0.15-67vrdkbh.mjs +1 -0
  382. package/dist/chunks/prompt-1.0.15-920s9v6b.mjs +1 -0
  383. package/dist/chunks/prompts-1.0.15-1tk07hjv.mjs +1 -0
  384. package/dist/chunks/protocolHandler-1.0.15-0t7z6wa4.mjs +13 -0
  385. package/dist/chunks/provider-1.0.15-wm9ewqpc.mjs +2 -0
  386. package/dist/chunks/providerProfiles-1.0.15-467dcm5c.mjs +1 -0
  387. package/dist/chunks/providerValidation-1.0.15-4036bd9g.mjs +6 -0
  388. package/dist/chunks/rate-limit-options-1.0.15-508yvcqa.mjs +1 -0
  389. package/dist/chunks/registerSubcommands-1.0.15-d9397mz6.mjs +34 -0
  390. package/dist/chunks/registry-1.0.15-12m16hd9.mjs +1 -0
  391. package/dist/chunks/release-notes-1.0.15-32g02jw1.mjs +5 -0
  392. package/dist/chunks/reload-plugins-1.0.15-2tg7jha5.mjs +2 -0
  393. package/dist/chunks/remote-env-1.0.15-jct0v6eb.mjs +1 -0
  394. package/dist/chunks/remoteBridgeCore-1.0.15-ep3qpncp.mjs +1 -0
  395. package/dist/chunks/remoteSession-1.0.15-tezcky9a.mjs +1 -0
  396. package/dist/chunks/rename-1.0.15-77747574.mjs +1 -0
  397. package/dist/chunks/replBridgeHandle-1.0.15-r618bj2s.mjs +1 -0
  398. package/dist/chunks/replLauncher-1.0.15-5ycj3dn1.mjs +1 -0
  399. package/dist/chunks/resume-1.0.15-jas7fmap.mjs +2 -0
  400. package/dist/chunks/rewind-1.0.15-59bkbymb.mjs +1 -0
  401. package/dist/chunks/rootOptions-1.0.15-yjmt5a1k.mjs +1 -0
  402. package/dist/chunks/runWorkflowHeadless-1.0.15-yn83ms9d.mjs +10 -0
  403. package/dist/chunks/sandbox-adapter-1.0.15-rhtphtt2.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.15-gqh5nza8.mjs +1 -0
  405. package/dist/chunks/session-1.0.15-etds2qs7.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.15-9wgmvp27.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.15-2kx81w17.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.15-8ka7arvw.mjs +1 -0
  409. package/dist/chunks/settings-1.0.15-nw824nv7.mjs +1 -0
  410. package/dist/chunks/setup-1.0.15-xg66p6ha.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.15-m312z7ne.mjs +1 -0
  412. package/dist/chunks/skills-1.0.15-91jpzmsa.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.15-ase2wwkk.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.15-m6tcjqjy.mjs +1 -0
  415. package/dist/chunks/state-1.0.15-ypyc7yma.mjs +1 -0
  416. package/dist/chunks/stats-1.0.15-20xfvtxf.mjs +6 -0
  417. package/dist/chunks/status-1.0.15-a3hg1hb2.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.15-dmrqdxpt.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.15-nx4hgj99.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.15-z9j66px1.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.15-ehfc0f84.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.15-j9xnhc9r.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.15-ftmbp0xn.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.15-hq6j2jce.mjs +1 -0
  425. package/dist/chunks/theme-1.0.15-rtaq6w2w.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.15-z7fkh9na.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.15-xe5c4403.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.15-xx0g0cd9.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.15-363v2605.mjs +1 -0
  430. package/dist/chunks/tools-1.0.15-dwf2jp96.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.15-041hap1x.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.15-tc5p6gy0.mjs +69 -0
  433. package/dist/chunks/types-1.0.15-7j0ngjtf.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.15-m8mb87qg.mjs +4 -0
  435. package/dist/chunks/update-1.0.15-x340nrs3.mjs +88 -0
  436. package/dist/chunks/upgrade-1.0.15-q3vd7h2g.mjs +1 -0
  437. package/dist/chunks/upload-1.0.15-3tda3gn3.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.15-sn6vwrsp.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.15-a9ysm42q.mjs +1 -0
  440. package/dist/chunks/usage-1.0.15-jbspakfx.mjs +1 -0
  441. package/dist/chunks/util-1.0.15-696vpvbq.mjs +1 -0
  442. package/dist/chunks/utils-1.0.15-bnryexmv.mjs +1 -0
  443. package/dist/chunks/vim-1.0.15-5wy3q708.mjs +1 -0
  444. package/dist/chunks/watchLoop-1.0.15-wmf58cqh.mjs +13 -0
  445. package/dist/chunks/watcher-1.0.15-adrqrr8h.mjs +1 -0
  446. package/dist/chunks/wiki-1.0.15-k6g3vvyv.mjs +132 -0
  447. package/dist/chunks/workflows-1.0.15-0bcj0gf6.mjs +1 -0
  448. package/dist/chunks/worktree-1.0.15-byxhz3zz.mjs +1 -0
  449. package/dist/chunks/worktreeModeEnabled-1.0.15-hdn8erh7.mjs +1 -0
  450. package/dist/chunks/wrapper-1.0.15-zydswseh.mjs +7 -0
  451. package/dist/cli.mjs +2 -2
  452. package/package.json +9 -9
  453. package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +0 -1
  454. package/dist/chunks/App-1.0.13-ka050dp3.mjs +0 -1
  455. package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +0 -1
  456. package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +0 -1
  457. package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +0 -1
  458. package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +0 -1
  459. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +0 -1
  460. package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +0 -1
  461. package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +0 -7
  462. package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +0 -1
  463. package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +0 -6
  464. package/dist/chunks/Grove-1.0.13-hdw88war.mjs +0 -1
  465. package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +0 -1
  466. package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +0 -1
  467. package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +0 -1
  468. package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +0 -1
  469. package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +0 -1
  470. package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +0 -1
  471. package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +0 -1
  472. package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +0 -1
  473. package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +0 -1
  474. package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +0 -1
  475. package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +0 -1
  476. package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +0 -1
  477. package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +0 -9
  478. package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +0 -1
  479. package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +0 -1
  480. package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +0 -1
  481. package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +0 -1
  482. package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +0 -1
  483. package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +0 -3
  484. package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +0 -110
  485. package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +0 -1
  486. package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +0 -1
  487. package/dist/chunks/assistant-1.0.13-91499j0p.mjs +0 -1
  488. package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +0 -1
  489. package/dist/chunks/auth-1.0.13-s1vedchg.mjs +0 -1
  490. package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +0 -48
  491. package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +0 -1
  492. package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +0 -1
  493. package/dist/chunks/branch-1.0.13-encr40nd.mjs +0 -4
  494. package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +0 -2
  495. package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +0 -1
  496. package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +0 -1
  497. package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +0 -88
  498. package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +0 -1
  499. package/dist/chunks/btw-1.0.13-55x872ns.mjs +0 -1
  500. package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +0 -3
  501. package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +0 -1
  502. package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +0 -21
  503. package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +0 -4
  504. package/dist/chunks/caches-1.0.13-md3zkabd.mjs +0 -1
  505. package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +0 -1
  506. package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +0 -1
  507. package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +0 -1
  508. package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +0 -1
  509. package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +0 -2
  510. package/dist/chunks/cli-1.0.13-0357cnwe.mjs +0 -2
  511. package/dist/chunks/cli-1.0.13-14c24kge.mjs +0 -2
  512. package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +0 -2
  513. package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +0 -3
  514. package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +0 -2
  515. package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +0 -3
  516. package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +0 -4
  517. package/dist/chunks/cli-1.0.13-23ev2ept.mjs +0 -45
  518. package/dist/chunks/cli-1.0.13-29x94tf7.mjs +0 -2
  519. package/dist/chunks/cli-1.0.13-2x789qav.mjs +0 -2
  520. package/dist/chunks/cli-1.0.13-2xpprn71.mjs +0 -1
  521. package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +0 -3
  522. package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +0 -18
  523. package/dist/chunks/cli-1.0.13-3767t4yj.mjs +0 -4
  524. package/dist/chunks/cli-1.0.13-3c13b00m.mjs +0 -2
  525. package/dist/chunks/cli-1.0.13-3dmmr756.mjs +0 -2
  526. package/dist/chunks/cli-1.0.13-3essvqs1.mjs +0 -2
  527. package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +0 -2
  528. package/dist/chunks/cli-1.0.13-3fs84evm.mjs +0 -2
  529. package/dist/chunks/cli-1.0.13-3pspajgg.mjs +0 -15
  530. package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +0 -2
  531. package/dist/chunks/cli-1.0.13-449f1p6g.mjs +0 -2
  532. package/dist/chunks/cli-1.0.13-466jbd1q.mjs +0 -2
  533. package/dist/chunks/cli-1.0.13-4dp5a597.mjs +0 -6
  534. package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +0 -2
  535. package/dist/chunks/cli-1.0.13-57993qn6.mjs +0 -2
  536. package/dist/chunks/cli-1.0.13-57ez593b.mjs +0 -3
  537. package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +0 -4
  538. package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +0 -58
  539. package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +0 -2
  540. package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +0 -2
  541. package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +0 -2
  542. package/dist/chunks/cli-1.0.13-696y87my.mjs +0 -18
  543. package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +0 -2
  544. package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +0 -2
  545. package/dist/chunks/cli-1.0.13-6vb140br.mjs +0 -25
  546. package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +0 -2
  547. package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +0 -2
  548. package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +0 -2
  549. package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +0 -2
  550. package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +0 -2
  551. package/dist/chunks/cli-1.0.13-7rg014zx.mjs +0 -5
  552. package/dist/chunks/cli-1.0.13-7xfra4by.mjs +0 -2
  553. package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +0 -2
  554. package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +0 -2
  555. package/dist/chunks/cli-1.0.13-83vckpyr.mjs +0 -6
  556. package/dist/chunks/cli-1.0.13-8s33s84f.mjs +0 -2
  557. package/dist/chunks/cli-1.0.13-93twxc7q.mjs +0 -2
  558. package/dist/chunks/cli-1.0.13-98a94f4b.mjs +0 -2
  559. package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +0 -2
  560. package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +0 -9
  561. package/dist/chunks/cli-1.0.13-9t0q538w.mjs +0 -25
  562. package/dist/chunks/cli-1.0.13-a2j673qk.mjs +0 -2
  563. package/dist/chunks/cli-1.0.13-a5641ktm.mjs +0 -2
  564. package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +0 -2
  565. package/dist/chunks/cli-1.0.13-a8t9066b.mjs +0 -2
  566. package/dist/chunks/cli-1.0.13-afdk25h0.mjs +0 -2
  567. package/dist/chunks/cli-1.0.13-avxss6zg.mjs +0 -9
  568. package/dist/chunks/cli-1.0.13-bj2neb84.mjs +0 -2
  569. package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +0 -2
  570. package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +0 -15
  571. package/dist/chunks/cli-1.0.13-cm3q208z.mjs +0 -2
  572. package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +0 -34
  573. package/dist/chunks/cli-1.0.13-d016ffc7.mjs +0 -3
  574. package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +0 -2
  575. package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +0 -2
  576. package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +0 -2
  577. package/dist/chunks/cli-1.0.13-dwp60tja.mjs +0 -2
  578. package/dist/chunks/cli-1.0.13-e19bb64d.mjs +0 -4
  579. package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +0 -2
  580. package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +0 -2
  581. package/dist/chunks/cli-1.0.13-e464ab16.mjs +0 -2
  582. package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +0 -2
  583. package/dist/chunks/cli-1.0.13-e9q9245e.mjs +0 -2
  584. package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +0 -2
  585. package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +0 -3
  586. package/dist/chunks/cli-1.0.13-f38bh25k.mjs +0 -12
  587. package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +0 -133
  588. package/dist/chunks/cli-1.0.13-fb695nhr.mjs +0 -67
  589. package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +0 -2
  590. package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +0 -2
  591. package/dist/chunks/cli-1.0.13-frs40s6h.mjs +0 -2
  592. package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +0 -2
  593. package/dist/chunks/cli-1.0.13-fta82vnx.mjs +0 -2
  594. package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +0 -8
  595. package/dist/chunks/cli-1.0.13-g7daabde.mjs +0 -3
  596. package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +0 -2
  597. package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +0 -2
  598. package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +0 -16
  599. package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +0 -2
  600. package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +0 -39
  601. package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +0 -2
  602. package/dist/chunks/cli-1.0.13-jdxaky02.mjs +0 -12
  603. package/dist/chunks/cli-1.0.13-jkahzkac.mjs +0 -12
  604. package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +0 -2
  605. package/dist/chunks/cli-1.0.13-jsezewz5.mjs +0 -2
  606. package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +0 -2
  607. package/dist/chunks/cli-1.0.13-k4znag0a.mjs +0 -2
  608. package/dist/chunks/cli-1.0.13-k71bq854.mjs +0 -2
  609. package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +0 -2
  610. package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +0 -2
  611. package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +0 -12
  612. package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +0 -2
  613. package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +0 -3
  614. package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +0 -7
  615. package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +0 -2
  616. package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +0 -5495
  617. package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +0 -2
  618. package/dist/chunks/cli-1.0.13-mazxedqg.mjs +0 -4
  619. package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +0 -2
  620. package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +0 -59
  621. package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +0 -2
  622. package/dist/chunks/cli-1.0.13-ndthc14d.mjs +0 -2
  623. package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +0 -2
  624. package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +0 -15
  625. package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +0 -202
  626. package/dist/chunks/cli-1.0.13-p43t5py0.mjs +0 -2
  627. package/dist/chunks/cli-1.0.13-p7b51har.mjs +0 -2
  628. package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +0 -2
  629. package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +0 -6
  630. package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +0 -2
  631. package/dist/chunks/cli-1.0.13-pwfpt641.mjs +0 -2
  632. package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +0 -17
  633. package/dist/chunks/cli-1.0.13-q40za40w.mjs +0 -50
  634. package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +0 -2
  635. package/dist/chunks/cli-1.0.13-qx079tft.mjs +0 -2
  636. package/dist/chunks/cli-1.0.13-qxebhem2.mjs +0 -2
  637. package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +0 -2
  638. package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +0 -2
  639. package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +0 -4
  640. package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +0 -2
  641. package/dist/chunks/cli-1.0.13-rhptvh17.mjs +0 -2
  642. package/dist/chunks/cli-1.0.13-rxd329nn.mjs +0 -24
  643. package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +0 -2
  644. package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +0 -2
  645. package/dist/chunks/cli-1.0.13-s15merj9.mjs +0 -2
  646. package/dist/chunks/cli-1.0.13-s16wgevn.mjs +0 -2
  647. package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +0 -2
  648. package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +0 -24
  649. package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +0 -2
  650. package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +0 -20
  651. package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +0 -2
  652. package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +0 -24
  653. package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +0 -2
  654. package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +0 -2
  655. package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +0 -2
  656. package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +0 -2
  657. package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +0 -2
  658. package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +0 -17
  659. package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +0 -2
  660. package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +0 -2
  661. package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +0 -3
  662. package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +0 -2
  663. package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +0 -2
  664. package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +0 -2
  665. package/dist/chunks/cli-1.0.13-trkevtw9.mjs +0 -2
  666. package/dist/chunks/cli-1.0.13-tyhtztew.mjs +0 -2
  667. package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +0 -21
  668. package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +0 -2
  669. package/dist/chunks/cli-1.0.13-v4annnm3.mjs +0 -2
  670. package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +0 -4
  671. package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +0 -133
  672. package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +0 -2
  673. package/dist/chunks/cli-1.0.13-vb85p8we.mjs +0 -2
  674. package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +0 -2
  675. package/dist/chunks/cli-1.0.13-vd01re4x.mjs +0 -2
  676. package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +0 -2
  677. package/dist/chunks/cli-1.0.13-vs4d56js.mjs +0 -2
  678. package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +0 -2
  679. package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +0 -5
  680. package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +0 -2
  681. package/dist/chunks/cli-1.0.13-w5jash5n.mjs +0 -2
  682. package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +0 -2
  683. package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +0 -2
  684. package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +0 -6
  685. package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +0 -2
  686. package/dist/chunks/cli-1.0.13-wsk4823v.mjs +0 -2
  687. package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +0 -4
  688. package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +0 -3
  689. package/dist/chunks/cli-1.0.13-xajnmhak.mjs +0 -2
  690. package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +0 -2
  691. package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +0 -2
  692. package/dist/chunks/cli-1.0.13-xr55511t.mjs +0 -2
  693. package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +0 -42
  694. package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +0 -18
  695. package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +0 -6
  696. package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +0 -2
  697. package/dist/chunks/cli-1.0.13-y74xv34r.mjs +0 -4
  698. package/dist/chunks/cli-1.0.13-yb1smx77.mjs +0 -2
  699. package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +0 -4
  700. package/dist/chunks/cli-1.0.13-yq7961x3.mjs +0 -4
  701. package/dist/chunks/cli-1.0.13-yr590qbp.mjs +0 -3
  702. package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +0 -2
  703. package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +0 -2
  704. package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +0 -3
  705. package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +0 -2
  706. package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +0 -2
  707. package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +0 -2
  708. package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +0 -2
  709. package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +0 -2
  710. package/dist/chunks/client-1.0.13-jj0v4n27.mjs +0 -1
  711. package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +0 -1
  712. package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +0 -3
  713. package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +0 -1
  714. package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +0 -1
  715. package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +0 -1
  716. package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +0 -1
  717. package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +0 -1
  718. package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +0 -1
  719. package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +0 -1
  720. package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +0 -9
  721. package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +0 -1
  722. package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +0 -1
  723. package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +0 -1
  724. package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +0 -1
  725. package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +0 -1446
  726. package/dist/chunks/desktop-1.0.13-e005km58.mjs +0 -1
  727. package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +0 -1
  728. package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +0 -1
  729. package/dist/chunks/diff-1.0.13-9jypv082.mjs +0 -1
  730. package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +0 -1
  731. package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +0 -1
  732. package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +0 -1
  733. package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +0 -10
  734. package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +0 -1
  735. package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +0 -1
  736. package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +0 -1
  737. package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +0 -1
  738. package/dist/chunks/environments-1.0.13-w5a33d52.mjs +0 -1
  739. package/dist/chunks/errors-1.0.13-wrs4k863.mjs +0 -1
  740. package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +0 -1
  741. package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +0 -1
  742. package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +0 -1
  743. package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +0 -1
  744. package/dist/chunks/export-1.0.13-cbatvd1c.mjs +0 -2
  745. package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +0 -1
  747. package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +0 -1
  748. package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +0 -1
  750. package/dist/chunks/git-1.0.13-9196pgzv.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +0 -1
  752. package/dist/chunks/goal-1.0.13-cty957vz.mjs +0 -4
  753. package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +0 -1
  754. package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +0 -1
  755. package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +0 -2
  756. package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +0 -6
  757. package/dist/chunks/help-1.0.13-em333cwb.mjs +0 -1
  758. package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +0 -3
  759. package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +0 -79
  760. package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +0 -1
  761. package/dist/chunks/ide-1.0.13-4z1afk08.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +0 -1
  764. package/dist/chunks/index-1.0.13-361h9v63.mjs +0 -1
  765. package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +0 -1
  766. package/dist/chunks/index-1.0.13-55th4hhq.mjs +0 -1
  767. package/dist/chunks/index-1.0.13-55vgc9cr.mjs +0 -1
  768. package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +0 -1
  769. package/dist/chunks/index-1.0.13-792fhv61.mjs +0 -1
  770. package/dist/chunks/index-1.0.13-8k0904bs.mjs +0 -1
  771. package/dist/chunks/index-1.0.13-ace8202d.mjs +0 -2
  772. package/dist/chunks/index-1.0.13-e20f9w6f.mjs +0 -1
  773. package/dist/chunks/index-1.0.13-efh2qbe0.mjs +0 -1
  774. package/dist/chunks/index-1.0.13-ej84k860.mjs +0 -1
  775. package/dist/chunks/index-1.0.13-fnd36467.mjs +0 -2
  776. package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +0 -30
  777. package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +0 -1
  778. package/dist/chunks/index-1.0.13-j0146ntq.mjs +0 -1
  779. package/dist/chunks/index-1.0.13-jackh0p4.mjs +0 -17
  780. package/dist/chunks/index-1.0.13-kfmh713v.mjs +0 -9
  781. package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +0 -1
  782. package/dist/chunks/index-1.0.13-rrm8s54m.mjs +0 -1
  783. package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +0 -1
  784. package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +0 -5
  785. package/dist/chunks/index-1.0.13-y5wahjbd.mjs +0 -9
  786. package/dist/chunks/index-1.0.13-ykat42gv.mjs +0 -1
  787. package/dist/chunks/init-1.0.13-pyw980be.mjs +0 -1
  788. package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +0 -1
  789. package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +0 -1
  790. package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +0 -870
  791. package/dist/chunks/install-1.0.13-afmkvg4q.mjs +0 -1
  792. package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +0 -149
  793. package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +0 -1
  794. package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +0 -1
  796. package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +0 -2
  797. package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +0 -1
  802. package/dist/chunks/log-1.0.13-3sscdqcx.mjs +0 -1
  803. package/dist/chunks/main-1.0.13-h958ytkv.mjs +0 -1
  804. package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +0 -1
  805. package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +0 -4
  806. package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +0 -1
  807. package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +0 -17
  808. package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +0 -1
  809. package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +0 -72
  810. package/dist/chunks/model-1.0.13-28wkmva5.mjs +0 -2
  811. package/dist/chunks/model-1.0.13-wbne69bf.mjs +0 -1
  812. package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +0 -12
  813. package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +0 -1
  814. package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +0 -14
  815. package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +0 -1
  816. package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +0 -1
  818. package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +0 -1
  819. package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +0 -1
  820. package/dist/chunks/permissions-1.0.13-091a123r.mjs +0 -1
  821. package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +0 -3
  822. package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +0 -1
  823. package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +0 -1
  824. package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +0 -1
  826. package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +0 -9
  827. package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +0 -2
  828. package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +0 -57
  829. package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +0 -1
  830. package/dist/chunks/process-1.0.13-yvqmferw.mjs +0 -1
  831. package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +0 -9
  833. package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +0 -1
  834. package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +0 -1
  835. package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +0 -1
  836. package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +0 -13
  837. package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +0 -2
  838. package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +0 -1
  839. package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +0 -34
  842. package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +0 -1
  843. package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +0 -5
  844. package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +0 -2
  845. package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +0 -1
  847. package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +0 -1
  848. package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +0 -1
  850. package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +0 -1
  851. package/dist/chunks/resume-1.0.13-g7w8k889.mjs +0 -2
  852. package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +0 -1
  853. package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +0 -1
  854. package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +0 -10
  855. package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +0 -1
  856. package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +0 -1
  857. package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +0 -2
  858. package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +0 -1
  859. package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +0 -1
  860. package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +0 -1
  861. package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +0 -1
  862. package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +0 -5
  863. package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +0 -1
  864. package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +0 -1
  865. package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +0 -1
  866. package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +0 -1
  867. package/dist/chunks/state-1.0.13-zq29wtdm.mjs +0 -1
  868. package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +0 -6
  869. package/dist/chunks/status-1.0.13-t69r10gd.mjs +0 -1
  870. package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +0 -1
  871. package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +0 -1
  872. package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +0 -1
  873. package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +0 -1
  874. package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +0 -1
  875. package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +0 -1
  876. package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +0 -1
  877. package/dist/chunks/theme-1.0.13-qh1caywb.mjs +0 -1
  878. package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +0 -1
  879. package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +0 -1
  880. package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +0 -1
  881. package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +0 -1
  882. package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +0 -1
  883. package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +0 -1
  884. package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +0 -69
  885. package/dist/chunks/types-1.0.13-7xc46cqv.mjs +0 -1
  886. package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +0 -4
  887. package/dist/chunks/update-1.0.13-yevsj7ad.mjs +0 -88
  888. package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +0 -1
  889. package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +0 -7
  890. package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +0 -14
  891. package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +0 -1
  892. package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +0 -1
  893. package/dist/chunks/util-1.0.13-87gxb90q.mjs +0 -1
  894. package/dist/chunks/utils-1.0.13-c5pe460e.mjs +0 -1
  895. package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +0 -1
  896. package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +0 -13
  897. package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +0 -1
  898. package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +0 -132
  899. package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +0 -1
  900. package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +0 -1
  901. package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +0 -1
  902. package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +0 -7
  903. /package/dist/chunks/{cli-1.0.13-tzenmc0b.mjs → cli-1.0.15-07xj3g8e.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.0.13-wv7skbb9.mjs → cli-1.0.15-34tkfpae.mjs} +0 -0
  905. /package/dist/chunks/{cli-1.0.13-ap2xrh2s.mjs → cli-1.0.15-ca94tsgf.mjs} +0 -0
  906. /package/dist/chunks/{cli-1.0.13-4z6c4gzk.mjs → cli-1.0.15-eb4r1tqp.mjs} +0 -0
  907. /package/dist/chunks/{cli-1.0.13-n6bzzv7p.mjs → cli-1.0.15-gn4sk6nh.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.0.13-d9nvpqpw.mjs → cli-1.0.15-qt9wsd1x.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.0.13-v34fp7gq.mjs → cli-1.0.15-shjbmrej.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.0.13-q9et56bj.mjs → cli-1.0.15-vewf233x.mjs} +0 -0
@@ -0,0 +1,16 @@
1
+ import{W8 as E2,Y8 as w8}from"./cli-1.0.15-adsqpzey.mjs";import{$8 as eZ,_8 as h}from"./cli-1.0.15-51jmehra.mjs";import{k9 as n5,m9 as N8}from"./cli-1.0.15-jm1dwnr3.mjs";import{$9 as h4,Eea as e1,Fba as HZ,Hda as B0,L_ as U5,N_ as $$,Oca as r1,Qda as s4,Sda as J$,Sfa as c5,Tda as T1,Tea as i,Uda as d8,Ufa as j4,Vea as Z4,Wea as wZ,Xca as RZ,_ea as $4,_fa as d5,a_ as a,aba as y1,b_ as L2,bba as c8,bga as L,c_ as b0,d_ as f4,e_ as s2,ega as $0,j_ as R0,k_ as x1,nfa as B4,oba as o1,pea as d,pfa as J4,qga as N,sda as O,sfa as k2,tfa as Q$,uda as j2,uea as m5,v_ as N5,vea as C,xda as Q0,y_ as Z$,yda as S,yea as K,yga as a0}from"./cli-1.0.15-x6bgcj6j.mjs";import{Aha as y4,Kha as I1,yha as A0}from"./cli-1.0.15-hmb8ny4m.mjs";import{Oia as T5,Pia as a4,Qia as j0,Sia as H8,Tia as R8,Via as b,Wia as S0}from"./cli-1.0.15-8w43v6k1.mjs";import{Xia as x,_ia as B2}from"./cli-1.0.15-8kr6hy0g.mjs";import{Eja as D5,Ija as rZ,Mja as t2,Qja as h8,_ja as z,aka as d0,bka as Z0}from"./cli-1.0.15-yrdyyvx7.mjs";import{Aka as V1,Fka as W1,yka as p}from"./cli-1.0.15-vpx3dnt7.mjs";import{Ika as L5,Lka as F,Nka as u,Pka as O2,Ska as t4,Vka as g}from"./cli-1.0.15-tf9z0qgg.mjs";import{$oa as x2,Mna as s1,Moa as Q1,Noa as Y1,Ooa as X1,Poa as q1,Qna as I4,Vna as y0,Wna as J2,ooa as f,vma as X0,voa as _1,wma as F1,yna as m1,yqa as J0}from"./cli-1.0.15-yxt9f7qb.mjs";import{Xqa as y,Yqa as t0}from"./cli-1.0.15-qdf1s8sn.mjs";import{Kra as q2,sra as P}from"./cli-1.0.15-mcyk2xwv.mjs";import{esa as I0,gsa as d2,hsa as R,isa as e}from"./cli-1.0.15-qt9wsd1x.mjs";function S5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let G=await Z.apply(V,Y);X(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var M5=()=>{};function A5(Z,$){return Z.find((J)=>J.includes($))??null}async function h5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.15-pjgsjdye.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.15-j1fbvhv0.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function o$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=O2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.0.15-pjgsjdye.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.15-j1fbvhv0.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await z0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function F8(Z){return Z.startsWith("anthropic.")}function L8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function D8(Z){let $=L8(Z);for(let J of K8)if($.startsWith(`${J}.anthropic.`))return J;return}function e$(Z,$){let J=D8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(F8(Z))return`${$}.${Z}`;return Z}var C5,r$,K8;var f5=R(()=>{t0();n();g();a0();w8();C5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw N(Y),Y}});r$=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return N($),null}});K8=["us","eu","apac","global"]});var v2,_2,I2,y2,T2,S2,M2,C2,A2,s0,o0,r0,h2,f2,u2,G0,$J,u5;var g2=R(()=>{v2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},s0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},h2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},u2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},G0={haiku35:I2,haiku45:y2,sonnet35:_2,sonnet37:v2,sonnet40:T2,sonnet45:S2,sonnet46:f2,sonnet5:u2,opus40:M2,opus41:C2,opus45:A2,opus46:s0,opus47:o0,opus48:r0,fable5:h2},$J=Object.values(G0).map((Z)=>Z.firstParty),u5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,p2;var m2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},p2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var v0={};d2(v0,{prefetchCopilotModelCatalog:()=>l2,normalizeBareCopilotModelId:()=>n2,getEffectiveCopilotModels:()=>E8,getCopilotDisplayName:()=>v8,getCatalogCopilotMaxOutputTokens:()=>y8,getCatalogCopilotContextWindow:()=>I8,getCachedCopilotCatalog:()=>O8,fetchCopilotModelCatalog:()=>i5,copilotModelSupportsAnthropicMessages:()=>_8,_setCopilotCatalogForTesting:()=>T8});function E0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function l5(){if(!l)return!1;let Z=E0();return Z!==null&&x0===Z}function b8(){if(p5)return;p5=!0,m5(()=>{let Z=E0();if(Z&&x0!==Z)l2()})}function n2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function k8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function P8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:k8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function i5(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(c5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),U8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...n5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,G=[];for(let B of q.data){let H=P8(B);if(!H||V.has(H.model.id))continue;V.add(H.model.id),G.push(H)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function l2(){b8();let Z=E0();if(!Z)return;if(l&&x0!==Z)l=null,x0=null;if(Z2){if(c2===Z)return;Z2.finally(()=>l2());return}c2=Z,Z2=i5().then(($)=>{if($&&E0()===Z)l=$,x0=Z}).finally(()=>{Z2=null,c2=null})}function O8(){return l}function E8(){if(l5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!l5())return;let $=n2(Z);return l.find((J)=>J.model.id===$)}function v8(Z){let $=n2(Z);return $2($)?.model.name??e0[$]?.name}function _8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function I8(Z){return $2(Z)?.model.limit.context}function y8(Z){return $2(Z)?.model.limit.output}function T8(Z){l=Z,x0=Z?E0():null}var U8=5000,l=null,x0=null,Z2=null,c2=null,p5=!1;var _0=R(()=>{$0();N8();d5();i();Z0();m2()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function xJ(){return W()==="firstParty"}function S8(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(_0(),I0(v0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function BJ(Z){let $=L()?.transport??"anthropic";if(!M8.has($))return!1;if($==="github_copilot"&&S8(Z))return!1;return!0}function jJ(){return W()}function HJ(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var M8;var t=R(()=>{$0();M8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of a5)J[Q]=G0[Q][$];return J}async function C8(){let Z=Q2("bedrock"),$;try{$=await C5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of a5){let Y=G0[Q].firstParty;J[Q]=A5($,Y)||Z[Q]}return J}function t5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=u5[Q];if(X&&Y)J[X]=Y}return J}function Y2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function A8(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}s5()}function j(){let Z=y0();if(Z===null)return A8(),t5(Q2(W()));return t5(Z)}async function bJ(){if(y0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await s5()}var a5,s5;var X2=R(()=>{J0();a0();M5();B0();f5();g2();t();a5=Object.keys(G0);s5=S5(async()=>{if(y0()!==null)return;try{let Z=await C8();J2(Z)}catch(Z){N(Z)}})});function vJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=T0(),J=Y0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function _J(){if(o5!==null)return o5;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var o5=null;var r5=R(()=>{n();i();g()});function SJ(Z){return Z}function MJ(){return!1}function e5(){return null}function Z1(){return!1}var $1=R(()=>{r5()});async function pJ(){let $=K().oauthAccount?.accountUuid,J=Y0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){N(Y)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var i2=R(()=>{q2();S0();n();i();a0()});import{mkdirSync as f8,writeFileSync as u8}from"fs";function m8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{f8(V2,{recursive:!0,mode:448}),u8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function J1(Z,$){try{let Q=t2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!V1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function z1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let G=J1($,J);return Y(G),G}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let G=t2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),m8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=J1($,J);return Y(B),B}}function W2(){return z1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:g8,label:"OAuth token",getCached:Q1,setCached:Y1})}function a2(){return z1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:p8,label:"API key",getCached:X1,setCached:q1})}var V2="/home/claude/.claude/remote",g8,p8,aJ;var G1=R(()=>{J0();Z0();g();W1();h8();g8=`${V2}/.oauth_token`,p8=`${V2}/.api_key`,aJ=`${V2}/.session_ingress_token`});async function B1(){if(process.platform==="darwin"){let Z=a();if((await R0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var j1=R(()=>{x1();s2()});function $3(Z){return Z?.name==="CredentialsProviderError"}function H1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var w1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=X0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var K1=R(()=>{F1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",M0="context-1m-2025-08-07",D1="context-management-2025-06-27",N1="structured-outputs-2025-12-15",r2="web-search-2025-03-05",U1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",X3="effort-2025-11-24",q3="task-budgets-2026-03-13",k1="prompt-caching-scope-2026-01-05",V3="extended-cache-ttl-2025-04-11",W3="fast-mode-2026-02-01",P1="redact-thinking-2026-02-12",O1="thinking-token-count-2026-05-13",E1="token-efficient-tools-2026-03-28",z3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",e2,x3;var Z5=R(()=>{e2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),x3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function S1(){if(!A())return!1;return l8()===null}function n8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function l8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!y1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!O("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=n8(v.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function _3(){return"opus"+(f0()?"[1m]":"")}function I3(Z){if(!A())return!1;if(!S1())return!1;if(!M1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function M1(Z){if(!A())return!1;let $=Z??h0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function i8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!$5)z("Fast mode cooldown expired, re-enabling fast mode"),$5=!0,A1.emit();w0={status:"active"}}return w0}function S3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},$5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function M3(){w0={status:"active"}}function C3(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),J5.emit(!1)}function t8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function a8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h3(Z){let $=t8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!a8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));h1.emit($)}function s8(){return i8().status==="cooldown"}function f3(Z,$){let J=A()&&S1()&&!!$&&M1(Z);if(J&&s8())return"cooldown";if(J)return"on";return"off"}async function o8(Z){let $=`${b().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":j0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function g3(){if(!A())return;if(v.status!=="pending")return;v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p3(){if(T1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=Y0();if(!(w()?.accessToken&&q0())&&!Z){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-v1<r8){z("Skipping fast mode prefetch, fetched recently");return}v1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return o8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await Q5(B),X=await Q();else throw V}else throw V}let q=v.status!=="pending"?v.status==="enabled":K().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:X.enabled})),J5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){v=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=Y(),C0}var v3="Opus 4.7",w0,$5=!1,C1,A1,y3,T3,h1,A3,v,J5,u3,r8=30000,v1=0,C0=null;var f1=R(()=>{q2();S0();I1();J0();B2();n();c8();i();Z0();g();F0();t();d8();B0();F1();w0={status:"active"},C1=X0(),A1=X0(),y3=C1.subscribe,T3=A1.subscribe;h1=X0(),A3=h1.subscribe;v={status:"pending"},J5=X0(),u3=J5.subscribe});function XZ(Z){for(let $ of YZ)if($.pattern.test(Z))return $.cost;return}function Y5(Z){if(A()&&Z)return ZZ;return L0}function qZ(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function VZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let Y=$.speed==="fast";return Y5(Y)}let Q=g1[J];if(!Q){let Y=XZ(Z);if(Y)return Y;return WZ(Z,J),g1[U(h0())]??QZ}return Q}function WZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),m1()}function zZ(Z,$){let J=VZ(Z,$);return qZ(J,$)}function t3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return zZ(Z,J)}function p1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function c1(Z){return`${p1(Z.inputTokens)}/${p1(Z.outputTokens)} per Mtok`}var K0,u1,L0,e8,ZZ,$Z,JZ,QZ,YZ,g1;var d1=R(()=>{B2();J0();f1();g2();F0();K0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},u1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},e8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},ZZ={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},$Z={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},JZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},QZ=L0,YZ=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];g1={[D(I2.firstParty)]:$Z,[D(y2.firstParty)]:JZ,[D(_2.firstParty)]:K0,[D(v2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(S2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(u2.firstParty)]:K0,[D(M2.firstParty)]:u1,[D(C2.firstParty)]:u1,[D(A2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(h2.firstParty)]:e8}});function m(Z){return GZ.includes(Z)}function D0(Z){return xZ.includes(Z)}var GZ,xZ;var X5=R(()=>{GZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];xZ=["sonnet","opus","haiku"]});function BZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function jZ(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function i1(Z){let $=S()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!D0(Y)||!l1(Y,X))return!0}for(let q of X)if(D0(q)&&!l1(q,X)&&BZ(Y,q))return!0;if(m(Y)){let q=T(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===Y)return!0}for(let q of X)if(!D0(q)&&!m(q)){if(jZ(Y,q))return!0}return!1}var t1=R(()=>{B0();X5();F0();X2()});function H2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function U0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function L9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function D9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function q5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=S()||{},Q=H2(J.model),X=U0()||Q||void 0,q=e1(),V=H2(q.activeModelForProject);if(V){let G=$4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:X}else Z=X}if(Z&&!i1(Z))return;return Z}function N9(){let Z=q5();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function FZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return j().opus46;return j().opus48}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return j().sonnet45;return j().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=U0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function U9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(q5()==="opusplan"&&$==="plan"&&!Q)return N0();if(q5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=S()||{};return H2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(R2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return u0()}function Y4(){return T(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function U(Z){return D(Y2(Z))}function KZ(Z=!1){if(R2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?a1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?a1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function b9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return q4(T(Z))}function a1(Z){if(W()!=="firstParty")return"";let $=c1(Y5(Z));return` ·${Z?` (${o1})`:""} ${$}`}function f0(){if(V0()||z5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function k9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return r1(Z);return q4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(p2[Z])return p2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(_0(),I0(v0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function q4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function P9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=H2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=s(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return Q4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return FZ();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return j().fable5;if(W()==="firstParty"&&DZ(Y)&&NZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function O9(Z,$){if(s(Z)||!s($))return Z;if(V5(T(Z)))return Z+"[1m]";return Z}function DZ(Z){return LZ.includes(Z)}function NZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E9(Z){if(Z===null){if(k())return`Default (${KZ()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function v9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=U(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function _9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function I9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var LZ;var F0=R(()=>{J0();$0();i();J4();n();W5();g();wZ();X2();d1();B0();t();HZ();t1();X5();RZ();m2();LZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function G5(Z){return}async function T9(){}var V4=()=>{};function PZ(Z,$={}){if($.isPro??(kZ.test(Z)||W4.has(Z)))return!1;if(UZ.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(bZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function M9(){return F2.filter((Z)=>PZ(Z.id,{isPro:Z.isPro}))}var F2,UZ,W4,bZ,kZ,z4,G4;var x4=R(()=>{F2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],UZ=new Set(F2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),bZ=/^gpt-(\d+\.\d+)/,kZ=/-pro$/;z4=Object.fromEntries(F2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(F2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};d2(K4,{prefetchOpenAICompatibleModels:()=>CZ,getDiscoveredContextWindow:()=>OZ,discoverOpenAICompatibleModelOptions:()=>F4});function OZ(Z){return R4.get(Z)}function EZ(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function vZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function _Z(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(vZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function IZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function yZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function TZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function SZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:H4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)R4.set(V,B);let H=B?` · ${TZ(B)}`:"";X.push({value:V,label:G,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let G=String(q.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function MZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=EZ(),$=_Z(Z),J=await SZ(IZ(Z),$);if(J.length>0)return J;let Q=yZ(Z);if(Q)return MZ(Q,$);return[]}function CZ(){if(g0)return g0;return g0=(async()=>{if(!j4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{g0=null}})(),g0}var H4=5000,R4,g0=null;var L4=R(()=>{q2();$0();d5();Z0();t();J4();R4=new Map});function N4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function U4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),I0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=N4(AZ,fZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(_0(),I0(v0));return J(Z)}catch{return}}function b4(Z){let $=N4(hZ,uZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(_0(),I0(v0));return J(Z)}catch{return}}var AZ,hZ,fZ,uZ;var k4=R(()=>{$0();x4();AZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...z4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},hZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...G4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},fZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),uZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function P4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function s(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function V5(Z){if(V0())return!1;let $=U(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function $Q(Z,$){if(s(Z))return 1e6;if(P4()){let Q=U4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),gZ}let J=G5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>x5&&V0())return x5;return J.max_input_tokens}if(!V0()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(M0)&&V5(Z))return 1e6;if(cZ(Z))return 1e6;return x5}function cZ(Z){if(V0())return!1;if(s(Z))return!1;if(!U(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function JQ(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function QQ(Z){let $,J;if(P4()){let X=b4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=U(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=pZ,J=mZ;let Y=G5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var x5=200000,gZ,r9=20000,pZ=32000,mZ=64000,e9=8000,ZQ=64000;var W5=R(()=>{Z5();$0();i();g();F0();V4();k4();gZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var dZ,O4;var E4=R(()=>{t0();t();dZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],O4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of dZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function nZ(Z){let $=[],J=[];for(let Q of Z)if(T4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function NQ(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=nZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${T4.join(", ")}`);return $.length>0?$:void 0}function v4(Z){let $=O4(Z,"interleaved_thinking");if($!==void 0)return $;let J=U(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function lZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function iZ(Z){let $=U(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function tZ(Z){let $=U(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function UQ(Z){let $=U(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function bQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return b1;return U1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function PQ(Z,$){let J=[...S4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=I4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){B5.cache?.clear?.(),S4.cache?.clear?.(),aZ.cache?.clear?.()}var T4,B5,S4,aZ;var C4=R(()=>{t0();I1();J0();Z5();S0();n();W5();g();F0();E4();t();B0();T4=[M0];B5=y((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(G2);if(k())$.push(j0);if(s(Z))$.push(M0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&v4(Z))$.push(L1);if(Y&&v4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(P1),$.push(O1);let X=iZ(Z);if(_4()&&X)$.push(D1);let q=y4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(Y&&tZ(Z)&&q)$.push(N1);if(Y&&V)$.push(E1);if(Q==="vertex"&&lZ(Z))$.push(r2);if(Q==="foundry")$.push(r2);if(Y)$.push(k1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),S4=y((Z)=>{let $=B5(Z);if(W()==="bedrock")return $.filter((J)=>!e2.has(J));return $}),aZ=y((Z)=>{return B5(Z).filter((J)=>e2.has(J))})});import{execFile as sZ}from"child_process";function A4(Z){return new Promise(($)=>{sZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:oZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function IQ(){if(process.platform!=="darwin"||K2||u())return;let Z=A4(a(h4)),$=A4(a());K2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)f4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function yQ(){if(K2)await K2}function u4(){return j5}function H5(){j5=null}var oZ=1e4,j5=null,K2=null;var g4=R(()=>{g();s2()});function R5(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,G,B)=>{V?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var p4=()=>{};function MQ(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var p$={};d2(p$,{validateForceLoginOrg:()=>g$,saveOAuthTokensIfNeeded:()=>V8,saveApiKey:()=>I5,removeApiKey:()=>E$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>X8,refreshAwsAuth:()=>Q8,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>b$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>k$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>B$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>S$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>z5,isOverageProvisioningAllowed:()=>y$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>x8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>v5,isEnterpriseSubscriber:()=>M$,isCustomApiKeyApproved:()=>O$,isConsumerSubscriber:()=>f$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>O5,isAwsAuthRefreshFromProjectSettings:()=>k5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>I$,hasProfileScope:()=>q0,hasOpusAccess:()=>T$,hasAnthropicApiKeyAuth:()=>W$,handleOAuth401Error:()=>Q5,getSubscriptionType:()=>_,getSubscriptionName:()=>z8,getRateLimitTier:()=>W8,getOtelHeadersFromHelper:()=>A$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>z$,getApiKeyFromConfigOrMacOSKeychain:()=>P2,getApiKeyFromApiKeyHelperCached:()=>F5,getApiKeyFromApiKeyHelper:()=>J8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>Y0,getAccountInformation:()=>u$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>U$,clearAwsCredentialsCache:()=>F$,clearApiKeyHelperCache:()=>x$,checkGcpCredentialsValid:()=>Y8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>$8});import{exec as e4}from"child_process";import{mkdir as Y$,stat as X$}from"fs/promises";import{join as q$}from"path";function N2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(S()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!N2()||X&&!N2())}function T0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!N2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!N2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Y0(){let{key:Z}=n0();return Z}function W$(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:F5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=t4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!b2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!b2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:F5(),source:"apiKeyHelper"}}let X=P2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(S()||{}).apiKeyHelper}function Z8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(S()||{}).awsAuthRefresh}function k5(){let Z=b5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function P5(){return(S()||{}).awsCredentialExport}function O5(){let Z=P5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function $8(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return V$}function z$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function J8(Z){if(!o())return null;let $=$8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:n4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:n4(Z,!0,k0),startedAt:Date.now()},c.promise}async function n4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Z8()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await R0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function F5(){return I?.value??null}function x$(){k0++,I=null,c=null}function B$(Z){if(Z8()&&!d())return;J8(Z)}async function H$(){let Z=b5();if(!Z)return!1;if(k5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Q8(Z)}}function Q8(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:R$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function w$(){let Z=P5();if(!Z)return null;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await o2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await R0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=D5($.stdout.trim());if(!H1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function F$(){z0.cache.clear()}function E5(){return(S()||{}).gcpAuthRefresh}function v5(){let Z=E5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Y8(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=R5(K$).then(()=>{throw new B8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function D$(){let Z=E5();if(!Z)return!1;if(v5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Y8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return X8(Z)}function X8(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=e4(Z,{timeout:N$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function U$(){_5.cache.clear()}function b$(){if(!E5())return;if(v5()){if(!d()&&!f())return}_5()}function k$(){let Z=b5(),$=P5();if(!Z&&!$)return;if(k5()||O5()){if(!d()&&!f())return}z0(),j()}function P$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function I5(Z){if(!P$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q8();let $=!1;if(process.platform==="darwin")try{let Q=a(),Y=L2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
+ `;await R0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),P2.cache.clear?.(),H5()}function O$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function E$(){await q8(),C((Z)=>({...Z,primaryApiKey:void 0})),P2.cache.clear?.(),H5()}async function q8(){try{await B1()}catch(Z){N(Z)}}function V8(Z){if(!P0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=k2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),X}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function y5(){w.cache?.clear?.(),b0()}async function v$(){try{let{mtimeMs:Z}=await X$(q$(L5(),".credentials.json"));if(Z!==l4)l4=Z,y5()}catch{w.cache?.clear?.()}}function Q5(Z){let $=w5.get(Z);if($)return $;let J=_$(Z).finally(()=>{w5.delete(Z)});return w5.set(Z,J),J}async function _$(Z){y5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await k2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=K5(Z,$).finally(()=>{p0=null}),p0}return K5(Z,$)}async function K5(Z,$){await v$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),b0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=L5();await Y$(X,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await s4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),K5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(V),x("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),b0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await o4(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return V8(G),w.cache?.clear?.(),b0(),!0}catch(V){N(V),w.cache?.clear?.(),b0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function k(){if(!O0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(a4)??!1}function I$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function y$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function T$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(Z1())return e5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return _()==="max"}function S$(){return _()==="team"}function w2(){return _()==="team"&&W8()==="default_claude_max_5x"}function M$(){return _()==="enterprise"}function z5(){return _()==="pro"}function W8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function z8(){switch(_()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function b2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(S()||{}).otelHeadersHelper}function x8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function A$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||C$.toString());if(D2&&Date.now()-i4<$)return D2;if(x8()){if(!d())return{}}try{let J=N5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=D5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return D2=Q,i4=Date.now(),D2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function h$(Z){return Z==="max"||Z==="pro"}function f$(){let Z=_();return k()&&Z!==null&&h$(Z)}function u$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=z8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function g$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await H0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${X}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var V$=300000,I=null,c=null,k0=0,j$=3600000,R$=180000,z0,K$=5000,L$=3600000,N$=180000,_5,P2,w,l4=0,w5,p0=null,D2=null,i4=0,C$=1740000,B8;var n=R(()=>{eZ();x1();t0();S0();B2();X2();t();J0();$0();$1();r4();i2();G1();j1();w1();K1();C4();i();Z0();g();W1();Z$();J$();a0();$$();Q$();g4();s2();B0();p4();rZ();d4();z0=U5(async()=>{let Z=await H$(),$=await w$();if(Z||$)await R1();return $},j$);_5=U5(async()=>{return await D$()},L$);P2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();try{let Q=N5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=k2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});w5=new Map;B8=class B8 extends Error{}});function P0(Z){return Boolean(Z?.includes(T5))}function m$(Z){return Z?.split(" ").filter(Boolean)??[]}function k7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:G}){let B=Y?b().CLAUDE_AI_AUTHORIZE_URL:b().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",b().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?b().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=X?[T5]:R8;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(G)H.searchParams.append("login_method",G);return H.toString()}async function P7(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await P.post(b().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("tengu_oauth_token_exchange_success",{}),V.data}async function o4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:H8).join(" ")};try{let Q=await P.post(b().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,G=Date.now()+V*1000,B=m$(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=K(),W0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await c$(X);if(E&&H.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function O7(Z){let $=await P.get(b().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function E7(Z){try{let $=await P.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await I5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function c$(Z){let $=await H0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function v7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await H0(J))?.organization?.uuid;if(!Y)return null;return Y}async function _7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)j8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!q0())return!1;let X=w();if(X?.accessToken){let q=await H0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return j8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function j8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var r4=R(()=>{q2();B2();S0();n();i();Z0();i2()});
16
+ export{IQ as u4,yQ as v4,g4 as w4,S5 as x4,M5 as y4,o$ as z4,r$ as A4,F8 as B4,D8 as C4,e$ as D4,f5 as E4,s0 as F4,o0 as G4,G0 as H4,g2 as I4,l2 as J4,E8 as K4,_0 as L4,W as M4,xJ as N4,S8 as O4,BJ as P4,jJ as Q4,HJ as R4,t as S4,j as T4,bJ as U4,X2 as V4,vJ as W4,_J as X4,r5 as Y4,SJ as Z4,MJ as _4,$1 as $4,pJ as a5,H0 as b5,i2 as c5,P0 as d5,m$ as e5,k7 as f5,P7 as g5,o4 as h5,O7 as i5,E7 as j5,m0 as k5,c$ as l5,v7 as m5,_7 as n5,j8 as o5,r4 as p5,aJ as q5,m8 as r5,J1 as s5,G1 as t5,z2 as u5,j1 as v5,$3 as w5,w1 as x5,M as y5,K1 as z5,M0 as A5,D1 as B5,N1 as C5,X3 as D5,q3 as E5,k1 as F5,V3 as G5,W3 as H5,P1 as I5,z3 as J5,G3 as K5,x3 as L5,Z5 as M5,A as N5,S1 as O5,l8 as P5,v3 as Q5,_3 as R5,I3 as S5,M1 as T5,y3 as U5,T3 as V5,i8 as W5,S3 as X5,M3 as Y5,C3 as Z5,A3 as _5,h3 as $5,s8 as a6,f3 as b6,u3 as c6,g3 as d6,p3 as e6,f1 as f6,K0 as g6,e8 as h6,$Z as i6,JZ as j6,Y5 as k6,zZ as l6,t3 as m6,c1 as n6,d1 as o6,GZ as p6,X5 as q6,i1 as r6,t1 as s6,L9 as t6,D9 as u6,q5 as v6,N9 as w6,FZ as x6,N0 as y6,u0 as z6,Q4 as A6,U9 as B6,h0 as C6,Y4 as D6,D as E6,U as F6,KZ as G6,b9 as H6,a1 as I6,f0 as J6,k9 as K6,X4 as L6,q4 as M6,P9 as N6,T as O6,O9 as P6,NZ as Q6,E9 as R6,v9 as S6,_9 as T6,I9 as U6,F0 as V6,T9 as W6,V4 as X6,M9 as Y6,x4 as Z6,F4 as _6,CZ as $6,L4 as a7,r9 as b7,e9 as c7,ZQ as d7,V0 as e7,s as f7,$Q as g7,cZ as h7,JQ as i7,QQ as j7,W5 as k7,O4 as l7,E4 as m7,NQ as n7,tZ as o7,UQ as p7,bQ as q7,_4 as r7,kQ as s7,S4 as t7,aZ as u7,PQ as v7,M4 as w7,C4 as x7,R5 as y7,p4 as z7,MQ as A7,c4 as B7,d4 as C7,O0 as D7,T0 as E7,Y0 as F7,W$ as G7,n0 as H7,o as I7,k5 as J7,O5 as K7,$8 as L7,z$ as M7,J8 as N7,F5 as O7,x$ as P7,B$ as Q7,Q8 as R7,z0 as S7,F$ as T7,v5 as U7,Y8 as V7,X8 as W7,_5 as X7,U$ as Y7,b$ as Z7,k$ as _7,P2 as $7,I5 as a8,O$ as b8,E$ as c8,V8 as d8,w as e8,y5 as f8,Q5 as g8,c0 as h8,l0 as i8,k as j8,q0 as k8,I$ as l8,U2 as m8,y$ as n8,T$ as o8,_ as p8,R2 as q8,S$ as r8,w2 as s8,M$ as t8,z5 as u8,W8 as v8,z8 as w8,b2 as x8,x8 as y8,A$ as z8,f$ as A8,u$ as B8,g$ as C8,p$ as D8,n as E8};
@@ -0,0 +1,2 @@
1
+ import{s4 as M,t4 as E}from"./cli-1.0.15-0cv8mhk9.mjs";import{Yea as _,bga as S,efa as F,ega as p,pfa as l,sfa as L,tfa as c}from"./cli-1.0.15-x6bgcj6j.mjs";import{Nka as Y,Vka as m}from"./cli-1.0.15-tf9z0qgg.mjs";import{hsa as B}from"./cli-1.0.15-qt9wsd1x.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
+ export{R as o2,r as p2,o as q2,e as r2,I as s2,O as t2,U as u2,VJ as v2,a as w2,WJ as x2,yJ as y2,zJ as z2,n as A2,jJ as B2,s as C2};
@@ -0,0 +1,2 @@
1
+ import{hsa as j}from"./cli-1.0.15-qt9wsd1x.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
2
+ export{x as h3,y as i3,z as j3,A as k3,B as l3,C as m3,D as n3,k as o3};
@@ -0,0 +1,21 @@
1
+ import{$J as X,PR as F,Ur as O,Vr as Z,ik as L,lE as V,mE as $}from"./cli-1.0.15-bb8j8b0v.mjs";import{hsa as Y}from"./cli-1.0.15-qt9wsd1x.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
+
3
+ IMPORTANT CONTEXT:
4
+ - You are a separate, lightweight agent spawned to answer this one question
5
+ - The main agent is NOT interrupted - it continues working independently in the background
6
+ - You share the conversation context but are a completely separate instance
7
+ - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
+
9
+ CRITICAL CONSTRAINTS:
10
+ - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
+ - This is a one-off response - there will be no follow-up turns
12
+ - You can ONLY provide information based on what you already know from the conversation context
13
+ - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
+ - If you don't know the answer, say so - do not offer to look it up or investigate
15
+
16
+ Simply answer the question with the information you have.</system-reminder>
17
+
18
+ ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
+
20
+ `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
+ export{W as Nh,b as Oh,C as Ph};
@@ -0,0 +1,6 @@
1
+ import{eka as ZX,hka as y8}from"./cli-1.0.15-2cy827x7.mjs";import{Fka as R8,zka as r}from"./cli-1.0.15-vpx3dnt7.mjs";import{Ika as $X,Lka as NJ,Vka as j8}from"./cli-1.0.15-tf9z0qgg.mjs";import{Ala as w,Bla as kQ,Ela as yJ,Fla as OX,Gla as h,Hla as vJ,Ila as tJ,Jla as hX,Kla as hJ,Lla as wX,Mla as y,Nla as OJ,Ola as gQ,Pla as m6,Sla as O,Tla as GJ,Wka as dQ,Xka as P6,ala as qJ,bla as oX,ela as eJ,fla as fX,gla as fQ,hla as T6,ila as $Q,jla as cX,mla as JQ,nla as pX,ola as g,pla as oJ,qla as n,rla as LQ,ula as pQ,vla as v6,yla as l,yqa as sQ,zla as wQ,zma as XX}from"./cli-1.0.15-yxt9f7qb.mjs";import{Aqa as CX,Fqa as cJ,Gqa as TX,Hqa as HJ,Iqa as J6,Lqa as L,Mqa as XJ,Rqa as LJ,Sqa as zX,Xqa as V,Yqa as xJ,zqa as SJ}from"./cli-1.0.15-qdf1s8sn.mjs";import{gsa as uJ,hsa as U,jsa as N,ksa as W}from"./cli-1.0.15-qt9wsd1x.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
2
+ `)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
3
+ `);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
4
+ `))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
5
+ `;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
6
+ export{zJ as $ia,BJ as aja,IJ as bja,r8 as cja,CJ as dja,e as eja,_J as fja,m as gja,JJ as hja,j as ija,QJ as jja,R as kja,k as lja,_ as mja,d as nja,$J as oja,lJ as pja,iJ as qja,rJ as rja,b as sja,ZJ as tja,ZQ as uja,YQ as vja,BQ as wja,IQ as xja,RQ as yja,AQ as zja,nQ as Aja,lQ as Bja,E as Cja,KJ as Dja,I8 as Eja,C8 as Fja,F8 as Gja,V8 as Hja,UJ as Ija,JX as Jja,H1 as Kja,G1 as Lja,s as Mja,K1 as Nja,U1 as Oja,N1 as Pja,QX as Qja,g8 as Rja,T as Sja,L1 as Tja,b8 as Uja,GX as Vja,KX as Wja,_1 as Xja,S1 as Yja,O1 as Zja,D8 as _ja,UX as $ja,w1 as aka,aQ as bka};
@@ -0,0 +1,2 @@
1
+ import{hsa as o}from"./cli-1.0.15-qt9wsd1x.mjs";var n=()=>null,e;var t=o(()=>{e=n});
2
+ export{e as Hi,t as Ii};
@@ -0,0 +1,2 @@
1
+ import{Aqa as YJ,Bqa as v,Cqa as P1,Dqa as Y5,Eqa as w8,Fqa as D,Gqa as y,Hqa as m,Iqa as kQ,Jqa as L,Kqa as a,Lqa as n5,Mqa as e8,Nqa as R5,Oqa as _8,Pqa as E,Qqa as h8,Rqa as P,Sqa as x1,Tqa as d,Uqa as xQ,Vqa as r,Wqa as UQ,Xqa as T5,Yqa as UY,zqa as _Q}from"./cli-1.0.15-qdf1s8sn.mjs";import{gsa as aQ,hsa as X}from"./cli-1.0.15-qt9wsd1x.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var DQ;var qQ=X(()=>{DQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!DQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();qQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=m?m.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var mQ;var SQ=X(()=>{mQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{SQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),mQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();S();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();S();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,mJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?D.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,mJ=yJ||cQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var D5;var q5=X(()=>{_8();J1();D5=k8});function E8(Q){return D5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();q5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var S1;var O5=X(()=>{yQ();bQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var m8,U1;var L5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var f5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var P5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,m5;var S5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;m5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return m5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{S5();S();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();m1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=m?m.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var q1;var b1=X(()=>{M();D1();s5();X$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();D1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var D$;var q$=X(()=>{D$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?D$(I(Q)):O$(Q)}var M$;var L$=X(()=>{q$();V$();D1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as mY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=mY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else s1=!0}function l9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function r9(){return $.totalLinesRemoved}function o9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-a1}function QH(){return t1}function $H(Q){a1=A$(),t1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function rH(){return $.isInteractive}function oH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,E$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function r4(){return $.sessionTrustAccepted}function o4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function r3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function o3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
+ export{p as Wka,I1 as Xka,FQ as Yka,RQ as Zka,OQ as _ka,VQ as $ka,_1 as ala,MQ as bla,PQ as cla,IQ as dla,dQ as ela,gQ as fla,w as gla,M as hla,pQ as ila,yQ as jla,mQ as kla,SQ as lla,AQ as mla,jQ as nla,nQ as ola,bQ as pla,O as qla,S as rla,t as sla,v1 as tla,A as ula,d1 as vla,$1 as wla,g1 as xla,$5 as yla,J5 as zla,X1 as Ala,X5 as Bla,H1 as Cla,y1 as Dla,W5 as Ela,x5 as Fla,U5 as Gla,K5 as Hla,G5 as Ila,B5 as Jla,D5 as Kla,q5 as Lla,W1 as Mla,m1 as Nla,S1 as Ola,O5 as Pla,G1 as Qla,P5 as Rla,A1 as Sla,d5 as Tla,w1 as Ula,j1 as Vla,h as Wla,R1 as Xla,a5 as Yla,t5 as Zla,Z$ as _la,X$ as $la,q1 as ama,b1 as bma,I as cma,u as dma,O1 as ema,i1 as fma,F$ as gma,R$ as hma,f$ as ima,P$ as jma,nX as kma,bX as lma,iX as mma,uX as nma,lX as oma,TX as pma,E$ as qma,cX as rma,rX as sma,oX as tma,v$ as uma,d$ as vma,g$ as wma,Z9 as xma,X9 as yma,H9 as zma,W9 as Ama,x9 as Bma,U9 as Cma,K9 as Dma,G9 as Ema,B9 as Fma,N9 as Gma,w9 as Hma,z9 as Ima,F9 as Jma,R9 as Kma,D9 as Lma,q9 as Mma,O9 as Nma,V9 as Oma,M9 as Pma,L9 as Qma,f9 as Rma,P9 as Sma,I9 as Tma,C9 as Uma,_9 as Vma,k9 as Wma,E9 as Xma,v9 as Yma,d9 as Zma,g9 as _ma,p9 as $ma,y9 as ana,m9 as bna,S9 as cna,A9 as dna,j9 as ena,h9 as fna,n9 as gna,b9 as hna,i9 as ina,u9 as jna,l9 as kna,T9 as lna,c9 as mna,r9 as nna,o9 as ona,A$ as pna,s9 as qna,a9 as rna,t9 as sna,e9 as tna,QH as una,$H as vna,JH as wna,YH as xna,ZH as yna,XH as zna,HH as Ana,WH as Bna,xH as Cna,UH as Dna,KH as Ena,GH as Fna,BH as Gna,NH as Hna,wH as Ina,zH as Jna,FH as Kna,RH as Lna,DH as Mna,qH as Nna,OH as Ona,VH as Pna,MH as Qna,LH as Rna,fH as Sna,PH as Tna,IH as Una,CH as Vna,_H as Wna,kH as Xna,EH as Yna,vH as Zna,dH as _na,gH as $na,pH as aoa,yH as boa,mH as coa,SH as doa,AH as eoa,jH as foa,hH as goa,nH as hoa,bH as ioa,iH as joa,uH as koa,lH as loa,TH as moa,cH as noa,SY as ooa,rH as poa,oH as qoa,sH as roa,aH as soa,tH as toa,eH as uoa,Q4 as voa,$4 as woa,J4 as xoa,Y4 as yoa,Z4 as zoa,X4 as Aoa,H4 as Boa,W4 as Coa,x4 as Doa,U4 as Eoa,K4 as Foa,G4 as Goa,B4 as Hoa,N4 as Ioa,w4 as Joa,z4 as Koa,F4 as Loa,R4 as Moa,D4 as Noa,q4 as Ooa,O4 as Poa,V4 as Qoa,M4 as Roa,L4 as Soa,f4 as Toa,P4 as Uoa,I4 as Voa,C4 as Woa,_4 as Xoa,k4 as Yoa,E4 as Zoa,v4 as _oa,d4 as $oa,g4 as apa,p4 as bpa,y4 as cpa,m4 as dpa,S4 as epa,A4 as fpa,j4 as gpa,h4 as hpa,n4 as ipa,b4 as jpa,i4 as kpa,u4 as lpa,l4 as mpa,T4 as npa,c4 as opa,r4 as ppa,o4 as qpa,s4 as rpa,a4 as spa,t4 as tpa,e4 as upa,Q3 as vpa,$3 as wpa,J3 as xpa,Y3 as ypa,Z3 as zpa,X3 as Apa,H3 as Bpa,W3 as Cpa,x3 as Dpa,U3 as Epa,K3 as Fpa,G3 as Gpa,B3 as Hpa,N3 as Ipa,w3 as Jpa,z3 as Kpa,F3 as Lpa,R3 as Mpa,D3 as Npa,q3 as Opa,O3 as Ppa,V3 as Qpa,M3 as Rpa,L3 as Spa,f3 as Tpa,P3 as Upa,I3 as Vpa,C3 as Wpa,_3 as Xpa,k3 as Ypa,E3 as Zpa,v3 as _pa,d3 as $pa,g3 as aqa,p3 as bqa,y3 as cqa,m3 as dqa,S3 as eqa,A3 as fqa,j3 as gqa,h3 as hqa,n3 as iqa,b3 as jqa,i3 as kqa,u3 as lqa,l3 as mqa,T3 as nqa,c3 as oqa,r3 as pqa,o3 as qqa,s3 as rqa,jY as sqa,a3 as tqa,t3 as uqa,e3 as vqa,QW as wqa,$W as xqa,hY as yqa};
@@ -0,0 +1,9 @@
1
+ import{$ra as su,_ra as V_,bsa as K_,csa as f_}from"./cli-1.0.15-2c6gnna0.mjs";import{fsa as H,isa as $_}from"./cli-1.0.15-qt9wsd1x.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2
+ versions published after the first week of January 2027
3
+ will require node >=${E}. You are running node ${_}.
4
+
5
+ To continue receiving updates to AWS services, bug fixes,
6
+ and security updates please upgrade to node >=${E}.
7
+
8
+ More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
9
+ export{W_ as Tra,D_ as Ura,yu as Vra,ou as Wra};
@@ -0,0 +1,2 @@
1
+ import{Uh as g,Vh as Uf}from"./cli-1.0.15-mf4fkng2.mjs";import{ai as A,ci as Kf}from"./cli-1.0.15-e4z0e2ej.mjs";import{Al as Bf,Am as L,Bl as Gf,Fm as Vf,Hl as y,JE as v,Jj as W,NS as S,QE as Df,QR as l,Wj as w,Ws as h,Xj as zf,Xs as Yf,_S as p,am as Jf,fT as k,gv as m,hC as M,hv as Zf,iD as c,ks as E,lD as bf,ls as P,mm as N,ms as Xf,nv as C,qS as Ff,rT as Hf,rv as T,sT as d,sm as Qf,tE as u,uE as jf,vv as _f,wC as I,xC as $f}from"./cli-1.0.15-bb8j8b0v.mjs";import{qga as R,yga as ff}from"./cli-1.0.15-x6bgcj6j.mjs";import{Xia as O,_ia as e}from"./cli-1.0.15-8kr6hy0g.mjs";import{Ama as q,Ana as F,Fma as x,npa as H,yqa as s,zma as U}from"./cli-1.0.15-yxt9f7qb.mjs";import{esa as K,hsa as t}from"./cli-1.0.15-qt9wsd1x.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:u(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await c("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
+ export{lf as Sh,xf as Th};
@@ -0,0 +1,2 @@
1
+ import{DX as YJ,HX as DJ,LX as vJ,MX as c,NX as SJ,VX as ZJ}from"./cli-1.0.15-8pv1ndbb.mjs";import{h3 as CJ,o3 as TJ}from"./cli-1.0.15-y8h6wfxv.mjs";import{Qda as S,Sda as yJ,Y_ as xJ,baa as jJ,qga as p,u$ as NJ,x_ as OJ,y_ as FJ,yga as wJ}from"./cli-1.0.15-x6bgcj6j.mjs";import{bia as R,dia as VJ,eia as w,fia as XJ}from"./cli-1.0.15-g0xatz0p.mjs";import{Dja as v,Eja as y,Ija as JJ,_ja as G,bka as QJ}from"./cli-1.0.15-yrdyyvx7.mjs";import{Fka as e,yka as W,zka as C}from"./cli-1.0.15-vpx3dnt7.mjs";import{Ika as s,Jka as I,Lka as t,Vka as a}from"./cli-1.0.15-tf9z0qgg.mjs";import{Ipa as L,ooa as i,vma as r,wma as MJ,yqa as m,zma as d}from"./cli-1.0.15-yxt9f7qb.mjs";import{hsa as T,isa as BJ}from"./cli-1.0.15-qt9wsd1x.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-1.0.15-12m16hd9.mjs"),import("./detection-1.0.15-q1b1fd1n.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
2
+ export{HQ as eV,UQ as fV,BQ as gV,fJ as hV,OQ as iV,xQ as jV,CQ as kV,_J as lV,E as mV,bJ as nV,vQ as oV,O as pV,j as qV,SQ as rV,h as sV,AQ as tV,zQ as uV,MQ as vV,HJ as wV,n as xV,UJ as yV,oQ as zV,zJ as AV,nQ as BV,u as CV,F as DV,H as EV,kJ as FV,rJ as GV,kQ as HV,rQ as IV,dQ as JV,iQ as KV,mQ as LV,dJ as MV,sQ as NV,tQ as OV,aQ as PV,eQ as QV,JV as RV,QV as SV,sJ as TV,tJ as UV};