@claudiolabs/claudin 1.1.2 → 1.1.4

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 (914) hide show
  1. package/README.md +28 -24
  2. package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +1 -0
  3. package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +7 -0
  11. package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +6 -0
  13. package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +1 -0
  14. package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +1 -0
  18. package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +1 -0
  19. package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +1 -0
  20. package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +1 -0
  28. package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +1 -0
  29. package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +1 -0
  30. package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +1 -0
  31. package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +1 -0
  32. package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +110 -0
  33. package/dist/chunks/agents-1.1.4-w929h9g2.mjs +3 -0
  34. package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +1 -0
  35. package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +1 -0
  36. package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +1 -0
  37. package/dist/chunks/auth-1.1.4-d8jp870f.mjs +1 -0
  38. package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +1 -0
  39. package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +48 -0
  40. package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +1 -0
  42. package/dist/chunks/branch-1.1.4-m28a3gah.mjs +4 -0
  43. package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +1 -0
  48. package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +1 -0
  49. package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +3 -0
  50. package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +1 -0
  51. package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +21 -0
  52. package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +4 -0
  53. package/dist/chunks/caches-1.1.4-smgwny8k.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +1 -0
  55. package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +1 -0
  56. package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +1 -0
  57. package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +1 -0
  58. package/dist/chunks/cli-1.1.4-081g3k6v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +18 -0
  61. package/dist/chunks/cli-1.1.4-0earmzgk.mjs +12 -0
  62. package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +18 -0
  63. package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +2 -0
  64. package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +133 -0
  65. package/dist/chunks/cli-1.1.4-0r232fpm.mjs +2 -0
  66. package/dist/chunks/cli-1.1.4-0smy947g.mjs +2 -0
  67. package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +2 -0
  68. package/dist/chunks/cli-1.1.4-114zcxgj.mjs +2 -0
  69. package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +2 -0
  70. package/dist/chunks/cli-1.1.4-181vbtfh.mjs +2 -0
  71. package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +4 -0
  72. package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +2 -0
  73. package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +2 -0
  74. package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +2 -0
  75. package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +2 -0
  76. package/dist/chunks/cli-1.1.4-31av4ynk.mjs +2 -0
  77. package/dist/chunks/cli-1.1.4-3556r6d1.mjs +2 -0
  78. package/dist/chunks/cli-1.1.4-3d01w53d.mjs +2 -0
  79. package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +2 -0
  80. package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +2 -0
  81. package/dist/chunks/cli-1.1.4-40z19hth.mjs +2 -0
  82. package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +2 -0
  83. package/dist/chunks/cli-1.1.4-4esthaz8.mjs +21 -0
  84. package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +2 -0
  85. package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +3 -0
  86. package/dist/chunks/cli-1.1.4-4yte7brd.mjs +25 -0
  87. package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +2 -0
  88. package/dist/chunks/cli-1.1.4-53fvpymg.mjs +6 -0
  89. package/dist/chunks/cli-1.1.4-56nffz3p.mjs +17 -0
  90. package/dist/chunks/cli-1.1.4-5dc9c513.mjs +3 -0
  91. package/dist/chunks/cli-1.1.4-5ebh6981.mjs +2 -0
  92. package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.4-5hz878ns.mjs +2 -0
  94. package/dist/chunks/cli-1.1.4-64y9aspn.mjs +2 -0
  95. package/dist/chunks/cli-1.1.4-6c3fshef.mjs +202 -0
  96. package/dist/chunks/cli-1.1.4-6c5tryej.mjs +2 -0
  97. package/dist/chunks/cli-1.1.4-6eacj91j.mjs +2 -0
  98. package/dist/chunks/cli-1.1.4-6f472s2j.mjs +2 -0
  99. package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +2 -0
  100. package/dist/chunks/cli-1.1.4-6raycx0k.mjs +2 -0
  101. package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +2 -0
  102. package/dist/chunks/cli-1.1.4-6z69geef.mjs +5649 -0
  103. package/dist/chunks/cli-1.1.4-788c63fn.mjs +7 -0
  104. package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +4 -0
  105. package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +2 -0
  106. package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +2 -0
  107. package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +2 -0
  108. package/dist/chunks/cli-1.1.4-8kx358k9.mjs +2 -0
  109. package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +4 -0
  110. package/dist/chunks/cli-1.1.4-99ept1n4.mjs +2 -0
  111. package/dist/chunks/cli-1.1.4-9cw2608s.mjs +2 -0
  112. package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +2 -0
  113. package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +2 -0
  114. package/dist/chunks/cli-1.1.4-9x9a885k.mjs +17 -0
  115. package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +2 -0
  116. package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +24 -0
  117. package/dist/chunks/cli-1.1.4-axp071a4.mjs +2 -0
  118. package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +1 -0
  119. package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +2 -0
  120. package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +2 -0
  121. package/dist/chunks/cli-1.1.4-bxd06hws.mjs +2 -0
  122. package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +2 -0
  123. package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +2 -0
  124. package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +2 -0
  125. package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +2 -0
  126. package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +2 -0
  127. package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +6 -0
  128. package/dist/chunks/cli-1.1.4-cp707f4g.mjs +2 -0
  129. package/dist/chunks/cli-1.1.4-cst0a515.mjs +3 -0
  130. package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +2 -0
  131. package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +2 -0
  132. package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +2 -0
  133. package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +2 -0
  134. package/dist/chunks/cli-1.1.4-da50kprz.mjs +2 -0
  135. package/dist/chunks/cli-1.1.4-dapq2czd.mjs +3 -0
  136. package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +3 -0
  137. package/dist/chunks/cli-1.1.4-dwez6b01.mjs +2 -0
  138. package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +4 -0
  139. package/dist/chunks/cli-1.1.4-edegax48.mjs +2 -0
  140. package/dist/chunks/cli-1.1.4-ekbns70t.mjs +2 -0
  141. package/dist/chunks/cli-1.1.4-esw78wsd.mjs +2 -0
  142. package/dist/chunks/cli-1.1.4-etajychz.mjs +2 -0
  143. package/dist/chunks/cli-1.1.4-evye603x.mjs +5 -0
  144. package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +24 -0
  145. package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +2 -0
  146. package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +2 -0
  147. package/dist/chunks/cli-1.1.4-fa18654s.mjs +2 -0
  148. package/dist/chunks/cli-1.1.4-fap2565a.mjs +15 -0
  149. package/dist/chunks/cli-1.1.4-fejb0548.mjs +2 -0
  150. package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +133 -0
  151. package/dist/chunks/cli-1.1.4-fk420f57.mjs +16 -0
  152. package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +9 -0
  153. package/dist/chunks/cli-1.1.4-g6nryz17.mjs +2 -0
  154. package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +2 -0
  155. package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +2 -0
  156. package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +2 -0
  157. package/dist/chunks/cli-1.1.4-gey397p1.mjs +2 -0
  158. package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +20 -0
  160. package/dist/chunks/cli-1.1.4-gpskbg68.mjs +2 -0
  161. package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +18 -0
  162. package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +12 -0
  163. package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +58 -0
  164. package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +2 -0
  165. package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +2 -0
  166. package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +25 -0
  167. package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +2 -0
  168. package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +12 -0
  169. package/dist/chunks/cli-1.1.4-hzx821eq.mjs +4 -0
  170. package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +2 -0
  171. package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +2 -0
  173. package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +2 -0
  174. package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +2 -0
  175. package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +24 -0
  176. package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +2 -0
  177. package/dist/chunks/cli-1.1.4-jscqx4px.mjs +2 -0
  178. package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +9 -0
  179. package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +2 -0
  180. package/dist/chunks/cli-1.1.4-kcm529kx.mjs +2 -0
  181. package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +2 -0
  182. package/dist/chunks/cli-1.1.4-m312ygm6.mjs +2 -0
  183. package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +2 -0
  184. package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +2 -0
  185. package/dist/chunks/cli-1.1.4-memqhcjv.mjs +2 -0
  186. package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +50 -0
  187. package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +2 -0
  188. package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +2 -0
  189. package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +3 -0
  190. package/dist/chunks/cli-1.1.4-my1g33fn.mjs +3 -0
  191. package/dist/chunks/cli-1.1.4-mzzr964a.mjs +67 -0
  192. package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +2 -0
  193. package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +2 -0
  194. package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +59 -0
  195. package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +5 -0
  196. package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +2 -0
  197. package/dist/chunks/cli-1.1.4-p2223zcm.mjs +2 -0
  198. package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +6 -0
  199. package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +2 -0
  200. package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +8 -0
  201. package/dist/chunks/cli-1.1.4-phjb22vy.mjs +2 -0
  202. package/dist/chunks/cli-1.1.4-phv78vpk.mjs +2 -0
  203. package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +15 -0
  204. package/dist/chunks/cli-1.1.4-q0acv376.mjs +3 -0
  205. package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.4-qe35eyha.mjs +6 -0
  207. package/dist/chunks/cli-1.1.4-qecgken2.mjs +2 -0
  208. package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +2 -0
  209. package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +2 -0
  210. package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +4 -0
  211. package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +2 -0
  212. package/dist/chunks/cli-1.1.4-rhexcyth.mjs +2 -0
  213. package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +42 -0
  214. package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +2 -0
  215. package/dist/chunks/cli-1.1.4-rv3se129.mjs +2 -0
  216. package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +2 -0
  217. package/dist/chunks/cli-1.1.4-s26ny46b.mjs +4 -0
  218. package/dist/chunks/cli-1.1.4-scm26s6m.mjs +34 -0
  219. package/dist/chunks/cli-1.1.4-shrznr3s.mjs +2 -0
  220. package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +6 -0
  221. package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +4 -0
  222. package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +2 -0
  223. package/dist/chunks/cli-1.1.4-te2372tc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +2 -0
  227. package/dist/chunks/cli-1.1.4-v85q5z49.mjs +3 -0
  228. package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +4 -0
  229. package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +2 -0
  230. package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +2 -0
  231. package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +2 -0
  232. package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +39 -0
  234. package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +4 -0
  235. package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +2 -0
  236. package/dist/chunks/cli-1.1.4-vye1xark.mjs +2 -0
  237. package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +2 -0
  238. package/dist/chunks/cli-1.1.4-w11nd4na.mjs +2 -0
  239. package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +2 -0
  240. package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +2 -0
  242. package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +2 -0
  243. package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +4 -0
  244. package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +3 -0
  245. package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +2 -0
  246. package/dist/chunks/cli-1.1.4-x8m7spde.mjs +2 -0
  247. package/dist/chunks/cli-1.1.4-x90d3r95.mjs +2 -0
  248. package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +45 -0
  249. package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +2 -0
  250. package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +2 -0
  251. package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +2 -0
  252. package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +2 -0
  253. package/dist/chunks/cli-1.1.4-yprszvr2.mjs +2 -0
  254. package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +2 -0
  255. package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +2 -0
  256. package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +12 -0
  257. package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +15 -0
  258. package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +2 -0
  259. package/dist/chunks/cli-1.1.4-zc29khqe.mjs +3 -0
  260. package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +3 -0
  261. package/dist/chunks/client-1.1.4-pb5ebapt.mjs +1 -0
  262. package/dist/chunks/color-1.1.4-f1seyygj.mjs +1 -0
  263. package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +3 -0
  264. package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +1 -0
  265. package/dist/chunks/config-1.1.4-jb46a3qp.mjs +1 -0
  266. package/dist/chunks/constants-1.1.4-cspjb06k.mjs +1 -0
  267. package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +1 -0
  269. package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +1 -0
  271. package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +9 -0
  272. package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +1 -0
  274. package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +1 -0
  275. package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +1446 -0
  277. package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +1 -0
  279. package/dist/chunks/detection-1.1.4-knvchyz7.mjs +1 -0
  280. package/dist/chunks/diff-1.1.4-9k603anv.mjs +1 -0
  281. package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +1 -0
  284. package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +13 -0
  285. package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +1 -0
  287. package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +1 -0
  289. package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +1 -0
  290. package/dist/chunks/errors-1.1.4-k81rbfst.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +1 -0
  292. package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +1 -0
  293. package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +1 -0
  294. package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +1 -0
  295. package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +2 -0
  296. package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +1 -0
  297. package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +1 -0
  298. package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +1 -0
  299. package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +14 -0
  300. package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +1 -0
  301. package/dist/chunks/git-1.1.4-ress16mq.mjs +1 -0
  302. package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +1 -0
  303. package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +4 -0
  304. package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +1 -0
  305. package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +1 -0
  306. package/dist/chunks/headless-1.1.4-833q6qkz.mjs +2 -0
  307. package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +6 -0
  308. package/dist/chunks/help-1.1.4-35bcy608.mjs +1 -0
  309. package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +3 -0
  310. package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +1 -0
  311. package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +79 -0
  312. package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +3 -0
  313. package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +1 -0
  314. package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +1 -0
  315. package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +1 -0
  316. package/dist/chunks/index-1.1.4-0tamkcjt.mjs +1 -0
  317. package/dist/chunks/index-1.1.4-2czk0cj2.mjs +2 -0
  318. package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +1 -0
  319. package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +1 -0
  320. package/dist/chunks/index-1.1.4-6gmnecfx.mjs +1 -0
  321. package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +1 -0
  322. package/dist/chunks/index-1.1.4-9yayje25.mjs +1 -0
  323. package/dist/chunks/index-1.1.4-ekp3k254.mjs +1 -0
  324. package/dist/chunks/index-1.1.4-g4bsry7f.mjs +1 -0
  325. package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +1 -0
  326. package/dist/chunks/index-1.1.4-jk66219f.mjs +30 -0
  327. package/dist/chunks/index-1.1.4-m5859ars.mjs +5 -0
  328. package/dist/chunks/index-1.1.4-m5kxdznq.mjs +1 -0
  329. package/dist/chunks/index-1.1.4-mr07jhdc.mjs +1 -0
  330. package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +17 -0
  331. package/dist/chunks/index-1.1.4-nx0c7851.mjs +9 -0
  332. package/dist/chunks/index-1.1.4-p4az8jd4.mjs +9 -0
  333. package/dist/chunks/index-1.1.4-s48qa1fv.mjs +1 -0
  334. package/dist/chunks/index-1.1.4-svjv72c1.mjs +1 -0
  335. package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +1 -0
  336. package/dist/chunks/index-1.1.4-v1z11db7.mjs +1 -0
  337. package/dist/chunks/index-1.1.4-wkgybs2k.mjs +2 -0
  338. package/dist/chunks/init-1.1.4-gggf2npg.mjs +1 -0
  339. package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +1 -0
  340. package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +1 -0
  341. package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +870 -0
  342. package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +1 -0
  343. package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +149 -0
  344. package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +1 -0
  345. package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +1 -0
  346. package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +1 -0
  347. package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +2 -0
  348. package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +2 -0
  349. package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +1 -0
  350. package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +1 -0
  352. package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +1 -0
  353. package/dist/chunks/log-1.1.4-2xexxfy0.mjs +1 -0
  354. package/dist/chunks/main-1.1.4-wapb45da.mjs +1 -0
  355. package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +4 -0
  358. package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +17 -0
  359. package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +1 -0
  360. package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +72 -0
  361. package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +2 -0
  362. package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +1 -0
  363. package/dist/chunks/node-1.1.4-zfc18psp.mjs +12 -0
  364. package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +1 -0
  365. package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +14 -0
  366. package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +1 -0
  367. package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +1 -0
  368. package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +1 -0
  369. package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +1 -0
  370. package/dist/chunks/passes-1.1.4-fps8mejy.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +3 -0
  372. package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +1 -0
  373. package/dist/chunks/plan-1.1.4-66evqh4y.mjs +1 -0
  374. package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +1 -0
  375. package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +29 -0
  376. package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +1 -0
  377. package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +9 -0
  378. package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +2 -0
  379. package/dist/chunks/print-1.1.4-fxrwvp78.mjs +57 -0
  380. package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +1 -0
  381. package/dist/chunks/process-1.1.4-pjq03ry2.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.4-26y972y6.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +13 -0
  388. package/dist/chunks/provider-1.1.4-g97havfk.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +34 -0
  393. package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +1 -0
  399. package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +1 -0
  402. package/dist/chunks/resume-1.1.4-3qy136p1.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +1 -0
  408. package/dist/chunks/session-1.1.4-5504ewv9.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +1 -0
  412. package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +1 -0
  413. package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +1 -0
  415. package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +1 -0
  418. package/dist/chunks/state-1.1.4-rm5651xg.mjs +1 -0
  419. package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +6 -0
  420. package/dist/chunks/status-1.1.4-v47t86mv.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +1 -0
  428. package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +1 -0
  433. package/dist/chunks/tools-1.1.4-g181kv47.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +69 -0
  436. package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +4 -0
  438. package/dist/chunks/update-1.1.4-z8g0pneq.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +1 -0
  440. package/dist/chunks/upload-1.1.4-2av9969z.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +1 -0
  443. package/dist/chunks/usage-1.1.4-wc38b22t.mjs +1 -0
  444. package/dist/chunks/util-1.1.4-re2ggpra.mjs +1 -0
  445. package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +1 -0
  446. package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/package.json +9 -9
  456. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +0 -1
  457. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +0 -1
  458. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +0 -1
  459. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +0 -1
  460. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +0 -1
  461. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +0 -1
  462. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +0 -1
  463. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +0 -1
  464. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +0 -7
  465. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +0 -1
  466. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +0 -6
  467. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +0 -1
  468. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +0 -1
  469. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +0 -1
  470. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +0 -1
  471. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +0 -1
  472. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +0 -1
  473. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +0 -1
  474. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +0 -1
  475. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +0 -1
  476. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +0 -1
  477. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +0 -1
  478. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +0 -1
  479. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +0 -1
  480. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +0 -9
  481. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +0 -1
  482. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +0 -1
  483. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +0 -1
  484. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +0 -1
  485. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +0 -1
  486. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +0 -3
  487. package/dist/chunks/agents-1.1.2-rxkey856.mjs +0 -110
  488. package/dist/chunks/api-1.1.2-fpd74byc.mjs +0 -1
  489. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +0 -1
  490. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +0 -1
  491. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +0 -1
  492. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +0 -1
  493. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +0 -48
  494. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +0 -1
  495. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +0 -1
  496. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +0 -4
  497. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +0 -2
  498. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +0 -1
  499. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +0 -1
  500. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +0 -88
  501. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +0 -1
  502. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +0 -1
  503. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +0 -3
  504. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +0 -1
  505. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +0 -21
  506. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +0 -4
  507. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +0 -1
  508. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +0 -1
  509. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +0 -1
  510. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +0 -1
  511. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +0 -1
  512. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +0 -9
  513. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +0 -2
  514. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +0 -2
  515. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +0 -2
  516. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +0 -2
  517. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +0 -2
  518. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +0 -2
  519. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +0 -2
  520. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +0 -133
  521. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +0 -2
  522. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +0 -2
  523. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +0 -17
  524. package/dist/chunks/cli-1.1.2-26xrf159.mjs +0 -2
  525. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +0 -25
  526. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +0 -3
  527. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +0 -4
  528. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +0 -2
  529. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +0 -15
  530. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +0 -3
  531. package/dist/chunks/cli-1.1.2-312r29db.mjs +0 -2
  532. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +0 -2
  533. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +0 -24
  534. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +0 -2
  535. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +0 -2
  536. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +0 -2
  537. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +0 -2
  538. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +0 -2
  539. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +0 -2
  540. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +0 -2
  541. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +0 -2
  542. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +0 -6
  543. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +0 -67
  544. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +0 -2
  545. package/dist/chunks/cli-1.1.2-526csky8.mjs +0 -2
  546. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +0 -12
  547. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +0 -25
  548. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +0 -2
  549. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +0 -2
  550. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +0 -4
  551. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +0 -2
  552. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +0 -2
  553. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +0 -5638
  554. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +0 -18
  556. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +0 -7
  557. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +0 -2
  558. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +0 -2
  559. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +0 -2
  561. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +0 -2
  562. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +0 -24
  563. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +0 -20
  564. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +0 -2
  567. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +0 -3
  568. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +0 -2
  569. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +0 -2
  570. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +0 -2
  571. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +0 -2
  572. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +0 -2
  573. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +0 -2
  574. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +0 -2
  575. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +0 -2
  576. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +0 -2
  577. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +0 -4
  578. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +0 -2
  579. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +0 -2
  580. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +0 -2
  581. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +0 -21
  582. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +0 -4
  583. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +0 -2
  584. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +0 -2
  585. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +0 -2
  586. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +0 -4
  587. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +0 -2
  588. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +0 -2
  589. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +0 -4
  590. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +0 -2
  591. package/dist/chunks/cli-1.1.2-efe0402v.mjs +0 -2
  592. package/dist/chunks/cli-1.1.2-em7hye78.mjs +0 -4
  593. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +0 -2
  594. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +0 -2
  595. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +0 -2
  596. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +0 -16
  597. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +0 -2
  598. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +0 -2
  599. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +0 -2
  600. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +0 -2
  601. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +0 -2
  602. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +0 -15
  603. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +0 -3
  604. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +0 -2
  605. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +0 -2
  606. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +0 -24
  607. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +0 -2
  608. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +0 -2
  609. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +0 -2
  610. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +0 -2
  612. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +0 -6
  613. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +0 -9
  614. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +0 -2
  615. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +0 -4
  616. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +0 -2
  617. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +0 -2
  618. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +0 -3
  619. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +0 -17
  620. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +0 -2
  621. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +0 -59
  622. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +0 -2
  623. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +0 -3
  624. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +0 -2
  625. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +0 -2
  626. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +0 -2
  627. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +0 -2
  628. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +0 -3
  629. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +0 -2
  630. package/dist/chunks/cli-1.1.2-kav702qr.mjs +0 -2
  631. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +0 -2
  632. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +0 -3
  633. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +0 -2
  634. package/dist/chunks/cli-1.1.2-m0529q09.mjs +0 -45
  635. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +0 -18
  636. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +0 -2
  637. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +0 -2
  638. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +0 -2
  639. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +0 -12
  640. package/dist/chunks/cli-1.1.2-mr55880g.mjs +0 -2
  641. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +0 -2
  642. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +0 -2
  643. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +0 -2
  644. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +0 -2
  645. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +0 -5
  646. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +0 -4
  647. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +0 -2
  648. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +0 -2
  649. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +0 -2
  650. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +0 -2
  651. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +0 -4
  652. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +0 -2
  653. package/dist/chunks/cli-1.1.2-r32per66.mjs +0 -2
  654. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +0 -2
  655. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +0 -6
  656. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +0 -2
  657. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +0 -8
  659. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +0 -15
  660. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +0 -2
  661. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +0 -2
  662. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +0 -2
  663. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +0 -2
  664. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +0 -2
  665. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +0 -34
  666. package/dist/chunks/cli-1.1.2-se3yz188.mjs +0 -2
  667. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +0 -2
  668. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +0 -133
  669. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +0 -2
  670. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +0 -2
  671. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +0 -2
  672. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +0 -2
  673. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +0 -12
  674. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +0 -6
  675. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +0 -2
  676. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +0 -2
  677. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +0 -2
  678. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +0 -4
  679. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +0 -2
  680. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +0 -3
  681. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +0 -39
  682. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +0 -2
  683. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +0 -2
  684. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +0 -2
  685. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +0 -5
  686. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +0 -2
  687. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +0 -2
  688. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +0 -42
  689. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +0 -2
  690. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +0 -2
  691. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +0 -2
  692. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +0 -58
  693. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +0 -3
  694. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +0 -50
  695. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +0 -2
  696. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +0 -2
  697. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +0 -2
  698. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +0 -2
  699. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +0 -12
  700. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +0 -18
  701. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +0 -2
  702. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +0 -2
  703. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +0 -2
  704. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +0 -202
  705. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +0 -3
  706. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +0 -2
  707. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +0 -1
  708. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +0 -2
  709. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +0 -2
  710. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +0 -6
  711. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +0 -3
  712. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +0 -2
  713. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +0 -2
  714. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +0 -2
  715. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +0 -1
  716. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +0 -1
  717. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +0 -3
  718. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +0 -1
  719. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +0 -1
  720. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +0 -1
  721. package/dist/chunks/context-1.1.2-rw4msk80.mjs +0 -1
  722. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +0 -1
  723. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +0 -1
  724. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +0 -1
  725. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +0 -9
  726. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +0 -1
  727. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +0 -1
  728. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +0 -1
  729. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +0 -1
  730. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +0 -1446
  731. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +0 -1
  732. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +0 -1
  733. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +0 -1
  734. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +0 -1
  735. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +0 -1
  736. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +0 -1
  737. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +0 -1
  738. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +0 -13
  739. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +0 -1
  740. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +0 -1
  741. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +0 -1
  742. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +0 -1
  743. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +0 -1
  744. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +0 -1
  745. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +0 -1
  746. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +0 -1
  747. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +0 -1
  748. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +0 -1
  749. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +0 -2
  750. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +0 -1
  752. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +0 -1
  753. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +0 -1
  755. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +0 -1
  757. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +0 -4
  758. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +0 -1
  759. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +0 -1
  760. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +0 -2
  761. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +0 -6
  762. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +0 -1
  763. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +0 -3
  764. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +0 -79
  765. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +0 -1
  766. package/dist/chunks/ide-1.1.2-je812srr.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +0 -1
  769. package/dist/chunks/index-1.1.2-3evh58r7.mjs +0 -1
  770. package/dist/chunks/index-1.1.2-69bhefzj.mjs +0 -1
  771. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +0 -1
  772. package/dist/chunks/index-1.1.2-7sphewt0.mjs +0 -5
  773. package/dist/chunks/index-1.1.2-947wna4y.mjs +0 -1
  774. package/dist/chunks/index-1.1.2-95c20hmc.mjs +0 -1
  775. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +0 -1
  776. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +0 -2
  777. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +0 -1
  778. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +0 -9
  779. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +0 -1
  780. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +0 -1
  781. package/dist/chunks/index-1.1.2-kzzb5289.mjs +0 -1
  782. package/dist/chunks/index-1.1.2-madt9yt1.mjs +0 -1
  783. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +0 -2
  784. package/dist/chunks/index-1.1.2-pzx0977r.mjs +0 -1
  785. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +0 -1
  786. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +0 -1
  787. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +0 -1
  788. package/dist/chunks/index-1.1.2-thaazk19.mjs +0 -17
  789. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +0 -30
  790. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +0 -1
  791. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +0 -9
  792. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +0 -1
  793. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +0 -1
  794. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +0 -1
  795. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +0 -870
  796. package/dist/chunks/install-1.1.2-89hhj53e.mjs +0 -1
  797. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +0 -149
  798. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +0 -1
  799. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +0 -1
  801. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +0 -2
  802. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +0 -1
  807. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +0 -1
  808. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +0 -1
  809. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +0 -1
  811. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +0 -17
  812. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +0 -4
  813. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +0 -1
  814. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +0 -72
  815. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +0 -1
  816. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +0 -2
  817. package/dist/chunks/node-1.1.2-msn09mvf.mjs +0 -12
  818. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +0 -1
  819. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +0 -14
  820. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +0 -1
  821. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +0 -1
  823. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +0 -1
  824. package/dist/chunks/passes-1.1.2-z98me43k.mjs +0 -1
  825. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +0 -3
  826. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +0 -1
  827. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +0 -1
  828. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +0 -1
  829. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +0 -1
  831. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +0 -9
  832. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +0 -2
  833. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +0 -57
  834. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +0 -1
  835. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +0 -1
  836. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +0 -9
  838. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +0 -1
  839. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +0 -1
  840. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +0 -1
  841. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +0 -13
  842. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +0 -2
  843. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +0 -1
  844. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +0 -34
  847. package/dist/chunks/registry-1.1.2-bteqae43.mjs +0 -1
  848. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +0 -5
  849. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +0 -2
  850. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +0 -1
  852. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +0 -1
  853. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +0 -1
  855. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +0 -1
  856. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +0 -2
  857. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +0 -1
  858. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +0 -1
  859. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +0 -10
  860. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +0 -1
  861. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +0 -1
  862. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +0 -2
  863. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +0 -1
  864. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +0 -1
  865. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +0 -1
  866. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +0 -1
  867. package/dist/chunks/setup-1.1.2-5f344krn.mjs +0 -5
  868. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +0 -1
  869. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +0 -1
  870. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +0 -1
  871. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +0 -1
  872. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +0 -1
  873. package/dist/chunks/stats-1.1.2-x2men93c.mjs +0 -6
  874. package/dist/chunks/status-1.1.2-k6342tq7.mjs +0 -1
  875. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +0 -1
  876. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +0 -1
  877. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +0 -1
  878. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +0 -1
  879. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +0 -1
  880. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +0 -1
  881. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +0 -1
  882. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +0 -1
  883. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +0 -1
  884. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +0 -1
  885. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +0 -1
  886. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +0 -1
  887. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +0 -1
  888. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +0 -1
  889. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +0 -69
  890. package/dist/chunks/types-1.1.2-vst16v9y.mjs +0 -1
  891. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +0 -4
  892. package/dist/chunks/update-1.1.2-7daxbkja.mjs +0 -72
  893. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +0 -1
  894. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +0 -7
  895. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +0 -14
  896. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +0 -1
  897. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +0 -1
  898. package/dist/chunks/util-1.1.2-790z163z.mjs +0 -1
  899. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +0 -1
  900. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +0 -1
  901. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +0 -13
  902. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +0 -1
  903. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +0 -132
  904. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +0 -1
  905. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +0 -1
  906. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +0 -1
  907. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +0 -7
  908. /package/dist/chunks/{cli-1.1.2-8t8veykp.mjs → cli-1.1.4-1f3p70jj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.2-3vyt3jw9.mjs → cli-1.1.4-ez4xtmvg.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.2-6jbsqbdw.mjs → cli-1.1.4-gp99zrz4.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.2-btgmqahb.mjs → cli-1.1.4-gpvz5jfv.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.2-6d3jf0sj.mjs → cli-1.1.4-n0dzwv49.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.2-r4rfggdk.mjs → cli-1.1.4-q1mcaeav.mjs} +0 -0
  914. /package/dist/chunks/{cli-1.1.2-pgz05ddc.mjs → cli-1.1.4-tg5t7jrb.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{o9 as E2,q9 as L8}from"./cli-1.1.2-y8dhsas4.mjs";import{s9 as C,t9 as J$}from"./cli-1.1.2-gvwc8kmd.mjs";import{E9 as r5,G9 as k8}from"./cli-1.1.2-zy7bxchk.mjs";import{Aga as J0,D_ as F0,E_ as F1,Ifa as R4,Jba as B5,Kea as d,Kfa as X4,Mga as b,Nda as O,Nfa as P2,Ofa as q$,P_ as v5,Pda as G2,Pea as t5,Qea as A,S_ as Q$,Sda as Y0,Tda as M,Tea as K,Uga as s0,Zea as J4,_ba as wZ,aea as H0,d$ as E5,f$ as Y$,hda as $4,jea as e4,lea as X$,lga as s5,mea as f1,mfa as i,nea as i8,ofa as Q4,oga as w4,pfa as KZ,qda as FZ,t_ as g4,tfa as Y4,u_ as s,uga as a5,v_ as D2,vba as C1,w_ as U0,wba as l8,x_ as p4,xga as D,y_ as r2}from"./cli-1.1.2-z31tqg0s.mjs";import{Uha as C0,Wha as M4,eia as A1}from"./cli-1.1.2-7jcscwh5.mjs";import{jja as f5,kja as o4,lja as R0,nja as F8,oja as K8,qja as U,rja as M0}from"./cli-1.1.2-qge4zbeg.mjs";import{sja as j,vja as B2}from"./cli-1.1.2-whyrn26g.mjs";import{$ja as O5,dka as $$,hka as s2,lka as g8,vka as z,xka as d0,yka as $0}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as p,Xka as G1,ala as H1}from"./cli-1.1.2-dgw89jzs.mjs";import{dla as P5,gla as F,ila as u,kla as v2,nla as r4,qla as g}from"./cli-1.1.2-gxzwceae.mjs";import{Loa as f,Sma as q0,Soa as h1,Tma as U1,Vna as i1,Vqa as Q0,hoa as Z4,hpa as z1,ipa as x1,jpa as j1,kpa as B1,loa as S4,qoa as T0,roa as J2,wpa as j2}from"./cli-1.1.2-s2xde2xb.mjs";import{sra as y,tra as t0}from"./cli-1.1.2-9rh5p8p5.mjs";import{Pra as P,fsa as q2}from"./cli-1.1.2-m2ar3b2y.mjs";import{Bsa as y0,Dsa as n2,Esa as R,Fsa as Z0}from"./cli-1.1.2-10g0wy7w.mjs";function u5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:q,context:V}=$.shift();try{let x=await Z.apply(V,Y);X(x)}catch(x){q(x)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,q)=>{$.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var g5=()=>{};function m5(Z,$){return Z.find((J)=>J.includes($))??null}async function c5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.1.2-t2gvqgcr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.2-69bhefzj.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function ZJ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-1.1.2-t2gvqgcr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.2-69bhefzj.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function D8(Z){return Z.startsWith("anthropic.")}function b8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function U8(Z){let $=b8(Z);for(let J of N8)if($.startsWith(`${J}.anthropic.`))return J;return}function JJ(Z,$){let J=U8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(D8(Z))return`${$}.${Z}`;return Z}var p5,$J,N8;var d5=R(()=>{t0();n();g();s0();L8();p5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([c5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw b(Y),Y}});$J=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([c5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch($){return b($),null}});N8=["us","eu","apac","global"]});var _2,I2,y2,T2,S2,M2,h2,A2,C2,a0,r0,o0,v0,f2,u2,g2,B0,YJ,n5;var p2=R(()=>{_2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},h2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},v0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},u2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},g2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},B0={haiku35:y2,haiku45:T2,sonnet35:I2,sonnet37:_2,sonnet40:S2,sonnet45:M2,sonnet46:u2,sonnet5:g2,opus40:h2,opus41:A2,opus45:C2,opus46:a0,opus47:r0,opus48:o0,opus5:v0,fable5:f2},YJ=Object.values(B0).map((Z)=>Z.firstParty),n5=Object.fromEntries(Object.entries(B0).map(([Z,$])=>[$.firstParty,Z]))});function l5(){return Object.values(e0)}var e0,m2;var c2=R(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},m2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};n2(_0,{prefetchCopilotModelCatalog:()=>i2,normalizeBareCopilotModelId:()=>l2,getEffectiveCopilotModels:()=>I8,getCopilotDisplayName:()=>y8,getCatalogCopilotMaxOutputTokens:()=>M8,getCatalogCopilotContextWindow:()=>S8,getCachedCopilotCatalog:()=>_8,fetchCopilotModelCatalog:()=>e5,copilotModelSupportsAnthropicMessages:()=>T8,_setCopilotCatalogForTesting:()=>h8});function E0(){let Z=D();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function o5(){if(!l)return!1;let Z=E0();return Z!==null&&G0===Z}function O8(){if(i5)return;i5=!0,t5(()=>{let Z=E0();if(Z&&G0!==Z)i2()})}function l2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function v8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function E8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:v8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function e5(){let Z=D();if(Z?.transport!=="github_copilot")return null;if(s5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),P8);try{let X=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...r5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,x=[];for(let G of q.data){let H=E8(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),x.push(H)}return x.length>0?x:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i2(){O8();let Z=E0();if(!Z)return;if(l&&G0!==Z)l=null,G0=null;if(Z2){if(d2===Z)return;Z2.finally(()=>i2());return}d2=Z,Z2=e5().then(($)=>{if($&&E0()===Z)l=$,G0=Z}).finally(()=>{Z2=null,d2=null})}function _8(){return l}function I8(){if(o5()){let Z=l?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return l5()}function $2(Z){if(!o5())return;let $=l2(Z);return l.find((J)=>J.model.id===$)}function y8(Z){let $=l2(Z);return $2($)?.model.name??e0[$]?.name}function T8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function S8(Z){return $2(Z)?.model.limit.context}function M8(Z){return $2(Z)?.model.limit.output}function h8(Z){l=Z,G0=Z?E0():null}var P8=5000,l=null,G0=null,Z2=null,d2=null,i5=!1;var I0=R(()=>{J0();k8();a5();i();$0();c2()});function W(){let Z=D();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function HJ(){return W()==="firstParty"}function A8(Z){let $=D();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(I0(),y0(_0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function RJ(Z){let $=D()?.transport??"anthropic";if(!C8.has($))return!1;if($==="github_copilot"&&A8(Z))return!1;return!0}function wJ(){return W()}function FJ(){let Z=D();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var C8;var t=R(()=>{J0();C8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of $1)J[Q]=B0[Q][$];return J}async function f8(){let Z=Q2("bedrock"),$;try{$=await p5()}catch(Q){return b(Q),Z}if(!$?.length)return Z;let J={};for(let Q of $1){let Y=B0[Q].firstParty;J[Q]=m5($,Y)||Z[Q]}return J}function Z1(Z){let $=Y0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=n5[Q];if(X&&Y)J[X]=Y}return J}function Y2(Z){let $;try{$=Y0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function u8(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}J1()}function B(){let Z=T0();if(Z===null)return u8(),Z1(Q2(W()));return Z1(Z)}async function OJ(){if(T0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await J1()}var $1,J1;var X2=R(()=>{Q0();s0();g5();H0();d5();p2();t();$1=Object.keys(B0);J1=u5(async()=>{if(T0()!==null)return;try{let Z=await f8();J2(Z)}catch(Z){b(Z)}})});function yJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(k())return!1;let $=S0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function TJ(){if(Q1!==null)return Q1;if(!k())return!1;let Z=_();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var Q1=null;var Y1=R(()=>{n();i();g()});function AJ(Z){return Z}function CJ(){return!1}function X1(){return null}function q1(){return!1}var V1=R(()=>{Y1()});async function dJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":R0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){b(Y)}}async function w0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){b(J)}}var t2=R(()=>{q2();M0();n();i();s0()});import{mkdirSync as p8,writeFileSync as m8}from"fs";function n8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{p8(V2,{recursive:!0,mode:448}),m8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function W1(Z,$){try{let Q=s2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!G1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function R1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[Z];if(!q){let x=W1($,J);return Y(x),x}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let x=s2(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=x.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),n8($,H,J),H}catch(x){z(`Failed to read ${J} from file descriptor ${V}: ${p(x)}`,{level:"error"});let G=W1($,J);return Y(G),G}}function W2(){return R1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:c8,label:"OAuth token",getCached:z1,setCached:x1})}function a2(){return R1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:d8,label:"API key",getCached:j1,setCached:B1})}var V2="/home/claude/.claude/remote",c8,d8,oJ;var w1=R(()=>{Q0();$0();g();H1();g8();c8=`${V2}/.oauth_token`,d8=`${V2}/.api_key`,oJ=`${V2}/.session_ingress_token`});async function K1(){if(process.platform==="darwin"){let Z=s();if((await F0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var L1=R(()=>{F1();r2()});function Y3(Z){return Z?.name==="CredentialsProviderError"}function D1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function o2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function N1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var b1=R(()=>{$0()});class h{static instance=null;status={isAuthenticating:!1,output:[]};changed=q0();static getInstance(){if(!h.instance)h.instance=new h;return h.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(h.instance)h.instance.changed.clear(),h.instance=null}}var k1=R(()=>{U1()});var x2="claude-code-20250219",P1="interleaved-thinking-2025-05-14",h0="context-1m-2025-08-07",O1="context-management-2025-06-27",v1="structured-outputs-2025-12-15",e2="web-search-2025-03-05",E1="advanced-tool-use-2025-11-20",_1="tool-search-tool-2025-10-19",W3="effort-2025-11-24",z3="task-budgets-2026-03-13",I1="prompt-caching-scope-2026-01-05",x3="extended-cache-ttl-2025-04-11",j3="fast-mode-2026-02-01",y1="redact-thinking-2026-02-12",T1="thinking-token-count-2026-05-13",S1="token-efficient-tools-2026-03-28",B3="afk-mode-2026-01-31",G3="advisor-tool-2026-03-01",Z5,H3;var $5=R(()=>{Z5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),H3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function T(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function u1(){if(!T())return!1;return s8()===null}function t8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function s8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!T())return"Fast mode is not available";let Z=C0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!C1()&&C0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&j2()&&!h1()){if(!O("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=t8(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function T3(){let Z=H2(W0());return"opus"+(Y5()&&!Z?"[1m]":"")}function S3(Z){if(!T())return!1;if(!u1())return!1;if(!g1(Z))return!1;let $=Y0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function g1(Z){if(!T())return!1;let $=Z??f0(),J=S($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function a8(){if(K0.status==="cooldown"&&Date.now()>=K0.resetAt){if(T()&&!J5)z("Fast mode cooldown expired, re-enabling fast mode"),J5=!0,m1.emit();K0={status:"active"}}return K0}function A3(Z,$){if(!T())return;K0={status:"cooldown",resetAt:Z,reason:$},J5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),p1.emit(Z,$)}function C3(){K0={status:"active"}}function f3(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},G2("userSettings",{fastMode:void 0}),A((Z)=>({...Z,penguinModeOrgEnabled:!1})),Q5.emit(!1)}function r8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function o8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function g3(Z){let $=r8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!o8(Z))G2("userSettings",{fastMode:void 0}),A((J)=>({...J,penguinModeOrgEnabled:!1}));c1.emit($)}function e8(){return a8().status==="cooldown"}function p3(Z,$){let J=T()&&u1()&&!!$&&g1(Z);if(J&&e8())return"cooldown";if(J)return"on";return"off"}async function ZZ(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":R0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function c3(){if(!T())return;if(E.status!=="pending")return;E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function d3(){if(f1())return;if(!T())return;if(A0)return z("Fast mode prefetch in progress, returning in-flight promise"),A0;let Z=X0();if(!(w()?.accessToken&&V0())&&!Z){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-M1<$Z){z("Skipping fast mode prefetch, fetched recently");return}M1=J;let Q=async()=>{let X=w(),q=X?.accessToken&&V0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return ZZ(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(P.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await X5(G),X=await Q();else throw V}else throw V}let q=E.status!=="pending"?E.status==="enabled":K().penguinModeOrgEnabled;if(E=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)G2("userSettings",{fastMode:void 0});A((V)=>({...V,penguinModeOrgEnabled:X.enabled})),Q5.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){E=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{A0=null}}return A0=Y(),A0}var y3="Opus 5",K0,J5=!1,p1,m1,M3,h3,c1,u3,E,Q5,m3,$Z=30000,M1=0,A0=null;var d1=R(()=>{q2();M0();A1();Q0();B2();n();l8();i();$0();g();L0();t();i8();H0();U1();K0={status:"active"},p1=q0(),m1=q0(),M3=p1.subscribe,h3=m1.subscribe;c1=q0(),u3=c1.subscribe;E={status:"pending"},Q5=q0(),m3=Q5.subscribe});function VZ(Z){for(let $ of qZ)if($.pattern.test(Z))return $.cost;return}function V5(Z){if(T()&&Z)return t1;return a}function W5(Z){if(T()&&Z)return t1;return q5[L(v0.firstParty)]??a}function WZ(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function zZ(Z,$){let J=N(Z);if(J===L(a0.firstParty)||J===L(r0.firstParty)||J===L(o0.firstParty)){let Y=$.speed==="fast";return V5(Y)}if(J===L(v0.firstParty))return W5($.speed==="fast");let Q=q5[J];if(!Q){let Y=VZ(Z);if(Y)return Y;return xZ(Z,J),q5[N(f0())]??XZ}return Q}function xZ(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),i1()}function jZ(Z,$){let J=zZ(Z,$);return WZ(J,$)}function r3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return jZ(Z,J)}function l1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function z5(Z){return`${l1(Z.inputTokens)}/${l1(Z.outputTokens)} per Mtok`}var D0,n1,a,JZ,t1,QZ,YZ,XZ,qZ,q5;var s1=R(()=>{B2();Q0();d1();p2();L0();D0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},n1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},a={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},JZ={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},t1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},QZ={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},YZ={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},XZ=a,qZ=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];q5={[L(y2.firstParty)]:QZ,[L(T2.firstParty)]:YZ,[L(I2.firstParty)]:D0,[L(_2.firstParty)]:D0,[L(S2.firstParty)]:D0,[L(M2.firstParty)]:D0,[L(u2.firstParty)]:D0,[L(g2.firstParty)]:D0,[L(h2.firstParty)]:n1,[L(A2.firstParty)]:n1,[L(C2.firstParty)]:a,[L(a0.firstParty)]:a,[L(r0.firstParty)]:a,[L(o0.firstParty)]:a,[L(v0.firstParty)]:a,[L(f2.firstParty)]:JZ}});function m(Z){return BZ.includes(Z)}function N0(Z){return GZ.includes(Z)}var BZ,GZ;var x5=R(()=>{BZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];GZ=["sonnet","opus","haiku"]});function HZ(Z,$){if(Z.includes($))return!0;if(m(Z))return S(Z).toLowerCase().includes($);return!1}function a1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function RZ(Z,$){let J=m(Z)?S(Z).toLowerCase():Z;if(a1(J,$))return!0;if(!$.startsWith("claude-")&&a1(J,`claude-${$}`))return!0;return!1}function r1(Z,$){for(let J of $){if(N0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function o1(Z){let $=M()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=Y2(Z).trim().toLowerCase(),X=J.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!N0(Y)||!r1(Y,X))return!0}for(let q of X)if(N0(q)&&!r1(q,X)&&HZ(Y,q))return!0;if(m(Y)){let q=S(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!N0(q)&&m(q)){if(S(q).toLowerCase()===Y)return!0}for(let q of X)if(!N0(q)&&!m(q)){if(RZ(Y,q))return!0}return!1}var e1=R(()=>{H0();x5();L0();X2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=D();if(!Z?.model)return;return Q4(Z.model)}function b7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return q4()}function U7(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function H2(Z){let $=N(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j5(){let Z,$=Z4();if($!==void 0)Z=$;else{let J=M()||{},Q=R2(J.model),X=b0()||Q||void 0,q=J4(),V=R2(q.activeModelForProject);if(V){let x=Y4()?.id,G=q.activeModelForProjectProfileId;Z=G===void 0||G===x?V:X}else Z=X}if(Z&&!o1(Z))return;return Z}function k7(){let Z=j5();if(Z!==void 0&&Z!==null)return S(Z);return V4()}function LZ(){return W0()}function W0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function P7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j5()==="opusplan"&&$==="plan"&&!Q)return W0();if(j5()==="haiku"&&$==="plan")return u0();return J}function f0(){let Z=b0();if(W()==="github"){let $=M()||{};return R2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(w2()||F2()){let $=W0();return $+(Y5()&&!H2($)?"[1m]":"")}return u0()}function V4(){return S(f0())}function L(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function N(Z){return L(Y2(Z))}function DZ(Z=!1){if(w2()||F2())return`Opus 5 · Most capable for complex work${Z?NZ(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function O7(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return z4(S(Z))}function v7(Z){if(W()!=="firstParty")return"";let $=z5(V5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function NZ(Z){if(W()!=="firstParty")return"";let $=z5(W5(Z));return` ·${Z?` (${B5})`:""} ${$}`}function Y5(){if(z0()||R5()||W()!=="firstParty")return!1;if(k()&&_()===null)return!1;return!0}function E7(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return $4(Z);return z4(Z)}function W4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(m2[Z])return m2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(I0(),y0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function z4(Z){let $=W4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function _7(Z){let $=W4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function S(Z){let $=R2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=r(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y)){let X=(q)=>Q&&!H2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(u0());case"sonnet":return X(u0());case"haiku":return X(q4());case"opus":return X(W0());case"best":return LZ();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&UZ(Y)&&kZ())return W0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I7(Z,$){if(r(Z)||!r($))return Z;if(G5(S(Z)))return Z+"[1m]";return Z}function UZ(Z){return bZ.includes(Z)}function kZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y7(Z){if(Z===null){if(k())return`Default (${DZ()})`;return`Default (${V4()})`}let $=S(Z);return Z===$?$:`${Z} (${$})`}function T7(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=N(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function S7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function M7(Z){let $=N(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var bZ;var L0=R(()=>{Q0();J0();i();X4();n();H5();g();KZ();X2();s1();H0();t();wZ();e1();x5();FZ();c2();bZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function w5(Z){return}async function A7(){}var x4=()=>{};function EZ(Z,$={}){if($.isPro??(vZ.test(Z)||j4.has(Z)))return!1;if(PZ.has(Z))return!0;if(j4.has(Z))return!1;let Q=Z.match(OZ);return Q?Number.parseFloat(Q[1])>5.4:!1}function f7(){return K2.filter((Z)=>EZ(Z.id,{isPro:Z.isPro}))}var K2,PZ,j4,OZ,vZ,B4,G4;var H4=R(()=>{K2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],PZ=new Set(K2.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),j4=new Set(["gpt-5.5-pro"]),OZ=/^gpt-(\d+\.\d+)/,vZ=/-pro$/;B4=Object.fromEntries(K2.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),G4=Object.fromEntries(K2.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var N4={};n2(N4,{prefetchOpenAICompatibleModels:()=>fZ,getDiscoveredContextWindow:()=>_Z,discoverOpenAICompatibleModelOptions:()=>D4});function _Z(Z){return K4.get(Z)}function IZ(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function L4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function yZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function TZ(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(yZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(L4(Z))J["api-key"]=$;return J}function SZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&L4(Z)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function MZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function hZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function AZ(Z,$){let J=new Set;for(let Q of Z)try{let Y=await P.get(Q,{headers:$,timeout:F4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let x=q.name?.trim()||V,G=q.context_length??null;if(G&&G>0)K4.set(V,G);let H=G?` · ${hZ(G)}`:"";X.push({value:V,label:x,description:`${V}${H}`})}if(X.length>0)return X.sort((q,V)=>{let x=String(q.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=x.localeCompare(G);return H!==0?H:String(q.value).localeCompare(String(V.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function CZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:F4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function D4(){if(W()!=="openai")return[];let Z=IZ(),$=TZ(Z),J=await AZ(SZ(Z),$);if(J.length>0)return J;let Q=MZ(Z);if(Q)return CZ(Q,$);return[]}function fZ(){if(g0)return g0;return g0=(async()=>{if(!w4()?.startsWith("openai:"))return;try{let $=await D4();if($.length>0)R4($)}catch{}finally{g0=null}})(),g0}var F4=5000,K4,g0=null;var b4=R(()=>{q2();J0();a5();$0();t();X4();K4=new Map});function k4(Z,$,J){let Q=D()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=U4($,J);if(Y!==void 0)return Y;return U4(Z,J)}function U4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function P4(Z){try{let{getDiscoveredContextWindow:J}=(b4(),y0(N4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=k4(uZ,pZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(I0(),y0(_0));return J(Z)}catch{return}}function O4(Z){let $=k4(gZ,mZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(I0(),y0(_0));return J(Z)}catch{return}}var uZ,gZ,pZ,mZ;var v4=R(()=>{J0();H4();uZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...B4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},gZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...G4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},pZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),mZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function E4(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function z0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function r(Z){if(z0())return!1;return/\[1m\]/i.test(Z)}function G5(Z){if(z0())return!1;let $=N(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function X9(Z,$){if(r(Z))return 1e6;if(E4()){let Q=P4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),cZ}let J=w5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>F5&&z0())return F5;return J.max_input_tokens}if(!z0()&&(N(Z).includes("fable-5")||N(Z).includes("sonnet-5")||N(Z).includes("opus-5")))return 1e6;if($?.includes(h0)&&G5(Z))return 1e6;if(lZ(Z))return 1e6;return F5}function lZ(Z){if(z0())return!1;if(r(Z))return!1;if(!N(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function q9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function V9(Z){let $,J;if(E4()){let X=O4(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=N(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=dZ,J=nZ;let Y=w5(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var F5=200000,cZ,J9=20000,dZ=32000,nZ=64000,Q9=8000,Y9=64000;var H5=R(()=>{$5();J0();i();g();L0();x4();v4();cZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var iZ,_4;var I4=R(()=>{t0();t();iZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],_4=y((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of iZ){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function tZ(Z){let $=[],J=[];for(let Q of Z)if(h4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function P9(Z){if(!Z||Z.length===0)return;if(k()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=tZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${h4.join(", ")}`);return $.length>0?$:void 0}function y4(Z){let $=_4(Z,"interleaved_thinking");if($!==void 0)return $;let J=N(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function sZ(Z){let $=N(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function aZ(Z){let $=N(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function rZ(Z){let $=N(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function O9(Z){let $=N(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function v9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return _1;return E1}function T4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function E9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function _9(Z,$){let J=[...A4(Z)];if($?.isAgenticQuery){if(!J.includes(x2))J.push(x2)}let Q=S4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function C4(){K5.cache?.clear?.(),A4.cache?.clear?.(),oZ.cache?.clear?.()}var h4,K5,A4,oZ;var f4=R(()=>{t0();A1();Q0();$5();M0();n();H5();g();L0();I4();t();H0();h4=[h0];K5=y((Z)=>{let $=[],J=N(Z).includes("haiku"),Q=W(),Y=T4();if(!J)$.push(x2);if(k())$.push(R0);if(r(Z))$.push(h0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&y4(Z))$.push(P1);if(Y&&y4(Z)&&!f()&&Y0().showThinkingSummaries!==!0)$.push(y1),$.push(T1);let X=aZ(Z);if(T4()&&X)$.push(O1);let q=M4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||C0("tengu_amber_json_tools",!1));if(Y&&rZ(Z)&&q)$.push(v1);if(Y&&V)$.push(S1);if(Q==="vertex"&&sZ(Z))$.push(e2);if(Q==="foundry")$.push(e2);if(Y)$.push(I1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((x)=>x.trim()).filter(Boolean));return $}),A4=y((Z)=>{let $=K5(Z);if(W()==="bedrock")return $.filter((J)=>!Z5.has(J));return $}),oZ=y((Z)=>{return K5(Z).filter((J)=>Z5.has(J))})});import{execFile as eZ}from"child_process";function u4(Z){return new Promise(($)=>{eZ("security",["find-generic-password","-a",D2(),"-w","-s",Z],{encoding:"utf-8",timeout:Z$},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function M9(){if(process.platform!=="darwin"||L2||u())return;let Z=u4(s(g4)),$=u4(s());L2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)p4(J.stdout);if(!Q.timedOut)L5={stdout:Q.stdout}})}async function h9(){if(L2)await L2}function m4(){return L5}function D5(){L5=null}var Z$=1e4,L5=null,L2=null;var c4=R(()=>{g();r2()});function N5(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((V,x,G)=>{V?.removeEventListener("abort",x),G()},Z,$,q,Q);function q(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)X.unref()})}var d4=()=>{};function f9(){return n4}function l4(){n4.clear()}var n4;var i4=R(()=>{n4=new Map});var d$={};n2(d$,{validateForceLoginOrg:()=>c$,saveOAuthTokensIfNeeded:()=>x8,saveApiKey:()=>A5,removeApiKey:()=>I$,refreshGcpCredentialsIfNeeded:()=>h5,refreshGcpAuth:()=>W8,refreshAwsAuth:()=>q8,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>O$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>v$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>R$,isUsing3PServices:()=>k2,isTeamSubscriber:()=>A$,isTeamPremiumSubscriber:()=>F2,isProSubscriber:()=>R5,isOverageProvisioningAllowed:()=>M$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>H8,isMaxSubscriber:()=>w2,isGcpAuthRefreshFromProjectSettings:()=>M5,isEnterpriseSubscriber:()=>C$,isCustomApiKeyApproved:()=>_$,isConsumerSubscriber:()=>p$,isClaudeAISubscriber:()=>k,isAwsCredentialExportFromProjectSettings:()=>T5,isAwsAuthRefreshFromProjectSettings:()=>I5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>S$,hasProfileScope:()=>V0,hasOpusAccess:()=>h$,hasAnthropicApiKeyAuth:()=>j$,handleOAuth401Error:()=>X5,getSubscriptionType:()=>_,getSubscriptionName:()=>B8,getRateLimitTier:()=>j8,getOtelHeadersFromHelper:()=>u$,getOauthAccountInfo:()=>U2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>S0,getApiKeyHelperElapsedMs:()=>B$,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>U5,getApiKeyFromApiKeyHelper:()=>X8,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>m$,clearOAuthTokenCache:()=>C5,clearGcpCredentialsCache:()=>P$,clearAwsCredentialsCache:()=>D$,clearApiKeyHelperCache:()=>H$,checkGcpCredentialsValid:()=>V8,checkAndRefreshOAuthTokenIfNeeded:()=>l0,calculateApiKeyHelperTTL:()=>Y8});import{exec as J8}from"child_process";import{mkdir as V$,stat as W$}from"fs/promises";import{join as z$}from"path";function b2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k2(),J=(M()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!b2()||X&&!b2())}function S0(){if(u()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!b2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!b2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function j$(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=D();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:U5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=r4()?void 0:$;if(j2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=a2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!k2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=a2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:U5(),source:"apiKeyHelper"}}let X=O2();if(X)return X;return{key:null,source:"none"}}function o(){if(u())return O("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function Q8(){let Z=o();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function _5(){return(M()||{}).awsAuthRefresh}function I5(){let Z=_5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y5(){return(M()||{}).awsCredentialExport}function T5(){let Z=y5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Y8(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return x$}function B$(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function X8(Z){if(!o())return null;let $=Y8();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:t4(Z,!1,k0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:t4(Z,!0,k0),startedAt:Date.now()},c.promise}async function t4(Z,$,J){try{let Q=await G$(Z);if(J!==k0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==k0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(C.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===k0)c=null}}async function G$(Z){let $=o();if(!$)return null;if(Q8()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",X),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await F0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function U5(){return I?.value??null}function H$(){k0++,I=null,c=null}function R$(Z){if(Q8()&&!d())return;X8(Z)}async function F$(){let Z=_5();if(!Z)return!1;if(I5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await o2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return q8(Z)}}function q8(Z){z("Running AWS auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:K$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?C.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function L$(){let Z=y5();if(!Z)return null;if(T5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await o2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await F0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=O5($.stdout.trim());if(!D1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=C.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function D$(){j0.cache.clear()}function S5(){return(M()||{}).gcpAuthRefresh}function M5(){let Z=S5();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function V8(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=N5(N$).then(()=>{throw new R8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function U$(){let Z=S5();if(!Z)return!1;if(M5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await V8())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return W8(Z)}function W8(Z){z("Running GCP auth refresh command");let $=h.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=J8(Z,{timeout:k$});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=X==="SIGTERM"?C.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):C.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function P$(){h5.cache.clear()}function O$(){if(!S5())return;if(M5()){if(!d()&&!f())return}h5()}function v$(){let Z=_5(),$=y5();if(!Z&&!$)return;if(I5()||T5()){if(!d()&&!f())return}j0(),B()}function E$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function A5(Z){if(!E$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await z8();let $=!1;if(process.platform==="darwin")try{let Q=s(),Y=D2(),X=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
- `;await F0("security",["-i"],{input:q,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){b(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=z2(Z);A((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),D5()}function _$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function I$(){await z8(),A((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),D5()}async function z8(){try{await K1()}catch(Z){b(Z)}}function x8(Z){if(!P0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=P2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),C4(),l4(),X}catch(Q){return b(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function C5(){w.cache?.clear?.(),U0()}async function y$(){try{let{mtimeMs:Z}=await W$(z$(P5(),".credentials.json"));if(Z!==s4)s4=Z,C5()}catch{w.cache?.clear?.()}}function X5(Z){let $=b5.get(Z);if($)return $;let J=T$(Z).finally(()=>{b5.delete(Z)});return b5.set(Z,J),J}async function T$(Z){C5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return l0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await P2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return b(Z),null}}function l0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=k5(Z,$).finally(()=>{p0=null}),p0}return k5(Z,$)}async function k5(Z,$){await y$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),U0();let Y=await c0();if(!Y?.refreshToken||!m0(Y.expiresAt))return!1;let X=P5();await V$(X,{recursive:!0});let q;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),q=await e4(X),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await N5(1000+Math.random()*1000),k5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return b(V),j("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),U0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let x=await Z8(V.refreshToken,{scopes:P0(V.scopes)?void 0:V.scopes});return x8(x),w.cache?.clear?.(),U0(),!0}catch(V){b(V),w.cache?.clear?.(),U0();let x=await c0();if(x&&!m0(x.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await q(),j("tengu_oauth_token_refresh_lock_released",{})}}function k(){if(!O0())return!1;return P0(w()?.scopes)}function V0(){return w()?.scopes?.includes(o4)??!1}function S$(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(k())return!1;return!0}function U2(){return O0()?K().oauthAccount:void 0}function M$(){let $=U2()?.billingType;if(!k()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function h$(){let Z=_();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function _(){if(q1())return X1();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function w2(){return _()==="max"}function A$(){return _()==="team"}function F2(){return _()==="team"&&j8()==="default_claude_max_5x"}function C$(){return _()==="enterprise"}function R5(){return _()==="pro"}function j8(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function B8(){switch(_()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function G8(){return(M()||{}).otelHeadersHelper}function H8(){let Z=G8();if(!Z)return!1;let $=O("projectSettings"),J=O("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function u$(){let Z=G8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||f$.toString());if(N2&&Date.now()-a4<$)return N2;if(H8()){if(!d())return{}}try{let J=v5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=O5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return N2=Q,a4=Date.now(),N2}catch(J){throw b(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function g$(Z){return Z==="max"||Z==="pro"}function p$(){let Z=_();return k()&&Z!==null&&g$(Z)}function m$(){if(W()!=="firstParty")return;let{source:$}=S0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(k())J.subscription=B8();else J.tokenSource=$;let{key:Q,source:Y}=n0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let q=U2()?.organizationName;if(q)J.organization=q}let X=U2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function c$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=O("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await l0();let $=w();if(!$)return{valid:!0};let{source:J}=S0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await w0($.accessToken);if(!Y)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${X}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var x$=300000,I=null,c=null,k0=0,w$=3600000,K$=180000,j0,N$=5000,b$=3600000,k$=180000,h5,O2,w,s4=0,b5,p0=null,N2=null,a4=0,f$=1740000,R8;var n=R(()=>{J$();F1();t0();M0();B2();X2();t();Q0();J0();V1();$8();t2();w1();L1();b1();k1();f4();i();$0();g();H1();Q$();X$();s0();Y$();q$();c4();r2();H0();d4();$$();i4();j0=E5(async()=>{let Z=await F$(),$=await L$();if(Z||$)await N1();return $},w$);h5=E5(async()=>{return await U$()},b$);O2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=m4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=v5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=P2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return b($),null}});b5=new Map;R8=class R8 extends Error{}});function P0(Z){return Boolean(Z?.includes(f5))}function n$(Z){return Z?.split(" ").filter(Boolean)??[]}function EQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:x}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let x0=X?[f5]:K8;if(H.searchParams.append("scope",x0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(x)H.searchParams.append("login_method",x);return H.toString()}async function _Q(Z,$,J,Q,Y=!1,X){let q={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)q.expires_in=X;let V=await P.post(U().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return j("tengu_oauth_token_exchange_success",{}),V.data}async function Z8(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:F8).join(" ")};try{let Q=await P.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=Z,expires_in:V}=Y,x=Date.now()+V*1000,G=n$(Y.scope);j("tengu_oauth_token_refresh_success",{});let H=K(),x0=w(),v=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&x0?.subscriptionType!=null&&x0?.rateLimitTier!=null?null:await l$(X);if(v&&H.oauthAccount){let e={};if(v.displayName!==void 0)e.displayName=v.displayName;if(typeof v.hasExtraUsageEnabled==="boolean")e.hasExtraUsageEnabled=v.hasExtraUsageEnabled;if(v.billingType!==null)e.billingType=v.billingType;if(v.accountCreatedAt!==void 0)e.accountCreatedAt=v.accountCreatedAt;if(v.subscriptionCreatedAt!==void 0)e.subscriptionCreatedAt=v.subscriptionCreatedAt;if(Object.keys(e).length>0)A((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...e}:i0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:x,scopes:G,subscriptionType:v?.subscriptionType??x0?.subscriptionType??null,rateLimitTier:v?.rateLimitTier??x0?.rateLimitTier??null,profile:v?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function IQ(Z){let $=await P.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");A((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function yQ(Z){try{let $=await P.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await A5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function l$(Z){let $=await w0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function TQ(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!V0())return null;let Y=(await w0(J))?.organization?.uuid;if(!Y)return null;return Y}async function SQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)w8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await l0();let Y=K();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!k()||!V0())return!1;let X=w();if(X?.accessToken){let q=await w0(X.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return w8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function w8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let x={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)x.displayName=Q;A((G)=>{if(G.oauthAccount?.accountUuid===x.accountUuid&&G.oauthAccount?.emailAddress===x.emailAddress&&G.oauthAccount?.organizationUuid===x.organizationUuid&&G.oauthAccount?.displayName===x.displayName&&G.oauthAccount?.hasExtraUsageEnabled===x.hasExtraUsageEnabled&&G.oauthAccount?.billingType===x.billingType&&G.oauthAccount?.accountCreatedAt===x.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===x.subscriptionCreatedAt)return G;return{...G,oauthAccount:x}})}var $8=R(()=>{q2();B2();M0();n();i();$0();t2()});
16
- export{M9 as M4,h9 as N4,c4 as O4,u5 as P4,g5 as Q4,ZJ as R4,$J as S4,D8 as T4,U8 as U4,JJ as V4,d5 as W4,a0 as X4,v0 as Y4,B0 as Z4,p2 as _4,i2 as $4,I8 as a5,I0 as b5,W as c5,HJ as d5,A8 as e5,RJ as f5,wJ as g5,FJ as h5,t as i5,B as j5,OJ as k5,X2 as l5,yJ as m5,TJ as n5,Y1 as o5,AJ as p5,CJ as q5,V1 as r5,dJ as s5,w0 as t5,t2 as u5,P0 as v5,n$ as w5,EQ as x5,_Q as y5,Z8 as z5,IQ as A5,yQ as B5,m0 as C5,l$ as D5,TQ as E5,SQ as F5,w8 as G5,$8 as H5,oJ as I5,n8 as J5,W1 as K5,w1 as L5,z2 as M5,L1 as N5,Y3 as O5,b1 as P5,h as Q5,k1 as R5,h0 as S5,O1 as T5,v1 as U5,W3 as V5,z3 as W5,I1 as X5,x3 as Y5,j3 as Z5,y1 as _5,B3 as $5,G3 as a6,H3 as b6,$5 as c6,T as d6,u1 as e6,s8 as f6,y3 as g6,T3 as h6,S3 as i6,g1 as j6,M3 as k6,h3 as l6,a8 as m6,A3 as n6,C3 as o6,f3 as p6,u3 as q6,g3 as r6,e8 as s6,p3 as t6,m3 as u6,c3 as v6,d3 as w6,d1 as x6,D0 as y6,JZ as z6,QZ as A6,YZ as B6,V5 as C6,jZ as D6,r3 as E6,z5 as F6,s1 as G6,BZ as H6,x5 as I6,o1 as J6,e1 as K6,b7 as L6,U7 as M6,H2 as N6,j5 as O6,k7 as P6,LZ as Q6,W0 as R6,u0 as S6,q4 as T6,P7 as U6,f0 as V6,V4 as W6,L as X6,N as Y6,DZ as Z6,O7 as _6,v7 as $6,NZ as a7,Y5 as b7,E7 as c7,W4 as d7,z4 as e7,_7 as f7,S as g7,I7 as h7,kZ as i7,y7 as j7,T7 as k7,S7 as l7,M7 as m7,L0 as n7,A7 as o7,x4 as p7,f7 as q7,H4 as r7,D4 as s7,fZ as t7,b4 as u7,J9 as v7,Q9 as w7,Y9 as x7,z0 as y7,r as z7,X9 as A7,lZ as B7,q9 as C7,V9 as D7,H5 as E7,_4 as F7,I4 as G7,P9 as H7,rZ as I7,O9 as J7,v9 as K7,T4 as L7,E9 as M7,A4 as N7,oZ as O7,_9 as P7,C4 as Q7,f4 as R7,N5 as S7,d4 as T7,f9 as U7,l4 as V7,i4 as W7,O0 as X7,S0 as Y7,X0 as Z7,j$ as _7,n0 as $7,o as a8,I5 as b8,T5 as c8,Y8 as d8,B$ as e8,X8 as f8,U5 as g8,H$ as h8,R$ as i8,q8 as j8,j0 as k8,D$ as l8,M5 as m8,V8 as n8,W8 as o8,h5 as p8,P$ as q8,O$ as r8,v$ as s8,O2 as t8,A5 as u8,_$ as v8,I$ as w8,x8,w as y8,C5 as z8,X5 as A8,c0 as B8,l0 as C8,k as D8,V0 as E8,S$ as F8,U2 as G8,M$ as H8,h$ as I8,_ as J8,w2 as K8,A$ as L8,F2 as M8,C$ as N8,R5 as O8,j8 as P8,B8 as Q8,k2 as R8,H8 as S8,u$ as T8,p$ as U8,m$ as V8,c$ as W8,d$ as X8,n as Y8};
@@ -1,2 +0,0 @@
1
- import{Esa as B}from"./cli-1.1.2-10g0wy7w.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
- export{F as _i,C as $i};
@@ -1,2 +0,0 @@
1
- import{$X as b,SX as YJ,WX as DJ,_X as SJ,aY as vJ,iY as ZJ}from"./cli-1.1.2-yj8m159m.mjs";import{G3 as TJ,z3 as CJ}from"./cli-1.1.2-js4s7tq5.mjs";import{Mga as c,O$ as NJ,R_ as OJ,S_ as FJ,Uga as wJ,jea as A,lea as yJ,q$ as xJ,vaa as jJ}from"./cli-1.1.2-z31tqg0s.mjs";import{Aia as w,Bia as XJ,xia as R,zia as VJ}from"./cli-1.1.2-4x5wz1xq.mjs";import{$ja as y,_ja as v,dka as JJ,vka as G,yka as QJ}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as W,Wka as S,ala as e}from"./cli-1.1.2-dgw89jzs.mjs";import{dla as s,ela as I,gla as t,qla as a}from"./cli-1.1.2-gxzwceae.mjs";import{Loa as i,Sma as r,Tma as MJ,Vqa as m,Wma as d,dqa as u}from"./cli-1.1.2-s2xde2xb.mjs";import{Esa as T,Fsa as BJ}from"./cli-1.1.2-10g0wy7w.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as h}from"fs/promises";import{join as D}from"path";function HQ(J){if(j===J)return;j=J,U()}function UQ(){if(j===void 0)return;j=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 h(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 A(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()}}async function CQ(J){let Q=await f(J),V=0;for(let X of Q){if(X.status!=="completed"||X.metadata?._internal)continue;if(await C(J,X.id,{metadata:{...X.metadata,_internal:!0}}))V++}return V}function SQ(){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 b()||j||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function z(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 A(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=z(J,Y);return await h(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=z(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(S(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),c(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=z(J,Q);return await h(Y,v(Z,null,2)),U(),Z}async function C(J,Q,V){let X=z(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await A(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function AQ(J,Q){let V=z(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(S(Y)==="ENOENT")return!1;throw Y}let Z=await f(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 C(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function f(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 zQ(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 C(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await C(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function uJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=uJ(J);try{await h(Q,"",{flag:"wx"})}catch{}return Q}async function MQ(J,Q,V,X={}){let Z=z(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return LJ(J,Q,V);let $;try{$=await A(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 f(J),B=new Set(K.filter((M)=>M.status!=="completed").map((M)=>M.id)),N=q.blockedBy.filter((M)=>B.has(M));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)}`),c(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function LJ(J,Q,V){let X=await o(J),Z;try{Z=await A(X,P);let Y=await f(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 C(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),c(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function jQ(J,Q,V,X){let Y=(await f(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await C(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,j,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as p}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function kQ(J){return J.replace(/@/g,"-")}function L(J){return p(I(),zJ(J))}function F(J){return p(L(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(S(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(S(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=L(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=L(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function rQ(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 dQ(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 iQ(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 mQ(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 sQ(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 tQ(J,Q){if(!vJ())return;let V=Q??b(),X=SJ();if(V&&X)dJ(V,X,J)}function aQ(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 eQ(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=p(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=p(Y,"..","..");V=p($,"..")}}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 JV(J){u().add(J)}function QV(J){u().delete(J)}async function VV(){let J=u();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-1.1.2-bteqae43.mjs"),import("./detection-1.1.2-02zpqkt2.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=L(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 nQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();nQ=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 sV,UQ as tV,BQ as uV,fJ as vV,OQ as wV,xQ as xV,CQ as yV,SQ as zV,_J as AV,E as BV,bJ as CV,vQ as DV,O as EV,C as FV,AQ as GV,f as HV,zQ as IV,MQ as JV,jQ as KV,HJ as LV,n as MV,UJ as NV,nQ as OV,zJ as PV,kQ as QV,L as RV,F as SV,H as TV,kJ as UV,rJ as VV,rQ as WV,dQ as XV,iQ as YV,mQ as ZV,sQ as _V,dJ as $V,tQ as aW,aQ as bW,eQ as cW,JV as dW,QV as eW,VV as fW,sJ as gW,tJ as hW};
@@ -1,2 +0,0 @@
1
- import{wi as M,xi as w,yi as A}from"./cli-1.1.2-pbtymf0g.mjs";import{Aia as $,Bia as O,xia as X,zia as N}from"./cli-1.1.2-4x5wz1xq.mjs";import{vka as R,yka as C}from"./cli-1.1.2-re4qc97z.mjs";import{dla as L,qla as _}from"./cli-1.1.2-gxzwceae.mjs";import{Vqa as T,Wma as H}from"./cli-1.1.2-s2xde2xb.mjs";import{Pra as W,fsa as y}from"./cli-1.1.2-m2ar3b2y.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
2
- export{S as ca,f as da,l as ea,s as fa};
@@ -1,2 +0,0 @@
1
- import{Cd as Z,Dd as _,Ed as $,Hd as O}from"./cli-1.1.2-4d1hhyqs.mjs";import{Yd as Y,be as x}from"./cli-1.1.2-ad1q4yds.mjs";import{XL as U,aM as W,fM as S,gM as X,qM as V}from"./cli-1.1.2-6cj9ggma.mjs";import{vka as R,yka as K}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as Q,ala as C}from"./cli-1.1.2-dgw89jzs.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
2
- export{F as $a};
@@ -1,2 +0,0 @@
1
- import{Vha as G,eia as K}from"./cli-1.1.2-7jcscwh5.mjs";import{Aia as J,Bia as N,xia as j,zia as M}from"./cli-1.1.2-4x5wz1xq.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
- export{q as Ib,$ as Jb};
@@ -1,15 +0,0 @@
1
- import{Gx as L,Hx as k,aS as _,nk as J,vO as f,xO as z}from"./cli-1.1.2-6cj9ggma.mjs";import{Zaa as F,cba as A}from"./cli-1.1.2-z31tqg0s.mjs";import{Aia as H,Bia as X,xia as Y,zia as h}from"./cli-1.1.2-4x5wz1xq.mjs";import{sja as W,vja as M}from"./cli-1.1.2-whyrn26g.mjs";import{vka as D,yka as R}from"./cli-1.1.2-re4qc97z.mjs";import{Loa as q,Vqa as C}from"./cli-1.1.2-s2xde2xb.mjs";import{Esa as V}from"./cli-1.1.2-10g0wy7w.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
2
- `);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
3
-
4
- Return JSON with a single "title" field.
5
-
6
- Good examples:
7
- {"title": "Fix login button on mobile"}
8
- {"title": "Add OAuth authentication"}
9
- {"title": "Debug failing CI tests"}
10
- {"title": "Refactor API client error handling"}
11
-
12
- Bad (too vague): {"title": "Code changes"}
13
- Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
14
- Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
15
- export{S as xe,T as ye,I as ze};
@@ -1,3 +0,0 @@
1
- import{A2 as N,v2 as d,w2 as X}from"./cli-1.1.2-pgt1vydc.mjs";import{Mga as B,Qea as U,Tea as G,Uga as y,mea as O,mfa as p,nea as f}from"./cli-1.1.2-z31tqg0s.mjs";import{Uka as x,ala as b}from"./cli-1.1.2-dgw89jzs.mjs";import{dla as H,qla as E}from"./cli-1.1.2-gxzwceae.mjs";import{Loa as w,Vqa as P}from"./cli-1.1.2-s2xde2xb.mjs";import{Pra as k,fsa as S}from"./cli-1.1.2-m2ar3b2y.mjs";import{Asa as M,Esa as R}from"./cli-1.1.2-10g0wy7w.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
- `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
- export{zq as nf,Jq as of,C as pf,h as qf,Kq as rf,Qq as sf,g as tf};
@@ -1,2 +0,0 @@
1
- import{eo as g,fo as k,vG as h,xG as I}from"./cli-1.1.2-6cj9ggma.mjs";import{D1 as _,_0 as s,zZ as S}from"./cli-1.1.2-jpgqkhxd.mjs";import{k4 as c,l4 as m,m4 as T}from"./cli-1.1.2-gtjv8yhc.mjs";import{Qea as b,mfa as P}from"./cli-1.1.2-z31tqg0s.mjs";import{Asa as D}from"./cli-1.1.2-10g0wy7w.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
2
- export{E as B};
@@ -1,2 +0,0 @@
1
- import{HS as a,JS as Uq,Vz as c,Wn as S,Xn as Zq,Yn as V,Yz as T,Zn as $q,Zz as _q,aA as r,ao as p,bA as Vq,bo as zq,iy as u,jy as g,ly as Wq,vG as h,xG as Fq}from"./cli-1.1.2-6cj9ggma.mjs";import{CY as d,DY as Yq,jY as w,kY as Nq,vY as j,wY as Qq,xY as m,zY as Xq}from"./cli-1.1.2-9ash84j3.mjs";import{D1 as Lq,IZ as v,JZ as H,KZ as y,Y0 as J,_0 as N}from"./cli-1.1.2-jpgqkhxd.mjs";import{j4 as _,k4 as q,l4 as G,m4 as B}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as Jq}from"./cli-1.1.2-y2eet2t4.mjs";import{Pda as b,aea as Gq}from"./cli-1.1.2-z31tqg0s.mjs";import{Asa as e,Esa as qq}from"./cli-1.1.2-10g0wy7w.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
- export{mq as nh,Aq as oh};
@@ -1,24 +0,0 @@
1
- import{Hg as _Q,Jg as iQ}from"./cli-1.1.2-w39dxwaq.mjs";import{Ai as zX,zi as WQ}from"./cli-1.1.2-2d3dw4nn.mjs";import{$J as VQ,Hp as ZQ,Ip as uQ,Ms as CQ,RJ as JJ,SJ as mJ,Ws as qX,ZJ as GQ,_J as KQ,aK as OQ,cK as NQ,fK as IJ,gK as nJ,hK as rJ,iK as gQ,lG as SJ,mG as YQ}from"./cli-1.1.2-6cj9ggma.mjs";import{CY as FQ,DY as $X,JY as zJ,KY as iJ,jY as bJ,kY as aJ,xY as AQ,zY as ZX}from"./cli-1.1.2-9ash84j3.mjs";import{D1 as WJ,IZ as AJ,T0 as FJ,U0 as CJ,V0 as oJ,Y0 as N,_0 as M,i1 as t,pZ as LJ,qZ as lJ,s1 as e}from"./cli-1.1.2-jpgqkhxd.mjs";import{k4 as q,l4 as _,m4 as s}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as BJ}from"./cli-1.1.2-y2eet2t4.mjs";import{s9 as i,t9 as dJ}from"./cli-1.1.2-gvwc8kmd.mjs";import{Mga as x,Uga as DJ}from"./cli-1.1.2-z31tqg0s.mjs";import{Zga as f,_ga as pJ,aha as n,eha as uJ,jha as vJ,pha as kQ}from"./cli-1.1.2-bhjzjkag.mjs";import{Eia as UQ,Gia as aQ}from"./cli-1.1.2-s76jqr70.mjs";import{Asa as OJ,Esa as qJ,Fsa as oQ}from"./cli-1.1.2-10g0wy7w.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let B of HJ(H.agents))if(K+=1,!B.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((B)=>!B.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",B=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return B+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),B=eJ(J),W=Math.min(U,Math.max(0,B.length-1)),X=B[W],{done:I,total:w}=tJ(J),[S]=AJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=B.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[B,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...B.filter(($)=>$.runId!==J.runId)]:B).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((A)=>Math.max(0,A-1));else if(Y.downArrow)O(),S((A)=>Math.min(Math.max(0,P-1),A+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(BJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),B=J.instructions.trim();return`---
2
- ${H}
3
- ---
4
- ${B?`${B}
5
- `:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((B,W)=>({...B,name:W===U?K:B.name,handbackTo:B.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[B]=AJ(),W=FJ(B),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.2-vr9770fz.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),A=C-1,u=X&&A>=0?X.steps[A]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
6
- `:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,A).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,A,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&A>=0)P((G)=>({...G,steps:qQ(G.steps,A,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,A,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,A,P]),jQ=E.useCallback(()=>{if(A<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==A)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,A,P]),gJ=E.useCallback((Q)=>{if(!X||A<0)return;let Z=A+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(A,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,A,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
7
- `):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(BJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,B]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{B(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((A)=>Math.max(0,A-1));else if(P.downArrow)w((A)=>Math.min(H.length-1,A+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let A=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,A?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
8
- name: ${J}
9
- description: What this workflow does
10
- steps:
11
- - name: explore
12
- agents: [explorer]
13
- - name: synthesize
14
- agents: [synthesizer]
15
- handbackTo: [explore]
16
- - name: done
17
- ---
18
- Describe the goal and any house rules for this workflow.
19
- `;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(BJ(),1)});function BQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return AQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[B,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
20
- <status>${c.status}</status>
21
- <summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
22
- <result>${$}</result>
23
- </task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:B==="running",inverse:B==="running",children:[" ","Running"," "]}),_(M,{bold:B==="library",inverse:B==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(B==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(BQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(BQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(BJ(),1)});
24
- export{NZ as dc,YX as ec};
@@ -1,2 +0,0 @@
1
- import{r4 as K,t4 as Z}from"./cli-1.1.2-5w2m33hk.mjs";import{u4 as J,w4 as Y}from"./cli-1.1.2-se3yz188.mjs";import{C5 as B,D8 as F,E8 as G,H5 as W,Y8 as X,y8 as D}from"./cli-1.1.2-f8pc3h46.mjs";import{qja as y,rja as Q}from"./cli-1.1.2-qge4zbeg.mjs";import{Pra as z,fsa as V}from"./cli-1.1.2-m2ar3b2y.mjs";import{Esa as N}from"./cli-1.1.2-10g0wy7w.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
2
- export{P as Ui,_ as Vi};
@@ -1,2 +0,0 @@
1
- import{A0 as $,B0 as D,SZ as W,VZ as Z,WZ as x,z0 as z}from"./cli-1.1.2-jpgqkhxd.mjs";import{Tea as Q,mfa as Y}from"./cli-1.1.2-z31tqg0s.mjs";import{Esa as C}from"./cli-1.1.2-10g0wy7w.mjs";function c(){let q=process.env.TERM_PROGRAM;if(q&&O.has(q))return!0;let y=process.env.TERM;if(y&&X.has(y))return!0;let J=W()?.toLowerCase();if(J===void 0)return!1;return k.some((B)=>J.startsWith(B))}function H(q){if(q===void 0||q==="")return null;let y=Number(q);if(!Number.isFinite(y)||y<d||y>w)return null;return y}function K(q){return u.get(q)??Math.max(1,Math.round(1000/q))}function m(){return H(process.env.CLAUDIN_FPS)!==null}function j(){let q=H(process.env.CLAUDIN_FPS);if(q!==null)return K(q);if(Z())return z;let y=H(Q().renderFrameRate);if(y!==null)return K(y);if(c()&&!process.env.TMUX)return h;return z}function I(){let q=j();return String(G.get(q)??Math.round(1000/q))}function P(){$(j())}var g,O,X,k,d=10,w=360,h=8,b,u,G;var L=C(()=>{D();x();Y();g=["auto","120","240","360"],O=new Set(["ghostty","kitty","WezTerm","alacritty","contour","foot","rio","WarpTerminal"]),X=new Set(["xterm-kitty","xterm-ghostty","alacritty","contour","foot","foot-extra","rio"]),k=["ghostty","kitty","wezterm","alacritty","contour","foot","rio","warp"],b=[[60,16],[120,h],[240,4],[360,3]],u=new Map(b),G=new Map(b.map(([q,y])=>[y,q]))});
2
- export{g as Sg,m as Tg,I as Ug,P as Vg,L as Wg};
@@ -1,2 +0,0 @@
1
- import{Esa as j}from"./cli-1.1.2-10g0wy7w.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
- export{q as Hha,v as Iha,z as Jha,w as Kha};
@@ -1,2 +0,0 @@
1
- import{Esa as y}from"./cli-1.1.2-10g0wy7w.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
- export{N as V2,P as W2,M as X2,C as Y2,I as Z2,L as _2,w as $2,T as a3,R as b3,b as c3,g as d3,l as e3,k as f3};
@@ -1,2 +0,0 @@
1
- import{Esa as l}from"./cli-1.1.2-10g0wy7w.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
- export{u as j4,E as k4,a as l4,c as m4};
@@ -1,6 +0,0 @@
1
- import{Esa as I}from"./cli-1.1.2-10g0wy7w.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
2
- `:`
3
- `)+H,K=J+1,J=$.indexOf(`
4
- `,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
5
- `);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
6
- export{q1 as r9,Y1 as s9,X1 as t9};