@claudiolabs/claudin 1.1.13 → 1.1.14

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 (902) hide show
  1. package/README.md +7 -0
  2. package/dist/chunks/AgentTool-1.1.14-9q1ggh0e.mjs +1 -0
  3. package/dist/chunks/App-1.1.14-htg9bgyr.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.14-5mvef4qg.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.14-cdhvy1n1.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.14-amx3pan8.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.14-rs6q16rf.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.14-n5yvcvr6.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.14-53gmdkhz.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.14-30hcgbry.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.14-7sy2g3kq.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.14-e4es88e1.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.14-6h3jm7pr.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.14-chxkapxm.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.14-zpsvdv05.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.14-j9enxt6f.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.14-2b01fwcq.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.14-wbwa9rnr.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.14-04ezket2.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.14-w737z0ya.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.14-vc6rvhd7.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.14-s06dyncs.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.14-8xhjpqb6.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.14-szxvge9a.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.14-pfr2r56w.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.14-y0fr1104.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.14-1hdvwfw0.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.14-mb3f9and.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.14-vtjpr86t.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.14-8f7ye4cx.mjs +1 -0
  31. package/dist/chunks/agents-1.1.14-09h1y56n.mjs +3 -0
  32. package/dist/chunks/agents-1.1.14-0w8wycx4.mjs +110 -0
  33. package/dist/chunks/api-1.1.14-0fbebbzk.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.14-tb149dp4.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.14-z0zfp1et.mjs +1 -0
  36. package/dist/chunks/auth-1.1.14-bap5zejc.mjs +1 -0
  37. package/dist/chunks/auth-1.1.14-f6095j1n.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.14-ez7vz44q.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.14-nh4g2w5c.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.14-85wfz0d2.mjs +1 -0
  41. package/dist/chunks/branch-1.1.14-q182qsp7.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.14-9kv2fqz4.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.14-c73sbxxv.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.14-e8cdsjdy.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.14-v69v0m5y.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.14-a7m65hvd.mjs +1 -0
  47. package/dist/chunks/btw-1.1.14-972yxja7.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.14-j9178h9m.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.14-3ce2pkz1.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.14-qkerj80m.mjs +4 -0
  51. package/dist/chunks/caches-1.1.14-nf8ev61m.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.14-ccv8t2d4.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.14-m5t9ge1t.mjs +1 -0
  54. package/dist/chunks/clear-1.1.14-cfbvvm07.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.14-c99j8gmq.mjs +1 -0
  56. package/dist/chunks/cli-1.1.14-0e209hdd.mjs +2 -0
  57. package/dist/chunks/cli-1.1.14-0f45n8mg.mjs +2 -0
  58. package/dist/chunks/cli-1.1.14-1avercfj.mjs +2 -0
  59. package/dist/chunks/cli-1.1.14-1d5gcev8.mjs +2 -0
  60. package/dist/chunks/cli-1.1.14-1dph8n41.mjs +24 -0
  61. package/dist/chunks/cli-1.1.14-1hghs4qh.mjs +15 -0
  62. package/dist/chunks/cli-1.1.14-1zf42f1b.mjs +2 -0
  63. package/dist/chunks/cli-1.1.14-256a4dam.mjs +21 -0
  64. package/dist/chunks/cli-1.1.14-2gn4jtm1.mjs +3 -0
  65. package/dist/chunks/cli-1.1.14-2ysqsyrs.mjs +4 -0
  66. package/dist/chunks/cli-1.1.14-35sv8v0f.mjs +2 -0
  67. package/dist/chunks/cli-1.1.14-377p51gp.mjs +2 -0
  68. package/dist/chunks/cli-1.1.14-3a1bnf85.mjs +2 -0
  69. package/dist/chunks/cli-1.1.14-3f4fg0jf.mjs +2 -0
  70. package/dist/chunks/cli-1.1.14-3rjxbb1k.mjs +2 -0
  71. package/dist/chunks/cli-1.1.14-42r8tafr.mjs +3 -0
  72. package/dist/chunks/cli-1.1.14-4hs7pyh0.mjs +6 -0
  73. package/dist/chunks/cli-1.1.14-4s9n8yjm.mjs +2 -0
  74. package/dist/chunks/cli-1.1.14-4w3fbvdq.mjs +3 -0
  75. package/dist/chunks/cli-1.1.14-4y2f1s92.mjs +24 -0
  76. package/dist/chunks/cli-1.1.14-53dfe61t.mjs +2 -0
  77. package/dist/chunks/cli-1.1.14-59y1pays.mjs +2 -0
  78. package/dist/chunks/cli-1.1.14-63ezr011.mjs +4 -0
  79. package/dist/chunks/cli-1.1.14-6873seek.mjs +2 -0
  80. package/dist/chunks/cli-1.1.14-6ae3m5qs.mjs +3 -0
  81. package/dist/chunks/cli-1.1.14-6aknzs0q.mjs +3 -0
  82. package/dist/chunks/cli-1.1.14-6ex3vykg.mjs +16 -0
  83. package/dist/chunks/cli-1.1.14-6fa8a7k1.mjs +2 -0
  84. package/dist/chunks/cli-1.1.14-6q6zgmwr.mjs +4 -0
  85. package/dist/chunks/cli-1.1.14-6vr1y1hr.mjs +2 -0
  86. package/dist/chunks/cli-1.1.14-6wh10yar.mjs +2 -0
  87. package/dist/chunks/cli-1.1.14-6ybkavvh.mjs +4 -0
  88. package/dist/chunks/cli-1.1.14-711x17sa.mjs +2 -0
  89. package/dist/chunks/cli-1.1.14-73mqk8g5.mjs +2 -0
  90. package/dist/chunks/cli-1.1.14-73zh23ez.mjs +2 -0
  91. package/dist/chunks/cli-1.1.14-7ccy5ssr.mjs +2 -0
  92. package/dist/chunks/cli-1.1.14-7jt701f6.mjs +2 -0
  93. package/dist/chunks/cli-1.1.14-7pzggsge.mjs +2 -0
  94. package/dist/chunks/cli-1.1.14-83ng5cjk.mjs +2 -0
  95. package/dist/chunks/cli-1.1.14-889fhp26.mjs +3 -0
  96. package/dist/chunks/cli-1.1.14-8d79550c.mjs +2 -0
  97. package/dist/chunks/cli-1.1.14-8eaenjx4.mjs +4 -0
  98. package/dist/chunks/cli-1.1.14-8fx5qjh6.mjs +5440 -0
  99. package/dist/chunks/cli-1.1.14-8g09v1yy.mjs +2 -0
  100. package/dist/chunks/cli-1.1.14-8mn8xn5g.mjs +6 -0
  101. package/dist/chunks/cli-1.1.14-8p0w0geq.mjs +2 -0
  102. package/dist/chunks/cli-1.1.14-8wdw7x7k.mjs +2 -0
  103. package/dist/chunks/cli-1.1.14-8wsrnrk6.mjs +2 -0
  104. package/dist/chunks/cli-1.1.14-8yw87v1w.mjs +2 -0
  105. package/dist/chunks/cli-1.1.14-91ymqn8n.mjs +18 -0
  106. package/dist/chunks/cli-1.1.14-9419wa62.mjs +2 -0
  107. package/dist/chunks/cli-1.1.14-947tpwm7.mjs +2 -0
  108. package/dist/chunks/cli-1.1.14-9cg8tjv3.mjs +3 -0
  109. package/dist/chunks/cli-1.1.14-9gvsxyt7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.14-9nw51dsq.mjs +3 -0
  111. package/dist/chunks/cli-1.1.14-a5v23mcj.mjs +2 -0
  112. package/dist/chunks/cli-1.1.14-ac4030sa.mjs +2 -0
  113. package/dist/chunks/cli-1.1.14-ac5krqkz.mjs +2 -0
  114. package/dist/chunks/cli-1.1.14-acg38ym6.mjs +2 -0
  115. package/dist/chunks/cli-1.1.14-afnxph29.mjs +2 -0
  116. package/dist/chunks/cli-1.1.14-aynsgyjh.mjs +2 -0
  117. package/dist/chunks/cli-1.1.14-az6pbe66.mjs +2 -0
  118. package/dist/chunks/cli-1.1.14-b1sbm8w6.mjs +133 -0
  119. package/dist/chunks/cli-1.1.14-ba8qj93n.mjs +50 -0
  120. package/dist/chunks/cli-1.1.14-bg9cmzcy.mjs +45 -0
  121. package/dist/chunks/cli-1.1.14-bjsx40c2.mjs +2 -0
  122. package/dist/chunks/cli-1.1.14-bjy8bxz1.mjs +2 -0
  123. package/dist/chunks/cli-1.1.14-brw0w20r.mjs +5 -0
  124. package/dist/chunks/cli-1.1.14-bwc8pb1f.mjs +2 -0
  125. package/dist/chunks/cli-1.1.14-byr5dy4k.mjs +4 -0
  126. package/dist/chunks/cli-1.1.14-bz7ts9p7.mjs +2 -0
  127. package/dist/chunks/cli-1.1.14-c30dtxm5.mjs +2 -0
  128. package/dist/chunks/cli-1.1.14-c41jzsx4.mjs +39 -0
  129. package/dist/chunks/cli-1.1.14-cakvdwn3.mjs +2 -0
  130. package/dist/chunks/cli-1.1.14-ce1ghrw0.mjs +2 -0
  131. package/dist/chunks/cli-1.1.14-cfkzk93c.mjs +2 -0
  132. package/dist/chunks/cli-1.1.14-chn2z068.mjs +6 -0
  133. package/dist/chunks/cli-1.1.14-cj411dk7.mjs +2 -0
  134. package/dist/chunks/cli-1.1.14-cnhawbs5.mjs +2 -0
  135. package/dist/chunks/cli-1.1.14-cnkv5cdq.mjs +2 -0
  136. package/dist/chunks/cli-1.1.14-cran8hzr.mjs +2 -0
  137. package/dist/chunks/cli-1.1.14-crdc0nk7.mjs +8 -0
  138. package/dist/chunks/cli-1.1.14-cxm6hsqs.mjs +2 -0
  139. package/dist/chunks/cli-1.1.14-cxqb5hw8.mjs +2 -0
  140. package/dist/chunks/cli-1.1.14-cydkb96c.mjs +2 -0
  141. package/dist/chunks/cli-1.1.14-db3mxak8.mjs +6 -0
  142. package/dist/chunks/cli-1.1.14-e7mfj9cz.mjs +2 -0
  143. package/dist/chunks/cli-1.1.14-ec6d00xg.mjs +66 -0
  144. package/dist/chunks/cli-1.1.14-eccdwm9t.mjs +18 -0
  145. package/dist/chunks/cli-1.1.14-ecnk9fd6.mjs +2 -0
  146. package/dist/chunks/cli-1.1.14-edqga9n4.mjs +2 -0
  147. package/dist/chunks/cli-1.1.14-eh3y4akg.mjs +2 -0
  148. package/dist/chunks/cli-1.1.14-ehnnwt4w.mjs +12 -0
  149. package/dist/chunks/cli-1.1.14-ennnd2wk.mjs +2 -0
  150. package/dist/chunks/cli-1.1.14-esspp1p0.mjs +2 -0
  151. package/dist/chunks/cli-1.1.14-f04bv457.mjs +2 -0
  152. package/dist/chunks/cli-1.1.14-f0686hwn.mjs +2 -0
  153. package/dist/chunks/cli-1.1.14-f0vw7m5f.mjs +2 -0
  154. package/dist/chunks/cli-1.1.14-f2g608st.mjs +2 -0
  155. package/dist/chunks/cli-1.1.14-f2z81veh.mjs +12 -0
  156. package/dist/chunks/cli-1.1.14-f5bvc359.mjs +2 -0
  157. package/dist/chunks/cli-1.1.14-f9dpkjv9.mjs +2 -0
  158. package/dist/chunks/cli-1.1.14-fm5cz88a.mjs +3 -0
  159. package/dist/chunks/cli-1.1.14-fp33ryn9.mjs +2 -0
  160. package/dist/chunks/cli-1.1.14-fq9x6yxc.mjs +2 -0
  161. package/dist/chunks/cli-1.1.14-ftjv2jrz.mjs +2 -0
  162. package/dist/chunks/cli-1.1.14-fwakcyhj.mjs +4 -0
  163. package/dist/chunks/cli-1.1.14-g11hsjv2.mjs +2 -0
  164. package/dist/chunks/cli-1.1.14-g7acy34j.mjs +5 -0
  165. package/dist/chunks/cli-1.1.14-g7ar9cmp.mjs +2 -0
  166. package/dist/chunks/cli-1.1.14-gbf9emxz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.14-gbt4qmxx.mjs +2 -0
  168. package/dist/chunks/cli-1.1.14-gf6m8qz3.mjs +17 -0
  169. package/dist/chunks/cli-1.1.14-gjna0227.mjs +2 -0
  170. package/dist/chunks/cli-1.1.14-gtxhty3d.mjs +2 -0
  171. package/dist/chunks/cli-1.1.14-gv9rt2h8.mjs +2 -0
  172. package/dist/chunks/cli-1.1.14-gvh2m03s.mjs +9 -0
  173. package/dist/chunks/cli-1.1.14-h9swpf99.mjs +3 -0
  174. package/dist/chunks/cli-1.1.14-hcaktmq1.mjs +2 -0
  175. package/dist/chunks/cli-1.1.14-hdkyecme.mjs +59 -0
  176. package/dist/chunks/cli-1.1.14-j9qy5cj8.mjs +6 -0
  177. package/dist/chunks/cli-1.1.14-j9zawab5.mjs +2 -0
  178. package/dist/chunks/cli-1.1.14-je22trqj.mjs +7 -0
  179. package/dist/chunks/cli-1.1.14-jeqhpgat.mjs +4 -0
  180. package/dist/chunks/cli-1.1.14-jgers44a.mjs +2 -0
  181. package/dist/chunks/cli-1.1.14-k4n0pbvf.mjs +2 -0
  182. package/dist/chunks/cli-1.1.14-kkwnpcf6.mjs +2 -0
  183. package/dist/chunks/cli-1.1.14-krd6edee.mjs +2 -0
  184. package/dist/chunks/cli-1.1.14-ks4wsswq.mjs +133 -0
  185. package/dist/chunks/cli-1.1.14-ksk5rch9.mjs +2 -0
  186. package/dist/chunks/cli-1.1.14-ky3mvy9k.mjs +15 -0
  187. package/dist/chunks/cli-1.1.14-kzwx6a7h.mjs +2 -0
  188. package/dist/chunks/cli-1.1.14-mnerhwsv.mjs +25 -0
  189. package/dist/chunks/cli-1.1.14-msb0xfz3.mjs +6 -0
  190. package/dist/chunks/cli-1.1.14-n1hm0gd6.mjs +2 -0
  191. package/dist/chunks/cli-1.1.14-n351xrzx.mjs +2 -0
  192. package/dist/chunks/cli-1.1.14-n9fg59se.mjs +2 -0
  193. package/dist/chunks/cli-1.1.14-nqa3ttq6.mjs +2 -0
  194. package/dist/chunks/cli-1.1.14-nqd6dk6n.mjs +20 -0
  195. package/dist/chunks/cli-1.1.14-p0xhp49n.mjs +58 -0
  196. package/dist/chunks/cli-1.1.14-pa5nsjfc.mjs +24 -0
  197. package/dist/chunks/cli-1.1.14-pce9xpxh.mjs +2 -0
  198. package/dist/chunks/cli-1.1.14-pfsqawey.mjs +2 -0
  199. package/dist/chunks/cli-1.1.14-pgkjn3yw.mjs +2 -0
  200. package/dist/chunks/cli-1.1.14-ph81vme8.mjs +1 -0
  201. package/dist/chunks/cli-1.1.14-prtez07m.mjs +17 -0
  202. package/dist/chunks/cli-1.1.14-q1kc6b8n.mjs +202 -0
  203. package/dist/chunks/cli-1.1.14-q39sm90c.mjs +2 -0
  204. package/dist/chunks/cli-1.1.14-q4njqbhv.mjs +2 -0
  205. package/dist/chunks/cli-1.1.14-q9mpbtcq.mjs +2 -0
  206. package/dist/chunks/cli-1.1.14-qe4ypfya.mjs +2 -0
  207. package/dist/chunks/cli-1.1.14-qfc8zb5d.mjs +2 -0
  208. package/dist/chunks/cli-1.1.14-qm7sjy8p.mjs +2 -0
  209. package/dist/chunks/cli-1.1.14-qr2dkjw6.mjs +2 -0
  210. package/dist/chunks/cli-1.1.14-qs5hpm4s.mjs +2 -0
  211. package/dist/chunks/cli-1.1.14-qyywt37p.mjs +2 -0
  212. package/dist/chunks/cli-1.1.14-r39tb155.mjs +25 -0
  213. package/dist/chunks/cli-1.1.14-rcw8bj2x.mjs +2 -0
  214. package/dist/chunks/cli-1.1.14-rjac9djz.mjs +2 -0
  215. package/dist/chunks/cli-1.1.14-rmjnqb9b.mjs +2 -0
  216. package/dist/chunks/cli-1.1.14-ry5bys5g.mjs +2 -0
  217. package/dist/chunks/cli-1.1.14-ryjw96z2.mjs +2 -0
  218. package/dist/chunks/cli-1.1.14-s2tegwye.mjs +2 -0
  219. package/dist/chunks/cli-1.1.14-s59gy7wr.mjs +2 -0
  220. package/dist/chunks/cli-1.1.14-scaajcvm.mjs +2 -0
  221. package/dist/chunks/cli-1.1.14-srbcxz1e.mjs +34 -0
  222. package/dist/chunks/cli-1.1.14-t32277f6.mjs +4 -0
  223. package/dist/chunks/cli-1.1.14-t5cdgcnh.mjs +2 -0
  224. package/dist/chunks/cli-1.1.14-t82ydhr6.mjs +2 -0
  225. package/dist/chunks/cli-1.1.14-t9xyraqy.mjs +9 -0
  226. package/dist/chunks/cli-1.1.14-tm2g00jj.mjs +2 -0
  227. package/dist/chunks/cli-1.1.14-tv90r87r.mjs +3 -0
  228. package/dist/chunks/cli-1.1.14-v019any3.mjs +2 -0
  229. package/dist/chunks/cli-1.1.14-v4f9098m.mjs +2 -0
  230. package/dist/chunks/cli-1.1.14-v7nnjdwc.mjs +2 -0
  231. package/dist/chunks/cli-1.1.14-vd4v04cf.mjs +2 -0
  232. package/dist/chunks/cli-1.1.14-vdsx0cw7.mjs +15 -0
  233. package/dist/chunks/cli-1.1.14-vefm78w3.mjs +2 -0
  234. package/dist/chunks/cli-1.1.14-vjeh477p.mjs +3 -0
  235. package/dist/chunks/cli-1.1.14-vmwd3gk6.mjs +4 -0
  236. package/dist/chunks/cli-1.1.14-vq47nhnz.mjs +2 -0
  237. package/dist/chunks/cli-1.1.14-vx8jq8gy.mjs +42 -0
  238. package/dist/chunks/cli-1.1.14-vzevhjxk.mjs +2 -0
  239. package/dist/chunks/cli-1.1.14-w0d35qqy.mjs +2 -0
  240. package/dist/chunks/cli-1.1.14-w2wbzv4e.mjs +3 -0
  241. package/dist/chunks/cli-1.1.14-w4fgn8t6.mjs +2 -0
  242. package/dist/chunks/cli-1.1.14-weqr0y1h.mjs +2 -0
  243. package/dist/chunks/cli-1.1.14-x2b13bs6.mjs +2 -0
  244. package/dist/chunks/cli-1.1.14-x6g4zgjh.mjs +3 -0
  245. package/dist/chunks/cli-1.1.14-xcg5hzkp.mjs +2 -0
  246. package/dist/chunks/cli-1.1.14-xejgqxmy.mjs +2 -0
  247. package/dist/chunks/cli-1.1.14-xw8mensa.mjs +4 -0
  248. package/dist/chunks/cli-1.1.14-xwcfnjkf.mjs +24 -0
  249. package/dist/chunks/cli-1.1.14-yfknrxme.mjs +2 -0
  250. package/dist/chunks/cli-1.1.14-ykbz2fee.mjs +2 -0
  251. package/dist/chunks/cli-1.1.14-ypbww0jj.mjs +2 -0
  252. package/dist/chunks/cli-1.1.14-yvw9gv0w.mjs +2 -0
  253. package/dist/chunks/cli-1.1.14-z07q0gwf.mjs +2 -0
  254. package/dist/chunks/cli-1.1.14-z0mjb0vh.mjs +2 -0
  255. package/dist/chunks/cli-1.1.14-z9cc7bb2.mjs +2 -0
  256. package/dist/chunks/cli-1.1.14-zajvkghs.mjs +2 -0
  257. package/dist/chunks/cli-1.1.14-znbm9h8t.mjs +2 -0
  258. package/dist/chunks/client-1.1.14-m2mjhyw6.mjs +1 -0
  259. package/dist/chunks/color-1.1.14-f3q2mzg0.mjs +1 -0
  260. package/dist/chunks/compact-1.1.14-effx3hf9.mjs +3 -0
  261. package/dist/chunks/config-1.1.14-9ydtd85s.mjs +1 -0
  262. package/dist/chunks/config-1.1.14-h96m0d8d.mjs +1 -0
  263. package/dist/chunks/constants-1.1.14-zk22gxph.mjs +1 -0
  264. package/dist/chunks/context-1.1.14-wtr7pmtw.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.1.14-j8y21hht.mjs +1 -0
  266. package/dist/chunks/conversation-1.1.14-rt6z9rds.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.1.14-s922v787.mjs +1 -0
  268. package/dist/chunks/copy-1.1.14-m8bx9df8.mjs +9 -0
  269. package/dist/chunks/cost-1.1.14-whyhrsgg.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.1.14-sdg5dk4r.mjs +1 -0
  271. package/dist/chunks/createSession-1.1.14-vct1c158.mjs +1 -0
  272. package/dist/chunks/debug-1.1.14-nca60a44.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.1.14-7y4dgkxg.mjs +1526 -0
  274. package/dist/chunks/desktop-1.1.14-pe1cgr9z.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.1.14-z6hxtqhd.mjs +1 -0
  276. package/dist/chunks/detection-1.1.14-t5ayyza6.mjs +1 -0
  277. package/dist/chunks/diff-1.1.14-tv62px1c.mjs +1 -0
  278. package/dist/chunks/doctor-1.1.14-qesxnkxx.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.1.14-z63s9mpy.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.1.14-7vfad42b.mjs +1 -0
  281. package/dist/chunks/effort-1.1.14-prkmemjw.mjs +13 -0
  282. package/dist/chunks/engine-1.1.14-4585kjf8.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.1.14-pv9ydcq3.mjs +1 -0
  284. package/dist/chunks/envUtils-1.1.14-chbd1bsr.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.1.14-ckpkv6e3.mjs +1 -0
  286. package/dist/chunks/environments-1.1.14-ma9vprdz.mjs +1 -0
  287. package/dist/chunks/errors-1.1.14-ww80fvtz.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.1.14-x37y2ewm.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.1.14-4xp05pmd.mjs +1 -0
  290. package/dist/chunks/exit-1.1.14-shyzge3a.mjs +1 -0
  291. package/dist/chunks/explorer-1.1.14-12bn9b5s.mjs +1 -0
  292. package/dist/chunks/export-1.1.14-21yjwtry.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.1.14-gr1s0tck.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.1.14-zyk4qh8w.mjs +1 -0
  295. package/dist/chunks/fast-1.1.14-87cn8tqn.mjs +1 -0
  296. package/dist/chunks/feedback-1.1.14-s5ycv1dk.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.1.14-e62cbs1c.mjs +1 -0
  298. package/dist/chunks/git-1.1.14-c6rsmdv4.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.1.14-sbb3wp9c.mjs +1 -0
  300. package/dist/chunks/goal-1.1.14-w7j0vb96.mjs +4 -0
  301. package/dist/chunks/growthbook-1.1.14-65cpy0w1.mjs +1 -0
  302. package/dist/chunks/headless-1.1.14-68gm6f08.mjs +2 -0
  303. package/dist/chunks/heapdump-1.1.14-76kj8s1g.mjs +6 -0
  304. package/dist/chunks/help-1.1.14-zwc1crj5.mjs +1 -0
  305. package/dist/chunks/hookChains-1.1.14-cvazppdb.mjs +3 -0
  306. package/dist/chunks/hooks-1.1.14-2ryqg5gs.mjs +1 -0
  307. package/dist/chunks/hooks-1.1.14-3eveg7t1.mjs +79 -0
  308. package/dist/chunks/ide-1.1.14-dtgjtnqn.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.1.14-nehgy1pe.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.1.14-90434wfb.mjs +1 -0
  311. package/dist/chunks/index-1.1.14-0q2v4wxh.mjs +1 -0
  312. package/dist/chunks/index-1.1.14-12qn79c7.mjs +1 -0
  313. package/dist/chunks/index-1.1.14-2gtcr49x.mjs +1 -0
  314. package/dist/chunks/index-1.1.14-2tpw5zhr.mjs +1 -0
  315. package/dist/chunks/index-1.1.14-50xwby01.mjs +1 -0
  316. package/dist/chunks/index-1.1.14-73zx1e4s.mjs +1 -0
  317. package/dist/chunks/index-1.1.14-75vz0ehv.mjs +1 -0
  318. package/dist/chunks/index-1.1.14-9yex519n.mjs +1 -0
  319. package/dist/chunks/index-1.1.14-ae1277p4.mjs +2 -0
  320. package/dist/chunks/index-1.1.14-bgjpqq3g.mjs +1 -0
  321. package/dist/chunks/index-1.1.14-dn6sx3hd.mjs +5 -0
  322. package/dist/chunks/index-1.1.14-egsggv62.mjs +9 -0
  323. package/dist/chunks/index-1.1.14-jedc2mm5.mjs +30 -0
  324. package/dist/chunks/index-1.1.14-qf2jnnv2.mjs +1 -0
  325. package/dist/chunks/index-1.1.14-qsepya6f.mjs +23 -0
  326. package/dist/chunks/index-1.1.14-s8w75y4z.mjs +1 -0
  327. package/dist/chunks/index-1.1.14-sjk5njxz.mjs +2 -0
  328. package/dist/chunks/index-1.1.14-spp0ysmf.mjs +9 -0
  329. package/dist/chunks/index-1.1.14-termgazf.mjs +1 -0
  330. package/dist/chunks/index-1.1.14-v0dy155j.mjs +1 -0
  331. package/dist/chunks/index-1.1.14-wtvxy2p5.mjs +1 -0
  332. package/dist/chunks/index-1.1.14-x2qb1aam.mjs +1 -0
  333. package/dist/chunks/index-1.1.14-zxg55r1x.mjs +1 -0
  334. package/dist/chunks/init-1.1.14-60thb3vn.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.1.14-ptmwhng6.mjs +1 -0
  336. package/dist/chunks/ink-1.1.14-hb9m1tzk.mjs +1 -0
  337. package/dist/chunks/insights-1.1.14-q3gcq8e5.mjs +870 -0
  338. package/dist/chunks/install-1.1.14-yqjcrtpg.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.1.14-b9sx124r.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.1.14-h4axwer1.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.1.14-3dtmyckq.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.1.14-5ht3cz8m.mjs +1 -0
  343. package/dist/chunks/keybindings-1.1.14-ex18a7fg.mjs +2 -0
  344. package/dist/chunks/knowledge-1.1.14-netk3f6c.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.1.14-1ck4skb9.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.1.14-9qfmgcdr.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.1.14-g5te2y4b.mjs +1 -0
  348. package/dist/chunks/log-1.1.14-jrh2w4pj.mjs +1 -0
  349. package/dist/chunks/main-1.1.14-w4z3m51j.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.1.14-hm26y9yh.mjs +1 -0
  351. package/dist/chunks/mcp-1.1.14-jdgt2rjc.mjs +17 -0
  352. package/dist/chunks/mcp-1.1.14-nbqn7e10.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.14-yhg498sq.mjs +4 -0
  354. package/dist/chunks/mcpb-1.1.14-bwrmrz6f.mjs +1 -0
  355. package/dist/chunks/memory-1.1.14-vtzr3td4.mjs +72 -0
  356. package/dist/chunks/model-1.1.14-6atmfgtq.mjs +1 -0
  357. package/dist/chunks/model-1.1.14-k3jz1ch0.mjs +2 -0
  358. package/dist/chunks/node-1.1.14-436c41vg.mjs +12 -0
  359. package/dist/chunks/oauth-1.1.14-1pb8ypjr.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.1.14-63qfbmm4.mjs +14 -0
  361. package/dist/chunks/output-style-1.1.14-km29ad1g.mjs +1 -0
  362. package/dist/chunks/package-L37ZVTF4-1.1.14-fdrhyx6k.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.1.14-vxn84ewm.mjs +1 -0
  364. package/dist/chunks/parser-1.1.14-98bg5gv8.mjs +1 -0
  365. package/dist/chunks/passes-1.1.14-5tdj3y9r.mjs +1 -0
  366. package/dist/chunks/permissions-1.1.14-srvsc3za.mjs +3 -0
  367. package/dist/chunks/permissions-1.1.14-vhhyyr5b.mjs +1 -0
  368. package/dist/chunks/plan-1.1.14-c0xp5pxe.mjs +1 -0
  369. package/dist/chunks/plist-1.1.14-5tba5azr.mjs +1 -0
  370. package/dist/chunks/plugin-1.1.14-3gh6jn53.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.1.14-16akasw0.mjs +1 -0
  372. package/dist/chunks/plugins-1.1.14-8cr92qaf.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.1.14-jwbb9w2t.mjs +2 -0
  374. package/dist/chunks/print-1.1.14-ce8mrr2j.mjs +57 -0
  375. package/dist/chunks/process-1.1.14-zygrw1jw.mjs +1 -0
  376. package/dist/chunks/processBashCommand-1.1.14-q066hcdv.mjs +1 -0
  377. package/dist/chunks/processSlashCommand-1.1.14-btah3m31.mjs +9 -0
  378. package/dist/chunks/prompt-1.1.14-mmdq8qk2.mjs +1 -0
  379. package/dist/chunks/prompt-1.1.14-xks0rqr5.mjs +1 -0
  380. package/dist/chunks/prompts-1.1.14-9c7xnw4s.mjs +1 -0
  381. package/dist/chunks/protocolHandler-1.1.14-7w5d6b8w.mjs +13 -0
  382. package/dist/chunks/provider-1.1.14-136k178m.mjs +2 -0
  383. package/dist/chunks/providerProfiles-1.1.14-vg25c1wr.mjs +1 -0
  384. package/dist/chunks/providerValidation-1.1.14-w3m1vah7.mjs +6 -0
  385. package/dist/chunks/rate-limit-options-1.1.14-vhkc6pgc.mjs +1 -0
  386. package/dist/chunks/registerSubcommands-1.1.14-v8b09yem.mjs +26 -0
  387. package/dist/chunks/registry-1.1.14-bxbt49ze.mjs +1 -0
  388. package/dist/chunks/release-notes-1.1.14-9xyhbkj1.mjs +5 -0
  389. package/dist/chunks/reload-plugins-1.1.14-9jhhq87x.mjs +2 -0
  390. package/dist/chunks/remote-env-1.1.14-941r054g.mjs +1 -0
  391. package/dist/chunks/remoteBridgeCore-1.1.14-ab02srk9.mjs +1 -0
  392. package/dist/chunks/remoteSession-1.1.14-8x26vncf.mjs +1 -0
  393. package/dist/chunks/rename-1.1.14-46zvyh32.mjs +1 -0
  394. package/dist/chunks/replBridgeHandle-1.1.14-85r3hxws.mjs +1 -0
  395. package/dist/chunks/replLauncher-1.1.14-0jp7aph0.mjs +1 -0
  396. package/dist/chunks/resume-1.1.14-8pepfwmk.mjs +2 -0
  397. package/dist/chunks/rewind-1.1.14-hwgcehgr.mjs +1 -0
  398. package/dist/chunks/rootOptions-1.1.14-evwgp5w2.mjs +1 -0
  399. package/dist/chunks/runWorkflowHeadless-1.1.14-w8erpgvm.mjs +10 -0
  400. package/dist/chunks/sandbox-adapter-1.1.14-kwegx4mz.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.1.14-2htjsxzk.mjs +1 -0
  402. package/dist/chunks/session-1.1.14-hgmnvw7z.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.1.14-anb5ddc9.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.1.14-re6kra5a.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.1.14-cn65r158.mjs +1 -0
  406. package/dist/chunks/settings-1.1.14-r31qkcwy.mjs +1 -0
  407. package/dist/chunks/setup-1.1.14-115cm91e.mjs +5 -0
  408. package/dist/chunks/sinks-1.1.14-4abzjj1m.mjs +1 -0
  409. package/dist/chunks/skills-1.1.14-k7rcbkx1.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.1.14-vgaq3kjm.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.1.14-z50xwm9f.mjs +1 -0
  412. package/dist/chunks/state-1.1.14-thy0hnc6.mjs +1 -0
  413. package/dist/chunks/stats-1.1.14-m6dzpj3a.mjs +6 -0
  414. package/dist/chunks/status-1.1.14-amqe3rdm.mjs +1 -0
  415. package/dist/chunks/stickers-1.1.14-2t1zj000.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.1.14-pbf40bta.mjs +1 -0
  417. package/dist/chunks/tasks-1.1.14-exvwanrf.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.1.14-pscnj4fa.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.1.14-p4asr9ej.mjs +1 -0
  420. package/dist/chunks/teleport-1.1.14-m6qw5vnq.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.1.14-5ahc4rv9.mjs +1 -0
  422. package/dist/chunks/theme-1.1.14-1pn2fsqz.mjs +1 -0
  423. package/dist/chunks/thinkback-1.1.14-jss1meem.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.1.14-gwr9e1aw.mjs +1 -0
  425. package/dist/chunks/toolPool-1.1.14-dczcmy51.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.1.14-seww0hje.mjs +1 -0
  427. package/dist/chunks/tools-1.1.14-6edkph4d.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.1.14-fyw61308.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.1.14-zz6ad8n2.mjs +69 -0
  430. package/dist/chunks/types-1.1.14-ype8816v.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.1.14-sr15z0qh.mjs +4 -0
  432. package/dist/chunks/update-1.1.14-114p1f8r.mjs +72 -0
  433. package/dist/chunks/upgrade-1.1.14-9whzt7qa.mjs +1 -0
  434. package/dist/chunks/upload-1.1.14-hpk4spp9.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.1.14-26edczqa.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.1.14-3e9ramyj.mjs +1 -0
  437. package/dist/chunks/usage-1.1.14-xaegmtg7.mjs +1 -0
  438. package/dist/chunks/util-1.1.14-dtgb1qsg.mjs +1 -0
  439. package/dist/chunks/utils-1.1.14-xcvcp3es.mjs +1 -0
  440. package/dist/chunks/vim-1.1.14-y2x4dg5h.mjs +1 -0
  441. package/dist/chunks/watchLoop-1.1.14-r19ed4xt.mjs +13 -0
  442. package/dist/chunks/watcher-1.1.14-9z5ptaf1.mjs +1 -0
  443. package/dist/chunks/wiki-1.1.14-kyejnvfb.mjs +132 -0
  444. package/dist/chunks/workflows-1.1.14-06jg36tv.mjs +1 -0
  445. package/dist/chunks/worktree-1.1.14-k41xe3b1.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.1.14-3mn08sd0.mjs +1 -0
  447. package/dist/chunks/wrapper-1.1.14-tgerest3.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +9 -9
  450. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
  451. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
  458. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
  459. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
  461. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
  467. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
  477. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
  479. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
  480. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
  481. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
  482. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
  483. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
  484. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
  485. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
  486. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
  489. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
  490. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
  495. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
  496. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
  497. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
  498. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
  499. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
  500. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
  501. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
  502. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
  503. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
  504. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
  505. package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
  506. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
  507. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
  508. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
  510. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
  511. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
  512. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
  513. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
  514. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
  517. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
  518. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
  519. package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
  520. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
  521. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
  522. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
  524. package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
  525. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
  526. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
  529. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
  530. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
  531. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
  532. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
  533. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
  535. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
  537. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
  538. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
  539. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
  540. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
  541. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
  542. package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
  543. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
  544. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
  545. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
  546. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
  547. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
  548. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
  549. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
  550. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
  551. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
  553. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
  554. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
  556. package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
  557. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
  559. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
  560. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
  561. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
  562. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
  563. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
  564. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
  565. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
  566. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
  567. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
  568. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
  569. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
  570. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
  571. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
  573. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
  574. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
  575. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
  576. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
  577. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
  578. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
  579. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
  580. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
  581. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
  582. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
  583. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
  584. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
  585. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
  586. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
  587. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
  588. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
  589. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
  590. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
  591. package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
  592. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
  593. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
  594. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
  595. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
  596. package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
  597. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
  598. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
  600. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
  601. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
  602. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
  603. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
  604. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
  605. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
  606. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
  607. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
  608. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
  609. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
  610. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
  611. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
  612. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
  614. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
  615. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
  616. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
  617. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
  618. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
  619. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
  620. package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
  621. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
  622. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
  623. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
  624. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
  625. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
  626. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
  627. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
  628. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
  629. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
  630. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
  631. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
  632. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
  633. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
  634. package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
  635. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
  636. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
  637. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
  638. package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
  640. package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
  642. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
  643. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
  644. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
  645. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
  646. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
  647. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
  648. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
  649. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
  650. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
  651. package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
  652. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
  653. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
  654. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
  655. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
  656. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
  657. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
  658. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
  659. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
  660. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
  661. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
  662. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
  663. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
  664. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
  665. package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
  666. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
  667. package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
  668. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
  669. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
  670. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
  671. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
  672. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
  673. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
  674. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
  675. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
  676. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
  677. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
  678. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
  680. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
  681. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
  682. package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
  683. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
  684. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
  685. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
  686. package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
  687. package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
  688. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
  690. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
  691. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
  692. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
  693. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
  694. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
  695. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
  696. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
  697. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
  698. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
  700. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
  701. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
  702. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
  703. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
  704. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
  705. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
  706. package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
  707. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
  708. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
  709. package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
  710. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
  711. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
  712. package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
  713. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
  714. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
  715. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
  716. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
  717. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
  718. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
  719. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
  720. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
  721. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
  722. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
  723. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
  724. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
  725. package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
  726. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
  727. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
  728. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
  729. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
  730. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
  731. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
  732. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
  733. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
  734. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
  735. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
  736. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
  737. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
  738. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
  739. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
  740. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
  741. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
  742. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
  743. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
  744. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
  745. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
  746. package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
  747. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
  748. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
  749. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
  750. package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
  751. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
  752. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
  753. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
  754. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
  755. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
  756. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
  757. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
  758. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
  759. package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
  760. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
  761. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
  762. package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
  763. package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
  764. package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
  765. package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
  766. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
  767. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
  768. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
  769. package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
  770. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
  771. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
  772. package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
  773. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
  774. package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
  775. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
  776. package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
  777. package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
  778. package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
  779. package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
  780. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
  781. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
  782. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
  783. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
  784. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
  785. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
  786. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
  787. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
  788. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
  789. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
  790. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
  791. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
  792. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
  793. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
  794. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
  796. package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
  797. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
  799. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
  800. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
  801. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
  802. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
  803. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
  804. package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
  805. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
  806. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
  807. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
  809. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
  810. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
  812. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
  813. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
  814. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
  815. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
  816. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
  817. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
  818. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
  820. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
  822. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
  823. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
  824. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
  825. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
  826. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
  827. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
  828. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
  829. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
  830. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
  831. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
  832. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
  833. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
  834. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
  835. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
  836. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
  837. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
  838. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
  839. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
  840. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
  841. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
  842. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
  843. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
  844. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
  845. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
  846. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
  847. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
  848. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
  850. package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
  854. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
  855. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
  856. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
  857. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
  860. package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
  861. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
  862. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
  863. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
  865. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
  868. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
  870. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
  871. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
  873. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
  875. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
  878. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
  880. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
  881. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
  882. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
  885. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
  886. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
  887. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
  888. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
  889. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
  890. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
  891. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
  892. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
  893. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
  894. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
  895. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
  896. /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.14-3cc8a830.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.14-7nz1bnsz.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.14-835c2y60.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.14-a39264wz.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.14-jw4b6h9t.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.14-nhbccarx.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.14-r930b2z3.mjs} +0 -0
@@ -0,0 +1,18 @@
1
+ import{cJ as Q,fJ as F}from"./cli-1.1.14-8fx5qjh6.mjs";import{uka as b,xka as y}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as f,Wka as x}from"./cli-1.1.14-fwakcyhj.mjs";import{cla as w,nla as R}from"./cli-1.1.14-83ng5cjk.mjs";import{Sqa as K,Xma as $,_ma as j}from"./cli-1.1.14-f9dpkjv9.mjs";import{Esa as v}from"./cli-1.1.14-r930b2z3.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
+
3
+ `:"",B=k===G?`
4
+
5
+ ${c}`:"";return`Scheduled loop tick.
6
+
7
+ ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
+
9
+ If .claudin/loop.md exists, read it and follow it.
10
+ Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
+ Otherwise:
12
+ - continue any unfinished work from the conversation
13
+ - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
+ - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
+
16
+ Do not start new initiatives outside that scope.
17
+ Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
+ export{Y as Sh,G as Th,D as Uh,g as Vh,M as Wh,U as Xh};
@@ -0,0 +1,2 @@
1
+ import{$Z as I,ZZ as O,_Z as V,b0 as W,c0 as p,q0 as v,r0 as X,s0 as D}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as N,N3 as T}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as H}from"./cli-1.1.14-pgkjn3yw.mjs";import{$na as U,Sqa as F}from"./cli-1.1.14-f9dpkjv9.mjs";import{Asa as A,Esa as C}from"./cli-1.1.14-r930b2z3.mjs";function h({children:Y,ref:Z,stickyScroll:_,...G}){let w=E.useRef(null),[,$]=E.useState(0),J=E.useRef(new Set),K=E.useRef(!1),P=()=>{for(let g of J.current)g()};function L(g){if(U(),O(g),W(),P(),K.current)return;K.current=!0,queueMicrotask(()=>{K.current=!1,V(g)})}return E.useImperativeHandle(Z,()=>({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)),L(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},L(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),L(q)},scrollToBottom(){let g=w.current;if(!g)return;g.pendingScrollDelta=void 0,g.stickyScroll=!0,O(g),P(),$((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 J.current.add(g),()=>J.current.delete(g)},setClampBounds(g,q){let z=w.current;if(!z)return;z.scrollClampMin=g,z.scrollClampMax=q}}),[]),N("ink-box",{ref:(g)=>{if(w.current=g,g)g.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:G.flexDirection??"row",flexGrow:G.flexGrow??0,flexShrink:G.flexShrink??1,...G,overflowX:"scroll",overflowY:"scroll"},..._?{stickyScroll:!0}:{},children:N(X,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:Y})})}var E,a;var B=C(()=>{F();I();p();v();D();T();E=A(H(),1);a=h});
2
+ export{a as Mh,B as Nh};
@@ -0,0 +1,2 @@
1
+ import{Ab as R,Bb as W}from"./cli-1.1.14-je22trqj.mjs";import{Gb as M}from"./cli-1.1.14-j9zawab5.mjs";import{iW as E,jW as w}from"./cli-1.1.14-nqa3ttq6.mjs";import{uka as L,xka as H}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as z,Uka as Z}from"./cli-1.1.14-fwakcyhj.mjs";H();z();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:f,getAuthToken:j}=B,P;if(j)P=()=>{let x=j();if(!x)return{};return{Authorization:`Bearer ${x}`}};else E(_);let Q=B.epoch??await M(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new W(V,{},$,void 0,f,P),X,J=new R(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let N,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){N=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),N?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
2
+ export{I as vb,k as wb,D as xb};
@@ -0,0 +1,2 @@
1
+ import{uja as f}from"./cli-1.1.14-f5bvc359.mjs";import{xka as h}from"./cli-1.1.14-db3mxak8.mjs";import{Esa as Z}from"./cli-1.1.14-r930b2z3.mjs";var $=()=>{};var F=Z(()=>{$()});var K;var G=Z(()=>{K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});var M=Z(()=>{G();$();F();_();O()});var _=Z(()=>{G();$();F();M()});var O=Z(()=>{G();$();F();_();M()});var Sz;var I=Z(()=>{$();F();O();G();Sz=Promise.resolve()});async function kz(z){if(!z||z.length>D)return null;return null}async function pz(z){if(!z||z.length>D)return null;return null}function dz(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&x.has(J.text)?[J.text]:[]}let X=[],V=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!V&&J.type==="word"){V=!0,X.push(J.text);continue}if(v.has(J.type))X.push(m(J.text));else if(l.has(J.type))break}return X}function m(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var D=1e4,x,v,l,oz;var L=Z(()=>{f();h();I();x=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),v=new Set(["word","string","raw_string","number"]),l=new Set(["command_substitution","process_substitution"]);oz=Symbol("parse-aborted")});
2
+ export{K as V8,I as W8,kz as X8,oz as Y8,pz as Z8,dz as _8,L as $8};
@@ -0,0 +1,12 @@
1
+ import{U8 as D}from"./cli-1.1.14-b1sbm8w6.mjs";import{gka as L,kka as JG,uka as W,xka as a}from"./cli-1.1.14-db3mxak8.mjs";import{ela as c,fla as jG,nla as GG}from"./cli-1.1.14-83ng5cjk.mjs";import{pra as q,qra as g}from"./cli-1.1.14-znbm9h8t.mjs";import{Mra as H,csa as RG}from"./cli-1.1.14-pa5nsjfc.mjs";import{jsa as XG}from"./cli-1.1.14-j9qy5cj8.mjs";import{Asa as WG,Esa as j,Fsa as e}from"./cli-1.1.14-r930b2z3.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
2
+ `).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
3
+ \r
4
+ `);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
5
+ `),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
6
+ `;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
7
+ `;let $=n(K);K.write(`${X}\r
8
+ `);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
9
+ `;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
10
+ `;let V=n(Y);Y.write(`${$}\r
11
+ `);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.14-0q2v4wxh.mjs"),import("./index-1.1.14-spp0ysmf.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
12
+ export{yG as x8,i as y8,N as z8,gG as A8,aG as B8,iG as C8,KG as D8,MJ as E8,HJ as F8,OG as G8,E as H8,y as I8,_J as J8,jJ as K8,qJ as L8,UJ as M8,NJ as N8,TJ as O8,FJ as P8,PG as Q8};
@@ -0,0 +1,2 @@
1
+ import{Xn as X,Yn as h,hG as Y,jG as p}from"./cli-1.1.14-8fx5qjh6.mjs";import{K0 as B,jZ as v,n1 as D}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as I,M3 as J,N3 as W}from"./cli-1.1.14-az6pbe66.mjs";import{Rea as b,tea as U}from"./cli-1.1.14-q1kc6b8n.mjs";import{Asa as G}from"./cli-1.1.14-r930b2z3.mjs";D();b();p();h();W();var Z=G(v(),1);function C(S){let k=Z.c(17),{customApiKeyTruncated:q,onDone:L}=S,M;if(k[0]!==q||k[1]!==L)M=function(f){k:switch(f){case"yes":{U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,approved:[...z.customApiKeyResponses?.approved??[],q]}})),L(!0);break k}case"no":U((z)=>({...z,customApiKeyResponses:{...z.customApiKeyResponses,rejected:[...z.customApiKeyResponses?.rejected??[],q]}})),L(!1)}},k[0]=q,k[1]=L,k[2]=M;else M=k[2];let w=M,E;if(k[3]!==w)E=()=>w("no"),k[3]=w,k[4]=E;else E=k[4];let N;if(k[5]===Symbol.for("react.memo_cache_sentinel"))N=I(B,{bold:!0,children:"ANTHROPIC_API_KEY"}),k[5]=N;else N=k[5];let F;if(k[6]!==q)F=J(B,{children:[N,J(B,{children:[": sk-ant-...",q]})]}),k[6]=q,k[7]=F;else F=k[7];let O;if(k[8]===Symbol.for("react.memo_cache_sentinel"))O=I(B,{children:"Do you want to use this API key?"}),k[8]=O;else O=k[8];let P;if(k[9]===Symbol.for("react.memo_cache_sentinel"))P={label:"Yes",value:"yes"},k[9]=P;else P=k[9];let Q;if(k[10]===Symbol.for("react.memo_cache_sentinel"))Q=[P,{label:J(B,{children:["No (",I(B,{bold:!0,children:"recommended"}),")"]}),value:"no"}],k[10]=Q;else Q=k[10];let H;if(k[11]!==w)H=I(Y,{defaultValue:"no",defaultFocusValue:"no",options:Q,onChange:(V)=>w(V),onCancel:()=>w("no")}),k[11]=w,k[12]=H;else H=k[12];let R;if(k[13]!==E||k[14]!==F||k[15]!==H)R=J(X,{title:"Detected a custom API key in your environment",color:"warning",onCancel:E,children:[F,O,H]}),k[13]=E,k[14]=F,k[15]=H,k[16]=R;else R=k[16];return R}
2
+ export{C as aa};
@@ -0,0 +1,2 @@
1
+ import{To as Q,Yo as f}from"./cli-1.1.14-8fx5qjh6.mjs";import{pga as B,xga as M}from"./cli-1.1.14-q1kc6b8n.mjs";import{Zja as W,_ja as Z,cka as X,gka as $,kka as Y,uka as b,xka as A}from"./cli-1.1.14-db3mxak8.mjs";import{Esa as U}from"./cli-1.1.14-r930b2z3.mjs";import{randomBytes as G}from"crypto";import{readFile as L,rename as N,unlink as j,writeFile as S}from"fs/promises";import{join as T}from"path";function R(){return T(Q(),_)}function E(q){let v=Z(q);if(typeof v!=="object"||v===null||!("plugins"in v)||typeof v.plugins!=="object"||v.plugins===null)return{};let x=v.plugins,C={};for(let[J,H]of Object.entries(x))if(H&&typeof H==="object"&&"flaggedAt"in H&&typeof H.flaggedAt==="string"){let V={flaggedAt:H.flaggedAt};if("seenAt"in H&&typeof H.seenAt==="string")V.seenAt=H.seenAt;C[J]=V}return C}async function K(){try{let q=await L(R(),{encoding:"utf-8"});return E(q)}catch{return{}}}async function O(q){let v=R(),x=`${v}.${G(8).toString("hex")}.tmp`;try{await $().mkdir(Q());let C=W({plugins:q},null,2);await S(x,C,{encoding:"utf-8",mode:384}),await N(x,v),z=q}catch(C){B(C);try{await j(x)}catch{}}}async function u(){let q=await K(),v=Date.now(),x=!1;for(let[C,J]of Object.entries(q))if(J.seenAt&&v-new Date(J.seenAt).getTime()>=w)delete q[C],x=!0;if(z=q,x)await O(q)}function p(){return z??{}}async function c(q){if(z===null)z=await K();let v={...z,[q]:{flaggedAt:new Date().toISOString()}};await O(v),b(`Flagged plugin: ${q}`)}async function g(q){if(z===null)z=await K();let v=new Date().toISOString(),x=!1,C={...z};for(let J of q){let H=C[J];if(H&&!H.seenAt)C[J]={...H,seenAt:v},x=!0}if(x)await O(C)}async function d(q){if(z===null)z=await K();if(!(q in z))return;let{[q]:v,...x}=z;z=x,await O(x)}var _="flagged-plugins.json",w=172800000,z=null;var k=U(()=>{A();Y();M();X();f()});
2
+ export{u as rd,p as sd,c as td,g as ud,d as vd,k as wd};
@@ -0,0 +1,2 @@
1
+ import{Esa as b}from"./cli-1.1.14-r930b2z3.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as We,k as Xe,q as Ye,w as Ze,g as _e};
@@ -0,0 +1,2 @@
1
+ import{Hx as S,Ix as Pq,Kx as uq,Xn as Hq,Yn as _q}from"./cli-1.1.14-8fx5qjh6.mjs";import{iY as Yq,jY as jq}from"./cli-1.1.14-3a1bnf85.mjs";import{G0 as M,H0 as Cq,I0 as G,K0 as W,O0 as kq,jZ as n,n1 as a,pZ as o,qZ as Oq}from"./cli-1.1.14-hdkyecme.mjs";import{K3 as Kq,L3 as V,M3 as H,N3 as j}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as Aq}from"./cli-1.1.14-pgkjn3yw.mjs";import{D5 as Qq,F5 as g,G5 as u,H5 as Vq,J5 as T,M5 as Wq,O5 as Xq,W5 as Zq,X5 as hq,a6 as r,d6 as $,e6 as Dq}from"./cli-1.1.14-6ex3vykg.mjs";import{S8 as l,T8 as Bq}from"./cli-1.1.14-msb0xfz3.mjs";import{Eba as Nq,Fda as Iq,Rea as Rq,nba as f,tda as Jq,wea as s}from"./cli-1.1.14-q1kc6b8n.mjs";import{Mga as zq,Uga as Lq}from"./cli-1.1.14-byr5dy4k.mjs";import{rja as m,uja as Uq}from"./cli-1.1.14-f5bvc359.mjs";import{Asa as x,Esa as i}from"./cli-1.1.14-r930b2z3.mjs";function e(z){let q=t.c(2),{cooldown:J}=z;if(J){let X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=V(W,{color:"promptBorder",dimColor:!0,children:f}),q[0]=X;else X=q[0];return X}let Q;if(q[1]===Symbol.for("react.memo_cache_sentinel"))Q=V(W,{color:"fastMode",children:f}),q[1]=Q;else Q=q[1];return Q}function _(z=!0,q=!1){if(!z)return f;let J=o(s().theme);if(q)return l.dim(M("promptBorder",J)(f));return M("fastMode",J)(f)}var t;var qq=i(()=>{Bq();Nq();a();Rq();Oq();Cq();j();t=x(n(),1)});function b(z,q){if(Xq(),Jq("userSettings",{fastMode:z?!0:void 0}),z)q((J)=>{let Q=!T(J.mainLoopModel);return{...J,...Q?{mainLoopModel:Vq(),mainLoopModelForSession:null}:{},fastMode:!0}});else q((J)=>({...J,fastMode:!1}))}function mq(z){let q=wq.c(30),{onDone:J,unavailableReason:Q}=z,X=S(Fq),k=S(vq),Y=Pq(),[Z,fq]=yq.useState(k??!1),B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=Wq(),q[0]=B;else B=q[0];let N=B,d=N.status==="cooldown",K=Q!==null,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=$(r(!0)),q[1]=R;else R=q[1];let p=R,O;if(q[2]!==Z||q[3]!==K||q[4]!==X||q[5]!==J||q[6]!==Y)O=function(){if(K)return;if(b(Z,Y),m("",{enabled:Z,source:"picker"}),Z){let F=_(Z),Gq=!T(X)?` · model set to ${u}`:"";J(`${F} Fast mode ON${Gq} · ${p}`)}else Y(cq),J("Fast mode OFF")},q[2]=Z,q[3]=K,q[4]=X,q[5]=J,q[6]=Y,q[7]=O;else O=q[7];let c=O,C;if(q[8]!==k||q[9]!==K||q[10]!==J||q[11]!==Y)C=function(){if(K){if(k)b(!1,Y);J("Fast mode OFF",{display:"system"});return}let F=k?`${_()} Kept Fast mode ON`:"Kept Fast mode OFF";J(F,{display:"system"})},q[8]=k,q[9]=K,q[10]=J,q[11]=Y,q[12]=C;else C=q[12];let v=C,U;if(q[13]!==K)U=function(){if(K)return;fq(Tq)},q[13]=K,q[14]=U;else U=q[14];let P=U,L;if(q[15]!==c||q[16]!==P)L={"confirm:yes":c,"confirm:nextField":P,"confirm:next":P,"confirm:previous":P,"confirm:cycleMode":P,"confirm:toggle":P},q[15]=c,q[16]=P,q[17]=L;else L=q[17];let I;if(q[18]===Symbol.for("react.memo_cache_sentinel"))I={context:"Confirmation"},q[18]=I;else I=q[18];Yq(L,I);let h;if(q[19]===Symbol.for("react.memo_cache_sentinel"))h=H(W,{children:[V(e,{cooldown:d})," Fast mode (research preview)"]}),q[19]=h;else h=q[19];let Eq=h,w;if(q[20]!==K)w=(E)=>E.pending?H(W,{children:["Press ",E.keyName," again to exit"]}):K?V(W,{children:"Esc to cancel"}):V(W,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),q[20]=K,q[21]=w;else w=q[21];let y;if(q[22]!==Z||q[23]!==Q)y=Q?V(G,{marginLeft:2,children:V(W,{color:"error",children:Q})}):H(Kq,{children:[V(G,{flexDirection:"column",gap:0,marginLeft:2,children:H(G,{flexDirection:"row",gap:2,children:[V(W,{bold:!0,children:"Fast mode"}),V(W,{color:Z?"fastMode":void 0,bold:Z,children:Z?"ON ":"OFF"}),V(W,{dimColor:!0,children:p})]})}),d&&N.status==="cooldown"&&V(G,{marginLeft:2,children:H(W,{color:"warning",children:[N.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",zq(N.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),q[22]=Z,q[23]=Q,q[24]=y;else y=q[24];let D;if(q[25]===Symbol.for("react.memo_cache_sentinel"))D=H(W,{dimColor:!0,children:["Learn more:"," ",V(kq,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),q[25]=D;else D=q[25];let A;if(q[26]!==v||q[27]!==y||q[28]!==w)A=H(Hq,{title:Eq,subtitle:`High-speed mode for ${u}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:w,children:[y,D]}),q[26]=v,q[27]=y,q[28]=w,q[29]=A;else A=q[29];return A}function Tq(z){return!z}function cq(z){return{...z,fastMode:!1}}function vq(z){return z.fastMode}function Fq(z){return z.mainLoopModel}async function Mq(z,q,J){let Q=g();if(Q)return`Fast mode unavailable: ${Q}`;let{mainLoopModel:X}=q();if(b(z,J),m("",{enabled:z,source:"shortcut"}),z){let k=_(!0),Y=!T(X)?` · model set to ${u}`:"",Z=$(r(!0));return`${k} Fast mode ON${Y} · ${Z}`}else return"Fast mode OFF"}async function Qz(z,q,J){if(!Qq())return null;await Zq();let Q=J?.trim().toLowerCase();if(Q==="on"||Q==="off"){let k=await Mq(Q==="on",q.getAppState,q.setAppState);return z(k),null}let X=g();return m("",{unavailable_reason:X??""}),V(mq,{onDone:z,unavailableReason:X})}var wq,yq;var xq=i(()=>{_q();qq();a();jq();Uq();uq();hq();Lq();Dq();Iq();j();wq=x(n(),1),yq=x(Aq(),1)});
2
+ export{_ as ce,qq as de,mq as ee,Qz as fe,xq as ge};
@@ -0,0 +1,2 @@
1
+ import{fs as Hq,gs as pq,gz as Uq,hz as mq}from"./cli-1.1.14-8fx5qjh6.mjs";import{Y3 as Bq,_3 as dq}from"./cli-1.1.14-377p51gp.mjs";import{F4 as Lq,K4 as jq,L4 as Sq,Y7 as i,a8 as S,q7 as Nq,r7 as yq,w8 as gq}from"./cli-1.1.14-6ex3vykg.mjs";import{$$ as Pq,$da as Yq,Z$ as Gq,aea as Dq,bea as k,dea as Wq,gea as Xq,o$ as b,s$ as $q}from"./cli-1.1.14-q1kc6b8n.mjs";import{Aia as Cq,wia as N,yia as Mq,zia as E}from"./cli-1.1.14-ec6d00xg.mjs";import{ija as Kq,jja as Qq,kja as Vq,pja as Zq,qja as Rq}from"./cli-1.1.14-ry5bys5g.mjs";import{rja as _,uja as e}from"./cli-1.1.14-f5bvc359.mjs";import{Zja as m,cka as Eq,uka as Y,xja as Fq,xka as Jq,zja as $J}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as qq,Uka as C,_ka as P}from"./cli-1.1.14-fwakcyhj.mjs";import{Mra as z,csa as kq}from"./cli-1.1.14-pa5nsjfc.mjs";import{Dsa as ZJ,Esa as d,Fsa as Tq}from"./cli-1.1.14-r930b2z3.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.14-m5t9ge1t.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
+ export{Aq as n,NJ as o,BJ as p,bq as q,HJ as r,UJ as s,OJ as t,wJ as u};
@@ -0,0 +1,2 @@
1
+ import{Qea as G,Rea as h,Vea as v,Wea as P,bfa as k,nfa as f,tea as M,wea as L}from"./cli-1.1.14-q1kc6b8n.mjs";import{hja as E,qja as x}from"./cli-1.1.14-ry5bys5g.mjs";import{cla as T,nla as u}from"./cli-1.1.14-83ng5cjk.mjs";import{Esa as C}from"./cli-1.1.14-r930b2z3.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
+ export{Vj as wc,Wj as xc,e as yc,Xj as zc,Yj as Ac,jj as Bc};
@@ -0,0 +1,12 @@
1
+ import{pg as $Z,qg as uZ,rg as pz}from"./cli-1.1.14-z07q0gwf.mjs";import{Bh as HJ,Ch as Vz}from"./cli-1.1.14-q4njqbhv.mjs";import{Mh as GJ,Nh as Bz}from"./cli-1.1.14-ecnk9fd6.mjs";import{$J as gQ,$x as $Q,Ay as PX,BR as nZ,CR as aQ,CT as pZ,ER as g0,FR as rQ,Fn as zQ,Gn as $z,HR as eJ,Hk as mZ,Hx as xQ,IR as ZQ,Ik as FX,JR as oQ,KR as tQ,Kx as OX,MR as OZ,NT as BQ,Nn as RQ,On as NX,Zj as _Z,Zx as DQ,_j as TQ,_x as UQ,ay as uQ,bo as XQ,dB as e0,do as xZ,eB as gJ,ey as MQ,fB as mJ,fy as EQ,gB as nJ,gk as SJ,gt as wJ,hB as yz,hk as IJ,kt as Dz,no as WQ,ok as fJ,ro as uz,ry as pQ,sA as IZ,sy as AX,tA as hZ,uA as TZ,uR as nQ,vA as dJ,wA as cQ,wT as VQ,xA as cJ,yR as lQ,zR as iQ,zT as KQ,zy as dQ}from"./cli-1.1.14-8fx5qjh6.mjs";import{PU as fQ,YU as jX}from"./cli-1.1.14-gf6m8qz3.mjs";import{VX as FZ,WX as qJ,oY as YJ,sY as qz,tY as DZ,uY as wX}from"./cli-1.1.14-3a1bnf85.mjs";import{$Y as WJ,B0 as hQ,C0 as KX,HZ as c0,I0 as b,J0 as PQ,K0 as g,L0 as JX,MZ as vZ,aZ as Wz,j0 as UZ,jZ as u0,l0 as Jz,n1 as f0}from"./cli-1.1.14-hdkyecme.mjs";import{K3 as p0,L3 as B,M3 as $,N3 as F0}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as I0}from"./cli-1.1.14-pgkjn3yw.mjs";import{k4 as VJ,l4 as BJ,m4 as Yz}from"./cli-1.1.14-42r8tafr.mjs";import{T7 as JQ,b8 as QQ,q7 as jQ,r7 as ZX,w7 as JZ,w8 as xz,z7 as QZ}from"./cli-1.1.14-6ex3vykg.mjs";import{S8 as gZ,T8 as GX}from"./cli-1.1.14-msb0xfz3.mjs";import{Eba as LX,Oca as LZ,Rea as HQ,Wca as XJ,d_ as v0,e_ as zJ,iba as IQ,wea as PZ}from"./cli-1.1.14-q1kc6b8n.mjs";import{Cga as jZ,Dga as TJ,Nga as ZZ,Uga as hz}from"./cli-1.1.14-byr5dy4k.mjs";import{Dia as RZ,Fia as Rz,Qia as KZ,Via as NZ,Wia as wZ,gja as Pz}from"./cli-1.1.14-xcg5hzkp.mjs";import{uka as m0,xka as ez}from"./cli-1.1.14-db3mxak8.mjs";import{fla as SQ,nla as HX}from"./cli-1.1.14-83ng5cjk.mjs";import{Sqa as BX,nqa as kQ}from"./cli-1.1.14-f9dpkjv9.mjs";import{Asa as w0,Esa as L0}from"./cli-1.1.14-r930b2z3.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Jz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??Nz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(wz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),w=B(jz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function Nz(){}function wz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function jz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();f0();Yz();vZ();XJ();CZ();Vz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Pz();Dz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Uz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Uz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
2
+ `)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
3
+ `);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
4
+ `);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
5
+ `)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
6
+ `);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
7
+ `)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
8
+ `+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
9
+ `))}return Q.join(`
10
+ `)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Sz(J.message,J.streamingToolUseIDs),W=Iz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();yz();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(_z,Tz)});import{relative as fz}from"path";function qQ(J){return iz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,lz,iz;var YQ=L0(()=>{f0();BQ();zJ();Rz();hz();xz();pz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?fz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},lz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},iz=[dz,nz,cz,gz,mz,lz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??sz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/tz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??rz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-oz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,rz=3,o0=80,oz=30,tz,fZ=1,WZ=300,qZ=25,sz=()=>{};var wQ=L0(()=>{m=w0(I0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
11
+ `)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??YX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=XX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{wQ();f0();JX();LJ();ez();ZX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function SX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var mQ,YZ,p,DX,UX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(nQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>tQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=gQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:lQ(T,{includeSnipped:!0}),U=aQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>iQ(S0,D)),w),B0=[yQ,MX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?EX(U,B0):a.length>0?bX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(PJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=U.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(UX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(DX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(kX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();f0();NX();OX();FX();jX();AJ();DJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();SZ();wX();AX();iZ();oJ();EQ();PX();CZ();gJ();FQ();vQ();F0();mQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),DX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(SX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
12
+ export{s0 as se,TX as te,iZ as ue,xX as ve,$X as we,JJ as xe,QW as ye,zW as ze,XW as Ae,LJ as Be,g8 as Ce,sJ as De};
@@ -0,0 +1,2 @@
1
+ import{Dsa as n,Esa as o}from"./cli-1.1.14-r930b2z3.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
2
+ export{i as rja,c as sja,p as tja,u as uja};
@@ -0,0 +1,2 @@
1
+ import{$qa as m,Tqa as CQ,Uqa as YJ,Vqa as v,Wqa as P1,Xqa as J5,Yqa as w8,Zqa as D,_qa as y,ara as _Q,bra as L,cra as a,dra as h5,era as e8,fra as F5,gra as _8,hra as E,ira as h8,jra as P,kra as x1,lra as d,mra as WQ,nra as o,ora as xQ,pra as l5,qra as UY}from"./cli-1.1.14-znbm9h8t.mjs";import{Dsa as sQ,Esa as X}from"./cli-1.1.14-r930b2z3.mjs";function h$(){this.__data__=new v,this.size=0}var e1;var QQ=X(()=>{P1();e1=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var $Q;var JQ=X(()=>{$Q=n$});function b$(Q){return this.__data__.get(Q)}var YQ;var ZQ=X(()=>{YQ=b$});function i$(Q){return this.__data__.has(Q)}var XQ;var HQ=X(()=>{XQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,UQ;var KQ=X(()=>{P1();WQ();xQ();UQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();QQ();JQ();ZQ();HQ();KQ();g.prototype.clear=e1;g.prototype.delete=$Q;g.prototype.get=YQ;g.prototype.has=XQ;g.prototype.set=UQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var BQ=X(()=>{GQ=c$});function o$(Q){return this.__data__.has(Q)}var NQ;var wQ=X(()=>{NQ=o$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var zQ;var FQ=X(()=>{xQ();BQ();wQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=NQ;zQ=r});function r$(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 RQ;var DQ=X(()=>{RQ=r$});function s$(Q,J){return Q.has(J)}var qQ;var OQ=X(()=>{qQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new zQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!RQ(J,function(C,_){if(!qQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{FQ();DQ();OQ();s=e$});var QJ,_1;var VQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var MQ;var LQ=X(()=>{MQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var PQ=X(()=>{fQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return CQ(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=MQ;case BJ:var B=Z&ZJ;if(U||(U=fQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",IQ,k1,kQ;var EQ=X(()=>{_Q();VQ();YJ();C1();LQ();PQ();IQ=m?m.prototype:void 0,k1=IQ?IQ.valueOf:void 0;kQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var vQ;var dQ=X(()=>{vQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:vQ(Z,Y(Q))}var gQ;var pQ=X(()=>{dQ();M();gQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var yQ;var mQ=X(()=>{yQ=VJ});function MJ(){return[]}var SQ;var AQ=X(()=>{SQ=MJ});var LJ,fJ,jQ,PJ,hQ;var nQ=X(()=>{mQ();AQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,PJ=!jQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),yQ(jQ(Q),function(J){return fJ.call(Q,J)})},hQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var bQ;var iQ=X(()=>{bQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var uQ=X(()=>{a();S();E1=kJ});var lQ,EJ,vJ,dJ,t;var v1=X(()=>{uQ();S();lQ=Object.prototype,EJ=lQ.hasOwnProperty,vJ=lQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var TQ;var cQ=X(()=>{TQ=gJ});var Q1={};sQ(Q1,{default:()=>A});var aQ,oQ,pJ,rQ,yJ,mJ,A;var d1=X(()=>{y();cQ();aQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=aQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===aQ,rQ=pJ?D.Buffer:void 0,yJ=rQ?rQ.isBuffer:void 0,mJ=yJ||TQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",oJ="[object Map]",rJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,tQ;var eQ=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[oJ]=G[rJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;tQ=B8});function N8(Q){return function(J){return Q(J)}}var Q5;var $5=X(()=>{Q5=N8});var Z1={};sQ(Z1,{default:()=>X1});var Y5,i,z8,p1,F8,X1;var Z5=X(()=>{w8();Y5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Y5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Y5,p1=z8&&J5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var X5,R8,H1;var y1=X(()=>{eQ();$5();Z5();X5=X1&&X1.isTypedArray,R8=X5?Q5(X5):tQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?bQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,H5;var W5=X(()=>{iQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;H5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,x5;var U5=X(()=>{V8=Object.prototype;x5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var K5;var G5=X(()=>{K5=L8});var f8,B5;var N5=X(()=>{G5();f8=K5(Object.keys,Object),B5=f8});function C8(Q){if(!x5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,w5;var z5=X(()=>{U5();N5();P8=Object.prototype,I8=P8.hasOwnProperty;w5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!F5(Q)}var R5;var D5=X(()=>{_8();J1();R5=k8});function E8(Q){return R5(Q)?H5(Q):w5(Q)}var W1;var m1=X(()=>{W5();z5();D5();W1=E8});function v8(Q){return gQ(Q,W1,hQ)}var S1;var q5=X(()=>{pQ();nQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var t1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(t1===void 0?C===_||H(C,_,Y,Z,W):t1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,O5;var V5=X(()=>{q5();g8=Object.prototype,p8=g8.hasOwnProperty;O5=y8});var m8,U1;var M5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var L5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var f5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var P5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var I5="[object Map]",n8="[object Object]",C5="[object Promise]",_5="[object Set]",k5="[object WeakMap]",E5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var v5=X(()=>{M5();WQ();L5();f5();P5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=E5||d&&k(new d)!=I5||K1&&k(K1.resolve())!=C5||G1&&k(new G1)!=_5||B1&&k(new B1)!=k5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return E5;case i8:return I5;case u8:return C5;case l8:return _5;case T8:return k5}return J};A1=k});function r8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?g5:A1(Q),K=U?g5:A1(J);B=B==d5?N1:B,K=K==d5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):kQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&p5.call(Q,"__wrapped__"),R=z&&p5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),O5(Q,J,Y,Z,H,W)}var c8=1,d5="[object Arguments]",g5="[object Array]",N1="[object Object]",o8,p5,y5;var m5=X(()=>{I1();C1();EQ();V5();v5();M();d1();y1();o8=Object.prototype,p5=o8.hasOwnProperty;y5=r8});function S5(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 y5(Q,J,Y,Z,S5,H)}var w1;var j1=X(()=>{m5();S();w1=S5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,A5;var j5=X(()=>{I1();j1();A5=t8});function QY(Q){return Q===Q&&!h5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var n5;var b5=X(()=>{h1();m1();n5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=n5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||A5(Y,Q,J)}}var i5;var u5=X(()=>{j5();b5();n1();i5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=l5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,T5;var c5=X(()=>{UY();T5=GY});var BY,NY,wY,o5;var r5=X(()=>{c5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=T5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var s5;var a5=X(()=>{s5=zY});function Q$(Q){if(typeof Q=="string")return Q;if(w(Q))return s5(Q,Q$)+"";if(h(Q))return e5?e5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,t5,e5,$$;var J$=X(()=>{_Q();a5();M();R1();t5=m?m.prototype:void 0,e5=t5?t5.toString:void 0;$$=Q$});function RY(Q){return Q==null?"":$$(Q)}var Y$;var Z$=X(()=>{J$();Y$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Y$(Q))}var q1;var b1=X(()=>{M();D1();r5();Z$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var X$;var H$=X(()=>{i1();X$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var W$;var x$=X(()=>{W$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var U$;var K$=X(()=>{b1();v1();M();g1();J1();u();U$=fY});function PY(Q,J){return Q!=null&&U$(Q,J,W$)}var G$;var B$=X(()=>{x$();K$();G$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=X$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,N$;var w$=X(()=>{j1();H$();B$();D1();h1();n1();u();N$=_Y});function kY(Q){return Q}var z$;var F$=X(()=>{z$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var D$=X(()=>{R$=EY});function vY(Q){return function(J){return O1(J,Q)}}var q$;var O$=X(()=>{i1();q$=vY});function dY(Q){return n(Q)?R$(I(Q)):q$(Q)}var V$;var M$=X(()=>{D$();O$();D1();u();V$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return z$;if(typeof Q=="object")return w(Q)?N$(Q[0],Q[1]):i5(Q);return V$(Q)}var L$;var f$=X(()=>{u5();w$();F$();M();M$();L$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var P$;var I$=X(()=>{P$=pY});function yY(Q,J){return Q&&Q.length?P$(Q,L$(J,2)):0}var b;var C$=X(()=>{f$();I$();b=yY});import{randomUUID as u1}from"crypto";var _$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function k$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function oX(Q){c1=Q}function rX(){c1=void 0}var l1=null,V1,T1,c1;var E$=X(()=>{V1=new Map;T1=new Map});function v$(){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 d$=()=>{};import{realpathSync as g$}from"fs";import{cwd as mY}from"process";function Z9(Q){return o1.add(Q),()=>o1.delete(Q)}function X9(){L1()}function L1(){for(let Q of o1)try{Q()}catch{}}function p$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof g$==="function"){let Y=mY();try{Q=g$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),y$.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else r1=!0}function l9(){if(r1)S$()}function S$(){$.lastInteractionTime=Date.now(),r1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function o9(){return $.totalLinesRemoved}function r9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-s1}function QH(){return a1}function $H(Q){s1=A$(),a1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function oH(){return $.isInteractive}function rH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,k$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function o4(){return $.sessionTrustAccepted}function r4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function o3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function r3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var o1,$,y$,K9,r1=!1,s1=0,a1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{C$();_$();E$();d$();o1=new Set;$=p$();y$=v$();K9=y$.subscribe;AY=[]});
2
+ export{p as ola,I1 as pla,zQ as qla,FQ as rla,qQ as sla,OQ as tla,_1 as ula,VQ as vla,fQ as wla,PQ as xla,vQ as yla,dQ as zla,w as Ala,M as Bla,gQ as Cla,pQ as Dla,yQ as Ela,mQ as Fla,SQ as Gla,AQ as Hla,hQ as Ila,nQ as Jla,O as Kla,S as Lla,t as Mla,v1 as Nla,A as Ola,d1 as Pla,$1 as Qla,g1 as Rla,Q5 as Sla,$5 as Tla,X1 as Ula,Z5 as Vla,H1 as Wla,y1 as Xla,H5 as Yla,W5 as Zla,x5 as _la,U5 as $la,K5 as ama,G5 as bma,R5 as cma,D5 as dma,W1 as ema,m1 as fma,S1 as gma,q5 as hma,G1 as ima,f5 as jma,A1 as kma,v5 as lma,w1 as mma,j1 as nma,h as oma,R1 as pma,s5 as qma,a5 as rma,Y$ as sma,Z$ as tma,q1 as uma,b1 as vma,I as wma,u as xma,O1 as yma,i1 as zma,z$ as Ama,F$ as Bma,L$ as Cma,f$ as Dma,nX as Ema,bX as Fma,iX as Gma,uX as Hma,lX as Ima,TX as Jma,k$ as Kma,cX as Lma,oX as Mma,rX as Nma,E$ as Oma,v$ as Pma,d$ as Qma,Z9 as Rma,X9 as Sma,H9 as Tma,W9 as Uma,x9 as Vma,U9 as Wma,K9 as Xma,G9 as Yma,B9 as Zma,N9 as _ma,w9 as $ma,z9 as ana,F9 as bna,R9 as cna,D9 as dna,q9 as ena,O9 as fna,V9 as gna,M9 as hna,L9 as ina,f9 as jna,P9 as kna,I9 as lna,C9 as mna,_9 as nna,k9 as ona,E9 as pna,v9 as qna,d9 as rna,g9 as sna,p9 as tna,y9 as una,m9 as vna,S9 as wna,A9 as xna,j9 as yna,h9 as zna,n9 as Ana,b9 as Bna,i9 as Cna,u9 as Dna,l9 as Ena,T9 as Fna,c9 as Gna,o9 as Hna,r9 as Ina,A$ as Jna,s9 as Kna,a9 as Lna,t9 as Mna,e9 as Nna,QH as Ona,$H as Pna,JH as Qna,YH as Rna,ZH as Sna,XH as Tna,HH as Una,WH as Vna,xH as Wna,UH as Xna,KH as Yna,GH as Zna,BH as _na,NH as $na,wH as aoa,zH as boa,FH as coa,RH as doa,DH as eoa,qH as foa,OH as goa,VH as hoa,MH as ioa,LH as joa,fH as koa,PH as loa,IH as moa,CH as noa,_H as ooa,kH as poa,EH as qoa,vH as roa,dH as soa,gH as toa,pH as uoa,yH as voa,mH as woa,SH as xoa,AH as yoa,jH as zoa,hH as Aoa,nH as Boa,bH as Coa,iH as Doa,uH as Eoa,lH as Foa,TH as Goa,cH as Hoa,SY as Ioa,oH as Joa,rH as Koa,sH as Loa,aH as Moa,tH as Noa,eH as Ooa,Q4 as Poa,$4 as Qoa,J4 as Roa,Y4 as Soa,Z4 as Toa,X4 as Uoa,H4 as Voa,W4 as Woa,x4 as Xoa,U4 as Yoa,K4 as Zoa,G4 as _oa,B4 as $oa,N4 as apa,w4 as bpa,z4 as cpa,F4 as dpa,R4 as epa,D4 as fpa,q4 as gpa,O4 as hpa,V4 as ipa,M4 as jpa,L4 as kpa,f4 as lpa,P4 as mpa,I4 as npa,C4 as opa,_4 as ppa,k4 as qpa,E4 as rpa,v4 as spa,d4 as tpa,g4 as upa,p4 as vpa,y4 as wpa,m4 as xpa,S4 as ypa,A4 as zpa,j4 as Apa,h4 as Bpa,n4 as Cpa,b4 as Dpa,i4 as Epa,u4 as Fpa,l4 as Gpa,T4 as Hpa,c4 as Ipa,o4 as Jpa,r4 as Kpa,s4 as Lpa,a4 as Mpa,t4 as Npa,e4 as Opa,Q3 as Ppa,$3 as Qpa,J3 as Rpa,Y3 as Spa,Z3 as Tpa,X3 as Upa,H3 as Vpa,W3 as Wpa,x3 as Xpa,U3 as Ypa,K3 as Zpa,G3 as _pa,B3 as $pa,N3 as aqa,w3 as bqa,z3 as cqa,F3 as dqa,R3 as eqa,D3 as fqa,q3 as gqa,O3 as hqa,V3 as iqa,M3 as jqa,L3 as kqa,f3 as lqa,P3 as mqa,I3 as nqa,C3 as oqa,_3 as pqa,k3 as qqa,E3 as rqa,v3 as sqa,d3 as tqa,g3 as uqa,p3 as vqa,y3 as wqa,m3 as xqa,S3 as yqa,A3 as zqa,j3 as Aqa,h3 as Bqa,n3 as Cqa,b3 as Dqa,i3 as Eqa,u3 as Fqa,l3 as Gqa,T3 as Hqa,c3 as Iqa,o3 as Jqa,r3 as Kqa,s3 as Lqa,jY as Mqa,a3 as Nqa,t3 as Oqa,e3 as Pqa,QW as Qqa,$W as Rqa,hY as Sqa};
@@ -0,0 +1,3 @@
1
+ import{Dk as S,Dl as m,Ek as Iq,OC as P,Ol as W,PC as Zq,Rl as p,Sl as j,WH as d,XH as Yq,Xn as c,Yl as Jq,Yn as Xq,hG as l,iG as Aq,jm as F,oT as Oq,om as Vq,pT as Bq,rS as n,tS as _q}from"./cli-1.1.14-8fx5qjh6.mjs";import{CU as i,DU as Lq}from"./cli-1.1.14-8p0w0geq.mjs";import{I0 as M,K0 as E,jZ as Gq,n1 as Qq}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as Q,M3 as v,N3 as N}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as Kq}from"./cli-1.1.14-pgkjn3yw.mjs";import{u_ as R,w_ as Hq}from"./cli-1.1.14-q1kc6b8n.mjs";import{rja as y,uja as qq}from"./cli-1.1.14-f5bvc359.mjs";import{uka as T,xka as zq}from"./cli-1.1.14-db3mxak8.mjs";import{Asa as k,Bsa as e,Esa as g}from"./cli-1.1.14-r930b2z3.mjs";function f(){(Bq(),e(Oq)).saveWorktreeState(null),S()}function u({onDone:G,onCancel:J}){let[V,H]=X.useState("loading"),[I,O]=X.useState([]),[z,Z]=X.useState(0),[_,K]=X.useState(),q=m();if(X.useEffect(()=>{async function A(){let B=[],Y=await R("git",["status","--porcelain"]);if(Y.stdout)B=Y.stdout.split(`
2
+ `).filter((U)=>U.trim()!==""),O(B);if(q){let{stdout:U}=await R("git",["rev-list","--count",`${q.originalHeadCommit}..HEAD`]),w=parseInt(U.trim())||0;if(Z(w),B.length===0&&w===0){H("removing"),j().then(()=>{process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.(),K("Worktree removed (no changes)")}).catch((s)=>{T(`Failed to clean up worktree: ${s}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway")}).finally(()=>{f()}).then(()=>{H("done")});return}else H("asking")}}A()},[q]),X.useEffect(()=>{if(V==="done")G(_)},[V,G,_]),!q)return G("No active worktree session found",{display:"system"}),null;if(V==="loading"||V==="done")return null;async function D(A){if(!q)return;let B=Boolean(q.tmuxSessionName);if(A==="keep"||A==="keep-with-tmux"){H("keeping"),y("",{commits:z,changed_files:I.length}),await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}if(F.cache.clear?.(),B)K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${q.tmuxSessionName}`);else K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}`);H("done")}else if(A==="keep-kill-tmux"){if(H("keeping"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}F.cache.clear?.(),K(`Worktree kept at ${q.worktreePath} on branch ${q.worktreeBranch}. Tmux session terminated.`),H("done")}else if(A==="remove"||A==="remove-with-tmux"){if(H("removing"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);try{await j(),process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.()}catch(U){T(`Failed to clean up worktree: ${U}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway"),H("done");return}finally{f()}let Y=B?" Tmux session terminated.":"";if(z>0&&I.length>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} and uncommitted changes were discarded.${Y}`);else if(z>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} on ${q.worktreeBranch} ${z===1?"was":"were"} discarded.${Y}`);else if(I.length>0)K(`Worktree removed. Uncommitted changes were discarded.${Y}`);else K(`Worktree removed.${Y}`);H("done")}}if(V==="keeping")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Keeping worktree…"})]});if(V==="removing")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Removing worktree…"})]});let h=q.worktreeBranch,b=I.length>0,$=z>0,L="";if(b&&$)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"} and ${z} ${z===1?"commit":"commits"} on ${h}. All will be lost if you remove.`;else if(b)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if($)L=`You have ${z} ${z===1?"commit":"commits"} on ${h}. The branch will be deleted if you remove the worktree.`;else L="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function o(){if(J){J();return}D("keep")}let x=b||$?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(q.tmuxSessionName),t=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${q.worktreePath}. Reattach with: tmux attach -t ${q.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${q.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:x}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${q.worktreePath}`},{label:"Remove worktree",value:"remove",description:x}];return Q(c,{title:"Exiting worktree session",subtitle:L,onCancel:o,children:Q(l,{defaultFocusValue:C?"keep-with-tmux":"keep",options:t,onChange:D})})}var X;var a=g(()=>{qq();zq();Qq();Hq();Vq();Iq();Zq();Jq();Aq();Xq();Yq();N();X=k(Kq(),1)});function Fq(){return i(Uq)??"Goodbye!"}function wq(G){let J=r.c(5),{showWorktree:V,onDone:H,onCancel:I}=G,O;if(J[0]!==H)O=async function(_){H(_??Fq()),await n(0,"prompt_input_exit")},J[0]=H,J[1]=O;else O=J[1];let z=O;if(V){let Z;if(J[2]!==I||J[3]!==z)Z=Q(u,{onDone:z,onCancel:I}),J[2]=I,J[3]=z,J[4]=Z;else Z=J[4];return Z}return null}var r,Uq;var Pq=g(()=>{Lq();_q();a();N();r=k(Gq(),1),Uq=["Goodbye!","See ya!","Bye!","Catch you later!"]});
3
+ export{wq as jc,Pq as kc};
@@ -0,0 +1,2 @@
1
+ import{Esa as B}from"./cli-1.1.14-r930b2z3.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
2
+ export{K as si,L as ti,M as ui,G as vi};
@@ -0,0 +1,2 @@
1
+ import{L3 as w,N3 as F}from"./cli-1.1.14-az6pbe66.mjs";import{Fsa as D}from"./cli-1.1.14-r930b2z3.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.14-htg9bgyr.mjs"),K=B??import("./REPL-1.1.14-04ezket2.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 db,Q as eb};
@@ -0,0 +1,2 @@
1
+ import{Esa as y}from"./cli-1.1.14-r930b2z3.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function A(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||x.test(B))return!0;return!1}function k(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(A(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,x,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,x=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function O(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function E(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var N=500,V,J;var S=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(N)});
2
+ export{k as D2,P as E2,M as F2,C as G2,I as H2,L as I2,E as J2,T as K2,R as L2,b as M2,g as N2,l as O2,S as P2};
@@ -0,0 +1,4 @@
1
+ import{Ara as Z,Lra as w,vra as Q,wra as V,xra as W,yra as X,zra as Y}from"./cli-1.1.14-vx8jq8gy.mjs";import{Esa as v}from"./cli-1.1.14-r930b2z3.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
+ `),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
3
+ `)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
+ export{B as Eka,L as Fka,_ as Gka,S as Hka,k as Ika,F as Jka,D as Kka,P as Lka,x as Mka,y as Nka,T as Oka,O as Pka,R as Qka,U as Rka,f as Ska,N as Tka,I as Uka,$ as Vka,A as Wka,p as Xka,C as Yka,h as Zka,E as _ka,b as $ka};
@@ -0,0 +1,2 @@
1
+ import{$d as _,be as P}from"./cli-1.1.14-cj411dk7.mjs";import{Ce as Z,De as y}from"./cli-1.1.14-f2z81veh.mjs";import{Gx as X,Kx as K,Ux as Y,Wx as A}from"./cli-1.1.14-8fx5qjh6.mjs";import{dY as V,gY as C}from"./cli-1.1.14-3a1bnf85.mjs";import{L3 as H,N3 as Q}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as W}from"./cli-1.1.14-pgkjn3yw.mjs";import{Aga as L,Bga as M}from"./cli-1.1.14-byr5dy4k.mjs";import{Asa as T,Esa as U}from"./cli-1.1.14-r930b2z3.mjs";function b({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let B=(w)=>_(H(X,{children:H(b,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await B([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=U(()=>{M();y();C();A();K();P();Q();J=T(W(),1)});
2
+ export{l as lc,x as mc};
@@ -0,0 +1,5 @@
1
+ import{FF as a,no as y,ro as r,vF as F,wF as S,zF as C}from"./cli-1.1.14-8fx5qjh6.mjs";import{$Y as z,ZY as D,_Y as o,aZ as b}from"./cli-1.1.14-hdkyecme.mjs";import{M_ as R,N_ as l,P_ as T,Q_ as u}from"./cli-1.1.14-q1kc6b8n.mjs";import{aka as O,cka as c,gka as L,kka as d,uka as N,xka as g}from"./cli-1.1.14-db3mxak8.mjs";import{pra as _,qra as I}from"./cli-1.1.14-znbm9h8t.mjs";import{Esa as j}from"./cli-1.1.14-r930b2z3.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
2
+ `)&&!Q.endsWith(`
3
+
4
+ `))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
5
+ export{Qq as ug,v as vg,x as wg,i as xg,Vq as yg,t as zg};
@@ -0,0 +1,2 @@
1
+ import{S3 as J,U3 as Y}from"./cli-1.1.14-ykbz2fee.mjs";import{Y3 as G,_3 as X}from"./cli-1.1.14-377p51gp.mjs";import{Y7 as B,a5 as z,b8 as D,c8 as F,f5 as V,w8 as W}from"./cli-1.1.14-6ex3vykg.mjs";import{pja as w,qja as N}from"./cli-1.1.14-ry5bys5g.mjs";import{Mra as y,csa as Q}from"./cli-1.1.14-pa5nsjfc.mjs";import{Esa as M}from"./cli-1.1.14-r930b2z3.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
2
+ export{f as Ri,Z as Si};
@@ -0,0 +1,2 @@
1
+ import{Xn as T,Yn as j,hG as I,jG as _}from"./cli-1.1.14-8fx5qjh6.mjs";import{I0 as P,K0 as J,O0 as C,jZ as S,n1 as g}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as G,M3 as H,N3 as R}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as v}from"./cli-1.1.14-pgkjn3yw.mjs";import{Dea as B,Rea as h}from"./cli-1.1.14-q1kc6b8n.mjs";import{rja as W,uja as D}from"./cli-1.1.14-f5bvc359.mjs";import{Asa as f,Esa as p}from"./cli-1.1.14-r930b2z3.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
2
+ export{l as Gg,r as Hg};
@@ -0,0 +1,2 @@
1
+ import{Nd as Jq,Rd as Tq}from"./cli-1.1.14-vmwd3gk6.mjs";import{Wd as zq,Xd as bq}from"./cli-1.1.14-9419wa62.mjs";import{AL as s,BL as _q,FL as a,IL as l,ML as t,RL as e,TL as Rq,WH as h,XH as fq,Xn as n,Yn as yq,_L as qq,cM as Fq,hG as r,iG as Gq,mL as S,pL as Nq,sM as D,vM as Cq}from"./cli-1.1.14-8fx5qjh6.mjs";import{$Y as i,I0 as F,K0 as C,aZ as Kq,jZ as Bq,n1 as Oq}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as v,M3 as R,N3 as p}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as Lq}from"./cli-1.1.14-pgkjn3yw.mjs";import{caa as x,h_ as g,i_ as Zq,pga as m,u$ as o,u_ as $,v$ as Hq,w_ as Xq,xga as wq,zaa as vq}from"./cli-1.1.14-q1kc6b8n.mjs";import{uka as B,xka as Yq}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as Wq,Tka as P,Wka as u}from"./cli-1.1.14-fwakcyhj.mjs";import{Asa as d,Esa as Vq}from"./cli-1.1.14-r930b2z3.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Dd,Yz as Ed,Dq as Fd};
@@ -0,0 +1,17 @@
1
+ import{j7 as x,p7 as K}from"./cli-1.1.14-6ex3vykg.mjs";import{Fda as J,wda as w}from"./cli-1.1.14-q1kc6b8n.mjs";import{Hha as I,vha as v}from"./cli-1.1.14-qe4ypfya.mjs";import{fla as q,nla as G}from"./cli-1.1.14-83ng5cjk.mjs";import{Esa as z}from"./cli-1.1.14-r930b2z3.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDIN_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
2
+
3
+ You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
4
+
5
+ Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
6
+
7
+ Also call advisor:
8
+ - When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
9
+ - When stuck -- errors recurring, approach not converging, results that don't fit.
10
+ - When considering a change of approach.
11
+
12
+ On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
13
+
14
+ Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
15
+
16
+ If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
17
+ export{W as PU,k as QU,N as RU,X as SU,Z as TU,$ as UU,B as VU,D as WU,F as XU,O as YU};