@claudiolabs/claudio 0.1.11 → 0.1.12

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 (805) hide show
  1. package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
  2. package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
  7. package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
  11. package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
  12. package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
  13. package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
  14. package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
  20. package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
  30. package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
  31. package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
  32. package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
  33. package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
  34. package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
  35. package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
  36. package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
  37. package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
  38. package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
  39. package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
  40. package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
  41. package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
  42. package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
  43. package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
  44. package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
  45. package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
  46. package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
  47. package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
  48. package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
  49. package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
  50. package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
  51. package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
  52. package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
  53. package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
  54. package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
  55. package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
  56. package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
  57. package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
  58. package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
  59. package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
  60. package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
  61. package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
  62. package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
  63. package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
  64. package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
  65. package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
  66. package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
  67. package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
  68. package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
  69. package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
  70. package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
  71. package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
  72. package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
  73. package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
  74. package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
  75. package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
  76. package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
  77. package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
  78. package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
  79. package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
  80. package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
  81. package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
  82. package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
  83. package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
  84. package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
  85. package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
  86. package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
  87. package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
  88. package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
  89. package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
  90. package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
  91. package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
  92. package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
  93. package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
  94. package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
  95. package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
  96. package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
  97. package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
  98. package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
  99. package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
  100. package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
  101. package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
  102. package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
  103. package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
  104. package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
  105. package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
  106. package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
  107. package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
  108. package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
  109. package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
  110. package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
  111. package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
  112. package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
  113. package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
  114. package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
  115. package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
  116. package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
  117. package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
  118. package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
  119. package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
  120. package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
  121. package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
  122. package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
  123. package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
  124. package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
  125. package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
  126. package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
  127. package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
  128. package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
  129. package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
  130. package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
  131. package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
  132. package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
  133. package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
  134. package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
  135. package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
  136. package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
  137. package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
  138. package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
  139. package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
  140. package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
  141. package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
  142. package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
  143. package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
  144. package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
  145. package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
  146. package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
  147. package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
  148. package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
  149. package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
  150. package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
  151. package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
  152. package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
  153. package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
  154. package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
  155. package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
  156. package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
  157. package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
  158. package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
  159. package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
  160. package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
  161. package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
  162. package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
  163. package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
  164. package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
  165. package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
  166. package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
  167. package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
  168. package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
  169. package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
  170. package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
  171. package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
  172. package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
  173. package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
  174. package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
  175. package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
  176. package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
  177. package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
  178. package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
  179. package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
  180. package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
  181. package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
  182. package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
  183. package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
  184. package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
  185. package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
  186. package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
  187. package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
  188. package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
  189. package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
  190. package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
  191. package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
  192. package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
  193. package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
  194. package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
  195. package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
  196. package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
  197. package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
  198. package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
  199. package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
  200. package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
  201. package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
  202. package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
  203. package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
  204. package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
  205. package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
  206. package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
  207. package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
  208. package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
  209. package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
  210. package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
  211. package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
  212. package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
  213. package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
  214. package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
  215. package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
  216. package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
  217. package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
  218. package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
  219. package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
  220. package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
  221. package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
  222. package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
  223. package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
  224. package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
  225. package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
  226. package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
  227. package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
  228. package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
  229. package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
  230. package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
  231. package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
  232. package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
  233. package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
  234. package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
  235. package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
  236. package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
  237. package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
  238. package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
  239. package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
  240. package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
  241. package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
  242. package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
  243. package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
  244. package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
  245. package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
  246. package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
  247. package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
  248. package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
  249. package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
  250. package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
  251. package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
  252. package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
  253. package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
  254. package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
  255. package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
  256. package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
  257. package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
  258. package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
  259. package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
  260. package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
  261. package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
  262. package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
  263. package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
  264. package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
  265. package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
  266. package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
  267. package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
  268. package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
  269. package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
  270. package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
  271. package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
  272. package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
  273. package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
  274. package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
  275. package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
  276. package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
  277. package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
  278. package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
  279. package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
  280. package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
  281. package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
  282. package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
  283. package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
  284. package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
  285. package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
  286. package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
  287. package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
  288. package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
  289. package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
  290. package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
  291. package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
  292. package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
  293. package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
  294. package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
  295. package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
  296. package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
  297. package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
  298. package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
  299. package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
  300. package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
  301. package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
  302. package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
  303. package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
  304. package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
  305. package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
  306. package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
  307. package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
  308. package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
  309. package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
  310. package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
  311. package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
  312. package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
  313. package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
  314. package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
  315. package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
  316. package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
  317. package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
  318. package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
  319. package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
  320. package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
  321. package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
  322. package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
  323. package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
  324. package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
  325. package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
  326. package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
  327. package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
  328. package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
  329. package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
  330. package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
  331. package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
  332. package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
  333. package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
  334. package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
  335. package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
  336. package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
  337. package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
  338. package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
  339. package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
  340. package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
  341. package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
  342. package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
  343. package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
  344. package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
  345. package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
  346. package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
  347. package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
  348. package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
  349. package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
  350. package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
  351. package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
  352. package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
  353. package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
  354. package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
  355. package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
  356. package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
  357. package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
  358. package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
  359. package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
  360. package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
  361. package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
  362. package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
  363. package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
  364. package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
  365. package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
  366. package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
  367. package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
  368. package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
  369. package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
  370. package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
  371. package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
  372. package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
  373. package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
  374. package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
  375. package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
  376. package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
  377. package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
  378. package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
  379. package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
  380. package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
  381. package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
  382. package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
  383. package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
  384. package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
  385. package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
  386. package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
  387. package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
  388. package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
  389. package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
  390. package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
  391. package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
  392. package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
  393. package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
  394. package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
  395. package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
  396. package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
  397. package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
  398. package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
  399. package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
  400. package/dist/claudio-vscode.vsix +0 -0
  401. package/dist/cli.mjs +3 -3
  402. package/package.json +4 -1
  403. package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +0 -1
  404. package/dist/chunks/App-0.1.11-z60c27dk.mjs +0 -1
  405. package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +0 -1
  406. package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +0 -1
  407. package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +0 -1
  408. package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +0 -1
  409. package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +0 -1
  410. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +0 -1
  411. package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +0 -1
  412. package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +0 -3
  413. package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +0 -1
  414. package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +0 -1
  415. package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +0 -1
  416. package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +0 -1
  417. package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +0 -1
  418. package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +0 -1
  419. package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +0 -1
  420. package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +0 -1
  421. package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +0 -1
  422. package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +0 -1
  423. package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +0 -1
  424. package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +0 -1
  425. package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +0 -1
  426. package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +0 -1
  427. package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +0 -1
  428. package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +0 -9
  429. package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +0 -1
  430. package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +0 -1
  431. package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +0 -1
  432. package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +0 -1
  433. package/dist/chunks/agents-0.1.11-26pbss9x.mjs +0 -3
  434. package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +0 -111
  435. package/dist/chunks/api-0.1.11-5ygenb1h.mjs +0 -1
  436. package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +0 -1
  437. package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +0 -1
  438. package/dist/chunks/auth-0.1.11-2363mst5.mjs +0 -1
  439. package/dist/chunks/auth-0.1.11-p47wajra.mjs +0 -1
  440. package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +0 -48
  441. package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +0 -1
  442. package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +0 -4
  443. package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +0 -1
  444. package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +0 -1
  445. package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +0 -3
  446. package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +0 -1
  447. package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +0 -21
  448. package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +0 -4
  449. package/dist/chunks/caches-0.1.11-vewfnrya.mjs +0 -1
  450. package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +0 -1
  451. package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +0 -2
  452. package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +0 -1
  453. package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +0 -1
  454. package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +0 -1
  455. package/dist/chunks/clear-0.1.11-c93nbam7.mjs +0 -1
  456. package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +0 -1
  457. package/dist/chunks/cli-0.1.11-036me3yr.mjs +0 -2
  458. package/dist/chunks/cli-0.1.11-05g86mrk.mjs +0 -2
  459. package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +0 -2
  460. package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +0 -2
  461. package/dist/chunks/cli-0.1.11-0n77qn68.mjs +0 -2
  462. package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +0 -2
  463. package/dist/chunks/cli-0.1.11-0tge574q.mjs +0 -2
  464. package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +0 -8
  465. package/dist/chunks/cli-0.1.11-16086k9e.mjs +0 -2
  466. package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +0 -2
  467. package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +0 -2
  468. package/dist/chunks/cli-0.1.11-1bryv90w.mjs +0 -2
  469. package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +0 -833
  470. package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +0 -3
  471. package/dist/chunks/cli-0.1.11-1xr9et85.mjs +0 -2
  472. package/dist/chunks/cli-0.1.11-21epc92q.mjs +0 -2
  473. package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +0 -2
  474. package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +0 -2
  475. package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +0 -45
  476. package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +0 -2
  477. package/dist/chunks/cli-0.1.11-3p2f194m.mjs +0 -2
  478. package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +0 -2
  479. package/dist/chunks/cli-0.1.11-424zgj5k.mjs +0 -4
  480. package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +0 -2
  481. package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +0 -3
  482. package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +0 -2
  483. package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +0 -2
  484. package/dist/chunks/cli-0.1.11-50naxqgt.mjs +0 -2
  485. package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +0 -3
  486. package/dist/chunks/cli-0.1.11-56p41bk3.mjs +0 -2
  487. package/dist/chunks/cli-0.1.11-5e45zda5.mjs +0 -2
  488. package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +0 -2
  489. package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +0 -2
  490. package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +0 -2
  491. package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +0 -2
  492. package/dist/chunks/cli-0.1.11-6r97rwda.mjs +0 -2
  493. package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +0 -3
  494. package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +0 -2
  495. package/dist/chunks/cli-0.1.11-70f778wy.mjs +0 -2
  496. package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +0 -50
  497. package/dist/chunks/cli-0.1.11-7238rfy8.mjs +0 -2
  498. package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +0 -2
  499. package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +0 -2
  500. package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +0 -3
  501. package/dist/chunks/cli-0.1.11-7tybqg56.mjs +0 -2
  502. package/dist/chunks/cli-0.1.11-7vz357wm.mjs +0 -58
  503. package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +0 -2
  504. package/dist/chunks/cli-0.1.11-84j34n0s.mjs +0 -2
  505. package/dist/chunks/cli-0.1.11-852v06g0.mjs +0 -2
  506. package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +0 -2
  507. package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +0 -2
  508. package/dist/chunks/cli-0.1.11-96y2d09c.mjs +0 -2
  509. package/dist/chunks/cli-0.1.11-98zcwng9.mjs +0 -2
  510. package/dist/chunks/cli-0.1.11-anegs86e.mjs +0 -7
  511. package/dist/chunks/cli-0.1.11-anvzywg4.mjs +0 -5
  512. package/dist/chunks/cli-0.1.11-at3c85af.mjs +0 -2
  513. package/dist/chunks/cli-0.1.11-b0jasw23.mjs +0 -9
  514. package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +0 -2
  515. package/dist/chunks/cli-0.1.11-be28ty4m.mjs +0 -2
  516. package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +0 -2
  517. package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +0 -4
  518. package/dist/chunks/cli-0.1.11-btayz9zj.mjs +0 -2
  519. package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +0 -252
  520. package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +0 -2
  521. package/dist/chunks/cli-0.1.11-bwpemkht.mjs +0 -2
  522. package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +0 -2
  523. package/dist/chunks/cli-0.1.11-cezypfbt.mjs +0 -2
  524. package/dist/chunks/cli-0.1.11-cf049e4w.mjs +0 -134
  525. package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +0 -10
  526. package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +0 -2
  527. package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +0 -4
  528. package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +0 -12
  529. package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +0 -11
  530. package/dist/chunks/cli-0.1.11-d3exw047.mjs +0 -2
  531. package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +0 -2
  532. package/dist/chunks/cli-0.1.11-da6szcvw.mjs +0 -2
  533. package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +0 -24
  534. package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +0 -2
  535. package/dist/chunks/cli-0.1.11-e5ecf583.mjs +0 -2
  536. package/dist/chunks/cli-0.1.11-e66dak4h.mjs +0 -4
  537. package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +0 -16
  538. package/dist/chunks/cli-0.1.11-egck69w4.mjs +0 -2
  539. package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +0 -18
  540. package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +0 -2
  541. package/dist/chunks/cli-0.1.11-emw2wfff.mjs +0 -3
  542. package/dist/chunks/cli-0.1.11-fag2wtke.mjs +0 -2
  543. package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +0 -2
  544. package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +0 -2
  545. package/dist/chunks/cli-0.1.11-fstfs72j.mjs +0 -2
  546. package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +0 -2
  547. package/dist/chunks/cli-0.1.11-fveg0t77.mjs +0 -22
  548. package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +0 -5
  549. package/dist/chunks/cli-0.1.11-g2202evh.mjs +0 -2
  550. package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +0 -2
  551. package/dist/chunks/cli-0.1.11-gc069ne7.mjs +0 -2
  552. package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +0 -2
  553. package/dist/chunks/cli-0.1.11-ggrme14p.mjs +0 -2
  554. package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +0 -2
  555. package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +0 -12
  556. package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +0 -2
  557. package/dist/chunks/cli-0.1.11-h762f6hr.mjs +0 -2
  558. package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +0 -31
  559. package/dist/chunks/cli-0.1.11-h7phna9g.mjs +0 -2
  560. package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +0 -2
  561. package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +0 -2
  562. package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +0 -4
  563. package/dist/chunks/cli-0.1.11-hrn726gf.mjs +0 -2
  564. package/dist/chunks/cli-0.1.11-hzezqkew.mjs +0 -2
  565. package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +0 -15
  566. package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +0 -2
  567. package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +0 -11
  568. package/dist/chunks/cli-0.1.11-jne21ka1.mjs +0 -2
  569. package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +0 -3
  570. package/dist/chunks/cli-0.1.11-jye250b3.mjs +0 -2
  571. package/dist/chunks/cli-0.1.11-kghg51gb.mjs +0 -6
  572. package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +0 -7
  573. package/dist/chunks/cli-0.1.11-kndj4a86.mjs +0 -2
  574. package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +0 -24
  575. package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +0 -2
  576. package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +0 -4
  577. package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +0 -2
  578. package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +0 -2
  579. package/dist/chunks/cli-0.1.11-mr356stf.mjs +0 -2
  580. package/dist/chunks/cli-0.1.11-mstxxz33.mjs +0 -2
  581. package/dist/chunks/cli-0.1.11-n23d2wej.mjs +0 -2
  582. package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +0 -2
  583. package/dist/chunks/cli-0.1.11-na9tsy21.mjs +0 -2
  584. package/dist/chunks/cli-0.1.11-nesh7dep.mjs +0 -2
  585. package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +0 -2
  586. package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +0 -4
  587. package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +0 -4
  588. package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +0 -2
  589. package/dist/chunks/cli-0.1.11-p4eeg584.mjs +0 -5
  590. package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +0 -2
  591. package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +0 -3
  592. package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +0 -2
  593. package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +0 -2
  594. package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +0 -16
  595. package/dist/chunks/cli-0.1.11-qheffjft.mjs +0 -2
  596. package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +0 -15
  597. package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +0 -2
  598. package/dist/chunks/cli-0.1.11-r990p54m.mjs +0 -100
  599. package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +0 -2
  600. package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +0 -2
  601. package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +0 -2
  602. package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +0 -2
  603. package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +0 -2
  604. package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +0 -6
  605. package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +0 -5036
  606. package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +0 -2
  607. package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +0 -132
  608. package/dist/chunks/cli-0.1.11-t07hba0z.mjs +0 -2
  609. package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +0 -2
  610. package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +0 -2
  611. package/dist/chunks/cli-0.1.11-trcf78n1.mjs +0 -2
  612. package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +0 -2
  613. package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +0 -12
  614. package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +0 -2
  615. package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +0 -192
  616. package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +0 -2
  617. package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +0 -2
  618. package/dist/chunks/cli-0.1.11-vch8cn95.mjs +0 -2
  619. package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +0 -44
  620. package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +0 -2
  621. package/dist/chunks/cli-0.1.11-w3fp9par.mjs +0 -39
  622. package/dist/chunks/cli-0.1.11-w3trj52p.mjs +0 -21
  623. package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +0 -2
  624. package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +0 -34
  625. package/dist/chunks/cli-0.1.11-weav8142.mjs +0 -2
  626. package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +0 -2
  627. package/dist/chunks/cli-0.1.11-x37jysc0.mjs +0 -14
  628. package/dist/chunks/cli-0.1.11-x5nvafch.mjs +0 -2
  629. package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +0 -2
  630. package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +0 -2
  631. package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +0 -2
  632. package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +0 -2
  633. package/dist/chunks/cli-0.1.11-y909w8bb.mjs +0 -2
  634. package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +0 -2
  635. package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +0 -2
  636. package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +0 -2
  637. package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +0 -2
  638. package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +0 -3
  639. package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +0 -2
  640. package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +0 -2
  641. package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +0 -2
  642. package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +0 -13
  643. package/dist/chunks/cli-0.1.11-zdyddegg.mjs +0 -2
  644. package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +0 -2
  645. package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +0 -2
  646. package/dist/chunks/client-0.1.11-h38k7vkj.mjs +0 -1
  647. package/dist/chunks/color-0.1.11-b7favzc8.mjs +0 -1
  648. package/dist/chunks/compact-0.1.11-damm234b.mjs +0 -3
  649. package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +0 -1
  650. package/dist/chunks/config-0.1.11-cqy7fnab.mjs +0 -1
  651. package/dist/chunks/context-0.1.11-e2s56h3b.mjs +0 -1
  652. package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +0 -1
  653. package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +0 -1
  654. package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +0 -9
  655. package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +0 -1
  656. package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +0 -1
  657. package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +0 -1
  658. package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +0 -1
  659. package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +0 -1
  660. package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +0 -1
  661. package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +0 -1
  662. package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +0 -1
  663. package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +0 -1
  664. package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +0 -8
  665. package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +0 -1
  666. package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +0 -1
  667. package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +0 -1
  668. package/dist/chunks/export-0.1.11-wv5bd05w.mjs +0 -2
  669. package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +0 -1
  670. package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +0 -1
  671. package/dist/chunks/fast-0.1.11-a665n9kz.mjs +0 -1
  672. package/dist/chunks/feedback-0.1.11-q77qty87.mjs +0 -14
  673. package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +0 -1
  674. package/dist/chunks/git-0.1.11-g77ppr52.mjs +0 -1
  675. package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +0 -1
  676. package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +0 -1
  677. package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +0 -6
  678. package/dist/chunks/help-0.1.11-byp88gen.mjs +0 -1
  679. package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +0 -3
  680. package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +0 -1
  681. package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +0 -79
  682. package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +0 -3
  683. package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +0 -1
  684. package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +0 -1
  685. package/dist/chunks/index-0.1.11-82wnmfq3.mjs +0 -9
  686. package/dist/chunks/index-0.1.11-8gtaa17w.mjs +0 -1
  687. package/dist/chunks/index-0.1.11-ajdpkanw.mjs +0 -1
  688. package/dist/chunks/index-0.1.11-b2q967nq.mjs +0 -30
  689. package/dist/chunks/index-0.1.11-bhrstsgc.mjs +0 -1
  690. package/dist/chunks/index-0.1.11-d6qbzwah.mjs +0 -1
  691. package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +0 -1
  692. package/dist/chunks/index-0.1.11-e52dzxjz.mjs +0 -5
  693. package/dist/chunks/index-0.1.11-gb3saayk.mjs +0 -2
  694. package/dist/chunks/index-0.1.11-kksxmkwe.mjs +0 -1
  695. package/dist/chunks/index-0.1.11-n564rmwy.mjs +0 -1
  696. package/dist/chunks/index-0.1.11-n90nxjqp.mjs +0 -1
  697. package/dist/chunks/index-0.1.11-p0j3w83p.mjs +0 -1
  698. package/dist/chunks/index-0.1.11-pmkgntay.mjs +0 -7
  699. package/dist/chunks/index-0.1.11-qspcw49p.mjs +0 -1
  700. package/dist/chunks/index-0.1.11-r6p77pf7.mjs +0 -1
  701. package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +0 -9
  702. package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +0 -1
  703. package/dist/chunks/index-0.1.11-wze82293.mjs +0 -1
  704. package/dist/chunks/index-0.1.11-xs4mng75.mjs +0 -1
  705. package/dist/chunks/index-0.1.11-yej3awws.mjs +0 -2
  706. package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +0 -1
  707. package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +0 -1
  708. package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +0 -870
  709. package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +0 -1
  710. package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +0 -149
  711. package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +0 -1
  712. package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +0 -12
  713. package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +0 -1
  714. package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +0 -2
  715. package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +0 -2
  716. package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +0 -1
  717. package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +0 -1
  718. package/dist/chunks/logout-0.1.11-48ynp610.mjs +0 -1
  719. package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +0 -1
  720. package/dist/chunks/main-0.1.11-6sh6xycv.mjs +0 -1
  721. package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +0 -1
  722. package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +0 -17
  723. package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +0 -4
  724. package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +0 -1
  725. package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +0 -1
  726. package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +0 -1
  727. package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +0 -3
  728. package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +0 -2
  729. package/dist/chunks/model-0.1.11-4v166f98.mjs +0 -2
  730. package/dist/chunks/model-0.1.11-qekc9c4w.mjs +0 -1
  731. package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +0 -1
  732. package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +0 -14
  733. package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +0 -1
  734. package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +0 -1
  735. package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +0 -1
  736. package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +0 -1
  737. package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +0 -3
  738. package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +0 -1
  739. package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +0 -1
  740. package/dist/chunks/plugin-0.1.11-menj210d.mjs +0 -29
  741. package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +0 -1
  742. package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +0 -9
  743. package/dist/chunks/print-0.1.11-y9vz77h9.mjs +0 -57
  744. package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +0 -1
  745. package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +0 -1
  746. package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +0 -1
  747. package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +0 -9
  748. package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +0 -1
  749. package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +0 -1
  750. package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +0 -1
  751. package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +0 -2
  752. package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +0 -1
  753. package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +0 -1
  754. package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +0 -1
  755. package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +0 -5
  756. package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +0 -2
  757. package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +0 -1
  758. package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +0 -1
  759. package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +0 -1
  760. package/dist/chunks/rename-0.1.11-ke9btph2.mjs +0 -1
  761. package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +0 -1
  762. package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +0 -2
  763. package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +0 -1
  764. package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +0 -1
  765. package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +0 -1
  766. package/dist/chunks/session-0.1.11-2z972raf.mjs +0 -2
  767. package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +0 -1
  768. package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +0 -1
  769. package/dist/chunks/setup-0.1.11-epmpszzf.mjs +0 -5
  770. package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +0 -1
  771. package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +0 -1
  772. package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +0 -1
  773. package/dist/chunks/state-0.1.11-3fjxywyv.mjs +0 -1
  774. package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +0 -6
  775. package/dist/chunks/status-0.1.11-drvp15n8.mjs +0 -1
  776. package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +0 -1
  777. package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +0 -1
  778. package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +0 -1
  779. package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +0 -1
  780. package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +0 -1
  781. package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +0 -1
  782. package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +0 -1
  783. package/dist/chunks/theme-0.1.11-p447kczd.mjs +0 -1
  784. package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +0 -1
  785. package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +0 -1
  786. package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +0 -1
  787. package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +0 -1
  788. package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +0 -1
  789. package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +0 -69
  790. package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +0 -4
  791. package/dist/chunks/update-0.1.11-p33kxpg4.mjs +0 -94
  792. package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +0 -1
  793. package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +0 -14
  794. package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +0 -1
  795. package/dist/chunks/util-0.1.11-sjkxad5k.mjs +0 -1
  796. package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +0 -1
  797. package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +0 -1
  798. package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +0 -1
  799. package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +0 -132
  800. package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +0 -1
  801. package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +0 -1
  802. package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +0 -7
  803. /package/dist/chunks/{cli-0.1.11-4px8nt5r.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
  804. /package/dist/chunks/{cli-0.1.11-tyh8gms9.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
  805. /package/dist/chunks/{cli-0.1.11-x3q39kf7.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{ua as Y}from"./cli-0.1.11-4px8nt5r.mjs";import{nP as N,oP as C}from"./cli-0.1.11-1bryv90w.mjs";import{x7 as L,z7 as j}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as A,ega as w}from"./cli-0.1.11-xwj7cmkj.mjs";import{Dga as B,Jga as k,Mga as G,Pga as K,bha as W,eha as E}from"./cli-0.1.11-vq5fvf9m.mjs";w();C();import{randomUUID as O}from"crypto";E();j();k();K();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return L(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(G(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);A("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${B(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
- export{v as T,q as U,p as V,g as W,d as X,R as Y};
@@ -1,2 +0,0 @@
1
- import{Rna as e}from"./cli-0.1.11-yrfxpjhr.mjs";function o(){return!0}var t=()=>{};
2
- export{o as PQ,t as QQ};
@@ -1,2 +0,0 @@
1
- import{Rna as b}from"./cli-0.1.11-yrfxpjhr.mjs";var g="Agent",j="Task",m;var d=b(()=>{m=new Set(["Explore","Plan"])});
2
- export{g as Qea,j as Rea,m as Sea,d as Tea};
@@ -1,44 +0,0 @@
1
- import{fha as y8,iha as W7,sha as o$}from"./cli-0.1.11-d3exw047.mjs";import{vha as f8,yha as a$}from"./cli-0.1.11-e5ecf583.mjs";import{Vma as P8,aja as R8}from"./cli-0.1.11-rrnr3ab1.mjs";import{sna as s,tna as j8}from"./cli-0.1.11-98zcwng9.mjs";import{Rna as w,Tna as A,Una as D}from"./cli-0.1.11-yrfxpjhr.mjs";function w7(X){return Z6.add(X),()=>Z6.delete(X)}async function U1(){await Promise.all(Array.from(Z6).map((X)=>X()))}var Z6;var U7=w(()=>{Z6=new Set});function i(X){return typeof X==="object"&&X!==null&&(("name"in X)&&X.name==="AbortError"||("message"in X)&&String(X.message).includes("FetchRequestCanceledException"))}var RX=(X)=>{if(X instanceof Error)return X;if(typeof X==="object"&&X!==null){try{if(Object.prototype.toString.call(X)==="[object Error]"){let Z=Error(X.message,X.cause?{cause:X.cause}:{});if(X.stack)Z.stack=X.stack;if(X.cause&&!Z.cause)Z.cause=X.cause;if(X.name)Z.name=X.name;return Z}}catch{}try{return Error(JSON.stringify(X))}catch{}}return Error(X)};var CX=()=>{};var N,F,S,WX,PX,yX,_X,fX,bX,hX,vX,gX,cX;var R=w(()=>{CX();N=class N extends Error{};F=class F extends N{constructor(X,Z,$,Y,J){super(`${F.makeMessage(X,Z,$)}`);this.status=X,this.headers=Y,this.requestID=Y?.get("request-id"),this.error=Z,this.type=J??null}static makeMessage(X,Z,$){let Y=Z?.message?typeof Z.message==="string"?Z.message:JSON.stringify(Z.message):Z?JSON.stringify(Z):$;if(X&&Y)return`${X} ${Y}`;if(X)return`${X} status code (no body)`;if(Y)return Y;return"(no status code or body)"}static generate(X,Z,$,Y){if(!X||!Y)return new WX({message:$,cause:RX(Z)});let J=Z,K=J?.error?.type;if(X===400)return new yX(X,J,$,Y,K);if(X===401)return new _X(X,J,$,Y,K);if(X===403)return new fX(X,J,$,Y,K);if(X===404)return new bX(X,J,$,Y,K);if(X===409)return new hX(X,J,$,Y,K);if(X===422)return new vX(X,J,$,Y,K);if(X===429)return new gX(X,J,$,Y,K);if(X>=500)return new cX(X,J,$,Y,K);return new F(X,J,$,Y,K)}};S=class S extends F{constructor({message:X}={}){super(void 0,void 0,X||"Request was aborted.",void 0)}};WX=class WX extends F{constructor({message:X,cause:Z}){super(void 0,void 0,X||"Connection error.",void 0);if(Z)this.cause=Z}};PX=class PX extends WX{constructor({message:X}={}){super({message:X??"Request timed out."})}};yX=class yX extends F{};_X=class _X extends F{};fX=class fX extends F{};bX=class bX extends F{};hX=class hX extends F{};vX=class vX extends F{};gX=class gX extends F{};cX=class cX extends F{}});function G(X,Z,$,Y,J){if(Y==="m")throw TypeError("Private method is not writable");if(Y==="a"&&!J)throw TypeError("Private accessor was defined without a setter");if(typeof Z==="function"?X!==Z||!J:!Z.has(X))throw TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?J.call(X,$):J?J.value=$:Z.set(X,$),$}function V(X,Z,$,Y){if($==="a"&&!Y)throw TypeError("Private accessor was defined without a getter");if(typeof Z==="function"?X!==Z||!Y:!Z.has(X))throw TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?Y:$==="a"?Y.call(X):Y?Y.value:Z.get(X)}var n=()=>{};var $6=function(){let{crypto:X}=globalThis;if(X?.randomUUID)return $6=X.randomUUID.bind(X),X.randomUUID();let Z=new Uint8Array(1),$=X?()=>X.getRandomValues(Z)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(Y)=>(+Y^$()&15>>+Y/4).toString(16))};var q7=()=>{};function EZ(X){if(typeof X!=="object")return{};return X??{}}function K6(X){if(!X)return!0;for(let Z in X)return!1;return!0}function H7(X,Z){return Object.prototype.hasOwnProperty.call(X,Z)}var i8,C7=(X)=>{return i8.test(X)},Y6=(X)=>(Y6=Array.isArray,Y6(X)),J6,x7=(X,Z)=>{if(typeof Z!=="number"||!Number.isInteger(Z))throw new N(`${X} must be an integer`);if(Z<0)throw new N(`${X} must be a positive integer`);return Z},jZ=(X)=>{try{return JSON.parse(X)}catch(Z){return}};var VX=w(()=>{R();i8=/^[a-z][a-z0-9+.-]*:/i,J6=Y6});var O7=(X)=>new Promise((Z)=>setTimeout(Z,X));var M7=()=>{};var e="0.81.0";var W6=()=>{};function n8(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}function a8(){if(typeof navigator>"u"||!navigator)return null;let X=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:Z,pattern:$}of X){let Y=$.exec(navigator.userAgent);if(Y){let J=Y[1]||0,K=Y[2]||0,W=Y[3]||0;return{browser:Z,version:`${J}.${K}.${W}`}}}return null}var j7=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},o8=()=>{let X=n8();if(X==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":D7(Deno.build.os),"X-Stainless-Arch":A7(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(X==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":D7(globalThis.process.platform??"unknown"),"X-Stainless-Arch":A7(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let Z=a8();if(Z)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${Z.browser}`,"X-Stainless-Runtime-Version":Z.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},A7=(X)=>{if(X==="x32")return"x32";if(X==="x86_64"||X==="x64")return"x64";if(X==="arm")return"arm";if(X==="aarch64"||X==="arm64")return"arm64";if(X)return`other:${X}`;return"unknown"},D7=(X)=>{if(X=X.toLowerCase(),X.includes("ios"))return"iOS";if(X==="android")return"Android";if(X==="darwin")return"MacOS";if(X==="win32")return"Windows";if(X==="freebsd")return"FreeBSD";if(X==="openbsd")return"OpenBSD";if(X==="linux")return"Linux";if(X)return`Other:${X}`;return"Unknown"},E7,T7=()=>{return E7??(E7=o8())};var V6=w(()=>{W6()});function I7(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function Q6(...X){let Z=globalThis.ReadableStream;if(typeof Z>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new Z(...X)}function TZ(X){let Z=Symbol.asyncIterator in X?X[Symbol.asyncIterator]():X[Symbol.iterator]();return Q6({start(){},async pull($){let{done:Y,value:J}=await Z.next();if(Y)$.close();else $.enqueue(J)},async cancel(){await Z.return?.()}})}function dX(X){if(X[Symbol.asyncIterator])return X;let Z=X.getReader();return{async next(){try{let $=await Z.read();if($?.done)Z.releaseLock();return $}catch($){throw Z.releaseLock(),$}},async return(){let $=Z.cancel();return Z.releaseLock(),await $,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function F7(X){if(X===null||typeof X!=="object")return;if(X[Symbol.asyncIterator]){await X[Symbol.asyncIterator]().return?.();return}let Z=X.getReader(),$=Z.cancel();Z.releaseLock(),await $}var HX=()=>{};var B7=({headers:X,body:Z})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(Z)}};var S7=()=>{};function L7(X){return Object.entries(X).filter(([Z,$])=>typeof $<"u").map(([Z,$])=>{if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")return`${encodeURIComponent(Z)}=${encodeURIComponent($)}`;if($===null)return`${encodeURIComponent(Z)}=`;throw new N(`Cannot stringify type ${typeof $}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}var k7=w(()=>{R()});function y7(X){let Z=0;for(let J of X)Z+=J.length;let $=new Uint8Array(Z),Y=0;for(let J of X)$.set(J,Y),Y+=J.length;return $}function mX(X){let Z;return(R7??(Z=new globalThis.TextEncoder,R7=Z.encode.bind(Z)))(X)}function z6(X){let Z;return(P7??(Z=new globalThis.TextDecoder,P7=Z.decode.bind(Z)))(X)}var R7,P7;var G6=()=>{};class XX{constructor(){P.set(this,void 0),y.set(this,void 0),G(this,P,new Uint8Array,"f"),G(this,y,null,"f")}decode(X){if(X==null)return[];let Z=X instanceof ArrayBuffer?new Uint8Array(X):typeof X==="string"?mX(X):X;G(this,P,y7([V(this,P,"f"),Z]),"f");let $=[],Y;while((Y=s8(V(this,P,"f"),V(this,y,"f")))!=null){if(Y.carriage&&V(this,y,"f")==null){G(this,y,Y.index,"f");continue}if(V(this,y,"f")!=null&&(Y.index!==V(this,y,"f")+1||Y.carriage)){$.push(z6(V(this,P,"f").subarray(0,V(this,y,"f")-1))),G(this,P,V(this,P,"f").subarray(V(this,y,"f")),"f"),G(this,y,null,"f");continue}let J=V(this,y,"f")!==null?Y.preceding-1:Y.preceding,K=z6(V(this,P,"f").subarray(0,J));$.push(K),G(this,P,V(this,P,"f").subarray(Y.index),"f"),G(this,y,null,"f")}return $}flush(){if(!V(this,P,"f").length)return[];return this.decode(`
2
- `)}}function s8(X,Z){for(let J=Z??0;J<X.length;J++){if(X[J]===10)return{preceding:J,index:J+1,carriage:!1};if(X[J]===13)return{preceding:J,index:J+1,carriage:!0}}return null}function _7(X){for(let Y=0;Y<X.length-1;Y++){if(X[Y]===10&&X[Y+1]===10)return Y+2;if(X[Y]===13&&X[Y+1]===13)return Y+2;if(X[Y]===13&&X[Y+1]===10&&Y+3<X.length&&X[Y+2]===13&&X[Y+3]===10)return Y+4}return-1}var P,y;var N6=w(()=>{n();G6();P=new WeakMap,y=new WeakMap;XX.NEWLINE_CHARS=new Set([`
3
- `,"\r"]);XX.NEWLINE_REGEXP=/\r\n|[\n\r]/g});function uX(){}function IZ(X,Z,$){if(!Z||FZ[X]>FZ[$])return uX;else return Z[X].bind(Z)}function L(X){let Z=X.logger,$=X.logLevel??"off";if(!Z)return e8;let Y=f7.get(Z);if(Y&&Y[0]===$)return Y[1];let J={error:IZ("error",Z,$),warn:IZ("warn",Z,$),info:IZ("info",Z,$),debug:IZ("debug",Z,$)};return f7.set(Z,[$,J]),J}var FZ,w6=(X,Z,$)=>{if(!X)return;if(H7(FZ,X))return X;L($).warn(`${Z} was set to ${JSON.stringify(X)}, expected one of ${JSON.stringify(Object.keys(FZ))}`);return},e8,f7,o=(X)=>{if(X.options)X.options={...X.options},delete X.options.headers;if(X.headers)X.headers=Object.fromEntries((X.headers instanceof Headers?[...X.headers]:Object.entries(X.headers)).map(([Z,$])=>[Z,Z.toLowerCase()==="x-api-key"||Z.toLowerCase()==="authorization"||Z.toLowerCase()==="cookie"||Z.toLowerCase()==="set-cookie"?"***":$]));if("retryOfRequestLogID"in X){if(X.retryOfRequestLogID)X.retryOf=X.retryOfRequestLogID;delete X.retryOfRequestLogID}return X};var BZ=w(()=>{VX();FZ={off:0,error:200,warn:300,info:400,debug:500};e8={error:uX,warn:uX,info:uX,debug:uX},f7=new WeakMap});async function*X$(X,Z){if(!X.body){if(Z.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new N("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new N("Attempted to iterate over a response with no body")}let $=new b7,Y=new XX,J=dX(X.body);for await(let K of Z$(J))for(let W of Y.decode(K)){let Q=$.decode(W);if(Q)yield Q}for(let K of Y.flush()){let W=$.decode(K);if(W)yield W}}async function*Z$(X){let Z=new Uint8Array;for await(let $ of X){if($==null)continue;let Y=$ instanceof ArrayBuffer?new Uint8Array($):typeof $==="string"?mX($):$,J=new Uint8Array(Z.length+Y.length);J.set(Z),J.set(Y,Z.length),Z=J;let K;while((K=_7(Z))!==-1)yield Z.slice(0,K),Z=Z.slice(K)}if(Z.length>0)yield Z}class b7{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(X){if(X.endsWith("\r"))X=X.substring(0,X.length-1);if(!X){if(!this.event&&!this.data.length)return null;let J={event:this.event,data:this.data.join(`
4
- `),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],J}if(this.chunks.push(X),X.startsWith(":"))return null;let[Z,$,Y]=$$(X,":");if(Y.startsWith(" "))Y=Y.substring(1);if(Z==="event")this.event=Y;else if(Z==="data")this.data.push(Y);return null}}function $$(X,Z){let $=X.indexOf(Z);if($!==-1)return[X.substring(0,$),Z,X.substring($+Z.length)];return[X,"",""]}var pX,_;var U6=w(()=>{n();R();HX();N6();HX();CX();VX();G6();BZ();R();_=class _{constructor(X,Z,$){this.iterator=X,pX.set(this,void 0),this.controller=Z,G(this,pX,$,"f")}static fromSSEResponse(X,Z,$){let Y=!1,J=$?L($):console;async function*K(){if(Y)throw new N("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let W=!1;try{for await(let Q of X$(X,Z)){if(Q.event==="completion")try{yield JSON.parse(Q.data)}catch(z){throw J.error("Could not parse message into JSON:",Q.data),J.error("From chunk:",Q.raw),z}if(Q.event==="message_start"||Q.event==="message_delta"||Q.event==="message_stop"||Q.event==="content_block_start"||Q.event==="content_block_delta"||Q.event==="content_block_stop")try{yield JSON.parse(Q.data)}catch(z){throw J.error("Could not parse message into JSON:",Q.data),J.error("From chunk:",Q.raw),z}if(Q.event==="ping")continue;if(Q.event==="error"){let z=jZ(Q.data)??Q.data,x=z?.error?.type;throw new F(void 0,z,void 0,X.headers,x)}}W=!0}catch(Q){if(i(Q))return;throw Q}finally{if(!W)Z.abort()}}return new _(K,Z,$)}static fromReadableStream(X,Z,$){let Y=!1;async function*J(){let W=new XX,Q=dX(X);for await(let z of Q)for(let x of W.decode(z))yield x;for(let z of W.flush())yield z}async function*K(){if(Y)throw new N("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let W=!1;try{for await(let Q of J()){if(W)continue;if(Q)yield JSON.parse(Q)}W=!0}catch(Q){if(i(Q))return;throw Q}finally{if(!W)Z.abort()}}return new _(K,Z,$)}[(pX=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let X=[],Z=[],$=this.iterator(),Y=(J)=>{return{next:()=>{if(J.length===0){let K=$.next();X.push(K),Z.push(K)}return J.shift()}}};return[new _(()=>Y(X),this.controller,V(this,pX,"f")),new _(()=>Y(Z),this.controller,V(this,pX,"f"))]}toReadableStream(){let X=this,Z;return Q6({async start(){Z=X[Symbol.asyncIterator]()},async pull($){try{let{value:Y,done:J}=await Z.next();if(J)return $.close();let K=mX(JSON.stringify(Y)+`
5
- `);$.enqueue(K)}catch(Y){$.error(Y)}},async cancel(){await Z.return?.()}})}}});async function SZ(X,Z){let{response:$,requestLogID:Y,retryOfRequestLogID:J,startTime:K}=Z,W=await(async()=>{if(Z.options.stream){if(L(X).debug("response",$.status,$.url,$.headers,$.body),Z.options.__streamClass)return Z.options.__streamClass.fromSSEResponse($,Z.controller);return _.fromSSEResponse($,Z.controller)}if($.status===204)return null;if(Z.options.__binaryResponse)return $;let z=$.headers.get("content-type")?.split(";")[0]?.trim();if(z?.includes("application/json")||z?.endsWith("+json")){if($.headers.get("content-length")==="0")return;let U=await $.json();return q6(U,$)}return await $.text()})();return L(X).debug(`[${Y}] response parsed`,o({retryOfRequestLogID:J,url:$.url,status:$.status,body:W,durationMs:Date.now()-K})),W}function q6(X,Z){if(!X||typeof X!=="object"||Array.isArray(X))return X;return Object.defineProperty(X,"_request_id",{value:Z.headers.get("request-id"),enumerable:!1})}var C6=w(()=>{U6();BZ()});var lX,QX;var LZ=w(()=>{n();C6();QX=class QX extends Promise{constructor(X,Z,$=SZ){super((Y)=>{Y(null)});this.responsePromise=Z,this.parseResponse=$,lX.set(this,void 0),G(this,lX,X,"f")}_thenUnwrap(X){return new QX(V(this,lX,"f"),this.responsePromise,async(Z,$)=>q6(X(await this.parseResponse(Z,$),$),$.response))}asResponse(){return this.responsePromise.then((X)=>X.response)}async withResponse(){let[X,Z]=await Promise.all([this.parse(),this.asResponse()]);return{data:X,response:Z,request_id:Z.headers.get("request-id")}}parse(){if(!this.parsedPromise)this.parsedPromise=this.responsePromise.then((X)=>this.parseResponse(V(this,lX,"f"),X));return this.parsedPromise}then(X,Z){return this.parse().then(X,Z)}catch(X){return this.parse().catch(X)}finally(X){return this.parse().finally(X)}};lX=new WeakMap});var kZ,H6,RZ,c,iX;var u=w(()=>{n();R();C6();LZ();VX();H6=class H6{constructor(X,Z,$,Y){kZ.set(this,void 0),G(this,kZ,X,"f"),this.options=Y,this.response=Z,this.body=$}hasNextPage(){if(!this.getPaginatedItems().length)return!1;return this.nextPageRequestOptions()!=null}async getNextPage(){let X=this.nextPageRequestOptions();if(!X)throw new N("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await V(this,kZ,"f").requestAPIList(this.constructor,X)}async*iterPages(){let X=this;yield X;while(X.hasNextPage())X=await X.getNextPage(),yield X}async*[(kZ=new WeakMap,Symbol.asyncIterator)](){for await(let X of this.iterPages())for(let Z of X.getPaginatedItems())yield Z}};RZ=class RZ extends QX{constructor(X,Z,$){super(X,Z,async(Y,J)=>new $(Y,J.response,await SZ(Y,J),J.options))}async*[Symbol.asyncIterator](){let X=await this;for await(let Z of X)yield Z}};c=class c extends H6{constructor(X,Z,$,Y){super(X,Z,$,Y);this.data=$.data||[],this.has_more=$.has_more||!1,this.first_id=$.first_id||null,this.last_id=$.last_id||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){if(this.options.query?.before_id){let Z=this.first_id;if(!Z)return null;return{...this.options,query:{...EZ(this.options.query),before_id:Z}}}let X=this.last_id;if(!X)return null;return{...this.options,query:{...EZ(this.options.query),after_id:X}}}};iX=class iX extends H6{constructor(X,Z,$,Y){super(X,Z,$,Y);this.data=$.data||[],this.has_more=$.has_more||!1,this.next_page=$.next_page||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){let X=this.next_page;if(!X)return null;return{...this.options,query:{...EZ(this.options.query),page:X}}}}});function zX(X,Z,$){return O6(),new File(X,Z??"unknown_file",$)}function nX(X,Z){let $=typeof X==="object"&&X!==null&&(("name"in X)&&X.name&&String(X.name)||("url"in X)&&X.url&&String(X.url)||("filename"in X)&&X.filename&&String(X.filename)||("path"in X)&&X.path&&String(X.path))||"";return Z?$.split(/[\\/]/).pop()||void 0:$}function J$(X){let Z=typeof X==="function"?X:X.fetch,$=h7.get(Z);if($)return $;let Y=(async()=>{try{let J="Response"in Z?Z.Response:(await Z("data:,")).constructor,K=new FormData;if(K.toString()===await new J(K).text())return!1;return!0}catch{return!0}})();return h7.set(Z,Y),Y}var O6=()=>{if(typeof File>"u"){let{process:X}=globalThis,Z=typeof X?.versions?.node==="string"&&parseInt(X.versions.node.split("."))<20;throw Error("`File` is not defined as a global, which is required for file uploads."+(Z?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}},M6=(X)=>X!=null&&typeof X==="object"&&typeof X[Symbol.asyncIterator]==="function",xX=async(X,Z,$=!0)=>{return{...X,body:await K$(X.body,Z,$)}},h7,K$=async(X,Z,$=!0)=>{if(!await J$(Z))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let Y=new FormData;return await Promise.all(Object.entries(X||{}).map(([J,K])=>x6(Y,J,K,$))),Y},W$=(X)=>X instanceof Blob&&("name"in X),x6=async(X,Z,$,Y)=>{if($===void 0)return;if($==null)throw TypeError(`Received null for "${Z}"; to pass null in FormData, you must use the string 'null'`);if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")X.append(Z,String($));else if($ instanceof Response){let J={},K=$.headers.get("Content-Type");if(K)J={type:K};X.append(Z,zX([await $.blob()],nX($,Y),J))}else if(M6($))X.append(Z,zX([await new Response(TZ($)).blob()],nX($,Y)));else if(W$($))X.append(Z,zX([$],nX($,Y),{type:$.type}));else if(Array.isArray($))await Promise.all($.map((J)=>x6(X,Z+"[]",J,Y)));else if(typeof $==="object")await Promise.all(Object.entries($).map(([J,K])=>x6(X,`${Z}[${J}]`,K,Y)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${$} instead`)};var OX=w(()=>{HX();h7=new WeakMap});async function PZ(X,Z,$){if(O6(),X=await X,Z||(Z=nX(X,!0)),V$(X)){if(X instanceof File&&Z==null&&$==null)return X;return zX([await X.arrayBuffer()],Z??X.name,{type:X.type,lastModified:X.lastModified,...$})}if(Q$(X)){let J=await X.blob();return Z||(Z=new URL(X.url).pathname.split(/[\\/]/).pop()),zX(await A6(J),Z,$)}let Y=await A6(X);if(!$?.type){let J=Y.find((K)=>typeof K==="object"&&("type"in K)&&K.type);if(typeof J==="string")$={...$,type:J}}return zX(Y,Z,$)}async function A6(X){let Z=[];if(typeof X==="string"||ArrayBuffer.isView(X)||X instanceof ArrayBuffer)Z.push(X);else if(v7(X))Z.push(X instanceof Blob?X:await X.arrayBuffer());else if(M6(X))for await(let $ of X)Z.push(...await A6($));else{let $=X?.constructor?.name;throw Error(`Unexpected data type: ${typeof X}${$?`; constructor: ${$}`:""}${z$(X)}`)}return Z}function z$(X){if(typeof X!=="object"||X===null)return"";return`; props: [${Object.getOwnPropertyNames(X).map(($)=>`"${$}"`).join(", ")}]`}var v7=(X)=>X!=null&&typeof X==="object"&&typeof X.size==="number"&&typeof X.type==="string"&&typeof X.text==="function"&&typeof X.slice==="function"&&typeof X.arrayBuffer==="function",V$=(X)=>X!=null&&typeof X==="object"&&typeof X.name==="string"&&typeof X.lastModified==="number"&&v7(X),Q$=(X)=>X!=null&&typeof X==="object"&&typeof X.url==="string"&&typeof X.blob==="function";var g7=w(()=>{OX();OX()});var D6=w(()=>{g7()});var c7=()=>{};class T{constructor(X){this._client=X}}var h=()=>{};function*N$(X){if(!X)return;if(d7 in X){let{values:Y,nulls:J}=X;yield*Y.entries();for(let K of J)yield[K,null];return}let Z=!1,$;if(X instanceof Headers)$=X.entries();else if(J6(X))$=X;else Z=!0,$=Object.entries(X??{});for(let Y of $){let J=Y[0];if(typeof J!=="string")throw TypeError("expected header name to be a string");let K=J6(Y[1])?Y[1]:[Y[1]],W=!1;for(let Q of K){if(Q===void 0)continue;if(Z&&!W)W=!0,yield[J,null];yield[J,Q]}}}var d7,q=(X)=>{let Z=new Headers,$=new Set;for(let Y of X){let J=new Set;for(let[K,W]of N$(Y)){let Q=K.toLowerCase();if(!J.has(Q))Z.delete(K),J.add(Q);if(W===null)Z.delete(K),$.add(Q);else Z.append(K,W),$.delete(Q)}}return{[d7]:!0,values:Z,nulls:$}};var f=w(()=>{VX();d7=Symbol.for("brand.privateNullableHeaders")});function yZ(X){return typeof X==="object"&&X!==null&&oX in X}function E6(X,Z){let $=new Set;if(X){for(let Y of X)if(yZ(Y))$.add(Y[oX])}if(Z)for(let Y of Z){if(yZ(Y))$.add(Y[oX]);if(Array.isArray(Y.content)){for(let J of Y.content)if(yZ(J))$.add(J[oX])}}return Array.from($)}function _Z(X,Z){let $=E6(X,Z);if($.length===0)return{};return{"x-stainless-helper":$.join(", ")}}function m7(X){if(yZ(X))return{"x-stainless-helper":X[oX]};return{}}var oX;var aX=w(()=>{oX=Symbol("anthropic.sdk.stainlessHelper")});function p7(X){return X.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}var u7,w$=(X=p7)=>function($,...Y){if($.length===1)return $[0];let J=!1,K=[],W=$.reduce((H,M,U)=>{if(/[?#]/.test(M))J=!0;let O=Y[U],d=(J?encodeURIComponent:X)(""+O);if(U!==Y.length&&(O==null||typeof O==="object"&&O.toString===Object.getPrototypeOf(Object.getPrototypeOf(O.hasOwnProperty??u7)??u7)?.toString))d=O+"",K.push({start:H.length+M.length,length:d.length,error:`Value of type ${Object.prototype.toString.call(O).slice(8,-1)} is not a valid path parameter`});return H+M+(U===Y.length?"":d)},""),Q=W.split(/[?#]/,1)[0],z=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi,x;while((x=z.exec(Q))!==null)K.push({start:x.index,length:x[0].length,error:`Value "${x[0]}" can't be safely passed as a path parameter`});if(K.sort((H,M)=>H.start-M.start),K.length>0){let H=0,M=K.reduce((U,O)=>{let d=" ".repeat(O.start-H),kX="^".repeat(O.length);return H=O.start+O.length,U+d+kX},"");throw new N(`Path parameters result in path with invalid segments:
6
- ${K.map((U)=>U.error).join(`
7
- `)}
8
- ${W}
9
- ${M}`)}return W},j;var ZX=w(()=>{R();u7=Object.freeze(Object.create(null)),j=w$(p7)});var rX;var j6=w(()=>{h();u();f();aX();OX();ZX();rX=class rX extends T{list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/files",c,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"files-api-2025-04-14"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/files/${X}`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},$?.headers])})}download(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/files/${X}/content`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString(),Accept:"application/binary"},$?.headers]),__binaryResponse:!0})}retrieveMetadata(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/files/${X}`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},$?.headers])})}upload(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/files",xX({body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"files-api-2025-04-14"].toString()},m7(Y.file),Z?.headers])},this._client))}}});var tX;var T6=w(()=>{h();u();f();ZX();tX=class tX extends T{retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/models/${X}?beta=true`,{...$,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/models?beta=true",c,{query:Y,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers])})}}});var MX=w(()=>{R()});var fZ;var I6=w(()=>{fZ={"claude-opus-4-20250514":8192,"claude-opus-4-0":8192,"claude-4-opus-20250514":8192,"anthropic.claude-opus-4-20250514-v1:0":8192,"claude-opus-4@20250514":8192,"claude-opus-4-1-20250805":8192,"anthropic.claude-opus-4-1-20250805-v1:0":8192,"claude-opus-4-1@20250805":8192}});function l7(X){return X?.output_format??X?.output_config?.format}function F6(X,Z,$){let Y=l7(Z);if(!Z||!("parse"in(Y??{})))return{...X,content:X.content.map((J)=>{if(J.type==="text"){let K=Object.defineProperty({...J},"parsed_output",{value:null,enumerable:!1});return Object.defineProperty(K,"parsed",{get(){return $.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),null},enumerable:!1})}return J}),parsed_output:null};return B6(X,Z,$)}function B6(X,Z,$){let Y=null,J=X.content.map((K)=>{if(K.type==="text"){let W=C$(Z,K.text);if(Y===null)Y=W;let Q=Object.defineProperty({...K},"parsed_output",{value:W,enumerable:!1});return Object.defineProperty(Q,"parsed",{get(){return $.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),W},enumerable:!1})}return K});return{...X,content:J,parsed_output:Y}}function C$(X,Z){let $=l7(X);if($?.type!=="json_schema")return null;try{if("parse"in $)return $.parse(Z);return JSON.parse(Z)}catch(Y){throw new N(`Failed to parse structured output: ${Y}`)}}var S6=w(()=>{R()});var H$=(X)=>{let Z=0,$=[];while(Z<X.length){let Y=X[Z];if(Y==="\\"){Z++;continue}if(Y==="{"){$.push({type:"brace",value:"{"}),Z++;continue}if(Y==="}"){$.push({type:"brace",value:"}"}),Z++;continue}if(Y==="["){$.push({type:"paren",value:"["}),Z++;continue}if(Y==="]"){$.push({type:"paren",value:"]"}),Z++;continue}if(Y===":"){$.push({type:"separator",value:":"}),Z++;continue}if(Y===","){$.push({type:"delimiter",value:","}),Z++;continue}if(Y==='"'){let Q="",z=!1;Y=X[++Z];while(Y!=='"'){if(Z===X.length){z=!0;break}if(Y==="\\"){if(Z++,Z===X.length){z=!0;break}Q+=Y+X[Z],Y=X[++Z]}else Q+=Y,Y=X[++Z]}if(Y=X[++Z],!z)$.push({type:"string",value:Q});continue}if(Y&&/\s/.test(Y)){Z++;continue}let K=/[0-9]/;if(Y&&K.test(Y)||Y==="-"||Y==="."){let Q="";if(Y==="-")Q+=Y,Y=X[++Z];while(Y&&K.test(Y)||Y===".")Q+=Y,Y=X[++Z];$.push({type:"number",value:Q});continue}let W=/[a-z]/i;if(Y&&W.test(Y)){let Q="";while(Y&&W.test(Y)){if(Z===X.length)break;Q+=Y,Y=X[++Z]}if(Q=="true"||Q=="false"||Q==="null")$.push({type:"name",value:Q});else{Z++;continue}continue}Z++}return $},AX=(X)=>{if(X.length===0)return X;let Z=X[X.length-1];switch(Z.type){case"separator":return X=X.slice(0,X.length-1),AX(X);break;case"number":let $=Z.value[Z.value.length-1];if($==="."||$==="-")return X=X.slice(0,X.length-1),AX(X);case"string":let Y=X[X.length-2];if(Y?.type==="delimiter")return X=X.slice(0,X.length-1),AX(X);else if(Y?.type==="brace"&&Y.value==="{")return X=X.slice(0,X.length-1),AX(X);break;case"delimiter":return X=X.slice(0,X.length-1),AX(X);break}return X},x$=(X)=>{let Z=[];if(X.map(($)=>{if($.type==="brace")if($.value==="{")Z.push("}");else Z.splice(Z.lastIndexOf("}"),1);if($.type==="paren")if($.value==="[")Z.push("]");else Z.splice(Z.lastIndexOf("]"),1)}),Z.length>0)Z.reverse().map(($)=>{if($==="}")X.push({type:"brace",value:"}"});else if($==="]")X.push({type:"paren",value:"]"})});return X},O$=(X)=>{let Z="";return X.map(($)=>{switch($.type){case"string":Z+='"'+$.value+'"';break;default:Z+=$.value;break}}),Z},bZ=(X)=>JSON.parse(O$(x$(AX(H$(X)))));var L6=()=>{};var k6=w(()=>{U6()});function a7(X){return X.type==="tool_use"||X.type==="server_tool_use"||X.type==="mcp_tool_use"}function r7(X){}var v,$X,DX,sX,hZ,eX,XZ,vZ,ZZ,a,$Z,gZ,cZ,GX,dZ,mZ,YZ,R6,i7,uZ,P6,y6,_6,n7,o7="__json_buf",JZ;var t7=w(()=>{n();L6();MX();CX();k6();S6();JZ=class JZ{constructor(X,Z){v.add(this),this.messages=[],this.receivedMessages=[],$X.set(this,void 0),DX.set(this,null),this.controller=new AbortController,sX.set(this,void 0),hZ.set(this,()=>{}),eX.set(this,()=>{}),XZ.set(this,void 0),vZ.set(this,()=>{}),ZZ.set(this,()=>{}),a.set(this,{}),$Z.set(this,!1),gZ.set(this,!1),cZ.set(this,!1),GX.set(this,!1),dZ.set(this,void 0),mZ.set(this,void 0),YZ.set(this,void 0),uZ.set(this,($)=>{if(G(this,gZ,!0,"f"),i($))$=new S;if($ instanceof S)return G(this,cZ,!0,"f"),this._emit("abort",$);if($ instanceof N)return this._emit("error",$);if($ instanceof Error){let Y=new N($.message);return Y.cause=$,this._emit("error",Y)}return this._emit("error",new N(String($)))}),G(this,sX,new Promise(($,Y)=>{G(this,hZ,$,"f"),G(this,eX,Y,"f")}),"f"),G(this,XZ,new Promise(($,Y)=>{G(this,vZ,$,"f"),G(this,ZZ,Y,"f")}),"f"),V(this,sX,"f").catch(()=>{}),V(this,XZ,"f").catch(()=>{}),G(this,DX,X,"f"),G(this,YZ,Z?.logger??console,"f")}get response(){return V(this,dZ,"f")}get request_id(){return V(this,mZ,"f")}async withResponse(){G(this,GX,!0,"f");let X=await V(this,sX,"f");if(!X)throw Error("Could not resolve a `Response` object");return{data:this,response:X,request_id:X.headers.get("request-id")}}static fromReadableStream(X){let Z=new JZ(null);return Z._run(()=>Z._fromReadableStream(X)),Z}static createMessage(X,Z,$,{logger:Y}={}){let J=new JZ(Z,{logger:Y});for(let K of Z.messages)J._addMessageParam(K);return G(J,DX,{...Z,stream:!0},"f"),J._run(()=>J._createMessage(X,{...Z,stream:!0},{...$,headers:{...$?.headers,"X-Stainless-Helper-Method":"stream"}})),J}_run(X){X().then(()=>{this._emitFinal(),this._emit("end")},V(this,uZ,"f"))}_addMessageParam(X){this.messages.push(X)}_addMessage(X,Z=!0){if(this.receivedMessages.push(X),Z)this._emit("message",X)}async _createMessage(X,Z,$){let Y=$?.signal,J;if(Y){if(Y.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),Y.addEventListener("abort",J)}try{V(this,v,"m",P6).call(this);let{response:K,data:W}=await X.create({...Z,stream:!0},{...$,signal:this.controller.signal}).withResponse();this._connected(K);for await(let Q of W)V(this,v,"m",y6).call(this,Q);if(W.controller.signal?.aborted)throw new S;V(this,v,"m",_6).call(this)}finally{if(Y&&J)Y.removeEventListener("abort",J)}}_connected(X){if(this.ended)return;G(this,dZ,X,"f"),G(this,mZ,X?.headers.get("request-id"),"f"),V(this,hZ,"f").call(this,X),this._emit("connect")}get ended(){return V(this,$Z,"f")}get errored(){return V(this,gZ,"f")}get aborted(){return V(this,cZ,"f")}abort(){this.controller.abort()}on(X,Z){return(V(this,a,"f")[X]||(V(this,a,"f")[X]=[])).push({listener:Z}),this}off(X,Z){let $=V(this,a,"f")[X];if(!$)return this;let Y=$.findIndex((J)=>J.listener===Z);if(Y>=0)$.splice(Y,1);return this}once(X,Z){return(V(this,a,"f")[X]||(V(this,a,"f")[X]=[])).push({listener:Z,once:!0}),this}emitted(X){return new Promise((Z,$)=>{if(G(this,GX,!0,"f"),X!=="error")this.once("error",$);this.once(X,Z)})}async done(){G(this,GX,!0,"f"),await V(this,XZ,"f")}get currentMessage(){return V(this,$X,"f")}async finalMessage(){return await this.done(),V(this,v,"m",R6).call(this)}async finalText(){return await this.done(),V(this,v,"m",i7).call(this)}_emit(X,...Z){if(V(this,$Z,"f"))return;if(X==="end")G(this,$Z,!0,"f"),V(this,vZ,"f").call(this);let $=V(this,a,"f")[X];if($)V(this,a,"f")[X]=$.filter((Y)=>!Y.once),$.forEach(({listener:Y})=>Y(...Z));if(X==="abort"){let Y=Z[0];if(!V(this,GX,"f")&&!$?.length)Promise.reject(Y);V(this,eX,"f").call(this,Y),V(this,ZZ,"f").call(this,Y),this._emit("end");return}if(X==="error"){let Y=Z[0];if(!V(this,GX,"f")&&!$?.length)Promise.reject(Y);V(this,eX,"f").call(this,Y),V(this,ZZ,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",V(this,v,"m",R6).call(this))}async _fromReadableStream(X,Z){let $=Z?.signal,Y;if($){if($.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),$.addEventListener("abort",Y)}try{V(this,v,"m",P6).call(this),this._connected(null);let J=_.fromReadableStream(X,this.controller);for await(let K of J)V(this,v,"m",y6).call(this,K);if(J.controller.signal?.aborted)throw new S;V(this,v,"m",_6).call(this)}finally{if($&&Y)$.removeEventListener("abort",Y)}}[($X=new WeakMap,DX=new WeakMap,sX=new WeakMap,hZ=new WeakMap,eX=new WeakMap,XZ=new WeakMap,vZ=new WeakMap,ZZ=new WeakMap,a=new WeakMap,$Z=new WeakMap,gZ=new WeakMap,cZ=new WeakMap,GX=new WeakMap,dZ=new WeakMap,mZ=new WeakMap,YZ=new WeakMap,uZ=new WeakMap,v=new WeakSet,R6=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},i7=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");let Z=this.receivedMessages.at(-1).content.filter(($)=>$.type==="text").map(($)=>$.text);if(Z.length===0)throw new N("stream ended without producing a content block with type=text");return Z.join(" ")},P6=function(){if(this.ended)return;G(this,$X,void 0,"f")},y6=function(Z){if(this.ended)return;let $=V(this,v,"m",n7).call(this,Z);switch(this._emit("streamEvent",Z,$),Z.type){case"content_block_delta":{let Y=$.content.at(-1);switch(Z.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",Z.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",Z.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(a7(Y)&&Y.input)this._emit("inputJson",Z.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",Z.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}case"compaction_delta":{if(Y.type==="compaction"&&Y.content)this._emit("compaction",Y.content);break}default:r7(Z.delta)}break}case"message_stop":{this._addMessageParam($),this._addMessage(F6($,V(this,DX,"f"),{logger:V(this,YZ,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",$.content.at(-1));break}case"message_start":{G(this,$X,$,"f");break}case"content_block_start":case"message_delta":break}},_6=function(){if(this.ended)throw new N("stream has ended, this shouldn't happen");let Z=V(this,$X,"f");if(!Z)throw new N("request ended without sending any chunks");return G(this,$X,void 0,"f"),F6(Z,V(this,DX,"f"),{logger:V(this,YZ,"f")})},n7=function(Z){let $=V(this,$X,"f");if(Z.type==="message_start"){if($)throw new N(`Unexpected event order, got ${Z.type} before receiving "message_stop"`);return Z.message}if(!$)throw new N(`Unexpected event order, got ${Z.type} before "message_start"`);switch(Z.type){case"message_stop":return $;case"message_delta":if($.container=Z.delta.container,$.stop_reason=Z.delta.stop_reason,$.stop_sequence=Z.delta.stop_sequence,$.usage.output_tokens=Z.usage.output_tokens,$.context_management=Z.context_management,Z.usage.input_tokens!=null)$.usage.input_tokens=Z.usage.input_tokens;if(Z.usage.cache_creation_input_tokens!=null)$.usage.cache_creation_input_tokens=Z.usage.cache_creation_input_tokens;if(Z.usage.cache_read_input_tokens!=null)$.usage.cache_read_input_tokens=Z.usage.cache_read_input_tokens;if(Z.usage.server_tool_use!=null)$.usage.server_tool_use=Z.usage.server_tool_use;if(Z.usage.iterations!=null)$.usage.iterations=Z.usage.iterations;return $;case"content_block_start":return $.content.push(Z.content_block),$;case"content_block_delta":{let Y=$.content.at(Z.index);switch(Z.delta.type){case"text_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,text:(Y.text||"")+Z.delta.text};break}case"citations_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,citations:[...Y.citations??[],Z.delta.citation]};break}case"input_json_delta":{if(Y&&a7(Y)){let J=Y[o7]||"";J+=Z.delta.partial_json;let K={...Y};if(Object.defineProperty(K,o7,{value:J,enumerable:!1,writable:!0}),J)try{K.input=bZ(J)}catch(W){let Q=new N(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${W}. JSON: ${J}`);V(this,uZ,"f").call(this,Q)}$.content[Z.index]=K}break}case"thinking_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,thinking:Y.thinking+Z.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,signature:Z.delta.signature};break}case"compaction_delta":{if(Y?.type==="compaction")$.content[Z.index]={...Y,content:(Y.content||"")+Z.delta.content};break}default:r7(Z.delta)}return $}case"content_block_stop":return $}},Symbol.asyncIterator)](){let X=[],Z=[],$=!1;return this.on("streamEvent",(Y)=>{let J=Z.shift();if(J)J.resolve(Y);else X.push(Y)}),this.on("end",()=>{$=!0;for(let Y of Z)Y.resolve(void 0);Z.length=0}),this.on("abort",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),this.on("error",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),{next:async()=>{if(!X.length){if($)return{value:void 0,done:!0};return new Promise((J,K)=>Z.push({resolve:J,reject:K})).then((J)=>J?{value:J,done:!1}:{value:void 0,done:!0})}return{value:X.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new _(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var EX;var pZ=w(()=>{EX=class EX extends Error{constructor(X){let Z=typeof X==="string"?X:X.map(($)=>{if($.type==="text")return $.text;return`[${$.type}]`}).join(" ");super(Z);this.name="ToolError",this.content=X}}});var s7=1e5,e7=`You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
10
- 1. Task Overview
11
- The user's core request and success criteria
12
- Any clarifications or constraints they specified
13
- 2. Current State
14
- What has been completed so far
15
- Files created, modified, or analyzed (with paths if relevant)
16
- Key outputs or artifacts produced
17
- 3. Important Discoveries
18
- Technical constraints or requirements uncovered
19
- Decisions made and their rationale
20
- Errors encountered and how they were resolved
21
- What approaches were tried that didn't work (and why)
22
- 4. Next Steps
23
- Specific actions needed to complete the task
24
- Any blockers or open questions to resolve
25
- Priority order if multiple steps remain
26
- 5. Context to Preserve
27
- User preferences or style requirements
28
- Domain-specific details that aren't obvious
29
- Any promises made to the user
30
- Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
31
- Wrap your summary in <summary></summary> tags.`;var X8=()=>{};function $8(){let X,Z;return{promise:new Promise((Y,J)=>{X=Y,Z=J}),resolve:X,reject:Z}}async function M$(X,Z=X.messages.at(-1)){if(!Z||Z.role!=="assistant"||!Z.content||typeof Z.content==="string")return null;let $=Z.content.filter((J)=>J.type==="tool_use");if($.length===0)return null;return{role:"user",content:await Promise.all($.map(async(J)=>{let K=X.tools.find((W)=>("name"in W?W.name:W.mcp_server_name)===J.name);if(!K||!("run"in K))return{type:"tool_result",tool_use_id:J.id,content:`Error: Tool '${J.name}' not found`,is_error:!0};try{let W=J.input;if("parse"in K&&K.parse)W=K.parse(W);let Q=await K.run(W);return{type:"tool_result",tool_use_id:J.id,content:Q}}catch(W){return{type:"tool_result",tool_use_id:J.id,content:W instanceof EX?W.content:`Error: ${W instanceof Error?W.message:String(W)}`,is_error:!0}}}))}}var KZ,jX,NX,B,WZ,b,r,YX,VZ,Z8,f6,QZ;var b6=w(()=>{n();pZ();R();f();X8();aX();QZ=class QZ{constructor(X,Z,$){KZ.add(this),this.client=X,jX.set(this,!1),NX.set(this,!1),B.set(this,void 0),WZ.set(this,void 0),b.set(this,void 0),r.set(this,void 0),YX.set(this,void 0),VZ.set(this,0),G(this,B,{params:{...Z,messages:structuredClone(Z.messages)}},"f");let J=["BetaToolRunner",...E6(Z.tools,Z.messages)].join(", ");G(this,WZ,{...$,headers:q([{"x-stainless-helper":J},$?.headers])},"f"),G(this,YX,$8(),"f")}async*[(jX=new WeakMap,NX=new WeakMap,B=new WeakMap,WZ=new WeakMap,b=new WeakMap,r=new WeakMap,YX=new WeakMap,VZ=new WeakMap,KZ=new WeakSet,Z8=async function(){let Z=V(this,B,"f").params.compactionControl;if(!Z||!Z.enabled)return!1;let $=0;if(V(this,b,"f")!==void 0)try{let z=await V(this,b,"f");$=z.usage.input_tokens+(z.usage.cache_creation_input_tokens??0)+(z.usage.cache_read_input_tokens??0)+z.usage.output_tokens}catch{return!1}let Y=Z.contextTokenThreshold??s7;if($<Y)return!1;let J=Z.model??V(this,B,"f").params.model,K=Z.summaryPrompt??e7,W=V(this,B,"f").params.messages;if(W[W.length-1].role==="assistant"){let z=W[W.length-1];if(Array.isArray(z.content)){let x=z.content.filter((H)=>H.type!=="tool_use");if(x.length===0)W.pop();else z.content=x}}let Q=await this.client.beta.messages.create({model:J,messages:[...W,{role:"user",content:[{type:"text",text:K}]}],max_tokens:V(this,B,"f").params.max_tokens},{headers:{"x-stainless-helper":"compaction"}});if(Q.content[0]?.type!=="text")throw new N("Expected text response for compaction");return V(this,B,"f").params.messages=[{role:"user",content:Q.content}],!0},Symbol.asyncIterator)](){var X;if(V(this,jX,"f"))throw new N("Cannot iterate over a consumed stream");G(this,jX,!0,"f"),G(this,NX,!0,"f"),G(this,r,void 0,"f");try{while(!0){let Z;try{if(V(this,B,"f").params.max_iterations&&V(this,VZ,"f")>=V(this,B,"f").params.max_iterations)break;G(this,NX,!1,"f"),G(this,r,void 0,"f"),G(this,VZ,(X=V(this,VZ,"f"),X++,X),"f"),G(this,b,void 0,"f");let{max_iterations:$,compactionControl:Y,...J}=V(this,B,"f").params;if(J.stream)Z=this.client.beta.messages.stream({...J},V(this,WZ,"f")),G(this,b,Z.finalMessage(),"f"),V(this,b,"f").catch(()=>{}),yield Z;else G(this,b,this.client.beta.messages.create({...J,stream:!1},V(this,WZ,"f")),"f"),yield V(this,b,"f");if(!await V(this,KZ,"m",Z8).call(this)){if(!V(this,NX,"f")){let{role:Q,content:z}=await V(this,b,"f");V(this,B,"f").params.messages.push({role:Q,content:z})}let W=await V(this,KZ,"m",f6).call(this,V(this,B,"f").params.messages.at(-1));if(W)V(this,B,"f").params.messages.push(W);else if(!V(this,NX,"f"))break}}finally{if(Z)Z.abort()}}if(!V(this,b,"f"))throw new N("ToolRunner concluded without a message from the server");V(this,YX,"f").resolve(await V(this,b,"f"))}catch(Z){throw G(this,jX,!1,"f"),V(this,YX,"f").promise.catch(()=>{}),V(this,YX,"f").reject(Z),G(this,YX,$8(),"f"),Z}}setMessagesParams(X){if(typeof X==="function")V(this,B,"f").params=X(V(this,B,"f").params);else V(this,B,"f").params=X;G(this,NX,!0,"f"),G(this,r,void 0,"f")}async generateToolResponse(){let X=await V(this,b,"f")??this.params.messages.at(-1);if(!X)return null;return V(this,KZ,"m",f6).call(this,X)}done(){return V(this,YX,"f").promise}async runUntilDone(){if(!V(this,jX,"f"))for await(let X of this);return this.done()}get params(){return V(this,B,"f").params}pushMessages(...X){this.setMessagesParams((Z)=>({...Z,messages:[...Z.messages,...X]}))}then(X,Z){return this.runUntilDone().then(X,Z)}};f6=async function(Z){if(V(this,r,"f")!==void 0)return V(this,r,"f");return G(this,r,M$(V(this,B,"f").params,Z),"f"),V(this,r,"f")}});var TX;var h6=w(()=>{R();HX();N6();TX=class TX{constructor(X,Z){this.iterator=X,this.controller=Z}async*decoder(){let X=new XX;for await(let Z of this.iterator)for(let $ of X.decode(Z))yield JSON.parse($);for(let Z of X.flush())yield JSON.parse(Z)}[Symbol.asyncIterator](){return this.decoder()}static fromResponse(X,Z){if(!X.body){if(Z.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new N("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new N("Attempted to iterate over a response with no body")}return new TX(dX(X.body),Z)}}});var zZ;var v6=w(()=>{h();u();f();h6();MX();ZX();zZ=class zZ extends T{create(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/messages/batches?beta=true",{body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"message-batches-2024-09-24"].toString()},Z?.headers])})}retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/messages/batches/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/messages/batches?beta=true",c,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"message-batches-2024-09-24"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/messages/batches/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}cancel(X,Z={},$){let{betas:Y}=Z??{};return this._client.post(j`/v1/messages/batches/${X}/cancel?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}async results(X,Z={},$){let Y=await this.retrieve(X);if(!Y.results_url)throw new N(`No batch \`results_url\`; Has it finished processing? ${Y.processing_status} - ${Y.id}`);let{betas:J}=Z??{};return this._client.get(Y.results_url,{...$,headers:q([{"anthropic-beta":[...J??[],"message-batches-2024-09-24"].toString(),Accept:"application/binary"},$?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((K,W)=>TX.fromResponse(W.response,W.controller))}}});function J8(X){if(!X.output_format)return X;if(X.output_config?.format)throw new N("Both output_format and output_config.format were provided. Please use only output_config.format (output_format is deprecated).");let{output_format:Z,...$}=X;return{...$,output_config:{...X.output_config,format:Z}}}var Y8,D$,JX;var g6=w(()=>{MX();h();I6();f();aX();S6();t7();b6();pZ();v6();v6();b6();pZ();Y8={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026"},D$=["claude-opus-4-6"];JX=class JX extends T{constructor(){super(...arguments);this.batches=new zZ(this._client)}create(X,Z){let $=J8(X),{betas:Y,...J}=$;if(J.model in Y8)console.warn(`The model '${J.model}' is deprecated and will reach end-of-life on ${Y8[J.model]}
32
- Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(J.model in D$&&J.thinking&&J.thinking.type==="enabled")console.warn(`Using Claude with ${J.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let K=this._client._options.timeout;if(!J.stream&&K==null){let Q=fZ[J.model]??void 0;K=this._client.calculateNonstreamingTimeout(J.max_tokens,Q)}let W=_Z(J.tools,J.messages);return this._client.post("/v1/messages?beta=true",{body:J,timeout:K??600000,...Z,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},W,Z?.headers]),stream:$.stream??!1})}parse(X,Z){return Z={...Z,headers:q([{"anthropic-beta":[...X.betas??[],"structured-outputs-2025-12-15"].toString()},Z?.headers])},this.create(X,Z).then(($)=>B6($,X,{logger:this._client.logger??console}))}stream(X,Z){return JZ.createMessage(this,X,Z)}countTokens(X,Z){let $=J8(X),{betas:Y,...J}=$;return this._client.post("/v1/messages/count_tokens?beta=true",{body:J,...Z,headers:q([{"anthropic-beta":[...Y??[],"token-counting-2024-11-01"].toString()},Z?.headers])})}toolRunner(X,Z){return new QZ(this._client,X,Z)}};JX.Batches=zZ;JX.BetaToolRunner=QZ;JX.ToolError=EX});var GZ;var c6=w(()=>{h();u();f();OX();ZX();GZ=class GZ extends T{create(X,Z={},$){let{betas:Y,...J}=Z??{};return this._client.post(j`/v1/skills/${X}/versions?beta=true`,xX({body:J,...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])},this._client))}retrieve(X,Z,$){let{skill_id:Y,betas:J}=Z;return this._client.get(j`/v1/skills/${Y}/versions/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},$?.headers])})}list(X,Z={},$){let{betas:Y,...J}=Z??{};return this._client.getAPIList(j`/v1/skills/${X}/versions?beta=true`,iX,{query:J,...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}delete(X,Z,$){let{skill_id:Y,betas:J}=Z;return this._client.delete(j`/v1/skills/${Y}/versions/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},$?.headers])})}}});var IX;var d6=w(()=>{h();c6();c6();u();f();OX();ZX();IX=class IX extends T{constructor(){super(...arguments);this.versions=new GZ(this._client)}create(X={},Z){let{betas:$,...Y}=X??{};return this._client.post("/v1/skills?beta=true",xX({body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"skills-2025-10-02"].toString()},Z?.headers])},this._client,!1))}retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/skills/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/skills?beta=true",iX,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"skills-2025-10-02"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/skills/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}};IX.Versions=GZ});var p;var m6=w(()=>{h();j6();j6();T6();T6();g6();g6();d6();d6();p=class p extends T{constructor(){super(...arguments);this.models=new tX(this._client),this.messages=new JX(this._client),this.files=new rX(this._client),this.skills=new IX(this._client)}};p.Models=tX;p.Messages=JX;p.Files=rX;p.Skills=IX});var FX;var u6=w(()=>{h();f();FX=class FX extends T{create(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/complete",{body:Y,timeout:this._client._options.timeout??600000,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers]),stream:X.stream??!1})}}});function K8(X){return X?.output_config?.format}function p6(X,Z,$){let Y=K8(Z);if(!Z||!("parse"in(Y??{})))return{...X,content:X.content.map((J)=>{if(J.type==="text")return Object.defineProperty({...J},"parsed_output",{value:null,enumerable:!1});return J}),parsed_output:null};return l6(X,Z,$)}function l6(X,Z,$){let Y=null,J=X.content.map((K)=>{if(K.type==="text"){let W=I$(Z,K.text);if(Y===null)Y=W;return Object.defineProperty({...K},"parsed_output",{value:W,enumerable:!1})}return K});return{...X,content:J,parsed_output:Y}}function I$(X,Z){let $=K8(X);if($?.type!=="json_schema")return null;try{if("parse"in $)return $.parse(Z);return JSON.parse(Z)}catch(Y){throw new N(`Failed to parse structured output: ${Y}`)}}var i6=w(()=>{R()});function z8(X){return X.type==="tool_use"||X.type==="server_tool_use"}function G8(X){}var g,KX,BX,NZ,lZ,wZ,UZ,iZ,qZ,t,CZ,nZ,oZ,wX,aZ,rZ,HZ,n6,W8,o6,a6,r6,t6,V8,Q8="__json_buf",xZ;var N8=w(()=>{n();CX();MX();k6();L6();i6();xZ=class xZ{constructor(X,Z){g.add(this),this.messages=[],this.receivedMessages=[],KX.set(this,void 0),BX.set(this,null),this.controller=new AbortController,NZ.set(this,void 0),lZ.set(this,()=>{}),wZ.set(this,()=>{}),UZ.set(this,void 0),iZ.set(this,()=>{}),qZ.set(this,()=>{}),t.set(this,{}),CZ.set(this,!1),nZ.set(this,!1),oZ.set(this,!1),wX.set(this,!1),aZ.set(this,void 0),rZ.set(this,void 0),HZ.set(this,void 0),o6.set(this,($)=>{if(G(this,nZ,!0,"f"),i($))$=new S;if($ instanceof S)return G(this,oZ,!0,"f"),this._emit("abort",$);if($ instanceof N)return this._emit("error",$);if($ instanceof Error){let Y=new N($.message);return Y.cause=$,this._emit("error",Y)}return this._emit("error",new N(String($)))}),G(this,NZ,new Promise(($,Y)=>{G(this,lZ,$,"f"),G(this,wZ,Y,"f")}),"f"),G(this,UZ,new Promise(($,Y)=>{G(this,iZ,$,"f"),G(this,qZ,Y,"f")}),"f"),V(this,NZ,"f").catch(()=>{}),V(this,UZ,"f").catch(()=>{}),G(this,BX,X,"f"),G(this,HZ,Z?.logger??console,"f")}get response(){return V(this,aZ,"f")}get request_id(){return V(this,rZ,"f")}async withResponse(){G(this,wX,!0,"f");let X=await V(this,NZ,"f");if(!X)throw Error("Could not resolve a `Response` object");return{data:this,response:X,request_id:X.headers.get("request-id")}}static fromReadableStream(X){let Z=new xZ(null);return Z._run(()=>Z._fromReadableStream(X)),Z}static createMessage(X,Z,$,{logger:Y}={}){let J=new xZ(Z,{logger:Y});for(let K of Z.messages)J._addMessageParam(K);return G(J,BX,{...Z,stream:!0},"f"),J._run(()=>J._createMessage(X,{...Z,stream:!0},{...$,headers:{...$?.headers,"X-Stainless-Helper-Method":"stream"}})),J}_run(X){X().then(()=>{this._emitFinal(),this._emit("end")},V(this,o6,"f"))}_addMessageParam(X){this.messages.push(X)}_addMessage(X,Z=!0){if(this.receivedMessages.push(X),Z)this._emit("message",X)}async _createMessage(X,Z,$){let Y=$?.signal,J;if(Y){if(Y.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),Y.addEventListener("abort",J)}try{V(this,g,"m",a6).call(this);let{response:K,data:W}=await X.create({...Z,stream:!0},{...$,signal:this.controller.signal}).withResponse();this._connected(K);for await(let Q of W)V(this,g,"m",r6).call(this,Q);if(W.controller.signal?.aborted)throw new S;V(this,g,"m",t6).call(this)}finally{if(Y&&J)Y.removeEventListener("abort",J)}}_connected(X){if(this.ended)return;G(this,aZ,X,"f"),G(this,rZ,X?.headers.get("request-id"),"f"),V(this,lZ,"f").call(this,X),this._emit("connect")}get ended(){return V(this,CZ,"f")}get errored(){return V(this,nZ,"f")}get aborted(){return V(this,oZ,"f")}abort(){this.controller.abort()}on(X,Z){return(V(this,t,"f")[X]||(V(this,t,"f")[X]=[])).push({listener:Z}),this}off(X,Z){let $=V(this,t,"f")[X];if(!$)return this;let Y=$.findIndex((J)=>J.listener===Z);if(Y>=0)$.splice(Y,1);return this}once(X,Z){return(V(this,t,"f")[X]||(V(this,t,"f")[X]=[])).push({listener:Z,once:!0}),this}emitted(X){return new Promise((Z,$)=>{if(G(this,wX,!0,"f"),X!=="error")this.once("error",$);this.once(X,Z)})}async done(){G(this,wX,!0,"f"),await V(this,UZ,"f")}get currentMessage(){return V(this,KX,"f")}async finalMessage(){return await this.done(),V(this,g,"m",n6).call(this)}async finalText(){return await this.done(),V(this,g,"m",W8).call(this)}_emit(X,...Z){if(V(this,CZ,"f"))return;if(X==="end")G(this,CZ,!0,"f"),V(this,iZ,"f").call(this);let $=V(this,t,"f")[X];if($)V(this,t,"f")[X]=$.filter((Y)=>!Y.once),$.forEach(({listener:Y})=>Y(...Z));if(X==="abort"){let Y=Z[0];if(!V(this,wX,"f")&&!$?.length)Promise.reject(Y);V(this,wZ,"f").call(this,Y),V(this,qZ,"f").call(this,Y),this._emit("end");return}if(X==="error"){let Y=Z[0];if(!V(this,wX,"f")&&!$?.length)Promise.reject(Y);V(this,wZ,"f").call(this,Y),V(this,qZ,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",V(this,g,"m",n6).call(this))}async _fromReadableStream(X,Z){let $=Z?.signal,Y;if($){if($.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),$.addEventListener("abort",Y)}try{V(this,g,"m",a6).call(this),this._connected(null);let J=_.fromReadableStream(X,this.controller);for await(let K of J)V(this,g,"m",r6).call(this,K);if(J.controller.signal?.aborted)throw new S;V(this,g,"m",t6).call(this)}finally{if($&&Y)$.removeEventListener("abort",Y)}}[(KX=new WeakMap,BX=new WeakMap,NZ=new WeakMap,lZ=new WeakMap,wZ=new WeakMap,UZ=new WeakMap,iZ=new WeakMap,qZ=new WeakMap,t=new WeakMap,CZ=new WeakMap,nZ=new WeakMap,oZ=new WeakMap,wX=new WeakMap,aZ=new WeakMap,rZ=new WeakMap,HZ=new WeakMap,o6=new WeakMap,g=new WeakSet,n6=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},W8=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");let Z=this.receivedMessages.at(-1).content.filter(($)=>$.type==="text").map(($)=>$.text);if(Z.length===0)throw new N("stream ended without producing a content block with type=text");return Z.join(" ")},a6=function(){if(this.ended)return;G(this,KX,void 0,"f")},r6=function(Z){if(this.ended)return;let $=V(this,g,"m",V8).call(this,Z);switch(this._emit("streamEvent",Z,$),Z.type){case"content_block_delta":{let Y=$.content.at(-1);switch(Z.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",Z.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",Z.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(z8(Y)&&Y.input)this._emit("inputJson",Z.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",Z.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}default:G8(Z.delta)}break}case"message_stop":{this._addMessageParam($),this._addMessage(p6($,V(this,BX,"f"),{logger:V(this,HZ,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",$.content.at(-1));break}case"message_start":{G(this,KX,$,"f");break}case"content_block_start":case"message_delta":break}},t6=function(){if(this.ended)throw new N("stream has ended, this shouldn't happen");let Z=V(this,KX,"f");if(!Z)throw new N("request ended without sending any chunks");return G(this,KX,void 0,"f"),p6(Z,V(this,BX,"f"),{logger:V(this,HZ,"f")})},V8=function(Z){let $=V(this,KX,"f");if(Z.type==="message_start"){if($)throw new N(`Unexpected event order, got ${Z.type} before receiving "message_stop"`);return Z.message}if(!$)throw new N(`Unexpected event order, got ${Z.type} before "message_start"`);switch(Z.type){case"message_stop":return $;case"message_delta":if($.stop_reason=Z.delta.stop_reason,$.stop_sequence=Z.delta.stop_sequence,$.usage.output_tokens=Z.usage.output_tokens,Z.usage.input_tokens!=null)$.usage.input_tokens=Z.usage.input_tokens;if(Z.usage.cache_creation_input_tokens!=null)$.usage.cache_creation_input_tokens=Z.usage.cache_creation_input_tokens;if(Z.usage.cache_read_input_tokens!=null)$.usage.cache_read_input_tokens=Z.usage.cache_read_input_tokens;if(Z.usage.server_tool_use!=null)$.usage.server_tool_use=Z.usage.server_tool_use;return $;case"content_block_start":return $.content.push({...Z.content_block}),$;case"content_block_delta":{let Y=$.content.at(Z.index);switch(Z.delta.type){case"text_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,text:(Y.text||"")+Z.delta.text};break}case"citations_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,citations:[...Y.citations??[],Z.delta.citation]};break}case"input_json_delta":{if(Y&&z8(Y)){let J=Y[Q8]||"";J+=Z.delta.partial_json;let K={...Y};if(Object.defineProperty(K,Q8,{value:J,enumerable:!1,writable:!0}),J)K.input=bZ(J);$.content[Z.index]=K}break}case"thinking_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,thinking:Y.thinking+Z.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,signature:Z.delta.signature};break}default:G8(Z.delta)}return $}case"content_block_stop":return $}},Symbol.asyncIterator)](){let X=[],Z=[],$=!1;return this.on("streamEvent",(Y)=>{let J=Z.shift();if(J)J.resolve(Y);else X.push(Y)}),this.on("end",()=>{$=!0;for(let Y of Z)Y.resolve(void 0);Z.length=0}),this.on("abort",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),this.on("error",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),{next:async()=>{if(!X.length){if($)return{value:void 0,done:!0};return new Promise((J,K)=>Z.push({resolve:J,reject:K})).then((J)=>J?{value:J,done:!1}:{value:void 0,done:!0})}return{value:X.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new _(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var OZ;var s6=w(()=>{h();u();f();h6();MX();ZX();OZ=class OZ extends T{create(X,Z){return this._client.post("/v1/messages/batches",{body:X,...Z})}retrieve(X,Z){return this._client.get(j`/v1/messages/batches/${X}`,Z)}list(X={},Z){return this._client.getAPIList("/v1/messages/batches",c,{query:X,...Z})}delete(X,Z){return this._client.delete(j`/v1/messages/batches/${X}`,Z)}cancel(X,Z){return this._client.post(j`/v1/messages/batches/${X}/cancel`,Z)}async results(X,Z){let $=await this.retrieve(X);if(!$.results_url)throw new N(`No batch \`results_url\`; Has it finished processing? ${$.processing_status} - ${$.id}`);return this._client.get($.results_url,{...Z,headers:q([{Accept:"application/binary"},Z?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((Y,J)=>TX.fromResponse(J.response,J.controller))}}});var UX,w8,B$;var e6=w(()=>{h();f();aX();N8();i6();s6();s6();I6();UX=class UX extends T{constructor(){super(...arguments);this.batches=new OZ(this._client)}create(X,Z){if(X.model in w8)console.warn(`The model '${X.model}' is deprecated and will reach end-of-life on ${w8[X.model]}
33
- Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(X.model in B$&&X.thinking&&X.thinking.type==="enabled")console.warn(`Using Claude with ${X.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let $=this._client._options.timeout;if(!X.stream&&$==null){let J=fZ[X.model]??void 0;$=this._client.calculateNonstreamingTimeout(X.max_tokens,J)}let Y=_Z(X.tools,X.messages);return this._client.post("/v1/messages",{body:X,timeout:$??600000,...Z,headers:q([Y,Z?.headers]),stream:X.stream??!1})}parse(X,Z){return this.create(X,Z).then(($)=>l6($,X,{logger:this._client.logger??console}))}stream(X,Z){return xZ.createMessage(this,X,Z,{logger:this._client.logger??console})}countTokens(X,Z){return this._client.post("/v1/messages/count_tokens",{body:X,...Z})}};w8={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026","claude-3-5-haiku-latest":"February 19th, 2026","claude-3-5-haiku-20241022":"February 19th, 2026"},B$=["claude-opus-4-6"];UX.Batches=OZ});var SX;var X7=w(()=>{h();u();f();ZX();SX=class SX extends T{retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/models/${X}`,{...$,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/models",c,{query:Y,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers])})}}});var U8=w(()=>{m6();u6();e6();X7();c7()});var MZ=(X)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[X]?.trim()??void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(X)?.trim();return};var q8=()=>{};class I{constructor({baseURL:X=MZ("ANTHROPIC_BASE_URL"),apiKey:Z=MZ("ANTHROPIC_API_KEY")??null,authToken:$=MZ("ANTHROPIC_AUTH_TOKEN")??null,...Y}={}){Z7.add(this),tZ.set(this,void 0);let J={apiKey:Z,authToken:$,...Y,baseURL:X||"https://api.anthropic.com"};if(!J.dangerouslyAllowBrowser&&j7())throw new N(`It looks like you're running in a browser-like environment.
34
-
35
- This is disabled by default, as it risks exposing your secret API credentials to attackers.
36
- If you understand the risks and have appropriate mitigations in place,
37
- you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,
38
-
39
- new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
40
- `);this.baseURL=J.baseURL,this.timeout=J.timeout??$7.DEFAULT_TIMEOUT,this.logger=J.logger??console;let K="warn";this.logLevel=K,this.logLevel=w6(J.logLevel,"ClientOptions.logLevel",this)??w6(MZ("ANTHROPIC_LOG"),"process.env['ANTHROPIC_LOG']",this)??K,this.fetchOptions=J.fetchOptions,this.maxRetries=J.maxRetries??2,this.fetch=J.fetch??I7(),G(this,tZ,B7,"f"),this._options=J,this.apiKey=typeof Z==="string"?Z:null,this.authToken=$}withOptions(X){return new this.constructor({...this._options,baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,authToken:this.authToken,...X})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:X,nulls:Z}){if(X.get("x-api-key")||X.get("authorization"))return;if(this.apiKey&&X.get("x-api-key"))return;if(Z.has("x-api-key"))return;if(this.authToken&&X.get("authorization"))return;if(Z.has("authorization"))return;throw Error('Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted')}async authHeaders(X){return q([await this.apiKeyAuth(X),await this.bearerAuth(X)])}async apiKeyAuth(X){if(this.apiKey==null)return;return q([{"X-Api-Key":this.apiKey}])}async bearerAuth(X){if(this.authToken==null)return;return q([{Authorization:`Bearer ${this.authToken}`}])}stringifyQuery(X){return L7(X)}getUserAgent(){return`${this.constructor.name}/JS ${e}`}defaultIdempotencyKey(){return`stainless-node-retry-${$6()}`}makeStatusError(X,Z,$,Y){return F.generate(X,Z,$,Y)}buildURL(X,Z,$){let Y=!V(this,Z7,"m",C8).call(this)&&$||this.baseURL,J=C7(X)?new URL(X):new URL(Y+(Y.endsWith("/")&&X.startsWith("/")?X.slice(1):X)),K=this.defaultQuery(),W=Object.fromEntries(J.searchParams);if(!K6(K)||!K6(W))Z={...W,...K,...Z};if(typeof Z==="object"&&Z&&!Array.isArray(Z))J.search=this.stringifyQuery(Z);return J.toString()}_calculateNonstreamingTimeout(X){if(3600*X/128000>600)throw new N("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details");return 600000}async prepareOptions(X){}async prepareRequest(X,{url:Z,options:$}){}get(X,Z){return this.methodRequest("get",X,Z)}post(X,Z){return this.methodRequest("post",X,Z)}patch(X,Z){return this.methodRequest("patch",X,Z)}put(X,Z){return this.methodRequest("put",X,Z)}delete(X,Z){return this.methodRequest("delete",X,Z)}methodRequest(X,Z,$){return this.request(Promise.resolve($).then((Y)=>{return{method:X,path:Z,...Y}}))}request(X,Z=null){return new QX(this,this.makeRequest(X,Z,void 0))}async makeRequest(X,Z,$){let Y=await X,J=Y.maxRetries??this.maxRetries;if(Z==null)Z=J;await this.prepareOptions(Y);let{req:K,url:W,timeout:Q}=await this.buildRequest(Y,{retryCount:J-Z});await this.prepareRequest(K,{url:W,options:Y});let z="log_"+(Math.random()*16777216|0).toString(16).padStart(6,"0"),x=$===void 0?"":`, retryOf: ${$}`,H=Date.now();if(L(this).debug(`[${z}] sending request`,o({retryOfRequestLogID:$,method:Y.method,url:W,options:Y,headers:K.headers})),Y.signal?.aborted)throw new S;let M=new AbortController,U=await this.fetchWithTimeout(W,K,Q,M).catch(RX),O=Date.now();if(U instanceof globalThis.Error){let l=`retrying, ${Z} attempts remaining`;if(Y.signal?.aborted)throw new S;let m=i(U)||/timed? ?out/i.test(String(U)+("cause"in U?String(U.cause):""));if(Z)return L(this).info(`[${z}] connection ${m?"timed out":"failed"} - ${l}`),L(this).debug(`[${z}] connection ${m?"timed out":"failed"} (${l})`,o({retryOfRequestLogID:$,url:W,durationMs:O-H,message:U.message})),this.retryRequest(Y,Z,$??z);if(L(this).info(`[${z}] connection ${m?"timed out":"failed"} - error; no more retries left`),L(this).debug(`[${z}] connection ${m?"timed out":"failed"} (error; no more retries left)`,o({retryOfRequestLogID:$,url:W,durationMs:O-H,message:U.message})),m)throw new PX;throw new WX({cause:U})}let d=[...U.headers.entries()].filter(([l])=>l==="request-id").map(([l,m])=>", "+l+": "+JSON.stringify(m)).join(""),kX=`[${z}${x}${d}] ${K.method} ${W} ${U.ok?"succeeded":"failed"} with status ${U.status} in ${O-H}ms`;if(!U.ok){let l=await this.shouldRetry(U);if(Z&&l){let DZ=`retrying, ${Z} attempts remaining`;return await F7(U.body),L(this).info(`${kX} - ${DZ}`),L(this).debug(`[${z}] response error (${DZ})`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,durationMs:O-H})),this.retryRequest(Y,Z,$??z,U.headers)}let m=l?"error; no more retries left":"error; not retryable";L(this).info(`${kX} - ${m}`);let z7=await U.text().catch((DZ)=>RX(DZ).message),G7=jZ(z7),N7=G7?void 0:z7;throw L(this).debug(`[${z}] response error (${m})`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,message:N7,durationMs:Date.now()-H})),this.makeStatusError(U.status,G7,N7,U.headers)}return L(this).info(kX),L(this).debug(`[${z}] response start`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,durationMs:O-H})),{response:U,options:Y,controller:M,requestLogID:z,retryOfRequestLogID:$,startTime:H}}getAPIList(X,Z,$){return this.requestAPIList(Z,$&&"then"in $?$.then((Y)=>({method:"get",path:X,...Y})):{method:"get",path:X,...$})}requestAPIList(X,Z){let $=this.makeRequest(Z,null,void 0);return new RZ(this,$,X)}async fetchWithTimeout(X,Z,$,Y){let{signal:J,method:K,...W}=Z||{},Q=this._makeAbort(Y);if(J)J.addEventListener("abort",Q,{once:!0});let z=setTimeout(Q,$),x=globalThis.ReadableStream&&W.body instanceof globalThis.ReadableStream||typeof W.body==="object"&&W.body!==null&&Symbol.asyncIterator in W.body,H={signal:Y.signal,...x?{duplex:"half"}:{},method:"GET",...W};if(K)H.method=K.toUpperCase();try{return await this.fetch.call(void 0,X,H)}finally{clearTimeout(z)}}async shouldRetry(X){let Z=X.headers.get("x-should-retry");if(Z==="true")return!0;if(Z==="false")return!1;if(X.status===408)return!0;if(X.status===409)return!0;if(X.status===429)return!0;if(X.status>=500)return!0;return!1}async retryRequest(X,Z,$,Y){let J,K=Y?.get("retry-after-ms");if(K){let Q=parseFloat(K);if(!Number.isNaN(Q))J=Q}let W=Y?.get("retry-after");if(W&&!J){let Q=parseFloat(W);if(!Number.isNaN(Q))J=Q*1000;else J=Date.parse(W)-Date.now()}if(J===void 0){let Q=X.maxRetries??this.maxRetries;J=this.calculateDefaultRetryTimeoutMillis(Z,Q)}return await O7(J),this.makeRequest(X,Z-1,$)}calculateDefaultRetryTimeoutMillis(X,Z){let J=Z-X,K=Math.min(0.5*Math.pow(2,J),8),W=1-Math.random()*0.25;return K*W*1000}calculateNonstreamingTimeout(X,Z){if(3600000*X/128000>600000||Z!=null&&X>Z)throw new N("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details");return 600000}async buildRequest(X,{retryCount:Z=0}={}){let $={...X},{method:Y,path:J,query:K,defaultBaseURL:W}=$,Q=this.buildURL(J,K,W);if("timeout"in $)x7("timeout",$.timeout);$.timeout=$.timeout??this.timeout;let{bodyHeaders:z,body:x}=this.buildBody({options:$}),H=await this.buildHeaders({options:X,method:Y,bodyHeaders:z,retryCount:Z});return{req:{method:Y,headers:H,...$.signal&&{signal:$.signal},...globalThis.ReadableStream&&x instanceof globalThis.ReadableStream&&{duplex:"half"},...x&&{body:x},...this.fetchOptions??{},...$.fetchOptions??{}},url:Q,timeout:$.timeout}}async buildHeaders({options:X,method:Z,bodyHeaders:$,retryCount:Y}){let J={};if(this.idempotencyHeader&&Z!=="get"){if(!X.idempotencyKey)X.idempotencyKey=this.defaultIdempotencyKey();J[this.idempotencyHeader]=X.idempotencyKey}let K=q([J,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(Y),...X.timeout?{"X-Stainless-Timeout":String(Math.trunc(X.timeout/1000))}:{},...T7(),...this._options.dangerouslyAllowBrowser?{"anthropic-dangerous-direct-browser-access":"true"}:void 0,"anthropic-version":"2023-06-01"},await this.authHeaders(X),this._options.defaultHeaders,$,X.headers]);return this.validateHeaders(K),K.values}_makeAbort(X){return()=>X.abort()}buildBody({options:{body:X,headers:Z}}){if(!X)return{bodyHeaders:void 0,body:void 0};let $=q([Z]);if(ArrayBuffer.isView(X)||X instanceof ArrayBuffer||X instanceof DataView||typeof X==="string"&&$.values.has("content-type")||globalThis.Blob&&X instanceof globalThis.Blob||X instanceof FormData||X instanceof URLSearchParams||globalThis.ReadableStream&&X instanceof globalThis.ReadableStream)return{bodyHeaders:void 0,body:X};else if(typeof X==="object"&&((Symbol.asyncIterator in X)||(Symbol.iterator in X)&&("next"in X)&&typeof X.next==="function"))return{bodyHeaders:void 0,body:TZ(X)};else if(typeof X==="object"&&$.values.get("content-type")==="application/x-www-form-urlencoded")return{bodyHeaders:{"content-type":"application/x-www-form-urlencoded"},body:this.stringifyQuery(X)};else return V(this,tZ,"f").call(this,{body:X,headers:$})}}var Z7,$7,tZ,C8,H8="\\n\\nHuman:",x8="\\n\\nAssistant:",qX;var Y7=w(()=>{n();q7();VX();M7();CX();V6();HX();S7();k7();W6();R();u();D6();U8();LZ();u6();X7();m6();e6();V6();f();q8();BZ();VX();$7=I,tZ=new WeakMap,Z7=new WeakSet,C8=function(){return this.baseURL!=="https://api.anthropic.com"};I.Anthropic=$7;I.HUMAN_PROMPT=H8;I.AI_PROMPT=x8;I.DEFAULT_TIMEOUT=600000;I.AnthropicError=N;I.APIError=F;I.APIConnectionError=WX;I.APIConnectionTimeoutError=PX;I.APIUserAbortError=S;I.NotFoundError=bX;I.ConflictError=hX;I.RateLimitError=gX;I.BadRequestError=yX;I.AuthenticationError=_X;I.InternalServerError=cX;I.PermissionDeniedError=fX;I.UnprocessableEntityError=vX;I.toFile=PZ;qX=class qX extends I{constructor(){super(...arguments);this.completions=new FX(this),this.messages=new UX(this),this.models=new SX(this),this.beta=new p(this)}};qX.Completions=FX;qX.Messages=UX;qX.Models=SX;qX.Beta=p});var O8=w(()=>{Y7();D6();LZ();Y7();u();R()});function m4(X){return X instanceof M8||X instanceof S||X instanceof Error&&X.name==="AbortError"}function u4(X,Z){return X instanceof Error&&X.message===Z}function p4(X){return X instanceof Error?X:Error(String(X))}function f$(X){return X instanceof Error?X.message:String(X)}function LX(X){if(X&&typeof X==="object"&&"code"in X&&typeof X.code==="string")return X.code;return}function l4(X){return LX(X)==="ENOENT"}function i4(X){if(X&&typeof X==="object"&&"path"in X&&typeof X.path==="string")return X.path;return}function n4(X){let Z=LX(X);return Z==="ENOENT"||Z==="EACCES"||Z==="EPERM"||Z==="ENOTDIR"||Z==="ELOOP"}function o4(X){let Z=f$(X);if(!X||typeof X!=="object"||!("isAxiosError"in X)||!X.isAxiosError)return{kind:"other",message:Z};let $=X,Y=$.response?.status;if(Y===401||Y===403)return{kind:"auth",status:Y,message:Z};if($.code==="ECONNABORTED")return{kind:"timeout",status:Y,message:Z};if($.code==="ECONNREFUSED"||$.code==="ENOTFOUND")return{kind:"network",status:Y,message:Z};return{kind:"http",status:Y,message:Z}}var L$,k$,M8,R$,P$,y$,_$;var A8=w(()=>{O8();L$=class L$ extends Error{constructor(X,Z){super(X,Z);this.name=this.constructor.name}};k$=class k$ extends Error{};M8=class M8 extends Error{constructor(X){super(X);this.name="AbortError"}};R$=class R$ extends Error{filePath;defaultConfig;constructor(X,Z,$){super(X);this.name="ConfigParseError",this.filePath=Z,this.defaultConfig=$}};P$=class P$ extends Error{stdout;stderr;code;interrupted;constructor(X,Z,$,Y){super("Shell command failed");this.stdout=X;this.stderr=Z;this.code=$;this.interrupted=Y;this.name="ShellError"}};y$=class y$ extends Error{formattedMessage;constructor(X,Z){super(X);this.formattedMessage=Z;this.name="TeleportOperationError"}};_$=class _$ extends Error{telemetryMessage;constructor(X,Z){super(X);this.name="TelemetrySafeError",this.telemetryMessage=Z??X}}});function D8({writeFn:X,flushIntervalMs:Z=1000,maxBufferSize:$=100,maxBufferBytes:Y=1/0,immediateMode:J=!1}){let K=[],W=0,Q=null,z=null;function x(){if(Q)clearTimeout(Q),Q=null}function H(){if(z)X(z.join("")),z=null;if(K.length===0)return;X(K.join("")),K=[],W=0,x()}function M(){if(!Q)Q=setTimeout(H,Z)}function U(){if(z){z.push(...K),K=[],W=0,x();return}let O=K;K=[],W=0,x(),z=O,setImmediate(()=>{let d=z;if(z=null,d)X(d.join(""))})}return{write(O){if(J){X(O);return}if(K.push(O),W+=O.length,M(),K.length>=$||W>=Y)U()},flush:H,dispose(){H()}}}var E8=()=>{};function b$(X){let Z=[],$=X.match(/^MCP server ["']([^"']+)["']/);if($&&$[1])Z.push("mcp"),Z.push($[1].toLowerCase());else{let K=X.match(/^([^:[]+):/);if(K&&K[1])Z.push(K[1].trim().toLowerCase())}let Y=X.match(/^\[([^\]]+)]/);if(Y&&Y[1])Z.push(Y[1].trim().toLowerCase());if(X.toLowerCase().includes("1p event:"))Z.push("1p");let J=X.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(J&&J[1]){let K=J[1].trim().toLowerCase();if(K.length<30&&!K.includes(" "))Z.push(K)}return Array.from(new Set(Z))}function h$(X,Z){if(!Z)return!0;if(X.length===0)return!1;if(Z.isExclusive)return!X.some(($)=>Z.exclude.includes($));else return X.some(($)=>Z.include.includes($))}function I8(X,Z){if(!Z)return!0;let $=b$(X);return h$($,Z)}var T8;var F8=w(()=>{j8();T8=s((X)=>{if(!X||X.trim()==="")return null;let Z=X.split(",").map((K)=>K.trim()).filter(Boolean);if(Z.length===0)return null;let $=Z.some((K)=>K.startsWith("!")),Y=Z.some((K)=>!K.startsWith("!"));if($&&Y)return null;let J=Z.map((K)=>K.replace(/^!/,"").toLowerCase());return{include:$?[]:J,exclude:$?J:[],isExclusive:$}})});import*as C from"fs";import{mkdir as v$,open as sZ,readdir as g$,readFile as B8,rename as c$,rmdir as d$,rm as m$,stat as u$,unlink as p$}from"fs/promises";import{homedir as S8}from"os";import*as k from"path";function L8(X,Z){if(Z.startsWith("//")||Z.startsWith("\\\\"))return{resolvedPath:Z,isSymlink:!1,isCanonical:!1};try{let $=X.lstatSync(Z);if($.isFIFO()||$.isSocket()||$.isCharacterDevice()||$.isBlockDevice())return{resolvedPath:Z,isSymlink:!1,isCanonical:!1};let Y=X.realpathSync(Z);return{resolvedPath:Y,isSymlink:Y!==Z,isCanonical:!0}}catch($){return{resolvedPath:Z,isSymlink:!1,isCanonical:!1}}}function Y5(X,Z,$){let{resolvedPath:Y}=L8(X,Z);if($.has(Y))return!0;return $.add(Y),!1}function l$(X,Z){let $=Z,Y=[];while($!==k.dirname($)){let J;try{J=X.lstatSync($)}catch{Y.unshift(k.basename($)),$=k.dirname($);continue}if(J.isSymbolicLink())try{let K=X.realpathSync($);return Y.length===0?K:k.join(K,...Y)}catch{let K=X.readlinkSync($),W=k.isAbsolute(K)?K:k.resolve(k.dirname($),K);return Y.length===0?W:k.join(W,...Y)}try{let K=X.realpathSync($);if(K!==$)return Y.length===0?K:k.join(K,...Y)}catch{}return}return}function J5(X){let Z=X;if(Z==="~")Z=S8().normalize("NFC");else if(Z.startsWith("~/"))Z=k.join(S8().normalize("NFC"),Z.slice(2));let $=new Set,Y=eZ();if($.add(Z),Z.startsWith("//")||Z.startsWith("\\\\"))return Array.from($);try{let W=Z,Q=new Set,z=40;for(let x=0;x<z;x++){if(Q.has(W))break;if(Q.add(W),!Y.existsSync(W)){if(W===Z){let O=l$(Y,Z);if(O!==void 0)$.add(O)}break}let H=Y.lstatSync(W);if(H.isFIFO()||H.isSocket()||H.isCharacterDevice()||H.isBlockDevice())break;if(!H.isSymbolicLink())break;let M=Y.readlinkSync(W),U=k.isAbsolute(M)?M:k.resolve(k.dirname(W),M);$.add(U),W=U}}catch{}let{resolvedPath:J,isSymlink:K}=L8(Y,Z);if(K&&J!==Z)$.add(J);return Array.from($)}function eZ(){return n$}async function K5(X,Z,$){let z=[];try{const Y=A(z,await sZ(X,"r"),1);let J=(await Y.stat()).size;if(J<=Z)return null;let K=Math.min(J-Z,$);let W=Buffer.allocUnsafe(K);let Q=0;while(Q<K){let{bytesRead:O}=await Y.read(W,Q,K-Q,Z+Q);if(O===0)break;Q+=O}return{content:W.toString("utf8",0,Q),bytesRead:Q,bytesTotal:J}}catch(x){var H=x,M=1}finally{var U=D(z,H,M);U&&await U}}async function W5(X,Z){let z=[];try{const $=A(z,await sZ(X,"r"),1);let Y=(await $.stat()).size;if(Y===0)return{content:"",bytesRead:0,bytesTotal:0};let J=Math.max(0,Y-Z);let K=Y-J;let W=Buffer.allocUnsafe(K);let Q=0;while(Q<K){let{bytesRead:O}=await $.read(W,Q,K-Q,J+Q);if(O===0)break;Q+=O}return{content:W.toString("utf8",0,Q),bytesRead:Q,bytesTotal:Y}}catch(x){var H=x,M=1}finally{var U=D(z,H,M);U&&await U}}async function*V5(X){let $=await sZ(X,"r");try{let J=(await $.stat()).size,K=Buffer.alloc(0),W=Buffer.alloc(4096);while(J>0){let Q=Math.min(4096,J);J-=Q,await $.read(W,0,Q,J);let z=Buffer.concat([W.subarray(0,Q),K]),x=z.indexOf(10);if(x===-1){K=z;continue}K=Buffer.from(z.subarray(0,x));let H=z.toString("utf8",x+1).split(`
41
- `);for(let M=H.length-1;M>=0;M--){let U=H[M];if(U)yield U}}if(K.length>0)yield K.toString("utf8")}finally{await $.close()}}var i$,n$;var k8=w(()=>{A8();J7();i$={cwd(){return process.cwd()},existsSync(X){let $=[];try{const Z=A($,E`fs.existsSync(${X})`,0);return C.existsSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},async stat(X){return u$(X)},async readdir(X){return g$(X,{withFileTypes:!0})},async unlink(X){return p$(X)},async rmdir(X){return d$(X)},async rm(X,Z){return m$(X,Z)},async mkdir(X,Z){try{await v$(X,{recursive:!0,...Z})}catch($){if(LX($)!=="EEXIST")throw $}},async readFile(X,Z){return B8(X,{encoding:Z.encoding})},async rename(X,Z){return c$(X,Z)},statSync(X){let $=[];try{const Z=A($,E`fs.statSync(${X})`,0);return C.statSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},lstatSync(X){let $=[];try{const Z=A($,E`fs.lstatSync(${X})`,0);return C.lstatSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readFileSync(X,Z){let Y=[];try{const $=A(Y,E`fs.readFileSync(${X})`,0);return C.readFileSync(X,{encoding:Z.encoding})}catch(J){var K=J,W=1}finally{D(Y,K,W)}},readFileBytesSync(X){let $=[];try{const Z=A($,E`fs.readFileBytesSync(${X})`,0);return C.readFileSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readSync(X,Z){let J=[];try{const $=A(J,E`fs.readSync(${X}, ${Z.length} bytes)`,0);let Y=void 0;try{Y=C.openSync(X,"r");let z=Buffer.alloc(Z.length),x=C.readSync(Y,z,0,Z.length,0);return{buffer:z,bytesRead:x}}finally{if(Y)C.closeSync(Y)}}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},appendFileSync(X,Z,$){let J=[];try{const Y=A(J,E`fs.appendFileSync(${X}, ${Z.length} chars)`,0);if($?.mode!==void 0)try{let z=C.openSync(X,"ax",$.mode);try{C.appendFileSync(z,Z)}finally{C.closeSync(z)}return}catch(z){if(LX(z)!=="EEXIST")throw z}C.appendFileSync(X,Z)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},copyFileSync(X,Z){let Y=[];try{const $=A(Y,E`fs.copyFileSync(${X} → ${Z})`,0);C.copyFileSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},unlinkSync(X){let $=[];try{const Z=A($,E`fs.unlinkSync(${X})`,0);C.unlinkSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},renameSync(X,Z){let Y=[];try{const $=A(Y,E`fs.renameSync(${X} → ${Z})`,0);C.renameSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},linkSync(X,Z){let Y=[];try{const $=A(Y,E`fs.linkSync(${X} → ${Z})`,0);C.linkSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},symlinkSync(X,Z,$){let J=[];try{const Y=A(J,E`fs.symlinkSync(${X} → ${Z})`,0);C.symlinkSync(X,Z,$)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},readlinkSync(X){let $=[];try{const Z=A($,E`fs.readlinkSync(${X})`,0);return C.readlinkSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},realpathSync(X){let $=[];try{const Z=A($,E`fs.realpathSync(${X})`,0);return C.realpathSync(X).normalize("NFC")}catch(Y){var J=Y,K=1}finally{D($,J,K)}},mkdirSync(X,Z){let J=[];try{const $=A(J,E`fs.mkdirSync(${X})`,0);let Y={recursive:!0};if(Z?.mode!==void 0)Y.mode=Z.mode;try{C.mkdirSync(X,Y)}catch(z){if(LX(z)!=="EEXIST")throw z}}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},readdirSync(X){let $=[];try{const Z=A($,E`fs.readdirSync(${X})`,0);return C.readdirSync(X,{withFileTypes:!0})}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readdirStringSync(X){let $=[];try{const Z=A($,E`fs.readdirStringSync(${X})`,0);return C.readdirSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},isDirEmptySync(X){let Y=[];try{const Z=A(Y,E`fs.isDirEmptySync(${X})`,0);let $=this.readdirSync(X);return $.length===0}catch(J){var K=J,W=1}finally{D(Y,K,W)}},rmdirSync(X){let $=[];try{const Z=A($,E`fs.rmdirSync(${X})`,0);C.rmdirSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},rmSync(X,Z){let Y=[];try{const $=A(Y,E`fs.rmSync(${X})`,0);C.rmSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},createWriteStream(X){return C.createWriteStream(X)},async readFileBytes(X,Z){if(Z===void 0)return B8(X);let $=await sZ(X,"r");try{let{size:Y}=await $.stat(),J=Math.min(Y,Z),K=Buffer.allocUnsafe(J),W=0;while(W<J){let{bytesRead:Q}=await $.read(K,W,J-W,W);if(Q===0)break;W+=Q}return W<J?K.subarray(0,W):K}finally{await $.close()}}},n$=i$});import{appendFile as r$,mkdir as t$,symlink as s$,unlink as e$}from"fs/promises";import{dirname as b8,join as h8}from"path";function D5(){let X=AZ();return v8=!0,AZ.cache.clear?.(),X}function $1(X){if(!AZ())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Z=Z1();return I8(X,Z)}function E5(X){Q7=X}function j5(){return Q7}async function Y1(X,Z,$,Y){if(X)await t$(Z,{recursive:!0}).catch(()=>{});await r$($,Y),m8()}function J1(){}function K1(){if(!X6){let X=null;X6=D8({writeFn:(Z)=>{let $=d8(),Y=b8($),J=X!==Y;if(X=Y,AZ()){if(J)try{eZ().mkdirSync(Y)}catch{}eZ().appendFileSync($,Z),m8();return}K7=K7.then(Y1.bind(null,J,Y,$,Z)).catch(J1)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:AZ()}),w7(async()=>{X6?.dispose(),await K7})}return X6}function W1(X,{level:Z}={level:"debug"}){if(V7[Z]<V7[X1()])return;if(!$1(X))return;if(Q7&&X.includes(`
42
- `))X=_8(X);let Y=`${new Date().toISOString()} [${Z.toUpperCase()}] ${X.trim()}
43
- `;if(g8()){f8(Y);return}K1().write(Y)}function d8(){return c8()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??h8(y8(),"debug",`${R8()}.txt`)}function T5(X,Z){}var V7,X1,v8=!1,AZ,Z1,g8,c8,Q7=!1,X6=null,K7,m8;var u8=w(()=>{j8();P8();E8();U7();F8();o$();k8();a$();J7();V7={verbose:0,debug:1,info:2,warn:3,error:4},X1=s(()=>{let X=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(X&&Object.hasOwn(V7,X))return X;return"debug"}),AZ=s(()=>{return v8||W7(process.env.DEBUG)||W7(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||g8()||process.argv.some((X)=>X.startsWith("--debug="))||c8()!==null});Z1=s(()=>{let X=process.argv.find(($)=>$.startsWith("--debug="));if(!X)return null;let Z=X.substring(8);return T8(Z)}),g8=s(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-d2e")}),c8=s(()=>{for(let X=0;X<process.argv.length;X++){let Z=process.argv[X];if(Z.startsWith("--debug-file="))return Z.substring(13);if(Z==="--debug-file"&&X+1<process.argv.length)return process.argv[X+1]}return null});K7=Promise.resolve();m8=s(async()=>{try{let X=d8(),Z=b8(X),$=h8(Z,"latest");await e$($).catch(()=>{}),await s$(X,$)}catch{}})});import{closeSync as V1,writeFileSync as p8,fsyncSync as Q1,openSync as z1}from"fs";function N1(){return G1}function _8(X,Z,$){let J=[];try{const Y=A(J,E`JSON.stringify(${X})`,0);return JSON.stringify(X,Z,$)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}}function P5(X,Z){let Y=[];try{const $=A(Y,E`structuredClone(${X})`,0);return structuredClone(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}}function y5(X,Z,$){let K=[];try{const Y=A(K,E`fs.writeFileSync(${X}, ${Z})`,0);let J=$!==null&&typeof $==="object"&&"flush"in $&&$.flush===!0;if(J){let x=typeof $==="object"&&"encoding"in $?$.encoding:void 0,H=typeof $==="object"&&"mode"in $?$.mode:void 0,M;try{M=z1(X,"w",H),p8(M,Z,{encoding:x??void 0}),Q1(M)}finally{if(M!==void 0)V1(M)}}else p8(X,Z,$)}catch(W){var Q=W,z=1}finally{D(K,Q,z)}}var k5,G1,E,R5=(X,Z)=>{let Y=[];try{const $=A(Y,E`JSON.parse(${X})`,0);return typeof Z>"u"?JSON.parse(X):JSON.parse(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}};var J7=w(()=>{P8();u8();k5=(()=>{let X=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(X!==void 0){let Z=Number(X);if(!Number.isNaN(Z)&&Z>=0)return Z}return 20})(),G1={[Symbol.dispose](){}};E=N1});
44
- export{D8 as fga,E8 as gga,w7 as hga,U1 as iga,U7 as jga,F as kga,S as lga,WX as mga,PX as nga,_X as oga,bX as pga,MX as qga,qX as rga,O8 as sga,L$ as tga,k$ as uga,M8 as vga,m4 as wga,R$ as xga,P$ as yga,y$ as zga,_$ as Aga,u4 as Bga,p4 as Cga,f$ as Dga,LX as Ega,l4 as Fga,i4 as Gga,n4 as Hga,o4 as Iga,A8 as Jga,E as Kga,_8 as Lga,R5 as Mga,P5 as Nga,y5 as Oga,J7 as Pga,L8 as Qga,Y5 as Rga,J5 as Sga,eZ as Tga,K5 as Uga,W5 as Vga,V5 as Wga,k8 as Xga,AZ as Yga,D5 as Zga,g8 as _ga,E5 as $ga,j5 as aha,W1 as bha,d8 as cha,T5 as dha,u8 as eha};
@@ -1,2 +0,0 @@
1
- import{Ch as y,Eh as A,Fh as c}from"./cli-0.1.11-n24p2y0p.mjs";import{SU as Q,eT as b,vV as G}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as _}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as W}from"./cli-0.1.11-x37jysc0.mjs";import{Cba as L,Vba as D}from"./cli-0.1.11-v7bwjqf0.mjs";import{Bfa as P,Nfa as p}from"./cli-0.1.11-nx8a99hz.mjs";import{ega as j}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as X,Rna as S}from"./cli-0.1.11-yrfxpjhr.mjs";function T(){let q=y();if(!q||!q.available||q.granted)return!1;return A(q)!==null}function m(){if(!T())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=v)return!1;return!0}function f(q){return`${q} in extra usage for third-party apps · /extra-usage`}function F(q){return`${q} in extra usage`}function o(q){let k=O.c(8),{maxWidth:z,twoLine:M}=q,Y,H;if(k[0]!==z||k[1]!==M){H=Symbol.for("react.early_return_sentinel");k:{let B=y();if(!B){H=null;break k}let Z=A(B);if(!Z){H=null;break k}if(M){let V=F(Z),K;if(k[4]!==z)K=z?P(w,z):w,k[4]=z,k[5]=K;else K=k[5];let N;if(k[6]!==K)N=J.jsxDEV(Q,{dimColor:!0,children:K},void 0,!1,void 0,this),k[6]=K,k[7]=N;else N=k[7];H=J.jsxDEV(J.Fragment,{children:[J.jsxDEV(Q,{color:"claude",children:z?P(V,z):V},void 0,!1,void 0,this),N]},void 0,!0,void 0,this);break k}let I=f(Z),R=z?P(I,z):I,U=Math.min(F(Z).length,R.length);Y=J.jsxDEV(Q,{dimColor:!0,children:[J.jsxDEV(Q,{color:"claude",children:R.slice(0,U)},void 0,!1,void 0,this),R.slice(U)]},void 0,!0,void 0,this)}k[0]=z,k[1]=M,k[2]=Y,k[3]=H}else Y=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Y}var O,$,J,v=3,w="On us. Works on third-party apps · /extra-usage";var C=S(()=>{G();j();c();D();p();O=X(b(),1),$=X(W(),1),J=X(_(),1)});
2
- export{T as tf,m as uf,o as vf,C as wf};
@@ -1,39 +0,0 @@
1
- import{$E as L,YE as B,ZE as U,aF as V,dI as N,gI as b}from"./cli-0.1.11-s8ygndzf.mjs";import{d_ as z,eaa as P,k_ as F}from"./cli-0.1.11-v7bwjqf0.mjs";import{Hfa as H,Nfa as v}from"./cli-0.1.11-nx8a99hz.mjs";import{Rna as j}from"./cli-0.1.11-yrfxpjhr.mjs";async function A(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await A(I);return{type:"text",value:w(O)}}function w(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
2
-
3
- `;h+=`**Model:** ${Z}
4
- `,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
5
- `,h+=`
6
- `;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
7
-
8
- `,h+=`| Category | Tokens | Percentage |
9
- `,h+=`|----------|--------|------------|
10
- `;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
11
- `}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
12
- `}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
13
- `}h+=`
14
- `}if(X.length>0){h+=`### MCP Tools
15
-
16
- `,h+=`| Tool | Server | Tokens |
17
- `,h+=`|------|--------|--------|
18
- `;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
19
- `;h+=`
20
- `}if(Q.length>0){h+=`### Custom Agents
21
-
22
- `,h+=`| Agent Type | Source | Tokens |
23
- `,h+=`|------------|--------|--------|
24
- `;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
25
- `}h+=`
26
- `}if(W.length>0){h+=`### Memory Files
27
-
28
- `,h+=`| Type | Path | Tokens |
29
- `,h+=`|------|------|--------|
30
- `;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
31
- `;h+=`
32
- `}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
33
-
34
- `,h+=`| Skill | Source | Tokens |
35
- `,h+=`|-------|--------|--------|
36
- `;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
37
- `;h+=`
38
- `}return h}var d=j(()=>{U();V();v();b();F();P()});
39
- export{A as Yf,g as Zf,d as _f};
@@ -1,21 +0,0 @@
1
- import{Kn as L,Ln as Z,UH as X,gI as v,lE as O,mE as $,tH as V}from"./cli-0.1.11-s8ygndzf.mjs";import{Rna as Y}from"./cli-0.1.11-yrfxpjhr.mjs";function W(G){let D=[],H=G.matchAll(y);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 O({promptMessages:[V({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:C(z.messages),usage:z.totalUsage}}function C(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=X(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: ${L(H.error)})`;return null}var y;var F=Y(()=>{Z();$();v();y=/^\/btw\b/gi});
21
- export{W as ig,b as jg,F as kg};
@@ -1,2 +0,0 @@
1
- import{IV as x}from"./cli-0.1.11-6zkfmcxp.mjs";import{i5 as q}from"./cli-0.1.11-qbcfg80y.mjs";import{nfa as f}from"./cli-0.1.11-fag2wtke.mjs";import{sha as p}from"./cli-0.1.11-d3exw047.mjs";import{Rna as d}from"./cli-0.1.11-yrfxpjhr.mjs";function N(){return!1}async function O(){return!1}function P(){return!1}function Q(){return!0}function R(){return null}var z=d(()=>{f();q();p();x()});
2
- export{N as nf,O as of,P as pf,Q as qf,R as rf,z as sf};
@@ -1,34 +0,0 @@
1
- import{OU as X,UU as JT,VU as ST,vV as IT}from"./cli-0.1.11-bvd2r7an.mjs";import{E5 as K,F5 as UT}from"./cli-0.1.11-s6yfjcm5.mjs";import{$9 as qT,A_ as OT,Cba as V,F7 as H,Hba as l,Iba as d,K7 as o,O9 as s,P8 as BT,R8 as VT,S7 as Y,U7 as n,U9 as XT,Vba as D,Y9 as FT,a_ as _T,dba as f,fba as YT,y_ as Q,zba as z}from"./cli-0.1.11-v7bwjqf0.mjs";import{aea as E,bea as KT}from"./cli-0.1.11-7xr2ermy.mjs";import{Hga as u,Jga as LT,Lga as GT,Mga as $T,Pga as zT,Tga as P,Xga as QT}from"./cli-0.1.11-vq5fvf9m.mjs";import{sna as r,tna as ZT}from"./cli-0.1.11-98zcwng9.mjs";import{Rna as I}from"./cli-0.1.11-yrfxpjhr.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{KT();XT();QT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();n();o()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
2
-
3
- No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
4
- `;else if(B==="windows")J=` • Windows: Windows Terminal
5
- `;let F=`Terminal setup cannot be run from ${$}.
6
-
7
- This command configures a convenient Shift+Enter shortcut for multi-line prompts.
8
- ${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
9
-
10
- To set up the shortcut (optional):
11
- 1. Exit tmux/screen temporarily
12
- 2. Run /terminal-setup directly in one of these terminals:
13
- ${J} • IDE: VSCode, Cursor, Windsurf, Zed
14
- • Other: Alacritty
15
- 3. Return to tmux/screen - settings will persist
16
-
17
- ${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
18
- {
19
- "key": "shift+enter",
20
- "command": "workbench.action.terminal.sendSequence",
21
- "args": { "text": "\\u001b\\r" },
22
- "when": "terminalFocus"
23
- }
24
- ]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
25
- `))F+=`
26
- `;return F+=`
27
- [[keyboard.bindings]]
28
- key = "Return"
29
- mods = "Shift"
30
- chars = "\\u001B\\r"
31
- `,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
32
- `,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
33
- `,j;var bT=I(()=>{UT();ST();IT();h();TT();D();OT();LT();n();_T();o();VT();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
34
- export{a as cS,h as dS,e as eS,TT as fS,Ww as gS,uT as hS,ET as iS,Lw as jS,zw as kS,Vw as lS,_w as mS,bT as nS};
@@ -1,2 +0,0 @@
1
- import{_Q as YJ,cR as DJ,gR as CJ,hR as c,iR as vJ,qR as ZJ}from"./cli-0.1.11-852v06g0.mjs";import{RY as SJ,YY as TJ}from"./cli-0.1.11-y4c6y87y.mjs";import{$aa as wJ,F7 as p,K7 as jJ,N8 as NJ,T7 as OJ,U7 as FJ,Zaa as S,p8 as xJ,v9 as yJ}from"./cli-0.1.11-v7bwjqf0.mjs";import{Vda as R,Xda as VJ,Yda as w,Zda as XJ}from"./cli-0.1.11-h7e4rkwk.mjs";import{Dga as W,Ega as C,Jga as e,Lga as v,Mga as y,Pga as JJ,bha as G,eha as QJ}from"./cli-0.1.11-vq5fvf9m.mjs";import{fha as s,gha as I,iha as t,sha as a}from"./cli-0.1.11-d3exw047.mjs";import{$ia as MJ,Pka as i,Vma as m,_ia as r,aja as d,ima as L}from"./cli-0.1.11-rrnr3ab1.mjs";import{Rna as T,Sna as BJ}from"./cli-0.1.11-yrfxpjhr.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();yJ();QJ();a();e();XJ();wJ();jJ();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(!vJ())return;let V=Q??c(),X=CJ();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!==SJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.1.11-wjnpx9yf.mjs"),import("./detection-0.1.11-aa9k5rxv.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 VP,UQ as WP,BQ as XP,fJ as YP,OQ as ZP,xQ as _P,CQ as $P,_J as aQ,E as bQ,bJ as cQ,vQ as dQ,O as eQ,j as fQ,SQ as gQ,h as hQ,AQ as iQ,zQ as jQ,MQ as kQ,HJ as lQ,n as mQ,UJ as nQ,oQ,zJ as pQ,nQ as qQ,u as rQ,F as sQ,H as tQ,kJ as uQ,rJ as vQ,kQ as wQ,rQ as xQ,dQ as yQ,iQ as zQ,mQ as AQ,dJ as BQ,sQ as CQ,tQ as DQ,aQ as EQ,eQ as FQ,JV as GQ,QV as HQ,sJ as IQ,tJ as JQ};
@@ -1,2 +0,0 @@
1
- import{Df as eq,Ef as TG}from"./cli-0.1.11-5hrysrcd.mjs";import{Gf as tq,Hf as mG}from"./cli-0.1.11-h3jatwe1.mjs";import{Vk as Lq,Wk as rq,bK as yq,bl as nq,cK as oq,dl as uq,eK as CG,hl as mq,ll as dq,ml as IG,ov as lq,qv as NG,tt as aq,ut as bG}from"./cli-0.1.11-s8ygndzf.mjs";import{DP as Eq,EP as AG,FP as $q,GP as RG,HP as fq,IP as PG}from"./cli-0.1.11-r990p54m.mjs";import{aS as iq,bS as LG}from"./cli-0.1.11-d4ahh3jz.mjs";import{VS as pq,WS as BG,cT as sq,dT as yG}from"./cli-0.1.11-h02tyg8p.mjs";import{QU as K,SU as Y,eT as UG,vV as WG}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as Mq}from"./cli-0.1.11-kk0qqs5v.mjs";import{rX as KG}from"./cli-0.1.11-x37jysc0.mjs";import{E2 as cq,H3 as qG,J2 as kG,N3 as DG,P4 as GG,g3 as Tq,i3 as _,i5 as vG,p2 as Cq,q2 as xq,r3 as M,s2 as Pq,u3 as bq,x3 as HG}from"./cli-0.1.11-qbcfg80y.mjs";import{Caa as Sq,Eaa as Vq,Qaa as wG}from"./cli-0.1.11-v7bwjqf0.mjs";import{dga as _q,ega as YG}from"./cli-0.1.11-xwj7cmkj.mjs";import{Nna as Zq,Rna as vq}from"./cli-0.1.11-yrfxpjhr.mjs";function qJ(Q){let q=Fq.c(82),{initial:Z,sessionModel:X,onSelect:z,onCancel:w,isStandaloneCommand:U,showFastModeNotice:zq,headerText:JG,skipSettingsWrite:Yq}=Q,wq=oq(),V=iq(),W=Z===null?S:Z,[A,QG]=Xq.useState(W),XG=yq(jG),[I,ZG]=Xq.useState(!1),R=yq(OG),x;if(q[0]!==R)x=R!==void 0?mq(R):void 0,q[0]=R,q[1]=x;else x=q[1];let[P,hq]=Xq.useState(x),kq=XG??!1,c;if(q[2]!==kq)c=eq(kq),q[2]=kq,q[3]=c;else c=q[3];let D=c,Hq;q:{if(Z!==null&&!D.some((J)=>{if(J.value===Z)return!0;if(J.value===null)return!1;try{return _(M(String(J.value)))===_(M(Z))}catch{return!1}})){let J;if(q[4]!==Z)J=bq(Z),q[4]=Z,q[5]=J;else J=q[5];let k;if(q[6]!==Z||q[7]!==J)k={value:Z,label:J,description:"Current model"},q[6]=Z,q[7]=J,q[8]=k;else k=q[8];let b;if(q[9]!==D||q[10]!==k)b=[...D,k],q[9]=D,q[10]=k,q[11]=b;else b=q[11];Hq=b;break q}Hq=D}let Kq=Hq,E;if(q[12]!==Kq)E=Kq.map(hG),q[12]=Kq,q[13]=E;else E=q[13];let H=E,p;if(q[14]!==W||q[15]!==H)p=H.find((J)=>{if(J.value===W)return!0;if(W===S||J.value===null)return!1;try{return _(M(String(J.value)))===_(M(String(W)))}catch{return!1}})?.value??H[0]?.value??void 0,q[14]=W,q[15]=H,q[16]=p;else p=q[16];let Uq=p,r=Math.min(10,H.length),n=Math.max(0,H.length-r),u;if(q[17]!==A||q[18]!==H)u=H.find((J)=>J.value===A)?.label,q[17]=A,q[18]=H,q[19]=u;else u=q[19];let d=u,B,$;if(q[20]!==A){let J=Nq(A);B=J?Lq(J):!1,$=J?rq(J):!1,q[20]=A,q[21]=B,q[22]=$}else B=q[21],$=q[22];let f=$,a;if(q[23]!==A)a=Rq(A),q[23]=A,q[24]=a;else a=q[24];let L=a,v=P==="max"&&!f?"high":P,i;if(q[25]!==R||q[26]!==I)i=(J)=>{if(QG(J),!I&&R===void 0)hq(Rq(J))},q[25]=R,q[26]=I,q[27]=i;else i=q[27];let Wq=i,s;if(q[28]!==L||q[29]!==B||q[30]!==f)s=(J)=>{if(!B)return;hq((k)=>gG(k??L,J,f)),ZG(!0)},q[28]=L,q[29]=B,q[30]=f,q[31]=s;else s=q[31];let l=s,o;if(q[32]!==l)o={"modelPicker:decreaseEffort":()=>l("left"),"modelPicker:increaseEffort":()=>l("right")},q[32]=l,q[33]=o;else o=q[33];let e;if(q[34]===Symbol.for("react.memo_cache_sentinel"))e={context:"ModelPicker"},q[34]=e;else e=q[34];pq(o,e);let t;if(q[35]!==P||q[36]!==I||q[37]!==z||q[38]!==wq||q[39]!==Yq)t=function(k){if(_q("tengu_model_command_menu_effort",{effort:P}),!Yq){let jq=uq(P,Rq(k),Sq("userSettings")?.effortLevel,I),gq=nq(jq);if(gq!==void 0)Vq("userSettings",{effortLevel:gq});wq((zG)=>({...zG,effortValue:jq}))}let b=Nq(k),Oq=I&&b&&Lq(b)?P:void 0;if(k===S){z(null,Oq);return}z(k,Oq)},q[35]=P,q[36]=I,q[37]=z,q[38]=wq,q[39]=Yq,q[40]=t;else t=q[40];let Aq=t,qq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))qq=G.jsxDEV(Y,{color:"remember",bold:!0,children:"Select model"},void 0,!1,void 0,this),q[41]=qq;else qq=q[41];let Bq=JG??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",y;if(q[42]!==Bq)y=G.jsxDEV(Y,{dimColor:!0,children:Bq},void 0,!1,void 0,this),q[42]=Bq,q[43]=y;else y=q[43];let N;if(q[44]!==X)N=X&&G.jsxDEV(Y,{dimColor:!0,children:["Currently using ",bq(X)," for this session (set by plan mode). Selecting a model will undo this."]},void 0,!0,void 0,this),q[44]=X,q[45]=N;else N=q[45];let C;if(q[46]!==y||q[47]!==N)C=G.jsxDEV(K,{marginBottom:1,flexDirection:"column",children:[qq,y,N]},void 0,!0,void 0,this),q[46]=y,q[47]=N,q[48]=C;else C=q[48];let Iq=w??FG,T;if(q[49]!==Wq||q[50]!==Aq||q[51]!==Uq||q[52]!==W||q[53]!==H||q[54]!==Iq||q[55]!==r)T=G.jsxDEV(K,{flexDirection:"column",children:G.jsxDEV(lq,{defaultValue:W,defaultFocusValue:Uq,options:H,onChange:Aq,onFocus:Wq,onCancel:Iq,visibleOptionCount:r},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[49]=Wq,q[50]=Aq,q[51]=Uq,q[52]=W,q[53]=H,q[54]=Iq,q[55]=r,q[56]=T;else T=q[56];let m;if(q[57]!==n)m=n>0&&G.jsxDEV(K,{paddingLeft:3,children:G.jsxDEV(Y,{dimColor:!0,children:["and ",n," more…"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[57]=n,q[58]=m;else m=q[58];let F;if(q[59]!==T||q[60]!==m)F=G.jsxDEV(K,{flexDirection:"column",marginBottom:1,children:[T,m]},void 0,!0,void 0,this),q[59]=T,q[60]=m,q[61]=F;else F=q[61];let h;if(q[62]!==v||q[63]!==L||q[64]!==d||q[65]!==B)h=G.jsxDEV(K,{marginBottom:1,flexDirection:"column",children:B?G.jsxDEV(Y,{dimColor:!0,children:[G.jsxDEV(Dq,{effort:v},void 0,!1,void 0,this)," ",aq(v)," effort",v===L?" (default)":""," ",G.jsxDEV(Y,{color:"subtle",children:"← → to adjust"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):G.jsxDEV(Y,{color:"subtle",children:[G.jsxDEV(Dq,{effort:void 0},void 0,!1,void 0,this)," Effort not supported",d?` for ${d}`:""]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[62]=v,q[63]=L,q[64]=d,q[65]=B,q[66]=h;else h=q[66];let O;if(q[67]!==zq)O=Cq()?zq?G.jsxDEV(K,{marginBottom:1,children:G.jsxDEV(Y,{dimColor:!0,children:["Fast mode is ",G.jsxDEV(Y,{bold:!0,children:"ON"},void 0,!1,void 0,this)," and available with"," ",Pq," only (/fast). Switching to other models turn off fast mode."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):xq()&&!cq()?G.jsxDEV(K,{marginBottom:1,children:G.jsxDEV(Y,{dimColor:!0,children:["Use ",G.jsxDEV(Y,{bold:!0,children:"/fast"},void 0,!1,void 0,this)," to turn on Fast mode (",Pq," only)."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null:null,q[67]=zq,q[68]=O;else O=q[68];let j;if(q[69]!==C||q[70]!==F||q[71]!==h||q[72]!==O)j=G.jsxDEV(K,{flexDirection:"column",children:[C,F,h,O]},void 0,!0,void 0,this),q[69]=C,q[70]=F,q[71]=h,q[72]=O,q[73]=j;else j=q[73];let g;if(q[74]!==V||q[75]!==U)g=U&&G.jsxDEV(Y,{dimColor:!0,italic:!0,children:V.pending?G.jsxDEV(G.Fragment,{children:["Press ",V.keyName," again to exit"]},void 0,!0,void 0,this):G.jsxDEV(fq,{children:[G.jsxDEV(Eq,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),G.jsxDEV($q,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[74]=V,q[75]=U,q[76]=g;else g=q[76];let Gq;if(q[77]!==j||q[78]!==g)Gq=G.jsxDEV(K,{flexDirection:"column",children:[j,g]},void 0,!0,void 0,this),q[77]=j,q[78]=g,q[79]=Gq;else Gq=q[79];let Jq=Gq;if(!U)return Jq;let Qq;if(q[80]!==Jq)Qq=G.jsxDEV(sq,{color:"permission",children:Jq},void 0,!1,void 0,this),q[80]=Jq,q[81]=Qq;else Qq=q[81];return Qq}function FG(){}function hG(Q){return{...Q,value:Q.value===null?S:Q.value}}function OG(Q){return Q.effortValue}function jG(Q){return Cq()?Q.fastMode:!1}function Nq(Q){if(!Q)return;return Q===S?Tq():M(Q)}function Dq(Q){let q=Fq.c(5),{effort:Z}=Q,X=Z?"claude":"subtle",z=Z??"low",w;if(q[0]!==z)w=tq(z),q[0]=z,q[1]=w;else w=q[1];let U;if(q[2]!==X||q[3]!==w)U=G.jsxDEV(Y,{color:X,children:w},void 0,!1,void 0,this),q[2]=X,q[3]=w,q[4]=U;else U=q[4];return U}function gG(Q,q,Z){let X=Z?["low","medium","high","max"]:["low","medium","high"],z=X.indexOf(Q),w=z!==-1?z:X.indexOf("high");if(q==="right")return X[(w+1)%X.length];else return X[(w-1+X.length)%X.length]}function Rq(Q){let q=Nq(Q)??Tq(),Z=dq(q);return Z!==void 0?mq(Z):"high"}var Fq,Xq,G,S="__NO_PREFERENCE__";var MG=vq(()=>{bG();LG();YG();kG();WG();BG();CG();IG();HG();TG();wG();RG();NG();PG();AG();yG();mG();Fq=Zq(UG(),1),Xq=Zq(KG(),1),G=Zq(Mq(),1)});function XJ(Q,q,Z){if(!GG())return!1;if(q)return!0;if(Q===null||!qG(Q))return!1;let X=Q.toLowerCase().replace(/\[1m\]$/,"").trim(),z=X==="opus"||X.includes("opus-4-6")||X.includes("opus-4-7"),w=X==="sonnet"||X.includes("sonnet-4-6");if(z&&Z)return!1;return z||w}var _G=vq(()=>{vG();DG()});
2
- export{qJ as zf,MG as Af,XJ as Bf,_G as Cf};
@@ -1,14 +0,0 @@
1
- import{Pna as vB}from"./cli-0.1.11-yrfxpjhr.mjs";var SB=vB((gB,V)=>{(function(){function KB(B,G){Object.defineProperty($.prototype,B,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",G[0],G[1])}})}function qB(B){if(B===null||typeof B!=="object")return null;return B=RB&&B[RB]||B["@@iterator"],typeof B==="function"?B:null}function C(B,G){B=(B=B.constructor)&&(B.displayName||B.name)||"ReactClass";var H=B+"."+G;UB[H]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",G,B),UB[H]=!0)}function $(B,G,H){this.props=B,this.context=G,this.refs=u,this.updater=H||WB}function d(){}function _(B,G,H){this.props=B,this.context=G,this.refs=u,this.updater=H||WB}function v(){}function p(B){return""+B}function w(B){try{p(B);var G=!1}catch(R){G=!0}if(G){G=console;var H=G.error,M=typeof Symbol==="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return H.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),p(B)}}function P(B){if(B==null)return null;if(typeof B==="function")return B.$$typeof===NB?null:B.displayName||B.name||null;if(typeof B==="string")return B;switch(B){case b:return"Fragment";case e:return"Profiler";case a:return"StrictMode";case HB:return"Suspense";case FB:return"SuspenseList";case MB:return"Activity"}if(typeof B==="object")switch(typeof B.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case r:return"Portal";case BB:return B.displayName||"Context";case m:return(B._context.displayName||"Context")+".Consumer";case GB:var G=B.render;return B=B.displayName,B||(B=G.displayName||G.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case h:return G=B.displayName||null,G!==null?G:P(B.type)||"Memo";case K:G=B._payload,B=B._init;try{return P(B(G))}catch(H){}}return null}function c(B){if(B===b)return"<>";if(typeof B==="object"&&B!==null&&B.$$typeof===K)return"<...>";try{var G=P(B);return G?"<"+G+">":"<...>"}catch(H){return"<...>"}}function i(){var B=W.A;return B===null?null:B.getOwner()}function o(){return Error("react-stack-top-frame")}function t(B){if(T.call(B,"key")){var G=Object.getOwnPropertyDescriptor(B,"key").get;if(G&&G.isReactWarning)return!1}return B.key!==void 0}function wB(B,G){function H(){zB||(zB=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}H.isReactWarning=!0,Object.defineProperty(B,"key",{get:H,configurable:!0})}function PB(){var B=P(this.type);return QB[B]||(QB[B]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),B=this.props.ref,B!==void 0?B:null}function g(B,G,H,M,R,X){var U=H.ref;return B={$$typeof:s,type:B,key:G,props:H,_owner:M},(U!==void 0?U:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:PB}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function jB(B,G){return G=g(B.type,G,B.props,B._owner,B._debugStack,B._debugTask),B._store&&(G._store.validated=B._store.validated),G}function l(B){L(B)?B._store&&(B._store.validated=1):typeof B==="object"&&B!==null&&B.$$typeof===K&&(B._payload.status==="fulfilled"?L(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function L(B){return typeof B==="object"&&B!==null&&B.$$typeof===s}function xB(B){var G={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(H){return G[H]})}function S(B,G){return typeof B==="object"&&B!==null&&B.key!=null?(w(B.key),xB(""+B.key)):G.toString(36)}function AB(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status==="string"?B.then(v,v):(B.status="pending",B.then(function(G){B.status==="pending"&&(B.status="fulfilled",B.value=G)},function(G){B.status==="pending"&&(B.status="rejected",B.reason=G)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function D(B,G,H,M,R){var X=typeof B;if(X==="undefined"||X==="boolean")B=null;var U=!1;if(B===null)U=!0;else switch(X){case"bigint":case"string":case"number":U=!0;break;case"object":switch(B.$$typeof){case s:case r:U=!0;break;case K:return U=B._init,D(U(B._payload),G,H,M,R)}}if(U){U=B,R=R(U);var Z=M===""?"."+S(U,0):M;return YB(R)?(H="",Z!=null&&(H=Z.replace(LB,"$&/")+"/"),D(R,G,H,"",function(Q){return Q})):R!=null&&(L(R)&&(R.key!=null&&(U&&U.key===R.key||w(R.key)),H=jB(R,H+(R.key==null||U&&U.key===R.key?"":(""+R.key).replace(LB,"$&/")+"/")+Z),M!==""&&U!=null&&L(U)&&U.key==null&&U._store&&!U._store.validated&&(H._store.validated=2),R=H),G.push(R)),1}if(U=0,Z=M===""?".":M+":",YB(B))for(var Y=0;Y<B.length;Y++)M=B[Y],X=Z+S(M,Y),U+=D(M,G,H,X,R);else if(Y=qB(B),typeof Y==="function")for(Y===B.entries&&($B||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$B=!0),B=Y.call(B),Y=0;!(M=B.next()).done;)M=M.value,X=Z+S(M,Y++),U+=D(M,G,H,X,R);else if(X==="object"){if(typeof B.then==="function")return D(AB(B),G,H,M,R);throw G=String(B),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return U}function j(B,G,H){if(B==null)return B;var M=[],R=0;return D(B,M,"","",function(X){return G.call(H,X,R++)}),M}function TB(B){if(B._status===-1){var G=B._ioInfo;G!=null&&(G.start=G.end=performance.now()),G=B._result;var H=G();if(H.then(function(R){if(B._status===0||B._status===-1){B._status=1,B._result=R;var X=B._ioInfo;X!=null&&(X.end=performance.now()),H.status===void 0&&(H.status="fulfilled",H.value=R)}},function(R){if(B._status===0||B._status===-1){B._status=2,B._result=R;var X=B._ioInfo;X!=null&&(X.end=performance.now()),H.status===void 0&&(H.status="rejected",H.reason=R)}}),G=B._ioInfo,G!=null){G.value=H;var M=H.displayName;typeof M==="string"&&(G.name=M)}B._status===-1&&(B._status=0,B._result=H)}if(B._status===1)return G=B._result,G===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
-
3
- Your code should look like:
4
- const MyComponent = lazy(() => import('./MyComponent'))
5
-
6
- Did you accidentally put curly braces around the import?`,G),"default"in G||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
-
8
- Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,G),G.default;throw B._result}function z(){var B=W.H;return B===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
- 2. You might be breaking the Rules of Hooks
12
- 3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),B}function n(){W.asyncTransitions--}function x(B){if(F===null)try{var G=("require"+Math.random()).slice(0,7);F=(V&&V[G]).call(V,"timers").setImmediate}catch(H){F=function(M){JB===!1&&(JB=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=M,R.port2.postMessage(void 0)}}return F(B)}function E(B){return 1<B.length&&typeof AggregateError==="function"?AggregateError(B):B[0]}function A(B,G){G!==N-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),N=G}function k(B,G,H){var M=W.actQueue;if(M!==null)if(M.length!==0)try{f(M),x(function(){return k(B,G,H)});return}catch(R){W.thrownErrors.push(R)}else W.actQueue=null;0<W.thrownErrors.length?(M=E(W.thrownErrors),W.thrownErrors.length=0,H(M)):G(B)}function f(B){if(!y){y=!0;var G=0;try{for(;G<B.length;G++){var H=B[G];do{W.didUsePromise=!1;var M=H(!1);if(M!==null){if(W.didUsePromise){B[G]=H,B.splice(0,G);return}H=M}else break}while(1)}B.length=0}catch(R){B.splice(0,G+1),W.thrownErrors.push(R)}finally{y=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),e=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),BB=Symbol.for("react.context"),GB=Symbol.for("react.forward_ref"),HB=Symbol.for("react.suspense"),FB=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),MB=Symbol.for("react.activity"),RB=Symbol.iterator,UB={},WB={isMounted:function(){return!1},enqueueForceUpdate:function(B){C(B,"forceUpdate")},enqueueReplaceState:function(B){C(B,"replaceState")},enqueueSetState:function(B){C(B,"setState")}},XB=Object.assign,u={};Object.freeze(u),$.prototype.isReactComponent={},$.prototype.setState=function(B,G){if(typeof B!=="object"&&typeof B!=="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,G,"setState")},$.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(q in O)O.hasOwnProperty(q)&&KB(q,O[q]);d.prototype=$.prototype,O=_.prototype=new d,O.constructor=_,XB(O,$.prototype),O.isPureReactComponent=!0;var YB=Array.isArray,NB=Symbol.for("react.client.reference"),W={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},T=Object.prototype.hasOwnProperty,ZB=console.createTask?console.createTask:function(){return null};O={react_stack_bottom_frame:function(B){return B()}};var zB,OB,QB={},IB=O.react_stack_bottom_frame.bind(O,o)(),VB=ZB(c(o)),$B=!1,LB=/\/+/g,DB=typeof reportError==="function"?reportError:function(B){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B==="object"&&B!==null&&typeof B.message==="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(G))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",B);return}console.error(B)},JB=!1,F=null,N=0,I=!1,y=!1,EB=typeof queueMicrotask==="function"?function(B){queueMicrotask(function(){return queueMicrotask(B)})}:x;O=Object.freeze({__proto__:null,c:function(B){return z().useMemoCache(B)}});var q={map:j,forEach:function(B,G,H){j(B,function(){G.apply(this,arguments)},H)},count:function(B){var G=0;return j(B,function(){G++}),G},toArray:function(B){return j(B,function(G){return G})||[]},only:function(B){if(!L(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};gB.Activity=MB,gB.Children=q,gB.Component=$,gB.Fragment=b,gB.Profiler=e,gB.PureComponent=_,gB.StrictMode=a,gB.Suspense=HB,gB.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,gB.__COMPILER_RUNTIME=O,gB.act=function(B){var G=W.actQueue,H=N;N++;var M=W.actQueue=G!==null?G:[],R=!1;try{var X=B()}catch(Y){W.thrownErrors.push(Y)}if(0<W.thrownErrors.length)throw A(G,H),B=E(W.thrownErrors),W.thrownErrors.length=0,B;if(X!==null&&typeof X==="object"&&typeof X.then==="function"){var U=X;return EB(function(){R||I||(I=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Y,Q){R=!0,U.then(function(J){if(A(G,H),H===0){try{f(M),x(function(){return k(J,Y,Q)})}catch(_B){W.thrownErrors.push(_B)}if(0<W.thrownErrors.length){var CB=E(W.thrownErrors);W.thrownErrors.length=0,Q(CB)}}else Y(J)},function(J){A(G,H),0<W.thrownErrors.length?(J=E(W.thrownErrors),W.thrownErrors.length=0,Q(J)):Q(J)})}}}var Z=X;if(A(G,H),H===0&&(f(M),M.length!==0&&EB(function(){R||I||(I=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),W.actQueue=null),0<W.thrownErrors.length)throw B=E(W.thrownErrors),W.thrownErrors.length=0,B;return{then:function(Y,Q){R=!0,H===0?(W.actQueue=M,x(function(){return k(Z,Y,Q)})):Y(Z)}}},gB.cache=function(B){return function(){return B.apply(null,arguments)}},gB.cacheSignal=function(){return null},gB.captureOwnerStack=function(){var B=W.getCurrentStack;return B===null?null:B()},gB.cloneElement=function(B,G,H){if(B===null||B===void 0)throw Error("The argument must be a React element, but you passed "+B+".");var M=XB({},B.props),R=B.key,X=B._owner;if(G!=null){var U;B:{if(T.call(G,"ref")&&(U=Object.getOwnPropertyDescriptor(G,"ref").get)&&U.isReactWarning){U=!1;break B}U=G.ref!==void 0}U&&(X=i()),t(G)&&(w(G.key),R=""+G.key);for(Z in G)!T.call(G,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&G.ref===void 0||(M[Z]=G[Z])}var Z=arguments.length-2;if(Z===1)M.children=H;else if(1<Z){U=Array(Z);for(var Y=0;Y<Z;Y++)U[Y]=arguments[Y+2];M.children=U}M=g(B.type,R,M,X,B._debugStack,B._debugTask);for(R=2;R<arguments.length;R++)l(arguments[R]);return M},gB.createContext=function(B){return B={$$typeof:BB,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:m,_context:B},B._currentRenderer=null,B._currentRenderer2=null,B},gB.createElement=function(B,G,H){for(var M=2;M<arguments.length;M++)l(arguments[M]);M={};var R=null;if(G!=null)for(Y in OB||!("__self"in G)||"key"in G||(OB=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),t(G)&&(w(G.key),R=""+G.key),G)T.call(G,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(M[Y]=G[Y]);var X=arguments.length-2;if(X===1)M.children=H;else if(1<X){for(var U=Array(X),Z=0;Z<X;Z++)U[Z]=arguments[Z+2];Object.freeze&&Object.freeze(U),M.children=U}if(B&&B.defaultProps)for(Y in X=B.defaultProps,X)M[Y]===void 0&&(M[Y]=X[Y]);R&&wB(M,typeof B==="function"?B.displayName||B.name||"Unknown":B);var Y=1e4>W.recentlyCreatedOwnerStacks++;return g(B,R,M,i(),Y?Error("react-stack-top-frame"):IB,Y?ZB(c(B)):VB)},gB.createRef=function(){var B={current:null};return Object.seal(B),B},gB.forwardRef=function(B){B!=null&&B.$$typeof===h?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!=="function"?console.error("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&B.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var G={$$typeof:GB,render:B},H;return Object.defineProperty(G,"displayName",{enumerable:!1,configurable:!0,get:function(){return H},set:function(M){H=M,B.name||B.displayName||(Object.defineProperty(B,"name",{value:M}),B.displayName=M)}}),G},gB.isValidElement=L,gB.lazy=function(B){B={_status:-1,_result:B};var G={$$typeof:K,_payload:B,_init:TB},H={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return B._ioInfo=H,G._debugInfo=[{awaited:H}],G},gB.memo=function(B,G){B==null&&console.error("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),G={$$typeof:h,type:B,compare:G===void 0?null:G};var H;return Object.defineProperty(G,"displayName",{enumerable:!1,configurable:!0,get:function(){return H},set:function(M){H=M,B.name||B.displayName||(Object.defineProperty(B,"name",{value:M}),B.displayName=M)}}),G},gB.startTransition=function(B){var G=W.T,H={};H._updatedFibers=new Set,W.T=H;try{var M=B(),R=W.S;R!==null&&R(H,M),typeof M==="object"&&M!==null&&typeof M.then==="function"&&(W.asyncTransitions++,M.then(n,n),M.then(v,DB))}catch(X){DB(X)}finally{G===null&&H._updatedFibers&&(B=H._updatedFibers.size,H._updatedFibers.clear(),10<B&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),G!==null&&H.types!==null&&(G.types!==null&&G.types!==H.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),G.types=H.types),W.T=G}},gB.unstable_useCacheRefresh=function(){return z().useCacheRefresh()},gB.use=function(B){return z().use(B)},gB.useActionState=function(B,G,H){return z().useActionState(B,G,H)},gB.useCallback=function(B,G){return z().useCallback(B,G)},gB.useContext=function(B){var G=z();return B.$$typeof===m&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),G.useContext(B)},gB.useDebugValue=function(B,G){return z().useDebugValue(B,G)},gB.useDeferredValue=function(B,G){return z().useDeferredValue(B,G)},gB.useEffect=function(B,G){return B==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useEffect(B,G)},gB.useEffectEvent=function(B){return z().useEffectEvent(B)},gB.useId=function(){return z().useId()},gB.useImperativeHandle=function(B,G,H){return z().useImperativeHandle(B,G,H)},gB.useInsertionEffect=function(B,G){return B==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useInsertionEffect(B,G)},gB.useLayoutEffect=function(B,G){return B==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useLayoutEffect(B,G)},gB.useMemo=function(B,G){return z().useMemo(B,G)},gB.useOptimistic=function(B,G){return z().useOptimistic(B,G)},gB.useReducer=function(B,G,H){return z().useReducer(B,G,H)},gB.useRef=function(B){return z().useRef(B)},gB.useState=function(B){return z().useState(B)},gB.useSyncExternalStore=function(B,G,H){return z().useSyncExternalStore(B,G,H)},gB.useTransition=function(){return z().useTransition()},gB.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});
14
- export{SB as rX};
@@ -1,2 +0,0 @@
1
- import{yh as W,zh as L}from"./cli-0.1.11-trcf78n1.mjs";import{qX as K}from"./cli-0.1.11-kk0qqs5v.mjs";import{OX as X,PX as S}from"./cli-0.1.11-16086k9e.mjs";import{G1 as Q,H1 as B,K4 as R,P4 as U,i5 as F}from"./cli-0.1.11-qbcfg80y.mjs";import{F7 as N,K7 as $}from"./cli-0.1.11-v7bwjqf0.mjs";import{Nna as J,Rna as _}from"./cli-0.1.11-yrfxpjhr.mjs";async function I(y,Z){try{if(U()){let q=R(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await Q(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await X("https://claude.ai/upgrade/max"),Y.jsxDEV(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{Z.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}catch(G){N(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var Y;var V=_(()=>{B();F();S();$();L();Y=J(K(),1)});
2
- export{I as mb,V as nb};
@@ -1,2 +0,0 @@
1
- import{$q as W,Uq as k,Vq as w,fr as y,pr as x}from"./cli-0.1.11-s8ygndzf.mjs";import{QU as m,SU as n,WU as v,eT as P,vV as N}from"./cli-0.1.11-bvd2r7an.mjs";import{qX as $}from"./cli-0.1.11-kk0qqs5v.mjs";import{Nna as b,Rna as L}from"./cli-0.1.11-yrfxpjhr.mjs";function F(o){let e=M.c(26),{scope:t,parsingErrors:a,warnings:s}=o,l=a.length>0,p=s.length>0;if(!l&&!p)return null;let f;if(e[0]!==l||e[1]!==p)f=(l||p)&&r.jsxDEV(n,{color:l?"error":"warning",children:["[",l?"Failed to parse":"Contains warnings","]"," "]},void 0,!0,void 0,this),e[0]=l,e[1]=p,e[2]=f;else f=e[2];let i;if(e[3]!==t)i=w(t),e[3]=t,e[4]=i;else i=e[4];let c;if(e[5]!==i)c=r.jsxDEV(n,{children:i},void 0,!1,void 0,this),e[5]=i,e[6]=c;else c=e[6];let g;if(e[7]!==f||e[8]!==c)g=r.jsxDEV(m,{children:[f,c]},void 0,!0,void 0,this),e[7]=f,e[8]=c,e[9]=g;else g=e[9];let C;if(e[10]===Symbol.for("react.memo_cache_sentinel"))C=r.jsxDEV(n,{dimColor:!0,children:"Location: "},void 0,!1,void 0,this),e[10]=C;else C=e[10];let u;if(e[11]!==t)u=k(t),e[11]=t,e[12]=u;else u=e[12];let h;if(e[13]!==u)h=r.jsxDEV(m,{children:[C,r.jsxDEV(n,{dimColor:!0,children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e[13]=u,e[14]=h;else h=e[14];let d;if(e[15]!==a)d=a.map(R),e[15]=a,e[16]=d;else d=e[16];let T;if(e[17]!==s)T=s.map(A),e[17]=s,e[18]=T;else T=e[18];let _;if(e[19]!==d||e[20]!==T)_=r.jsxDEV(m,{marginLeft:1,flexDirection:"column",children:[d,T]},void 0,!0,void 0,this),e[19]=d,e[20]=T,e[21]=_;else _=e[21];let S;if(e[22]!==_||e[23]!==g||e[24]!==h)S=r.jsxDEV(m,{flexDirection:"column",marginTop:1,children:[g,h,_]},void 0,!0,void 0,this),e[22]=_,e[23]=g,e[24]=h,e[25]=S;else S=e[25];return S}function A(o,e){let t=o.mcpErrorMetadata?.serverName;return r.jsxDEV(m,{children:r.jsxDEV(n,{children:[r.jsxDEV(n,{dimColor:!0,children:"└ "},void 0,!1,void 0,this),r.jsxDEV(n,{color:"warning",children:"[Warning]"},void 0,!1,void 0,this),r.jsxDEV(n,{dimColor:!0,children:[" ",t&&`[${t}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},`warning-${e}`,!1,void 0,this)}function R(o,e){let t=o.mcpErrorMetadata?.serverName;return r.jsxDEV(m,{children:r.jsxDEV(n,{children:[r.jsxDEV(n,{dimColor:!0,children:"└ "},void 0,!1,void 0,this),r.jsxDEV(n,{color:"error",children:"[Error]"},void 0,!1,void 0,this),r.jsxDEV(n,{dimColor:!0,children:[" ",t&&`[${t}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},`error-${e}`,!1,void 0,this)}function O(){let o=M.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:y("user")},o[0]=e;else e=o[0];let t;if(o[1]===Symbol.for("react.memo_cache_sentinel"))t={scope:"project",config:y("project")},o[1]=t;else t=o[1];let a;if(o[2]===Symbol.for("react.memo_cache_sentinel"))a={scope:"local",config:y("local")},o[2]=a;else a=o[2];let s;if(o[3]===Symbol.for("react.memo_cache_sentinel"))s=[e,t,a,{scope:"enterprise",config:y("enterprise")}],o[3]=s;else s=o[3];let l=s,p=l.some(G),f=l.some(z);if(!p&&!f)return null;let i;if(o[4]===Symbol.for("react.memo_cache_sentinel"))i=r.jsxDEV(n,{bold:!0,children:"MCP Config Diagnostics"},void 0,!1,void 0,this),o[4]=i;else i=o[4];let c;if(o[5]===Symbol.for("react.memo_cache_sentinel"))c=r.jsxDEV(m,{flexDirection:"column",marginTop:1,marginBottom:1,children:[i,r.jsxDEV(m,{marginTop:1,children:r.jsxDEV(n,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",r.jsxDEV(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l.map(q)]},void 0,!0,void 0,this),o[5]=c;else c=o[5];return c}function q(o){let{scope:e,config:t}=o;return r.jsxDEV(F,{scope:e,parsingErrors:B(t.errors,"fatal"),warnings:B(t.errors,"warning")},e,!1,void 0,this)}function z(o){let{config:e}=o;return B(e.errors,"warning").length>0}function G(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((t)=>t.mcpErrorMetadata?.severity===e)}var M,r;var H=L(()=>{x();W();N();M=b(P(),1),r=b($(),1)});
2
- export{O as We,H as Xe};