@claudiolabs/claudin 1.1.37 → 1.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (805) hide show
  1. package/dist/chunks/App-1.1.38-ywjx5zwg.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.38-g8aaewqn.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.38-3xp2vky0.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.38-ng5ew4f1.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.38-pb4syd5b.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.38-v5m7388w.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.38-7xpy0azc.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.38-8c786cbs.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.38-gsmc5cbg.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.38-34mcvk0g.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.38-4tzaxt0t.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.38-5aqykfy4.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.38-hg33ngjd.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.38-e0dgakf3.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.38-s1stmw8z.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.38-24nb99vc.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.38-ph61hy3h.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.38-waf94h4c.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.38-8zeez0vw.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.38-x67yqx1x.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.38-s7acgm11.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.38-xdxg0v37.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.38-ze3nezmq.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.38-4hejnp0f.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.38-9njmqx1q.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.38-2vgbffh0.mjs +1 -0
  27. package/dist/chunks/agents-1.1.38-p9ee8aj6.mjs +3 -0
  28. package/dist/chunks/agents-1.1.38-td2q9455.mjs +110 -0
  29. package/dist/chunks/api-1.1.38-8mx12h9x.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.38-ge5twq4b.mjs +1 -0
  31. package/dist/chunks/auth-1.1.38-qd9cf36r.mjs +1 -0
  32. package/dist/chunks/auth-1.1.38-z9s1s7ya.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.38-k48yn49s.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.38-akdcfhnr.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.38-x4vhee3g.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.38-bvd35tyn.mjs +1 -0
  37. package/dist/chunks/branch-1.1.38-ne2jsk2x.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.38-vdxahb1p.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.38-yf7zjpvf.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.38-eszbcc63.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.38-ywfxh5hm.mjs +64 -0
  42. package/dist/chunks/bridgePointer-1.1.38-jvevzgc3.mjs +1 -0
  43. package/dist/chunks/btw-1.1.38-hqjfa45a.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.38-rq8ak7jk.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.38-dvwdm93b.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.38-pxpr6at8.mjs +4 -0
  47. package/dist/chunks/caches-1.1.38-mxte3pjs.mjs +1 -0
  48. package/dist/chunks/cd-1.1.38-nj8jwk5n.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.38-94tj322p.mjs +1 -0
  50. package/dist/chunks/claudemd-1.1.38-y4ajc9p8.mjs +1 -0
  51. package/dist/chunks/clear-1.1.38-17hx54za.mjs +1 -0
  52. package/dist/chunks/clearTerminal-1.1.38-e3qy2b07.mjs +1 -0
  53. package/dist/chunks/cli-1.1.38-06jvwc43.mjs +2 -0
  54. package/dist/chunks/cli-1.1.38-0cf6ttc6.mjs +2 -0
  55. package/dist/chunks/cli-1.1.38-0dj1dmtd.mjs +2 -0
  56. package/dist/chunks/cli-1.1.38-0q1t1zs8.mjs +2 -0
  57. package/dist/chunks/cli-1.1.38-0x84gwbc.mjs +2 -0
  58. package/dist/chunks/cli-1.1.38-16r42mm1.mjs +2 -0
  59. package/dist/chunks/cli-1.1.38-1bv62dee.mjs +2 -0
  60. package/dist/chunks/cli-1.1.38-1c3thcc3.mjs +10 -0
  61. package/dist/chunks/cli-1.1.38-1e3jefp8.mjs +2 -0
  62. package/dist/chunks/cli-1.1.38-1jc6vgde.mjs +25 -0
  63. package/dist/chunks/cli-1.1.38-1k5hq477.mjs +2 -0
  64. package/dist/chunks/cli-1.1.38-1kce30qe.mjs +2 -0
  65. package/dist/chunks/cli-1.1.38-1wavwd72.mjs +10 -0
  66. package/dist/chunks/cli-1.1.38-20a2a6n3.mjs +2 -0
  67. package/dist/chunks/cli-1.1.38-21x08w6j.mjs +2 -0
  68. package/dist/chunks/cli-1.1.38-2a4wcbby.mjs +2 -0
  69. package/dist/chunks/cli-1.1.38-2jp2m8e4.mjs +2 -0
  70. package/dist/chunks/cli-1.1.38-2p7f0cx3.mjs +2 -0
  71. package/dist/chunks/cli-1.1.38-2x7b4x0w.mjs +3 -0
  72. package/dist/chunks/cli-1.1.38-2zbkp90c.mjs +2 -0
  73. package/dist/chunks/cli-1.1.38-37he9dkq.mjs +2 -0
  74. package/dist/chunks/cli-1.1.38-38f3b9as.mjs +2 -0
  75. package/dist/chunks/cli-1.1.38-3a7tvcmx.mjs +2 -0
  76. package/dist/chunks/cli-1.1.38-3c43sfc3.mjs +34 -0
  77. package/dist/chunks/cli-1.1.38-3d6qg7yb.mjs +7 -0
  78. package/dist/chunks/cli-1.1.38-3ez6bs0j.mjs +39 -0
  79. package/dist/chunks/cli-1.1.38-3gyfttrt.mjs +2 -0
  80. package/dist/chunks/cli-1.1.38-3j9z8bce.mjs +11 -0
  81. package/dist/chunks/cli-1.1.38-3q70db32.mjs +2 -0
  82. package/dist/chunks/cli-1.1.38-41hbjb5d.mjs +3 -0
  83. package/dist/chunks/cli-1.1.38-44ay6q12.mjs +2 -0
  84. package/dist/chunks/cli-1.1.38-4dvqxnwp.mjs +9 -0
  85. package/dist/chunks/cli-1.1.38-4g2k1n93.mjs +133 -0
  86. package/dist/chunks/cli-1.1.38-4vabm3a1.mjs +2 -0
  87. package/dist/chunks/cli-1.1.38-4wdys8df.mjs +2 -0
  88. package/dist/chunks/cli-1.1.38-4x6r8r0g.mjs +21 -0
  89. package/dist/chunks/cli-1.1.38-5zr9x873.mjs +18 -0
  90. package/dist/chunks/cli-1.1.38-62gxd3va.mjs +2 -0
  91. package/dist/chunks/cli-1.1.38-6dwdjwfe.mjs +2 -0
  92. package/dist/chunks/cli-1.1.38-6g33twaj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.38-6hng9dxr.mjs +2 -0
  94. package/dist/chunks/cli-1.1.38-7a0vpxbg.mjs +7 -0
  95. package/dist/chunks/cli-1.1.38-7vygkwbt.mjs +2 -0
  96. package/dist/chunks/cli-1.1.38-7wqs4198.mjs +2 -0
  97. package/dist/chunks/cli-1.1.38-7y52ea97.mjs +2 -0
  98. package/dist/chunks/cli-1.1.38-7zvbnxfm.mjs +2 -0
  99. package/dist/chunks/cli-1.1.38-839xw74z.mjs +24 -0
  100. package/dist/chunks/cli-1.1.38-8br976cg.mjs +2 -0
  101. package/dist/chunks/cli-1.1.38-8jshtkmf.mjs +2 -0
  102. package/dist/chunks/cli-1.1.38-8m9096qg.mjs +6 -0
  103. package/dist/chunks/cli-1.1.38-91q945ws.mjs +3 -0
  104. package/dist/chunks/cli-1.1.38-92g30wbv.mjs +2 -0
  105. package/dist/chunks/cli-1.1.38-9p14cyab.mjs +2 -0
  106. package/dist/chunks/cli-1.1.38-9x263zph.mjs +10 -0
  107. package/dist/chunks/cli-1.1.38-a2j7607w.mjs +2 -0
  108. package/dist/chunks/cli-1.1.38-a678cgp1.mjs +251 -0
  109. package/dist/chunks/cli-1.1.38-a9wkqach.mjs +2 -0
  110. package/dist/chunks/cli-1.1.38-abavft6n.mjs +6 -0
  111. package/dist/chunks/cli-1.1.38-ac33weys.mjs +2 -0
  112. package/dist/chunks/cli-1.1.38-an3fdzsz.mjs +2 -0
  113. package/dist/chunks/cli-1.1.38-aspnz4m6.mjs +2 -0
  114. package/dist/chunks/cli-1.1.38-axhwttsc.mjs +9 -0
  115. package/dist/chunks/cli-1.1.38-azkppcr1.mjs +2 -0
  116. package/dist/chunks/cli-1.1.38-azv9c3jv.mjs +2 -0
  117. package/dist/chunks/cli-1.1.38-b56dgy8f.mjs +2 -0
  118. package/dist/chunks/cli-1.1.38-c0w5gdqr.mjs +2 -0
  119. package/dist/chunks/cli-1.1.38-c7x1esyq.mjs +6 -0
  120. package/dist/chunks/cli-1.1.38-cmnad0aj.mjs +8 -0
  121. package/dist/chunks/cli-1.1.38-cp5m26rk.mjs +3 -0
  122. package/dist/chunks/cli-1.1.38-cpq50ma6.mjs +15 -0
  123. package/dist/chunks/cli-1.1.38-cq1f1j06.mjs +2 -0
  124. package/dist/chunks/cli-1.1.38-ctcgmvy1.mjs +2 -0
  125. package/dist/chunks/cli-1.1.38-d3xjq2jk.mjs +4 -0
  126. package/dist/chunks/cli-1.1.38-dfcp3asv.mjs +17 -0
  127. package/dist/chunks/cli-1.1.38-dggxcj2x.mjs +2 -0
  128. package/dist/chunks/cli-1.1.38-dxtw8tjv.mjs +2 -0
  129. package/dist/chunks/cli-1.1.38-dz4qs0ht.mjs +2 -0
  130. package/dist/chunks/cli-1.1.38-e09rc4b8.mjs +20 -0
  131. package/dist/chunks/cli-1.1.38-e0q3xyay.mjs +2 -0
  132. package/dist/chunks/cli-1.1.38-e5by1ynv.mjs +6 -0
  133. package/dist/chunks/cli-1.1.38-e6j30tde.mjs +3 -0
  134. package/dist/chunks/cli-1.1.38-e84gxv9a.mjs +2 -0
  135. package/dist/chunks/cli-1.1.38-eafpexwg.mjs +2 -0
  136. package/dist/chunks/cli-1.1.38-exexvj4k.mjs +5 -0
  137. package/dist/chunks/cli-1.1.38-f6be5pxz.mjs +2 -0
  138. package/dist/chunks/cli-1.1.38-f7fq44hz.mjs +2 -0
  139. package/dist/chunks/cli-1.1.38-fembxywm.mjs +2 -0
  140. package/dist/chunks/cli-1.1.38-ffkc8ker.mjs +42 -0
  141. package/dist/chunks/cli-1.1.38-fgwfzs50.mjs +2 -0
  142. package/dist/chunks/cli-1.1.38-fr1kxnk2.mjs +2 -0
  143. package/dist/chunks/cli-1.1.38-frcvjcgw.mjs +2 -0
  144. package/dist/chunks/cli-1.1.38-fyw4xbm7.mjs +3 -0
  145. package/dist/chunks/cli-1.1.38-g94v4hq7.mjs +2 -0
  146. package/dist/chunks/cli-1.1.38-gdcz0rss.mjs +2 -0
  147. package/dist/chunks/cli-1.1.38-gp49bfxk.mjs +2 -0
  148. package/dist/chunks/cli-1.1.38-gqpmcnnv.mjs +15 -0
  149. package/dist/chunks/cli-1.1.38-gtjexepq.mjs +2 -0
  150. package/dist/chunks/cli-1.1.38-h013mt1h.mjs +2 -0
  151. package/dist/chunks/cli-1.1.38-h0643t2a.mjs +63 -0
  152. package/dist/chunks/cli-1.1.38-h1fqbjjb.mjs +2 -0
  153. package/dist/chunks/cli-1.1.38-h2f789qa.mjs +2 -0
  154. package/dist/chunks/cli-1.1.38-h6qtpp5r.mjs +2 -0
  155. package/dist/chunks/cli-1.1.38-h83nx1a5.mjs +2 -0
  156. package/dist/chunks/cli-1.1.38-haa4vwxj.mjs +2 -0
  157. package/dist/chunks/cli-1.1.38-hkbb3sr7.mjs +2 -0
  158. package/dist/chunks/cli-1.1.38-hvc5ed6c.mjs +2 -0
  159. package/dist/chunks/cli-1.1.38-jakpq48k.mjs +2 -0
  160. package/dist/chunks/cli-1.1.38-jr0vb3er.mjs +4 -0
  161. package/dist/chunks/cli-1.1.38-jrf85w1a.mjs +2 -0
  162. package/dist/chunks/cli-1.1.38-ka1w0zwc.mjs +2 -0
  163. package/dist/chunks/cli-1.1.38-kcykd1e5.mjs +2 -0
  164. package/dist/chunks/cli-1.1.38-kjt1gn6d.mjs +135 -0
  165. package/dist/chunks/cli-1.1.38-kns8wjke.mjs +2 -0
  166. package/dist/chunks/cli-1.1.38-kqkm7ndz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.38-m66mmsr6.mjs +2 -0
  168. package/dist/chunks/cli-1.1.38-m9k89rb6.mjs +2 -0
  169. package/dist/chunks/cli-1.1.38-mbfqg6za.mjs +3 -0
  170. package/dist/chunks/cli-1.1.38-md7mbf9q.mjs +2 -0
  171. package/dist/chunks/cli-1.1.38-mh6a6g83.mjs +4 -0
  172. package/dist/chunks/cli-1.1.38-mnr9k9j8.mjs +2 -0
  173. package/dist/chunks/cli-1.1.38-n5tx4p12.mjs +15 -0
  174. package/dist/chunks/cli-1.1.38-n9xftqbp.mjs +2 -0
  175. package/dist/chunks/cli-1.1.38-ndbzsvf1.mjs +4 -0
  176. package/dist/chunks/cli-1.1.38-nmmd7xh9.mjs +4 -0
  177. package/dist/chunks/cli-1.1.38-npc1f8rb.mjs +3 -0
  178. package/dist/chunks/cli-1.1.38-nr3yx2kb.mjs +4 -0
  179. package/dist/chunks/cli-1.1.38-nzbcas3j.mjs +2 -0
  180. package/dist/chunks/cli-1.1.38-pab9ct4p.mjs +2 -0
  181. package/dist/chunks/cli-1.1.38-pah268nz.mjs +2 -0
  182. package/dist/chunks/cli-1.1.38-pdv3syxb.mjs +2 -0
  183. package/dist/chunks/cli-1.1.38-pe2vd8sk.mjs +2 -0
  184. package/dist/chunks/cli-1.1.38-pksnvm8s.mjs +2 -0
  185. package/dist/chunks/cli-1.1.38-pnngv0r7.mjs +2 -0
  186. package/dist/chunks/cli-1.1.38-q3emeb23.mjs +2 -0
  187. package/dist/chunks/cli-1.1.38-q3yhkwkh.mjs +3 -0
  188. package/dist/chunks/cli-1.1.38-q8ewcabe.mjs +2 -0
  189. package/dist/chunks/cli-1.1.38-qackcmc3.mjs +2 -0
  190. package/dist/chunks/cli-1.1.38-qebn65cx.mjs +50 -0
  191. package/dist/chunks/cli-1.1.38-qfpkjbx1.mjs +2 -0
  192. package/dist/chunks/cli-1.1.38-qv0rqvhj.mjs +4 -0
  193. package/dist/chunks/cli-1.1.38-qw1jxc9j.mjs +2 -0
  194. package/dist/chunks/cli-1.1.38-qwkjfytz.mjs +2 -0
  195. package/dist/chunks/cli-1.1.38-qyg5n01q.mjs +2 -0
  196. package/dist/chunks/cli-1.1.38-r3r6jmgz.mjs +2 -0
  197. package/dist/chunks/cli-1.1.38-rp0tsnde.mjs +2 -0
  198. package/dist/chunks/cli-1.1.38-rvjmh1y0.mjs +4 -0
  199. package/dist/chunks/cli-1.1.38-s1nggz9g.mjs +16 -0
  200. package/dist/chunks/cli-1.1.38-s8evhc7a.mjs +2 -0
  201. package/dist/chunks/cli-1.1.38-sjrfgskz.mjs +2 -0
  202. package/dist/chunks/cli-1.1.38-sywjrgh0.mjs +2 -0
  203. package/dist/chunks/cli-1.1.38-t8k5snq9.mjs +24 -0
  204. package/dist/chunks/cli-1.1.38-tk968ykv.mjs +5497 -0
  205. package/dist/chunks/cli-1.1.38-tvh77h3r.mjs +2 -0
  206. package/dist/chunks/cli-1.1.38-v40xwwad.mjs +2 -0
  207. package/dist/chunks/cli-1.1.38-vbxptsq5.mjs +2 -0
  208. package/dist/chunks/cli-1.1.38-wbww08bk.mjs +2 -0
  209. package/dist/chunks/cli-1.1.38-ww8j7xpn.mjs +2 -0
  210. package/dist/chunks/cli-1.1.38-wwezb1bz.mjs +2 -0
  211. package/dist/chunks/cli-1.1.38-x0j2v4e5.mjs +2 -0
  212. package/dist/chunks/cli-1.1.38-xag86y98.mjs +24 -0
  213. package/dist/chunks/cli-1.1.38-xf78kmy6.mjs +2 -0
  214. package/dist/chunks/cli-1.1.38-xpar3nmx.mjs +2 -0
  215. package/dist/chunks/cli-1.1.38-xpjv8r2g.mjs +2 -0
  216. package/dist/chunks/cli-1.1.38-xr1c1bn4.mjs +2 -0
  217. package/dist/chunks/cli-1.1.38-xvwb3d6n.mjs +2 -0
  218. package/dist/chunks/cli-1.1.38-y1w55df3.mjs +2 -0
  219. package/dist/chunks/cli-1.1.38-y3k2y9f2.mjs +2 -0
  220. package/dist/chunks/cli-1.1.38-y57qzkxr.mjs +2 -0
  221. package/dist/chunks/cli-1.1.38-y66mw08s.mjs +2 -0
  222. package/dist/chunks/cli-1.1.38-y79rqp8p.mjs +60 -0
  223. package/dist/chunks/cli-1.1.38-y7ahpffc.mjs +2 -0
  224. package/dist/chunks/cli-1.1.38-yctmyw1a.mjs +25 -0
  225. package/dist/chunks/cli-1.1.38-yfhvhcvt.mjs +5 -0
  226. package/dist/chunks/cli-1.1.38-ygyme6j6.mjs +2 -0
  227. package/dist/chunks/cli-1.1.38-yhp9b0b0.mjs +2 -0
  228. package/dist/chunks/cli-1.1.38-yk5s276s.mjs +2 -0
  229. package/dist/chunks/cli-1.1.38-z02gnn41.mjs +2 -0
  230. package/dist/chunks/cli-1.1.38-z2mnaz67.mjs +2 -0
  231. package/dist/chunks/cli-1.1.38-z6abxdx3.mjs +2 -0
  232. package/dist/chunks/cli-1.1.38-z8x4q5cc.mjs +12 -0
  233. package/dist/chunks/cli-1.1.38-z9faf3ft.mjs +6 -0
  234. package/dist/chunks/cli-1.1.38-zj7fa197.mjs +2 -0
  235. package/dist/chunks/cli-1.1.38-zx5nqvq6.mjs +2 -0
  236. package/dist/chunks/client-1.1.38-7hcrtb3q.mjs +1 -0
  237. package/dist/chunks/color-1.1.38-eqrtxm9k.mjs +1 -0
  238. package/dist/chunks/compact-1.1.38-ya34rk57.mjs +2 -0
  239. package/dist/chunks/config-1.1.38-bbe0h0fj.mjs +1 -0
  240. package/dist/chunks/config-1.1.38-bfaptzc8.mjs +1 -0
  241. package/dist/chunks/constants-1.1.38-yytvwzgs.mjs +1 -0
  242. package/dist/chunks/context-1.1.38-2mgwzmk2.mjs +1 -0
  243. package/dist/chunks/context-noninteractive-1.1.38-8bj0e1ac.mjs +1 -0
  244. package/dist/chunks/conversation-1.1.38-9hdq28pm.mjs +1 -0
  245. package/dist/chunks/copilotHeaders-1.1.38-s4pj5tsz.mjs +1 -0
  246. package/dist/chunks/copy-1.1.38-f83q42a2.mjs +9 -0
  247. package/dist/chunks/cost-1.1.38-8wheqk0q.mjs +1 -0
  248. package/dist/chunks/createSession-1.1.38-m815jqhf.mjs +1 -0
  249. package/dist/chunks/debug-1.1.38-0nc58m79.mjs +1 -0
  250. package/dist/chunks/defaultActionDeps-1.1.38-t4spryyh.mjs +1458 -0
  251. package/dist/chunks/desktop-1.1.38-6tbjry9x.mjs +2 -0
  252. package/dist/chunks/detectRepository-1.1.38-fkd9xdma.mjs +1 -0
  253. package/dist/chunks/detection-1.1.38-21frnq82.mjs +1 -0
  254. package/dist/chunks/diff-1.1.38-bqd4vh6q.mjs +1 -0
  255. package/dist/chunks/doctor-1.1.38-yedjk1t9.mjs +1 -0
  256. package/dist/chunks/doctorDiagnostic-1.1.38-2tq437dy.mjs +1 -0
  257. package/dist/chunks/earlyInput-1.1.38-ag144tcy.mjs +1 -0
  258. package/dist/chunks/effort-1.1.38-w8zmwjyn.mjs +13 -0
  259. package/dist/chunks/engine-1.1.38-9p06hk6t.mjs +1 -0
  260. package/dist/chunks/envUtils-1.1.38-0x5t3jcn.mjs +1 -0
  261. package/dist/chunks/errors-1.1.38-x5yfskn2.mjs +1 -0
  262. package/dist/chunks/exampleCommands-1.1.38-j3f50kg4.mjs +1 -0
  263. package/dist/chunks/execFileNoThrow-1.1.38-vtsaz9ex.mjs +1 -0
  264. package/dist/chunks/exit-1.1.38-2az07cgq.mjs +1 -0
  265. package/dist/chunks/explorer-1.1.38-f8v6fw0n.mjs +1 -0
  266. package/dist/chunks/export-1.1.38-ryfsevs9.mjs +2 -0
  267. package/dist/chunks/fast-1.1.38-pqjeb7br.mjs +1 -0
  268. package/dist/chunks/feedback-1.1.38-a735me7a.mjs +16 -0
  269. package/dist/chunks/git-1.1.38-ea24mp87.mjs +1 -0
  270. package/dist/chunks/githubModelsCredentials-1.1.38-mrk9kw4h.mjs +1 -0
  271. package/dist/chunks/goal-1.1.38-t7b2x0m7.mjs +4 -0
  272. package/dist/chunks/headless-1.1.38-xa7n2h6a.mjs +2 -0
  273. package/dist/chunks/heapdump-1.1.38-0kkahje0.mjs +6 -0
  274. package/dist/chunks/help-1.1.38-c6fc5w2g.mjs +1 -0
  275. package/dist/chunks/hooks-1.1.38-020dm4m5.mjs +79 -0
  276. package/dist/chunks/hooks-1.1.38-d6nx1th8.mjs +1 -0
  277. package/dist/chunks/ide-1.1.38-w88jdkwh.mjs +3 -0
  278. package/dist/chunks/image-processor-napi-1.1.38-dr7f0p7d.mjs +1 -0
  279. package/dist/chunks/import-1.1.38-tjgkgqtj.mjs +260 -0
  280. package/dist/chunks/inboundAttachments-1.1.38-96y0me8c.mjs +1 -0
  281. package/dist/chunks/index-1.1.38-0p1da46q.mjs +1 -0
  282. package/dist/chunks/index-1.1.38-0vkksyqf.mjs +1 -0
  283. package/dist/chunks/index-1.1.38-32wb94y5.mjs +1 -0
  284. package/dist/chunks/index-1.1.38-b7v4mc41.mjs +1 -0
  285. package/dist/chunks/index-1.1.38-d5147beb.mjs +1 -0
  286. package/dist/chunks/index-1.1.38-e7f6p4gc.mjs +2 -0
  287. package/dist/chunks/index-1.1.38-fmvxdssr.mjs +1 -0
  288. package/dist/chunks/index-1.1.38-fx4e6n5y.mjs +9 -0
  289. package/dist/chunks/index-1.1.38-g6wrndbn.mjs +1 -0
  290. package/dist/chunks/index-1.1.38-h6safnqh.mjs +1 -0
  291. package/dist/chunks/index-1.1.38-he0r1v5h.mjs +1 -0
  292. package/dist/chunks/index-1.1.38-nqht0jy4.mjs +1 -0
  293. package/dist/chunks/index-1.1.38-nzxyzk3n.mjs +1 -0
  294. package/dist/chunks/index-1.1.38-psktz1tc.mjs +23 -0
  295. package/dist/chunks/index-1.1.38-r550x6ay.mjs +2 -0
  296. package/dist/chunks/index-1.1.38-t56hya6b.mjs +9 -0
  297. package/dist/chunks/index-1.1.38-t8ehet13.mjs +1 -0
  298. package/dist/chunks/index-1.1.38-trn75xj8.mjs +1 -0
  299. package/dist/chunks/index-1.1.38-tz1ab367.mjs +1 -0
  300. package/dist/chunks/index-1.1.38-wj6bvgqh.mjs +1 -0
  301. package/dist/chunks/index-1.1.38-wwvwtd47.mjs +30 -0
  302. package/dist/chunks/index-1.1.38-x4crzvcp.mjs +5 -0
  303. package/dist/chunks/index-1.1.38-xwfqwn8f.mjs +1 -0
  304. package/dist/chunks/init-1.1.38-kt9fktc1.mjs +2 -0
  305. package/dist/chunks/initReplBridge-1.1.38-89egcf9a.mjs +1 -0
  306. package/dist/chunks/ink-1.1.38-jgsp2t7f.mjs +1 -0
  307. package/dist/chunks/insights-1.1.38-hq19aerm.mjs +870 -0
  308. package/dist/chunks/install-1.1.38-gyyxk8ck.mjs +1 -0
  309. package/dist/chunks/install-github-app-1.1.38-f2jf37sk.mjs +149 -0
  310. package/dist/chunks/install-slack-app-1.1.38-tset69kh.mjs +1 -0
  311. package/dist/chunks/interactiveHelpers-1.1.38-m06ry3jx.mjs +1 -0
  312. package/dist/chunks/latestVersionCache-1.1.38-1c7vvamf.mjs +1 -0
  313. package/dist/chunks/loadAgentsDir-1.1.38-0bgzxgy4.mjs +1 -0
  314. package/dist/chunks/loadPluginHooks-1.1.38-07neaje5.mjs +1 -0
  315. package/dist/chunks/log-1.1.38-7yxczk1m.mjs +1 -0
  316. package/dist/chunks/main-1.1.38-ckkpf6pm.mjs +1 -0
  317. package/dist/chunks/managedEnv-1.1.38-wgkdf5th.mjs +1 -0
  318. package/dist/chunks/mcp-1.1.38-5g1dkaq3.mjs +4 -0
  319. package/dist/chunks/mcp-1.1.38-pv2q4v1t.mjs +1 -0
  320. package/dist/chunks/mcp-1.1.38-rw32ezwj.mjs +17 -0
  321. package/dist/chunks/mcpb-1.1.38-2j8knvey.mjs +1 -0
  322. package/dist/chunks/memory-1.1.38-ee240zz4.mjs +128 -0
  323. package/dist/chunks/model-1.1.38-0ap9xmp3.mjs +1 -0
  324. package/dist/chunks/model-1.1.38-5qmke302.mjs +2 -0
  325. package/dist/chunks/new-1.1.38-ahnzb47c.mjs +1 -0
  326. package/dist/chunks/node-1.1.38-8hxn3e6r.mjs +15 -0
  327. package/dist/chunks/node-1.1.38-v0zbmtyr.mjs +1 -0
  328. package/dist/chunks/oauth-1.1.38-5me1vtg3.mjs +1 -0
  329. package/dist/chunks/openaiShim-1.1.38-12snq1gc.mjs +14 -0
  330. package/dist/chunks/output-style-1.1.38-zb5mtnss.mjs +1 -0
  331. package/dist/chunks/package-V72LKFNW-1.1.38-q7hcwdtx.mjs +1 -0
  332. package/dist/chunks/permissions-1.1.38-5kw7w85c.mjs +1 -0
  333. package/dist/chunks/permissions-1.1.38-nk2ndszr.mjs +3 -0
  334. package/dist/chunks/plan-1.1.38-z3dqqjh7.mjs +1 -0
  335. package/dist/chunks/plist-1.1.38-56sqgq6h.mjs +1 -0
  336. package/dist/chunks/plugin-1.1.38-03de52xp.mjs +29 -0
  337. package/dist/chunks/pluginStartupCheck-1.1.38-0v5j57bh.mjs +1 -0
  338. package/dist/chunks/plugins-1.1.38-zmnat29k.mjs +9 -0
  339. package/dist/chunks/preActionHook-1.1.38-s4pt4ahn.mjs +2 -0
  340. package/dist/chunks/print-1.1.38-9ar632da.mjs +57 -0
  341. package/dist/chunks/process-1.1.38-ndydtgs9.mjs +1 -0
  342. package/dist/chunks/processBashCommand-1.1.38-xj8xy6j7.mjs +1 -0
  343. package/dist/chunks/processSlashCommand-1.1.38-rq94k8j4.mjs +9 -0
  344. package/dist/chunks/prompt-1.1.38-q5jst5dw.mjs +1 -0
  345. package/dist/chunks/prompt-1.1.38-qwzt31qc.mjs +1 -0
  346. package/dist/chunks/prompts-1.1.38-brvz08qv.mjs +1 -0
  347. package/dist/chunks/provider-1.1.38-zvnh7rf6.mjs +2 -0
  348. package/dist/chunks/providerProfiles-1.1.38-a0jrr70y.mjs +1 -0
  349. package/dist/chunks/providerValidation-1.1.38-qj7m9ae0.mjs +6 -0
  350. package/dist/chunks/registerSubcommands-1.1.38-kn98yfrh.mjs +26 -0
  351. package/dist/chunks/registry-1.1.38-02xa1gxq.mjs +1 -0
  352. package/dist/chunks/release-notes-1.1.38-kmxj255k.mjs +5 -0
  353. package/dist/chunks/reload-plugins-1.1.38-n429fwj8.mjs +2 -0
  354. package/dist/chunks/remote-env-1.1.38-4ecvn8ra.mjs +1 -0
  355. package/dist/chunks/rename-1.1.38-ah715pv0.mjs +1 -0
  356. package/dist/chunks/replLauncher-1.1.38-d6n16rnp.mjs +1 -0
  357. package/dist/chunks/resume-1.1.38-tv3f819g.mjs +2 -0
  358. package/dist/chunks/rewind-1.1.38-6wc124dk.mjs +1 -0
  359. package/dist/chunks/rootOptions-1.1.38-d7ta609y.mjs +1 -0
  360. package/dist/chunks/runWorkflowHeadless-1.1.38-n01n145x.mjs +10 -0
  361. package/dist/chunks/sandbox-adapter-1.1.38-pyjs3awv.mjs +1 -0
  362. package/dist/chunks/sandbox-toggle-1.1.38-54tec9n4.mjs +1 -0
  363. package/dist/chunks/session-1.1.38-d20mp4b0.mjs +2 -0
  364. package/dist/chunks/sessionStorage-1.1.38-44je31rv.mjs +1 -0
  365. package/dist/chunks/settings-1.1.38-x6fb5kk1.mjs +1 -0
  366. package/dist/chunks/setup-1.1.38-cryd3k7j.mjs +12 -0
  367. package/dist/chunks/sinks-1.1.38-xt06cywv.mjs +1 -0
  368. package/dist/chunks/skills-1.1.38-7kbrgpe5.mjs +1 -0
  369. package/dist/chunks/startupProfiler-1.1.38-w24hm0h1.mjs +1 -0
  370. package/dist/chunks/startupUpdateCheck-1.1.38-pmp6wqj9.mjs +1 -0
  371. package/dist/chunks/state-1.1.38-ttzekhjw.mjs +1 -0
  372. package/dist/chunks/stats-1.1.38-w347vz1w.mjs +1 -0
  373. package/dist/chunks/status-1.1.38-h7pzkbmj.mjs +1 -0
  374. package/dist/chunks/stickers-1.1.38-p6n5mskj.mjs +1 -0
  375. package/dist/chunks/subprocessEnv-1.1.38-3b6nr5kd.mjs +1 -0
  376. package/dist/chunks/tasks-1.1.38-jrznh7eb.mjs +1 -0
  377. package/dist/chunks/teamHelpers-1.1.38-b920q217.mjs +1 -0
  378. package/dist/chunks/teammateModeSnapshot-1.1.38-30rjbjkp.mjs +1 -0
  379. package/dist/chunks/teleport-1.1.38-kqj15kwz.mjs +1 -0
  380. package/dist/chunks/terminalSetup-1.1.38-a1j9tav3.mjs +1 -0
  381. package/dist/chunks/theme-1.1.38-zqgshtd8.mjs +1 -0
  382. package/dist/chunks/toolPool-1.1.38-rjxnejc9.mjs +1 -0
  383. package/dist/chunks/toolSearch-1.1.38-bsgpwrqw.mjs +1 -0
  384. package/dist/chunks/tools-1.1.38-hphgtq98.mjs +1 -0
  385. package/dist/chunks/turndown.cjs-1.1.38-6zmefgdf.mjs +69 -0
  386. package/dist/chunks/types-1.1.38-yaz6xzxg.mjs +1 -0
  387. package/dist/chunks/update-1.1.38-qkmfgy3f.mjs +72 -0
  388. package/dist/chunks/upload-1.1.38-25jm1g5x.mjs +7 -0
  389. package/dist/chunks/upstreamproxy-1.1.38-kdzcx35q.mjs +14 -0
  390. package/dist/chunks/usage-1.1.38-17yqaf62.mjs +1 -0
  391. package/dist/chunks/util-1.1.38-e3nemqk5.mjs +1 -0
  392. package/dist/chunks/utils-1.1.38-709jv8e9.mjs +1 -0
  393. package/dist/chunks/vim-1.1.38-jtz13d73.mjs +1 -0
  394. package/dist/chunks/watchLoop-1.1.38-fb6heqjg.mjs +13 -0
  395. package/dist/chunks/wiki-1.1.38-fpkcyk67.mjs +132 -0
  396. package/dist/chunks/workflows-1.1.38-mj7dax7d.mjs +1 -0
  397. package/dist/chunks/worktree-1.1.38-9zf6zp7r.mjs +1 -0
  398. package/dist/chunks/worktreeModeEnabled-1.1.38-01veveaw.mjs +1 -0
  399. package/dist/chunks/wrapper-1.1.38-7cvdwcn2.mjs +7 -0
  400. package/dist/cli.mjs +2 -2
  401. package/dist/help.txt +1 -1
  402. package/package.json +9 -9
  403. package/dist/chunks/App-1.1.37-gvacrdsk.mjs +0 -1
  404. package/dist/chunks/ApproveApiKey-1.1.37-rnnbn40a.mjs +0 -1
  405. package/dist/chunks/AutoModeOptInDialog-1.1.37-g6ta4m2v.mjs +0 -1
  406. package/dist/chunks/BypassPermissionsModeDialog-1.1.37-pk4aghdz.mjs +0 -1
  407. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.37-hymvtk1w.mjs +0 -1
  408. package/dist/chunks/ConsoleOAuthFlow-1.1.37-p8fwd4tm.mjs +0 -1
  409. package/dist/chunks/DiffDialog-1.1.37-hb26z7b7.mjs +0 -6
  410. package/dist/chunks/Doctor-1.1.37-g60gf1vr.mjs +0 -1
  411. package/dist/chunks/ExplorerDialog-1.1.37-w0ek8efz.mjs +0 -6
  412. package/dist/chunks/ITermBackend-1.1.37-tp4qnkf7.mjs +0 -1
  413. package/dist/chunks/InvalidConfigDialog-1.1.37-5ds363er.mjs +0 -1
  414. package/dist/chunks/InvalidSettingsDialog-1.1.37-qaz2nf35.mjs +0 -1
  415. package/dist/chunks/MigrationDialog-1.1.37-cxe5gn9z.mjs +0 -1
  416. package/dist/chunks/Onboarding-1.1.37-jsrbvfaa.mjs +0 -1
  417. package/dist/chunks/ProviderManager-1.1.37-kmfet3bc.mjs +0 -1
  418. package/dist/chunks/REPL-1.1.37-mx8g4asq.mjs +0 -1
  419. package/dist/chunks/ResumeConversation-1.1.37-1j1egpzv.mjs +0 -1
  420. package/dist/chunks/TeleportProgress-1.1.37-s6gpj3tk.mjs +0 -1
  421. package/dist/chunks/TeleportRepoMismatchDialog-1.1.37-06r6s8k3.mjs +0 -1
  422. package/dist/chunks/TeleportResumeWrapper-1.1.37-vk5478hq.mjs +0 -1
  423. package/dist/chunks/TmuxBackend-1.1.37-08ypek7f.mjs +0 -9
  424. package/dist/chunks/ToolSearchTool-1.1.37-j3j1tnac.mjs +0 -1
  425. package/dist/chunks/TrustDialog-1.1.37-dy4r3sef.mjs +0 -1
  426. package/dist/chunks/activeProvider-1.1.37-r4p9gt6p.mjs +0 -1
  427. package/dist/chunks/add-dir-1.1.37-hsgnnqm5.mjs +0 -1
  428. package/dist/chunks/agentTypes-1.1.37-e0zrjgxd.mjs +0 -1
  429. package/dist/chunks/agents-1.1.37-770krh9a.mjs +0 -110
  430. package/dist/chunks/agents-1.1.37-n5gk09na.mjs +0 -3
  431. package/dist/chunks/api-1.1.37-bwy6n0v8.mjs +0 -1
  432. package/dist/chunks/asciicast-1.1.37-t7zpdmt1.mjs +0 -1
  433. package/dist/chunks/auth-1.1.37-apskerg1.mjs +0 -1
  434. package/dist/chunks/auth-1.1.37-t0yjn0qg.mjs +0 -1
  435. package/dist/chunks/autoMode-1.1.37-a94rgbvb.mjs +0 -52
  436. package/dist/chunks/autoModeSetup-1.1.37-8g5tdnzc.mjs +0 -44
  437. package/dist/chunks/autoUpdater-1.1.37-pe8hzmys.mjs +0 -1
  438. package/dist/chunks/backgroundHousekeeping-1.1.37-r98mdthk.mjs +0 -1
  439. package/dist/chunks/branch-1.1.37-1a761dqp.mjs +0 -4
  440. package/dist/chunks/bridge-1.1.37-djx2nh0s.mjs +0 -2
  441. package/dist/chunks/bridgeConfig-1.1.37-wsz2v4gw.mjs +0 -1
  442. package/dist/chunks/bridgeEnabled-1.1.37-pht9tpgd.mjs +0 -1
  443. package/dist/chunks/bridgeMain-1.1.37-btaaq723.mjs +0 -64
  444. package/dist/chunks/bridgePointer-1.1.37-97bjx2gt.mjs +0 -1
  445. package/dist/chunks/btw-1.1.37-kzbnzfwv.mjs +0 -1
  446. package/dist/chunks/buddy-1.1.37-r155thdv.mjs +0 -3
  447. package/dist/chunks/cache-probe-1.1.37-szdjedc6.mjs +0 -21
  448. package/dist/chunks/cacheStats-1.1.37-zcq6bfv7.mjs +0 -4
  449. package/dist/chunks/caches-1.1.37-m3bsp8q4.mjs +0 -1
  450. package/dist/chunks/cd-1.1.37-bgh3jr0j.mjs +0 -3
  451. package/dist/chunks/claudeDesktop-1.1.37-d5rmp7j9.mjs +0 -1
  452. package/dist/chunks/claudemd-1.1.37-zqxz2brp.mjs +0 -1
  453. package/dist/chunks/clear-1.1.37-a28jd9f5.mjs +0 -1
  454. package/dist/chunks/clearTerminal-1.1.37-1vwtn9rv.mjs +0 -1
  455. package/dist/chunks/cli-1.1.37-07v28734.mjs +0 -24
  456. package/dist/chunks/cli-1.1.37-0g18ppvn.mjs +0 -2
  457. package/dist/chunks/cli-1.1.37-0t8trtcs.mjs +0 -135
  458. package/dist/chunks/cli-1.1.37-160hvn22.mjs +0 -2
  459. package/dist/chunks/cli-1.1.37-16r2w6eh.mjs +0 -2
  460. package/dist/chunks/cli-1.1.37-16ycb15m.mjs +0 -2
  461. package/dist/chunks/cli-1.1.37-1esm8vyn.mjs +0 -2
  462. package/dist/chunks/cli-1.1.37-1nx0h24b.mjs +0 -34
  463. package/dist/chunks/cli-1.1.37-1sn4ganc.mjs +0 -6
  464. package/dist/chunks/cli-1.1.37-22erav9m.mjs +0 -2
  465. package/dist/chunks/cli-1.1.37-240c02km.mjs +0 -4
  466. package/dist/chunks/cli-1.1.37-26cht952.mjs +0 -4
  467. package/dist/chunks/cli-1.1.37-2gsgt0yq.mjs +0 -2
  468. package/dist/chunks/cli-1.1.37-2xne39h9.mjs +0 -6
  469. package/dist/chunks/cli-1.1.37-37swmf5n.mjs +0 -2
  470. package/dist/chunks/cli-1.1.37-39bw2pz6.mjs +0 -2
  471. package/dist/chunks/cli-1.1.37-3j7g0j34.mjs +0 -2
  472. package/dist/chunks/cli-1.1.37-3k4d07av.mjs +0 -2
  473. package/dist/chunks/cli-1.1.37-3pyzesy7.mjs +0 -2
  474. package/dist/chunks/cli-1.1.37-41q5f236.mjs +0 -63
  475. package/dist/chunks/cli-1.1.37-45phxq6t.mjs +0 -2
  476. package/dist/chunks/cli-1.1.37-46pcgpjk.mjs +0 -5
  477. package/dist/chunks/cli-1.1.37-4829k99z.mjs +0 -8
  478. package/dist/chunks/cli-1.1.37-4cwzzzkp.mjs +0 -2
  479. package/dist/chunks/cli-1.1.37-4cyg3kha.mjs +0 -15
  480. package/dist/chunks/cli-1.1.37-4s29t03n.mjs +0 -2
  481. package/dist/chunks/cli-1.1.37-519yanf4.mjs +0 -2
  482. package/dist/chunks/cli-1.1.37-51efrsrh.mjs +0 -2
  483. package/dist/chunks/cli-1.1.37-58pbecmv.mjs +0 -2
  484. package/dist/chunks/cli-1.1.37-5gj77q8j.mjs +0 -2
  485. package/dist/chunks/cli-1.1.37-5k40cazp.mjs +0 -2
  486. package/dist/chunks/cli-1.1.37-5ppknhpq.mjs +0 -50
  487. package/dist/chunks/cli-1.1.37-67ncf860.mjs +0 -2
  488. package/dist/chunks/cli-1.1.37-6k9f1kb2.mjs +0 -6
  489. package/dist/chunks/cli-1.1.37-6pcx2j1q.mjs +0 -2
  490. package/dist/chunks/cli-1.1.37-72ezs6b8.mjs +0 -2
  491. package/dist/chunks/cli-1.1.37-7483gf56.mjs +0 -3
  492. package/dist/chunks/cli-1.1.37-7614bfhm.mjs +0 -25
  493. package/dist/chunks/cli-1.1.37-7f3hdq3p.mjs +0 -2
  494. package/dist/chunks/cli-1.1.37-7h3edez5.mjs +0 -2
  495. package/dist/chunks/cli-1.1.37-7prgb5qb.mjs +0 -2
  496. package/dist/chunks/cli-1.1.37-7qda9cmg.mjs +0 -2
  497. package/dist/chunks/cli-1.1.37-8n5vy3kh.mjs +0 -2
  498. package/dist/chunks/cli-1.1.37-8v3e4pnr.mjs +0 -2
  499. package/dist/chunks/cli-1.1.37-8wfxbqcm.mjs +0 -20
  500. package/dist/chunks/cli-1.1.37-944j3qt1.mjs +0 -2
  501. package/dist/chunks/cli-1.1.37-94bfnv5a.mjs +0 -2
  502. package/dist/chunks/cli-1.1.37-96sf5t1p.mjs +0 -2
  503. package/dist/chunks/cli-1.1.37-9x24mgyx.mjs +0 -2
  504. package/dist/chunks/cli-1.1.37-a3xp4gqs.mjs +0 -3
  505. package/dist/chunks/cli-1.1.37-a489vqjv.mjs +0 -2
  506. package/dist/chunks/cli-1.1.37-a5ddx2f0.mjs +0 -2
  507. package/dist/chunks/cli-1.1.37-a6pppj4k.mjs +0 -2
  508. package/dist/chunks/cli-1.1.37-a7jrq85d.mjs +0 -2
  509. package/dist/chunks/cli-1.1.37-ayhzfa69.mjs +0 -2
  510. package/dist/chunks/cli-1.1.37-ayqpwfm4.mjs +0 -2
  511. package/dist/chunks/cli-1.1.37-b26at90a.mjs +0 -4
  512. package/dist/chunks/cli-1.1.37-be0x6tdq.mjs +0 -18
  513. package/dist/chunks/cli-1.1.37-bkp0a6f1.mjs +0 -2
  514. package/dist/chunks/cli-1.1.37-cmbtcpwy.mjs +0 -2
  515. package/dist/chunks/cli-1.1.37-crpgw5qe.mjs +0 -133
  516. package/dist/chunks/cli-1.1.37-cw718qh8.mjs +0 -42
  517. package/dist/chunks/cli-1.1.37-d1fcgxg0.mjs +0 -2
  518. package/dist/chunks/cli-1.1.37-d23vxnm9.mjs +0 -2
  519. package/dist/chunks/cli-1.1.37-d6n91ex7.mjs +0 -15
  520. package/dist/chunks/cli-1.1.37-dj2tqhmt.mjs +0 -2
  521. package/dist/chunks/cli-1.1.37-dt1m5cht.mjs +0 -2
  522. package/dist/chunks/cli-1.1.37-ecm5tm4s.mjs +0 -2
  523. package/dist/chunks/cli-1.1.37-ekft3ygw.mjs +0 -2
  524. package/dist/chunks/cli-1.1.37-ev14s3y6.mjs +0 -4
  525. package/dist/chunks/cli-1.1.37-ex5tn3t8.mjs +0 -6
  526. package/dist/chunks/cli-1.1.37-f4cc288j.mjs +0 -2
  527. package/dist/chunks/cli-1.1.37-f7e57y66.mjs +0 -2
  528. package/dist/chunks/cli-1.1.37-f9mv7jky.mjs +0 -2
  529. package/dist/chunks/cli-1.1.37-fdkc3sf9.mjs +0 -2
  530. package/dist/chunks/cli-1.1.37-fksjv0et.mjs +0 -2
  531. package/dist/chunks/cli-1.1.37-fsjyvbbb.mjs +0 -2
  532. package/dist/chunks/cli-1.1.37-g7m905sy.mjs +0 -3
  533. package/dist/chunks/cli-1.1.37-g9d8qc79.mjs +0 -2
  534. package/dist/chunks/cli-1.1.37-gfbpxehy.mjs +0 -2
  535. package/dist/chunks/cli-1.1.37-gpk56nss.mjs +0 -2
  536. package/dist/chunks/cli-1.1.37-grsmntjy.mjs +0 -5557
  537. package/dist/chunks/cli-1.1.37-gswxz7xc.mjs +0 -25
  538. package/dist/chunks/cli-1.1.37-h0jx10pf.mjs +0 -11
  539. package/dist/chunks/cli-1.1.37-h4spe8tn.mjs +0 -16
  540. package/dist/chunks/cli-1.1.37-h7r11vsm.mjs +0 -15
  541. package/dist/chunks/cli-1.1.37-he99jbx1.mjs +0 -2
  542. package/dist/chunks/cli-1.1.37-hef24tpw.mjs +0 -3
  543. package/dist/chunks/cli-1.1.37-hgz1n58h.mjs +0 -2
  544. package/dist/chunks/cli-1.1.37-htprtn3s.mjs +0 -2
  545. package/dist/chunks/cli-1.1.37-hwan9xgw.mjs +0 -2
  546. package/dist/chunks/cli-1.1.37-j1vf4g9d.mjs +0 -4
  547. package/dist/chunks/cli-1.1.37-j6kremq2.mjs +0 -2
  548. package/dist/chunks/cli-1.1.37-jb5tx7mz.mjs +0 -2
  549. package/dist/chunks/cli-1.1.37-jbqk7r70.mjs +0 -2
  550. package/dist/chunks/cli-1.1.37-jfqs1fqm.mjs +0 -2
  551. package/dist/chunks/cli-1.1.37-jr1vseya.mjs +0 -4
  552. package/dist/chunks/cli-1.1.37-jr69vbpp.mjs +0 -3
  553. package/dist/chunks/cli-1.1.37-jv2bhmv9.mjs +0 -2
  554. package/dist/chunks/cli-1.1.37-jz75ctqt.mjs +0 -4
  555. package/dist/chunks/cli-1.1.37-kahw2epk.mjs +0 -39
  556. package/dist/chunks/cli-1.1.37-kb946f3c.mjs +0 -2
  557. package/dist/chunks/cli-1.1.37-kemsps6y.mjs +0 -60
  558. package/dist/chunks/cli-1.1.37-khfxdt5q.mjs +0 -2
  559. package/dist/chunks/cli-1.1.37-kn42c81a.mjs +0 -3
  560. package/dist/chunks/cli-1.1.37-kwaccfak.mjs +0 -2
  561. package/dist/chunks/cli-1.1.37-m1fep5be.mjs +0 -2
  562. package/dist/chunks/cli-1.1.37-m456xrwv.mjs +0 -2
  563. package/dist/chunks/cli-1.1.37-m5yt8y0j.mjs +0 -2
  564. package/dist/chunks/cli-1.1.37-m6gntr6v.mjs +0 -2
  565. package/dist/chunks/cli-1.1.37-ma9krcyk.mjs +0 -2
  566. package/dist/chunks/cli-1.1.37-mexv9k9t.mjs +0 -2
  567. package/dist/chunks/cli-1.1.37-mf2q6gmp.mjs +0 -2
  568. package/dist/chunks/cli-1.1.37-mqc9bwxe.mjs +0 -2
  569. package/dist/chunks/cli-1.1.37-mrvnfwyz.mjs +0 -2
  570. package/dist/chunks/cli-1.1.37-mw2jz1zw.mjs +0 -7
  571. package/dist/chunks/cli-1.1.37-n183zk9b.mjs +0 -24
  572. package/dist/chunks/cli-1.1.37-n5rtec8d.mjs +0 -2
  573. package/dist/chunks/cli-1.1.37-n96tca8q.mjs +0 -2
  574. package/dist/chunks/cli-1.1.37-ncfrm58b.mjs +0 -2
  575. package/dist/chunks/cli-1.1.37-nhcj6483.mjs +0 -2
  576. package/dist/chunks/cli-1.1.37-nmaxyg7j.mjs +0 -2
  577. package/dist/chunks/cli-1.1.37-nzbxb3mg.mjs +0 -2
  578. package/dist/chunks/cli-1.1.37-p6s3mz30.mjs +0 -9
  579. package/dist/chunks/cli-1.1.37-pek0pwba.mjs +0 -2
  580. package/dist/chunks/cli-1.1.37-ptf1j7na.mjs +0 -2
  581. package/dist/chunks/cli-1.1.37-pvh445g5.mjs +0 -3
  582. package/dist/chunks/cli-1.1.37-pw36zafa.mjs +0 -2
  583. package/dist/chunks/cli-1.1.37-q1053cc2.mjs +0 -17
  584. package/dist/chunks/cli-1.1.37-qcn1j79h.mjs +0 -2
  585. package/dist/chunks/cli-1.1.37-qq29akkh.mjs +0 -2
  586. package/dist/chunks/cli-1.1.37-qx20qhv7.mjs +0 -2
  587. package/dist/chunks/cli-1.1.37-rdmqbzqh.mjs +0 -2
  588. package/dist/chunks/cli-1.1.37-rwsh9ddm.mjs +0 -3
  589. package/dist/chunks/cli-1.1.37-ryrmx9mz.mjs +0 -10
  590. package/dist/chunks/cli-1.1.37-s09fpmwg.mjs +0 -2
  591. package/dist/chunks/cli-1.1.37-s66bx6wx.mjs +0 -24
  592. package/dist/chunks/cli-1.1.37-sf9mv58v.mjs +0 -10
  593. package/dist/chunks/cli-1.1.37-sm7wj6sf.mjs +0 -4
  594. package/dist/chunks/cli-1.1.37-sqyyjrzq.mjs +0 -5
  595. package/dist/chunks/cli-1.1.37-ss1k0v1c.mjs +0 -2
  596. package/dist/chunks/cli-1.1.37-ssstmvw3.mjs +0 -3
  597. package/dist/chunks/cli-1.1.37-sxzqtyda.mjs +0 -2
  598. package/dist/chunks/cli-1.1.37-syfanvjj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.37-sygz2s62.mjs +0 -2
  600. package/dist/chunks/cli-1.1.37-tkdarzaz.mjs +0 -2
  601. package/dist/chunks/cli-1.1.37-tntw41wr.mjs +0 -2
  602. package/dist/chunks/cli-1.1.37-tqgcfdy1.mjs +0 -2
  603. package/dist/chunks/cli-1.1.37-v43zxjn1.mjs +0 -2
  604. package/dist/chunks/cli-1.1.37-v7ra9bdg.mjs +0 -10
  605. package/dist/chunks/cli-1.1.37-v901k2xy.mjs +0 -2
  606. package/dist/chunks/cli-1.1.37-v90enr9t.mjs +0 -2
  607. package/dist/chunks/cli-1.1.37-vfcg5s15.mjs +0 -2
  608. package/dist/chunks/cli-1.1.37-vg7rr3sv.mjs +0 -2
  609. package/dist/chunks/cli-1.1.37-vhmf8afh.mjs +0 -2
  610. package/dist/chunks/cli-1.1.37-vhmsvame.mjs +0 -2
  611. package/dist/chunks/cli-1.1.37-vrdgh1e0.mjs +0 -2
  612. package/dist/chunks/cli-1.1.37-w0tvj01c.mjs +0 -2
  613. package/dist/chunks/cli-1.1.37-wm28b2wb.mjs +0 -2
  614. package/dist/chunks/cli-1.1.37-wv9phckk.mjs +0 -9
  615. package/dist/chunks/cli-1.1.37-x03y4qkg.mjs +0 -2
  616. package/dist/chunks/cli-1.1.37-x0nz472y.mjs +0 -2
  617. package/dist/chunks/cli-1.1.37-x27pf2df.mjs +0 -2
  618. package/dist/chunks/cli-1.1.37-x363x6yv.mjs +0 -12
  619. package/dist/chunks/cli-1.1.37-xqs4w5xj.mjs +0 -2
  620. package/dist/chunks/cli-1.1.37-xxa2yvvm.mjs +0 -2
  621. package/dist/chunks/cli-1.1.37-y101rdsg.mjs +0 -2
  622. package/dist/chunks/cli-1.1.37-y2c4zsfh.mjs +0 -6
  623. package/dist/chunks/cli-1.1.37-y3knvtaz.mjs +0 -2
  624. package/dist/chunks/cli-1.1.37-ye5hkqff.mjs +0 -2
  625. package/dist/chunks/cli-1.1.37-yx7j10g7.mjs +0 -2
  626. package/dist/chunks/cli-1.1.37-z0tedaby.mjs +0 -2
  627. package/dist/chunks/cli-1.1.37-z414tkgs.mjs +0 -2
  628. package/dist/chunks/cli-1.1.37-z4wav0zf.mjs +0 -251
  629. package/dist/chunks/cli-1.1.37-z6pkdynf.mjs +0 -2
  630. package/dist/chunks/cli-1.1.37-z9fbkmx6.mjs +0 -2
  631. package/dist/chunks/cli-1.1.37-zb319x4t.mjs +0 -21
  632. package/dist/chunks/cli-1.1.37-zdpyj00a.mjs +0 -2
  633. package/dist/chunks/cli-1.1.37-zmvkkbkz.mjs +0 -2
  634. package/dist/chunks/cli-1.1.37-zp02yw3a.mjs +0 -7
  635. package/dist/chunks/cli-1.1.37-zv5qmddr.mjs +0 -2
  636. package/dist/chunks/cli-1.1.37-zyh3q51q.mjs +0 -2
  637. package/dist/chunks/client-1.1.37-xgmkbazy.mjs +0 -1
  638. package/dist/chunks/color-1.1.37-y730edtg.mjs +0 -1
  639. package/dist/chunks/compact-1.1.37-w4h4spv3.mjs +0 -2
  640. package/dist/chunks/config-1.1.37-kw2by168.mjs +0 -1
  641. package/dist/chunks/config-1.1.37-nxkma2y7.mjs +0 -1
  642. package/dist/chunks/constants-1.1.37-ctp81rsa.mjs +0 -1
  643. package/dist/chunks/context-1.1.37-ayxgyhvf.mjs +0 -1
  644. package/dist/chunks/context-noninteractive-1.1.37-9fnpakkn.mjs +0 -1
  645. package/dist/chunks/conversation-1.1.37-c5qptech.mjs +0 -1
  646. package/dist/chunks/copilotHeaders-1.1.37-2jh9xkzj.mjs +0 -1
  647. package/dist/chunks/copy-1.1.37-3x6yh3re.mjs +0 -9
  648. package/dist/chunks/cost-1.1.37-k4egf2cb.mjs +0 -1
  649. package/dist/chunks/createSession-1.1.37-ps0330f5.mjs +0 -1
  650. package/dist/chunks/debug-1.1.37-rg6428fc.mjs +0 -1
  651. package/dist/chunks/defaultActionDeps-1.1.37-0p69kpbf.mjs +0 -1458
  652. package/dist/chunks/desktop-1.1.37-vw4rzhtp.mjs +0 -2
  653. package/dist/chunks/detectRepository-1.1.37-de5st3z1.mjs +0 -1
  654. package/dist/chunks/detection-1.1.37-2ah57ykf.mjs +0 -1
  655. package/dist/chunks/diff-1.1.37-h35ry5bf.mjs +0 -1
  656. package/dist/chunks/doctor-1.1.37-4sdv75rj.mjs +0 -1
  657. package/dist/chunks/doctorDiagnostic-1.1.37-aj2q1yxr.mjs +0 -1
  658. package/dist/chunks/earlyInput-1.1.37-f1bz41ba.mjs +0 -1
  659. package/dist/chunks/effort-1.1.37-qme7s71h.mjs +0 -13
  660. package/dist/chunks/engine-1.1.37-vhnerrj8.mjs +0 -1
  661. package/dist/chunks/envUtils-1.1.37-jmnztajb.mjs +0 -1
  662. package/dist/chunks/errors-1.1.37-gx18q68s.mjs +0 -1
  663. package/dist/chunks/exampleCommands-1.1.37-jeewe5zp.mjs +0 -1
  664. package/dist/chunks/execFileNoThrow-1.1.37-9znv87jk.mjs +0 -1
  665. package/dist/chunks/exit-1.1.37-g21nsxb0.mjs +0 -1
  666. package/dist/chunks/explorer-1.1.37-x26rvwxm.mjs +0 -1
  667. package/dist/chunks/export-1.1.37-f9367qzp.mjs +0 -2
  668. package/dist/chunks/fast-1.1.37-66kcejyq.mjs +0 -1
  669. package/dist/chunks/feedback-1.1.37-cmzfc89p.mjs +0 -16
  670. package/dist/chunks/git-1.1.37-2v8rmfsp.mjs +0 -1
  671. package/dist/chunks/githubModelsCredentials-1.1.37-qa9ahy75.mjs +0 -1
  672. package/dist/chunks/goal-1.1.37-qxqx92gp.mjs +0 -4
  673. package/dist/chunks/headless-1.1.37-dkg8aqth.mjs +0 -2
  674. package/dist/chunks/heapdump-1.1.37-4hzv26jg.mjs +0 -6
  675. package/dist/chunks/help-1.1.37-94a27s9t.mjs +0 -1
  676. package/dist/chunks/hooks-1.1.37-ekx4v46c.mjs +0 -79
  677. package/dist/chunks/hooks-1.1.37-yeewd50h.mjs +0 -1
  678. package/dist/chunks/ide-1.1.37-knedgvva.mjs +0 -3
  679. package/dist/chunks/image-processor-napi-1.1.37-cdpery4t.mjs +0 -1
  680. package/dist/chunks/import-1.1.37-e6j4yen6.mjs +0 -261
  681. package/dist/chunks/inboundAttachments-1.1.37-jjm28zc3.mjs +0 -1
  682. package/dist/chunks/index-1.1.37-21b053j0.mjs +0 -1
  683. package/dist/chunks/index-1.1.37-3v1qr5g5.mjs +0 -9
  684. package/dist/chunks/index-1.1.37-5jd6yv91.mjs +0 -1
  685. package/dist/chunks/index-1.1.37-5m0x7mgr.mjs +0 -2
  686. package/dist/chunks/index-1.1.37-7p4s9e93.mjs +0 -5
  687. package/dist/chunks/index-1.1.37-8d8wz2jd.mjs +0 -1
  688. package/dist/chunks/index-1.1.37-8nj0y31t.mjs +0 -1
  689. package/dist/chunks/index-1.1.37-9mdrpppp.mjs +0 -1
  690. package/dist/chunks/index-1.1.37-fsrw22yr.mjs +0 -1
  691. package/dist/chunks/index-1.1.37-gbkrjwx2.mjs +0 -1
  692. package/dist/chunks/index-1.1.37-j22mymj3.mjs +0 -1
  693. package/dist/chunks/index-1.1.37-j7mg2v2z.mjs +0 -1
  694. package/dist/chunks/index-1.1.37-jt0qvhqx.mjs +0 -9
  695. package/dist/chunks/index-1.1.37-kqbx8bd4.mjs +0 -1
  696. package/dist/chunks/index-1.1.37-md3nqn7b.mjs +0 -1
  697. package/dist/chunks/index-1.1.37-nvrt1jkm.mjs +0 -1
  698. package/dist/chunks/index-1.1.37-qs532q75.mjs +0 -2
  699. package/dist/chunks/index-1.1.37-vrf2sks4.mjs +0 -1
  700. package/dist/chunks/index-1.1.37-w2vtqz1f.mjs +0 -30
  701. package/dist/chunks/index-1.1.37-wtf428dj.mjs +0 -1
  702. package/dist/chunks/index-1.1.37-x3qnjdnj.mjs +0 -23
  703. package/dist/chunks/index-1.1.37-xvds1tk7.mjs +0 -1
  704. package/dist/chunks/index-1.1.37-ycghwm8a.mjs +0 -1
  705. package/dist/chunks/init-1.1.37-rej95xjh.mjs +0 -2
  706. package/dist/chunks/initReplBridge-1.1.37-fg8xhcbg.mjs +0 -1
  707. package/dist/chunks/ink-1.1.37-9hasxe0p.mjs +0 -1
  708. package/dist/chunks/insights-1.1.37-t8pdcny6.mjs +0 -870
  709. package/dist/chunks/install-1.1.37-3qw7jywz.mjs +0 -1
  710. package/dist/chunks/install-github-app-1.1.37-xxm8pfc7.mjs +0 -149
  711. package/dist/chunks/install-slack-app-1.1.37-k2gvh481.mjs +0 -1
  712. package/dist/chunks/interactiveHelpers-1.1.37-65a5va0g.mjs +0 -1
  713. package/dist/chunks/latestVersionCache-1.1.37-3a47ekt3.mjs +0 -1
  714. package/dist/chunks/loadAgentsDir-1.1.37-tacjzkxh.mjs +0 -1
  715. package/dist/chunks/loadPluginHooks-1.1.37-xp0k0sev.mjs +0 -1
  716. package/dist/chunks/log-1.1.37-zxjr2p0h.mjs +0 -1
  717. package/dist/chunks/main-1.1.37-z5knsc2c.mjs +0 -1
  718. package/dist/chunks/managedEnv-1.1.37-v6d9x7gc.mjs +0 -1
  719. package/dist/chunks/mcp-1.1.37-2f8vksgy.mjs +0 -1
  720. package/dist/chunks/mcp-1.1.37-t42e1h6v.mjs +0 -17
  721. package/dist/chunks/mcp-1.1.37-z5yx7ce8.mjs +0 -4
  722. package/dist/chunks/mcpb-1.1.37-nxn1ew24.mjs +0 -1
  723. package/dist/chunks/memory-1.1.37-e17frzj2.mjs +0 -128
  724. package/dist/chunks/model-1.1.37-415ebhh8.mjs +0 -2
  725. package/dist/chunks/model-1.1.37-51zfsc21.mjs +0 -1
  726. package/dist/chunks/new-1.1.37-qmpxmvhh.mjs +0 -1
  727. package/dist/chunks/node-1.1.37-60r1zc7a.mjs +0 -1
  728. package/dist/chunks/node-1.1.37-bzzjhz9b.mjs +0 -15
  729. package/dist/chunks/oauth-1.1.37-an1mr5z0.mjs +0 -1
  730. package/dist/chunks/openaiShim-1.1.37-d7tbje1m.mjs +0 -14
  731. package/dist/chunks/output-style-1.1.37-ky7bh1p8.mjs +0 -1
  732. package/dist/chunks/package-F6O7J2XI-1.1.37-cpdvge3d.mjs +0 -1
  733. package/dist/chunks/permissions-1.1.37-jfdwfjhx.mjs +0 -1
  734. package/dist/chunks/permissions-1.1.37-xa1rr619.mjs +0 -3
  735. package/dist/chunks/plan-1.1.37-mkad4kke.mjs +0 -1
  736. package/dist/chunks/plist-1.1.37-jp82073r.mjs +0 -1
  737. package/dist/chunks/plugin-1.1.37-4y7stngn.mjs +0 -29
  738. package/dist/chunks/pluginStartupCheck-1.1.37-mb876t1m.mjs +0 -1
  739. package/dist/chunks/plugins-1.1.37-vgwj76jr.mjs +0 -9
  740. package/dist/chunks/preActionHook-1.1.37-y5x9wxpb.mjs +0 -2
  741. package/dist/chunks/print-1.1.37-39471kxm.mjs +0 -57
  742. package/dist/chunks/process-1.1.37-0sxw7yj7.mjs +0 -1
  743. package/dist/chunks/processBashCommand-1.1.37-3a9hjw0c.mjs +0 -1
  744. package/dist/chunks/processSlashCommand-1.1.37-qkdzw4bn.mjs +0 -9
  745. package/dist/chunks/prompt-1.1.37-7ty4xbzv.mjs +0 -1
  746. package/dist/chunks/prompt-1.1.37-t1pkc4hm.mjs +0 -1
  747. package/dist/chunks/prompts-1.1.37-vc8tkqtx.mjs +0 -1
  748. package/dist/chunks/provider-1.1.37-d5ky3fex.mjs +0 -2
  749. package/dist/chunks/providerProfiles-1.1.37-qds9eqzt.mjs +0 -1
  750. package/dist/chunks/providerValidation-1.1.37-njz9qc5m.mjs +0 -6
  751. package/dist/chunks/registerSubcommands-1.1.37-mh25jf7y.mjs +0 -26
  752. package/dist/chunks/registry-1.1.37-j99mgf8f.mjs +0 -1
  753. package/dist/chunks/release-notes-1.1.37-9gkg8tfr.mjs +0 -5
  754. package/dist/chunks/reload-plugins-1.1.37-4sptja72.mjs +0 -2
  755. package/dist/chunks/remote-env-1.1.37-t2zt0dx6.mjs +0 -1
  756. package/dist/chunks/rename-1.1.37-r3rf1zcp.mjs +0 -1
  757. package/dist/chunks/replLauncher-1.1.37-q72zpdec.mjs +0 -1
  758. package/dist/chunks/resume-1.1.37-7y7v8kjq.mjs +0 -2
  759. package/dist/chunks/rewind-1.1.37-g7g9fq2x.mjs +0 -1
  760. package/dist/chunks/rootOptions-1.1.37-gab9zhq2.mjs +0 -1
  761. package/dist/chunks/runWorkflowHeadless-1.1.37-hfkacx24.mjs +0 -10
  762. package/dist/chunks/sandbox-adapter-1.1.37-0z182pcd.mjs +0 -1
  763. package/dist/chunks/sandbox-toggle-1.1.37-qpef07xe.mjs +0 -1
  764. package/dist/chunks/session-1.1.37-23e3vg40.mjs +0 -2
  765. package/dist/chunks/sessionStorage-1.1.37-80sj7d1y.mjs +0 -1
  766. package/dist/chunks/settings-1.1.37-9ydtb00s.mjs +0 -1
  767. package/dist/chunks/setup-1.1.37-zw16kqhk.mjs +0 -12
  768. package/dist/chunks/sinks-1.1.37-zfyvj9zb.mjs +0 -1
  769. package/dist/chunks/skills-1.1.37-k5m03dxr.mjs +0 -1
  770. package/dist/chunks/startupProfiler-1.1.37-c215kgmn.mjs +0 -1
  771. package/dist/chunks/startupUpdateCheck-1.1.37-gkvkp8j3.mjs +0 -1
  772. package/dist/chunks/state-1.1.37-n5ptmgvs.mjs +0 -1
  773. package/dist/chunks/stats-1.1.37-aa4vr5s9.mjs +0 -1
  774. package/dist/chunks/status-1.1.37-ay3wwhz4.mjs +0 -1
  775. package/dist/chunks/stickers-1.1.37-9s6a0we7.mjs +0 -1
  776. package/dist/chunks/subprocessEnv-1.1.37-j60ejzj9.mjs +0 -1
  777. package/dist/chunks/tasks-1.1.37-0kkyatcs.mjs +0 -1
  778. package/dist/chunks/teamHelpers-1.1.37-bh946f2s.mjs +0 -1
  779. package/dist/chunks/teammateModeSnapshot-1.1.37-hvr3p8hm.mjs +0 -1
  780. package/dist/chunks/teleport-1.1.37-r8pztaf5.mjs +0 -1
  781. package/dist/chunks/terminalSetup-1.1.37-db8a6fsx.mjs +0 -1
  782. package/dist/chunks/theme-1.1.37-syjd1g1y.mjs +0 -1
  783. package/dist/chunks/toolPool-1.1.37-99ckwfft.mjs +0 -1
  784. package/dist/chunks/toolSearch-1.1.37-w702g2e2.mjs +0 -1
  785. package/dist/chunks/tools-1.1.37-q0g8gdy1.mjs +0 -1
  786. package/dist/chunks/turndown.cjs-1.1.37-p3av7xdw.mjs +0 -69
  787. package/dist/chunks/types-1.1.37-0zw1rq84.mjs +0 -1
  788. package/dist/chunks/update-1.1.37-njeg6bcd.mjs +0 -72
  789. package/dist/chunks/upload-1.1.37-gzm0qpn7.mjs +0 -7
  790. package/dist/chunks/upstreamproxy-1.1.37-v8bpt97q.mjs +0 -14
  791. package/dist/chunks/usage-1.1.37-b2a8dppj.mjs +0 -1
  792. package/dist/chunks/util-1.1.37-psbfj1x5.mjs +0 -1
  793. package/dist/chunks/utils-1.1.37-efqgjtyn.mjs +0 -1
  794. package/dist/chunks/vim-1.1.37-3vwhey1j.mjs +0 -1
  795. package/dist/chunks/watchLoop-1.1.37-hmgj516c.mjs +0 -13
  796. package/dist/chunks/wiki-1.1.37-y24wnewk.mjs +0 -132
  797. package/dist/chunks/workflows-1.1.37-eywdbk9a.mjs +0 -1
  798. package/dist/chunks/worktree-1.1.37-k9y7x7fq.mjs +0 -1
  799. package/dist/chunks/worktreeModeEnabled-1.1.37-bq8bmkt7.mjs +0 -1
  800. package/dist/chunks/wrapper-1.1.37-mam70w68.mjs +0 -7
  801. /package/dist/chunks/{cli-1.1.37-tb7ktts9.mjs → cli-1.1.38-0sbej1sm.mjs} +0 -0
  802. /package/dist/chunks/{cli-1.1.37-g7xfccj8.mjs → cli-1.1.38-48ykmxgd.mjs} +0 -0
  803. /package/dist/chunks/{cli-1.1.37-6defhmsy.mjs → cli-1.1.38-5edb5t1a.mjs} +0 -0
  804. /package/dist/chunks/{cli-1.1.37-tfvyj3nx.mjs → cli-1.1.38-fckt5c5p.mjs} +0 -0
  805. /package/dist/chunks/{cli-1.1.37-422098yx.mjs → cli-1.1.38-g4av033p.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{WT as H,YT as V,ZT as J,cU as W}from"./cli-1.1.38-y3k2y9f2.mjs";import{Nda as Q,vda as B}from"./cli-1.1.38-a678cgp1.mjs";import{Aja as M,xja as y}from"./cli-1.1.38-yfhvhcvt.mjs";import{Pqa as L}from"./cli-1.1.38-y66mw08s.mjs";function A(){let h=new Map,w=H();for(let[k,m]of Object.entries(w)){if(!k.includes("@"))continue;if(m===!0)h.set(k,"flag");else if(m===!1)h.delete(k)}let K=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:k,source:m}of K){let z=B(m);if(!z?.enabledPlugins)continue;for(let[q,x]of Object.entries(z.enabledPlugins)){if(!q.includes("@"))continue;if(q in w&&w[q]!==x)y(`Plugin ${q} from --add-dir (${w[q]}) overridden by ${m} (${x})`);if(x===!0)h.set(q,k);else if(x===!1)h.delete(q)}}return y(`Found ${h.size} enabled plugins with scopes: ${Array.from(h.entries()).map(([k,m])=>`${k}(${m})`).join(", ")}`),h}function G(h){return J[h]}var X=L(()=>{M();Q();V();W()});
2
+ export{A as Kc,G as Lc,X as Mc};
@@ -0,0 +1,25 @@
1
+ import{$J as R,FQ as Zq,KQ as yq,MK as Pq,Ss as a,TK as Yq,VK as Uq,Ys as s,_J as S,aK as hq,ct as Kq,dK as p,eK as k,fK as Bq,gK as Gq,gl as r,hK as I,hy as t,iK as b,il as vq,iy as Wq,lA as e,mE as zq,nA as Hq,nE as Xq,pK as Jq,qK as Qq,tC as qq,uC as Nq,uK as Oq,yK as Vq}from"./cli-1.1.38-tk968ykv.mjs";import{Tfa as w,Yfa as Fq}from"./cli-1.1.38-a678cgp1.mjs";import{Iha as o,Kha as Lq}from"./cli-1.1.38-fr1kxnk2.mjs";import{Qja as y,cka as jq}from"./cli-1.1.38-mh6a6g83.mjs";import{Pqa as M}from"./cli-1.1.38-y66mw08s.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
+ …[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
3
+ ${B.instructions.trim()}`);if(V.push(`Task:
4
+ ${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
5
+ ${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
6
+
7
+ `)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
8
+ ${z.instructions.trim()}`);G.push(`Task:
9
+ ${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
10
+ `);if(G.push(`Phases:
11
+ ${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
+ ${C(q.output,f).split(`
13
+ `).map((H)=>` ${H}`).join(`
14
+ `)}`}).join(`
15
+ `),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
16
+ ${j}
17
+ ${J.synthesis?` synthesis: ${C(J.synthesis,f)}
18
+ `:""}${W}`}).join(`
19
+
20
+ `);G.push(`History (all phases so far):
21
+ ${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
22
+
23
+ `)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
24
+ `)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=qq(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=zq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:e(G.agentType,a(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await s(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Qq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await t(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Gq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=Bq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Wq();Uq();Kq();Nq();Xq();vq();Lq();jq();Fq();Pq();Hq();yq();hq();g();l();Oq();i();b()});
25
+ export{tq as qi,Eq as ri};
@@ -0,0 +1,2 @@
1
+ import{Hqa as n}from"./cli-1.1.38-dfcp3asv.mjs";import{Nqa as r}from"./cli-1.1.38-y66mw08s.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
+ export{i as l8};
@@ -0,0 +1,2 @@
1
+ import{$0 as e,K0 as j,L0 as R,M0 as x,N0 as p,P0 as _Q,T0 as N,Y0 as t,c1 as QQ,p1 as l,q1 as ZQ,s1 as vQ}from"./cli-1.1.38-ww8j7xpn.mjs";import{t1 as bQ,v1 as P,x1 as gQ}from"./cli-1.1.38-pnngv0r7.mjs";import{c_ as M,e_ as C,j_ as BQ,r$ as Y,t$ as h,xea as pQ}from"./cli-1.1.38-a678cgp1.mjs";import{Aja as xQ,xja as XQ}from"./cli-1.1.38-yfhvhcvt.mjs";import{ika as L,jka as H,qka as hQ}from"./cli-1.1.38-nzbcas3j.mjs";import{Bpa as CQ,Xna as y}from"./cli-1.1.38-44ay6q12.mjs";import{Lqa as yQ,Pqa as U}from"./cli-1.1.38-y66mw08s.mjs";import{createHash as qQ,randomUUID as VQ}from"crypto";import{tmpdir as UQ}from"os";import{join as RQ}from"path";function S(Q="claude-prompt",Z=".md",$){let z=$?.contentHash?qQ("sha256").update($.contentHash).digest("hex").slice(0,16):VQ();return RQ(UQ(),`${Q}-${z}${Z}`)}var E=()=>{};import{Buffer as AQ}from"buffer";import{unlink as HQ,writeFile as LQ}from"node:fs/promises";function w(...Q){let Z=M.terminal==="kitty"?u:R;return`${F}${Q.join(x)}${Z}`}function zZ(Q){if(process.env.TMUX)return`\x1BPtmux;${Q.replaceAll("\x1B","\x1B\x1B")}\x1B\\`;if(process.env.STY)return`\x1BP${Q}\x1B\\`;return Q}function JZ(){if(process.platform==="darwin"&&!process.env.SSH_CONNECTION)return"native";if(process.env.TMUX)return"tmux-buffer";return"osc52"}function MQ(Q){return`${j}Ptmux;${Q.replaceAll(j,j+j)}${u}`}async function wQ(Q){if(!process.env.TMUX)return!1;let Z=process.env.LC_TERMINAL==="iTerm2"?["load-buffer","-"]:["load-buffer","-w","-"],{code:$}=await Y("tmux",Z,{input:Q,useCwd:!1,timeout:2000});return $===0}async function KZ(Q){let Z=AQ.from(Q,"utf8").toString("base64"),$=w(G.CLIPBOARD,"c",Z);if(!process.env.SSH_CONNECTION)OQ(Q);if(await wQ(Q))return MQ(`${j}]52;c;${Z}${R}`);return $}function OQ(Q){let Z={input:Q,useCwd:!1,timeout:2000};switch(process.platform){case"darwin":Y("pbcopy",[],Z);return;case"linux":{if(q===null)return;if(q==="wl-copy"){Y("wl-copy",[],Z);return}if(q==="xclip"){Y("xclip",["-selection","clipboard"],Z);return}if(q==="xsel"){Y("xsel",["--clipboard","--input"],Z);return}Y("wl-copy",[],Z).then(($)=>{if($.code===0){q="wl-copy";return}Y("xclip",["-selection","clipboard"],Z).then((z)=>{if(z.code===0){q="xclip";return}Y("xsel",["--clipboard","--input"],Z).then((J)=>{q=J.code===0?"xsel":null})})});return}case"win32":(async()=>{let $=S("claudin-clipboard",".txt"),z=$.replace(/'/g,"''");try{await LQ($,Q,{encoding:"utf8"}),await Y("powershell",["-NoProfile","-NonInteractive","-Command",`$text = [System.IO.File]::ReadAllText('${z}', [System.Text.Encoding]::UTF8); Set-Clipboard -Value $text`],{useCwd:!1,timeout:Z.timeout,stdin:"ignore"})}finally{await HQ($).catch(()=>{})}})().catch(()=>{});return}}function WZ(Q){let Z=Q.indexOf(";"),$=Z>=0?Q.slice(0,Z):Q,z=Z>=0?Q.slice(Z+1):"",J=parseInt($,10);if(J===G.SET_TITLE_AND_ICON)return{type:"title",action:{type:"both",title:z}};if(J===G.SET_ICON)return{type:"title",action:{type:"iconName",name:z}};if(J===G.SET_TITLE)return{type:"title",action:{type:"windowTitle",title:z}};if(J===G.HYPERLINK){let K=z.split(";"),v=K[0]??"",T=K.slice(1).join(";");if(T==="")return{type:"link",action:{type:"end"}};let O={};if(v)for(let I of v.split(":")){let k=I.indexOf("=");if(k>=0)O[I.slice(0,k)]=I.slice(k+1)}return{type:"link",action:{type:"start",url:T,params:Object.keys(O).length>0?O:void 0}}}if(J===G.TAB_STATUS)return{type:"tabStatus",action:IQ(z)};return{type:"unknown",sequence:`\x1B]${Q}`}}function f(Q){let Z=Q.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);if(Z)return{type:"rgb",r:parseInt(Z[1],16),g:parseInt(Z[2],16),b:parseInt(Z[3],16)};let $=Q.match(/^rgb:([0-9a-f]{1,4})\/([0-9a-f]{1,4})\/([0-9a-f]{1,4})$/i);if($){let z=(J)=>Math.round(parseInt(J,16)/(16**J.length-1)*255);return{type:"rgb",r:z($[1]),g:z($[2]),b:z($[3])}}return null}function IQ(Q){let Z={};for(let[$,z]of kQ(Q))switch($){case"indicator":Z.indicator=z===""?null:f(z);break;case"status":Z.status=z===""?null:z;break;case"status-color":Z.statusColor=z===""?null:f(z);break}return Z}function*kQ(Q){let Z="",$="",z=!1,J=!1;for(let K of Q)if(J){if(z)$+=K;else Z+=K;J=!1}else if(K==="\\")J=!0;else if(K===";")yield[Z,$],Z="",$="",z=!1;else if(K==="="&&!z)z=!0;else if(z)$+=K;else Z+=K;if(Z||z)yield[Z,$]}function d(Q,Z){if(!Q)return NQ;let $={id:FQ(Q),...Z},z=Object.entries($).map(([J,K])=>`${J}=${K}`).join(":");return w(G.HYPERLINK,z,Q)}function FQ(Q){let Z=0;for(let $=0;$<Q.length;$++)Z=(Z<<5)-Z+Q.charCodeAt($)|0;return(Z>>>0).toString(36)}function BZ(){return!1}var F,u,q,G,NQ,PQ,DQ,YZ,GZ,XZ;var m=U(()=>{C();h();E();_Q();F=j+String.fromCharCode(p.OSC),u=j+"\\";G={SET_TITLE_AND_ICON:0,SET_ICON:1,SET_TITLE:2,SET_COLOR:4,SET_CWD:7,HYPERLINK:8,ITERM2:9,SET_FG_COLOR:10,SET_BG_COLOR:11,SET_CURSOR_COLOR:12,CLIPBOARD:52,KITTY:99,RESET_COLOR:104,RESET_FG_COLOR:110,RESET_BG_COLOR:111,RESET_CURSOR_COLOR:112,SEMANTIC_PROMPT:133,GHOSTTY:777,TAB_STATUS:21337};NQ=w(G.HYPERLINK,"",""),PQ={NOTIFY:0,BADGE:2,PROGRESS:4},DQ={CLEAR:0,SET:1,ERROR:2,INDETERMINATE:3},YZ=`${F}${G.ITERM2};${PQ.PROGRESS};${DQ.CLEAR};${R}`,GZ=`${F}${G.SET_TITLE_AND_ICON};${R}`,XZ=w(G.TAB_STATUS,"indicator=;status=;status-color=")});function X(Q){return N(`?${Q}h`)}function B(Q){return N(`?${Q}l`)}var W,c,i,VZ,UZ,RZ,_Z,n,a,o,s,AZ,HZ,LZ,MZ;var r=U(()=>{l();W={CURSOR_VISIBLE:25,AUTO_WRAP:7,ALT_SCREEN:47,ALT_SCREEN_CLEAR:1049,MOUSE_NORMAL:1000,MOUSE_BUTTON:1002,MOUSE_ANY:1003,MOUSE_SGR:1006,FOCUS_EVENTS:1004,BRACKETED_PASTE:2004,SYNCHRONIZED_UPDATE:2026};c=X(W.SYNCHRONIZED_UPDATE),i=B(W.SYNCHRONIZED_UPDATE),VZ=X(W.BRACKETED_PASTE),UZ=B(W.BRACKETED_PASTE),RZ=X(W.FOCUS_EVENTS),_Z=B(W.FOCUS_EVENTS),n=X(W.CURSOR_VISIBLE),a=B(W.CURSOR_VISIBLE),o=X(W.AUTO_WRAP),s=B(W.AUTO_WRAP),AZ=X(W.ALT_SCREEN_CLEAR),HZ=B(W.ALT_SCREEN_CLEAR),LZ=X(W.MOUSE_NORMAL)+X(W.MOUSE_BUTTON)+X(W.MOUSE_ANY)+X(W.MOUSE_SGR),MZ=B(W.MOUSE_SGR)+B(W.MOUSE_ANY)+B(W.MOUSE_BUTTON)+B(W.MOUSE_NORMAL)});function DZ(){if(!process.stdout.isTTY)return!1;if(process.env.WT_SESSION)return!1;if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return!0;let Q=$Q.coerce(process.env.TERM_PROGRAM_VERSION);if(!Q)return!1;if(process.env.TERM_PROGRAM==="ghostty")return P(Q.version,"1.2.0");if(process.env.TERM_PROGRAM==="iTerm.app")return P(Q.version,"3.6.6");return!1}function TQ(){if(process.env.TMUX)return!1;let Q=process.env.TERM_PROGRAM,Z=process.env.TERM;if(Q==="iTerm.app"||Q==="WezTerm"||Q==="WarpTerminal"||Q==="ghostty"||Q==="contour"||Q==="vscode"||Q==="alacritty")return!0;if(Z?.includes("kitty")||process.env.KITTY_WINDOW_ID)return!0;if(Z==="xterm-ghostty")return!0;if(Z?.startsWith("foot"))return!0;if(Z?.includes("alacritty"))return!0;if(process.env.ZED_TERM)return!0;if(process.env.WT_SESSION)return!0;let $=process.env.VTE_VERSION;if($){if(parseInt($,10)>=6800)return!0}return!1}function yZ(Q){if(_===void 0)_=Q}function zQ(){if(process.env.TERM_PROGRAM==="ghostty")return!0;if(process.env.TERM==="xterm-ghostty")return!0;return _?.toLowerCase().startsWith("ghostty")??!1}function SQ(){if(process.env.TERM_PROGRAM==="vscode")return!0;return _?.startsWith("xterm.js")??!1}function bZ(){return zQ()}function JQ(){return zQ()}function gZ(){if(process.env.CLAUDIN_ENABLE_EXTENDED_KEYS!=="1")return!1;return EQ.includes(M.terminal??"")}function vZ(){if(!process.stdout.isTTY)return null;if(process.env.TMUX)return null;let Q=process.env.TERM??"";if(Q.startsWith("screen")||Q.startsWith("tmux"))return null;if(process.env.WT_SESSION)return null;if(SQ())return null;let Z=process.env.TERM_PROGRAM;if(Z==="Apple_Terminal"||Z==="iTerm.app"||Z==="cursor"||Z==="vscode")return null;if(Q==="xterm-kitty"||Q==="xterm-ghostty")return"kitty";if(Z&&fQ.has(Z))return"kitty";let $=_?.toLowerCase();if($&&($.startsWith("kitty")||$.startsWith("ghostty")||$.startsWith("wezterm")))return"kitty";return null}function TZ(){return process.platform==="win32"||!!process.env.WT_SESSION}function EZ(Q,Z,$=!1){if(Z.length===0)return;let z=!$,J=s+(z?c:"");for(let K of Z)switch(K.type){case"stdout":J+=K.content;break;case"clear":if(K.count>0)J+=QQ(K.count);break;case"clearTerminal":J+=ZQ();break;case"cursorHide":J+=a;break;case"cursorShow":J+=n;break;case"cursorMove":J+=e(K.x,K.y);break;case"cursorTo":J+=t(K.col);break;case"carriageReturn":J+="\r";break;case"hyperlink":J+=d(K.uri);break;case"styleStr":J+=K.str;break}if(z)J+=i;J+=o,Q.stdout.write(J)}var $Q,_,EQ,fQ,SZ;var KQ=U(()=>{C();gQ();vQ();l();r();m();$Q=yQ(bQ(),1);EQ=["iTerm.app","kitty","WezTerm","ghostty","tmux","windows-terminal"];fQ=new Set(["kitty","ghostty","WezTerm"]);SZ=TQ()});import{spawnSync as uQ}from"child_process";function WQ(){for(let Q of D)Q()}function b(){if(H(process.env.CLAUDIN_TEMP_FULLSCREEN))return!1;if(H(process.env.CLAUDIN_NO_FLICKER))return!1;return!g()}function lZ(){return y()&&b()}function cZ(){let Q=Symbol("fullscreen-lease");if(V.add(Q),V.size===1)WQ();return()=>{if(!V.delete(Q))return;if(V.size===0)WQ()}}function iZ(Q){return D.add(Q),()=>{D.delete(Q)}}function nZ(){return V.size>0&&b()&&!jQ()}function dQ(){if(!process.env.TMUX)return!1;if(process.env.TERM_PROGRAM!=="iTerm.app")return!1;let Q=process.env.TERM??"";return!Q.startsWith("screen")&&!Q.startsWith("tmux")}function mQ(){if(A=dQ(),A)return;if(!process.env.TMUX)return;if(process.env.TERM_PROGRAM)return;let Q;try{Q=uQ("tmux",["display-message","-p","#{client_control_mode}"],{encoding:"utf8",timeout:2000})}catch{return}if(Q.status!==0)return;A=Q.stdout.trim()==="1"}function g(){if(A===void 0)mQ();return A??!1}function lQ(){return jQ()||V.size>0&&b()}function jQ(){if(H(process.env.CLAUDIN_NO_FLICKER))return!1;if(L(process.env.CLAUDIN_NO_FLICKER))return!0;if(g()){if(!YQ)YQ=!0,XQ("fullscreen disabled: tmux -CC (iTerm2 integration mode) detected · set CLAUDIN_NO_FLICKER=1 to override");return!1}let Q=BQ().flickerFreeMode;if(Q!==void 0)return Q;if(JQ())return!0;return!1}function aZ(){return H(process.env.CLAUDIN_NO_FLICKER)||L(process.env.CLAUDIN_NO_FLICKER)}function oZ(){return!L(process.env.CLAUDIN_DISABLE_MOUSE)}function sZ(){return L(process.env.CLAUDIN_DISABLE_MOUSE_CLICKS)}function cQ(){return y()&&lQ()}async function rZ(){if(!process.env.TMUX)return null;if(!cQ()||g())return null;if(GQ)return null;GQ=!0;let{stdout:Q,code:Z}=await Y("tmux",["show","-Av","mouse"],{useCwd:!1,timeout:2000});if(Z!==0||Q.trim()==="on")return null;return"tmux detected · scroll with PgUp/PgDn · or add 'set -g mouse on' to ~/.tmux.conf for wheel scroll"}var V,D,YQ=!1,GQ=!1,A;var iQ=U(()=>{CQ();KQ();pQ();xQ();hQ();h();V=new Set,D=new Set});
2
+ export{W as LZ,VZ as MZ,UZ as NZ,RZ as OZ,_Z as PZ,n as QZ,a as RZ,AZ as SZ,HZ as TZ,LZ as UZ,MZ as VZ,r as WZ,S as XZ,E as YZ,w as ZZ,zZ as _Z,JZ as $Z,KZ as a0,G as b0,WZ as c0,d as d0,NQ as e0,PQ as f0,DQ as g0,YZ as h0,GZ as i0,XZ as j0,BZ as k0,m as l0,DZ as m0,TQ as n0,yZ as o0,SQ as p0,bZ as q0,JQ as r0,gZ as s0,vZ as t0,TZ as u0,SZ as v0,EZ as w0,KQ as x0,lZ as y0,cZ as z0,iZ as A0,nZ as B0,lQ as C0,aZ as D0,oZ as E0,sZ as F0,cQ as G0,rZ as H0,iQ as I0};
@@ -0,0 +1,10 @@
1
+ import{mb as s}from"./cli-1.1.38-b56dgy8f.mjs";import{Bj as D,Mn as p,Nn as ZJ,Np as x,Pp as a,Wr as k,Xr as M,Yr as m,yj as E,zj as w}from"./cli-1.1.38-tk968ykv.mjs";import{K5 as S,N5 as QJ,T5 as o,U5 as h,V5 as u,_5 as c}from"./cli-1.1.38-z8x4q5cc.mjs";import{d6 as O,e6 as y}from"./cli-1.1.38-zx5nqvq6.mjs";import{Q8 as i,y8 as P}from"./cli-1.1.38-t8k5snq9.mjs";import{q_ as W,s_ as U}from"./cli-1.1.38-a678cgp1.mjs";import{Aja as _,aja as B,bja as e,fja as C,xja as V}from"./cli-1.1.38-yfhvhcvt.mjs";import{Xja as H,Yja as t,cka as r}from"./cli-1.1.38-mh6a6g83.mjs";import{ika as b,qka as KJ}from"./cli-1.1.38-nzbcas3j.mjs";import{Qqa as JJ}from"./cli-1.1.38-y66mw08s.mjs";i();_();U();D();C();class R extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class q{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=Q instanceof R?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,Z=0;while(Z<this.pending.length&&Z<J){let $;try{$=Buffer.byteLength(B(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&Q+$>K)break;Q+=$,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,Z)=>{Q.sleepResolve=null,Z()},J,this,K)})}}ZJ();_();U();KJ();QJ();c();m();C();var $J=`{"type":"keep_alive"}
2
+ `,GJ=1000,VJ=1000,d=30000,WJ=600000,YJ=1e4,zJ=300000,I=d*2,XJ=new Set([1002,4001,4003]);class F{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,Z,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=Z,this.autoReconnect=$?.autoReconnect??!0,this.messageBuffer=new p(GJ)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){V(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),W("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),V(`WebSocketTransport: Opening ${this.url.href}`),W("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,V(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:u(this.url.href),tls:S()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.38-7cvdwcn2.mjs"),Q=new K(this.url.href,{headers:J,agent:h(this.url.href),...S()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),W("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{V("WebSocketTransport: Error",{level:"error"}),W("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;V(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),W("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let Z=Q.headers["x-last-request-id"];this.replayBufferedMessages(Z)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),W("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{V(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),W("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;V(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),W("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;V("WebSocketTransport: Connected"),W("info","cli_websocket_connect_connected",{duration_ms:J}),this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return V("WebSocketTransport: Not connected"),W("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return V(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),W("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(V(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),W("info","cli_websocket_disconnected"),this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,V("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),W("info","cli_websocket_4003_token_refreshed")}if(J!=null&&XJ.has(J)&&!K){V(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),W("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>I)V(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),W("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let Z=Q-this.reconnectStartTime;if(Z<WJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let Y=this.refreshHeaders();Object.assign(this.headers,Y),V("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(VJ*Math.pow(2,this.reconnectAttempts-1),d),G=Math.max(0,$+$*0.25*(2*Math.random()-1));V(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(Z/1000)}s elapsed)`),W("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(V(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(Z/1000)}s for ${this.url.href}`,{level:"error"}),W("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:Z}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;V(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),W("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let Z=K.slice(Q);if(Z.length===0){V("WebSocketTransport: No new messages to replay"),W("info","cli_websocket_no_messages_to_replay");return}V(`WebSocketTransport: Replaying ${Z.length} buffered messages`),W("info","cli_websocket_messages_to_replay",{count:Z.length});for(let $ of Z){let G=B($)+`
3
+ `;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=B(J)+`
4
+ `;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",Z=this.getControlMessageDetailLabel(J);V(`WebSocketTransport: Sending message type=${J.type}${Q}${Z}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,Z=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${Z?` tool=${Z}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>I){V(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),W("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){V("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),W("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(Z){V(`WebSocketTransport: Ping failed: ${Z}`,{level:"error"}),W("error","cli_websocket_ping_failed")}}},YJ)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),b(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send($J),this.lastActivityTime=Date.now(),V("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){V(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),W("error","cli_websocket_keepalive_failed")}},zJ)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var LJ=100,jJ=15000,BJ=3000;class qJ extends F{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,Z,$){super(J,K,Q,Z,$);let{maxConsecutiveFailures:G,onBatchDropped:Y}=$??{};this.postUrl=OJ(J),this.uploader=new q({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(X,z)=>{W("error","cli_hybrid_batch_dropped_max_failures",{batchSize:X,failures:z}),Y?.(X,z)},send:(X)=>this.postOnce(X)}),V(`HybridTransport: POST URL = ${this.postUrl}`),W("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),LJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,BJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=E();if(!K){V("HybridTransport: No session token available for POST"),W("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},Z;try{Z=await P.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:jJ})}catch($){throw V(`HybridTransport: POST error: ${$.message}`),W("warn","cli_hybrid_post_network_error"),$}if(Z.status>=200&&Z.status<300){V(`HybridTransport: POST success count=${J.length}`);return}if(Z.status>=400&&Z.status<500&&Z.status!==429){V(`HybridTransport: POST returned ${Z.status} (permanent), dropping`),W("warn","cli_hybrid_post_client_error",{status:Z.status});return}throw V(`HybridTransport: POST returned ${Z.status} (retryable)`),W("warn","cli_hybrid_post_retryable_error",{status:Z.status}),Error(`POST failed with ${Z.status}`)}}function OJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}import{randomUUID as l}from"crypto";_();U();r();c();m();D();y();a();y();class f{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?g(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await O(this.retryDelay(Q)),this.pending&&!this.closed)K=g(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function g(J,K){let Q={...J};for(let[Z,$]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&Q[Z]&&typeof Q[Z]==="object"&&typeof $==="object"&&$!==null)Q[Z]={...Q[Z],...$};else Q[Z]=$;return Q}var HJ=20000,RJ=100;function n(){return!0}class N extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var xJ=10;function MJ(){return{byMessage:new Map,scopeToMessage:new Map}}function T(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function AJ(J,K){let Q=[],Z=new Map;for(let $ of J){let G=$.event;switch(G.type){case"message_start":{let Y=G.message.id,X=K.scopeToMessage.get(T($));if(X)K.byMessage.delete(X);K.scopeToMessage.set(T($),Y),K.byMessage.set(Y,[]),Q.push($);break}case"content_block_delta":{if(G.delta.type!=="text_delta"){Q.push($);break}let Y=K.scopeToMessage.get(T($)),X=Y?K.byMessage.get(Y):void 0;if(!X){Q.push($);break}let z=X[G.index]??=[];z.push(G.delta.text);let L=Z.get(z);if(L){L.event.delta.text=z.join("");break}let j={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:G.index,delta:{type:"text_delta",text:z.join("")}}};Z.set(z,j),Q.push(j);break}default:Q.push($)}}return Q}function _J(J,K){J.byMessage.delete(K.message.id);let Q=T(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class UJ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=o({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=MJ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??HJ,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??w,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new f({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((G)=>G.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new q({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let G=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!G.ok)throw new R("client event POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new q({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let G=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!G.ok)throw new R("internal event POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new q({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let G=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((Y)=>({event_id:Y.eventId,status:Y.status}))},"delivery batch");if(!G.ok)throw new R("delivery POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new N("no_auth_headers");if(J===void 0){let Y=process.env.CLAUDE_CODE_WORKER_EPOCH;J=Y?parseInt(Y,10):NaN}if(isNaN(J))throw new N("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new N("worker_register_failed");this.currentState="idle",this.startHeartbeat(),k(()=>{this.writeEvent({type:"keep_alive"})}),V(`CCRClient: initialized, epoch=${this.workerEpoch}`),W("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:$,durationMs:G}=await Q;if(!this.closed)W("info","cli_worker_state_restored",{duration_ms:G,had_state:$!==null});return $}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,Z,{timeout:$=1e4}={}){let G=this.getAuthHeaders();if(Object.keys(G).length===0)return{ok:!1};try{let Y=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...G,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":x()},validateStatus:n,timeout:$});if(Y.status>=200&&Y.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(Y.status===409)this.handleEpochMismatch();if(Y.status===401||Y.status===403){let X=E(),z=X?s(X):null;if(z!==null&&z*1000<Date.now())V(`CCRClient: session_token expired (exp=${new Date(z*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),W("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=xJ)V(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),W("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(V(`CCRClient: ${Z} returned ${Y.status}`,{level:"warn"}),W("warn","cli_worker_request_failed",{method:J,path:K,status:Y.status}),Y.status===429){let X=Y.headers?.["retry-after"],z=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(z)&&z>=0)return{ok:!1,retryAfterMs:z*1000}}return{ok:!1}}catch(Y){return V(`CCRClient: ${Z} failed: ${H(Y)}`,{level:"warn"}),W("warn","cli_worker_request_error",{method:J,path:K,error_code:t(Y)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){V("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),W("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)V("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),RJ);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")_J(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:l()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=AJ(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:Z}={}){let $={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:l()},...Q&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let $=[],G;do{let Y=new URL(`${this.sessionBaseUrl}${J}`);for(let[z,L]of Object.entries(K))Y.searchParams.set(z,L);if(G)Y.searchParams.set("cursor",G);let X=await this.getWithRetry(Y.toString(),Z,Q);if(!X)return null;$.push(...X.data??[]),G=X.next_cursor}while(G);return V(`CCRClient: Read ${$.length} internal events from ${J}${K.subagents?" (subagents)":""}`),$}async getWithRetry(J,K,Q){for(let Z=1;Z<=10;Z++){let $;try{$=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":x()},validateStatus:n,timeout:30000})}catch(G){if(V(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${H(G)}`,{level:"warn"}),Z<10){let Y=Math.min(500*2**(Z-1),30000)+Math.random()*500;await O(Y)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(V(`CCRClient: GET ${J} returned ${$.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let G=Math.min(500*2**(Z-1),30000)+Math.random()*500;await O(G)}}return V("CCRClient: GET retries exhausted",{level:"error"}),W("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),M(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}i();_();U();r();D();y();C();a();var kJ=1000,PJ=30000,EJ=600000,NJ=45000,TJ=new Set([401,403,404]),A=10,wJ=500,CJ=8000,SJ={stream:!0};function FJ(){return!0}function DJ(J){let K=[],Q=0,Z;while((Z=J.indexOf(`
5
+
6
+ `,Q))!==-1){let $=J.slice(Q,Z);if(Q=Z+2,!$.trim())continue;let G={},Y=!1;for(let X of $.split(`
7
+ `)){if(X.startsWith(":")){Y=!0;continue}let z=X.indexOf(":");if(z===-1)continue;let L=X.slice(0,z),j=X[z+1]===" "?X.slice(z+2):X.slice(z+1);switch(L){case"event":G.event=j;break;case"id":G.id=j;break;case"data":G.data=G.data?G.data+`
8
+ `+j:j;break}}if(G.data||Y)K.push(G)}return{frames:K,remaining:J.slice(Q)}}class yJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,Z,$,G){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=Z,this.getAuthHeaders=G??w,this.postUrl=fJ(J),$!==void 0&&$>0)this.lastSequenceNum=$;V(`SSETransport: SSE URL = ${J.href}`),V(`SSETransport: POST URL = ${this.postUrl}`),W("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){V(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),W("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),Z={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":x()};if(Q.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);V(`SSETransport: Opening ${K.href}`),W("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!$.ok){let Y=TJ.has($.status);if(V(`SSETransport: HTTP ${$.status}${Y?" (permanent)":""}`,{level:"error"}),W("error","cli_sse_connect_http_error",{status:$.status}),Y){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){V("SSETransport: No response body"),this.handleConnectionError();return}let G=Date.now()-J;V("SSETransport: Connected"),W("info","cli_sse_connect_connected",{duration_ms:G}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;V(`SSETransport: Connection error: ${H($)}`,{level:"error"}),W("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,Z="";try{while(!0){let{done:$,value:G}=await K.read();if($)break;Z+=Q.decode(G,SJ);let{frames:Y,remaining:X}=DJ(Z);Z=X;for(let z of Y){if(this.resetLivenessTimer(),z.id){let L=parseInt(z.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))V(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),W("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let j=this.lastSequenceNum-200;for(let v of this.seenSequenceNums)if(v<j)this.seenSequenceNums.delete(v)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(z.event&&z.data)this.handleSSEFrame(z.event,z.data);else if(z.data)V("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),W("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;V(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),W("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")V("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){V(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),W("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=e(K)}catch($){V(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let Z=Q.payload;if(Z&&typeof Z==="object"&&"type"in Z){let $=this.sessionId?` session=${this.sessionId}`:"";V(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(Z.type)}${$}`),W("info","cli_sse_message_received"),this.onData?.(B(Z)+`
9
+ `)}else V(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<EJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),V("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(kJ*Math.pow(2,this.reconnectAttempts-1),PJ),Z=Math.max(0,Q+Q*0.25*(2*Math.random()-1));V(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),W("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else V(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),W("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,V("SSETransport: Liveness timeout, reconnecting",{level:"error"}),W("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,NJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){V("SSETransport: No session token available for POST"),W("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":x()};V(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=A;Z++){try{let G=await P.post(this.postUrl,J,{headers:Q,validateStatus:FJ});if(G.status===200||G.status===201){V(`SSETransport: POST success type=${J.type}`);return}if(V(`SSETransport: POST ${G.status} body=${B(G.data).slice(0,200)}`),G.status>=400&&G.status<500&&G.status!==429){V(`SSETransport: POST returned ${G.status} (client error), not retrying`),W("warn","cli_sse_post_client_error",{status:G.status});return}V(`SSETransport: POST returned ${G.status}, attempt ${Z}/${A}`),W("warn","cli_sse_post_retryable_error",{status:G.status,attempt:Z})}catch(G){V(`SSETransport: POST error: ${G.message}, attempt ${Z}/${A}`),W("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===A){V(`SSETransport: POST failed after ${A} attempts, continuing`),W("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(wJ*Math.pow(2,Z-1),CJ);await O($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function fJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
10
+ export{F as Wa,qJ as Xa,N as Ya,UJ as Za,yJ as _a};
@@ -0,0 +1,2 @@
1
+ import{ub as N}from"./cli-1.1.38-0sbej1sm.mjs";import{bM as A,cM as w}from"./cli-1.1.38-tk968ykv.mjs";import{Nfa as x,Pfa as j}from"./cli-1.1.38-a678cgp1.mjs";import{Aja as K,bja as L,fja as E,xja as X}from"./cli-1.1.38-yfhvhcvt.mjs";import{Xja as G,cka as k}from"./cli-1.1.38-mh6a6g83.mjs";w();import{randomUUID as C}from"crypto";K();j();k();E();function O(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function T(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function h(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function D(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function c(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return x(V)||void 0}function m(H,Z,V,f,$,B){try{let J=N(L(H));if(T(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(h(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!O(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${G(J)}`)}}var P="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:Y}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:P}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=Y?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let _={...W,session_id:f};V.write(_),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function q(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...A},modelUsage:{},permission_denials:[],session_id:H,uuid:C()}}class S{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{D as ob,c as pb,m as qb,v as rb,q as sb,S as tb};
@@ -0,0 +1,2 @@
1
+ import{x as D0}from"./cli-1.1.38-ygyme6j6.mjs";import{y as u0}from"./cli-1.1.38-tvh77h3r.mjs";import{Qa as b0}from"./cli-1.1.38-sjrfgskz.mjs";import{$b as t,ac as d0}from"./cli-1.1.38-md7mbf9q.mjs";import{md as I0,od as Lf}from"./cli-1.1.38-y57qzkxr.mjs";import{rd as x,sd as Ff}from"./cli-1.1.38-pab9ct4p.mjs";import{Cd as W0,Dd as r0}from"./cli-1.1.38-7vygkwbt.mjs";import{Pg as P0,Qg as hf}from"./cli-1.1.38-pe2vd8sk.mjs";import{$S as A0,Ax as p0,CO as E,GO as L0,Gz as l0,Ij as m0,Kj as k0,Mj as t0,Mx as D,Nx as l,OE as r,OS as E0,PE as i0,QE as o,SF as O0,TF as Tf,US as K0,YS as y0,ZS as Rf,aF as N0,bT as qf,fF as I,gF as F0,hF as B0,iF as ff,oz as T0,qz as g0,vx as N,wx as c0,wz as h0,xx as $,yx as x0,zx as s}from"./cli-1.1.38-tk968ykv.mjs";import{YX as j,eW as _,qX as v,sX as y,wX as d}from"./cli-1.1.38-y79rqp8p.mjs";import{n0 as H0,x0 as e0}from"./cli-1.1.38-1kce30qe.mjs";import{A1 as M,B1 as Y,y1 as S,z1 as F}from"./cli-1.1.38-h1fqbjjb.mjs";import{$1 as $0,X1 as Z0,w2 as M0,x2 as s0}from"./cli-1.1.38-s1nggz9g.mjs";import{Ada as O,Dda as V0,Fda as X0,Ifa as Y0,Lfa as v0,Nda as C,gaa as U0,h_ as G0,j_ as J0,l_ as Q0,xda as W,xea as S0}from"./cli-1.1.38-a678cgp1.mjs";import{Cga as n0,yga as X}from"./cli-1.1.38-qv0rqvhj.mjs";import{ika as z0,qka as a0}from"./cli-1.1.38-nzbcas3j.mjs";import{Bpa as o0,Yma as q0,bpa as w0}from"./cli-1.1.38-44ay6q12.mjs";import{Lqa as u,Qqa as m}from"./cli-1.1.38-y66mw08s.mjs";t0();o0();qf();e0();F0();v0();C();N0();l();var a=u(_(),1);j();Y();var g=u(_(),1);function A(){let T=g.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=M(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",F(d,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}Y();function n(T){let f=a.c(13),{serverName:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(Z){f:switch(Z){case"yes":case"yes_all":{let k=(O()||{}).enabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{enabledMcpjsonServers:[...k,h]});if(Z==="yes_all")W("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let k=(O()||{}).disabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{disabledMcpjsonServers:[...k,h]});L()}}},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q=`New MCP server found in .mcp.json: ${h}`,G;if(f[3]!==R)G=()=>R("no"),f[3]=R,f[4]=G;else G=f[4];let q;if(f[5]===Symbol.for("react.memo_cache_sentinel"))q=F(A,{}),f[5]=q;else q=f[5];let z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=z;else z=f[6];let J;if(f[7]!==R)J=F(o,{options:z,onChange:(V)=>R(V),onCancel:()=>R("no")}),f[7]=R,f[8]=J;else J=f[8];let U;if(f[9]!==Q||f[10]!==G||f[11]!==J)U=M(D,{title:Q,color:"warning",onCancel:G,children:[q,J]}),f[9]=Q,f[10]=G,f[11]=J,f[12]=U;else U=f[12];return U}d0();j();C();x0();i0();p0();l();c0();var e=u(_(),1);Y();function f0(T){let f=e.c(21),{serverNames:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(b){let K=O()||{},_0=K.enabledMcpjsonServers||[],C0=K.disabledMcpjsonServers||[],[p,i]=t(h,(P)=>b.includes(P));if(p.length>0){let P=[...new Set([..._0,...p])];W("localSettings",{enabledMcpjsonServers:P})}if(i.length>0){let P=[...new Set([...C0,...i])];W("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q;if(f[3]!==L||f[4]!==h)Q=()=>{let b=(O()||{}).disabledMcpjsonServers||[],K=[...new Set([...b,...h])];W("localSettings",{disabledMcpjsonServers:K}),L()},f[3]=L,f[4]=h,f[5]=Q;else Q=f[5];let G=Q,q=`${h.length} new MCP servers found in .mcp.json`,z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=F(A,{}),f[6]=z;else z=f[6];let J;if(f[7]!==h)J=h.map(j0),f[7]=h,f[8]=J;else J=f[8];let U;if(f[9]!==G||f[10]!==R||f[11]!==h||f[12]!==J)U=F(r,{options:J,defaultValue:h,onSubmit:R,onCancel:G,hideIndexes:!0}),f[9]=G,f[10]=R,f[11]=h,f[12]=J,f[13]=U;else U=f[13];let V;if(f[14]!==G||f[15]!==q||f[16]!==U)V=M(D,{title:q,subtitle:"Select any you wish to enable.",color:"warning",onCancel:G,hideInputGuide:!0,children:[z,U]}),f[14]=G,f[15]=q,f[16]=U,f[17]=V;else V=f[17];let Z;if(f[18]===Symbol.for("react.memo_cache_sentinel"))Z=F(v,{paddingX:1,children:F(y,{dimColor:!0,italic:!0,children:M(s,{children:[F(N,{shortcut:"Space",action:"select"}),F(N,{shortcut:"Enter",action:"confirm"}),F($,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=Z;else Z=f[18];let B;if(f[19]!==V)B=M(S,{children:[V,Z]}),f[19]=V,f[20]=B;else B=f[20];return B}function j0(T){return{label:T,value:T}}F0();L0();l0();g0();Y();async function R0(T){let{servers:f}=h0("project"),h=Object.keys(f).filter((L)=>T0(L)==="pending");if(h.length===0)return;await new Promise((L)=>{let w=()=>void L();if(h.length===1&&h[0]!==void 0){let R=h[0];T.render(F(E,{children:F(I,{children:F(n,{serverName:R,onDone:w})})}))}else T.render(F(E,{children:F(I,{children:F(f0,{serverNames:h,onDone:w})})}))})}L0();Ff();s0();Rf();S0();Lf();a0();class c{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let h=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((G,q)=>q-G),w=Math.max(0,Math.ceil(L.length*0.01)-1),R=L[w],Q=R>0?1000/R:0;return{averageFps:Math.round(h*100)/100,low1PctFps:Math.round(Q*100)/100}}}r0();$0();ff();hf();Tf();C();n0();Y();function wf(){G0((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function zf(T,f){return new Promise((h)=>{let L=(w)=>void h(w);T.render(f(L))})}async function QT(T,f,h){return Gf(T,f,{color:"error",beforeExit:h})}async function Gf(T,f,h){let{Text:L}=await import("./ink-1.1.38-jgsp2t7f.mjs"),w=h?.color,R=h?.exitCode??1;T.render(w?F(L,{color:w,children:f}):F(L,{children:f})),T.unmount(),await h?.beforeExit?.(),process.exit(R)}function H(T,f,h){return zf(T,(L)=>F(E,{onChangeAppState:h?.onChangeAppState,children:F(I,{children:f(L)})}))}async function UT(T,f){T.render(f),D0(),await T.waitUntilExit(),await k0(0)}async function VT(T,f,h,L,w){if(process.env.IS_DEMO)return!1;X("setupScreens_start");let R=Z0(),Q=!1;if(I0()){let{MigrationDialog:q}=await import("./MigrationDialog-1.1.38-hg33ngjd.mjs");await H(T,(z)=>F(q,{onDone:()=>void z()}))}let G=J0();if(R&&(!G.theme||!G.hasCompletedOnboarding)){Q=!0;let{Onboarding:q}=await import("./Onboarding-1.1.38-e0dgakf3.mjs");await H(T,(z)=>F(q,{onDone:()=>{wf(),z()}}),{onChangeAppState:x})}if(!z0(process.env.CLAUBBIT)){if(R&&!U0()){let{TrustDialog:q}=await import("./TrustDialog-1.1.38-ze3nezmq.mjs");await H(T,(z)=>F(q,{commands:L,onDone:z}))}if(w0(!0),X("setupScreens_after_trust_accepted"),A0(),X("setupScreens_after_system_context_kick"),R){let{errors:q}=O0();if(q.length===0)await R0(T);X("setupScreens_after_mcp_approvals");let z=await y0();if(X("setupScreens_after_claudemd_check"),z){let J=E0(await K0(!0)),{ClaudeMdExternalIncludesDialog:U}=await import("./ClaudeMdExternalIncludesDialog-1.1.38-pb4syd5b.mjs");await H(T,(V)=>F(U,{onDone:V,isStandaloneDialog:!0,externalIncludes:J}))}}}u0(),W0(),X("setupScreens_after_env_applied");{let q=Y0();X("setupScreens_after_tryGetActiveProvider");let z=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(z){let J=M0(z),U=Q0(J);if(X("setupScreens_after_keyStatus"),U==="new"){let{ApproveApiKey:V}=await import("./ApproveApiKey-1.1.38-g8aaewqn.mjs");await H(T,(Z)=>F(V,{customApiKeyTruncated:J,onDone:Z}),{onChangeAppState:x})}}}if(X("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||h)&&!V0()){let{BypassPermissionsModeDialog:q}=await import("./BypassPermissionsModeDialog-1.1.38-ng5ew4f1.mjs");await H(T,(z)=>F(q,{onAccept:z}))}if(f==="auto"&&!X0()){let{AutoModeOptInDialog:q}=await import("./AutoModeOptInDialog-1.1.38-3xp2vky0.mjs");await H(T,(z)=>F(q,{onAccept:z,onDecline:()=>m0(1),declineExits:!0}))}return X("setupScreens_end"),Q}function XT(T){P0();let f=0,h=B0(T),L=new c,w=b0();return q0(w),{getFpsMetrics:()=>L.getMetrics(),stats:w,renderOptions:{...h,onFrame:(R)=>{if(L.record(R.durationMs),w.observe("frame_duration_ms",R.durationMs),H0())return;for(let Q of R.flickers){if(Q.reason==="resize")continue;f=Date.now()}}}}}
2
+ export{wf as p,zf as q,QT as r,Gf as s,H as t,UT as u,VT as v,XT as w};
@@ -0,0 +1,2 @@
1
+ import{vC as m,wC as e}from"./cli-1.1.38-tk968ykv.mjs";import{Pqa as n}from"./cli-1.1.38-y66mw08s.mjs";function c(o){t.setState(()=>[...o])}var t,r=()=>t.getState(),d;var s=n(()=>{e();t=m([]),d=t.subscribe});
2
+ export{r as Pc,d as Qc,c as Rc,s as Sc};
@@ -0,0 +1,2 @@
1
+ import{FW as N,GW as U,HW as H,YW as I,ZW as V,_W as p}from"./cli-1.1.38-y79rqp8p.mjs";import{B1 as P,z1 as L}from"./cli-1.1.38-h1fqbjjb.mjs";import{C1 as F}from"./cli-1.1.38-h6qtpp5r.mjs";import{Bpa as A,vna as T}from"./cli-1.1.38-44ay6q12.mjs";import{Lqa as _,Pqa as $}from"./cli-1.1.38-y66mw08s.mjs";function v({children:W,ref:X,stickyScroll:Y,...E}){let w=C.useRef(null),[,Z]=C.useState(0),G=C.useRef(new Set),J=C.useRef(!1),O=()=>{for(let g of G.current)g()};function K(g){if(T(),N(g),O(),J.current)return;J.current=!0,queueMicrotask(()=>{J.current=!1,U(g)})}return C.useImperativeHandle(X,()=>({scrollTo(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.pendingScrollDelta=void 0,q.scrollAnchor=void 0,q.scrollTop=Math.max(0,Math.floor(g)),K(q)},scrollToElement(g,q=0){let z=w.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor={el:g,offset:q},K(z)},scrollBy(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.scrollAnchor=void 0,q.pendingScrollDelta=(q.pendingScrollDelta??0)+Math.floor(g),K(q)},scrollToBottom(){let g=w.current;if(!g)return;g.pendingScrollDelta=void 0,g.stickyScroll=!0,N(g),O(),Z((q)=>q+1)},getScrollTop(){return w.current?.scrollTop??0},getPendingDelta(){return w.current?.pendingScrollDelta??0},getScrollHeight(){return w.current?.scrollHeight??0},getFreshScrollHeight(){return w.current?.childNodes[0]?.yogaNode?.getComputedHeight()??w.current?.scrollHeight??0},getViewportHeight(){return w.current?.scrollViewportHeight??0},getViewportTop(){return w.current?.scrollViewportTop??0},isSticky(){let g=w.current;if(!g)return!1;return g.stickyScroll??Boolean(g.attributes.stickyScroll)},subscribe(g){return G.current.add(g),()=>G.current.delete(g)},setClampBounds(g,q){let z=w.current;if(!z)return;z.scrollClampMin=g,z.scrollClampMax=q}}),[]),L("ink-box",{ref:(g)=>{if(w.current=g,g)g.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:E.flexDirection??"row",flexGrow:E.flexGrow??0,flexShrink:E.flexShrink??1,...E,overflowX:"scroll",overflowY:"scroll"},...Y?{stickyScroll:!0}:{},children:L(V,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:W})})}var C,S;var D=$(()=>{A();H();I();p();P();C=_(F(),1);S=v});
2
+ export{S as Ch,D as Dh};
@@ -0,0 +1,2 @@
1
+ import{Mx as f,Nx as v,QE as P,aF as g}from"./cli-1.1.38-tk968ykv.mjs";import{YX as p,eW as m,qX as B,sX as J,wX as L}from"./cli-1.1.38-y79rqp8p.mjs";import{A1 as H,B1 as y,z1 as G}from"./cli-1.1.38-h1fqbjjb.mjs";import{eaa as Z,xea as I}from"./cli-1.1.38-a678cgp1.mjs";import{Lqa as C,Pqa as T}from"./cli-1.1.38-y66mw08s.mjs";function i(q){let b=E.c(18),{onDone:U,isStandaloneDialog:k,externalIncludes:F}=q,K;if(b[1]!==U)K=(Y)=>{if(Y==="no")Z(S);else Z(h);U()},b[1]=U,b[2]=K;else K=b[2];let w=K,M;if(b[3]!==w)M=()=>{w("no")},b[3]=w,b[4]=M;else M=b[4];let V=M,W=!k,X=!k,N;if(b[5]===Symbol.for("react.memo_cache_sentinel"))N=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=N;else N=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(B,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(D)]}),b[6]=F,b[7]=z;else z=b[7];let O;if(b[8]===Symbol.for("react.memo_cache_sentinel"))O=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(L,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=O;else O=b[8];let Q;if(b[9]===Symbol.for("react.memo_cache_sentinel"))Q=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=Q;else Q=b[9];let A;if(b[10]!==w)A=G(P,{options:Q,onChange:(Y)=>w(Y)}),b[10]=w,b[11]=A;else A=b[11];let R;if(b[12]!==V||b[13]!==A||b[14]!==W||b[15]!==X||b[16]!==z)R=H(f,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:V,hideBorder:W,hideInputGuide:X,children:[N,z,O,A]}),b[12]=V,b[13]=A,b[14]=W,b[15]=X,b[16]=z,b[17]=R;else R=b[17];return R}function D(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function h(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function S(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}var E;var j=T(()=>{p();I();g();v();y();E=C(m(),1)});
2
+ export{i as Rg,j as Sg};
@@ -0,0 +1,3 @@
1
+ import{QT as O,RT as S}from"./cli-1.1.38-hkbb3sr7.mjs";import{J$ as M,K$ as R,Tfa as G,Yfa as y,aaa as _,c_ as B,daa as z,e_ as v,eaa as A,s$ as D,t$ as I,xea as k}from"./cli-1.1.38-a678cgp1.mjs";import{Iha as q,Kha as x}from"./cli-1.1.38-fr1kxnk2.mjs";import{$pa as W,_pa as K}from"./cli-1.1.38-n9xftqbp.mjs";W();x();k();v();I();_();y();S();var b=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function F(L){return!b.some((Q)=>Q.test(L))}function P(L,Q){let J=[],X=new Set,U=new Map;for(let H=1;J.length<Q&&H<=Q;H++)for(let V of L){if(J.length>=Q)break;if(!F(V))continue;let Y=Math.max(V.lastIndexOf("/"),V.lastIndexOf("\\")),Z=Y>=0?V.slice(Y+1):V;if(!Z||X.has(Z))continue;let $=Y>=0?V.slice(0,Y):".";if((U.get($)??0)>=H)continue;J.push(Z),X.add(Z),U.set($,(U.get($)??0)+1)}return J.length>=Q?J:[]}async function N(){if(B.platform==="win32")return[];if(!await R())return[];try{let L=await O(),Q=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],J=new Map,X=(H)=>{for(let V of H.split(`
2
+ `)){let Y=V.trim();if(Y)J.set(Y,(J.get(Y)??0)+1)}};if(L){let{stdout:H}=await D("git",[...Q,`--author=${L}`],{cwd:q()});X(H)}if(J.size<10){let{stdout:H}=await D(M(),Q,{cwd:q()});X(H)}let U=Array.from(J.entries()).sort((H,V)=>V[1]-H[1]).map(([H])=>H);return P(U,5)}catch(L){return G(L),[]}}var T=604800000;function E(L){let Q=z(),J=Q.exampleFiles?.length?Q.exampleFiles:["<filepath>"],U=[...["fix lint errors","fix typecheck errors",`how does ${J[0]} work?`,`refactor ${J[Math.floor(J.length/2)]}`,"how do I log an error?",`edit ${J[J.length-1]} to...`,`write a test for ${J[0]}`,"create a util logging.py that..."]];for(let H=U.length-1;H>0;H--){let V=Math.floor(Math.random()*(H+1));[U[H],U[V]]=[U[V],U[H]]}return U.slice(0,L).map((H)=>`Try "${H}"`)}var d=K((L)=>{return E(L)}),p=K(async()=>{let L=z(),Q=Date.now(),J=L.exampleFilesGeneratedAt??0;if(Q-J>T)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((X)=>{if(X.length)A((U)=>({...U,exampleFiles:X,exampleFilesGeneratedAt:Date.now()}))})});
3
+ export{P as ua,d as va,p as wa};
@@ -0,0 +1,2 @@
1
+ import{eW as f}from"./cli-1.1.38-y79rqp8p.mjs";import{B1 as i,z1 as n}from"./cli-1.1.38-h1fqbjjb.mjs";import{C1 as M}from"./cli-1.1.38-h6qtpp5r.mjs";import{Lqa as o}from"./cli-1.1.38-y66mw08s.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
+ export{a as Sa,l as Ta};
@@ -0,0 +1,2 @@
1
+ import{Ax as Wq,BA as T,CA as Vq,DO as h,EO as a,GO as Iq,Kj as H,Mj as Jq,QE as r,aF as Fq,kx as m,lx as Xq,mm as w,mx as d,nm as Qq,ox as Yq,rx as S,sx as Zq,tx as p,uA as g,ux as $q,vx as V,wx as zq,xA as c,yA as _q,zx as u}from"./cli-1.1.38-tk968ykv.mjs";import{YX as Nq,iW as v,jW as y,kW as j,qX as J,sX as N}from"./cli-1.1.38-y79rqp8p.mjs";import{A1 as G,B1 as b,y1 as _,z1 as q}from"./cli-1.1.38-h1fqbjjb.mjs";import{C1 as Lq}from"./cli-1.1.38-h6qtpp5r.mjs";import{Nda as Gq,xda as B}from"./cli-1.1.38-a678cgp1.mjs";import{Lqa as e,Pqa as qq}from"./cli-1.1.38-y66mw08s.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[K]=v(),U=y(),{columns:i}=w(),Y=Q.useMemo(()=>g(),[]),Z=Y===null?c(K):null,{setPreviewTheme:k,savePreview:M,cancelPreview:R}=j(),z=h((L)=>L.settings.syntaxHighlightingDisabled??!1),f=a();m("ThemePicker",!0);let W=p("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),l=Q.useCallback(()=>{if(Y===null){let L=!z;B("userSettings",{syntaxHighlightingDisabled:L}),f((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,f]);d("theme:toggleSyntaxHighlighting",l,{context:"ThemePicker"});let D=S($?()=>{}:void 0),E=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{k(L)},[k]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else H(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDIN_SYNTAX_HIGHLIGHT=${process.env.CLAUDIN_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(r,{options:E,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:E.length,defaultValue:U,defaultFocusValue:U})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Oq,{patch:Aq,dim:!1,filePath:"demo.js",firstLine:null,width:i})},K),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:D.pending?G(_,{children:["Press ",D.keyName," again to exit"]}):G(u,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Oq,Aq;var Kq=qq(()=>{Zq();Qq();Nq();Xq();Yq();$q();Iq();Jq();Gq();Fq();Wq();zq();_q();Vq();b();Q=e(Lq(),1),Oq=T,Aq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
+ export{mq as lh,Kq as mh};
@@ -0,0 +1,2 @@
1
+ import{Q$ as T,aaa as $}from"./cli-1.1.38-a678cgp1.mjs";import{Iha as O,Kha as Y}from"./cli-1.1.38-fr1kxnk2.mjs";import{Aja as X,xja as E}from"./cli-1.1.38-yfhvhcvt.mjs";import{Pqa as V}from"./cli-1.1.38-y66mw08s.mjs";function j(){B.clear()}async function P(){let z=await Z();if(!z)return null;if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}async function Z(){let z=O();if(B.has(z))return B.get(z)??null;try{let q=await T();if(E(`Git remote URL: ${q}`),!q)return E("No git remote URL found"),B.set(z,null),null;let x=Q(q);return E(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),B.set(z,x),x}catch(q){return E(`Error detecting repository: ${q}`),B.set(z,null),null}}function Q(z){let q=z.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let A=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],J=A[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:I==="https"||I==="http"?J:K,owner:A[3],name:A[4]}}return null}function S(z){let q=z.trim(),x=Q(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let A=q.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${q}`),null}function N(z){if(!z.includes("."))return!1;let q=z.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var B;var _=V(()=>{Y();X();$();B=new Map});
2
+ export{j as a9,P as b9,Z as c9,Q as d9,S as e9,_ as f9};
@@ -0,0 +1,2 @@
1
+ import{ci as W,ii as i}from"./cli-1.1.38-ndbzsvf1.mjs";import{$S as f,AN as n,Cj as _,Dj as P,GP as l,IB as M,JB as p,Lq as $,Nq as D,OD as U,QD as S,WS as G,Wi as Z,Xi as v,Xu as B,Yu as A,ZM as j,ZS as s,_M as C,_S as R,aT as y,bN as E,bT as r,dv as K,eP as b,ev as m,fP as o,pC as N,qC as g,tH as V,wN as h,yH as d,yP as x,zN as L}from"./cli-1.1.38-tk968ykv.mjs";import{a9 as Y,f9 as k}from"./cli-1.1.38-38f3b9as.mjs";import{D$ as I,w$ as X,x_ as Q,y_ as u}from"./cli-1.1.38-a678cgp1.mjs";import{Bpa as T,vpa as O,xka as J}from"./cli-1.1.38-44ay6q12.mjs";import{Pqa as F,Qqa as w}from"./cli-1.1.38-y66mw08s.mjs";function jq(H=new Set){let z=H.size>0;if(y.cache.clear?.(),f.cache.clear?.(),R.cache.clear?.(),Z.cache.clear?.(),W(),x(),!z)B();if(M("main"),J(null),b(),E(),G("session_start"),U(),Q.clear(),_(),!z)V();if(Y(),$(),!z)N();O(H),X(),j(),K(),L(),import("./utils-1.1.38-709jv8e9.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.38-xdxg0v37.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.38-0bgzxgy4.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.38-qwzt31qc.mjs").then(({clearPromptCache:q})=>q())}var c=F(()=>{T();l();v();r();i();d();g();A();p();P();o();m();C();h();D();s();k();I();u();S();n()});
2
+ export{jq as Ph,c as Qh};
@@ -0,0 +1,34 @@
1
+ import{YX as Aq,oX as z,uX as Bq,vX as xq}from"./cli-1.1.38-y79rqp8p.mjs";import{a6 as H,b6 as Rq}from"./cli-1.1.38-z9faf3ft.mjs";import{A_ as $q,B_ as jq,M9 as Yq,P9 as Zq,Q9 as wq,Tfa as v,Yfa as a,b$ as p,c_ as W,cea as l,daa as N,e_ as Mq,eaa as m,eea as Gq,h_ as _,i$ as zq,j_ as R,r$ as G,t$ as o,xea as b}from"./cli-1.1.38-a678cgp1.mjs";import{Iha as T,Kha as Wq}from"./cli-1.1.38-fr1kxnk2.mjs";import{aja as Qq,bja as Xq,fja as _q,jja as c,nja as Hq}from"./cli-1.1.38-yfhvhcvt.mjs";import{aka as E,cka as Uq}from"./cli-1.1.38-mh6a6g83.mjs";import{$pa as Lq,_pa as s}from"./cli-1.1.38-n9xftqbp.mjs";import{Pqa as A}from"./cli-1.1.38-y66mw08s.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
2
+
3
+ No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=$q(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
4
+ `;else if(Y==="windows")B=` • Windows: Windows Terminal
5
+ `;let Z=`Terminal setup cannot be run from ${X}.
6
+
7
+ This command configures a convenient Shift+Enter shortcut for multi-line prompts.
8
+ ${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
9
+
10
+ To set up the shortcut (optional):
11
+ 1. Exit tmux/screen temporarily
12
+ 2. Run /terminal-setup directly in one of these terminals:
13
+ ${B} • IDE: VSCode, Cursor, Windsurf, Zed
14
+ • Other: Alacritty
15
+ 3. Return to tmux/screen - settings will persist
16
+
17
+ ${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
18
+ {
19
+ "key": "shift+enter",
20
+ "command": "workbench.action.terminal.sendSequence",
21
+ "args": { "text": "\\u001b\\r" },
22
+ "when": "terminalFocus"
23
+ }
24
+ ]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Yq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=Zq(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
25
+ `))Z+=`
26
+ `;return Z+=`
27
+ [[keyboard.bindings]]
28
+ key = "Return"
29
+ mods = "Shift"
30
+ chars = "\\u001B\\r"
31
+ `,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
32
+ `,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
33
+ `,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();Mq();Uq();o();wq();a();jq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
34
+ export{i as SV,n as TV,e as UV,qq as VV,FJ as WV,Eq as XV,Tq as YV,UJ as ZV,_J as _V,RJ as $V,wJ as aW,Cq as bW};
@@ -0,0 +1,7 @@
1
+ import{Gm as h,Hm as wQ,Im as u,Jm as LQ,Sl as jQ,hN as E,iN as MQ}from"./cli-1.1.38-tk968ykv.mjs";import{Aja as XQ,jja as U,nja as UQ,xja as j}from"./cli-1.1.38-yfhvhcvt.mjs";import{Yja as _,cka as vQ}from"./cli-1.1.38-mh6a6g83.mjs";import{Lqa as GQ,Pqa as C}from"./cli-1.1.38-y66mw08s.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
2
+ `).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
3
+ `).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
4
+ `))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
5
+ `).length;return W.endsWith(`
6
+ `)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
7
+ export{o as ag,I as bg,A as cg,T as dg,N as eg,p as fg,x as gg,F as hg,RQ as ig,QZ as jg,ZZ as kg,fQ as lg};
@@ -0,0 +1,39 @@
1
+ import{BC as z,CC as P,ZQ as L,mQ as B,mR as w,nQ as A}from"./cli-1.1.38-tk968ykv.mjs";import{Haa as h,Oaa as F}from"./cli-1.1.38-a678cgp1.mjs";import{lga as I,tga as v}from"./cli-1.1.38-qv0rqvhj.mjs";import{Pqa as j}from"./cli-1.1.38-y66mw08s.mjs";async function U(W){let{messages:J,getAppState:Q,options:{mainLoopModel:K,tools:Z,agentDefinitions:_,customSystemPrompt:X,appendSystemPrompt:Y}}=W,R=L(J),{messages:O}=await z(R),q=Q();return B(O,K,async()=>q.toolPermissionContext,Z,_,void 0,{options:{customSystemPrompt:X,appendSystemPrompt:Y}},void 0,R)}async function D(W,J){let Q=await U(J);return{type:"text",value:V(Q)}}function V(W){let{categories:J,totalTokens:Q,rawMaxTokens:K,percentage:Z,model:_,memoryFiles:X,mcpTools:Y,agents:R,skills:O}=W,q=`## Context Usage
2
+
3
+ `;q+=`**Model:** ${_}
4
+ `,q+=`**Tokens:** ${I(Q)} / ${I(K)} (${Z}%)
5
+ `,q+=`
6
+ `;let $=J.filter((E)=>E.tokens>0&&E.name!=="Free space"&&E.name!=="Autocompact buffer");if($.length>0){q+=`### Estimated usage by category
7
+
8
+ `,q+=`| Category | Tokens | Percentage |
9
+ `,q+=`|----------|--------|------------|
10
+ `;for(let H of $){let N=(H.tokens/K*100).toFixed(1);q+=`| ${H.name} | ${I(H.tokens)} | ${N}% |
11
+ `}let E=J.find((H)=>H.name==="Free space");if(E&&E.tokens>0){let H=(E.tokens/K*100).toFixed(1);q+=`| Free space | ${I(E.tokens)} | ${H}% |
12
+ `}let G=J.find((H)=>H.name==="Autocompact buffer");if(G&&G.tokens>0){let H=(G.tokens/K*100).toFixed(1);q+=`| Autocompact buffer | ${I(G.tokens)} | ${H}% |
13
+ `}q+=`
14
+ `}if(Y.length>0){q+=`### MCP Tools
15
+
16
+ `,q+=`| Tool | Server | Tokens |
17
+ `,q+=`|------|--------|--------|
18
+ `;for(let E of Y)q+=`| ${E.name} | ${E.serverName} | ${I(E.tokens)} |
19
+ `;q+=`
20
+ `}if(R.length>0){q+=`### Custom Agents
21
+
22
+ `,q+=`| Agent Type | Source | Tokens |
23
+ `,q+=`|------------|--------|--------|
24
+ `;for(let E of R){let G;switch(E.source){case"projectSettings":G="Project";break;case"userSettings":G="User";break;case"localSettings":G="Local";break;case"flagSettings":G="Flag";break;case"policySettings":G="Policy";break;case"plugin":G="Plugin";break;case"built-in":G="Built-in";break;default:G=String(E.source)}q+=`| ${E.agentType} | ${G} | ${I(E.tokens)} |
25
+ `}q+=`
26
+ `}if(X.length>0){q+=`### Memory Files
27
+
28
+ `,q+=`| Type | Path | Tokens |
29
+ `,q+=`|------|------|--------|
30
+ `;for(let E of X)q+=`| ${E.type} | ${E.path} | ${I(E.tokens)} |
31
+ `;q+=`
32
+ `}if(O&&O.tokens>0&&O.skillFrontmatter.length>0){q+=`### Skills
33
+
34
+ `,q+=`| Skill | Source | Tokens |
35
+ `,q+=`|-------|--------|--------|
36
+ `;for(let E of O.skillFrontmatter)q+=`| ${E.name} | ${h(E.source)} | ${I(E.tokens)} |
37
+ `;q+=`
38
+ `}return q}var b=j(()=>{P();A();v();w();F()});
39
+ export{U as wh,D as xh,b as yh};
@@ -0,0 +1,2 @@
1
+ import{Bm as P,ik as Q,jk as I,mR as R,xK as Y,ym as W}from"./cli-1.1.38-tk968ykv.mjs";import{Zfa as B,_fa as f}from"./cli-1.1.38-qv0rqvhj.mjs";import{Rha as H,Sha as J,nia as F}from"./cli-1.1.38-fr1kxnk2.mjs";import{Bpa as $,Yka as x}from"./cli-1.1.38-44ay6q12.mjs";import{Pqa as Z}from"./cli-1.1.38-y66mw08s.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),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),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:x(),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 v=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:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),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 v=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:v}}var G=Z(()=>{$();F();I();f();R();P()});
2
+ export{S as xe,V as ye,X as ze,r as Ae,w as Be,T as Ce,G as De};
@@ -0,0 +1,11 @@
1
+ import{C6 as x,E6 as d}from"./cli-1.1.38-6dwdjwfe.mjs";import{F6 as E,G6 as C,I6 as j,J6 as $,L6 as I,M6 as u}from"./cli-1.1.38-8br976cg.mjs";import{A_ as B,B_ as b,Tfa as f,Yfa as F,h_ as O,j_ as Z,r$ as Q,s$ as X,t$ as D,xea as T}from"./cli-1.1.38-a678cgp1.mjs";import{Aja as A,xja as q}from"./cli-1.1.38-yfhvhcvt.mjs";import{Bpa as m,Wna as p}from"./cli-1.1.38-44ay6q12.mjs";import{Pqa as N,Qqa as R}from"./cli-1.1.38-y66mw08s.mjs";import{homedir as Y}from"os";async function e(){if((await Q("which",["uv"])).code===0)return q("[it2Setup] Found uv (will use uv tool install)"),"uvx";if((await Q("which",["pipx"])).code===0)return q("[it2Setup] Found pipx package manager"),"pipx";if((await Q("which",["pip"])).code===0)return q("[it2Setup] Found pip package manager"),"pip";if((await Q("which",["pip3"])).code===0)return q("[it2Setup] Found pip3 package manager"),"pip";return q("[it2Setup] No Python package manager found"),null}async function k(){return(await Q("which",["it2"])).code===0}async function qq(z){q(`[it2Setup] Installing it2 using ${z}`);let H;switch(z){case"uvx":H=await X("uv",["tool","install","it2"],{cwd:Y()});break;case"pipx":H=await X("pipx",["install","it2"],{cwd:Y()});break;case"pip":if(H=await X("pip",["install","--user","it2"],{cwd:Y()}),H.code!==0)H=await X("pip3",["install","--user","it2"],{cwd:Y()});break}if(H.code!==0){let J=H.stderr||"Unknown installation error";return f(Error(`[it2Setup] Failed to install it2: ${J}`)),{success:!1,error:J,packageManager:z}}return q("[it2Setup] it2 installed successfully"),{success:!0,packageManager:z}}async function zq(){if(q("[it2Setup] Verifying it2 setup..."),!await k())return{success:!1,error:"it2 CLI is not installed or not in PATH"};let H=await Q("it2",["session","list"]);if(H.code!==0){let J=H.stderr.toLowerCase();if(J.includes("api")||J.includes("python")||J.includes("connection refused")||J.includes("not enabled"))return q("[it2Setup] Python API not enabled in iTerm2"),{success:!1,error:"Python API not enabled in iTerm2 preferences",needsPythonApiEnabled:!0};return{success:!1,error:H.stderr||"Failed to communicate with iTerm2"}}return q("[it2Setup] it2 setup verified successfully"),{success:!0}}function Hq(){return["Almost done! Enable the Python API in iTerm2:",""," iTerm2 → Settings → General → Magic → Enable Python API","","After enabling, you may need to restart iTerm2."]}function Jq(){if(Z().iterm2It2SetupComplete!==!0)O((H)=>({...H,iterm2It2SetupComplete:!0})),q("[it2Setup] Marked it2 setup as complete")}function Kq(z){if(Z().preferTmuxOverIterm2!==z)O((J)=>({...J,preferTmuxOverIterm2:z})),q(`[it2Setup] Set preferTmuxOverIterm2 = ${z}`)}function w(){return Z().preferTmuxOverIterm2===!0}var v=N(()=>{T();A();D();F()});async function s(){if(y)return;await import("./TmuxBackend-1.1.38-s7acgm11.mjs"),await import("./ITermBackend-1.1.38-34mcvk0g.mjs"),y=!0}function _q(z){S=z}function $q(z){q(`[registry] registerITermBackend called, class=${z?.name||"undefined"}`),W=z}function _(){if(!S)throw Error("TmuxBackend not registered. Import TmuxBackend.ts before using the registry.");return new S}function h(){if(!W)throw Error("ITermBackend not registered. Import ITermBackend.ts before using the registry.");return new W}async function Oq(){if(await s(),K)return q(`[BackendRegistry] Using cached backend: ${K.backend.type}`),K;q("[BackendRegistry] Starting backend detection...");let z=await C(),H=$();if(q(`[BackendRegistry] Environment: insideTmux=${z}, inITerm2=${H}`),z){q("[BackendRegistry] Selected: tmux (running inside tmux session)");let L=_();return U=L,K={backend:L,isNative:!0,needsIt2Setup:!1},K}if(H){let L=w();if(L)q("[BackendRegistry] User prefers tmux over iTerm2, skipping iTerm2 detection");else{let V=await I();if(q(`[BackendRegistry] iTerm2 detected, it2 CLI available: ${V}`),V){q("[BackendRegistry] Selected: iterm2 (native iTerm2 with it2 CLI)");let M=h();return U=M,K={backend:M,isNative:!0,needsIt2Setup:!1},K}}let P=await j();if(q(`[BackendRegistry] it2 not available, tmux available: ${P}`),P){q("[BackendRegistry] Selected: tmux (fallback in iTerm2, it2 setup recommended)");let V=_();return U=V,K={backend:V,isNative:!1,needsIt2Setup:!L},K}throw q("[BackendRegistry] ERROR: iTerm2 detected but no it2 CLI and no tmux"),Error("iTerm2 detected but it2 CLI not installed. Install it2 with: pip install it2")}let J=await j();if(q(`[BackendRegistry] Not in tmux or iTerm2, tmux available: ${J}`),J){q("[BackendRegistry] Selected: tmux (external session mode)");let L=_();return U=L,K={backend:L,isNative:!1,needsIt2Setup:!1},K}throw q("[BackendRegistry] ERROR: No pane backend available"),Error(t())}function t(){switch(B()){case"macos":return`To use agent swarms, install tmux:
2
+ brew install tmux
3
+ Then start a tmux session with: tmux new-session -s claude`;case"linux":case"wsl":return`To use agent swarms, install tmux:
4
+ sudo apt install tmux # Ubuntu/Debian
5
+ sudo dnf install tmux # Fedora/RHEL
6
+ Then start a tmux session with: tmux new-session -s claude`;case"windows":return`To use agent swarms, you need tmux which requires WSL (Windows Subsystem for Linux).
7
+ Install WSL first, then inside WSL run:
8
+ sudo apt install tmux
9
+ Then start a tmux session with: tmux new-session -s claude`;default:return`To use agent swarms, install tmux using your system's package manager.
10
+ Then start a tmux session with: tmux new-session -s claude`}}function Eq(z){switch(z){case"tmux":return _();case"iterm2":return h()}}function jq(){return U}function yq(){return K}function Sq(){q("[BackendRegistry] Marking in-process fallback as active"),G=!0}function i(){return x()}function l(){if(p())return q("[BackendRegistry] isInProcessEnabled: true (non-interactive session)"),!0;let z=i(),H;if(z==="in-process")H=!0;else if(z==="tmux")H=!1;else{if(G)return q("[BackendRegistry] isInProcessEnabled: true (fallback after pane backend unavailable)"),!0;let J=E(),L=$();H=!J&&!L}return q(`[BackendRegistry] isInProcessEnabled: ${H} (mode=${z}, insideTmux=${E()}, inITerm2=${$()})`),H}function Wq(){return l()?"in-process":"tmux"}function Gq(){U=null,K=null,y=!1,G=!1}var U=null,K=null,y=!1,G=!1,S=null,W=null;var n=N(()=>{m();A();b();u();v();d()});
11
+ export{e as f6,qq as g6,zq as h6,Hq as i6,Jq as j6,Kq as k6,v as l6,s as m6,_q as n6,$q as o6,Oq as p6,Eq as q6,jq as r6,yq as s6,Sq as t6,l as u6,Wq as v6,Gq as w6,n as x6};
@@ -0,0 +1,2 @@
1
+ import{B1 as F,z1 as w}from"./cli-1.1.38-h1fqbjjb.mjs";import{Qqa as D}from"./cli-1.1.38-y66mw08s.mjs";F();var z,B;function O(q,v){z=q,B=v}async function Q(q,v,G,H){let J=z??import("./App-1.1.38-ywjx5zwg.mjs"),K=B??import("./REPL-1.1.38-24nb99vc.mjs");z=void 0,B=void 0;let[{App:M},{REPL:N}]=await Promise.all([J,K]);await H(q,w(M,{...v,children:w(N,{...G})}))}
2
+ export{O as Oa,Q as Pa};
@@ -0,0 +1,3 @@
1
+ import{YX as o,eW as t,iW as p,oX as j,pX as s,qX as F,sX as V}from"./cli-1.1.38-y79rqp8p.mjs";import{A1 as g,B1 as y,z1 as w}from"./cli-1.1.38-h1fqbjjb.mjs";import{A9 as _,B9 as n,o9 as $,p9 as a}from"./cli-1.1.38-a678cgp1.mjs";import{Lqa as i,Pqa as v}from"./cli-1.1.38-y66mw08s.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
+ `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
+ export{Hq as _f,Mq as $f};
@@ -0,0 +1,2 @@
1
+ import{$pa as B7,Cpa as nQ,Dpa as H8,Epa as d,Fpa as g1,Gpa as F5,Hpa as RY,Ipa as q,Jpa as A,Kpa as m,Lpa as bQ,Mpa as P,Npa as Q1,Opa as Q$,Ppa as J7,Qpa as E5,Rpa as vY,Spa as v,Tpa as iY,Upa as C,Vpa as G1,Wpa as y,Xpa as VQ,Ypa as a,Zpa as MQ,_pa as X$}from"./cli-1.1.38-n9xftqbp.mjs";import{Oqa as K5,Pqa as X}from"./cli-1.1.38-y66mw08s.mjs";import{randomUUID as s}from"crypto";var I1=()=>{};import{realpathSync as HQ}from"fs";import{cwd as t$}from"process";function e$(Q){return _1.add(Q),()=>_1.delete(Q)}function QJ(){g()}function g(){for(let Q of _1)try{Q()}catch{}}function k1(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof HQ==="function"){let Y=t$();try{Q=HQ(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"],statsStore:null,sessionId:s(),parentSessionId:void 0,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}}var _1,$;var V=X(()=>{I1();_1=new Set;$=k1()});function $J(){return $.systemPromptSectionCache}function JJ(Q,J){$.systemPromptSectionCache.set(Q,J)}function YJ(){$.systemPromptSectionCache.clear()}function ZJ(){return $.lastEmittedDate}function XJ(Q){$.lastEmittedDate=Q}function HJ(){return $.additionalDirectoriesForClaudeMd}function WJ(Q){$.additionalDirectoriesForClaudeMd=Q}function xJ(){return $.allowedChannels}function UJ(Q){$.allowedChannels=Q,g()}function KJ(){return $.hasDevChannels}function GJ(Q){$.hasDevChannels=Q}function BJ(){return $.largeSystemPromptDetected}function NJ(Q){$.largeSystemPromptDetected=Q}function wJ(){return $.afkModeHeaderLatched}function zJ(Q){$.afkModeHeaderLatched=Q}function FJ(){return $.fastModeHeaderLatched}function RJ(Q){$.fastModeHeaderLatched=Q}function qJ(){return $.thinkingClearLatched}function DJ(Q){$.thinkingClearLatched=Q}function OJ(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function VJ(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function MJ(){return $.deferredDeltaLegacySession}function LJ(Q){$.deferredDeltaLegacySession=Q}function E1(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function PJ(){return $.sessionEpochMs}function fJ(){return $.promptId}function CJ(Q){$.promptId=Q}function IJ(){return!1}function _J(){return null}var v1=X(()=>{V()});function WQ(){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 xQ=()=>{};function kJ(){return $.sessionId}function EJ(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=s(),$.sessionProjectDir=null,KQ($.sessionId),$.sessionId}function vJ(){return $.parentSessionId}function gJ(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,KQ(Q)}function KQ(Q){$.pendingSessionWakeup=null,E1(),$.sessionEpochMs=Date.now(),UQ.emit(Q)}function yJ(){return $.sessionProjectDir}var UQ,dJ;var GQ=X(()=>{I1();v1();V();xQ();UQ=WQ();dJ=UQ.subscribe});function SJ(){return $.originalCwd}function pJ(){return $.projectRoot}function AJ(Q){$.originalCwd=Q.normalize("NFC")}function mJ(Q){$.projectRoot=Q.normalize("NFC")}function hJ(){return $.cwd}function jJ(Q){$.cwd=Q.normalize("NFC")}function nJ(){return $.directConnectServerUrl}function bJ(Q){$.directConnectServerUrl=Q}var BQ=X(()=>{V()});function iJ(){this.__data__=new d,this.size=0}var NQ;var wQ=X(()=>{g1();NQ=iJ});function uJ(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var zQ;var FQ=X(()=>{zQ=uJ});function TJ(Q){return this.__data__.get(Q)}var RQ;var qQ=X(()=>{RQ=TJ});function lJ(Q){return this.__data__.has(Q)}var DQ;var OQ=X(()=>{DQ=lJ});function rJ(Q,J){var Y=this.__data__;if(Y instanceof d){var Z=Y.__data__;if(!y||Z.length<cJ-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new a(Z)}return Y.set(Q,J),this.size=Y.size,this}var cJ=200,LQ;var PQ=X(()=>{g1();VQ();MQ();LQ=rJ});function S(Q){var J=this.__data__=new d(Q);this.size=J.size}var p;var d1=X(()=>{g1();wQ();FQ();qQ();OQ();PQ();S.prototype.clear=NQ;S.prototype.delete=zQ;S.prototype.get=RQ;S.prototype.has=DQ;S.prototype.set=LQ;p=S});function sJ(Q){return this.__data__.set(Q,oJ),this}var oJ="__lodash_hash_undefined__",fQ;var CQ=X(()=>{fQ=sJ});function aJ(Q){return this.__data__.has(Q)}var IQ;var _Q=X(()=>{IQ=aJ});function t(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new a;while(++J<Y)this.add(Q[J])}var kQ;var EQ=X(()=>{MQ();CQ();_Q();t.prototype.add=t.prototype.push=fQ;t.prototype.has=IQ;kQ=t});function tJ(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 vQ;var gQ=X(()=>{vQ=tJ});function eJ(Q,J){return Q.has(J)}var dQ;var yQ=X(()=>{dQ=eJ});function J8(Q,J,Y,Z,H,W){var x=Y&Q8,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,M=Y&$8?new kQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(M){if(!vQ(J,function(_,k){if(!dQ(M,k)&&(R===_||H(R,_,Y,Z,W)))return M.push(k)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var Q8=1,$8=2,e;var y1=X(()=>{EQ();gQ();yQ();e=J8});var Y8,S1;var SQ=X(()=>{A();Y8=q.Uint8Array,S1=Y8});function Z8(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var pQ;var AQ=X(()=>{pQ=Z8});function X8(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var mQ;var hQ=X(()=>{mQ=X8});function O8(Q,J,Y,Z,H,W,x){switch(Y){case D8:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case q8:if(Q.byteLength!=J.byteLength||!W(new S1(Q),new S1(J)))return!1;return!0;case U8:case K8:case N8:return nQ(+Q,+J);case G8:return Q.name==J.name&&Q.message==J.message;case w8:case F8:return Q==J+"";case B8:var U=pQ;case z8:var B=Z&W8;if(U||(U=mQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=x8,x.set(Q,J);var F=e(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case R8:if(p1)return p1.call(Q)==p1.call(J)}return!1}var W8=1,x8=2,U8="[object Boolean]",K8="[object Date]",G8="[object Error]",B8="[object Map]",N8="[object Number]",w8="[object RegExp]",z8="[object Set]",F8="[object String]",R8="[object Symbol]",q8="[object ArrayBuffer]",D8="[object DataView]",jQ,p1,iQ;var uQ=X(()=>{bQ();SQ();H8();y1();AQ();hQ();jQ=m?m.prototype:void 0,p1=jQ?jQ.valueOf:void 0;iQ=O8});function V8(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var TQ;var lQ=X(()=>{TQ=V8});var M8,w;var L=X(()=>{M8=Array.isArray,w=M8});function L8(Q,J,Y){var Z=J(Q);return w(Q)?Z:TQ(Z,Y(Q))}var cQ;var rQ=X(()=>{lQ();L();cQ=L8});function P8(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 oQ;var sQ=X(()=>{oQ=P8});function f8(){return[]}var aQ;var tQ=X(()=>{aQ=f8});var C8,I8,eQ,_8,Q5;var $5=X(()=>{sQ();tQ();C8=Object.prototype,I8=C8.propertyIsEnumerable,eQ=Object.getOwnPropertySymbols,_8=!eQ?aQ:function(Q){if(Q==null)return[];return Q=Object(Q),oQ(eQ(Q),function(J){return I8.call(Q,J)})},Q5=_8});function k8(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var J5;var Y5=X(()=>{J5=k8});function E8(Q){return Q!=null&&typeof Q=="object"}var O;var h=X(()=>{O=E8});function g8(Q){return O(Q)&&P(Q)==v8}var v8="[object Arguments]",A1;var Z5=X(()=>{Q1();h();A1=g8});var X5,d8,y8,S8,$1;var m1=X(()=>{Z5();h();X5=Object.prototype,d8=X5.hasOwnProperty,y8=X5.propertyIsEnumerable,S8=A1(function(){return arguments}())?A1:function(Q){return O(Q)&&d8.call(Q,"callee")&&!y8.call(Q,"callee")},$1=S8});function p8(){return!1}var H5;var W5=X(()=>{H5=p8});var Y1={};K5(Y1,{default:()=>j});var G5,x5,A8,U5,m8,h8,j;var h1=X(()=>{A();W5();G5=typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,x5=G5&&typeof J1=="object"&&J1&&!J1.nodeType&&J1,A8=x5&&x5.exports===G5,U5=A8?q.Buffer:void 0,m8=U5?U5.isBuffer:void 0,h8=m8||H5,j=h8});function b8(Q,J){var Y=typeof Q;return J=J==null?j8:J,!!J&&(Y=="number"||Y!="symbol"&&n8.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var j8=9007199254740991,n8,Z1;var j1=X(()=>{n8=/^(?:0|[1-9]\d*)$/;Z1=b8});function u8(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=i8}var i8=9007199254740991,n;var X1=X(()=>{n=u8});function zY(Q){return O(Q)&&n(Q.length)&&!!G[P(Q)]}var T8="[object Arguments]",l8="[object Array]",c8="[object Boolean]",r8="[object Date]",o8="[object Error]",s8="[object Function]",a8="[object Map]",t8="[object Number]",e8="[object Object]",QY="[object RegExp]",$Y="[object Set]",JY="[object String]",YY="[object WeakMap]",ZY="[object ArrayBuffer]",XY="[object DataView]",HY="[object Float32Array]",WY="[object Float64Array]",xY="[object Int8Array]",UY="[object Int16Array]",KY="[object Int32Array]",GY="[object Uint8Array]",BY="[object Uint8ClampedArray]",NY="[object Uint16Array]",wY="[object Uint32Array]",G,B5;var N5=X(()=>{Q1();X1();h();G={};G[HY]=G[WY]=G[xY]=G[UY]=G[KY]=G[GY]=G[BY]=G[NY]=G[wY]=!0;G[T8]=G[l8]=G[ZY]=G[c8]=G[XY]=G[r8]=G[o8]=G[s8]=G[a8]=G[t8]=G[e8]=G[QY]=G[$Y]=G[JY]=G[YY]=!1;B5=zY});function FY(Q){return function(J){return Q(J)}}var w5;var z5=X(()=>{w5=FY});var W1={};K5(W1,{default:()=>x1});var R5,T,qY,n1,DY,x1;var q5=X(()=>{RY();R5=typeof W1=="object"&&W1&&!W1.nodeType&&W1,T=R5&&typeof H1=="object"&&H1&&!H1.nodeType&&H1,qY=T&&T.exports===R5,n1=qY&&F5.process,DY=function(){try{var Q=T&&T.require&&T.require("util").types;if(Q)return Q;return n1&&n1.binding&&n1.binding("util")}catch(J){}}(),x1=DY});var D5,OY,U1;var b1=X(()=>{N5();z5();q5();D5=x1&&x1.isTypedArray,OY=D5?w5(D5):B5,U1=OY});function LY(Q,J){var Y=w(Q),Z=!Y&&$1(Q),H=!Y&&!Z&&j(Q),W=!Y&&!Z&&!H&&U1(Q),x=Y||Z||H||W,U=x?J5(Q.length,String):[],B=U.length;for(var K in Q)if((J||MY.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Z1(K,B))))U.push(K);return U}var VY,MY,O5;var V5=X(()=>{Y5();m1();L();h1();j1();b1();VY=Object.prototype,MY=VY.hasOwnProperty;O5=LY});function fY(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||PY;return Q===Y}var PY,M5;var L5=X(()=>{PY=Object.prototype;M5=fY});function CY(Q,J){return function(Y){return Q(J(Y))}}var P5;var f5=X(()=>{P5=CY});var IY,C5;var I5=X(()=>{f5();IY=P5(Object.keys,Object),C5=IY});function EY(Q){if(!M5(Q))return C5(Q);var J=[];for(var Y in Object(Q))if(kY.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var _Y,kY,_5;var k5=X(()=>{L5();I5();_Y=Object.prototype,kY=_Y.hasOwnProperty;_5=EY});function gY(Q){return Q!=null&&n(Q.length)&&!E5(Q)}var v5;var g5=X(()=>{vY();X1();v5=gY});function dY(Q){return v5(Q)?O5(Q):_5(Q)}var K1;var i1=X(()=>{V5();k5();g5();K1=dY});function yY(Q){return cQ(Q,K1,Q5)}var u1;var d5=X(()=>{rQ();$5();i1();u1=yY});function mY(Q,J,Y,Z,H,W){var x=Y&SY,U=u1(Q),B=U.length,K=u1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:AY.call(J,N)))return!1}var M=W.get(Q),R=W.get(J);if(M&&R)return M==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var _=Q[N],k=J[N];if(Z)var XQ=x?Z(k,_,N,J,Q,W):Z(_,k,N,Q,J,W);if(!(XQ===void 0?_===k||H(_,k,Y,Z,W):XQ)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var r=Q.constructor,o=J.constructor;if(r!=o&&(("constructor"in Q)&&("constructor"in J))&&!(typeof r=="function"&&r instanceof r&&typeof o=="function"&&o instanceof o))D=!1}return W.delete(Q),W.delete(J),D}var SY=1,pY,AY,y5;var S5=X(()=>{d5();pY=Object.prototype,AY=pY.hasOwnProperty;y5=mY});var hY,B1;var p5=X(()=>{G1();A();hY=C(q,"DataView"),B1=hY});var jY,N1;var A5=X(()=>{G1();A();jY=C(q,"Promise"),N1=jY});var nY,w1;var m5=X(()=>{G1();A();nY=C(q,"Set"),w1=nY});var bY,z1;var h5=X(()=>{G1();A();bY=C(q,"WeakMap"),z1=bY});var j5="[object Map]",uY="[object Object]",n5="[object Promise]",b5="[object Set]",i5="[object WeakMap]",u5="[object DataView]",TY,lY,cY,rY,oY,E,T1;var T5=X(()=>{p5();VQ();A5();m5();h5();Q1();iY();TY=v(B1),lY=v(y),cY=v(N1),rY=v(w1),oY=v(z1),E=P;if(B1&&E(new B1(new ArrayBuffer(1)))!=u5||y&&E(new y)!=j5||N1&&E(N1.resolve())!=n5||w1&&E(new w1)!=b5||z1&&E(new z1)!=i5)E=function(Q){var J=P(Q),Y=J==uY?Q.constructor:void 0,Z=Y?v(Y):"";if(Z)switch(Z){case TY:return u5;case lY:return j5;case cY:return n5;case rY:return b5;case oY:return i5}return J};T1=E});function tY(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?c5:T1(Q),K=U?c5:T1(J);B=B==l5?F1:B,K=K==l5?F1:K;var F=B==F1,z=K==F1,N=B==K;if(N&&j(Q)){if(!j(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||U1(Q)?e(Q,J,Y,Z,H,W):iQ(Q,J,B,Y,Z,H,W);if(!(Y&sY)){var M=F&&r5.call(Q,"__wrapped__"),R=z&&r5.call(J,"__wrapped__");if(M||R){var D=M?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),y5(Q,J,Y,Z,H,W)}var sY=1,l5="[object Arguments]",c5="[object Array]",F1="[object Object]",aY,r5,o5;var s5=X(()=>{d1();y1();uQ();S5();T5();L();h1();b1();aY=Object.prototype,r5=aY.hasOwnProperty;o5=tY});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 o5(Q,J,Y,Z,a5,H)}var R1;var l1=X(()=>{s5();h();R1=a5});function $7(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?R1(F,K,eY|Q7,Z,z):N))return!1}}return!0}var eY=1,Q7=2,t5;var e5=X(()=>{d1();l1();t5=$7});function Y7(Q){return Q===Q&&!Q$(Q)}var q1;var c1=X(()=>{J7();q1=Y7});function Z7(Q){var J=K1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,q1(H)]}return J}var $$;var J$=X(()=>{c1();i1();$$=Z7});function X7(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var D1;var r1=X(()=>{D1=X7});function H7(Q){var J=$$(Q);if(J.length==1&&J[0][2])return D1(J[0][0],J[0][1]);return function(Y){return Y===Q||t5(Y,Q,J)}}var Y$;var Z$=X(()=>{e5();J$();r1();Y$=H7});function x7(Q){return typeof Q=="symbol"||O(Q)&&P(Q)==W7}var W7="[object Symbol]",b;var O1=X(()=>{Q1();h();b=x7});function G7(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||b(Q))return!0;return K7.test(Q)||!U7.test(Q)||J!=null&&Q in Object(J)}var U7,K7,i;var V1=X(()=>{L();O1();U7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K7=/^\w*$/;i=G7});function w7(Q){var J=X$(Q,function(Z){if(Y.size===N7)Y.clear();return Z}),Y=J.cache;return J}var N7=500,H$;var W$=X(()=>{B7();H$=w7});var z7,F7,R7,x$;var U$=X(()=>{W$();z7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,F7=/\\(\\)?/g,R7=H$(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(z7,function(Y,Z,H,W){J.push(H?W.replace(F7,"$1"):Z||Y)}),J}),x$=R7});function q7(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 K$;var G$=X(()=>{K$=q7});function w$(Q){if(typeof Q=="string")return Q;if(w(Q))return K$(Q,w$)+"";if(b(Q))return N$?N$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-D7?"-0":J}var D7=1/0,B$,N$,z$;var F$=X(()=>{bQ();G$();L();O1();B$=m?m.prototype:void 0,N$=B$?B$.toString:void 0;z$=w$});function O7(Q){return Q==null?"":z$(Q)}var R$;var q$=X(()=>{F$();R$=O7});function V7(Q,J){if(w(Q))return Q;return i(Q,J)?[Q]:x$(R$(Q))}var M1;var o1=X(()=>{L();V1();U$();q$();M1=V7});function L7(Q){if(typeof Q=="string"||b(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-M7?"-0":J}var M7=1/0,I;var l=X(()=>{O1();I=L7});function P7(Q,J){J=M1(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 L1;var s1=X(()=>{o1();l();L1=P7});function f7(Q,J,Y){var Z=Q==null?void 0:L1(Q,J);return Z===void 0?Y:Z}var D$;var O$=X(()=>{s1();D$=f7});function C7(Q,J){return Q!=null&&J in Object(Q)}var V$;var M$=X(()=>{V$=C7});function I7(Q,J,Y){J=M1(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&&n(H)&&Z1(x,H)&&(w(Q)||$1(Q))}var L$;var P$=X(()=>{o1();m1();L();j1();X1();l();L$=I7});function _7(Q,J){return Q!=null&&L$(Q,J,V$)}var f$;var C$=X(()=>{M$();P$();f$=_7});function v7(Q,J){if(i(Q)&&q1(J))return D1(I(Q),J);return function(Y){var Z=D$(Y,Q);return Z===void 0&&Z===J?f$(Y,Q):R1(J,Z,k7|E7)}}var k7=1,E7=2,I$;var _$=X(()=>{l1();O$();C$();V1();c1();r1();l();I$=v7});function g7(Q){return Q}var k$;var E$=X(()=>{k$=g7});function d7(Q){return function(J){return J==null?void 0:J[Q]}}var v$;var g$=X(()=>{v$=d7});function y7(Q){return function(J){return L1(J,Q)}}var d$;var y$=X(()=>{s1();d$=y7});function S7(Q){return i(Q)?v$(I(Q)):d$(Q)}var S$;var p$=X(()=>{g$();y$();V1();l();S$=S7});function p7(Q){if(typeof Q=="function")return Q;if(Q==null)return k$;if(typeof Q=="object")return w(Q)?I$(Q[0],Q[1]):Y$(Q);return S$(Q)}var A$;var m$=X(()=>{Z$();_$();E$();L();p$();A$=p7});function A7(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 h$;var j$=X(()=>{h$=A7});function m7(Q,J){return Q&&Q.length?h$(Q,A$(J,2)):0}var u;var n$=X(()=>{m$();j$();u=m7});function h7(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function j7(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function n7(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function b7(){return $.totalCostUSD}function i7(){return $.totalAPIDuration}function u7(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function T7(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function l7(){return $.turnActiveSince!=null}function c7(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function r7(){return $.totalAPIDurationWithoutRetries}function o7(){return $.totalToolDuration}function s7(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function a7(){return $.turnHookDurationMs}function t7(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function e7(){$.turnHookDurationMs=0,$.turnHookCount=0}function QZ(){return $.turnHookCount}function $Z(){return $.turnToolDurationMs}function JZ(){$.turnToolDurationMs=0,$.turnToolCount=0}function YZ(){return $.turnToolCount}function ZZ(){return $.turnClassifierDurationMs}function XZ(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function HZ(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function WZ(){return $.turnClassifierCount}function xZ(){return $.statsStore}function UZ(Q){$.statsStore=Q}function KZ(Q){if(Q)b$();else a1=!0}function GZ(){if(a1)b$()}function b$(){$.lastInteractionTime=Date.now(),a1=!1}function BZ(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function NZ(){return $.totalLinesAdded}function wZ(){return $.totalLinesRemoved}function zZ(){return u(Object.values($.modelUsage),"inputTokens")}function t1(){return u(Object.values($.modelUsage),"outputTokens")}function FZ(){return u(Object.values($.modelUsage),"cacheReadInputTokens")}function RZ(){return u(Object.values($.modelUsage),"cacheCreationInputTokens")}function qZ(){return u(Object.values($.modelUsage),"webSearchRequests")}function DZ(){return t1()-e1}function OZ(){return QQ}function VZ(Q){e1=t1(),QQ=Q,f1=0}function MZ(){return f1}function LZ(){f1++}function i$(){e1=0,QQ=null,f1=0}function PZ(){$.hasUnknownModelCost=!0}function fZ(){return $.hasUnknownModelCost}function CZ(){return $.lastMainRequestId}function IZ(Q){$.lastMainRequestId=Q}function _Z(){return $.lastApiCompletionTimestamp}function kZ(Q){$.lastApiCompletionTimestamp=Q}function EZ(){$.pendingPostCompaction=!0}function vZ(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function gZ(){return $.lastInteractionTime}function dZ(){if(P1=!0,c)clearTimeout(c);c=setTimeout(()=>{P1=!1,c=void 0},u$),c.unref?.()}function yZ(){return P1}async function SZ(){while(P1)await new Promise((Q)=>setTimeout(Q,u$).unref?.())}function pZ(){return $.modelUsage}function AZ(Q){return $.modelUsage[Q]}function mZ(){return $.mainLoopModelOverride}function hZ(){return $.initialMainLoopModel}function jZ(Q){$.mainLoopModelOverride=Q}function nZ(Q){$.initialMainLoopModel=Q}function bZ(){return $.sdkBetas}function iZ(Q){$.sdkBetas=Q}function uZ(){$.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 TZ({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 lZ(){return $.modelStrings}function cZ(Q){$.modelStrings=Q}function rZ(){$.modelStrings=null}var a1=!1,e1=0,QQ=null,f1=0,P1=!1,c,u$=150;var $Q=X(()=>{n$();V()});function T3(){return JQ}function l3(Q){JQ=Q}function c3(Q){return C1.has(Q)?C1.get(Q):void 0}function r3(Q,J){C1.set(Q,J)}function o3(Q){return YQ.get(Q)}function s3(Q,J){YQ.set(Q,J)}function T$(){JQ=null,C1.clear(),YQ.clear()}function a3(){return ZQ}function t3(Q){ZQ=Q}function e3(){ZQ=void 0}var JQ=null,C1,YQ,ZQ;var l$=X(()=>{C1=new Map;YQ=new Map});function c$(){return!$.isInteractive}function oZ(){return $.isInteractive}function sZ(Q){$.isInteractive=Q}function aZ(){return $.clientType}function tZ(Q){$.clientType=Q}function eZ(){return $.sdkAgentProgressSummariesEnabled}function Q6(Q){$.sdkAgentProgressSummariesEnabled=Q}function $6(){return $.kairosActive}function J6(Q){$.kairosActive=Q,g()}function Y6(){return $.strictToolResultPairing}function Z6(Q){$.strictToolResultPairing=Q}function X6(){return $.userMsgOptIn}function H6(Q){$.userMsgOptIn=Q,g()}function W6(){return $.sessionSource}function x6(Q){$.sessionSource=Q}function U6(){return $.questionPreviewFormat}function K6(Q){$.questionPreviewFormat=Q}function G6(){return $.agentColorMap}function B6(){return $.flagSettingsPath}function N6(Q){$.flagSettingsPath=Q}function w6(){return $.flagSettingsInline}function z6(Q){$.flagSettingsInline=Q}function F6(){return $.sessionIngressToken}function R6(Q){$.sessionIngressToken=Q}function q6(){return $.oauthTokenFromFd}function D6(Q){$.oauthTokenFromFd=Q}function O6(){return $.apiKeyFromFd}function V6(Q){$.apiKeyFromFd=Q}function M6(){return $.allowedSettingSources}function L6(Q){$.allowedSettingSources=Q}function P6(){return c$()&&$.clientType!=="claude-vscode"}function f6(Q){$.inlinePlugins=Q}function C6(){return $.inlinePlugins}function I6(Q){$.useCoworkPlugins=Q,T$()}function _6(){return $.useCoworkPlugins}function k6(Q){$.sessionBypassPermissionsMode=Q}function E6(){return $.sessionBypassPermissionsMode}function v6(Q){$.scheduledTasksEnabled=Q}function g6(){return $.scheduledTasksEnabled}var r$=X(()=>{l$();V()});function d6(Q){$.lastAPIRequest=Q}function y6(){return $.lastAPIRequest}function S6(Q){$.lastAPIRequestMessages=Q}function p6(){return $.lastAPIRequestMessages}function A6(Q){$.lastClassifierRequests=Q}function m6(){return $.lastClassifierRequests}function h6(Q){$.cachedClaudeMdContent=Q}function j6(){return $.cachedClaudeMdContent}function n6(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function b6(Q){$.initJsonSchema=Q}function i6(){return $.initJsonSchema}function u6(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 T6(){return $.registeredHooks}function l6(){$.registeredHooks=null}function c6(){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 r6(){$.initJsonSchema=null,$.registeredHooks=null}var o$=X(()=>{V()});function o6(){return $.sessionCronTasks}function s6(Q){$.sessionCronTasks.push(Q)}function a6(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 t6(){return $.pendingSessionWakeup}function e6(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function QX(){$.pendingSessionWakeup=null}function $X(Q){$.sessionTrustAccepted=Q}function JX(){return $.sessionTrustAccepted}function YX(Q){$.sessionPersistenceDisabled=Q}function ZX(){return $.sessionPersistenceDisabled}function XX(){return $.hasExitedPlanMode}function HX(Q){$.hasExitedPlanMode=Q}function WX(){return $.needsPlanModeExitAttachment}function xX(Q){$.needsPlanModeExitAttachment=Q}function UX(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function KX(){return $.needsAutoModeExitAttachment}function GX(Q){$.needsAutoModeExitAttachment=Q}function BX(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 NX(){return $.planSlugCache}function wX(){return $.sessionCreatedTeams}function zX(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function FX(){return $.teleportedSessionInfo}function RX(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function qX(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function DX(){return $.invokedSkills}function OX(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 VX(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 MX(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function LX(){return $.mainThreadAgentType}function PX(Q){$.mainThreadAgentType=Q}function fX(){return $.isRemoteMode}var s$=X(()=>{V()});function CX(){throw Error("resetStateForTests can only be called in tests")}var a$=X(()=>{$Q();V()});var IX=X(()=>{V();v1();GQ();BQ();$Q();r$();o$();s$();a$()});
2
+ export{e$ as rka,QJ as ska,$J as tka,JJ as uka,YJ as vka,ZJ as wka,XJ as xka,HJ as yka,WJ as zka,xJ as Aka,UJ as Bka,KJ as Cka,GJ as Dka,BJ as Eka,NJ as Fka,wJ as Gka,zJ as Hka,FJ as Ika,RJ as Jka,qJ as Kka,DJ as Lka,OJ as Mka,VJ as Nka,MJ as Oka,LJ as Pka,E1 as Qka,PJ as Rka,fJ as Ska,CJ as Tka,IJ as Uka,_J as Vka,WQ as Wka,xQ as Xka,kJ as Yka,EJ as Zka,vJ as _ka,gJ as $ka,dJ as ala,yJ as bla,SJ as cla,pJ as dla,AJ as ela,mJ as fla,hJ as gla,jJ as hla,nJ as ila,bJ as jla,p as kla,d1 as lla,kQ as mla,EQ as nla,dQ as ola,yQ as pla,S1 as qla,SQ as rla,mQ as sla,hQ as tla,TQ as ula,lQ as vla,w as wla,L as xla,cQ as yla,rQ as zla,oQ as Ala,sQ as Bla,aQ as Cla,tQ as Dla,Q5 as Ela,$5 as Fla,O as Gla,h as Hla,$1 as Ila,m1 as Jla,j as Kla,h1 as Lla,Z1 as Mla,j1 as Nla,w5 as Ola,z5 as Pla,x1 as Qla,q5 as Rla,U1 as Sla,b1 as Tla,O5 as Ula,V5 as Vla,M5 as Wla,L5 as Xla,P5 as Yla,f5 as Zla,v5 as _la,g5 as $la,K1 as ama,i1 as bma,u1 as cma,d5 as dma,w1 as ema,m5 as fma,T1 as gma,T5 as hma,R1 as ima,l1 as jma,b as kma,O1 as lma,K$ as mma,G$ as nma,R$ as oma,q$ as pma,M1 as qma,o1 as rma,I as sma,l as tma,L1 as uma,s1 as vma,k$ as wma,E$ as xma,A$ as yma,m$ as zma,h7 as Ama,j7 as Bma,n7 as Cma,b7 as Dma,i7 as Ema,u7 as Fma,T7 as Gma,l7 as Hma,c7 as Ima,r7 as Jma,o7 as Kma,s7 as Lma,a7 as Mma,t7 as Nma,e7 as Oma,QZ as Pma,$Z as Qma,JZ as Rma,YZ as Sma,ZZ as Tma,XZ as Uma,HZ as Vma,WZ as Wma,xZ as Xma,UZ as Yma,KZ as Zma,GZ as _ma,BZ as $ma,NZ as ana,wZ as bna,zZ as cna,t1 as dna,FZ as ena,RZ as fna,qZ as gna,DZ as hna,OZ as ina,VZ as jna,MZ as kna,LZ as lna,PZ as mna,fZ as nna,CZ as ona,IZ as pna,_Z as qna,kZ as rna,EZ as sna,vZ as tna,gZ as una,dZ as vna,yZ as wna,SZ as xna,pZ as yna,AZ as zna,mZ as Ana,hZ as Bna,jZ as Cna,nZ as Dna,bZ as Ena,iZ as Fna,uZ as Gna,TZ as Hna,lZ as Ina,cZ as Jna,rZ as Kna,T3 as Lna,l3 as Mna,c3 as Nna,r3 as Ona,o3 as Pna,s3 as Qna,T$ as Rna,a3 as Sna,t3 as Tna,e3 as Una,l$ as Vna,c$ as Wna,oZ as Xna,sZ as Yna,aZ as Zna,tZ as _na,eZ as $na,Q6 as aoa,$6 as boa,J6 as coa,Y6 as doa,Z6 as eoa,X6 as foa,H6 as goa,W6 as hoa,x6 as ioa,U6 as joa,K6 as koa,G6 as loa,B6 as moa,N6 as noa,w6 as ooa,z6 as poa,F6 as qoa,R6 as roa,q6 as soa,D6 as toa,O6 as uoa,V6 as voa,M6 as woa,L6 as xoa,P6 as yoa,f6 as zoa,C6 as Aoa,I6 as Boa,_6 as Coa,k6 as Doa,E6 as Eoa,v6 as Foa,g6 as Goa,d6 as Hoa,y6 as Ioa,S6 as Joa,p6 as Koa,A6 as Loa,m6 as Moa,h6 as Noa,j6 as Ooa,n6 as Poa,b6 as Qoa,i6 as Roa,u6 as Soa,T6 as Toa,l6 as Uoa,c6 as Voa,r6 as Woa,o6 as Xoa,s6 as Yoa,a6 as Zoa,t6 as _oa,e6 as $oa,QX as apa,$X as bpa,JX as cpa,YX as dpa,ZX as epa,XX as fpa,HX as gpa,WX as hpa,xX as ipa,UX as jpa,KX as kpa,GX as lpa,BX as mpa,NX as npa,wX as opa,zX as ppa,FX as qpa,RX as rpa,qX as spa,DX as tpa,OX as upa,VX as vpa,MX as wpa,LX as xpa,PX as ypa,fX as zpa,CX as Apa,IX as Bpa};