@claudiolabs/claudin 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (914) hide show
  1. package/README.md +28 -24
  2. package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +1 -0
  3. package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +7 -0
  11. package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +6 -0
  13. package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +1 -0
  14. package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +1 -0
  18. package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +1 -0
  19. package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +1 -0
  20. package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +1 -0
  28. package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +1 -0
  29. package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +1 -0
  30. package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +1 -0
  31. package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +1 -0
  32. package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +110 -0
  33. package/dist/chunks/agents-1.1.4-w929h9g2.mjs +3 -0
  34. package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +1 -0
  35. package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +1 -0
  36. package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +1 -0
  37. package/dist/chunks/auth-1.1.4-d8jp870f.mjs +1 -0
  38. package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +1 -0
  39. package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +48 -0
  40. package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +1 -0
  41. package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +1 -0
  42. package/dist/chunks/branch-1.1.4-m28a3gah.mjs +4 -0
  43. package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +2 -0
  44. package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +1 -0
  45. package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +1 -0
  46. package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +88 -0
  47. package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +1 -0
  48. package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +1 -0
  49. package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +3 -0
  50. package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +1 -0
  51. package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +21 -0
  52. package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +4 -0
  53. package/dist/chunks/caches-1.1.4-smgwny8k.mjs +1 -0
  54. package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +1 -0
  55. package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +1 -0
  56. package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +1 -0
  57. package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +1 -0
  58. package/dist/chunks/cli-1.1.4-081g3k6v.mjs +2 -0
  59. package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +18 -0
  61. package/dist/chunks/cli-1.1.4-0earmzgk.mjs +12 -0
  62. package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +18 -0
  63. package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +2 -0
  64. package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +133 -0
  65. package/dist/chunks/cli-1.1.4-0r232fpm.mjs +2 -0
  66. package/dist/chunks/cli-1.1.4-0smy947g.mjs +2 -0
  67. package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +2 -0
  68. package/dist/chunks/cli-1.1.4-114zcxgj.mjs +2 -0
  69. package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +2 -0
  70. package/dist/chunks/cli-1.1.4-181vbtfh.mjs +2 -0
  71. package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +4 -0
  72. package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +2 -0
  73. package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +2 -0
  74. package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +2 -0
  75. package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +2 -0
  76. package/dist/chunks/cli-1.1.4-31av4ynk.mjs +2 -0
  77. package/dist/chunks/cli-1.1.4-3556r6d1.mjs +2 -0
  78. package/dist/chunks/cli-1.1.4-3d01w53d.mjs +2 -0
  79. package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +2 -0
  80. package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +2 -0
  81. package/dist/chunks/cli-1.1.4-40z19hth.mjs +2 -0
  82. package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +2 -0
  83. package/dist/chunks/cli-1.1.4-4esthaz8.mjs +21 -0
  84. package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +2 -0
  85. package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +3 -0
  86. package/dist/chunks/cli-1.1.4-4yte7brd.mjs +25 -0
  87. package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +2 -0
  88. package/dist/chunks/cli-1.1.4-53fvpymg.mjs +6 -0
  89. package/dist/chunks/cli-1.1.4-56nffz3p.mjs +17 -0
  90. package/dist/chunks/cli-1.1.4-5dc9c513.mjs +3 -0
  91. package/dist/chunks/cli-1.1.4-5ebh6981.mjs +2 -0
  92. package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.4-5hz878ns.mjs +2 -0
  94. package/dist/chunks/cli-1.1.4-64y9aspn.mjs +2 -0
  95. package/dist/chunks/cli-1.1.4-6c3fshef.mjs +202 -0
  96. package/dist/chunks/cli-1.1.4-6c5tryej.mjs +2 -0
  97. package/dist/chunks/cli-1.1.4-6eacj91j.mjs +2 -0
  98. package/dist/chunks/cli-1.1.4-6f472s2j.mjs +2 -0
  99. package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +2 -0
  100. package/dist/chunks/cli-1.1.4-6raycx0k.mjs +2 -0
  101. package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +2 -0
  102. package/dist/chunks/cli-1.1.4-6z69geef.mjs +5649 -0
  103. package/dist/chunks/cli-1.1.4-788c63fn.mjs +7 -0
  104. package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +4 -0
  105. package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +2 -0
  106. package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +2 -0
  107. package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +2 -0
  108. package/dist/chunks/cli-1.1.4-8kx358k9.mjs +2 -0
  109. package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +4 -0
  110. package/dist/chunks/cli-1.1.4-99ept1n4.mjs +2 -0
  111. package/dist/chunks/cli-1.1.4-9cw2608s.mjs +2 -0
  112. package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +2 -0
  113. package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +2 -0
  114. package/dist/chunks/cli-1.1.4-9x9a885k.mjs +17 -0
  115. package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +2 -0
  116. package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +24 -0
  117. package/dist/chunks/cli-1.1.4-axp071a4.mjs +2 -0
  118. package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +1 -0
  119. package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +2 -0
  120. package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +2 -0
  121. package/dist/chunks/cli-1.1.4-bxd06hws.mjs +2 -0
  122. package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +2 -0
  123. package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +2 -0
  124. package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +2 -0
  125. package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +2 -0
  126. package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +2 -0
  127. package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +6 -0
  128. package/dist/chunks/cli-1.1.4-cp707f4g.mjs +2 -0
  129. package/dist/chunks/cli-1.1.4-cst0a515.mjs +3 -0
  130. package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +2 -0
  131. package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +2 -0
  132. package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +2 -0
  133. package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +2 -0
  134. package/dist/chunks/cli-1.1.4-da50kprz.mjs +2 -0
  135. package/dist/chunks/cli-1.1.4-dapq2czd.mjs +3 -0
  136. package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +3 -0
  137. package/dist/chunks/cli-1.1.4-dwez6b01.mjs +2 -0
  138. package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +4 -0
  139. package/dist/chunks/cli-1.1.4-edegax48.mjs +2 -0
  140. package/dist/chunks/cli-1.1.4-ekbns70t.mjs +2 -0
  141. package/dist/chunks/cli-1.1.4-esw78wsd.mjs +2 -0
  142. package/dist/chunks/cli-1.1.4-etajychz.mjs +2 -0
  143. package/dist/chunks/cli-1.1.4-evye603x.mjs +5 -0
  144. package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +24 -0
  145. package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +2 -0
  146. package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +2 -0
  147. package/dist/chunks/cli-1.1.4-fa18654s.mjs +2 -0
  148. package/dist/chunks/cli-1.1.4-fap2565a.mjs +15 -0
  149. package/dist/chunks/cli-1.1.4-fejb0548.mjs +2 -0
  150. package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +133 -0
  151. package/dist/chunks/cli-1.1.4-fk420f57.mjs +16 -0
  152. package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +9 -0
  153. package/dist/chunks/cli-1.1.4-g6nryz17.mjs +2 -0
  154. package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +2 -0
  155. package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +2 -0
  156. package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +2 -0
  157. package/dist/chunks/cli-1.1.4-gey397p1.mjs +2 -0
  158. package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +2 -0
  159. package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +20 -0
  160. package/dist/chunks/cli-1.1.4-gpskbg68.mjs +2 -0
  161. package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +18 -0
  162. package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +12 -0
  163. package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +58 -0
  164. package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +2 -0
  165. package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +2 -0
  166. package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +25 -0
  167. package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +2 -0
  168. package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +12 -0
  169. package/dist/chunks/cli-1.1.4-hzx821eq.mjs +4 -0
  170. package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +2 -0
  171. package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +2 -0
  172. package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +2 -0
  173. package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +2 -0
  174. package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +2 -0
  175. package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +24 -0
  176. package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +2 -0
  177. package/dist/chunks/cli-1.1.4-jscqx4px.mjs +2 -0
  178. package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +9 -0
  179. package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +2 -0
  180. package/dist/chunks/cli-1.1.4-kcm529kx.mjs +2 -0
  181. package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +2 -0
  182. package/dist/chunks/cli-1.1.4-m312ygm6.mjs +2 -0
  183. package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +2 -0
  184. package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +2 -0
  185. package/dist/chunks/cli-1.1.4-memqhcjv.mjs +2 -0
  186. package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +50 -0
  187. package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +2 -0
  188. package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +2 -0
  189. package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +3 -0
  190. package/dist/chunks/cli-1.1.4-my1g33fn.mjs +3 -0
  191. package/dist/chunks/cli-1.1.4-mzzr964a.mjs +67 -0
  192. package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +2 -0
  193. package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +2 -0
  194. package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +59 -0
  195. package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +5 -0
  196. package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +2 -0
  197. package/dist/chunks/cli-1.1.4-p2223zcm.mjs +2 -0
  198. package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +6 -0
  199. package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +2 -0
  200. package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +8 -0
  201. package/dist/chunks/cli-1.1.4-phjb22vy.mjs +2 -0
  202. package/dist/chunks/cli-1.1.4-phv78vpk.mjs +2 -0
  203. package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +15 -0
  204. package/dist/chunks/cli-1.1.4-q0acv376.mjs +3 -0
  205. package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +2 -0
  206. package/dist/chunks/cli-1.1.4-qe35eyha.mjs +6 -0
  207. package/dist/chunks/cli-1.1.4-qecgken2.mjs +2 -0
  208. package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +2 -0
  209. package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +2 -0
  210. package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +4 -0
  211. package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +2 -0
  212. package/dist/chunks/cli-1.1.4-rhexcyth.mjs +2 -0
  213. package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +42 -0
  214. package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +2 -0
  215. package/dist/chunks/cli-1.1.4-rv3se129.mjs +2 -0
  216. package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +2 -0
  217. package/dist/chunks/cli-1.1.4-s26ny46b.mjs +4 -0
  218. package/dist/chunks/cli-1.1.4-scm26s6m.mjs +34 -0
  219. package/dist/chunks/cli-1.1.4-shrznr3s.mjs +2 -0
  220. package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +6 -0
  221. package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +4 -0
  222. package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +2 -0
  223. package/dist/chunks/cli-1.1.4-te2372tc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +2 -0
  225. package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +2 -0
  226. package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +2 -0
  227. package/dist/chunks/cli-1.1.4-v85q5z49.mjs +3 -0
  228. package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +4 -0
  229. package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +2 -0
  230. package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +2 -0
  231. package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +2 -0
  232. package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +39 -0
  234. package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +4 -0
  235. package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +2 -0
  236. package/dist/chunks/cli-1.1.4-vye1xark.mjs +2 -0
  237. package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +2 -0
  238. package/dist/chunks/cli-1.1.4-w11nd4na.mjs +2 -0
  239. package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +2 -0
  240. package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +2 -0
  242. package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +2 -0
  243. package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +4 -0
  244. package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +3 -0
  245. package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +2 -0
  246. package/dist/chunks/cli-1.1.4-x8m7spde.mjs +2 -0
  247. package/dist/chunks/cli-1.1.4-x90d3r95.mjs +2 -0
  248. package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +45 -0
  249. package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +2 -0
  250. package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +2 -0
  251. package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +2 -0
  252. package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +2 -0
  253. package/dist/chunks/cli-1.1.4-yprszvr2.mjs +2 -0
  254. package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +2 -0
  255. package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +2 -0
  256. package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +12 -0
  257. package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +15 -0
  258. package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +2 -0
  259. package/dist/chunks/cli-1.1.4-zc29khqe.mjs +3 -0
  260. package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +3 -0
  261. package/dist/chunks/client-1.1.4-pb5ebapt.mjs +1 -0
  262. package/dist/chunks/color-1.1.4-f1seyygj.mjs +1 -0
  263. package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +3 -0
  264. package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +1 -0
  265. package/dist/chunks/config-1.1.4-jb46a3qp.mjs +1 -0
  266. package/dist/chunks/constants-1.1.4-cspjb06k.mjs +1 -0
  267. package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +1 -0
  268. package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +1 -0
  269. package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +1 -0
  270. package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +1 -0
  271. package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +9 -0
  272. package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +1 -0
  273. package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +1 -0
  274. package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +1 -0
  275. package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +1 -0
  276. package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +1446 -0
  277. package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +1 -0
  278. package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +1 -0
  279. package/dist/chunks/detection-1.1.4-knvchyz7.mjs +1 -0
  280. package/dist/chunks/diff-1.1.4-9k603anv.mjs +1 -0
  281. package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +1 -0
  282. package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +1 -0
  283. package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +1 -0
  284. package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +13 -0
  285. package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +1 -0
  286. package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +1 -0
  287. package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +1 -0
  288. package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +1 -0
  289. package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +1 -0
  290. package/dist/chunks/errors-1.1.4-k81rbfst.mjs +1 -0
  291. package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +1 -0
  292. package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +1 -0
  293. package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +1 -0
  294. package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +1 -0
  295. package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +2 -0
  296. package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +1 -0
  297. package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +1 -0
  298. package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +1 -0
  299. package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +14 -0
  300. package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +1 -0
  301. package/dist/chunks/git-1.1.4-ress16mq.mjs +1 -0
  302. package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +1 -0
  303. package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +4 -0
  304. package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +1 -0
  305. package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +1 -0
  306. package/dist/chunks/headless-1.1.4-833q6qkz.mjs +2 -0
  307. package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +6 -0
  308. package/dist/chunks/help-1.1.4-35bcy608.mjs +1 -0
  309. package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +3 -0
  310. package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +1 -0
  311. package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +79 -0
  312. package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +3 -0
  313. package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +1 -0
  314. package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +1 -0
  315. package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +1 -0
  316. package/dist/chunks/index-1.1.4-0tamkcjt.mjs +1 -0
  317. package/dist/chunks/index-1.1.4-2czk0cj2.mjs +2 -0
  318. package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +1 -0
  319. package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +1 -0
  320. package/dist/chunks/index-1.1.4-6gmnecfx.mjs +1 -0
  321. package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +1 -0
  322. package/dist/chunks/index-1.1.4-9yayje25.mjs +1 -0
  323. package/dist/chunks/index-1.1.4-ekp3k254.mjs +1 -0
  324. package/dist/chunks/index-1.1.4-g4bsry7f.mjs +1 -0
  325. package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +1 -0
  326. package/dist/chunks/index-1.1.4-jk66219f.mjs +30 -0
  327. package/dist/chunks/index-1.1.4-m5859ars.mjs +5 -0
  328. package/dist/chunks/index-1.1.4-m5kxdznq.mjs +1 -0
  329. package/dist/chunks/index-1.1.4-mr07jhdc.mjs +1 -0
  330. package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +17 -0
  331. package/dist/chunks/index-1.1.4-nx0c7851.mjs +9 -0
  332. package/dist/chunks/index-1.1.4-p4az8jd4.mjs +9 -0
  333. package/dist/chunks/index-1.1.4-s48qa1fv.mjs +1 -0
  334. package/dist/chunks/index-1.1.4-svjv72c1.mjs +1 -0
  335. package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +1 -0
  336. package/dist/chunks/index-1.1.4-v1z11db7.mjs +1 -0
  337. package/dist/chunks/index-1.1.4-wkgybs2k.mjs +2 -0
  338. package/dist/chunks/init-1.1.4-gggf2npg.mjs +1 -0
  339. package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +1 -0
  340. package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +1 -0
  341. package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +870 -0
  342. package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +1 -0
  343. package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +149 -0
  344. package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +1 -0
  345. package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +1 -0
  346. package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +1 -0
  347. package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +2 -0
  348. package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +2 -0
  349. package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +1 -0
  350. package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +1 -0
  351. package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +1 -0
  352. package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +1 -0
  353. package/dist/chunks/log-1.1.4-2xexxfy0.mjs +1 -0
  354. package/dist/chunks/main-1.1.4-wapb45da.mjs +1 -0
  355. package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +1 -0
  356. package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +4 -0
  358. package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +17 -0
  359. package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +1 -0
  360. package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +72 -0
  361. package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +2 -0
  362. package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +1 -0
  363. package/dist/chunks/node-1.1.4-zfc18psp.mjs +12 -0
  364. package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +1 -0
  365. package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +14 -0
  366. package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +1 -0
  367. package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +1 -0
  368. package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +1 -0
  369. package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +1 -0
  370. package/dist/chunks/passes-1.1.4-fps8mejy.mjs +1 -0
  371. package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +3 -0
  372. package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +1 -0
  373. package/dist/chunks/plan-1.1.4-66evqh4y.mjs +1 -0
  374. package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +1 -0
  375. package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +29 -0
  376. package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +1 -0
  377. package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +9 -0
  378. package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +2 -0
  379. package/dist/chunks/print-1.1.4-fxrwvp78.mjs +57 -0
  380. package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +1 -0
  381. package/dist/chunks/process-1.1.4-pjq03ry2.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.4-26y972y6.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +13 -0
  388. package/dist/chunks/provider-1.1.4-g97havfk.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +34 -0
  393. package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +1 -0
  399. package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +1 -0
  402. package/dist/chunks/resume-1.1.4-3qy136p1.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +1 -0
  408. package/dist/chunks/session-1.1.4-5504ewv9.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +1 -0
  412. package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +1 -0
  413. package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +1 -0
  415. package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +1 -0
  418. package/dist/chunks/state-1.1.4-rm5651xg.mjs +1 -0
  419. package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +6 -0
  420. package/dist/chunks/status-1.1.4-v47t86mv.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +1 -0
  428. package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +1 -0
  433. package/dist/chunks/tools-1.1.4-g181kv47.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +69 -0
  436. package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +4 -0
  438. package/dist/chunks/update-1.1.4-z8g0pneq.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +1 -0
  440. package/dist/chunks/upload-1.1.4-2av9969z.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +1 -0
  443. package/dist/chunks/usage-1.1.4-wc38b22t.mjs +1 -0
  444. package/dist/chunks/util-1.1.4-re2ggpra.mjs +1 -0
  445. package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +1 -0
  446. package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/package.json +9 -9
  456. package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +0 -1
  457. package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +0 -1
  458. package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +0 -1
  459. package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +0 -1
  460. package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +0 -1
  461. package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +0 -1
  462. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +0 -1
  463. package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +0 -1
  464. package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +0 -7
  465. package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +0 -1
  466. package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +0 -6
  467. package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +0 -1
  468. package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +0 -1
  469. package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +0 -1
  470. package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +0 -1
  471. package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +0 -1
  472. package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +0 -1
  473. package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +0 -1
  474. package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +0 -1
  475. package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +0 -1
  476. package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +0 -1
  477. package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +0 -1
  478. package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +0 -1
  479. package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +0 -1
  480. package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +0 -9
  481. package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +0 -1
  482. package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +0 -1
  483. package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +0 -1
  484. package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +0 -1
  485. package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +0 -1
  486. package/dist/chunks/agents-1.1.2-n6dejn00.mjs +0 -3
  487. package/dist/chunks/agents-1.1.2-rxkey856.mjs +0 -110
  488. package/dist/chunks/api-1.1.2-fpd74byc.mjs +0 -1
  489. package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +0 -1
  490. package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +0 -1
  491. package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +0 -1
  492. package/dist/chunks/auth-1.1.2-s45hhsck.mjs +0 -1
  493. package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +0 -48
  494. package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +0 -1
  495. package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +0 -1
  496. package/dist/chunks/branch-1.1.2-exyc66rb.mjs +0 -4
  497. package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +0 -2
  498. package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +0 -1
  499. package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +0 -1
  500. package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +0 -88
  501. package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +0 -1
  502. package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +0 -1
  503. package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +0 -3
  504. package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +0 -1
  505. package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +0 -21
  506. package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +0 -4
  507. package/dist/chunks/caches-1.1.2-s4tektt8.mjs +0 -1
  508. package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +0 -1
  509. package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +0 -1
  510. package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +0 -1
  511. package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +0 -1
  512. package/dist/chunks/cli-1.1.2-00hggnnf.mjs +0 -9
  513. package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +0 -2
  514. package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +0 -2
  515. package/dist/chunks/cli-1.1.2-0q8k3447.mjs +0 -2
  516. package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +0 -2
  517. package/dist/chunks/cli-1.1.2-12xajsdg.mjs +0 -2
  518. package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +0 -2
  519. package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +0 -2
  520. package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +0 -133
  521. package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +0 -2
  522. package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +0 -2
  523. package/dist/chunks/cli-1.1.2-22w1aakd.mjs +0 -17
  524. package/dist/chunks/cli-1.1.2-26xrf159.mjs +0 -2
  525. package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +0 -25
  526. package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +0 -3
  527. package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +0 -4
  528. package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +0 -2
  529. package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +0 -15
  530. package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +0 -3
  531. package/dist/chunks/cli-1.1.2-312r29db.mjs +0 -2
  532. package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +0 -2
  533. package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +0 -24
  534. package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +0 -2
  535. package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +0 -2
  536. package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +0 -2
  537. package/dist/chunks/cli-1.1.2-3vhc8676.mjs +0 -2
  538. package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +0 -2
  539. package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +0 -2
  540. package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +0 -2
  541. package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +0 -2
  542. package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +0 -6
  543. package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +0 -67
  544. package/dist/chunks/cli-1.1.2-51pdt76x.mjs +0 -2
  545. package/dist/chunks/cli-1.1.2-526csky8.mjs +0 -2
  546. package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +0 -12
  547. package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +0 -25
  548. package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +0 -2
  549. package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +0 -2
  550. package/dist/chunks/cli-1.1.2-61nmeckv.mjs +0 -4
  551. package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +0 -2
  552. package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +0 -2
  553. package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +0 -5638
  554. package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +0 -18
  556. package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +0 -7
  557. package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +0 -2
  558. package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +0 -2
  559. package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +0 -2
  560. package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +0 -2
  561. package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +0 -2
  562. package/dist/chunks/cli-1.1.2-7swa79jc.mjs +0 -24
  563. package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +0 -20
  564. package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +0 -2
  565. package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.2-8trsbckp.mjs +0 -2
  567. package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +0 -3
  568. package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +0 -2
  569. package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +0 -2
  570. package/dist/chunks/cli-1.1.2-99rcxvch.mjs +0 -2
  571. package/dist/chunks/cli-1.1.2-9ash84j3.mjs +0 -2
  572. package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +0 -2
  573. package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +0 -2
  574. package/dist/chunks/cli-1.1.2-a69xymn7.mjs +0 -2
  575. package/dist/chunks/cli-1.1.2-a9n9p929.mjs +0 -2
  576. package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +0 -2
  577. package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +0 -4
  578. package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +0 -2
  579. package/dist/chunks/cli-1.1.2-ax711ayq.mjs +0 -2
  580. package/dist/chunks/cli-1.1.2-b850wzhk.mjs +0 -2
  581. package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +0 -21
  582. package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +0 -4
  583. package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +0 -2
  584. package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +0 -2
  585. package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +0 -2
  586. package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +0 -4
  587. package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +0 -2
  588. package/dist/chunks/cli-1.1.2-dg1134n2.mjs +0 -2
  589. package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +0 -4
  590. package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +0 -2
  591. package/dist/chunks/cli-1.1.2-efe0402v.mjs +0 -2
  592. package/dist/chunks/cli-1.1.2-em7hye78.mjs +0 -4
  593. package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +0 -2
  594. package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +0 -2
  595. package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +0 -2
  596. package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +0 -16
  597. package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +0 -2
  598. package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +0 -2
  599. package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +0 -2
  600. package/dist/chunks/cli-1.1.2-fnp913tz.mjs +0 -2
  601. package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +0 -2
  602. package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +0 -15
  603. package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +0 -3
  604. package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +0 -2
  605. package/dist/chunks/cli-1.1.2-g3ms995y.mjs +0 -2
  606. package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +0 -24
  607. package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +0 -2
  608. package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +0 -2
  609. package/dist/chunks/cli-1.1.2-gdcv810d.mjs +0 -2
  610. package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +0 -2
  612. package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +0 -6
  613. package/dist/chunks/cli-1.1.2-gws9nr18.mjs +0 -9
  614. package/dist/chunks/cli-1.1.2-gxzwceae.mjs +0 -2
  615. package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +0 -4
  616. package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +0 -2
  617. package/dist/chunks/cli-1.1.2-h9csstnw.mjs +0 -2
  618. package/dist/chunks/cli-1.1.2-hpx774ph.mjs +0 -3
  619. package/dist/chunks/cli-1.1.2-hzaqg545.mjs +0 -17
  620. package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +0 -2
  621. package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +0 -59
  622. package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +0 -2
  623. package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +0 -3
  624. package/dist/chunks/cli-1.1.2-jxkffay4.mjs +0 -2
  625. package/dist/chunks/cli-1.1.2-k077a0s0.mjs +0 -2
  626. package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +0 -2
  627. package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +0 -2
  628. package/dist/chunks/cli-1.1.2-k61a86d8.mjs +0 -3
  629. package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +0 -2
  630. package/dist/chunks/cli-1.1.2-kav702qr.mjs +0 -2
  631. package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +0 -2
  632. package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +0 -3
  633. package/dist/chunks/cli-1.1.2-kq402xqd.mjs +0 -2
  634. package/dist/chunks/cli-1.1.2-m0529q09.mjs +0 -45
  635. package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +0 -18
  636. package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +0 -2
  637. package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +0 -2
  638. package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +0 -2
  639. package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +0 -12
  640. package/dist/chunks/cli-1.1.2-mr55880g.mjs +0 -2
  641. package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +0 -2
  642. package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +0 -2
  643. package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +0 -2
  644. package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +0 -2
  645. package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +0 -5
  646. package/dist/chunks/cli-1.1.2-p8amxd73.mjs +0 -4
  647. package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +0 -2
  648. package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +0 -2
  649. package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +0 -2
  650. package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +0 -2
  651. package/dist/chunks/cli-1.1.2-qm56km1n.mjs +0 -4
  652. package/dist/chunks/cli-1.1.2-qxjs641v.mjs +0 -2
  653. package/dist/chunks/cli-1.1.2-r32per66.mjs +0 -2
  654. package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +0 -2
  655. package/dist/chunks/cli-1.1.2-re4qc97z.mjs +0 -6
  656. package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +0 -2
  657. package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +0 -2
  658. package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +0 -8
  659. package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +0 -15
  660. package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +0 -2
  661. package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +0 -2
  662. package/dist/chunks/cli-1.1.2-s6et33a5.mjs +0 -2
  663. package/dist/chunks/cli-1.1.2-s76jqr70.mjs +0 -2
  664. package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +0 -2
  665. package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +0 -34
  666. package/dist/chunks/cli-1.1.2-se3yz188.mjs +0 -2
  667. package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +0 -2
  668. package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +0 -133
  669. package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +0 -2
  670. package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +0 -2
  671. package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +0 -2
  672. package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +0 -2
  673. package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +0 -12
  674. package/dist/chunks/cli-1.1.2-tkr9thek.mjs +0 -6
  675. package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +0 -2
  676. package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +0 -2
  677. package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +0 -2
  678. package/dist/chunks/cli-1.1.2-v5aq687d.mjs +0 -4
  679. package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +0 -2
  680. package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +0 -3
  681. package/dist/chunks/cli-1.1.2-vedfryrw.mjs +0 -39
  682. package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +0 -2
  683. package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +0 -2
  684. package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +0 -2
  685. package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +0 -5
  686. package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +0 -2
  687. package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +0 -2
  688. package/dist/chunks/cli-1.1.2-wfh9694n.mjs +0 -42
  689. package/dist/chunks/cli-1.1.2-whyrn26g.mjs +0 -2
  690. package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +0 -2
  691. package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +0 -2
  692. package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +0 -58
  693. package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +0 -3
  694. package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +0 -50
  695. package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +0 -2
  696. package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +0 -2
  697. package/dist/chunks/cli-1.1.2-xrfe457w.mjs +0 -2
  698. package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +0 -2
  699. package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +0 -12
  700. package/dist/chunks/cli-1.1.2-yajs5n37.mjs +0 -18
  701. package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +0 -2
  702. package/dist/chunks/cli-1.1.2-yj8m159m.mjs +0 -2
  703. package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +0 -2
  704. package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +0 -202
  705. package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +0 -3
  706. package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +0 -2
  707. package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +0 -1
  708. package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +0 -2
  709. package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +0 -2
  710. package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +0 -6
  711. package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +0 -3
  712. package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +0 -2
  713. package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +0 -2
  714. package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +0 -2
  715. package/dist/chunks/client-1.1.2-cfb4as3w.mjs +0 -1
  716. package/dist/chunks/color-1.1.2-1sf55h7k.mjs +0 -1
  717. package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +0 -3
  718. package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +0 -1
  719. package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +0 -1
  720. package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +0 -1
  721. package/dist/chunks/context-1.1.2-rw4msk80.mjs +0 -1
  722. package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +0 -1
  723. package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +0 -1
  724. package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +0 -1
  725. package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +0 -9
  726. package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +0 -1
  727. package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +0 -1
  728. package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +0 -1
  729. package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +0 -1
  730. package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +0 -1446
  731. package/dist/chunks/desktop-1.1.2-egp65wej.mjs +0 -1
  732. package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +0 -1
  733. package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +0 -1
  734. package/dist/chunks/diff-1.1.2-29snp7ez.mjs +0 -1
  735. package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +0 -1
  736. package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +0 -1
  737. package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +0 -1
  738. package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +0 -13
  739. package/dist/chunks/engine-1.1.2-071c5ycx.mjs +0 -1
  740. package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +0 -1
  741. package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +0 -1
  742. package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +0 -1
  743. package/dist/chunks/environments-1.1.2-e0a09brc.mjs +0 -1
  744. package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +0 -1
  745. package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +0 -1
  746. package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +0 -1
  747. package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +0 -1
  748. package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +0 -1
  749. package/dist/chunks/export-1.1.2-2m0sfme0.mjs +0 -2
  750. package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +0 -1
  751. package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +0 -1
  752. package/dist/chunks/fast-1.1.2-43wzezv3.mjs +0 -1
  753. package/dist/chunks/feedback-1.1.2-92k099e0.mjs +0 -14
  754. package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +0 -1
  755. package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +0 -1
  756. package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +0 -1
  757. package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +0 -4
  758. package/dist/chunks/grove-1.1.2-74zq9th4.mjs +0 -1
  759. package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +0 -1
  760. package/dist/chunks/headless-1.1.2-rhab73x2.mjs +0 -2
  761. package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +0 -6
  762. package/dist/chunks/help-1.1.2-er6xvvy0.mjs +0 -1
  763. package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +0 -3
  764. package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +0 -79
  765. package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +0 -1
  766. package/dist/chunks/ide-1.1.2-je812srr.mjs +0 -3
  767. package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +0 -1
  768. package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +0 -1
  769. package/dist/chunks/index-1.1.2-3evh58r7.mjs +0 -1
  770. package/dist/chunks/index-1.1.2-69bhefzj.mjs +0 -1
  771. package/dist/chunks/index-1.1.2-7kya3jrk.mjs +0 -1
  772. package/dist/chunks/index-1.1.2-7sphewt0.mjs +0 -5
  773. package/dist/chunks/index-1.1.2-947wna4y.mjs +0 -1
  774. package/dist/chunks/index-1.1.2-95c20hmc.mjs +0 -1
  775. package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +0 -1
  776. package/dist/chunks/index-1.1.2-bvpaf73z.mjs +0 -2
  777. package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +0 -1
  778. package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +0 -9
  779. package/dist/chunks/index-1.1.2-htmnqkfh.mjs +0 -1
  780. package/dist/chunks/index-1.1.2-kdaazhrb.mjs +0 -1
  781. package/dist/chunks/index-1.1.2-kzzb5289.mjs +0 -1
  782. package/dist/chunks/index-1.1.2-madt9yt1.mjs +0 -1
  783. package/dist/chunks/index-1.1.2-mvhaw48f.mjs +0 -2
  784. package/dist/chunks/index-1.1.2-pzx0977r.mjs +0 -1
  785. package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +0 -1
  786. package/dist/chunks/index-1.1.2-s1rqf88d.mjs +0 -1
  787. package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +0 -1
  788. package/dist/chunks/index-1.1.2-thaazk19.mjs +0 -17
  789. package/dist/chunks/index-1.1.2-wey7e6ag.mjs +0 -30
  790. package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +0 -1
  791. package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +0 -9
  792. package/dist/chunks/init-1.1.2-85zbvgkj.mjs +0 -1
  793. package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +0 -1
  794. package/dist/chunks/ink-1.1.2-dqpj9964.mjs +0 -1
  795. package/dist/chunks/insights-1.1.2-y73zf53m.mjs +0 -870
  796. package/dist/chunks/install-1.1.2-89hhj53e.mjs +0 -1
  797. package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +0 -149
  798. package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +0 -1
  799. package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +0 -1
  800. package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +0 -1
  801. package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +0 -2
  802. package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +0 -2
  803. package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +0 -1
  804. package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +0 -1
  805. package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +0 -1
  806. package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +0 -1
  807. package/dist/chunks/log-1.1.2-8cc3djq5.mjs +0 -1
  808. package/dist/chunks/main-1.1.2-th8b6kt4.mjs +0 -1
  809. package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +0 -1
  810. package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +0 -1
  811. package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +0 -17
  812. package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +0 -4
  813. package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +0 -1
  814. package/dist/chunks/memory-1.1.2-habj4cwz.mjs +0 -72
  815. package/dist/chunks/model-1.1.2-vdjmatpe.mjs +0 -1
  816. package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +0 -2
  817. package/dist/chunks/node-1.1.2-msn09mvf.mjs +0 -12
  818. package/dist/chunks/oauth-1.1.2-95md8es8.mjs +0 -1
  819. package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +0 -14
  820. package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +0 -1
  821. package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +0 -1
  822. package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +0 -1
  823. package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +0 -1
  824. package/dist/chunks/passes-1.1.2-z98me43k.mjs +0 -1
  825. package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +0 -3
  826. package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +0 -1
  827. package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +0 -1
  828. package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +0 -1
  829. package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +0 -29
  830. package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +0 -1
  831. package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +0 -9
  832. package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +0 -2
  833. package/dist/chunks/print-1.1.2-9xz8kk84.mjs +0 -57
  834. package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +0 -1
  835. package/dist/chunks/process-1.1.2-4ha9kngp.mjs +0 -1
  836. package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +0 -1
  837. package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +0 -9
  838. package/dist/chunks/prompt-1.1.2-exabd70s.mjs +0 -1
  839. package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +0 -1
  840. package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +0 -1
  841. package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +0 -13
  842. package/dist/chunks/provider-1.1.2-q784s7t1.mjs +0 -2
  843. package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +0 -1
  844. package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +0 -6
  845. package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +0 -1
  846. package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +0 -34
  847. package/dist/chunks/registry-1.1.2-bteqae43.mjs +0 -1
  848. package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +0 -5
  849. package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +0 -2
  850. package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +0 -1
  851. package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +0 -1
  852. package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +0 -1
  853. package/dist/chunks/rename-1.1.2-99a39m1m.mjs +0 -1
  854. package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +0 -1
  855. package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +0 -1
  856. package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +0 -2
  857. package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +0 -1
  858. package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +0 -1
  859. package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +0 -10
  860. package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +0 -1
  861. package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +0 -1
  862. package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +0 -2
  863. package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +0 -1
  864. package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +0 -1
  865. package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +0 -1
  866. package/dist/chunks/settings-1.1.2-nf07eg97.mjs +0 -1
  867. package/dist/chunks/setup-1.1.2-5f344krn.mjs +0 -5
  868. package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +0 -1
  869. package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +0 -1
  870. package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +0 -1
  871. package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +0 -1
  872. package/dist/chunks/state-1.1.2-4stfxgxw.mjs +0 -1
  873. package/dist/chunks/stats-1.1.2-x2men93c.mjs +0 -6
  874. package/dist/chunks/status-1.1.2-k6342tq7.mjs +0 -1
  875. package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +0 -1
  876. package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +0 -1
  877. package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +0 -1
  878. package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +0 -1
  879. package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +0 -1
  880. package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +0 -1
  881. package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +0 -1
  882. package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +0 -1
  883. package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +0 -1
  884. package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +0 -1
  885. package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +0 -1
  886. package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +0 -1
  887. package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +0 -1
  888. package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +0 -1
  889. package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +0 -69
  890. package/dist/chunks/types-1.1.2-vst16v9y.mjs +0 -1
  891. package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +0 -4
  892. package/dist/chunks/update-1.1.2-7daxbkja.mjs +0 -72
  893. package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +0 -1
  894. package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +0 -7
  895. package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +0 -14
  896. package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +0 -1
  897. package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +0 -1
  898. package/dist/chunks/util-1.1.2-790z163z.mjs +0 -1
  899. package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +0 -1
  900. package/dist/chunks/vim-1.1.2-c8e520z8.mjs +0 -1
  901. package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +0 -13
  902. package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +0 -1
  903. package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +0 -132
  904. package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +0 -1
  905. package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +0 -1
  906. package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +0 -1
  907. package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +0 -7
  908. /package/dist/chunks/{cli-1.1.2-8t8veykp.mjs → cli-1.1.4-1f3p70jj.mjs} +0 -0
  909. /package/dist/chunks/{cli-1.1.2-3vyt3jw9.mjs → cli-1.1.4-ez4xtmvg.mjs} +0 -0
  910. /package/dist/chunks/{cli-1.1.2-6jbsqbdw.mjs → cli-1.1.4-gp99zrz4.mjs} +0 -0
  911. /package/dist/chunks/{cli-1.1.2-btgmqahb.mjs → cli-1.1.4-gpvz5jfv.mjs} +0 -0
  912. /package/dist/chunks/{cli-1.1.2-6d3jf0sj.mjs → cli-1.1.4-n0dzwv49.mjs} +0 -0
  913. /package/dist/chunks/{cli-1.1.2-r4rfggdk.mjs → cli-1.1.4-q1mcaeav.mjs} +0 -0
  914. /package/dist/chunks/{cli-1.1.2-pgz05ddc.mjs → cli-1.1.4-tg5t7jrb.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{$qa as YJ,_qa as _Q,ara as v,bra as P1,cra as Y5,dra as w8,era as D,fra as y,gra as m,hra as kQ,ira as L,jra as a,kra as n5,lra as e8,mra as R5,nra as _8,ora as E,pra as h8,qra as P,rra as x1,sra as d,tra as xQ,ura as r,vra as UQ,wra as T5,xra as UY}from"./cli-1.1.4-x8m7spde.mjs";import{Hsa as aQ,Isa as X}from"./cli-1.1.4-xxe2ztwq.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var DQ;var qQ=X(()=>{DQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!DQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();qQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=m?m.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var mQ;var SQ=X(()=>{mQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{SQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),mQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();S();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();S();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,mJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?D.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,mJ=yJ||cQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var D5;var q5=X(()=>{_8();J1();D5=k8});function E8(Q){return D5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();q5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var S1;var O5=X(()=>{yQ();bQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var m8,U1;var L5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var f5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var P5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,m5;var S5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;m5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return m5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{S5();S();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();m1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=m?m.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var q1;var b1=X(()=>{M();D1();s5();X$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();D1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var D$;var q$=X(()=>{D$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?D$(I(Q)):O$(Q)}var M$;var L$=X(()=>{q$();V$();D1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as mY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=mY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else s1=!0}function l9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function r9(){return $.totalLinesRemoved}function o9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-a1}function QH(){return t1}function $H(Q){a1=A$(),t1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function rH(){return $.isInteractive}function oH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,E$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function r4(){return $.sessionTrustAccepted}function o4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function r3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function o3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
+ export{p as vla,I1 as wla,FQ as xla,RQ as yla,OQ as zla,VQ as Ala,_1 as Bla,MQ as Cla,PQ as Dla,IQ as Ela,dQ as Fla,gQ as Gla,w as Hla,M as Ila,pQ as Jla,yQ as Kla,mQ as Lla,SQ as Mla,AQ as Nla,jQ as Ola,nQ as Pla,bQ as Qla,O as Rla,S as Sla,t as Tla,v1 as Ula,A as Vla,d1 as Wla,$1 as Xla,g1 as Yla,$5 as Zla,J5 as _la,X1 as $la,X5 as ama,H1 as bma,y1 as cma,W5 as dma,x5 as ema,U5 as fma,K5 as gma,G5 as hma,B5 as ima,D5 as jma,q5 as kma,W1 as lma,m1 as mma,S1 as nma,O5 as oma,G1 as pma,P5 as qma,A1 as rma,d5 as sma,w1 as tma,j1 as uma,h as vma,R1 as wma,a5 as xma,t5 as yma,Z$ as zma,X$ as Ama,q1 as Bma,b1 as Cma,I as Dma,u as Ema,O1 as Fma,i1 as Gma,F$ as Hma,R$ as Ima,f$ as Jma,P$ as Kma,nX as Lma,bX as Mma,iX as Nma,uX as Oma,lX as Pma,TX as Qma,E$ as Rma,cX as Sma,rX as Tma,oX as Uma,v$ as Vma,d$ as Wma,g$ as Xma,Z9 as Yma,X9 as Zma,H9 as _ma,W9 as $ma,x9 as ana,U9 as bna,K9 as cna,G9 as dna,B9 as ena,N9 as fna,w9 as gna,z9 as hna,F9 as ina,R9 as jna,D9 as kna,q9 as lna,O9 as mna,V9 as nna,M9 as ona,L9 as pna,f9 as qna,P9 as rna,I9 as sna,C9 as tna,_9 as una,k9 as vna,E9 as wna,v9 as xna,d9 as yna,g9 as zna,p9 as Ana,y9 as Bna,m9 as Cna,S9 as Dna,A9 as Ena,j9 as Fna,h9 as Gna,n9 as Hna,b9 as Ina,i9 as Jna,u9 as Kna,l9 as Lna,T9 as Mna,c9 as Nna,r9 as Ona,o9 as Pna,A$ as Qna,s9 as Rna,a9 as Sna,t9 as Tna,e9 as Una,QH as Vna,$H as Wna,JH as Xna,YH as Yna,ZH as Zna,XH as _na,HH as $na,WH as aoa,xH as boa,UH as coa,KH as doa,GH as eoa,BH as foa,NH as goa,wH as hoa,zH as ioa,FH as joa,RH as koa,DH as loa,qH as moa,OH as noa,VH as ooa,MH as poa,LH as qoa,fH as roa,PH as soa,IH as toa,CH as uoa,_H as voa,kH as woa,EH as xoa,vH as yoa,dH as zoa,gH as Aoa,pH as Boa,yH as Coa,mH as Doa,SH as Eoa,AH as Foa,jH as Goa,hH as Hoa,nH as Ioa,bH as Joa,iH as Koa,uH as Loa,lH as Moa,TH as Noa,cH as Ooa,SY as Poa,rH as Qoa,oH as Roa,sH as Soa,aH as Toa,tH as Uoa,eH as Voa,Q4 as Woa,$4 as Xoa,J4 as Yoa,Y4 as Zoa,Z4 as _oa,X4 as $oa,H4 as apa,W4 as bpa,x4 as cpa,U4 as dpa,K4 as epa,G4 as fpa,B4 as gpa,N4 as hpa,w4 as ipa,z4 as jpa,F4 as kpa,R4 as lpa,D4 as mpa,q4 as npa,O4 as opa,V4 as ppa,M4 as qpa,L4 as rpa,f4 as spa,P4 as tpa,I4 as upa,C4 as vpa,_4 as wpa,k4 as xpa,E4 as ypa,v4 as zpa,d4 as Apa,g4 as Bpa,p4 as Cpa,y4 as Dpa,m4 as Epa,S4 as Fpa,A4 as Gpa,j4 as Hpa,h4 as Ipa,n4 as Jpa,b4 as Kpa,i4 as Lpa,u4 as Mpa,l4 as Npa,T4 as Opa,c4 as Ppa,r4 as Qpa,o4 as Rpa,s4 as Spa,a4 as Tpa,t4 as Upa,e4 as Vpa,Q3 as Wpa,$3 as Xpa,J3 as Ypa,Y3 as Zpa,Z3 as _pa,X3 as $pa,H3 as aqa,W3 as bqa,x3 as cqa,U3 as dqa,K3 as eqa,G3 as fqa,B3 as gqa,N3 as hqa,w3 as iqa,z3 as jqa,F3 as kqa,R3 as lqa,D3 as mqa,q3 as nqa,O3 as oqa,V3 as pqa,M3 as qqa,L3 as rqa,f3 as sqa,P3 as tqa,I3 as uqa,C3 as vqa,_3 as wqa,k3 as xqa,E3 as yqa,v3 as zqa,d3 as Aqa,g3 as Bqa,p3 as Cqa,y3 as Dqa,m3 as Eqa,S3 as Fqa,A3 as Gqa,j3 as Hqa,h3 as Iqa,n3 as Jqa,b3 as Kqa,i3 as Lqa,u3 as Mqa,l3 as Nqa,T3 as Oqa,c3 as Pqa,r3 as Qqa,o3 as Rqa,s3 as Sqa,jY as Tqa,a3 as Uqa,t3 as Vqa,e3 as Wqa,QW as Xqa,$W as Yqa,hY as Zqa};
@@ -0,0 +1,2 @@
1
+ import{G3 as y,K3 as V}from"./cli-1.1.4-ss2jxen1.mjs";import{Fba as q,Hba as Q,U_ as p,W_ as K}from"./cli-1.1.4-6c3fshef.mjs";import{Isa as J}from"./cli-1.1.4-xxe2ztwq.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
+ export{j as u3,D as v3,P as w3,w as x3,E as y3,Y as z3,F as A3,G as B3,Z as C3};
@@ -0,0 +1,2 @@
1
+ import{Xs as I,_s as X}from"./cli-1.1.4-6z69geef.mjs";import{kla as H,ula as W}from"./cli-1.1.4-c7a7aezt.mjs";import{Isa as V}from"./cli-1.1.4-xxe2ztwq.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
2
+ export{q as Uc,F as Vc,K as Wc,Q as Xc,R as Yc,_ as Zc,j as _c,Y as $c};
@@ -0,0 +1,2 @@
1
+ import{TM as C,bN as N,kN as $,lN as k,rN as V}from"./cli-1.1.4-6z69geef.mjs";import{DZ as P,H1 as D,a1 as f,c1 as t,g1 as v}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as n,p4 as i,q4 as M}from"./cli-1.1.4-40z19hth.mjs";import{Esa as w,Isa as L}from"./cli-1.1.4-xxe2ztwq.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
2
+ export{J as Cg,z as Dg};
@@ -0,0 +1,2 @@
1
+ import{Isa as g}from"./cli-1.1.4-xxe2ztwq.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 mW,d as nW,$J as oW,DJ as pW,GJ as qW};
@@ -0,0 +1,2 @@
1
+ import{eo as M,fo as G,xG as A,zG as O}from"./cli-1.1.4-6z69geef.mjs";import{DZ as U,H1 as W,a1 as w,c1 as d,g1 as v}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as i,p4 as a,q4 as S}from"./cli-1.1.4-40z19hth.mjs";import{r4 as N}from"./cli-1.1.4-9ms3b4tc.mjs";import{cfa as I,qfa as P}from"./cli-1.1.4-6c3fshef.mjs";import{wja as h,zja as L}from"./cli-1.1.4-te2372tc.mjs";import{Esa as b,Isa as B}from"./cli-1.1.4-xxe2ztwq.mjs";function V(t){let e=T.c(18),{onDone:g,isStandaloneDialog:D,externalIncludes:r}=t,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect(q,s);let c;if(e[1]!==g)c=(E)=>{if(E==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),I($);else h("tengu_claude_md_external_includes_dialog_accepted",{}),I(Y);g()},e[1]=g,e[2]=c;else c=e[2];let l=c,u;if(e[3]!==l)u=()=>{l("no")},e[3]=l,e[4]=u;else u=e[4];let y=u,C=!D,x=!D,m;if(e[5]===Symbol.for("react.memo_cache_sentinel"))m=i(d,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),e[5]=m;else m=e[5];let o;if(e[6]!==r)o=r&&r.length>0&&a(w,{flexDirection:"column",children:[i(d,{dimColor:!0,children:"External imports:"}),r.map(R)]}),e[6]=r,e[7]=o;else o=e[7];let p;if(e[8]===Symbol.for("react.memo_cache_sentinel"))p=a(d,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",i(v,{url:"https://code.claude.com/docs/en/security"})," "]}),e[8]=p;else p=e[8];let f;if(e[9]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=f;else f=e[9];let n;if(e[10]!==l)n=i(A,{options:f,onChange:(E)=>l(E)}),e[10]=l,e[11]=n;else n=e[11];let _;if(e[12]!==y||e[13]!==n||e[14]!==C||e[15]!==x||e[16]!==o)_=a(M,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[m,o,p,n]}),e[12]=y,e[13]=n,e[14]=C,e[15]=x,e[16]=o,e[17]=_;else _=e[17];return _}function R(t,e){return a(d,{dimColor:!0,children:[" ",t.path]},e)}function Y(t){return{...t,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function $(t){return{...t,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function q(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k;var z=B(()=>{L();W();P();O();G();S();T=b(U(),1),k=b(N(),1)});
2
+ export{V as Qg,z as Rg};
@@ -0,0 +1,4 @@
1
+ import{Qg as rq,Rg as ZX}from"./cli-1.1.4-181vbtfh.mjs";import{Sg as sq,Tg as tq,Ug as tZ,Wg as QX}from"./cli-1.1.4-ck3xhtdn.mjs";import{Yg as tX}from"./cli-1.1.4-vye1xark.mjs";import{jh as sZ,kh as tY,lh as nq,mh as eY}from"./cli-1.1.4-ymrjsf78.mjs";import{nh as lq,oh as sY}from"./cli-1.1.4-6rkzmmby.mjs";import{ph as oq,qh as JX,rh as aq,sh as qX}from"./cli-1.1.4-8hr73xp2.mjs";import{th as WY,uh as DZ,wh as uq,xh as dq}from"./cli-1.1.4-ws4wcqma.mjs";import{Ui as YY,Vi as aX}from"./cli-1.1.4-tmrxfcjm.mjs";import{$n as c0,Ao as iY,Cm as QY,Dm as rX,Ij as gQ,JT as yY,Jv as PJ,Kv as _0,Lj as FJ,Mv as oX,Np as vq,Op as lY,Qj as jX,RI as cq,SI as rY,UT as qQ,Yn as L0,ZP as mQ,Zn as dY,Zy as sX,_n as T,ao as J0,bo as EZ,cQ as _X,cU as QQ,dU as YQ,eo as d0,fL as aZ,fo as gZ,gL as oY,hU as GX,iy as E0,jy as gq,kL as BZ,ky as mq,lL as sJ,lo as oZ,ly as TJ,mL as tJ,mT as iJ,nG as Qq,nL as eJ,oG as wY,pH as $J,po as _q,qH as bJ,rH as wJ,sH as jJ,tH as _J,uH as vJ,vH as gJ,vN as s0,wH as mJ,wN as YJ,xG as i0,xH as pJ,yG as TY,yH as xJ,ym as qY,zG as lJ,zH as AY,zm as nX}from"./cli-1.1.4-6z69geef.mjs";import{dV as pq,eV as xq,iV as nY}from"./cli-1.1.4-x6hb06sj.mjs";import{_W as iq,gX as aY}from"./cli-1.1.4-5dc9c513.mjs";import{BY as _,CY as jq,DY as l0,GY as VY,HY as qG,JY as u0,KY as TZ,MY as UZ,PY as KY,QY as QG,nY as A0,oY as XZ}from"./cli-1.1.4-k6ebhyp0.mjs";import{$Z as rZ,DZ as b0,G0 as wq,H1 as S0,MZ as x0,NZ as $q,SZ as hZ,UZ as lX,a0 as bq,a1 as B,c1 as K,e0 as uY,m1 as JY}from"./cli-1.1.4-nh3sscxn.mjs";import{n4 as H0,o4 as G,p4 as z,q4 as x}from"./cli-1.1.4-40z19hth.mjs";import{r4 as F0}from"./cli-1.1.4-9ms3b4tc.mjs";import{A4 as EX,z4 as SQ}from"./cli-1.1.4-v67jx2fw.mjs";import{B6 as cY,N8 as ZY,Q5 as n0,R5 as xY,a7 as NJ,a9 as iX,f7 as yq,g5 as eQ,h6 as YZ,i6 as lZ,k6 as Sq,l6 as nZ,m5 as dX,n6 as fq,n7 as kZ,r7 as Tq,s6 as hq}from"./cli-1.1.4-fk420f57.mjs";import{w9 as K0,x9 as Fq}from"./cli-1.1.4-sm3xmtbn.mjs";import{Bga as w0,D_ as C0,E_ as vZ,Ega as Cq,Qga as U0,Rda as dZ,Tda as Z0,Uea as y,Wda as iZ,Xea as h,Yea as Rq,Yga as IZ,bfa as Bq,bga as VQ,eea as pY,ega as KQ,fca as Nq,ffa as kq,fga as VX,gca as Pq,gfa as Iq,hca as Uq,hga as WQ,ica as Aq,nca as mY,oga as HQ,qfa as Eq,qga as zQ,uga as OQ,yga as KX}from"./cli-1.1.4-6c3fshef.mjs";import{lha as OZ,mha as P0,nha as tQ,sha as SZ,tha as QJ}from"./cli-1.1.4-rc28sjtd.mjs";import{Nha as Lq}from"./cli-1.1.4-wt23b5bp.mjs";import{Yha as Mq,iia as gY}from"./cli-1.1.4-qecgken2.mjs";import{Iia as PZ,Kia as yJ}from"./cli-1.1.4-f7y4b0px.mjs";import{wja as S,zja as vY}from"./cli-1.1.4-te2372tc.mjs";import{Cka as qJ,hka as uX,zka as j0}from"./cli-1.1.4-53fvpymg.mjs";import{cla as DJ,ela as wX}from"./cli-1.1.4-hzx821eq.mjs";import{kla as Oq,mla as GQ,rla as uZ,ula as Dq}from"./cli-1.1.4-c7a7aezt.mjs";import{$oa as zq,Nna as oQ,Ona as aQ,Zqa as hJ,_ma as fJ,_na as LJ,_oa as cZ,joa as sQ,pna as lQ,qna as nQ,tna as rQ}from"./cli-1.1.4-0r232fpm.mjs";import{Esa as u,Isa as r}from"./cli-1.1.4-xxe2ztwq.mjs";function RY(){let J=fJ(),Q=iJ(J)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.4"},{label:"Session name",value:Q},{label:"Session ID",value:J},{label:"cwd",value:PZ()},...mJ(),...pJ()]}function BY({mainLoopModel:J,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:xJ(J)},...bJ(Z.clients,Y.options.ideInstallationStatus,Q),...wJ(Z.clients,Q),...$J(),..._J()]}async function cJ(){return[...await vJ(),...await gJ(),...await jJ()]}function kY(J){let Z=AZ.c(8),{value:Q}=J;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let H;if(Z[2]!==Q.length)H=(O,F)=>z(K,{children:[O,F<Q.length-1?",":""]},F),Z[2]=Q.length,Z[3]=H;else H=Z[3];Y=Q.map(H),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(B,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function uJ(J){let Z=AZ.c(20),{context:Q,diagnosticsPromise:Y}=J,V=E0(SY),H=E0(CY),[O]=x0(),F;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))F=RY(),Z[0]=F;else F=Z[0];let P;if(Z[1]!==Q||Z[2]!==V||Z[3]!==H||Z[4]!==O)P=BY({mainLoopModel:V,mcp:H,theme:O,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=H,Z[4]=O,Z[5]=P;else P=Z[5];let U;if(Z[6]!==P)U=[F,P],Z[6]=P,Z[7]=U;else U=Z[7];let W=U,D=u0()?1:void 0,M;if(Z[8]!==W)M=W.map(IY),Z[8]=W,Z[9]=M;else M=Z[9];let N;if(Z[10]!==Y)N=G(RZ.Suspense,{fallback:null,children:G(fY,{promise:Y})}),Z[10]=Y,Z[11]=N;else N=Z[11];let A;if(Z[12]!==D||Z[13]!==M||Z[14]!==N)A=z(B,{flexDirection:"column",gap:1,flexGrow:D,children:[M,N]}),Z[12]=D,Z[13]=M,Z[14]=N,Z[15]=A;else A=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==D||Z[18]!==A)k=z(B,{flexDirection:"column",flexGrow:D,children:[A,I]}),Z[17]=D,Z[18]=A,Z[19]=k;else k=Z[19];return k}function IY(J,Z){return J.length>0&&G(B,{flexDirection:"column",children:J.map(EY)},Z)}function EY(J,Z){let{label:Q,value:Y}=J;return z(B,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(kY,{value:Y})]},Z)}function CY(J){return J.mcp}function SY(J){return J.mainLoopModel}function fY(J){let Z=AZ.c(5),{promise:Q}=J,Y=RZ.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let H;if(Z[1]!==Y)H=Y.map(hY),Z[1]=Y,Z[2]=H;else H=Z[2];let O;if(Z[3]!==H)O=z(B,{flexDirection:"column",paddingBottom:1,children:[V,H]}),Z[3]=H,Z[4]=O;else O=Z[4];return O}function hY(J,Z){return z(B,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:C0.warning}),typeof J==="string"?G(K,{wrap:"wrap",children:J}):J]},Z)}var AZ,RZ;var dJ=r(()=>{vZ();hJ();UZ();S0();TJ();yJ();yY();AY();c0();x();AZ=u(b0(),1),RZ=u(F0(),1)});function rJ(J){let Z=nJ.c(17),{currentVersion:Q,onChoice:Y}=J,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let H=V,O;if(Z[2]!==Y)O=function(){Y("cancel")},Z[2]=Y,Z[3]=O;else O=Z[3];let F=O,P;if(Z[4]!==Q)P=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=P;else P=Z[5];let U;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))U=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=U;else U=Z[6];let W;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))W={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=W;else W=Z[7];let D=`Stay on current version (${Q}) until stable catches up`,M;if(Z[8]!==D)M=[W,{label:D,value:"stay"}],Z[8]=D,Z[9]=M;else M=Z[9];let N;if(Z[10]!==H||Z[11]!==M)N=G(i0,{options:M,onChange:H}),Z[10]=H,Z[11]=M,Z[12]=N;else N=Z[12];let A;if(Z[13]!==F||Z[14]!==P||Z[15]!==N)A=z(d0,{title:"Switch to Stable Channel",onCancel:F,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[P,U,N]}),Z[13]=F,Z[14]=P,Z[15]=N,Z[16]=A;else A=Z[16];return A}var nJ;var oJ=r(()=>{S0();lJ();gZ();x();nJ=u(b0(),1)});function aJ(J){return Object.entries(J).map(([Z,Q])=>({label:Q?.name??$Y,value:Z,description:Q?.description??bY}))}function Jq(J){let Z=Zq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:H}=J,O;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))O=[],Z[0]=O;else O=Z[0];let[F,P]=JZ.useState(O),[U,W]=JZ.useState(!0),D,M;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))D=()=>{tJ(PZ()).then((d)=>{let m=aJ(d);P(m),W(!1)}).catch(()=>{let d=aJ(sJ);P(d),W(!1)})},M=[],Z[1]=D,Z[2]=M;else D=Z[1],M=Z[2];JZ.useEffect(D,M);let N;if(Z[3]!==Y)N=(d)=>{Y(d)},Z[3]=Y,Z[4]=N;else N=Z[4];let A=N,I=!H,k=!H,j;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))j=G(B,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=j;else j=Z[5];let t;if(Z[6]!==A||Z[7]!==Q||Z[8]!==U||Z[9]!==F)t=z(B,{flexDirection:"column",gap:1,children:[j,U?G(K,{dimColor:!0,children:"Loading output styles…"}):G(i0,{options:F,onChange:A,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=A,Z[7]=Q,Z[8]=U,Z[9]=F,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(d0,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var Zq,JZ,$Y="Default",bY="Claudin completes coding tasks efficiently and provides concise responses";var qq=r(()=>{eJ();S0();yJ();TY();gZ();x();Zq=u(b0(),1),JZ=u(F0(),1)});function Xq(J){let Z=Yq.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=J,[H,O]=mZ.useState(Q),[F,P]=mZ.useState((Q??"").length),U;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))U={context:"Settings"},Z[0]=U;else U=Z[0];_("confirm:no",V,U);let W;if(Z[1]!==H||Z[2]!==Y)W=function(){let w=H?.trim();Y(w||void 0)},Z[1]=H,Z[2]=Y,Z[3]=W;else W=Z[3];let D=W,M;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=M;else M=Z[4];let N;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))N=G(K,{children:C0.pointer}),Z[5]=N;else N=Z[5];let A=H??"",I;if(Z[6]!==F||Z[7]!==D||Z[8]!==A)I=z(B,{flexDirection:"row",gap:1,children:[N,G(Qq,{value:A,onChange:O,onSubmit:D,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${C0.ellipsis}`,columns:60,cursorOffset:F,onChangeCursorOffset:P})]}),Z[6]=F,Z[7]=D,Z[8]=A,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let j;if(Z[11]!==I)j=z(B,{flexDirection:"column",gap:1,children:[M,I,k]}),Z[11]=I,Z[12]=j;else j=Z[12];return j}var Yq,mZ;var Gq=r(()=>{vZ();S0();l0();wY();x();Yq=u(b0(),1),mZ=u(F0(),1)});function Vq(J,{grouped:Z=!0}={}){if(!Z)return J.map((H)=>({kind:"setting",id:H.id,item:H}));let Q=new Map;for(let H of J){let O=Q.get(H.id);if(O)O.push(H);else Q.set(H.id,[H])}let Y=[],V=(H,O)=>{if(O.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${H.id}`});Y.push({kind:"header",id:`header:${H.id}`,label:H.label});for(let F of O)Y.push({kind:"setting",id:F.id,item:F})};for(let H of jY){let O=[];for(let F of H.settingIds){let P=Q.get(F);if(!P)continue;O.push(...P),Q.delete(F)}V(H,O)}return V(_Y,[...Q.values()].flat()),Y}function f0(J){return J?.kind==="setting"}function QZ(J){return J.findIndex((Z)=>f0(Z))}function pZ(J){for(let Z=J.length-1;Z>=0;Z--)if(f0(J[Z]))return Z;return-1}function qZ(J,Z,Q){for(let Y=Z+Q;Y>=0&&Y<J.length;Y+=Q)if(f0(J[Y]))return Y;return f0(J[Z])?Z:QZ(J)}function Kq(J,Z,Q){if(Q===1){for(let V=Z+1;V<J.length;V++)if(J[V]?.kind==="header")return qZ(J,V,1);return pZ(J)}let Y=-1;for(let V=Z-1;V>=0;V--)if(J[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(J[V]?.kind==="header")return qZ(J,V,1);return QZ(J)}function xZ(J){return J.reduce((Z,Q)=>f0(Q)?Z+1:Z,0)}var jY,_Y;var Wq=r(()=>{jY=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],_Y={id:"other",label:"Other",settingIds:[]}});function ZQ({onClose:J,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:H,focusHeader:O}=uq(),F=u0(),[,P]=x0(),U=$q(),[W,D]=v.useState(h()),M=l.useRef(h()),[N,A]=v.useState(iZ()),I=l.useRef(iZ()),[k,j]=v.useState(N?.outputStyle||BZ),t=l.useRef(k),[w,d]=v.useState(N?.language),m=l.useRef(w),[$,Q0]=v.useState(0),[o,Y0]=v.useState(0),[n,z0]=v.useState(!0),$0=wq(),[e]=v.useState(()=>rZ()),{rows:v0,columns:X0}=A0(),FZ=Math.max(24,Math.min(44,X0-18)),C=V??Math.min(Math.floor(v0*0.8),30),p=Math.max(5,C-10),R0=E0((q)=>q.mainLoopModel),MZ=E0((q)=>q.verbose),g0=E0((q)=>q.thinkingEnabled),m0=E0((q)=>YZ()?q.fastMode:!1),p0=E0((q)=>q.promptSuggestionEnabled),$Z=!1,G0=gq(),[t0,E]=v.useState({}),b=l.useRef(g0),[a]=v.useState(()=>dZ("localSettings")),[V0]=v.useState(()=>dZ("userSettings")),W0=l.useRef(U),e0=mq(),[B0]=v.useState(()=>{let q=e0.getState();return{mainLoopModel:q.mainLoopModel,mainLoopModelForSession:q.mainLoopModelForSession,verbose:q.verbose,thinkingEnabled:q.thinkingEnabled,fastMode:q.fastMode,promptSuggestionEnabled:q.promptSuggestionEnabled,isBriefOnly:q.isBriefOnly,replBridgeEnabled:q.replBridgeEnabled,replBridgeOutboundOnly:q.replBridgeOutboundOnly,settings:q.settings}}),[bZ]=v.useState(()=>cZ()),M0=l.useRef(!1),[zY,ZZ]=v.useState(!1),[i,g]=v.useState(null),{query:k0,setQuery:LZ,cursorOffset:OY}=aq({isActive:n&&i===null&&!H,onExit:()=>z0(!1),onExitUp:O,passthroughCtrlKeys:["c","d"]}),AJ=n&&!H;l.useEffect(()=>{Y?.(AJ)},[AJ,Y]);let DY=_q(Z.options.mcpClients),FY=!Oq(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),RJ=l.use(qQ(!0)),MY=YQ(RJ),I0=Iq();function BJ(q){S("tengu_config_model_changed",{from_model:R0,to_model:q}),G0((L)=>({...L,mainLoopModel:q,mainLoopModelForSession:null})),E((L)=>{let R=kZ(q)+(nq(q,!1,yq())?" · Billed as extra usage":"");if("model"in L){let{model:f,...O0}=L;return{...O0,model:R}}return{...L,model:R}})}function LY(q){y((X)=>({...X,verbose:q})),D({...h(),verbose:q}),G0((X)=>({...X,verbose:q})),E((X)=>{if("verbose"in X){let{verbose:L,...R}=X;return R}return{...X,verbose:q}})}let wZ=[{id:"autoCompactEnabled",label:"Auto-compact",value:W.autoCompactEnabled,type:"boolean",onChange(q){y((X)=>({...X,autoCompactEnabled:q})),D({...h(),autoCompactEnabled:q}),S("tengu_auto_compact_setting_changed",{enabled:q})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:W.thinkingHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,thinkingHistoryRedactionEnabled:q})),D({...h(),thinkingHistoryRedactionEnabled:q}),S("claudin_thinking_history_redaction_setting_changed",{enabled:q})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:W.narrationHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,narrationHistoryRedactionEnabled:q})),D({...h(),narrationHistoryRedactionEnabled:q}),S("claudin_narration_history_redaction_setting_changed",{enabled:q})}},{id:"showCacheStats",label:"Cache stats display",value:W.showCacheStats,options:["off","compact","full"],type:"enum",onChange(q){let X=q==="off"||q==="compact"||q==="full"?q:"compact";y((L)=>({...L,showCacheStats:X})),D({...h(),showCacheStats:X}),S("tengu_show_cache_stats_setting_changed",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:W.toolResultSummarizerEnabled,type:"boolean",onChange(q){y((X)=>({...X,toolResultSummarizerEnabled:q})),D({...h(),toolResultSummarizerEnabled:q}),S("claudin_tool_result_summarizer_setting_changed",{enabled:q})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:W.bashOutputFilterEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,bashOutputFilterEnabled:q})),D({...h(),bashOutputFilterEnabled:q}),S("claudin_bash_output_filter_setting_changed",{enabled:q})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:W.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(q){y((X)=>({...X,autoBackgroundAgentsEnabled:q})),D({...h(),autoBackgroundAgentsEnabled:q}),S("claudin_auto_background_agents_setting_changed",{enabled:q})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:W.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,repeatedFailureHintEnabled:q})),D({...h(),repeatedFailureHintEnabled:q}),S("claudin_repeated_failure_hint_setting_changed",{enabled:q})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:W.workflowsDefaultBackground===!0,type:"boolean",onChange(q){y((X)=>({...X,workflowsDefaultBackground:q})),D({...h(),workflowsDefaultBackground:q})}},{id:"inlineImagesMode",label:"Inline terminal images",value:W.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(q){let X=q==="auto"||q==="enable"||q==="disable"?q:"auto";y((L)=>({...L,inlineImagesMode:X})),D({...h(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:N?.spinnerTipsEnabled??!0,type:"boolean",onChange(q){Z0("localSettings",{spinnerTipsEnabled:q}),A((X)=>({...X,spinnerTipsEnabled:q})),S("tengu_tips_setting_changed",{enabled:q})}},{id:"prefersReducedMotion",label:"Reduce motion",value:N?.prefersReducedMotion??!1,type:"boolean",onChange(q){Z0("localSettings",{prefersReducedMotion:q}),A((X)=>({...X,prefersReducedMotion:q})),G0((X)=>({...X,settings:{...X.settings,prefersReducedMotion:q}})),S("tengu_reduce_motion_setting_changed",{enabled:q})}},{id:"thinkingEnabled",label:"Thinking mode",value:g0??!0,type:"boolean",onChange(q){G0((X)=>({...X,thinkingEnabled:q})),Z0("userSettings",{alwaysThinkingEnabled:q?void 0:!1}),S("tengu_thinking_toggled",{enabled:q})}},...YZ()&&lZ()?[{id:"fastMode",label:`Fast mode (${Sq} only)`,value:!!m0,type:"boolean",onChange(q){if(hq(),Z0("userSettings",{fastMode:q?!0:void 0}),q)G0((X)=>({...X,mainLoopModel:nZ(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:nZ(),"Fast mode":"ON"}));else G0((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:p0,type:"boolean",onChange(q){G0((X)=>({...X,promptSuggestionEnabled:q})),Z0("userSettings",{promptSuggestionEnabled:q?void 0:!1})}},...FY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:W.fileCheckpointingEnabled,type:"boolean",onChange(q){y((X)=>({...X,fileCheckpointingEnabled:q})),D({...h(),fileCheckpointingEnabled:q}),S("tengu_file_history_snapshots_setting_changed",{enabled:q})}}]:[],{id:"verbose",label:"Verbose output",value:MZ,type:"boolean",onChange:LY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:W.terminalProgressBarEnabled,type:"boolean",onChange(q){y((X)=>({...X,terminalProgressBarEnabled:q})),D({...h(),terminalProgressBarEnabled:q}),S("tengu_terminal_progress_bar_setting_changed",{enabled:q})}},...Mq("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:W.showStatusInTerminalTab??!1,type:"boolean",onChange(q){y((X)=>({...X,showStatusInTerminalTab:q})),D({...h(),showStatusInTerminalTab:q}),S("tengu_terminal_tab_status_setting_changed",{enabled:q})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:W.showTurnDuration,type:"boolean",onChange(q){y((X)=>({...X,showTurnDuration:q})),D({...h(),showTurnDuration:q}),S("tengu_show_turn_duration_setting_changed",{enabled:q})}},{id:"defaultPermissionMode",label:"Default permission mode",value:N?.permissions?.defaultMode||"default",options:(()=>{let q=["default","plan"],X=Lq,L=["bypassPermissions"];return[...q,...X.filter((R)=>!q.includes(R)&&!L.includes(R))]})(),type:"enum",onChange(q){let X=Uq(q),L=Nq(X)?Pq(X):X,R=Z0("userSettings",{permissions:{...N?.permissions,defaultMode:L}});if(R.error){U0(R.error);return}A((f)=>({...f,permissions:{...f?.permissions,defaultMode:L}})),E((f)=>({...f,defaultPermissionMode:q})),S("tengu_config_changed",{setting:"defaultPermissionMode",value:q})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:N?.useAutoModeDuringPlan??!0,type:"boolean",onChange(q){Z0("userSettings",{useAutoModeDuringPlan:q}),A((X)=>({...X,useAutoModeDuringPlan:q})),G0((X)=>{let L=aZ(X.toolPermissionContext);if(L===X.toolPermissionContext)return X;return{...X,toolPermissionContext:L}}),E((X)=>({...X,"Use auto mode during plan":q}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:W.respectGitignore,type:"boolean",onChange(q){y((X)=>({...X,respectGitignore:q})),D({...h(),respectGitignore:q}),S("tengu_respect_gitignore_setting_changed",{enabled:q})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:W.copyFullResponse,type:"boolean",onChange(q){y((X)=>({...X,copyFullResponse:q})),D({...h(),copyFullResponse:q}),S("tengu_config_changed",{setting:"copyFullResponse",value:String(q)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:W.copyOnSelect??!0,type:"boolean",onChange(q){y((X)=>({...X,copyOnSelect:q})),D({...h(),copyOnSelect:q}),S("tengu_config_changed",{setting:"copyOnSelect",value:String(q)})}}]:[],{id:"terminalRenderer",label:bq()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:rZ()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(q){let X=q==="fullscreen";y((L)=>({...L,flickerFreeMode:X})),D({...h(),flickerFreeMode:X}),S("tengu_config_changed",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:tq()?`Frame rate (env, ${tZ()}fps)`:`Frame rate (${tZ()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:W.renderFrameRate??"auto",options:[...sq],type:"enum",onChange(q){y((X)=>({...X,renderFrameRate:q})),D({...h(),renderFrameRate:q}),S("tengu_config_changed",{setting:"renderFrameRate",value:String(q)})}},I0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:N?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:U,type:"managedEnum",onChange:P},{id:"notifChannel",label:"Notifications",value:W.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(q){y((X)=>({...X,preferredNotifChannel:q})),D({...h(),preferredNotifChannel:q})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:W.editorMode==="emacs"?"normal":W.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(q){y((X)=>({...X,editorMode:q})),D({...h(),editorMode:q}),S("tengu_editor_mode_changed",{mode:q,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:W.prStatusFooterEnabled??!0,type:"boolean",onChange(q){y((X)=>{if(X.prStatusFooterEnabled===q)return X;return{...X,prStatusFooterEnabled:q}}),D({...h(),prStatusFooterEnabled:q}),S("tengu_pr_status_footer_setting_changed",{enabled:q})}},{id:"model",label:"Model",value:R0===null?"Default (recommended)":R0,type:"managedEnum",onChange:BJ},...DY?[{id:"diffTool",label:"Diff tool",value:W.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(q){y((X)=>({...X,diffTool:q})),D({...h(),diffTool:q}),S("tengu_diff_tool_changed",{tool:q,source:"config_panel"})}}]:[],...!oZ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:W.autoConnectIde??!1,type:"boolean",onChange(q){y((X)=>({...X,autoConnectIde:q})),D({...h(),autoConnectIde:q}),S("tengu_auto_connect_ide_changed",{enabled:q,source:"config_panel"})}}]:[],...oZ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:W.autoInstallIdeExtension??!0,type:"boolean",onChange(q){y((X)=>({...X,autoInstallIdeExtension:q})),D({...h(),autoInstallIdeExtension:q}),S("tengu_auto_install_ide_extension_changed",{enabled:q,source:"config_panel"})}}]:[],...vq()?(()=>{let q=pq();return[{id:"teammateMode",label:q?`Teammate mode [overridden: ${q}]`:"Teammate mode",value:W.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;xq(L),y((R)=>({...R,teammateMode:L})),D({...h(),teammateMode:L}),S("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:Hq(W.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...iq()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:W.remoteControlAtStartup===void 0?"default":String(W.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(q){if(q==="default")y((L)=>{if(L.remoteControlAtStartup===void 0)return L;let R={...L};return delete R.remoteControlAtStartup,R}),D({...h(),remoteControlAtStartup:void 0});else{let L=q==="true";y((R)=>{if(R.remoteControlAtStartup===L)return R;return{...R,remoteControlAtStartup:L}}),D({...h(),remoteControlAtStartup:L})}let X=Rq();G0((L)=>{if(L.replBridgeEnabled===X&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...MY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(Bq().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let q=w0(),X=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(!X||uZ())return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:n0(X)})]}),searchText:"Use custom API key",value:Boolean(W.customApiKeyResponses?.approved?.includes(n0(X))),type:"boolean",onChange(L){y((R)=>{let f={...R};if(!f.customApiKeyResponses)f.customApiKeyResponses={approved:[],rejected:[]};if(!f.customApiKeyResponses.approved)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[]};if(!f.customApiKeyResponses.rejected)f.customApiKeyResponses={...f.customApiKeyResponses,rejected:[]};{let O0=n0(X);if(L)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[...(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),O0],rejected:(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0)};else f.customApiKeyResponses={...f.customApiKeyResponses,approved:(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),rejected:[...(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0),O0]}}return f}),D(h())}}]})()],kJ=l.useMemo(()=>{if(!k0)return wZ;let q=k0.toLowerCase();return wZ.filter((X)=>{if(X.id.toLowerCase().includes(q))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(q)})},[wZ,k0]),s=l.useMemo(()=>Vq(kJ,{grouped:k0===""}),[kJ,k0]),IJ=xZ(s.slice(0,o)),EJ=xZ(s.slice(o+p));l.useEffect(()=>{if($>=s.length){let q=Math.max(0,pZ(s));Q0(q),Y0(Math.max(0,q-p+1));return}if(!f0(s[$])){let q=Math.max(0,qZ(s,$,1));Q0(q),Y0((X)=>q>=X+p?q-p+1:X);return}Y0((q)=>{if($<q)return $;if($>=q+p)return $-p+1;return q})},[s,$,p]);let jZ=v.useCallback((q)=>{Y0((X)=>{if(q<X)return q;if(q>=X+p)return q-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let q=Object.entries(t0).map(([D0,SJ])=>{return S("tengu_config_changed",{key:D0,value:SJ}),`Set ${D0} to ${K0.bold(SJ)}`}),X=w0(),L=X?.transport==="anthropic"?X.apiKey?.trim():void 0,R=uZ()?void 0:L,f=Boolean(R&&M.current.customApiKeyResponses?.approved?.includes(n0(R))),O0=Boolean(R&&W.customApiKeyResponses?.approved?.includes(n0(R)));if(f!==O0)q.push(`${O0?"Enabled":"Disabled"} custom API key`),S("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:O0});if(W.theme!==M.current.theme)q.push(`Set theme to ${K0.bold(W.theme)}`);if(W.preferredNotifChannel!==M.current.preferredNotifChannel)q.push(`Set notifications to ${K0.bold(W.preferredNotifChannel)}`);if(k!==t.current)q.push(`Set output style to ${K0.bold(k)}`);if(w!==m.current)q.push(`Set response language to ${K0.bold(w??"Default (English)")}`);if(W.editorMode!==M.current.editorMode)q.push(`Set editor mode to ${K0.bold(W.editorMode||"emacs")}`);if(W.diffTool!==M.current.diffTool)q.push(`Set diff tool to ${K0.bold(W.diffTool)}`);if(W.autoConnectIde!==M.current.autoConnectIde)q.push(`${W.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(W.autoInstallIdeExtension!==M.current.autoInstallIdeExtension)q.push(`${W.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(W.autoCompactEnabled!==M.current.autoCompactEnabled)q.push(`${W.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(W.thinkingHistoryRedactionEnabled!==M.current.thinkingHistoryRedactionEnabled)q.push(`${W.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(W.narrationHistoryRedactionEnabled!==M.current.narrationHistoryRedactionEnabled)q.push(`${W.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(W.toolResultSummarizerEnabled!==M.current.toolResultSummarizerEnabled)q.push(`${W.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(W.autoBackgroundAgentsEnabled!==M.current.autoBackgroundAgentsEnabled)q.push(`${W.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(W.workflowsDefaultBackground!==M.current.workflowsDefaultBackground)q.push(`${W.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(W.bashOutputFilterEnabled!==M.current.bashOutputFilterEnabled)q.push(`${W.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(W.repeatedFailureHintEnabled!==M.current.repeatedFailureHintEnabled)q.push(`${W.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(W.respectGitignore!==M.current.respectGitignore)q.push(`${W.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(W.copyFullResponse!==M.current.copyFullResponse)q.push(`${W.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(W.copyOnSelect!==M.current.copyOnSelect)q.push(`${W.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(W.flickerFreeMode!==M.current.flickerFreeMode)q.push(`Set terminal UI renderer to ${K0.bold(W.flickerFreeMode?"fullscreen":"default")}`);if(W.renderFrameRate!==M.current.renderFrameRate)q.push(`Set frame rate to ${K0.bold(W.renderFrameRate??"auto")} (applies on restart)`);if(W.terminalProgressBarEnabled!==M.current.terminalProgressBarEnabled)q.push(`${W.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(W.showStatusInTerminalTab!==M.current.showStatusInTerminalTab)q.push(`${W.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(W.showTurnDuration!==M.current.showTurnDuration)q.push(`${W.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(W.remoteControlAtStartup!==M.current.remoteControlAtStartup){let D0=W.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${W.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;q.push(D0)}if(N?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)q.push(`Set auto-update channel to ${K0.bold(N?.autoUpdatesChannel??"latest")}`);if(q.length>0)J(q.join(`
2
+ `));else J("Config dialog dismissed",{display:"system"})},[i,t0,W,R0,k,w,N?.autoUpdatesChannel,YZ()?N?.fastMode:void 0,J]),CJ=v.useCallback(()=>{if(U!==W0.current)P(W0.current);y(()=>M.current);let q=a;Z0("localSettings",{spinnerTipsEnabled:q?.spinnerTipsEnabled,prefersReducedMotion:q?.prefersReducedMotion,defaultView:q?.defaultView,outputStyle:q?.outputStyle});let X=V0;Z0("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let L=B0;if(G0((R)=>({...R,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:aZ(R.toolPermissionContext)})),cZ()!==bZ)zq(bZ)},[U,P,a,V0,B0,bZ,G0]),PY=v.useCallback(()=>{if(i!==null)return;if(M0.current)CJ();J("Config dialog dismissed",{display:"system"})},[i,CJ,J]);_("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!H}),_("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!H});let _Z=v.useCallback(()=>{let q=s[$];if(!f0(q))return;let X=q.item;if(!X.onChange)return;if(X.type==="boolean"){if(M0.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===b.current)ZZ(!1);else if(Z.messages.some((f)=>f.type==="assistant"))ZZ(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(I0){g("EnableAutoUpdates"),Q(!0);return}if((N?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else M0.current=!0,Z0("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),A((R)=>({...R,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(X.type==="enum"){M0.current=!0;let R=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[R]);return}},[I0,s,$,N?.autoUpdatesChannel,Q]),NZ=(q)=>{ZZ(!1);let X=qZ(s,$,q);if(X<0)return;Q0(X),jZ(X)};jq({"select:previous":()=>{let q=QZ(s);if(q<0||$<=q)ZZ(!1),z0(!0),Y0(0);else NZ(-1)},"select:next":()=>NZ(1),"scroll:lineUp":()=>NZ(-1),"scroll:lineDown":()=>NZ(1),"select:accept":_Z,"settings:search":()=>{z0(!0),LZ("")}},{context:"Settings",isActive:i===null&&!n&&!H});let UY=v.useCallback((q)=>{if(i!==null)return;if(H)return;if(n){if(q.key==="escape"){if(q.preventDefault(),k0.length>0)LZ("");else z0(!1);return}if(q.key==="return"||q.key==="down"||q.key==="wheeldown")q.preventDefault(),z0(!1),Q0(Math.max(0,QZ(s))),Y0(0);return}if(q.key==="left"||q.key==="right"||q.key==="tab"){q.preventDefault(),_Z();return}if(q.key==="["||q.key==="]"){q.preventDefault();let X=Kq(s,$,q.key==="["?-1:1);if(X>=0)ZZ(!1),Q0(X),jZ(X);return}if(q.ctrl||q.meta)return;if(q.key==="j"||q.key==="k"||q.key==="/")return;if(q.key.length===1&&q.key!==" ")q.preventDefault(),z0(!0),LZ(q.key)},[i,H,n,k0,LZ,_Z,s,$,jZ]);return G(B,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:UY,children:i==="Theme"?z(H0,{children:[G(lq,{onThemeSelect:(q)=>{M0.current=!0,P(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(B,{children:G(K,{dimColor:!0,italic:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(H0,{children:[G(sZ,{initial:R0,onSelect:(q,X)=>{M0.current=!0,BJ(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:YZ()?m0&&fq(R0)&&lZ():!1}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(H0,{children:[G(sZ,{initial:W.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(q,X)=>{if(g(null),Q(!1),W.teammateDefaultModel===void 0&&q===null)return;M0.current=!0,y((L)=>L.teammateDefaultModel===q?L:{...L,teammateDefaultModel:q}),D({...h(),teammateDefaultModel:q}),E((L)=>({...L,teammateDefaultModel:Hq(q)})),S("tengu_teammate_default_model_changed",{model:q})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(H0,{children:[G(rq,{onDone:()=>{g(null),Q(!1)},externalIncludes:QQ(RJ)}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(H0,{children:[G(Jq,{initialStyle:k,onComplete:(q)=>{M0.current=!0,j(q??BZ),g(null),Q(!1),Z0("localSettings",{outputStyle:q}),S("tengu_output_style_changed",{style:q??BZ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(H0,{children:[G(Xq,{initialLanguage:w,onComplete:(q)=>{M0.current=!0,d(q),g(null),Q(!1),Z0("userSettings",{language:q}),S("tengu_language_changed",{language:q??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(d0,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:I0?.type!=="config"?z(H0,{children:[G(K,{children:I0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),I0?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",I0.envVar," to re-enable auto-updates."]})]}):G(i0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(q)=>{M0.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),D({...h(),autoUpdates:!0}),Z0("userSettings",{autoUpdatesChannel:q,minimumVersion:void 0}),A((X)=>({...X,autoUpdatesChannel:q,minimumVersion:void 0})),S("tengu_autoupdate_enabled",{channel:q})}})}):i==="ChannelDowngrade"?G(rJ,{currentVersion:"99.0.0",onChoice:(q)=>{if(g(null),Q(!1),q==="cancel")return;M0.current=!0;let X={autoUpdatesChannel:"stable"};if(q==="stay")X.minimumVersion="99.0.0";Z0("userSettings",X),A((L)=>({...L,...X})),S("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:q==="stay"})}}):z(B,{flexDirection:"column",gap:1,marginY:F?void 0:1,children:[G(oq,{query:k0,isFocused:n&&!H,isTerminalFocused:$0,cursorOffset:OY,placeholder:"Search settings…"}),G(B,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',k0,'"']}):z(H0,{children:[IJ>0&&z(K,{dimColor:!0,children:[C0.arrowUp," ",IJ," more above"]}),s.slice(o,o+p).map((q,X)=>{let L=o+X;if(q.kind==="spacer")return G(K,{children:" "},q.id);if(q.kind==="header")return z(K,{dimColor:!0,children:[" ",q.label]},q.id);let R=q.item,f=L===$&&!H&&!n;return G(l.Fragment,{children:z(B,{children:[G(B,{width:FZ,flexShrink:0,paddingRight:1,children:z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:[f?C0.pointer:" "," ",R.label]})}),G(B,{children:R.type==="boolean"?z(H0,{children:[G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()}),zY&&R.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):R.id==="theme"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:YX[R.value.toString()]??R.value.toString()}):R.id==="notifChannel"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:G(XX,{value:R.value.toString()})}):R.id==="defaultPermissionMode"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:Aq(R.value)}):R.id==="autoUpdatesChannel"&&I0?z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",kq(I0),")"]})]}):G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()})},f?"selected":"unselected")]})},R.id)}),EJ>0&&z(K,{dimColor:!0,children:[C0.arrowDown," ",EJ," more below"]})]})}),H?G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"←/→ tab",action:"switch"}),G(L0,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(J0,{children:[G(K,{children:"Type to filter"}),G(L0,{shortcut:"Enter/↓",action:"select"}),G(L0,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function Hq(J){if(J===void 0)return kZ(cq());if(J===null)return"Default (leader's model)";return kZ(J)}function XX(J){let Z=eq.c(4),{value:Q}=J;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var eq,l,v,YX;var JQ=r(()=>{S0();l0();vZ();Eq();xY();Cq();Eq();Fq();mY();oY();IZ();vY();aY();sY();TJ();tY();Tq();eY();ZX();oJ();gZ();lJ();qq();Gq();GX();dY();c0();EZ();dq();UZ();JX();iY();pY();hJ();eJ();Dq();gY();lY();nY();rY();qX();XZ();cY();uY();QX();Wq();x();eq=u(b0(),1),l=u(F0(),1),v=u(F0(),1);YX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function VZ(J){return typeof J==="object"&&J!==null}function N0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function r0(J){return typeof J==="number"&&Number.isFinite(J)?J:void 0}function eZ(J){return typeof J==="boolean"?J:void 0}function ZJ(J){let Z=r0(J);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function CZ(J){if(!VZ(J))return;let Z=r0(J.used_percent)??r0(J.usedPercent);if(Z===void 0)return;let Q=r0(J.window_minutes)??r0(J.windowDurationMins)??(()=>{let V=r0(J.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=ZJ(J.resets_at)??ZJ(J.resetsAt)??ZJ(J.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(J){if(!VZ(J))return;let Z=eZ(J.has_credits)??eZ(J.hasCredits)??!1,Q=eZ(J.unlimited)??!1,Y=N0(J.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function GZ(J,Z){if(!VZ(J))return;let Q=N0(J.limit_name)??N0(J.limitName)??N0(J.limit_id)??N0(J.limitId)??Z,Y=CZ(J.primary)??CZ(J.primary_window),V=CZ(J.secondary)??CZ(J.secondary_window),H=DQ(J.credits);if(!Y&&!V&&!H)return;return{limitName:Q,primary:Y,secondary:V,credits:H}}function JJ(J,Z="codex"){if(Array.isArray(J))return J.map((Q,Y)=>GZ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!VZ(J))return[];return Object.entries(J).map(([Q,Y])=>GZ(Y,Q)).filter((Q)=>Q!==void 0)}function WX(J){let Z=N0(J.plan_type)??N0(J.planType),Q=[],Y=DQ(J.credits),V=GZ(J.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let H=GZ(J.code_review_rate_limit,"code review");if(H)Q.push(H);return Q.push(...JJ(J.additional_rate_limits??J.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function HX(J){if(Array.isArray(J))return{snapshots:JJ(J)};if(!VZ(J))return{snapshots:[]};if("rate_limit"in J||"code_review_rate_limit"in J||"additional_rate_limits"in J||"credits"in J)return WX(J);let Z=J.rate_limits??J.rateLimits??J.rate_limits_by_limit_id??J.rateLimitsByLimitId;if(Z!==void 0)return{planType:N0(J.plan_type)??N0(J.planType),snapshots:JJ(Z)};let Q=GZ(J,"codex");return{planType:N0(J.plan_type)??N0(J.planType),snapshots:Q?[Q]:[]}}function o0(J){if(!J)return J;return J[0].toUpperCase()+J.slice(1)}function XQ(J,Z){if(J===void 0||J<=0)return Z;if(J===10080)return"weekly";if(J%1440===0)return`${J/1440}d`;if(J%60===0)return`${J/60}h`;return`${J}m`}function zX(J){let Z=J?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function OX(J){if(!J?.hasCredits)return;if(J.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=zX(J.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function FQ(J){let Z=[];for(let Q of J){let Y=Q.limitName.trim()||"codex",V=OX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let O=Y.toLowerCase()!=="codex",F=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),P=O&&F===1;if(O&&!P)Z.push({kind:"text",label:`${o0(Y)} limit`,value:""});if(Q.primary){let U=o0(XQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let U=o0(XQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function MQ(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>o0(Z.toLowerCase())).join(" ")}function DX(J=WQ){return new URL("/backend-api/wham/usage",J).toString()}async function LQ(){let J=await KQ().catch(async(V)=>{return j0(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await VQ()}}),Z=zQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=OQ({storedCredentials:J.credentials});if(!Q.apiKey){let V=GQ()?"":", choose Codex OAuth in /provider",H=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${H}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let Y=await fetch(DX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return HX(await Y.json())}var NQ=r(()=>{VX();qJ();Dq();KX()});function FX({label:J,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),H=`${Math.floor(V)}% used`,O=Q?`Resets ${SZ(Q,!0,!0)}`:void 0;if(Y>=62)return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:J}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]}),O?G(K,{dimColor:!0,children:O}):null]});return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),O?z(H0,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",O]})]}):null]}),G(s0,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]})}function MX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function UQ(){let[J,Z]=a0.useState(null),[Q,Y]=a0.useState(null),[V,H]=a0.useState(!0),{columns:O}=A0(),F=O-2,P=Math.min(F,80),U=PQ.useCallback(async()=>{H(!0),Y(null);try{Z(await LQ())}catch(M){U0(M),Y(M instanceof Error?M.message:"Failed to load Codex usage")}finally{H(!1)}},[]);if(a0.useEffect(()=>{U()},[U]),_("settings:retry",()=>{U()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let W=FQ(J.snapshots),D=MQ(J.planType);return z(B,{flexDirection:"column",gap:1,width:"100%",children:[D?z(K,{dimColor:!0,children:["Plan: ",D]}):null,W.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,W.map((M,N)=>M.kind==="window"?G(FX,{label:M.label,usedPercent:M.usedPercent,resetsAt:M.resetsAt,maxWidth:P},`${M.label}-${N}`):G(MX,{label:M.label,value:M.value},`${M.label}-${N}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var PQ,a0;var AQ=r(()=>{XZ();S0();l0();NQ();QJ();IZ();c0();EZ();YJ();x();PQ=u(F0(),1),a0=u(F0(),1)});var KZ="https://api.minimax.io/v1",WZ="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var XJ=()=>{};function h0(J){return typeof J==="object"&&J!==null}function q0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function VJ(J){if(typeof J==="number"&&Number.isFinite(J))return J;if(typeof J==="string"&&J.trim()){let Z=Number.parseFloat(J);if(Number.isFinite(Z))return Z}return}function fZ(J){return Math.max(0,Math.min(100,Math.round(J)))}function LX(J){if(typeof J==="string"){let Y=Date.parse(J);return Number.isNaN(Y)?J:new Date(Y).toISOString()}let Z=VJ(J);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(J,Z){let Q=VJ(J);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return LX(J)}function HZ(J,Z){for(let Q of Z){let Y=VJ(J[Q]);if(Y!==void 0)return Y}return}function PX(J,Z){for(let Q of Z)if(J[Q]!==void 0)return NX(J[Q],Q);return}function zZ(J,Z){return Z.some((Q)=>J[Q]!==void 0)}function kQ(J){return J?J[0].toUpperCase()+J.slice(1):J}function UX(J){if(!J)return"MiniMax";let Z=J.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>kQ(Q.toLowerCase())).join(" ")}function AX(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>kQ(Z.toLowerCase())).join(" ")}function IQ(J,Z){let Q=HZ(J,Z.percentKeys),Y=HZ(J,Z.remainingPercentKeys),V=HZ(J,Z.totalKeys),H=HZ(J,Z.remainingKeys),O=HZ(J,Z.usedKeys),F=V!==void 0&&O!==void 0?V-O:H,P;if(V!==void 0&&V>0&&O!==void 0)P=fZ(O/V*100);else if(V!==void 0&&V>0&&H!==void 0)P=fZ((V-H)/V*100);else if(Q!==void 0)P=fZ(Q);else if(Y!==void 0)P=fZ(100-Y);if(P===void 0)return;return{label:Z.label,usedPercent:P,remaining:F,total:V,resetsAt:PX(J,Z.resetKeys)}}function RX(J){let Z=q0(J.label)??q0(J.name)??q0(J.window_name)??q0(J.windowName)??"Limit";return IQ(J,{label:Z,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function kX(J){if(zZ(J,BX))return!0;return EQ.some((Z)=>zZ(J,Z.totalKeys)||zZ(J,Z.remainingKeys)||zZ(J,Z.usedKeys)||zZ(J,Z.percentKeys))}function GJ(J,Z){if(!h0(J))return;let Q=EQ.map((V)=>IQ(J,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=RX(J);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:q0(J.limit_name)??q0(J.limitName)??q0(J.model_name)??q0(J.modelName)??q0(J.name)??Z,windows:Q}}function RQ(J,Z="MiniMax"){if(Array.isArray(J))return J.map((Q,Y)=>GJ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!h0(J))return[];if(kX(J)){let Q=GJ(J,Z);return Q?[Q]:[]}return Object.entries(J).map(([Q,Y])=>GJ(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(J=WZ,Z){return{availability:"unknown",planType:Z,snapshots:[],message:J}}function KJ(J){if(!h0(J))return BQ();let Z=AX(q0(J.plan_type)??q0(J.planType)??q0(J.subscription_type)??q0(J.subscriptionType)??q0(J.plan_name)??q0(J.planName)),Y=[J.data,J.result,J.model_remains,J.modelRemains,J.remains,J.usage,J.quotas,J.models,h0(J.data)?J.data.model_remains:void 0,h0(J.data)?J.data.modelRemains:void 0,h0(J.data)?J.data.models:void 0,h0(J.data)?J.data.quotas:void 0,h0(J.data)?J.data.remains:void 0].flatMap((H)=>RQ(H)).filter((H,O,F)=>{let P=`${H.limitName}:${H.windows.map((U)=>U.label).join("|")}`;return F.findIndex((U)=>`${U.limitName}:${U.windows.map((W)=>W.label).join("|")}`===P)===O});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(J);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function IX(J){if(J.remaining===void 0||J.total===void 0||J.total<=0)return;return`${J.remaining}/${J.total} remaining`}function WJ(J){let Z=[];for(let Q of J){let Y=UX(Q.limitName),V=Y.toLowerCase()!=="minimax",H=V&&Q.windows.length===1;if(V&&!H)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let O of Q.windows)Z.push({kind:"window",label:H?`${Y} ${O.label}`:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:IX(O)})}return Z}var EQ,BX;var HJ=r(()=>{XJ();EQ=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],BX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function CX(J){return J.replace(/\/+$/,"")}function fQ(J=w0()?.baseUrl??KZ){let Z=J.trim();return Z?CX(Z):KZ}function SX(J){let Z=J??w0()?.baseUrl;if(!Z?.trim())return{baseUrl:KZ,usedDefault:!0};return{baseUrl:fQ(Z),usedDefault:!1}}function CQ(J){return{availability:"unknown",snapshots:[],message:J}}function hQ(J){let{baseUrl:Z,usedDefault:Q}=SX(J);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${KZ}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function zJ(){let J=w0()?.apiKey;if(!J)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=hQ(),Q=[],Y=null;for(let V of Z){let H;try{H=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,"Content-Type":"application/json","User-Agent":SQ()},signal:AbortSignal.timeout(5000)})}catch(F){j0(`[minimax] usage request failed for ${V}: ${F instanceof Error?F.message:String(F)}`,{level:"warn"}),Y=F instanceof Error?F:Error(String(F));continue}if(!H.ok){let F=await H.text().catch(()=>"");if([400,401,403,404].includes(H.status)){Q.push({status:H.status,body:F});continue}Y=Error(`MiniMax usage error ${H.status}: ${F||"unknown error"}`);continue}let O=KJ(await H.json());if(O.availability==="available")return O}if(Q.length>0){let V=Q[Q.length-1];return j0(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),CQ(WZ)}if(Y)throw Y;return CQ(WZ)}var yQ=r(()=>{Cq();qJ();EX();XJ();HJ()});var TQ=r(()=>{HJ();yQ()});function yX(J){let Z=Math.max(1,Math.ceil(J/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function TX(J,Z){if(!J)return;let Q=Date.parse(J);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${yX(Y)}`}function $X({label:J,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:H}){let O=Math.max(0,Math.min(100,Z)),F=`${Math.floor(O)}% used`,P=TX(Q,H),U=[F,Y].filter((W)=>Boolean(W));return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),P?z(K,{dimColor:!0,children:[" · ",P]}):null]}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:O/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),U.length>0?G(K,{dimColor:!0,children:U.join(" · ")}):null]})]})}function bX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function bQ(){let[J,Z]=y0.useState(null),[Q,Y]=y0.useState(null),[V,H]=y0.useState(!0),[O,F]=y0.useState(()=>Date.now()),{columns:P}=A0(),U=P-2,W=Math.min(U,80),D=$Q.useCallback(async()=>{H(!0),Y(null);try{Z(await zJ())}catch(N){U0(N),Y(N instanceof Error?N.message:"Failed to load MiniMax usage")}finally{H(!1)}},[]);if(y0.useEffect(()=>{D()},[D]),y0.useEffect(()=>{let N=setInterval(()=>{F(Date.now())},fX);return()=>clearInterval(N)},[]),_("settings:retry",()=>{D()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let M=J.availability==="available"?WJ(J.snapshots):[];return z(B,{flexDirection:"column",gap:1,width:"100%",children:[J.planType?z(K,{dimColor:!0,children:["Plan: ",J.planType]}):null,J.availability==="unknown"?G(K,{dimColor:!0,children:J.message}):M.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,M.map((N,A)=>N.kind==="window"?G($X,{label:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:N.extraSubtext,maxWidth:W,nowMs:O},`${N.label}-${A}`):G(bX,{label:N.label,value:N.value},`${N.label}-${A}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var $Q,y0,fX=30000,hX=18;var wQ=r(()=>{XZ();S0();l0();TQ();IZ();c0();EZ();YJ();x();$Q=u(F0(),1),y0=u(F0(),1)});function jQ({providerLabel:J}){return z(B,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",J,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var _Q=r(()=>{S0();c0();x()});import{readdir as pQ,readFile as xQ}from"fs/promises";import{join as OJ}from"path";async function vQ(J,Z){let Q;try{Q=await xQ(J,"utf-8")}catch(V){if(!DJ(V))j0(`usageContribution: skip ${J}: ${String(V)}`);return 0}if(Q.length>FJ)return 0;let Y=0;for(let V of Q.split(`
3
+ `)){if(!V)continue;let H;try{H=JSON.parse(V)}catch{continue}if(H.type!=="assistant")continue;if(!H.timestamp)continue;let O=Date.parse(H.timestamp);if(Number.isNaN(O)||O<Z)continue;let F=H.message?.usage;if(!F)continue;Y+=(F.input_tokens??0)+(F.output_tokens??0)+(F.cache_creation_input_tokens??0)+(F.cache_read_input_tokens??0)}return Y}async function cQ(J){let Z;try{Z=await pQ(J,{withFileTypes:!0})}catch(Y){if(DJ(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=OJ(J,Y.name);if(Y.isDirectory())Q.push(...await cQ(V));else if(Y.isFile()&&xX.test(Y.name))Q.push(V)}return Q}async function cX(J){let Z=J.replace(/\.jsonl$/,".meta.json");try{let Q=await xQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function MJ(J){let Z=Date.now()-vX[J],Q={window:J,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=gQ(),V;try{V=await pQ(Y,{withFileTypes:!0})}catch{return Q}let H=V.filter((D)=>D.isDirectory()).map((D)=>OJ(Y,D.name)),O=0,F=0,P=0,U=new Map;for(let D=0;D<H.length;D++){let M=H[D],N=await mQ(M);for(let[A,I]of N){if(I.mtime<Z)continue;let k=I.size>FJ?0:await vQ(I.path,Z),j=0,t=OJ(M,A,"subagents");for(let d of await cQ(t)){let m=await vQ(d,Z);if(m<=0)continue;j+=m;let $=await cX(d);U.set($,(U.get($)??0)+m)}let w=k+j;if(w<=0)continue;if(P++,O+=w,j/w>gX)F+=w}if(D%10===9)await new Promise((A)=>setImmediate(A))}if(O===0)return Q;let W=[...U.entries()].map(([D,M])=>({agentType:D,tokens:M,pct:M/O*100})).filter((D)=>D.tokens/O>=mX).sort((D,M)=>M.tokens-D.tokens).slice(0,pX);return{window:J,totalTokens:O,sessionCount:P,subagentHeavyPct:F/O*100,agentBreakdown:W}}var vX,gX=0.5,mX=0.05,pX=5,xX;var uQ=r(()=>{qJ();wX();jX();_X();vX={day:86400000,week:604800000},xX=/^agent-.*\.jsonl$/});function dQ(J){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:H,linesRemoved:O,modelUsage:F,unknownCost:P,bytesSaved:U}=J,W=Object.entries(F);if(Q===0&&W.length===0&&H===0&&O===0)return null;let D={};for(let[N,A]of W){let I=NJ(N);if(!D[I])D[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=D[I];k.inputTokens+=A.inputTokens,k.outputTokens+=A.outputTokens,k.cacheReadInputTokens+=A.cacheReadInputTokens,k.cacheCreationInputTokens+=A.cacheCreationInputTokens,k.webSearchRequests+=A.webSearchRequests,k.costUSD+=A.costUSD}let M=Object.entries(D);return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:_0(Q)}),P&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",OZ(Y)]}),z(K,{children:["Total duration (wall): ",OZ(V)]}),z(K,{children:["Total code changes: ",H," ",H===1?"line":"lines"," added, ",O," ",O===1?"line":"lines"," removed"]}),U!==void 0&&U>0&&z(K,{children:["Context tokens saved: ~",tQ(U/qY)," tokens"]}),M.length>0&&G(K,{children:"Usage by model:"}),M.map(([N,A])=>{let I=`${P0(A.inputTokens)} input, ${P0(A.outputTokens)} output`;if(A.cacheReadInputTokens>0)I+=`, ${P0(A.cacheReadInputTokens)} cache read`;if(A.cacheCreationInputTokens>0)I+=`, ${P0(A.cacheCreationInputTokens)} cache write`;if(A.webSearchRequests>0)I+=`, ${P0(A.webSearchRequests)} web search`;return I+=` (${_0(A.costUSD)})`,z(K,{children:[`${N}:`.padStart(21)," ",I]},N)})]})}function iQ(J={}){let Z=J.view??"global",[,Q]=c.useReducer((O)=>O+1,0);c.useEffect(()=>{let O=setInterval(()=>Q(),1000);return()=>clearInterval(O)},[]);let Y=LJ();if(Z==="session"){let O=lQ(),F=sQ(),P=oQ(),U=aQ();return G(dQ,{title:"Current session",totalCost:O,apiDuration:nQ(),wallDuration:rQ(),linesAdded:P,linesRemoved:U,modelUsage:F,unknownCost:Y,bytesSaved:QY()})}let V=PJ();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(B,{flexDirection:"column",gap:1,children:[G(dQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function UJ(J={}){if((J.view??"global")==="session")return G(B,{flexDirection:"column",gap:1,width:"100%",children:G(iQ,{view:"session"})});let Q=eQ();if(Q==="firstParty")return G(JG,{});let Y;if(Q==="codex")Y=G(UQ,{});else if(Q==="minimax")Y=G(bQ,{});else{let V={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";Y=G(jQ,{providerLabel:V})}return z(B,{flexDirection:"column",gap:1,width:"100%",children:[G(iQ,{view:"global"}),Y,G(ZG,{})]})}function ZG(){let[J,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,H]=c.useState(!0),O=yZ.useCallback(async(U)=>{H(!0);try{Y(await MJ(U))}catch(W){U0(W),Y(null)}finally{H(!1)}},[]);c.useEffect(()=>{O(J)},[O,J]),_("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),_("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let F=J==="day"?"last 24h":"last week",P=Q?.agentBreakdown[0];return z(B,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${F[0].toUpperCase()}${F.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${F}.`}):z(B,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(B,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:XY})]}),P&&G(B,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(P.pct)}% of your token usage came from subagents under '${P.agentType}'.`})}),Q.agentBreakdown.length>0&&z(B,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((U)=>z(K,{children:[G(K,{children:U.agentType.padEnd(24)}),G(K,{children:`${Math.round(U.pct)}%`})]},U.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function JG(){let J=x0(),Z=A0(),{columns:Q}=Z,{rows:Y}=TZ(Z),V=Math.min(Math.max(20,Q-2),80),H=Math.min(50,Math.max(20,V-14)),O=Math.max(15,Math.min(Math.floor(Y*0.8),30)),F=Math.max(5,O-3),[P,U]=c.useState(null),[W,D]=c.useState(null),[M,N]=c.useState(!0),[A,I]=c.useState("day"),[k,j]=c.useState(null),[t,w]=c.useState(!0),[d,m]=c.useState(0),[,$]=c.useReducer((E)=>E+1,0),Q0=yZ.useCallback(async()=>{N(!0),D(null);try{U(await YY())}catch(E){U0(E),D(E?.message||"Failed to load usage data")}finally{N(!1)}},[]),o=yZ.useCallback(async(E)=>{w(!0);try{j(await MJ(E))}catch(b){U0(b),j(null)}finally{w(!1)}},[]);c.useEffect(()=>{Q0()},[Q0]),c.useEffect(()=>{o(A)},[o,A]),c.useEffect(()=>{let E=setInterval(()=>$(),1000);return()=>clearInterval(E)},[]);let Y0=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),z0=()=>m((E)=>Math.max(0,E-F)),$0=()=>m((E)=>E+F),e={context:"Settings",isActive:!0};_("select:previous",Y0,e),_("select:next",n,e),_("scroll:lineUp",Y0,e),_("scroll:lineDown",n,e),_("scroll:pageUp",z0,e),_("scroll:pageDown",$0,e),_("settings:usageDay",()=>I("day"),e),_("settings:usageWeek",()=>I("week"),e),_("settings:retry",()=>{Q0(),o(A)},{context:"Settings",isActive:!!W&&!M});let v0=(E)=>K0.bold(E),X0=(E)=>K0.dim(E),FZ=(E)=>{let b=Math.min(1,Math.max(0,E)),a=Math.floor(b*H),V0="█".repeat(a),W0=" ".repeat(Math.max(0,H-a));return hZ(V0,J.rate_limit_fill,"foreground")+hZ(W0,J.rate_limit_empty,"background")},C=[],p=PJ();C.push(v0("Project total (all sessions)")),C.push("Total cost: "+_0(p.totalCost)+(LJ()?X0(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+OZ(p.totalAPIDuration)),C.push("Total duration (wall): "+OZ(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let R0={};for(let[E,b]of Object.entries(p.modelUsage)){let a=NJ(E),V0=R0[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};V0.inputTokens+=b.inputTokens,V0.outputTokens+=b.outputTokens,V0.cacheReadInputTokens+=b.cacheReadInputTokens,V0.cacheCreationInputTokens+=b.cacheCreationInputTokens,V0.webSearchRequests+=b.webSearchRequests,V0.costUSD+=b.costUSD}let MZ=Object.entries(R0);if(MZ.length>0)C.push("Usage by model:");for(let[E,b]of MZ){let a=`${P0(b.inputTokens)} input, ${P0(b.outputTokens)} output`;if(b.cacheReadInputTokens>0)a+=`, ${P0(b.cacheReadInputTokens)} cache read`;if(b.cacheCreationInputTokens>0)a+=`, ${P0(b.cacheCreationInputTokens)} cache write`;if(b.webSearchRequests>0)a+=`, ${P0(b.webSearchRequests)} web search`;a+=` (${_0(b.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(X0("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),M&&!P)C.push(X0("Loading usage data…"));else if(W)C.push(hZ(`Could not load rate-limit data: ${W}`,J.error,"foreground")),C.push(X0("(cost/usage totals above are unaffected) · r to retry"));else if(P){let E=ZY(),b=E==="max"||E==="team"||E===null,a=[["Current session",P.five_hour],["Current week (all models)",P.seven_day],...b?[["Current week (Sonnet only)",P.seven_day_sonnet]]:[]];if(!a.some(([,e0])=>e0))C.push(X0("/usage is only available for subscription plans."));let V0=!0;for(let[e0,B0]of a){if(!B0||B0.utilization===null)continue;if(!V0)C.push("");if(V0=!1,C.push(v0(e0)),C.push(`${FZ(B0.utilization/100)} ${Math.floor(B0.utilization)}% used`),B0.resets_at)C.push(X0(`Resets ${SZ(B0.resets_at,!0,!0)}`))}let W0=P.extra_usage;if(W0?.is_enabled&&typeof W0.used_credits==="number"&&typeof W0.utilization==="number"&&W0.monthly_limit!=null)C.push(""),C.push(v0("Extra usage")),C.push(`${FZ(W0.utilization/100)} ${Math.floor(W0.utilization)}% used`),C.push(X0(`${_0(W0.used_credits/100,2)} / ${_0(W0.monthly_limit/100,2)} spent`))}C.push("");let g0=A==="day"?"last 24h":"last week";if(C.push(v0("What's driving your token usage?")),C.push(X0("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(X0(`${g0[0].toUpperCase()}${g0.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(X0("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(X0(`No local session activity in the ${g0}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(X0(XY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let b of k.agentBreakdown)C.push(b.agentType.padEnd(24)+`${Math.round(b.pct)}%`)}}let m0=Math.max(0,C.length-F);if(d>m0)m(m0);let p0=Math.min(d,m0),$Z=C.slice(p0,p0+F),G0=p0,t0=C.length-(p0+$Z.length);return z(B,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:G0>0?`↑ ${G0} more above`:" "}),G(JY,{lines:$Z,width:V}),G(K,{dimColor:!0,children:t0>0?`↓ ${t0} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var eX,yZ,c,XY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var GY=r(()=>{sX();oX();Tq();QJ();rX();nX();iX();Fq();XZ();S0();lX();UZ();l0();aX();QJ();IZ();dX();uX();c0();EZ();YJ();tX();AQ();wQ();_Q();uQ();x();eX=u(b0(),1),yZ=u(F0(),1),c=u(F0(),1)});function LK(J){let Z=HY.c(25),{onClose:Q,context:Y,defaultTab:V}=J,[H,O]=T0.useState(V),[F,P]=T0.useState(!1),[U,W]=T0.useState(!1),[D,M]=T0.useState(!1),N=u0(),{rows:A}=TZ(A0()),I=N?A+1:Math.max(15,Math.min(Math.floor(A*0.8),30)),[k]=T0.useState(YG);VY();let j;if(Z[0]!==Q||Z[1]!==F)j=()=>{if(F)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=F,Z[2]=j;else j=Z[2];let t=j,w=!F&&!(H==="Config"&&U)&&!(H==="Gates"&&D),d;if(Z[3]!==w)d={context:"Settings",isActive:w},Z[3]=w,Z[4]=d;else d=Z[4];_("confirm:no",t,d);let m;if(Z[5]!==Y||Z[6]!==k)m=G(DZ,{title:"Status",children:G(uJ,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let $;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)$=G(DZ,{title:"Config",children:G(T0.Suspense,{fallback:null,children:G(ZQ,{context:Y,onClose:Q,setTabsHidden:P,onIsSearchModeChange:W,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=$;else $=Z[11];let Q0;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))Q0=[G(DZ,{title:"Usage",children:G(UJ,{view:"global"})},"usage"),G(DZ,{title:"Session",children:G(UJ,{view:"session"})},"session")],Z[12]=Q0;else Q0=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let Y0;if(Z[15]!==m||Z[16]!==$||Z[17]!==o)Y0=[m,$,...Q0,...o],Z[15]=m,Z[16]=$,Z[17]=o,Z[18]=Y0;else Y0=Z[18];let n=Y0,z0=V!=="Config"&&V!=="Gates",$0=F||N?void 0:I,e;if(Z[19]!==H||Z[20]!==$0||Z[21]!==z0||Z[22]!==n||Z[23]!==F)e=G(KY,{color:"permission",children:G(WY,{color:"permission",selectedTab:H,onTabChange:O,hidden:F,initialHeaderFocused:z0,contentHeight:$0,children:n})}),Z[19]=H,Z[20]=$0,Z[21]=z0,Z[22]=n,Z[23]=F,Z[24]=e;else e=Z[24];return e}function YG(){return cJ().catch(XG)}function XG(){return[]}var HY,T0;var GG=r(()=>{l0();qG();XZ();UZ();QG();dq();dJ();JQ();GY();x();HY=u(b0(),1),T0=u(F0(),1)});
4
+ export{LK as Og,GG as Pg};
@@ -0,0 +1,2 @@
1
+ import{Zd as Jq,be as Tq}from"./cli-1.1.4-8rzb4wqq.mjs";import{ie as zq,je as bq}from"./cli-1.1.4-rhexcyth.mjs";import{AL as S,DL as Nq,GM as D,JM as Cq,OL as s,PL as _q,TL as a,WL as l,_L as t,dM as e,eo as n,fM as Rq,fo as yq,kI as u,lI as fq,mM as qq,qM as Fq,xG as r,yG as Gq}from"./cli-1.1.4-6z69geef.mjs";import{DZ as Bq,H1 as Oq,a1 as F,c1 as C,tZ as i,uZ as Kq}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as v,p4 as R,q4 as p}from"./cli-1.1.4-40z19hth.mjs";import{r4 as Lq}from"./cli-1.1.4-9ms3b4tc.mjs";import{Caa as x,H_ as g,I_ as Zq,Qga as m,U$ as o,U_ as $,V$ as Hq,W_ as Xq,Yga as wq,Zaa as vq}from"./cli-1.1.4-6c3fshef.mjs";import{Cka as Yq,zka as B}from"./cli-1.1.4-53fvpymg.mjs";import{$ka as h,Yka as P,ela as Wq}from"./cli-1.1.4-hzx821eq.mjs";import{Esa as d,Isa as Vq}from"./cli-1.1.4-xxe2ztwq.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Pd,Yz as Qd,Dq as Rd};
@@ -0,0 +1,2 @@
1
+ import{Cfa as k,Ofa as f,Uea as M,Xea as L,pfa as G,qfa as h,ufa as v,vfa as P}from"./cli-1.1.4-6c3fshef.mjs";import{mja as E,vja as x}from"./cli-1.1.4-m312ygm6.mjs";import{hla as T,ula as u}from"./cli-1.1.4-c7a7aezt.mjs";import{Isa as C}from"./cli-1.1.4-xxe2ztwq.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as Hc,Wj as Ic,e as Jc,Xj as Kc,Yj as Lc,jj as Mc};
@@ -0,0 +1,2 @@
1
+ import{Ak as I,eS as R,nK as Y,um as W,xm as P,zk as Q}from"./cli-1.1.4-6z69geef.mjs";import{$ga as B,aha as f}from"./cli-1.1.4-rc28sjtd.mjs";import{Ria as H,Sia as J,lja as F}from"./cli-1.1.4-f7y4b0px.mjs";import{Zqa as $,_ma as v}from"./cli-1.1.4-0r232fpm.mjs";import{Isa as Z}from"./cli-1.1.4-xxe2ztwq.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -0,0 +1,2 @@
1
+ import{P_ as B,R_ as p}from"./cli-1.1.4-6c3fshef.mjs";import{wja as C,zja as y}from"./cli-1.1.4-te2372tc.mjs";import{Cka as M,dka as T,hka as x,zka as V}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as L,ela as c}from"./cli-1.1.4-hzx821eq.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
2
+ export{E as Wb,I as Xb};
@@ -0,0 +1,2 @@
1
+ import{hX as M,jX as X}from"./cli-1.1.4-shrznr3s.mjs";import{Rda as K,Xda as L,eea as W,hba as B,qba as V}from"./cli-1.1.4-6c3fshef.mjs";import{Isa as Q}from"./cli-1.1.4-xxe2ztwq.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as fc,Y as gc};
@@ -0,0 +1,2 @@
1
+ import{Pb as W,Qb as z}from"./cli-1.1.4-788c63fn.mjs";import{Vb as R}from"./cli-1.1.4-5ebh6981.mjs";import{KW as M,LW as w}from"./cli-1.1.4-4qsk7zj5.mjs";import{Cka as j,zka as L}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as Z,ela as H}from"./cli-1.1.4-hzx821eq.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
+ export{I as Kb,k as Lb,D as Mb};
@@ -0,0 +1,2 @@
1
+ import{kla as w,ula as F}from"./cli-1.1.4-c7a7aezt.mjs";import{Isa as D}from"./cli-1.1.4-xxe2ztwq.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
2
+ export{Q as tV,V as uV,L as vV};
@@ -0,0 +1,2 @@
1
+ import{SU as N,TU as p,UU as F,WU as U,XU as A}from"./cli-1.1.4-hbx9ye2g.mjs";import{b9 as L,c9 as P,f9 as O,h9 as V,r9 as x,t9 as H,u9 as k}from"./cli-1.1.4-0earmzgk.mjs";import{Rda as X,Xda as Y,Xea as Z,eea as K,oba as I,qba as D,qfa as M}from"./cli-1.1.4-6c3fshef.mjs";import{kla as $,ula as b}from"./cli-1.1.4-c7a7aezt.mjs";import{Isa as G}from"./cli-1.1.4-xxe2ztwq.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
2
+ export{r as Rc,g as Sc,j as Tc};
@@ -0,0 +1,2 @@
1
+ import{Isa as $}from"./cli-1.1.4-xxe2ztwq.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function o(){return J("K")}function y(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function a(z=1){return z===0?"":J(z,"S")}function n(z=1){return z===0?"":J(z,"T")}function c(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,E,t,r,i,e,s,zz,Jz,Qz,Vz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");t=J("r"),r=J("200~"),i=J("201~"),e=J("I"),s=J("O"),zz=J(">1u"),Jz=J("<u"),Qz=J(">4;2m"),Vz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,Bz;var f=$(()=>{v();P=J(0,"f");Bz=T()});
2
+ export{d as P1,Y as Q1,h as R1,j as S1,H as T1,w as U1,L as V1,x as W1,A as X1,N as Y1,J as Z1,g as _1,I as $1,_ as a2,u as b2,R as c2,C as d2,q as e2,S as f2,o as g2,K as h2,y as i2,a as j2,n as k2,c as l2,t as m2,r as n2,i as o2,e as p2,s as q2,zz as r2,Jz as s2,Qz as t2,Vz as u2,v as v2,T as w2,Bz as x2,f as y2};
@@ -0,0 +1,2 @@
1
+ import{Isa as l}from"./cli-1.1.4-xxe2ztwq.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as n4,E as o4,a as p4,c as q4};
@@ -0,0 +1,2 @@
1
+ import{Isa as K}from"./cli-1.1.4-xxe2ztwq.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
+ export{M as Dka,N as Eka,Q as Fka,R as Gka,S as Hka,L as Ika};
@@ -0,0 +1,21 @@
1
+ import{CE as V,DE as $,eS as F,js as O,ks as Z,nk as L,oK as X}from"./cli-1.1.4-6z69geef.mjs";import{Isa as Y}from"./cli-1.1.4-xxe2ztwq.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
+
3
+ IMPORTANT CONTEXT:
4
+ - You are a separate, lightweight agent spawned to answer this one question
5
+ - The main agent is NOT interrupted - it continues working independently in the background
6
+ - You share the conversation context but are a completely separate instance
7
+ - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
+
9
+ CRITICAL CONSTRAINTS:
10
+ - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
+ - This is a one-off response - there will be no follow-up turns
12
+ - You can ONLY provide information based on what you already know from the conversation context
13
+ - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
+ - If you don't know the answer, say so - do not offer to look it up or investigate
15
+
16
+ Simply answer the question with the information you have.</system-reminder>
17
+
18
+ ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
+
20
+ `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
+ export{W as Sh,b as Th,C as Uh};
@@ -0,0 +1,2 @@
1
+ import{M5 as H,N5 as _,O5 as Y,P5 as y}from"./cli-1.1.4-fk420f57.mjs";import{P_ as M,R_ as f}from"./cli-1.1.4-6c3fshef.mjs";import{Cja as F,Cka as S,Eja as b,lka as P,pka as p,zka as x}from"./cli-1.1.4-53fvpymg.mjs";import{Zka as V,ela as R}from"./cli-1.1.4-hzx821eq.mjs";import{kla as U,ula as g}from"./cli-1.1.4-c7a7aezt.mjs";import{Zqa as A,jpa as D,kpa as W}from"./cli-1.1.4-0r232fpm.mjs";import{Isa as L}from"./cli-1.1.4-xxe2ztwq.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
2
+ export{k as IW,s as JW,o as KW,u as LW,e as MW,qq as NW,Gq as OW,Jq as PW,Kq as QW,Qq as RW,h as SW,$q as TW,m as UW};
@@ -0,0 +1,3 @@
1
+ import{bX as W,gX as p}from"./cli-1.1.4-5dc9c513.mjs";import{C2 as H,E2 as P}from"./cli-1.1.4-m3gsmnfa.mjs";import{Xha as M,iia as Z}from"./cli-1.1.4-qecgken2.mjs";import{Bia as q,Dia as $,Eia as Q,Fia as k}from"./cli-1.1.4-mzzr964a.mjs";import{Isa as Y}from"./cli-1.1.4-xxe2ztwq.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
2
+ Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
3
+ export{K as mc,X as nc,V as oc,b as pc,O as qc};