@claudiolabs/claudin 1.1.3 → 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 (913) hide show
  1. package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +1 -0
  2. package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +1 -0
  31. package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +110 -0
  32. package/dist/chunks/agents-1.1.4-w929h9g2.mjs +3 -0
  33. package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +1 -0
  36. package/dist/chunks/auth-1.1.4-d8jp870f.mjs +1 -0
  37. package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +1 -0
  41. package/dist/chunks/branch-1.1.4-m28a3gah.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +1 -0
  47. package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +3 -0
  49. package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +1 -0
  50. package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +21 -0
  51. package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +4 -0
  52. package/dist/chunks/caches-1.1.4-smgwny8k.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +1 -0
  54. package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +1 -0
  55. package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +1 -0
  56. package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +1 -0
  57. package/dist/chunks/cli-1.1.4-081g3k6v.mjs +2 -0
  58. package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +2 -0
  59. package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +18 -0
  60. package/dist/chunks/cli-1.1.4-0earmzgk.mjs +12 -0
  61. package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +18 -0
  62. package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +2 -0
  63. package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +133 -0
  64. package/dist/chunks/cli-1.1.4-0r232fpm.mjs +2 -0
  65. package/dist/chunks/cli-1.1.4-0smy947g.mjs +2 -0
  66. package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +2 -0
  67. package/dist/chunks/cli-1.1.4-114zcxgj.mjs +2 -0
  68. package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +2 -0
  69. package/dist/chunks/cli-1.1.4-181vbtfh.mjs +2 -0
  70. package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +4 -0
  71. package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +2 -0
  72. package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +2 -0
  73. package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +2 -0
  74. package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +2 -0
  75. package/dist/chunks/cli-1.1.4-31av4ynk.mjs +2 -0
  76. package/dist/chunks/cli-1.1.4-3556r6d1.mjs +2 -0
  77. package/dist/chunks/cli-1.1.4-3d01w53d.mjs +2 -0
  78. package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +2 -0
  79. package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +2 -0
  80. package/dist/chunks/cli-1.1.4-40z19hth.mjs +2 -0
  81. package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +2 -0
  82. package/dist/chunks/cli-1.1.4-4esthaz8.mjs +21 -0
  83. package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +2 -0
  84. package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +3 -0
  85. package/dist/chunks/cli-1.1.4-4yte7brd.mjs +25 -0
  86. package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +2 -0
  87. package/dist/chunks/cli-1.1.4-53fvpymg.mjs +6 -0
  88. package/dist/chunks/cli-1.1.4-56nffz3p.mjs +17 -0
  89. package/dist/chunks/cli-1.1.4-5dc9c513.mjs +3 -0
  90. package/dist/chunks/cli-1.1.4-5ebh6981.mjs +2 -0
  91. package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +2 -0
  92. package/dist/chunks/cli-1.1.4-5hz878ns.mjs +2 -0
  93. package/dist/chunks/cli-1.1.4-64y9aspn.mjs +2 -0
  94. package/dist/chunks/cli-1.1.4-6c3fshef.mjs +202 -0
  95. package/dist/chunks/cli-1.1.4-6c5tryej.mjs +2 -0
  96. package/dist/chunks/cli-1.1.4-6eacj91j.mjs +2 -0
  97. package/dist/chunks/cli-1.1.4-6f472s2j.mjs +2 -0
  98. package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +2 -0
  99. package/dist/chunks/cli-1.1.4-6raycx0k.mjs +2 -0
  100. package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +2 -0
  101. package/dist/chunks/cli-1.1.4-6z69geef.mjs +5649 -0
  102. package/dist/chunks/cli-1.1.4-788c63fn.mjs +7 -0
  103. package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +4 -0
  104. package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +2 -0
  105. package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +2 -0
  106. package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +2 -0
  107. package/dist/chunks/cli-1.1.4-8kx358k9.mjs +2 -0
  108. package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +4 -0
  109. package/dist/chunks/cli-1.1.4-99ept1n4.mjs +2 -0
  110. package/dist/chunks/cli-1.1.4-9cw2608s.mjs +2 -0
  111. package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +2 -0
  112. package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +2 -0
  113. package/dist/chunks/cli-1.1.4-9x9a885k.mjs +17 -0
  114. package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +2 -0
  115. package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +24 -0
  116. package/dist/chunks/cli-1.1.4-axp071a4.mjs +2 -0
  117. package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +1 -0
  118. package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +2 -0
  119. package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +2 -0
  120. package/dist/chunks/cli-1.1.4-bxd06hws.mjs +2 -0
  121. package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +2 -0
  122. package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +2 -0
  123. package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +2 -0
  124. package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +2 -0
  125. package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +2 -0
  126. package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +6 -0
  127. package/dist/chunks/cli-1.1.4-cp707f4g.mjs +2 -0
  128. package/dist/chunks/cli-1.1.4-cst0a515.mjs +3 -0
  129. package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +2 -0
  130. package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +2 -0
  131. package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +2 -0
  132. package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +2 -0
  133. package/dist/chunks/cli-1.1.4-da50kprz.mjs +2 -0
  134. package/dist/chunks/cli-1.1.4-dapq2czd.mjs +3 -0
  135. package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +3 -0
  136. package/dist/chunks/cli-1.1.4-dwez6b01.mjs +2 -0
  137. package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +4 -0
  138. package/dist/chunks/cli-1.1.4-edegax48.mjs +2 -0
  139. package/dist/chunks/cli-1.1.4-ekbns70t.mjs +2 -0
  140. package/dist/chunks/cli-1.1.4-esw78wsd.mjs +2 -0
  141. package/dist/chunks/cli-1.1.4-etajychz.mjs +2 -0
  142. package/dist/chunks/cli-1.1.4-evye603x.mjs +5 -0
  143. package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +24 -0
  144. package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +2 -0
  145. package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +2 -0
  146. package/dist/chunks/cli-1.1.4-fa18654s.mjs +2 -0
  147. package/dist/chunks/cli-1.1.4-fap2565a.mjs +15 -0
  148. package/dist/chunks/cli-1.1.4-fejb0548.mjs +2 -0
  149. package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +133 -0
  150. package/dist/chunks/cli-1.1.4-fk420f57.mjs +16 -0
  151. package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +9 -0
  152. package/dist/chunks/cli-1.1.4-g6nryz17.mjs +2 -0
  153. package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +2 -0
  154. package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +2 -0
  155. package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +2 -0
  156. package/dist/chunks/cli-1.1.4-gey397p1.mjs +2 -0
  157. package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +2 -0
  158. package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +20 -0
  159. package/dist/chunks/cli-1.1.4-gpskbg68.mjs +2 -0
  160. package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +18 -0
  161. package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +12 -0
  162. package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +58 -0
  163. package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +2 -0
  164. package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +2 -0
  165. package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +25 -0
  166. package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +2 -0
  167. package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +12 -0
  168. package/dist/chunks/cli-1.1.4-hzx821eq.mjs +4 -0
  169. package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +2 -0
  170. package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +2 -0
  171. package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +2 -0
  172. package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +2 -0
  173. package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +2 -0
  174. package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +24 -0
  175. package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +2 -0
  176. package/dist/chunks/cli-1.1.4-jscqx4px.mjs +2 -0
  177. package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +9 -0
  178. package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +2 -0
  179. package/dist/chunks/cli-1.1.4-kcm529kx.mjs +2 -0
  180. package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +2 -0
  181. package/dist/chunks/cli-1.1.4-m312ygm6.mjs +2 -0
  182. package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +2 -0
  183. package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +2 -0
  184. package/dist/chunks/cli-1.1.4-memqhcjv.mjs +2 -0
  185. package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +50 -0
  186. package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +2 -0
  187. package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +2 -0
  188. package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +3 -0
  189. package/dist/chunks/cli-1.1.4-my1g33fn.mjs +3 -0
  190. package/dist/chunks/cli-1.1.4-mzzr964a.mjs +67 -0
  191. package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +2 -0
  192. package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +2 -0
  193. package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +59 -0
  194. package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +5 -0
  195. package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +2 -0
  196. package/dist/chunks/cli-1.1.4-p2223zcm.mjs +2 -0
  197. package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +6 -0
  198. package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +2 -0
  199. package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +8 -0
  200. package/dist/chunks/cli-1.1.4-phjb22vy.mjs +2 -0
  201. package/dist/chunks/cli-1.1.4-phv78vpk.mjs +2 -0
  202. package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +15 -0
  203. package/dist/chunks/cli-1.1.4-q0acv376.mjs +3 -0
  204. package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +2 -0
  205. package/dist/chunks/cli-1.1.4-qe35eyha.mjs +6 -0
  206. package/dist/chunks/cli-1.1.4-qecgken2.mjs +2 -0
  207. package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +2 -0
  208. package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +2 -0
  209. package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +4 -0
  210. package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +2 -0
  211. package/dist/chunks/cli-1.1.4-rhexcyth.mjs +2 -0
  212. package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +42 -0
  213. package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +2 -0
  214. package/dist/chunks/cli-1.1.4-rv3se129.mjs +2 -0
  215. package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +2 -0
  216. package/dist/chunks/cli-1.1.4-s26ny46b.mjs +4 -0
  217. package/dist/chunks/cli-1.1.4-scm26s6m.mjs +34 -0
  218. package/dist/chunks/cli-1.1.4-shrznr3s.mjs +2 -0
  219. package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +6 -0
  220. package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +4 -0
  221. package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +2 -0
  222. package/dist/chunks/cli-1.1.4-te2372tc.mjs +2 -0
  223. package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +2 -0
  224. package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +2 -0
  225. package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +2 -0
  226. package/dist/chunks/cli-1.1.4-v85q5z49.mjs +3 -0
  227. package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +4 -0
  228. package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +2 -0
  229. package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +2 -0
  230. package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +2 -0
  231. package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +2 -0
  232. package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +39 -0
  233. package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +4 -0
  234. package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +2 -0
  235. package/dist/chunks/cli-1.1.4-vye1xark.mjs +2 -0
  236. package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +2 -0
  237. package/dist/chunks/cli-1.1.4-w11nd4na.mjs +2 -0
  238. package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +2 -0
  239. package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +2 -0
  240. package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +2 -0
  241. package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +2 -0
  242. package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +4 -0
  243. package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +3 -0
  244. package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +2 -0
  245. package/dist/chunks/cli-1.1.4-x8m7spde.mjs +2 -0
  246. package/dist/chunks/cli-1.1.4-x90d3r95.mjs +2 -0
  247. package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +45 -0
  248. package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +2 -0
  249. package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +2 -0
  250. package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +2 -0
  251. package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +2 -0
  252. package/dist/chunks/cli-1.1.4-yprszvr2.mjs +2 -0
  253. package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +2 -0
  254. package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +2 -0
  255. package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +12 -0
  256. package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +15 -0
  257. package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +2 -0
  258. package/dist/chunks/cli-1.1.4-zc29khqe.mjs +3 -0
  259. package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +3 -0
  260. package/dist/chunks/client-1.1.4-pb5ebapt.mjs +1 -0
  261. package/dist/chunks/color-1.1.4-f1seyygj.mjs +1 -0
  262. package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +3 -0
  263. package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +1 -0
  264. package/dist/chunks/config-1.1.4-jb46a3qp.mjs +1 -0
  265. package/dist/chunks/constants-1.1.4-cspjb06k.mjs +1 -0
  266. package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +1 -0
  268. package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +1 -0
  270. package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +9 -0
  271. package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +1 -0
  273. package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +1 -0
  274. package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +1446 -0
  276. package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +1 -0
  278. package/dist/chunks/detection-1.1.4-knvchyz7.mjs +1 -0
  279. package/dist/chunks/diff-1.1.4-9k603anv.mjs +1 -0
  280. package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +1 -0
  283. package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +13 -0
  284. package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +1 -0
  286. package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +1 -0
  288. package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +1 -0
  289. package/dist/chunks/errors-1.1.4-k81rbfst.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +1 -0
  291. package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +1 -0
  292. package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +1 -0
  293. package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +1 -0
  294. package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +2 -0
  295. package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +1 -0
  296. package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +1 -0
  297. package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +1 -0
  298. package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +14 -0
  299. package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +1 -0
  300. package/dist/chunks/git-1.1.4-ress16mq.mjs +1 -0
  301. package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +1 -0
  302. package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +4 -0
  303. package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +1 -0
  304. package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +1 -0
  305. package/dist/chunks/headless-1.1.4-833q6qkz.mjs +2 -0
  306. package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +6 -0
  307. package/dist/chunks/help-1.1.4-35bcy608.mjs +1 -0
  308. package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +3 -0
  309. package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +1 -0
  310. package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +79 -0
  311. package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +3 -0
  312. package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +1 -0
  313. package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +1 -0
  314. package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +1 -0
  315. package/dist/chunks/index-1.1.4-0tamkcjt.mjs +1 -0
  316. package/dist/chunks/index-1.1.4-2czk0cj2.mjs +2 -0
  317. package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +1 -0
  318. package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +1 -0
  319. package/dist/chunks/index-1.1.4-6gmnecfx.mjs +1 -0
  320. package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +1 -0
  321. package/dist/chunks/index-1.1.4-9yayje25.mjs +1 -0
  322. package/dist/chunks/index-1.1.4-ekp3k254.mjs +1 -0
  323. package/dist/chunks/index-1.1.4-g4bsry7f.mjs +1 -0
  324. package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +1 -0
  325. package/dist/chunks/index-1.1.4-jk66219f.mjs +30 -0
  326. package/dist/chunks/index-1.1.4-m5859ars.mjs +5 -0
  327. package/dist/chunks/index-1.1.4-m5kxdznq.mjs +1 -0
  328. package/dist/chunks/index-1.1.4-mr07jhdc.mjs +1 -0
  329. package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +17 -0
  330. package/dist/chunks/index-1.1.4-nx0c7851.mjs +9 -0
  331. package/dist/chunks/index-1.1.4-p4az8jd4.mjs +9 -0
  332. package/dist/chunks/index-1.1.4-s48qa1fv.mjs +1 -0
  333. package/dist/chunks/index-1.1.4-svjv72c1.mjs +1 -0
  334. package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +1 -0
  335. package/dist/chunks/index-1.1.4-v1z11db7.mjs +1 -0
  336. package/dist/chunks/index-1.1.4-wkgybs2k.mjs +2 -0
  337. package/dist/chunks/init-1.1.4-gggf2npg.mjs +1 -0
  338. package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +1 -0
  339. package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +1 -0
  340. package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +870 -0
  341. package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +1 -0
  342. package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +149 -0
  343. package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +1 -0
  344. package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +1 -0
  345. package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +1 -0
  346. package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +2 -0
  347. package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +2 -0
  348. package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +1 -0
  349. package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +1 -0
  352. package/dist/chunks/log-1.1.4-2xexxfy0.mjs +1 -0
  353. package/dist/chunks/main-1.1.4-wapb45da.mjs +1 -0
  354. package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +1 -0
  355. package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +4 -0
  357. package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +17 -0
  358. package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +1 -0
  359. package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +72 -0
  360. package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +2 -0
  361. package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +1 -0
  362. package/dist/chunks/node-1.1.4-zfc18psp.mjs +12 -0
  363. package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +1 -0
  364. package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +14 -0
  365. package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +1 -0
  366. package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +1 -0
  367. package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +1 -0
  368. package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +1 -0
  369. package/dist/chunks/passes-1.1.4-fps8mejy.mjs +1 -0
  370. package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +3 -0
  371. package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +1 -0
  372. package/dist/chunks/plan-1.1.4-66evqh4y.mjs +1 -0
  373. package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +1 -0
  374. package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +29 -0
  375. package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +1 -0
  376. package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +9 -0
  377. package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +2 -0
  378. package/dist/chunks/print-1.1.4-fxrwvp78.mjs +57 -0
  379. package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +1 -0
  380. package/dist/chunks/process-1.1.4-pjq03ry2.mjs +1 -0
  381. package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +1 -0
  382. package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +9 -0
  383. package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +1 -0
  384. package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +1 -0
  385. package/dist/chunks/prompts-1.1.4-26y972y6.mjs +1 -0
  386. package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +13 -0
  387. package/dist/chunks/provider-1.1.4-g97havfk.mjs +2 -0
  388. package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +1 -0
  389. package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +6 -0
  390. package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +1 -0
  391. package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +34 -0
  392. package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +1 -0
  393. package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +5 -0
  394. package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +2 -0
  395. package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +1 -0
  396. package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +1 -0
  397. package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +1 -0
  398. package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +1 -0
  399. package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +1 -0
  400. package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +1 -0
  401. package/dist/chunks/resume-1.1.4-3qy136p1.mjs +2 -0
  402. package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +1 -0
  403. package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +1 -0
  404. package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +10 -0
  405. package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +1 -0
  406. package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +1 -0
  407. package/dist/chunks/session-1.1.4-5504ewv9.mjs +2 -0
  408. package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +1 -0
  409. package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +1 -0
  410. package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +1 -0
  411. package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +1 -0
  412. package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +5 -0
  413. package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +1 -0
  414. package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +1 -0
  415. package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +1 -0
  416. package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +1 -0
  417. package/dist/chunks/state-1.1.4-rm5651xg.mjs +1 -0
  418. package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +6 -0
  419. package/dist/chunks/status-1.1.4-v47t86mv.mjs +1 -0
  420. package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +1 -0
  421. package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +1 -0
  422. package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +1 -0
  423. package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +1 -0
  424. package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +1 -0
  425. package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +1 -0
  426. package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +1 -0
  427. package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +1 -0
  428. package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +1 -0
  429. package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +1 -0
  430. package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +1 -0
  431. package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +1 -0
  432. package/dist/chunks/tools-1.1.4-g181kv47.mjs +1 -0
  433. package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +1 -0
  434. package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +69 -0
  435. package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +1 -0
  436. package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +4 -0
  437. package/dist/chunks/update-1.1.4-z8g0pneq.mjs +72 -0
  438. package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +1 -0
  439. package/dist/chunks/upload-1.1.4-2av9969z.mjs +7 -0
  440. package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +14 -0
  441. package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +1 -0
  442. package/dist/chunks/usage-1.1.4-wc38b22t.mjs +1 -0
  443. package/dist/chunks/util-1.1.4-re2ggpra.mjs +1 -0
  444. package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +1 -0
  445. package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +1 -0
  446. package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +13 -0
  447. package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +1 -0
  448. package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +132 -0
  449. package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +1 -0
  450. package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +1 -0
  451. package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +1 -0
  452. package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +7 -0
  453. package/dist/cli.mjs +2 -2
  454. package/package.json +9 -9
  455. package/dist/chunks/AgentTool-1.1.3-yxsndsyn.mjs +0 -1
  456. package/dist/chunks/App-1.1.3-se36kt2q.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-1.1.3-5jxsmx40.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-1.1.3-7bjbdd37.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-1.1.3-3vs1q0ta.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-1.1.3-p08x7sv8.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.3-gyv29cn4.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-1.1.3-6ka5hf2k.mjs +0 -1
  463. package/dist/chunks/DiffDialog-1.1.3-1wejx4tn.mjs +0 -7
  464. package/dist/chunks/Doctor-1.1.3-0ccnyend.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-1.1.3-jspvqy7q.mjs +0 -6
  466. package/dist/chunks/Grove-1.1.3-wvxs1xk4.mjs +0 -1
  467. package/dist/chunks/ITermBackend-1.1.3-5cr9f3wk.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-1.1.3-yy0jqsbj.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-1.1.3-2pqy4mte.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-1.1.3-781zj4fa.mjs +0 -1
  471. package/dist/chunks/Onboarding-1.1.3-a5n3c2kk.mjs +0 -1
  472. package/dist/chunks/ProviderManager-1.1.3-vbk4qqdv.mjs +0 -1
  473. package/dist/chunks/REPL-1.1.3-c8ng1hcs.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-1.1.3-67axvmvd.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-1.1.3-84q4vb17.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-1.1.3-hthcjsxf.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-1.1.3-af7j2gjm.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-1.1.3-q0n84g2v.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-1.1.3-dvsnx3eq.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-1.1.3-376a028q.mjs +0 -1
  481. package/dist/chunks/TrustDialog-1.1.3-01rkjtmv.mjs +0 -1
  482. package/dist/chunks/activeProvider-1.1.3-ppxd3mj8.mjs +0 -1
  483. package/dist/chunks/add-dir-1.1.3-z1vd7ra4.mjs +0 -1
  484. package/dist/chunks/agentTypes-1.1.3-w924n1yy.mjs +0 -1
  485. package/dist/chunks/agents-1.1.3-5atkby3f.mjs +0 -110
  486. package/dist/chunks/agents-1.1.3-mjqamerj.mjs +0 -3
  487. package/dist/chunks/api-1.1.3-1s5dk2h7.mjs +0 -1
  488. package/dist/chunks/asciicast-1.1.3-exg42b9c.mjs +0 -1
  489. package/dist/chunks/assistant-1.1.3-sdwgcm2q.mjs +0 -1
  490. package/dist/chunks/auth-1.1.3-g5e9e91f.mjs +0 -1
  491. package/dist/chunks/auth-1.1.3-jqasmv33.mjs +0 -1
  492. package/dist/chunks/autoMode-1.1.3-tjgwmrj8.mjs +0 -48
  493. package/dist/chunks/autoUpdater-1.1.3-r3vs5bsn.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-1.1.3-k14x3rw1.mjs +0 -1
  495. package/dist/chunks/branch-1.1.3-42at4fgy.mjs +0 -4
  496. package/dist/chunks/bridge-1.1.3-02wgv1mq.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-1.1.3-pz9qyfzz.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-1.1.3-e833e9ca.mjs +0 -1
  499. package/dist/chunks/bridgeMain-1.1.3-aqjdgpdy.mjs +0 -88
  500. package/dist/chunks/bridgePointer-1.1.3-b3hwkb6e.mjs +0 -1
  501. package/dist/chunks/btw-1.1.3-3q7kvnj8.mjs +0 -1
  502. package/dist/chunks/buddy-1.1.3-mxnf2f34.mjs +0 -3
  503. package/dist/chunks/cacache-1.1.3-rxz1pgwz.mjs +0 -1
  504. package/dist/chunks/cache-probe-1.1.3-ey8g5sks.mjs +0 -21
  505. package/dist/chunks/cacheStats-1.1.3-mwmp8as6.mjs +0 -4
  506. package/dist/chunks/caches-1.1.3-zwf2m9j5.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-1.1.3-v480vs32.mjs +0 -1
  508. package/dist/chunks/claudemd-1.1.3-aspbzmhd.mjs +0 -1
  509. package/dist/chunks/clear-1.1.3-9apn4h2w.mjs +0 -1
  510. package/dist/chunks/clearTerminal-1.1.3-jbzj4fvw.mjs +0 -1
  511. package/dist/chunks/cli-1.1.3-01ceyj4y.mjs +0 -45
  512. package/dist/chunks/cli-1.1.3-01phj35m.mjs +0 -25
  513. package/dist/chunks/cli-1.1.3-07ap3q60.mjs +0 -2
  514. package/dist/chunks/cli-1.1.3-0cbh861c.mjs +0 -9
  515. package/dist/chunks/cli-1.1.3-0cq4713y.mjs +0 -2
  516. package/dist/chunks/cli-1.1.3-0p8krrf1.mjs +0 -2
  517. package/dist/chunks/cli-1.1.3-1ey46s2h.mjs +0 -3
  518. package/dist/chunks/cli-1.1.3-1krr9n6p.mjs +0 -4
  519. package/dist/chunks/cli-1.1.3-1m40cjft.mjs +0 -2
  520. package/dist/chunks/cli-1.1.3-1vw4gdpc.mjs +0 -3
  521. package/dist/chunks/cli-1.1.3-1zv90s1n.mjs +0 -17
  522. package/dist/chunks/cli-1.1.3-25jbatj6.mjs +0 -2
  523. package/dist/chunks/cli-1.1.3-2at6mxpr.mjs +0 -2
  524. package/dist/chunks/cli-1.1.3-2nhp8krw.mjs +0 -2
  525. package/dist/chunks/cli-1.1.3-2pzwezgd.mjs +0 -2
  526. package/dist/chunks/cli-1.1.3-2whk95g7.mjs +0 -2
  527. package/dist/chunks/cli-1.1.3-35pxqjkd.mjs +0 -3
  528. package/dist/chunks/cli-1.1.3-35sq031q.mjs +0 -2
  529. package/dist/chunks/cli-1.1.3-3b1emj77.mjs +0 -2
  530. package/dist/chunks/cli-1.1.3-3ck9nde3.mjs +0 -4
  531. package/dist/chunks/cli-1.1.3-3cqnvz5q.mjs +0 -2
  532. package/dist/chunks/cli-1.1.3-3n4z9x5v.mjs +0 -2
  533. package/dist/chunks/cli-1.1.3-3v1pwmy8.mjs +0 -4
  534. package/dist/chunks/cli-1.1.3-3v7vzx20.mjs +0 -18
  535. package/dist/chunks/cli-1.1.3-3yaqqcdz.mjs +0 -25
  536. package/dist/chunks/cli-1.1.3-474ezzb0.mjs +0 -2
  537. package/dist/chunks/cli-1.1.3-4kjm8mzq.mjs +0 -1
  538. package/dist/chunks/cli-1.1.3-4qnt7xps.mjs +0 -6
  539. package/dist/chunks/cli-1.1.3-542yg99v.mjs +0 -3
  540. package/dist/chunks/cli-1.1.3-59xex268.mjs +0 -4
  541. package/dist/chunks/cli-1.1.3-5bkfd3vc.mjs +0 -2
  542. package/dist/chunks/cli-1.1.3-5g0d524n.mjs +0 -2
  543. package/dist/chunks/cli-1.1.3-5vqc0ws1.mjs +0 -2
  544. package/dist/chunks/cli-1.1.3-5zveqbgr.mjs +0 -2
  545. package/dist/chunks/cli-1.1.3-61cw0bsj.mjs +0 -2
  546. package/dist/chunks/cli-1.1.3-62xmen1t.mjs +0 -3
  547. package/dist/chunks/cli-1.1.3-6arxtxjd.mjs +0 -2
  548. package/dist/chunks/cli-1.1.3-6f17b1wv.mjs +0 -9
  549. package/dist/chunks/cli-1.1.3-6jpsfc7q.mjs +0 -2
  550. package/dist/chunks/cli-1.1.3-6kd24w49.mjs +0 -2
  551. package/dist/chunks/cli-1.1.3-6kse36ke.mjs +0 -2
  552. package/dist/chunks/cli-1.1.3-6qebqran.mjs +0 -4
  553. package/dist/chunks/cli-1.1.3-728j7hk7.mjs +0 -2
  554. package/dist/chunks/cli-1.1.3-754qsxzp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.3-784k913c.mjs +0 -42
  556. package/dist/chunks/cli-1.1.3-794cnnf6.mjs +0 -2
  557. package/dist/chunks/cli-1.1.3-7a40xj94.mjs +0 -4
  558. package/dist/chunks/cli-1.1.3-7b34969p.mjs +0 -24
  559. package/dist/chunks/cli-1.1.3-7dbam07b.mjs +0 -2
  560. package/dist/chunks/cli-1.1.3-81p48g5s.mjs +0 -2
  561. package/dist/chunks/cli-1.1.3-88949m1z.mjs +0 -2
  562. package/dist/chunks/cli-1.1.3-8a7nh0f1.mjs +0 -2
  563. package/dist/chunks/cli-1.1.3-8aghq1w8.mjs +0 -2
  564. package/dist/chunks/cli-1.1.3-8cqhzz5c.mjs +0 -2
  565. package/dist/chunks/cli-1.1.3-8fdttrf4.mjs +0 -2
  566. package/dist/chunks/cli-1.1.3-8fxwqvfj.mjs +0 -3
  567. package/dist/chunks/cli-1.1.3-8mf46r85.mjs +0 -18
  568. package/dist/chunks/cli-1.1.3-93mxysb6.mjs +0 -2
  569. package/dist/chunks/cli-1.1.3-9a9bythm.mjs +0 -2
  570. package/dist/chunks/cli-1.1.3-9cvgj0zc.mjs +0 -2
  571. package/dist/chunks/cli-1.1.3-9dawtrvk.mjs +0 -2
  572. package/dist/chunks/cli-1.1.3-9zpwt3yw.mjs +0 -2
  573. package/dist/chunks/cli-1.1.3-9zvc4hsj.mjs +0 -2
  574. package/dist/chunks/cli-1.1.3-aby773wx.mjs +0 -2
  575. package/dist/chunks/cli-1.1.3-and2rzgx.mjs +0 -2
  576. package/dist/chunks/cli-1.1.3-atjv82jv.mjs +0 -2
  577. package/dist/chunks/cli-1.1.3-atp5y7j7.mjs +0 -2
  578. package/dist/chunks/cli-1.1.3-aw2b0yn9.mjs +0 -2
  579. package/dist/chunks/cli-1.1.3-b88x3k01.mjs +0 -2
  580. package/dist/chunks/cli-1.1.3-bbqwb2vd.mjs +0 -2
  581. package/dist/chunks/cli-1.1.3-bh5gftey.mjs +0 -12
  582. package/dist/chunks/cli-1.1.3-bkev2xdr.mjs +0 -2
  583. package/dist/chunks/cli-1.1.3-bp3q6zqx.mjs +0 -2
  584. package/dist/chunks/cli-1.1.3-bqn6026m.mjs +0 -39
  585. package/dist/chunks/cli-1.1.3-btgs6ac2.mjs +0 -2
  586. package/dist/chunks/cli-1.1.3-c06t4mva.mjs +0 -202
  587. package/dist/chunks/cli-1.1.3-c627h4he.mjs +0 -2
  588. package/dist/chunks/cli-1.1.3-c63ht2fx.mjs +0 -24
  589. package/dist/chunks/cli-1.1.3-c89bkw1j.mjs +0 -50
  590. package/dist/chunks/cli-1.1.3-cf6phy33.mjs +0 -4
  591. package/dist/chunks/cli-1.1.3-cfbvqt93.mjs +0 -2
  592. package/dist/chunks/cli-1.1.3-ckgtccms.mjs +0 -2
  593. package/dist/chunks/cli-1.1.3-cn4g4e3p.mjs +0 -2
  594. package/dist/chunks/cli-1.1.3-czckb3b7.mjs +0 -2
  595. package/dist/chunks/cli-1.1.3-d2q4t4ng.mjs +0 -2
  596. package/dist/chunks/cli-1.1.3-d2rfc4qe.mjs +0 -21
  597. package/dist/chunks/cli-1.1.3-d3ktet0r.mjs +0 -15
  598. package/dist/chunks/cli-1.1.3-d8scjpye.mjs +0 -2
  599. package/dist/chunks/cli-1.1.3-dab6k7an.mjs +0 -2
  600. package/dist/chunks/cli-1.1.3-db63qype.mjs +0 -2
  601. package/dist/chunks/cli-1.1.3-dgv6zkw4.mjs +0 -2
  602. package/dist/chunks/cli-1.1.3-dnk7vvb1.mjs +0 -3
  603. package/dist/chunks/cli-1.1.3-dnyndczq.mjs +0 -15
  604. package/dist/chunks/cli-1.1.3-e3jtz0sv.mjs +0 -2
  605. package/dist/chunks/cli-1.1.3-ehynfa14.mjs +0 -6
  606. package/dist/chunks/cli-1.1.3-ep77k52g.mjs +0 -2
  607. package/dist/chunks/cli-1.1.3-ezvsqkxt.mjs +0 -2
  608. package/dist/chunks/cli-1.1.3-f3b9x47a.mjs +0 -2
  609. package/dist/chunks/cli-1.1.3-f4y81bfm.mjs +0 -2
  610. package/dist/chunks/cli-1.1.3-ffhb6dgp.mjs +0 -2
  611. package/dist/chunks/cli-1.1.3-ffnbm5dy.mjs +0 -2
  612. package/dist/chunks/cli-1.1.3-ffxb379j.mjs +0 -2
  613. package/dist/chunks/cli-1.1.3-fg4s0rf2.mjs +0 -2
  614. package/dist/chunks/cli-1.1.3-fn3gz1mm.mjs +0 -2
  615. package/dist/chunks/cli-1.1.3-fwnvqcgg.mjs +0 -6
  616. package/dist/chunks/cli-1.1.3-g22t8964.mjs +0 -17
  617. package/dist/chunks/cli-1.1.3-gbtb2prg.mjs +0 -2
  618. package/dist/chunks/cli-1.1.3-gmkpq85h.mjs +0 -2
  619. package/dist/chunks/cli-1.1.3-gqvr1ctv.mjs +0 -2
  620. package/dist/chunks/cli-1.1.3-grr7gey9.mjs +0 -2
  621. package/dist/chunks/cli-1.1.3-gthp8mbw.mjs +0 -2
  622. package/dist/chunks/cli-1.1.3-h27e7q5x.mjs +0 -12
  623. package/dist/chunks/cli-1.1.3-h382pr6p.mjs +0 -2
  624. package/dist/chunks/cli-1.1.3-hb7g5y9p.mjs +0 -12
  625. package/dist/chunks/cli-1.1.3-hftwajch.mjs +0 -2
  626. package/dist/chunks/cli-1.1.3-hs9ck03n.mjs +0 -5639
  627. package/dist/chunks/cli-1.1.3-hw5kjqjr.mjs +0 -12
  628. package/dist/chunks/cli-1.1.3-hx22x48p.mjs +0 -2
  629. package/dist/chunks/cli-1.1.3-hx6z3g2t.mjs +0 -15
  630. package/dist/chunks/cli-1.1.3-hzettfd9.mjs +0 -2
  631. package/dist/chunks/cli-1.1.3-j0hxvf5w.mjs +0 -2
  632. package/dist/chunks/cli-1.1.3-jgpsz36y.mjs +0 -3
  633. package/dist/chunks/cli-1.1.3-jm2670xx.mjs +0 -3
  634. package/dist/chunks/cli-1.1.3-jsvyner6.mjs +0 -2
  635. package/dist/chunks/cli-1.1.3-jvgmswx0.mjs +0 -2
  636. package/dist/chunks/cli-1.1.3-jxcrr2k0.mjs +0 -2
  637. package/dist/chunks/cli-1.1.3-jz35kydf.mjs +0 -2
  638. package/dist/chunks/cli-1.1.3-k71pqbzv.mjs +0 -2
  639. package/dist/chunks/cli-1.1.3-kb2p4ces.mjs +0 -2
  640. package/dist/chunks/cli-1.1.3-kh7s1ptn.mjs +0 -59
  641. package/dist/chunks/cli-1.1.3-m0nv5m3n.mjs +0 -2
  642. package/dist/chunks/cli-1.1.3-m1drez65.mjs +0 -20
  643. package/dist/chunks/cli-1.1.3-maxd7q4j.mjs +0 -2
  644. package/dist/chunks/cli-1.1.3-mk0pqpe5.mjs +0 -2
  645. package/dist/chunks/cli-1.1.3-n4fjs3wh.mjs +0 -2
  646. package/dist/chunks/cli-1.1.3-n4sxmh0k.mjs +0 -3
  647. package/dist/chunks/cli-1.1.3-n69km65c.mjs +0 -2
  648. package/dist/chunks/cli-1.1.3-n94f70dw.mjs +0 -4
  649. package/dist/chunks/cli-1.1.3-nb6jng8k.mjs +0 -24
  650. package/dist/chunks/cli-1.1.3-neffpndz.mjs +0 -2
  651. package/dist/chunks/cli-1.1.3-nskz3j4r.mjs +0 -6
  652. package/dist/chunks/cli-1.1.3-nv18abf3.mjs +0 -2
  653. package/dist/chunks/cli-1.1.3-nwwtaht8.mjs +0 -3
  654. package/dist/chunks/cli-1.1.3-p96mn5e3.mjs +0 -4
  655. package/dist/chunks/cli-1.1.3-pfyraqmy.mjs +0 -2
  656. package/dist/chunks/cli-1.1.3-pmd2p2dk.mjs +0 -2
  657. package/dist/chunks/cli-1.1.3-q419ra7q.mjs +0 -2
  658. package/dist/chunks/cli-1.1.3-qffw70jy.mjs +0 -2
  659. package/dist/chunks/cli-1.1.3-qhw7mafg.mjs +0 -2
  660. package/dist/chunks/cli-1.1.3-r8hnm5n8.mjs +0 -2
  661. package/dist/chunks/cli-1.1.3-r9m8cyrc.mjs +0 -2
  662. package/dist/chunks/cli-1.1.3-ramkctnw.mjs +0 -58
  663. package/dist/chunks/cli-1.1.3-rkx4c6ey.mjs +0 -2
  664. package/dist/chunks/cli-1.1.3-rneam354.mjs +0 -2
  665. package/dist/chunks/cli-1.1.3-s1ttygbf.mjs +0 -67
  666. package/dist/chunks/cli-1.1.3-sc9bm6f1.mjs +0 -2
  667. package/dist/chunks/cli-1.1.3-scnwb2jp.mjs +0 -2
  668. package/dist/chunks/cli-1.1.3-sfy0pdyx.mjs +0 -2
  669. package/dist/chunks/cli-1.1.3-sjkaxzsp.mjs +0 -2
  670. package/dist/chunks/cli-1.1.3-sk7xsym3.mjs +0 -2
  671. package/dist/chunks/cli-1.1.3-skvx9y6v.mjs +0 -2
  672. package/dist/chunks/cli-1.1.3-sp010xtk.mjs +0 -2
  673. package/dist/chunks/cli-1.1.3-spxtmdrr.mjs +0 -2
  674. package/dist/chunks/cli-1.1.3-ssgr0hah.mjs +0 -2
  675. package/dist/chunks/cli-1.1.3-swhwjey8.mjs +0 -4
  676. package/dist/chunks/cli-1.1.3-t15g5zbq.mjs +0 -2
  677. package/dist/chunks/cli-1.1.3-t2tn9dft.mjs +0 -2
  678. package/dist/chunks/cli-1.1.3-t847whez.mjs +0 -2
  679. package/dist/chunks/cli-1.1.3-t9f7yqmm.mjs +0 -2
  680. package/dist/chunks/cli-1.1.3-tbnf15hh.mjs +0 -2
  681. package/dist/chunks/cli-1.1.3-trr6cmmr.mjs +0 -2
  682. package/dist/chunks/cli-1.1.3-v2tjwmbp.mjs +0 -5
  683. package/dist/chunks/cli-1.1.3-v32wjr75.mjs +0 -5
  684. package/dist/chunks/cli-1.1.3-v35td7vm.mjs +0 -2
  685. package/dist/chunks/cli-1.1.3-v5ceeb5d.mjs +0 -6
  686. package/dist/chunks/cli-1.1.3-vbsx7ezp.mjs +0 -7
  687. package/dist/chunks/cli-1.1.3-vmmx1en5.mjs +0 -2
  688. package/dist/chunks/cli-1.1.3-vnwxm9wr.mjs +0 -2
  689. package/dist/chunks/cli-1.1.3-vy745mt9.mjs +0 -2
  690. package/dist/chunks/cli-1.1.3-w64jkj6r.mjs +0 -2
  691. package/dist/chunks/cli-1.1.3-wb3qve9j.mjs +0 -2
  692. package/dist/chunks/cli-1.1.3-wd2xqmmr.mjs +0 -2
  693. package/dist/chunks/cli-1.1.3-wnmbr0xp.mjs +0 -2
  694. package/dist/chunks/cli-1.1.3-wpkhmx2n.mjs +0 -34
  695. package/dist/chunks/cli-1.1.3-wrfkmhf7.mjs +0 -2
  696. package/dist/chunks/cli-1.1.3-x42n0xaw.mjs +0 -133
  697. package/dist/chunks/cli-1.1.3-x86k4av4.mjs +0 -2
  698. package/dist/chunks/cli-1.1.3-xdkzmwps.mjs +0 -4
  699. package/dist/chunks/cli-1.1.3-xdx3kmb4.mjs +0 -2
  700. package/dist/chunks/cli-1.1.3-xkvherr0.mjs +0 -2
  701. package/dist/chunks/cli-1.1.3-xs1sydv3.mjs +0 -2
  702. package/dist/chunks/cli-1.1.3-xvbcvemx.mjs +0 -18
  703. package/dist/chunks/cli-1.1.3-xwh6kwee.mjs +0 -2
  704. package/dist/chunks/cli-1.1.3-y50zzrst.mjs +0 -3
  705. package/dist/chunks/cli-1.1.3-yaa47h2d.mjs +0 -2
  706. package/dist/chunks/cli-1.1.3-ymajywr8.mjs +0 -2
  707. package/dist/chunks/cli-1.1.3-yxab9ewb.mjs +0 -2
  708. package/dist/chunks/cli-1.1.3-z2zjezjw.mjs +0 -2
  709. package/dist/chunks/cli-1.1.3-z57276ym.mjs +0 -8
  710. package/dist/chunks/cli-1.1.3-zdr6e0yt.mjs +0 -2
  711. package/dist/chunks/cli-1.1.3-zg0yshsb.mjs +0 -16
  712. package/dist/chunks/cli-1.1.3-zpzzcahe.mjs +0 -133
  713. package/dist/chunks/cli-1.1.3-zw8vt024.mjs +0 -2
  714. package/dist/chunks/client-1.1.3-xm226xj6.mjs +0 -1
  715. package/dist/chunks/color-1.1.3-8ab65cjs.mjs +0 -1
  716. package/dist/chunks/compact-1.1.3-hcapbx0q.mjs +0 -3
  717. package/dist/chunks/config-1.1.3-g43dtaxy.mjs +0 -1
  718. package/dist/chunks/config-1.1.3-wb6deh5d.mjs +0 -1
  719. package/dist/chunks/constants-1.1.3-3b936cvz.mjs +0 -1
  720. package/dist/chunks/context-1.1.3-xvy8khnx.mjs +0 -1
  721. package/dist/chunks/context-noninteractive-1.1.3-dmzhbz2k.mjs +0 -1
  722. package/dist/chunks/conversation-1.1.3-hrdt4vvs.mjs +0 -1
  723. package/dist/chunks/copilotHeaders-1.1.3-2j9metc4.mjs +0 -1
  724. package/dist/chunks/copy-1.1.3-2d905bsm.mjs +0 -9
  725. package/dist/chunks/cost-1.1.3-z4msw06f.mjs +0 -1
  726. package/dist/chunks/createSSHSession-1.1.3-xq7rb9ae.mjs +0 -1
  727. package/dist/chunks/createSession-1.1.3-t81dkj2y.mjs +0 -1
  728. package/dist/chunks/debug-1.1.3-3bkwy7n0.mjs +0 -1
  729. package/dist/chunks/defaultActionDeps-1.1.3-hvw12khs.mjs +0 -1446
  730. package/dist/chunks/desktop-1.1.3-bxb4ht8y.mjs +0 -1
  731. package/dist/chunks/detectRepository-1.1.3-38e9bq6c.mjs +0 -1
  732. package/dist/chunks/detection-1.1.3-w4ezq6bb.mjs +0 -1
  733. package/dist/chunks/diff-1.1.3-fjz0ec55.mjs +0 -1
  734. package/dist/chunks/doctor-1.1.3-9wwq26y8.mjs +0 -1
  735. package/dist/chunks/doctorDiagnostic-1.1.3-9abfp9t6.mjs +0 -1
  736. package/dist/chunks/earlyInput-1.1.3-d2cs4fwc.mjs +0 -1
  737. package/dist/chunks/effort-1.1.3-j0n7czrz.mjs +0 -13
  738. package/dist/chunks/engine-1.1.3-pr4qnwy3.mjs +0 -1
  739. package/dist/chunks/envLessBridgeConfig-1.1.3-wc95rk7b.mjs +0 -1
  740. package/dist/chunks/envUtils-1.1.3-5tct25a9.mjs +0 -1
  741. package/dist/chunks/environmentSelection-1.1.3-qtqtxdf3.mjs +0 -1
  742. package/dist/chunks/environments-1.1.3-4yp11kx1.mjs +0 -1
  743. package/dist/chunks/errors-1.1.3-839qw7sv.mjs +0 -1
  744. package/dist/chunks/exampleCommands-1.1.3-7xyshaxw.mjs +0 -1
  745. package/dist/chunks/execFileNoThrow-1.1.3-mq74sze8.mjs +0 -1
  746. package/dist/chunks/exit-1.1.3-rhdfh4z2.mjs +0 -1
  747. package/dist/chunks/explorer-1.1.3-qp41d17d.mjs +0 -1
  748. package/dist/chunks/export-1.1.3-h7nhy37k.mjs +0 -2
  749. package/dist/chunks/extra-usage-1.1.3-x22bxhyr.mjs +0 -1
  750. package/dist/chunks/extra-usage-noninteractive-1.1.3-9b1pnfdq.mjs +0 -1
  751. package/dist/chunks/fast-1.1.3-zpw1g4fr.mjs +0 -1
  752. package/dist/chunks/feedback-1.1.3-ak2cw09m.mjs +0 -14
  753. package/dist/chunks/firstPartyEventLogger-1.1.3-3ma1a2a5.mjs +0 -1
  754. package/dist/chunks/git-1.1.3-5v2874t5.mjs +0 -1
  755. package/dist/chunks/githubModelsCredentials-1.1.3-cbegmxdf.mjs +0 -1
  756. package/dist/chunks/goal-1.1.3-20rnxcrw.mjs +0 -4
  757. package/dist/chunks/grove-1.1.3-txbghpb5.mjs +0 -1
  758. package/dist/chunks/growthbook-1.1.3-78e8e871.mjs +0 -1
  759. package/dist/chunks/headless-1.1.3-93ardmg6.mjs +0 -2
  760. package/dist/chunks/heapdump-1.1.3-hvdttsk2.mjs +0 -6
  761. package/dist/chunks/help-1.1.3-v94jvsxq.mjs +0 -1
  762. package/dist/chunks/hookChains-1.1.3-9ma5vjz9.mjs +0 -3
  763. package/dist/chunks/hooks-1.1.3-my305rqa.mjs +0 -1
  764. package/dist/chunks/hooks-1.1.3-qnjv2ceq.mjs +0 -79
  765. package/dist/chunks/ide-1.1.3-0b6tx1fn.mjs +0 -3
  766. package/dist/chunks/image-processor-napi-1.1.3-e0yr3jf6.mjs +0 -1
  767. package/dist/chunks/inboundAttachments-1.1.3-1xk4z18x.mjs +0 -1
  768. package/dist/chunks/index-1.1.3-05dj3vyn.mjs +0 -1
  769. package/dist/chunks/index-1.1.3-0xj4kyd8.mjs +0 -1
  770. package/dist/chunks/index-1.1.3-3jppvcra.mjs +0 -2
  771. package/dist/chunks/index-1.1.3-3vd48szb.mjs +0 -30
  772. package/dist/chunks/index-1.1.3-40fcsdhn.mjs +0 -1
  773. package/dist/chunks/index-1.1.3-6jjz6ctb.mjs +0 -1
  774. package/dist/chunks/index-1.1.3-70e6zr9d.mjs +0 -1
  775. package/dist/chunks/index-1.1.3-a1hhr2m3.mjs +0 -9
  776. package/dist/chunks/index-1.1.3-cqhk9amz.mjs +0 -1
  777. package/dist/chunks/index-1.1.3-ey0w9snc.mjs +0 -1
  778. package/dist/chunks/index-1.1.3-hvbtn9kp.mjs +0 -1
  779. package/dist/chunks/index-1.1.3-k6y0hd0p.mjs +0 -9
  780. package/dist/chunks/index-1.1.3-n02hxa0w.mjs +0 -1
  781. package/dist/chunks/index-1.1.3-nr5wza2c.mjs +0 -1
  782. package/dist/chunks/index-1.1.3-r28aemv7.mjs +0 -1
  783. package/dist/chunks/index-1.1.3-rhcxh4xp.mjs +0 -1
  784. package/dist/chunks/index-1.1.3-t1h4z32w.mjs +0 -2
  785. package/dist/chunks/index-1.1.3-tnh0vetx.mjs +0 -17
  786. package/dist/chunks/index-1.1.3-v3bygtqf.mjs +0 -1
  787. package/dist/chunks/index-1.1.3-vzk1g7qa.mjs +0 -1
  788. package/dist/chunks/index-1.1.3-wnr572f2.mjs +0 -5
  789. package/dist/chunks/index-1.1.3-ww7fhvcj.mjs +0 -1
  790. package/dist/chunks/index-1.1.3-yj99jfkc.mjs +0 -1
  791. package/dist/chunks/init-1.1.3-9tpzjm03.mjs +0 -1
  792. package/dist/chunks/initReplBridge-1.1.3-9qbyncbf.mjs +0 -1
  793. package/dist/chunks/ink-1.1.3-hdvkkyj6.mjs +0 -1
  794. package/dist/chunks/insights-1.1.3-5zza0gsp.mjs +0 -870
  795. package/dist/chunks/install-1.1.3-10xet3fs.mjs +0 -1
  796. package/dist/chunks/install-github-app-1.1.3-zw78ccj9.mjs +0 -149
  797. package/dist/chunks/install-slack-app-1.1.3-9tftq49n.mjs +0 -1
  798. package/dist/chunks/instrumentation-1.1.3-cpa9f6b5.mjs +0 -1
  799. package/dist/chunks/interactiveHelpers-1.1.3-agbgadm7.mjs +0 -1
  800. package/dist/chunks/keybindings-1.1.3-13kdt9tg.mjs +0 -2
  801. package/dist/chunks/knowledge-1.1.3-gp9qcrrs.mjs +0 -2
  802. package/dist/chunks/latestVersionCache-1.1.3-kgy1wyv0.mjs +0 -1
  803. package/dist/chunks/loadAgentsDir-1.1.3-75zjfd3k.mjs +0 -1
  804. package/dist/chunks/loadPluginHooks-1.1.3-7wwgb03c.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.3-jfmwjb98.mjs +0 -1
  806. package/dist/chunks/log-1.1.3-9zqwe1w7.mjs +0 -1
  807. package/dist/chunks/main-1.1.3-jhjmcs48.mjs +0 -1
  808. package/dist/chunks/managedEnv-1.1.3-t9w50rpt.mjs +0 -1
  809. package/dist/chunks/mcp-1.1.3-207rw6m3.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.3-kd4j31we.mjs +0 -17
  811. package/dist/chunks/mcp-1.1.3-kws6bzpc.mjs +0 -4
  812. package/dist/chunks/mcpb-1.1.3-f30fv87k.mjs +0 -1
  813. package/dist/chunks/memory-1.1.3-r9sjskzv.mjs +0 -72
  814. package/dist/chunks/model-1.1.3-6bjss6ed.mjs +0 -1
  815. package/dist/chunks/model-1.1.3-vsqw9dyb.mjs +0 -2
  816. package/dist/chunks/node-1.1.3-rsp1nxjt.mjs +0 -12
  817. package/dist/chunks/oauth-1.1.3-enrprjzc.mjs +0 -1
  818. package/dist/chunks/openaiShim-1.1.3-f5dhxmdz.mjs +0 -14
  819. package/dist/chunks/output-style-1.1.3-z351smrw.mjs +0 -1
  820. package/dist/chunks/package-2VNCXFNY-1.1.3-d53d5n86.mjs +0 -1
  821. package/dist/chunks/parseConnectUrl-1.1.3-bqm4rp08.mjs +0 -1
  822. package/dist/chunks/parser-1.1.3-eyj95pq4.mjs +0 -1
  823. package/dist/chunks/passes-1.1.3-0a11epnb.mjs +0 -1
  824. package/dist/chunks/permissions-1.1.3-eegvrpq9.mjs +0 -3
  825. package/dist/chunks/permissions-1.1.3-pypjshjc.mjs +0 -1
  826. package/dist/chunks/plan-1.1.3-3kcm7qd3.mjs +0 -1
  827. package/dist/chunks/plist-1.1.3-nwtjgx23.mjs +0 -1
  828. package/dist/chunks/plugin-1.1.3-nmwsekb7.mjs +0 -29
  829. package/dist/chunks/pluginStartupCheck-1.1.3-r2gw8rs8.mjs +0 -1
  830. package/dist/chunks/plugins-1.1.3-8kpaagz8.mjs +0 -9
  831. package/dist/chunks/preActionHook-1.1.3-bxphk64e.mjs +0 -2
  832. package/dist/chunks/print-1.1.3-gm79pshf.mjs +0 -57
  833. package/dist/chunks/privacy-settings-1.1.3-sd4vzmf5.mjs +0 -1
  834. package/dist/chunks/process-1.1.3-01ryma15.mjs +0 -1
  835. package/dist/chunks/processBashCommand-1.1.3-qatq374q.mjs +0 -1
  836. package/dist/chunks/processSlashCommand-1.1.3-g45j16m5.mjs +0 -9
  837. package/dist/chunks/prompt-1.1.3-6m7zdbwt.mjs +0 -1
  838. package/dist/chunks/prompt-1.1.3-bxzv3knp.mjs +0 -1
  839. package/dist/chunks/prompts-1.1.3-da4jzheb.mjs +0 -1
  840. package/dist/chunks/protocolHandler-1.1.3-8efrcbr5.mjs +0 -13
  841. package/dist/chunks/provider-1.1.3-jk006gs1.mjs +0 -2
  842. package/dist/chunks/providerProfiles-1.1.3-7czyj40k.mjs +0 -1
  843. package/dist/chunks/providerValidation-1.1.3-099qkvzg.mjs +0 -6
  844. package/dist/chunks/rate-limit-options-1.1.3-4y4ya1ax.mjs +0 -1
  845. package/dist/chunks/registerSubcommands-1.1.3-59f6nvsp.mjs +0 -34
  846. package/dist/chunks/registry-1.1.3-8dqn0waj.mjs +0 -1
  847. package/dist/chunks/release-notes-1.1.3-smjt1xpb.mjs +0 -5
  848. package/dist/chunks/reload-plugins-1.1.3-ry02kg4r.mjs +0 -2
  849. package/dist/chunks/remote-env-1.1.3-ypt8cj78.mjs +0 -1
  850. package/dist/chunks/remoteBridgeCore-1.1.3-e0q527yd.mjs +0 -1
  851. package/dist/chunks/remoteSession-1.1.3-99dcc6yz.mjs +0 -1
  852. package/dist/chunks/rename-1.1.3-z8ht01vn.mjs +0 -1
  853. package/dist/chunks/replBridgeHandle-1.1.3-9ajh2zsz.mjs +0 -1
  854. package/dist/chunks/replLauncher-1.1.3-phft6q3m.mjs +0 -1
  855. package/dist/chunks/resume-1.1.3-ryb53bar.mjs +0 -2
  856. package/dist/chunks/rewind-1.1.3-yc7kmt10.mjs +0 -1
  857. package/dist/chunks/rootOptions-1.1.3-21mvhhbz.mjs +0 -1
  858. package/dist/chunks/runWorkflowHeadless-1.1.3-c5x1xygs.mjs +0 -10
  859. package/dist/chunks/sandbox-adapter-1.1.3-qaxp436e.mjs +0 -1
  860. package/dist/chunks/sandbox-toggle-1.1.3-yd6gnwq0.mjs +0 -1
  861. package/dist/chunks/session-1.1.3-d6bcmdqc.mjs +0 -2
  862. package/dist/chunks/sessionDiscovery-1.1.3-yengby74.mjs +0 -1
  863. package/dist/chunks/sessionFileAccessHooks-1.1.3-z5h2mh2d.mjs +0 -1
  864. package/dist/chunks/sessionStorage-1.1.3-g2087x3k.mjs +0 -1
  865. package/dist/chunks/settings-1.1.3-kdw73w2n.mjs +0 -1
  866. package/dist/chunks/setup-1.1.3-6x82pe5r.mjs +0 -5
  867. package/dist/chunks/sinks-1.1.3-bnwaz6jy.mjs +0 -1
  868. package/dist/chunks/skills-1.1.3-xzvzszw5.mjs +0 -1
  869. package/dist/chunks/startupProfiler-1.1.3-vmfrefxy.mjs +0 -1
  870. package/dist/chunks/startupUpdateCheck-1.1.3-xnsmptgv.mjs +0 -1
  871. package/dist/chunks/state-1.1.3-9qvv8c8a.mjs +0 -1
  872. package/dist/chunks/stats-1.1.3-xkfhs48y.mjs +0 -6
  873. package/dist/chunks/status-1.1.3-bkvdfpf2.mjs +0 -1
  874. package/dist/chunks/stickers-1.1.3-tdyragdz.mjs +0 -1
  875. package/dist/chunks/subprocessEnv-1.1.3-bnpw017t.mjs +0 -1
  876. package/dist/chunks/tasks-1.1.3-3jnhmrad.mjs +0 -1
  877. package/dist/chunks/teamHelpers-1.1.3-3rhp7h7y.mjs +0 -1
  878. package/dist/chunks/teammateModeSnapshot-1.1.3-sjhagf52.mjs +0 -1
  879. package/dist/chunks/teleport-1.1.3-0qc9xkzf.mjs +0 -1
  880. package/dist/chunks/terminalSetup-1.1.3-r9zefqyy.mjs +0 -1
  881. package/dist/chunks/theme-1.1.3-ygj5ahxz.mjs +0 -1
  882. package/dist/chunks/thinkback-1.1.3-692khvzr.mjs +0 -1
  883. package/dist/chunks/thinkback-play-1.1.3-ebnc9f7w.mjs +0 -1
  884. package/dist/chunks/toolPool-1.1.3-9tmyh9kx.mjs +0 -1
  885. package/dist/chunks/toolSearch-1.1.3-dt6xjx6s.mjs +0 -1
  886. package/dist/chunks/tools-1.1.3-qg2w37bw.mjs +0 -1
  887. package/dist/chunks/trustedDevice-1.1.3-nt2dpn34.mjs +0 -1
  888. package/dist/chunks/turndown.cjs-1.1.3-vky94jfh.mjs +0 -69
  889. package/dist/chunks/types-1.1.3-h2n5wzra.mjs +0 -1
  890. package/dist/chunks/ultrareviewCommand-1.1.3-j3a7dzxc.mjs +0 -4
  891. package/dist/chunks/update-1.1.3-ypnffaj9.mjs +0 -72
  892. package/dist/chunks/upgrade-1.1.3-zgwkz8e1.mjs +0 -1
  893. package/dist/chunks/upload-1.1.3-z9452eam.mjs +0 -7
  894. package/dist/chunks/upstreamproxy-1.1.3-qv2f69gf.mjs +0 -14
  895. package/dist/chunks/url-handler-napi-1.1.3-t5z79vre.mjs +0 -1
  896. package/dist/chunks/usage-1.1.3-qhz8fs40.mjs +0 -1
  897. package/dist/chunks/util-1.1.3-xj9x5fyp.mjs +0 -1
  898. package/dist/chunks/utils-1.1.3-0rv54nxw.mjs +0 -1
  899. package/dist/chunks/vim-1.1.3-7ka37gbw.mjs +0 -1
  900. package/dist/chunks/watchLoop-1.1.3-gfvkcgdc.mjs +0 -13
  901. package/dist/chunks/watcher-1.1.3-g46sx9g8.mjs +0 -1
  902. package/dist/chunks/wiki-1.1.3-e72sp9z3.mjs +0 -132
  903. package/dist/chunks/workflows-1.1.3-1ahbfzb6.mjs +0 -1
  904. package/dist/chunks/worktree-1.1.3-e2ht6w6r.mjs +0 -1
  905. package/dist/chunks/worktreeModeEnabled-1.1.3-r91kaqdc.mjs +0 -1
  906. package/dist/chunks/wrapper-1.1.3-7dpd8b9v.mjs +0 -7
  907. /package/dist/chunks/{cli-1.1.3-k333nezw.mjs → cli-1.1.4-1f3p70jj.mjs} +0 -0
  908. /package/dist/chunks/{cli-1.1.3-nh0p50e1.mjs → cli-1.1.4-ez4xtmvg.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.3-z6nmkfhs.mjs → cli-1.1.4-gp99zrz4.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.3-kftm6an7.mjs → cli-1.1.4-gpvz5jfv.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.3-n8e1g4ez.mjs → cli-1.1.4-n0dzwv49.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.3-bhvdy7a7.mjs → cli-1.1.4-q1mcaeav.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.3-ddqw4d0f.mjs → cli-1.1.4-tg5t7jrb.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{Esa as y}from"./cli-1.1.3-atjv82jv.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,4 +0,0 @@
1
- import{Xg as l,Yg as Uy}from"./cli-1.1.3-atp5y7j7.mjs";import{Qi as d,Si as o,Ti as hy}from"./cli-1.1.3-wb3qve9j.mjs";import{$q as A,Ao as Qy,Dr as Xy,FT as Hy,Ht as Zy,OL as K,PL as vy,PP as _,Sq as u,XL as x,fM as Ny,gr as E,jT as e,jo as V,lo as Y,mM as g,no as D,or as Wy,qM as Py,qo as M,ro as C,sl as L,so as T,uo as f,wl as Jy,yy as q,zr as s,zt as O,zy as $y}from"./cli-1.1.3-hs9ck03n.mjs";import{MX as n,NX as Ry}from"./cli-1.1.3-7b34969p.mjs";import{OY as a,PY as t,QY as c,UY as py}from"./cli-1.1.3-ezvsqkxt.mjs";import{_Y as i,eZ as Oy}from"./cli-1.1.3-wpkhmx2n.mjs";import{W0 as k,X0 as Ky}from"./cli-1.1.3-kh7s1ptn.mjs";import{F8 as X,O6 as B,P6 as F,Y8 as Iy,n7 as zy}from"./cli-1.1.3-zg0yshsb.mjs";import{s9 as H,t9 as Gy}from"./cli-1.1.3-ehynfa14.mjs";import{Bba as j,Dba as ky,H$ as b,Nda as m,O$ as Sy,Q$ as W,Qea as v,R$ as jy,Sda as R,Tda as h,Tea as w,aea as qy,mfa as N,r$ as $}from"./cli-1.1.3-c06t4mva.mjs";import{Uha as z,eia as wy}from"./cli-1.1.3-grr7gey9.mjs";import{vka as p,yka as ry}from"./cli-1.1.3-v5ceeb5d.mjs";N();function Yy(y){let r=w().numStartups;v((G)=>{let S=G.tipsHistory??{};if(S[y]===r)return G;return{...G,tipsHistory:{...S,[y]:r}}})}function P(y){let r=w(),G=r.tipsHistory?.[y];if(!G)return 1/0;return r.numStartups-G}Gy();ry();Zy();qy();Oy();Ky();Uy();$y();Jy();Iy();Ry();N();Wy();ky();Xy();Sy();Qy();zy();jy();Py();Ny();vy();Hy();wy();hy();py();var Q;async function by(){if(Q!==void 0)return Q;let y=await x();return Q=K in y,Q}async function U(y,r,G){if(!await by())return!1;if(g(`${y}@${K}`))return!1;let{bashTools:S}=r??{};if(G.cli&&S?.size){if(G.cli.some((I)=>S.has(I)))return!0}if(G.filePath&&r?.readFileState){if(s(r.readFileState).some((Z)=>G.filePath.test(Z)))return!0}return!1}var my=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return w().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let y=w();return(y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let y=w(),r=h(),G=Boolean(y.lastPlanModeUse),S=Boolean(r?.permissions?.defaultMode);return G&&!S}catch(y){return p(`Failed to check default-permission-mode-config tip relevance: ${y}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let y=w();return await b()<=1&&y.numStartups>50}catch(y){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${q("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await $()}catch(y){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${q("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await $()}catch(y){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${q("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let y=w();return y.numStartups>5&&y.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(e())return!1;return await n()>=2}},{id:"terminal-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let y=w();if(j.terminal==="Apple_Terminal")return!y.optionAsMetaKeyInstalled;return!y.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>j.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let y=w();return Boolean((j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)&&y.numStartups>3)}},{id:"shift-enter-setup",content:async()=>j.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!i())return!1;let y=w();return!(j.terminal==="Apple_Terminal"?y.optionAsMetaKeyInstalled:y.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return w().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&H.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>W()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>h().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return w().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${j.terminal==="vscode"?"code":j.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!V())return!1;if(W()!=="macos")return!1;switch(j.terminal){case"vscode":return!await T();case"cursor":return!await M();case"windsurf":return!await C();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(Y())return!1;if((await D()).length!==0)return!1;return(await f()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!w().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!w().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return w().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!j.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>W()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>_()&&w().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return w().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return w().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let y=w(),G=B()==="opusplan",S=y.lastPlanModeUse?(Date.now()-y.lastPlanModeUse)/86400000:1/0;return G&&S>3}},{id:"frontend-design-plugin",content:async(y)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
2
- ${k("suggestion",y.theme)(`/plugin install frontend-design@${K}`)}`},cooldownSessions:3,isRelevant:async(y)=>U("frontend-design",y,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(y)=>{return`Working with Vercel? Install the vercel plugin:
3
- ${k("suggestion",y.theme)(`/plugin install vercel@${K}`)}`},cooldownSessions:3,isRelevant:async(y)=>U("vercel",y,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(y)=>{let G=k("suggestion",y.theme)("/effort high");return z("tengu_tide_elm","off")==="copy_b"?`Use ${G} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${G} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;if(!u(F()))return!1;if(m("policySettings")?.effortLevel!==void 0)return!1;if(E()!==void 0)return!1;let y=A();if(y==="high"||y==="max")return!1;return z("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${r("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${r('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;return z("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(y)=>{let r=k("suggestion",y.theme);return z("tengu_timber_lark","off")==="copy_b"?`Use ${r("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${r("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!X())return!1;if(!L())return!1;return z("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(y)=>{let r=k("claude",y.theme),G=c();return G?`Share Claudin and earn ${r(t(G))} of extra usage · ${r("/passes")}`:`You have free guest passes to share · ${r("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(w().hasVisitedPasses)return!1;let{eligible:r}=a();return r}},{id:"overage-credit",content:async(y)=>{let r=k("claude",y.theme),G=d(),S=G?o(G):null;if(!S)return"";return`${r(`${S} in extra usage, on us`)} · third-party apps · ${r("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>l()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return w().numStartups>5}}],By=[];function Fy(){let r=R().spinnerTipsOverride;if(!r?.tips?.length)return[];return r.tips.map((G,S)=>({id:`custom-tip-${S}`,content:async()=>G,cooldownSessions:0,isRelevant:async()=>!0}))}async function qr(y){let G=R().spinnerTipsOverride,S=Fy();if(G?.excludeDefault&&S.length>0)return S;let I=[...my,...By],Z=await Promise.all(I.map((J)=>J.isRelevant(y)));return[...I.filter((J,yy)=>Z[yy]).filter((J)=>P(J.id)>=J.cooldownSessions),...S]}
4
- export{Yy as cb,P as db,qr as eb};
@@ -1,2 +0,0 @@
1
- import{Esa as e}from"./cli-1.1.3-atjv82jv.mjs";function o(){return!0}var t=()=>{};
2
- export{o as jU,t as kU};
@@ -1,2 +0,0 @@
1
- import{Esa as g}from"./cli-1.1.3-atjv82jv.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
- export{Bq as iW,d as jW,$J as kW,DJ as lW,GJ as mW};
@@ -1,2 +0,0 @@
1
- import{vka as Q,yka as $}from"./cli-1.1.3-v5ceeb5d.mjs";import{Xka as K,ala as Z}from"./cli-1.1.3-3ck9nde3.mjs";import{dla as J,qla as Y}from"./cli-1.1.3-6jpsfc7q.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
- export{T as ha,w as ia,y as ja};
@@ -1,18 +0,0 @@
1
- import{qJ as Q,tJ as F}from"./cli-1.1.3-hs9ck03n.mjs";import{vka as b,yka as y}from"./cli-1.1.3-v5ceeb5d.mjs";import{Xka as x,ala as f}from"./cli-1.1.3-3ck9nde3.mjs";import{dla as w,qla as R}from"./cli-1.1.3-6jpsfc7q.mjs";import{Vqa as K,_ma as $,bna as j}from"./cli-1.1.3-9cvgj0zc.mjs";import{Esa as v}from"./cli-1.1.3-atjv82jv.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
-
3
- `:"",B=k===G?`
4
-
5
- ${c}`:"";return`Scheduled loop tick.
6
-
7
- ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
-
9
- If .claudin/loop.md exists, read it and follow it.
10
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
- Otherwise:
12
- - continue any unfinished work from the conversation
13
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
-
16
- Do not start new initiatives outside that scope.
17
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
- export{Y as ci,G as di,D as ei,g as fi,M as gi,U as hi};
@@ -1,2 +0,0 @@
1
- import{zZ as O}from"./cli-1.1.3-kh7s1ptn.mjs";import{k4 as X,m4 as Q}from"./cli-1.1.3-ckgtccms.mjs";import{n4 as b}from"./cli-1.1.3-5zveqbgr.mjs";import{_ea as W,mfa as P}from"./cli-1.1.3-c06t4mva.mjs";import{Asa as U}from"./cli-1.1.3-atjv82jv.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
- export{V as qb,C as rb};
@@ -1,3 +0,0 @@
1
- import{Mg as d,Ng as Vq}from"./cli-1.1.3-f4y81bfm.mjs";import{FT as Oq,HS as a,JS as yq,tT as l}from"./cli-1.1.3-hs9ck03n.mjs";import{D1 as Gq,Y0 as T,_0 as R,s1 as $,zZ as Zq}from"./cli-1.1.3-kh7s1ptn.mjs";import{A2 as e,v2 as t,x2 as v}from"./cli-1.1.3-v35td7vm.mjs";import{k4 as P,l4 as N,m4 as S}from"./cli-1.1.3-ckgtccms.mjs";import{n4 as Yq}from"./cli-1.1.3-5zveqbgr.mjs";import{K4 as u,L4 as Aq}from"./cli-1.1.3-35pxqjkd.mjs";import{Q_ as G,S_ as o,Vaa as s,yaa as j}from"./cli-1.1.3-c06t4mva.mjs";import{Eia as w,Gia as r}from"./cli-1.1.3-6kse36ke.mjs";import{vka as L,yka as n}from"./cli-1.1.3-v5ceeb5d.mjs";import{Vka as c,ala as Xq}from"./cli-1.1.3-3ck9nde3.mjs";import{Vqa as i,Wma as f}from"./cli-1.1.3-9cvgj0zc.mjs";import{Asa as I,Esa as h}from"./cli-1.1.3-atjv82jv.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
2
- Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
3
- export{mq as Kg,Bq as Lg};
@@ -1,2 +0,0 @@
1
- import{xN as Q,yN as $}from"./cli-1.1.3-hs9ck03n.mjs";import{Dla as V,Ela as P,Fma as W,Gma as E}from"./cli-1.1.3-9cvgj0zc.mjs";import{Esa as L}from"./cli-1.1.3-atjv82jv.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
- export{v as md,C as nd};
@@ -1,2 +0,0 @@
1
- import{k4 as v,m4 as D}from"./cli-1.1.3-ckgtccms.mjs";import{Fsa as B}from"./cli-1.1.3-atjv82jv.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-1.1.3-se36kt2q.mjs"),J=z??import("./REPL-1.1.3-c8ng1hcs.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
2
- export{N as hb,O as ib};
@@ -1,2 +0,0 @@
1
- import{Esa as o}from"./cli-1.1.3-atjv82jv.mjs";var t="https://api.githubcopilot.com",i=3,n=1,s=32,c="generativelanguage.googleapis.com",r,a="api.kimi.com",p,_,S,E;var e=o(()=>{r=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),_=new Set(["api.deepseek.com"]),S={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as v9,i as w9,n as x9,s as y9,c as z9,r as A9,a as B9,p as C9,_ as D9,S as E9,E as F9,e as G9};
@@ -1,2 +0,0 @@
1
- import{eo as g,fo as k,vG as h,xG as I}from"./cli-1.1.3-hs9ck03n.mjs";import{D1 as _,_0 as s,zZ as S}from"./cli-1.1.3-kh7s1ptn.mjs";import{k4 as c,l4 as m,m4 as T}from"./cli-1.1.3-ckgtccms.mjs";import{Qea as b,mfa as P}from"./cli-1.1.3-c06t4mva.mjs";import{Asa as D}from"./cli-1.1.3-atjv82jv.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,8 +0,0 @@
1
- import{gb as b}from"./cli-1.1.3-ddqw4d0f.mjs";import{of as QK,tf as gK}from"./cli-1.1.3-1ey46s2h.mjs";import{$o as SK,GQ as yK,HM as KK,JM as uK,Xm as oz,Zm as fK,_K as Pz,_o as x,bp as sz,fp as hK,gL as wK,gU as j,iB as tz,iU as aK,kB as ez,lB as mK,oJ as pK,ov as jz,pJ as dK,rM as zK,sM as cK,vv as FK,xQ as bz}from"./cli-1.1.3-hs9ck03n.mjs";import{hZ as Kz,mZ as AK,nZ as Qz,oZ as GK}from"./cli-1.1.3-kh7s1ptn.mjs";import{A7 as iz,E7 as vK,K8 as Mz,M8 as wz,N6 as Uz,O8 as R,R6 as Iz,V6 as Dz,W6 as rz,Y8 as Fz,b7 as Oz,c5 as U,g7 as A,i5 as G,i7 as _z,n7 as P}from"./cli-1.1.3-zg0yshsb.mjs";import{s9 as O,t9 as UK}from"./cli-1.1.3-ehynfa14.mjs";import{$ea as nz,D_ as Zz,E_ as xK,H$ as gz,Kea as lz,L_ as T,Mga as V,N_ as jK,Nda as q,O$ as bK,Pda as H,Qea as $,Rda as az,Sda as f,Tda as Cz,Tea as W,Uga as D,Wda as Jz,Zaa as t,Zea as Wz,_ea as Bz,aea as _,cba as IK,i$ as $z,iba as e,k$ as MK,mba as DK,mfa as N,r$ as uz,tba as zz,wba as OK}from"./cli-1.1.3-c06t4mva.mjs";import{uha as E,zha as CK}from"./cli-1.1.3-1krr9n6p.mjs";import{Eia as cz,Gia as EK}from"./cli-1.1.3-6kse36ke.mjs";import{sja as Z,vja as L}from"./cli-1.1.3-wnmbr0xp.mjs";import{bka as r,dka as LK,eka as i,hka as o,lka as _K}from"./cli-1.1.3-v5ceeb5d.mjs";import{Dka as s,Eka as NK}from"./cli-1.1.3-skvx9y6v.mjs";import{Vka as y,Xka as n,ala as BK}from"./cli-1.1.3-3ck9nde3.mjs";import{fla as C,gla as v,ila as pz,ola as dz,qla as kK}from"./cli-1.1.3-6jpsfc7q.mjs";import{Loa as hz,Nma as w,Rma as WK,Vqa as F,Xoa as mz,cpa as a,hoa as Rz,ioa as fz,joa as Tz,loa as Sz,vpa as l}from"./cli-1.1.3-9cvgj0zc.mjs";import{Bsa as PK}from"./cli-1.1.3-atjv82jv.mjs";UK();AK();F();OK();BK();_K();IK();D();NK();DK();WK();LK();GK();import{readFileSync as RK}from"node:fs";var TK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function qQ(){let z=zz()?TK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function HQ(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function JQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(O.red(`Error: Invalid JSON provided to --settings
2
- `)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{RK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(O.red(`Error: Settings file not found: ${Y}
3
- `)),process.exit(1);throw J}X=Y}a(X),w()}catch(z){if(z instanceof Error)V(z);process.stderr.write(O.red(`Error processing settings: ${y(z)}
4
- `)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),w()}catch(z){if(z instanceof Error)V(z);process.stderr.write(O.red(`Error processing --setting-sources: ${y(z)}
5
- `)),process.exit(1)}}async function VQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
6
- `);return[K,Q].filter(Boolean).join(`
7
- `)}return K}CK();aK();L();fK();N();vK();jK();kK();bK();xK();MK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}D();P();cK();hK();uK();L();N();D();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}L();N();D();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}L();N();D();_();function Lz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let I=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...I,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let I=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...I,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((I)=>{let{enableAllProjectMcpServers:S,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...M}=I;return M});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}L();N();P();G();_();function Nz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}L();P();_();function Az(){if(!Oz())return;if(q("userSettings")?.model!=="opus")return;if(Uz(Iz()))return;let z="opus[1m]",Q=A(z)===A(Dz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}N();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}F();N();G();_();function xz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Rz()==="sonnet[1m]")Tz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}L();Fz();N();G();_();function yz(){if(U()!=="firstParty")return;if(!R()&&!Mz()&&!wz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}L();N();D();wK();_();function kz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(Pz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}L();Fz();N();G();_();function Ez(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(Cz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}gK();SK();F();EK();_();yK();L();FK();async function vz(K,z){let Q=await bz(K),X=jz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}mK();function iX(){try{let K=q("policySettings");if(K){let z=az(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function oX(){let K=A(fz()??rz());vz(cz(),iz(K,Sz())),KK().then(({enabled:z,errors:Q})=>{let X=zK();tz(z,X,sz()),ez(Q,X)}).catch((z)=>V(z))}function lK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function sX(){if(oz())return;let[K,z,Q]=await Promise.all([uz(),gz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:x.isSandboxingEnabled(),are_unsandboxed_commands_allowed:x.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:x.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:nz(),prefers_reduced_motion:f().prefersReducedMotion??!1,...lK()})}var k=11;function tX(){if(W().migrationVersion!==k)Hz(),Vz(),Lz(),Ez(),xz(),Nz(),yz(),Az(),Gz(),kz(),$((K)=>K.migrationVersion===k?K:{...K,migrationVersion:k});QK().catch(()=>{})}function eX(){if(hz()){T("info","prefetch_system_context_non_interactive"),j();return}if(lz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function zY(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function KY(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function QY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:I,numAllowedTools:S,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:M,skipWebFetchPreflight:XK,githubActionInputs:p,dangerouslySkipPermissionsPassed:YK,permissionMode:ZK,modeIsBypass:$K,allowDangerouslySkipPermissionsPassed:qK,systemPromptFlag:d,appendSystemPromptFlag:c,thinkingConfig:HK,assistantActivationPath:u,isCoordinator:JK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:I,numAllowedTools:S,numDisallowedTools:h,mcpClientCount:m,worktree:M,skipWebFetchPreflight:XK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:YK,permissionMode:ZK,modeIsBypass:$K,inProtectedNamespace:dz(),allowDangerouslySkipPermissionsPassed:qK,thinkingType:HK.type,...d&&{systemPromptFlag:d},...c&&{appendSystemPromptFlag:c},is_simple:pz()||void 0,is_coordinator:JK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:f().autoUpdatesChannel??"latest"})}catch(VK){V(VK)}}function XY(K){}function YY(K){return}
8
- export{qQ as N,HQ as O,JQ as P,VQ as Q,iX as R,oX as S,sX as T,tX as U,eX as V,zY as W,KY as X,QY as Y,XY as Z,YY as _};
@@ -1,2 +0,0 @@
1
- import{Esa as n}from"./cli-1.1.3-atjv82jv.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
2
- export{o as nW,e as oW,i as pW,g as qW,r as rW,u as sW,f as tW,l as uW,t as vW};
@@ -1,16 +0,0 @@
1
- import{o9 as E2,q9 as L8}from"./cli-1.1.3-hw5kjqjr.mjs";import{s9 as C,t9 as J$}from"./cli-1.1.3-ehynfa14.mjs";import{E9 as r5,G9 as k8}from"./cli-1.1.3-yxab9ewb.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.3-c06t4mva.mjs";import{Uha as C0,Wha as M4,eia as A1}from"./cli-1.1.3-grr7gey9.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.3-2at6mxpr.mjs";import{sja as j,vja as B2}from"./cli-1.1.3-wnmbr0xp.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.3-v5ceeb5d.mjs";import{Vka as p,Xka as G1,ala as H1}from"./cli-1.1.3-3ck9nde3.mjs";import{dla as P5,gla as F,ila as u,kla as v2,nla as r4,qla as g}from"./cli-1.1.3-6jpsfc7q.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.3-9cvgj0zc.mjs";import{sra as y,tra as t0}from"./cli-1.1.3-vmmx1en5.mjs";import{Pra as P,fsa as q2}from"./cli-1.1.3-8mf46r85.mjs";import{Bsa as y0,Dsa as n2,Esa as R,Fsa as Z0}from"./cli-1.1.3-atjv82jv.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.3-rhcxh4xp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.3-cqhk9amz.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.3-rhcxh4xp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.3-cqhk9amz.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};