@claudiolabs/claudin 1.1.21 → 1.1.23

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 (904) hide show
  1. package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +1 -0
  2. package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +6 -0
  10. package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +6 -0
  12. package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +1 -0
  13. package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +1 -0
  14. package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +1 -0
  15. package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +1 -0
  16. package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +1 -0
  17. package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +1 -0
  18. package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +1 -0
  19. package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +1 -0
  20. package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +1 -0
  21. package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +1 -0
  22. package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +1 -0
  23. package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +1 -0
  24. package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +9 -0
  25. package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +1 -0
  26. package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +1 -0
  27. package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +1 -0
  28. package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +1 -0
  29. package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +1 -0
  30. package/dist/chunks/agents-1.1.23-13ae3y31.mjs +110 -0
  31. package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +3 -0
  32. package/dist/chunks/api-1.1.23-sadzsv9h.mjs +1 -0
  33. package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +1 -0
  34. package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +1 -0
  35. package/dist/chunks/auth-1.1.23-2mazt66r.mjs +1 -0
  36. package/dist/chunks/auth-1.1.23-f804wpq0.mjs +1 -0
  37. package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +52 -0
  38. package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +44 -0
  39. package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +1 -0
  41. package/dist/chunks/branch-1.1.23-df4c0964.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +1 -0
  47. package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +4 -0
  51. package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.23-av012etb.mjs +1 -0
  54. package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +1 -0
  56. package/dist/chunks/cli-1.1.23-08g4ya29.mjs +2 -0
  57. package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +4 -0
  58. package/dist/chunks/cli-1.1.23-13w02myd.mjs +2 -0
  59. package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +2 -0
  60. package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +5 -0
  61. package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +3 -0
  62. package/dist/chunks/cli-1.1.23-1fexxp20.mjs +2 -0
  63. package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +4 -0
  64. package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +2 -0
  65. package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +2 -0
  66. package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +2 -0
  67. package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +24 -0
  68. package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +4 -0
  69. package/dist/chunks/cli-1.1.23-2g7503ny.mjs +133 -0
  70. package/dist/chunks/cli-1.1.23-2gax24jg.mjs +2 -0
  71. package/dist/chunks/cli-1.1.23-2swa87qn.mjs +2 -0
  72. package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +2 -0
  73. package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +7 -0
  74. package/dist/chunks/cli-1.1.23-3hnz7314.mjs +2 -0
  75. package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +2 -0
  76. package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +2 -0
  77. package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +24 -0
  78. package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +2 -0
  79. package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +2 -0
  80. package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +2 -0
  81. package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +3 -0
  82. package/dist/chunks/cli-1.1.23-4z00tj56.mjs +20 -0
  83. package/dist/chunks/cli-1.1.23-534g4n3n.mjs +2 -0
  84. package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +2 -0
  85. package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +2 -0
  86. package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +3 -0
  87. package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +2 -0
  88. package/dist/chunks/cli-1.1.23-61q858yx.mjs +24 -0
  89. package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +6 -0
  90. package/dist/chunks/cli-1.1.23-6801e7pm.mjs +34 -0
  91. package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +2 -0
  92. package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +2 -0
  93. package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +3 -0
  94. package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +2 -0
  95. package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +2 -0
  96. package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +2 -0
  97. package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +3 -0
  98. package/dist/chunks/cli-1.1.23-6svwd47h.mjs +2 -0
  99. package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +4 -0
  100. package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +2 -0
  101. package/dist/chunks/cli-1.1.23-7081am2r.mjs +60 -0
  102. package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +2 -0
  103. package/dist/chunks/cli-1.1.23-7672wfdw.mjs +2 -0
  104. package/dist/chunks/cli-1.1.23-79fjt009.mjs +2 -0
  105. package/dist/chunks/cli-1.1.23-7btdskbp.mjs +2 -0
  106. package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +2 -0
  107. package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +2 -0
  108. package/dist/chunks/cli-1.1.23-7p15pph2.mjs +2 -0
  109. package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +2 -0
  110. package/dist/chunks/cli-1.1.23-89dm39zw.mjs +2 -0
  111. package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +2 -0
  112. package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +2 -0
  113. package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +1 -0
  114. package/dist/chunks/cli-1.1.23-8tv84m75.mjs +2 -0
  115. package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +4 -0
  116. package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +6 -0
  117. package/dist/chunks/cli-1.1.23-913hrrgx.mjs +2 -0
  118. package/dist/chunks/cli-1.1.23-91n79mdp.mjs +2 -0
  119. package/dist/chunks/cli-1.1.23-971f3zzk.mjs +2 -0
  120. package/dist/chunks/cli-1.1.23-9b08qsth.mjs +2 -0
  121. package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +2 -0
  122. package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +2 -0
  123. package/dist/chunks/cli-1.1.23-9qe28y65.mjs +16 -0
  124. package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +2 -0
  125. package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +2 -0
  126. package/dist/chunks/cli-1.1.23-9zrhw582.mjs +2 -0
  127. package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +12 -0
  128. package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +18 -0
  129. package/dist/chunks/cli-1.1.23-a95wepyn.mjs +66 -0
  130. package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +2 -0
  131. package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +7 -0
  132. package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +2 -0
  133. package/dist/chunks/cli-1.1.23-akghy19s.mjs +58 -0
  134. package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +2 -0
  135. package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +2 -0
  136. package/dist/chunks/cli-1.1.23-beazn1ym.mjs +45 -0
  137. package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +15 -0
  138. package/dist/chunks/cli-1.1.23-bghc6n12.mjs +2 -0
  139. package/dist/chunks/cli-1.1.23-bkd2235z.mjs +2 -0
  140. package/dist/chunks/cli-1.1.23-bqb900hx.mjs +2 -0
  141. package/dist/chunks/cli-1.1.23-btem08d6.mjs +2 -0
  142. package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +2 -0
  143. package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +2 -0
  144. package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +2 -0
  145. package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +3 -0
  146. package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +2 -0
  147. package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +2 -0
  148. package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +2 -0
  149. package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +50 -0
  150. package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +2 -0
  151. package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +2 -0
  152. package/dist/chunks/cli-1.1.23-dm6get34.mjs +42 -0
  153. package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +2 -0
  154. package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +2 -0
  155. package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +2 -0
  156. package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +2 -0
  157. package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +2 -0
  158. package/dist/chunks/cli-1.1.23-e3zf752q.mjs +2 -0
  159. package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +2 -0
  160. package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +9 -0
  161. package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +2 -0
  162. package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +15 -0
  163. package/dist/chunks/cli-1.1.23-f001cyx3.mjs +2 -0
  164. package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +2 -0
  165. package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +2 -0
  166. package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +2 -0
  167. package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +3 -0
  168. package/dist/chunks/cli-1.1.23-fxt20eva.mjs +2 -0
  169. package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +2 -0
  170. package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +6 -0
  171. package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +2 -0
  172. package/dist/chunks/cli-1.1.23-g6b9c447.mjs +2 -0
  173. package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +2 -0
  174. package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +2 -0
  175. package/dist/chunks/cli-1.1.23-gqzmsste.mjs +2 -0
  176. package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +25 -0
  177. package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +17 -0
  178. package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +17 -0
  179. package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +2 -0
  180. package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +2 -0
  181. package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +2 -0
  182. package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +2 -0
  183. package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +5456 -0
  184. package/dist/chunks/cli-1.1.23-j1834bmw.mjs +8 -0
  185. package/dist/chunks/cli-1.1.23-j50f02dv.mjs +3 -0
  186. package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +9 -0
  187. package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +2 -0
  188. package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +2 -0
  189. package/dist/chunks/cli-1.1.23-jax91df0.mjs +2 -0
  190. package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +2 -0
  191. package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +2 -0
  192. package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +4 -0
  193. package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +2 -0
  194. package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +6 -0
  195. package/dist/chunks/cli-1.1.23-keftnbc6.mjs +206 -0
  196. package/dist/chunks/cli-1.1.23-kqechz3h.mjs +3 -0
  197. package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +4 -0
  198. package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +4 -0
  199. package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +2 -0
  200. package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +2 -0
  201. package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +2 -0
  202. package/dist/chunks/cli-1.1.23-n0182x8j.mjs +2 -0
  203. package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +2 -0
  204. package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +2 -0
  205. package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +2 -0
  206. package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +2 -0
  207. package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +12 -0
  208. package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +2 -0
  209. package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +3 -0
  210. package/dist/chunks/cli-1.1.23-qn9572e2.mjs +2 -0
  211. package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +2 -0
  212. package/dist/chunks/cli-1.1.23-r21frpa6.mjs +6 -0
  213. package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +2 -0
  214. package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +2 -0
  215. package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +2 -0
  216. package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +25 -0
  217. package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +2 -0
  218. package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +2 -0
  219. package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +2 -0
  220. package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +2 -0
  221. package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +2 -0
  222. package/dist/chunks/cli-1.1.23-s21f8qza.mjs +2 -0
  223. package/dist/chunks/cli-1.1.23-s2pn202f.mjs +4 -0
  224. package/dist/chunks/cli-1.1.23-s943evpq.mjs +2 -0
  225. package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +21 -0
  226. package/dist/chunks/cli-1.1.23-sch1s17t.mjs +2 -0
  227. package/dist/chunks/cli-1.1.23-se379e5e.mjs +15 -0
  228. package/dist/chunks/cli-1.1.23-swf2c8db.mjs +2 -0
  229. package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +2 -0
  230. package/dist/chunks/cli-1.1.23-v22erb37.mjs +2 -0
  231. package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +5 -0
  232. package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +2 -0
  233. package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +3 -0
  234. package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +2 -0
  235. package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +2 -0
  236. package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +2 -0
  237. package/dist/chunks/cli-1.1.23-vyf2j831.mjs +2 -0
  238. package/dist/chunks/cli-1.1.23-w16rdkte.mjs +3 -0
  239. package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +3 -0
  240. package/dist/chunks/cli-1.1.23-wd48c77m.mjs +24 -0
  241. package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +18 -0
  242. package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +2 -0
  243. package/dist/chunks/cli-1.1.23-wnxxa385.mjs +4 -0
  244. package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +39 -0
  245. package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +2 -0
  246. package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +3 -0
  247. package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +2 -0
  248. package/dist/chunks/cli-1.1.23-xgst7vty.mjs +2 -0
  249. package/dist/chunks/cli-1.1.23-xkt2056f.mjs +2 -0
  250. package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +2 -0
  251. package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +2 -0
  252. package/dist/chunks/cli-1.1.23-y3ea6683.mjs +2 -0
  253. package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +2 -0
  254. package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +2 -0
  255. package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +133 -0
  256. package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +2 -0
  257. package/dist/chunks/cli-1.1.23-zb8savhy.mjs +6 -0
  258. package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +2 -0
  259. package/dist/chunks/client-1.1.23-mcea9qxt.mjs +1 -0
  260. package/dist/chunks/color-1.1.23-e9h5ff51.mjs +1 -0
  261. package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +3 -0
  262. package/dist/chunks/config-1.1.23-j8frjsmx.mjs +1 -0
  263. package/dist/chunks/config-1.1.23-kedfvs1w.mjs +1 -0
  264. package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +1 -0
  265. package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +1 -0
  266. package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +1 -0
  267. package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +1 -0
  268. package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +1 -0
  269. package/dist/chunks/copy-1.1.23-vydqekfj.mjs +9 -0
  270. package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +1 -0
  271. package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +1 -0
  272. package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +1 -0
  273. package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +1 -0
  274. package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +1534 -0
  275. package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +1 -0
  276. package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +1 -0
  277. package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +1 -0
  278. package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +1 -0
  279. package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +1 -0
  280. package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +1 -0
  281. package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +1 -0
  282. package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +13 -0
  283. package/dist/chunks/engine-1.1.23-zted98hq.mjs +1 -0
  284. package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +1 -0
  285. package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +1 -0
  286. package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +1 -0
  287. package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +1 -0
  288. package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +1 -0
  289. package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +1 -0
  290. package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +1 -0
  291. package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +1 -0
  292. package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +1 -0
  293. package/dist/chunks/export-1.1.23-811x7m0f.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +1 -0
  296. package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +1 -0
  297. package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +1 -0
  299. package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +1 -0
  301. package/dist/chunks/goal-1.1.23-cmzk221k.mjs +4 -0
  302. package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +1 -0
  303. package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +2 -0
  304. package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +6 -0
  305. package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +1 -0
  306. package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +3 -0
  307. package/dist/chunks/hooks-1.1.23-nh96m542.mjs +1 -0
  308. package/dist/chunks/hooks-1.1.23-pggycv75.mjs +79 -0
  309. package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +3 -0
  310. package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +1 -0
  311. package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +1 -0
  312. package/dist/chunks/index-1.1.23-04w67ps4.mjs +1 -0
  313. package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +2 -0
  314. package/dist/chunks/index-1.1.23-16krzxwz.mjs +1 -0
  315. package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +2 -0
  316. package/dist/chunks/index-1.1.23-5xkpaxba.mjs +1 -0
  317. package/dist/chunks/index-1.1.23-87bctdxv.mjs +1 -0
  318. package/dist/chunks/index-1.1.23-894gw6j8.mjs +1 -0
  319. package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +9 -0
  320. package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +1 -0
  321. package/dist/chunks/index-1.1.23-hzafkcpn.mjs +30 -0
  322. package/dist/chunks/index-1.1.23-jfybaapb.mjs +9 -0
  323. package/dist/chunks/index-1.1.23-mbvmhq60.mjs +1 -0
  324. package/dist/chunks/index-1.1.23-nq44z8sn.mjs +1 -0
  325. package/dist/chunks/index-1.1.23-p84yrb6r.mjs +1 -0
  326. package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +23 -0
  327. package/dist/chunks/index-1.1.23-v3pvt45w.mjs +1 -0
  328. package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +1 -0
  329. package/dist/chunks/index-1.1.23-vw0ns36r.mjs +1 -0
  330. package/dist/chunks/index-1.1.23-xb876pe7.mjs +5 -0
  331. package/dist/chunks/index-1.1.23-xfzxwabm.mjs +1 -0
  332. package/dist/chunks/index-1.1.23-yjt3kte0.mjs +1 -0
  333. package/dist/chunks/index-1.1.23-ymq59t45.mjs +1 -0
  334. package/dist/chunks/index-1.1.23-ytps69pn.mjs +1 -0
  335. package/dist/chunks/init-1.1.23-68d7nbfy.mjs +1 -0
  336. package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +1 -0
  337. package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +1 -0
  338. package/dist/chunks/insights-1.1.23-hnbtjced.mjs +870 -0
  339. package/dist/chunks/install-1.1.23-ayas8qxr.mjs +1 -0
  340. package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +149 -0
  341. package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +1 -0
  342. package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +1 -0
  343. package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +1 -0
  344. package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +2 -0
  345. package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +2 -0
  346. package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +1 -0
  347. package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +1 -0
  348. package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +1 -0
  349. package/dist/chunks/log-1.1.23-raemwqxy.mjs +1 -0
  350. package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +1 -0
  351. package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +1 -0
  352. package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +17 -0
  353. package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +4 -0
  354. package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +1 -0
  355. package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +1 -0
  356. package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +72 -0
  357. package/dist/chunks/model-1.1.23-m65499d4.mjs +1 -0
  358. package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +2 -0
  359. package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +14 -0
  360. package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +1 -0
  361. package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +14 -0
  362. package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +1 -0
  363. package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +1 -0
  364. package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +1 -0
  365. package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +1 -0
  366. package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +1 -0
  367. package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +3 -0
  368. package/dist/chunks/permissions-1.1.23-r2894sce.mjs +1 -0
  369. package/dist/chunks/plan-1.1.23-z731dw1m.mjs +1 -0
  370. package/dist/chunks/plist-1.1.23-5761s0b4.mjs +1 -0
  371. package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +29 -0
  372. package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +1 -0
  373. package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +9 -0
  374. package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +2 -0
  375. package/dist/chunks/print-1.1.23-g988xjb3.mjs +57 -0
  376. package/dist/chunks/process-1.1.23-eh0mn414.mjs +1 -0
  377. package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +1 -0
  378. package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +9 -0
  379. package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +1 -0
  380. package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +1 -0
  381. package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +1 -0
  382. package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +13 -0
  383. package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +2 -0
  384. package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +1 -0
  385. package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +6 -0
  386. package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +1 -0
  387. package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +26 -0
  388. package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +1 -0
  389. package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +5 -0
  390. package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +2 -0
  391. package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +1 -0
  392. package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +1 -0
  393. package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +1 -0
  394. package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +1 -0
  395. package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +1 -0
  396. package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +1 -0
  397. package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +2 -0
  398. package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +1 -0
  399. package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +1 -0
  400. package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +10 -0
  401. package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +1 -0
  402. package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +1 -0
  403. package/dist/chunks/session-1.1.23-mws1tmy1.mjs +2 -0
  404. package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +1 -0
  405. package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +1 -0
  406. package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +1 -0
  407. package/dist/chunks/settings-1.1.23-3fm1v708.mjs +1 -0
  408. package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +12 -0
  409. package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +1 -0
  410. package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +1 -0
  411. package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +1 -0
  412. package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +1 -0
  413. package/dist/chunks/state-1.1.23-jxkq1t17.mjs +1 -0
  414. package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +6 -0
  415. package/dist/chunks/status-1.1.23-zkcmaawr.mjs +1 -0
  416. package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +1 -0
  417. package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +1 -0
  418. package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +1 -0
  419. package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +1 -0
  420. package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +1 -0
  421. package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +1 -0
  422. package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +1 -0
  423. package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +1 -0
  424. package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +1 -0
  425. package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +1 -0
  426. package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +1 -0
  427. package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +1 -0
  428. package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +1 -0
  429. package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +1 -0
  430. package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +69 -0
  431. package/dist/chunks/types-1.1.23-pca5g3df.mjs +1 -0
  432. package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +4 -0
  433. package/dist/chunks/update-1.1.23-3xmkkhns.mjs +72 -0
  434. package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +1 -0
  435. package/dist/chunks/upload-1.1.23-cx2aj445.mjs +7 -0
  436. package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +14 -0
  437. package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +1 -0
  438. package/dist/chunks/usage-1.1.23-bndk03g2.mjs +1 -0
  439. package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +1 -0
  440. package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +1 -0
  441. package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +1 -0
  442. package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +13 -0
  443. package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +1 -0
  444. package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +132 -0
  445. package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +1 -0
  446. package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +1 -0
  447. package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +1 -0
  448. package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +7 -0
  449. package/dist/cli.mjs +2 -2
  450. package/package.json +9 -9
  451. package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +0 -1
  452. package/dist/chunks/App-1.1.21-x1hrya65.mjs +0 -1
  453. package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +0 -1
  454. package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +0 -1
  455. package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +0 -1
  456. package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +0 -1
  457. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +0 -1
  458. package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +0 -1
  459. package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +0 -6
  460. package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +0 -1
  461. package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +0 -6
  462. package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +0 -1
  463. package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +0 -1
  464. package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +0 -1
  465. package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +0 -1
  466. package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +0 -1
  467. package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +0 -1
  468. package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +0 -1
  469. package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +0 -1
  470. package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +0 -1
  471. package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +0 -1
  472. package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +0 -1
  473. package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +0 -1
  474. package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +0 -9
  475. package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +0 -1
  476. package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +0 -1
  477. package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +0 -1
  478. package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +0 -1
  479. package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +0 -1
  480. package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +0 -3
  481. package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +0 -110
  482. package/dist/chunks/api-1.1.21-g8sbqk15.mjs +0 -1
  483. package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +0 -1
  484. package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +0 -1
  485. package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +0 -1
  486. package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +0 -1
  487. package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +0 -52
  488. package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +0 -44
  489. package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +0 -1
  490. package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +0 -1
  491. package/dist/chunks/branch-1.1.21-71gampws.mjs +0 -4
  492. package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +0 -2
  493. package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +0 -1
  494. package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +0 -1
  495. package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +0 -88
  496. package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +0 -1
  497. package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +0 -1
  498. package/dist/chunks/buddy-1.1.21-74rtch74.mjs +0 -3
  499. package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +0 -21
  500. package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +0 -4
  501. package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +0 -1
  502. package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +0 -1
  503. package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +0 -1
  504. package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +0 -1
  505. package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +0 -1
  506. package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +0 -2
  507. package/dist/chunks/cli-1.1.21-04brya8b.mjs +0 -2
  508. package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +0 -2
  509. package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +0 -2
  510. package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +0 -2
  511. package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +0 -2
  512. package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +0 -12
  513. package/dist/chunks/cli-1.1.21-0sqcznka.mjs +0 -4
  514. package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +0 -2
  515. package/dist/chunks/cli-1.1.21-13kr6en7.mjs +0 -2
  516. package/dist/chunks/cli-1.1.21-15f55e7j.mjs +0 -2
  517. package/dist/chunks/cli-1.1.21-1a9968t0.mjs +0 -3
  518. package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +0 -2
  519. package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +0 -2
  520. package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +0 -2
  521. package/dist/chunks/cli-1.1.21-1mxg753a.mjs +0 -2
  522. package/dist/chunks/cli-1.1.21-1y508j57.mjs +0 -2
  523. package/dist/chunks/cli-1.1.21-27a8sw98.mjs +0 -2
  524. package/dist/chunks/cli-1.1.21-29jp27ks.mjs +0 -2
  525. package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +0 -66
  526. package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +0 -3
  527. package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +0 -2
  528. package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +0 -7
  529. package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +0 -2
  530. package/dist/chunks/cli-1.1.21-2txzm68v.mjs +0 -2
  531. package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +0 -15
  532. package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +0 -3
  533. package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +0 -2
  534. package/dist/chunks/cli-1.1.21-3n2szerd.mjs +0 -2
  535. package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +0 -3
  536. package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +0 -2
  537. package/dist/chunks/cli-1.1.21-4010086n.mjs +0 -39
  538. package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +0 -2
  539. package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +0 -2
  540. package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +0 -2
  541. package/dist/chunks/cli-1.1.21-510h0rfd.mjs +0 -2
  542. package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +0 -16
  543. package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +0 -2
  544. package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +0 -2
  545. package/dist/chunks/cli-1.1.21-5znk8g89.mjs +0 -2
  546. package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +0 -2
  547. package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +0 -2
  548. package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +0 -2
  549. package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +0 -2
  550. package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +0 -2
  551. package/dist/chunks/cli-1.1.21-7bq44n89.mjs +0 -2
  552. package/dist/chunks/cli-1.1.21-7fymk48z.mjs +0 -2
  553. package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +0 -2
  554. package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +0 -6
  555. package/dist/chunks/cli-1.1.21-8022a544.mjs +0 -3
  556. package/dist/chunks/cli-1.1.21-811zr6vq.mjs +0 -15
  557. package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +0 -2
  558. package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +0 -2
  559. package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +0 -133
  560. package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +0 -2
  561. package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +0 -34
  562. package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +0 -4
  563. package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +0 -3
  564. package/dist/chunks/cli-1.1.21-92zh5twv.mjs +0 -2
  565. package/dist/chunks/cli-1.1.21-93zvwec9.mjs +0 -6
  566. package/dist/chunks/cli-1.1.21-9fnv418t.mjs +0 -24
  567. package/dist/chunks/cli-1.1.21-9jq126pc.mjs +0 -2
  568. package/dist/chunks/cli-1.1.21-9za692z5.mjs +0 -2
  569. package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +0 -2
  570. package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +0 -17
  571. package/dist/chunks/cli-1.1.21-admbc6bh.mjs +0 -2
  572. package/dist/chunks/cli-1.1.21-adykpnkk.mjs +0 -2
  573. package/dist/chunks/cli-1.1.21-an07xgtv.mjs +0 -25
  574. package/dist/chunks/cli-1.1.21-arjp8fch.mjs +0 -50
  575. package/dist/chunks/cli-1.1.21-as9g92fa.mjs +0 -4
  576. package/dist/chunks/cli-1.1.21-atvca4b4.mjs +0 -2
  577. package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +0 -133
  578. package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +0 -2
  579. package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +0 -3
  580. package/dist/chunks/cli-1.1.21-b92n11f5.mjs +0 -2
  581. package/dist/chunks/cli-1.1.21-badssmqg.mjs +0 -25
  582. package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +0 -4
  583. package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +0 -2
  584. package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +0 -2
  585. package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +0 -2
  586. package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +0 -2
  587. package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +0 -24
  588. package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +0 -2
  589. package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +0 -2
  590. package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +0 -2
  591. package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +0 -6
  592. package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +0 -4
  593. package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +0 -2
  594. package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +0 -4
  595. package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +0 -2
  596. package/dist/chunks/cli-1.1.21-ekphtr04.mjs +0 -6
  597. package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +0 -2
  598. package/dist/chunks/cli-1.1.21-er4j34m5.mjs +0 -4
  599. package/dist/chunks/cli-1.1.21-eray52nd.mjs +0 -5426
  600. package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +0 -18
  601. package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +0 -17
  602. package/dist/chunks/cli-1.1.21-f3caatgb.mjs +0 -2
  603. package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +0 -21
  604. package/dist/chunks/cli-1.1.21-fdf1j366.mjs +0 -3
  605. package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +0 -2
  606. package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +0 -24
  607. package/dist/chunks/cli-1.1.21-fyryzam5.mjs +0 -2
  608. package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +0 -3
  609. package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +0 -206
  610. package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +0 -2
  611. package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +0 -6
  612. package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +0 -20
  614. package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +0 -2
  615. package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +0 -2
  616. package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +0 -2
  617. package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +0 -2
  618. package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +0 -4
  619. package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +0 -1
  620. package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +0 -2
  621. package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +0 -2
  622. package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +0 -2
  623. package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +0 -2
  624. package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +0 -9
  625. package/dist/chunks/cli-1.1.21-kc7af745.mjs +0 -5
  626. package/dist/chunks/cli-1.1.21-kf8s641e.mjs +0 -2
  627. package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +0 -2
  628. package/dist/chunks/cli-1.1.21-krwdkyza.mjs +0 -18
  629. package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +0 -3
  630. package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +0 -2
  631. package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +0 -2
  632. package/dist/chunks/cli-1.1.21-m84cxaww.mjs +0 -2
  633. package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +0 -3
  634. package/dist/chunks/cli-1.1.21-mysvm055.mjs +0 -8
  635. package/dist/chunks/cli-1.1.21-n00fkex6.mjs +0 -15
  636. package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +0 -2
  637. package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +0 -2
  638. package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +0 -2
  639. package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +0 -2
  640. package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +0 -2
  641. package/dist/chunks/cli-1.1.21-pq9par9t.mjs +0 -2
  642. package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +0 -3
  643. package/dist/chunks/cli-1.1.21-q2k4myze.mjs +0 -2
  644. package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +0 -2
  645. package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +0 -2
  646. package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +0 -2
  647. package/dist/chunks/cli-1.1.21-qs47skyh.mjs +0 -2
  648. package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +0 -2
  649. package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +0 -2
  650. package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +0 -2
  651. package/dist/chunks/cli-1.1.21-r90yap4s.mjs +0 -4
  652. package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +0 -2
  653. package/dist/chunks/cli-1.1.21-rtcccwys.mjs +0 -2
  654. package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +0 -2
  655. package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +0 -2
  656. package/dist/chunks/cli-1.1.21-s076czd6.mjs +0 -60
  657. package/dist/chunks/cli-1.1.21-sa93ge05.mjs +0 -2
  658. package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +0 -2
  659. package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +0 -2
  660. package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +0 -2
  661. package/dist/chunks/cli-1.1.21-st3azfy2.mjs +0 -2
  662. package/dist/chunks/cli-1.1.21-syphtp6b.mjs +0 -2
  663. package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +0 -2
  664. package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +0 -2
  665. package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +0 -3
  666. package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +0 -12
  667. package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +0 -24
  668. package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +0 -2
  669. package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +0 -2
  670. package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +0 -45
  671. package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +0 -2
  672. package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +0 -2
  673. package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +0 -2
  674. package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +0 -2
  675. package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +0 -2
  676. package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +0 -2
  677. package/dist/chunks/cli-1.1.21-w17d43nx.mjs +0 -2
  678. package/dist/chunks/cli-1.1.21-wermyahx.mjs +0 -2
  679. package/dist/chunks/cli-1.1.21-wq125rgf.mjs +0 -2
  680. package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +0 -2
  681. package/dist/chunks/cli-1.1.21-x34spqyp.mjs +0 -2
  682. package/dist/chunks/cli-1.1.21-x652vc6g.mjs +0 -7
  683. package/dist/chunks/cli-1.1.21-xa36je2k.mjs +0 -2
  684. package/dist/chunks/cli-1.1.21-xc1ka519.mjs +0 -2
  685. package/dist/chunks/cli-1.1.21-xds4bha6.mjs +0 -2
  686. package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +0 -6
  687. package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +0 -2
  688. package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +0 -2
  689. package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +0 -2
  690. package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +0 -2
  691. package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +0 -9
  692. package/dist/chunks/cli-1.1.21-xtysnd33.mjs +0 -2
  693. package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +0 -4
  694. package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +0 -58
  695. package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +0 -2
  696. package/dist/chunks/cli-1.1.21-ym854mnb.mjs +0 -2
  697. package/dist/chunks/cli-1.1.21-ymepfykz.mjs +0 -2
  698. package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +0 -5
  699. package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +0 -2
  700. package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +0 -2
  701. package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +0 -2
  702. package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +0 -2
  703. package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +0 -2
  704. package/dist/chunks/cli-1.1.21-z008y1nv.mjs +0 -2
  705. package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +0 -2
  706. package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +0 -2
  707. package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +0 -42
  708. package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +0 -3
  709. package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +0 -1
  710. package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +0 -1
  711. package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +0 -3
  712. package/dist/chunks/config-1.1.21-6a9bh364.mjs +0 -1
  713. package/dist/chunks/config-1.1.21-mk64wy1s.mjs +0 -1
  714. package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +0 -1
  715. package/dist/chunks/context-1.1.21-0q6bzccr.mjs +0 -1
  716. package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +0 -1
  717. package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +0 -1
  718. package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +0 -1
  719. package/dist/chunks/copy-1.1.21-733m4ede.mjs +0 -9
  720. package/dist/chunks/cost-1.1.21-wygsny1s.mjs +0 -1
  721. package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +0 -1
  722. package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +0 -1
  723. package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +0 -1
  724. package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +0 -1534
  725. package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +0 -1
  726. package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +0 -1
  727. package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +0 -1
  728. package/dist/chunks/diff-1.1.21-eh8phe15.mjs +0 -1
  729. package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +0 -1
  730. package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +0 -1
  731. package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +0 -1
  732. package/dist/chunks/effort-1.1.21-ekeecb10.mjs +0 -13
  733. package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +0 -1
  734. package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +0 -1
  735. package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +0 -1
  736. package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +0 -1
  737. package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +0 -1
  738. package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +0 -1
  739. package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +0 -1
  740. package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +0 -1
  741. package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +0 -1
  742. package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +0 -1
  743. package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +0 -2
  744. package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +0 -1
  745. package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +0 -1
  746. package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +0 -1
  747. package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +0 -14
  748. package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +0 -1
  749. package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +0 -1
  750. package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +0 -1
  751. package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +0 -4
  752. package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +0 -1
  753. package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +0 -2
  754. package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +0 -6
  755. package/dist/chunks/help-1.1.21-c9hbdjta.mjs +0 -1
  756. package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +0 -3
  757. package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +0 -1
  758. package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +0 -79
  759. package/dist/chunks/ide-1.1.21-wywpj723.mjs +0 -3
  760. package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +0 -1
  761. package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +0 -1
  762. package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +0 -1
  763. package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +0 -1
  764. package/dist/chunks/index-1.1.21-57kd6ptp.mjs +0 -1
  765. package/dist/chunks/index-1.1.21-593vrygw.mjs +0 -23
  766. package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +0 -9
  767. package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +0 -1
  768. package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +0 -5
  769. package/dist/chunks/index-1.1.21-adb7btws.mjs +0 -1
  770. package/dist/chunks/index-1.1.21-etcjfd99.mjs +0 -1
  771. package/dist/chunks/index-1.1.21-fy80jkp2.mjs +0 -1
  772. package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +0 -1
  773. package/dist/chunks/index-1.1.21-hytfcvqs.mjs +0 -1
  774. package/dist/chunks/index-1.1.21-m0a3fv04.mjs +0 -30
  775. package/dist/chunks/index-1.1.21-m167t33s.mjs +0 -1
  776. package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +0 -1
  777. package/dist/chunks/index-1.1.21-s1aj62xz.mjs +0 -1
  778. package/dist/chunks/index-1.1.21-srxg6mfj.mjs +0 -1
  779. package/dist/chunks/index-1.1.21-vcbqyp49.mjs +0 -1
  780. package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +0 -2
  781. package/dist/chunks/index-1.1.21-xc8hadvs.mjs +0 -9
  782. package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +0 -1
  783. package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +0 -2
  784. package/dist/chunks/index-1.1.21-zphh9zyt.mjs +0 -1
  785. package/dist/chunks/init-1.1.21-3rsjrj70.mjs +0 -1
  786. package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +0 -1
  787. package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +0 -1
  788. package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +0 -870
  789. package/dist/chunks/install-1.1.21-fvsrnj75.mjs +0 -1
  790. package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +0 -149
  791. package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +0 -1
  792. package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +0 -1
  793. package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +0 -1
  794. package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +0 -2
  795. package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +0 -2
  796. package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +0 -1
  797. package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +0 -1
  798. package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +0 -1
  799. package/dist/chunks/log-1.1.21-xwc604af.mjs +0 -1
  800. package/dist/chunks/main-1.1.21-mpr5depp.mjs +0 -1
  801. package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +0 -1
  802. package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +0 -1
  803. package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +0 -17
  804. package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +0 -4
  805. package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +0 -1
  806. package/dist/chunks/memory-1.1.21-gqa797mn.mjs +0 -72
  807. package/dist/chunks/model-1.1.21-3dg8jye0.mjs +0 -1
  808. package/dist/chunks/model-1.1.21-3x98v8x4.mjs +0 -2
  809. package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +0 -14
  810. package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +0 -1
  811. package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +0 -14
  812. package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +0 -1
  813. package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +0 -1
  814. package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +0 -1
  815. package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +0 -1
  816. package/dist/chunks/passes-1.1.21-g830qx07.mjs +0 -1
  817. package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +0 -3
  818. package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +0 -1
  819. package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +0 -1
  820. package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +0 -1
  821. package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +0 -29
  822. package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +0 -1
  823. package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +0 -9
  824. package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +0 -2
  825. package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +0 -57
  826. package/dist/chunks/process-1.1.21-03zz92gq.mjs +0 -1
  827. package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +0 -1
  828. package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +0 -9
  829. package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +0 -1
  830. package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +0 -1
  831. package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +0 -1
  832. package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +0 -13
  833. package/dist/chunks/provider-1.1.21-xnprbehk.mjs +0 -2
  834. package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +0 -1
  835. package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +0 -6
  836. package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +0 -1
  837. package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +0 -26
  838. package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +0 -1
  839. package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +0 -5
  840. package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +0 -2
  841. package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +0 -1
  842. package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +0 -1
  843. package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +0 -1
  844. package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +0 -1
  845. package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +0 -1
  846. package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +0 -1
  847. package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +0 -2
  848. package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +0 -1
  849. package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +0 -1
  850. package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +0 -10
  851. package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +0 -1
  852. package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +0 -1
  853. package/dist/chunks/session-1.1.21-9gpkxas1.mjs +0 -2
  854. package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +0 -1
  855. package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +0 -1
  856. package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +0 -1
  857. package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +0 -1
  858. package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +0 -12
  859. package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +0 -1
  860. package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +0 -1
  861. package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +0 -1
  862. package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +0 -1
  863. package/dist/chunks/state-1.1.21-006s6xsy.mjs +0 -1
  864. package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +0 -6
  865. package/dist/chunks/status-1.1.21-dkepakb3.mjs +0 -1
  866. package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +0 -1
  867. package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +0 -1
  868. package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +0 -1
  869. package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +0 -1
  870. package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +0 -1
  871. package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +0 -1
  872. package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +0 -1
  873. package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +0 -1
  874. package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +0 -1
  875. package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +0 -1
  876. package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +0 -1
  877. package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +0 -1
  878. package/dist/chunks/tools-1.1.21-zaawccjz.mjs +0 -1
  879. package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +0 -1
  880. package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +0 -69
  881. package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +0 -1
  882. package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +0 -4
  883. package/dist/chunks/update-1.1.21-v9n06gej.mjs +0 -72
  884. package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +0 -1
  885. package/dist/chunks/upload-1.1.21-x63yx03n.mjs +0 -7
  886. package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +0 -14
  887. package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +0 -1
  888. package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +0 -1
  889. package/dist/chunks/util-1.1.21-raqpgawk.mjs +0 -1
  890. package/dist/chunks/utils-1.1.21-ae7844cz.mjs +0 -1
  891. package/dist/chunks/vim-1.1.21-stgjbrez.mjs +0 -1
  892. package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +0 -13
  893. package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +0 -1
  894. package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +0 -132
  895. package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +0 -1
  896. package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +0 -1
  897. package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +0 -1
  898. package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +0 -7
  899. /package/dist/chunks/{cli-1.1.21-ftamxg3e.mjs → cli-1.1.23-4q364wmc.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.21-cx7tkkx6.mjs → cli-1.1.23-7jpcmnjc.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.21-7snn7kbs.mjs → cli-1.1.23-btq83yzw.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.21-rte0df0y.mjs → cli-1.1.23-gm82gspk.mjs} +0 -0
  903. /package/dist/chunks/{cli-1.1.21-7sx1arjq.mjs → cli-1.1.23-qgdfjtj2.mjs} +0 -0
  904. /package/dist/chunks/{cli-1.1.21-srd8n2bc.mjs → cli-1.1.23-vdp0r91n.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{tta as b}from"./cli-1.1.21-13kr6en7.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 Ze,k as _e,q as $e,w as af,g as bf};
@@ -1,2 +0,0 @@
1
- import{K0 as v,L0 as X,M0 as D,r0 as O,s0 as V,t0 as I,v0 as W,w0 as p}from"./cli-1.1.21-s076czd6.mjs";import{d4 as N,f4 as T}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as H}from"./cli-1.1.21-phnkc3q1.mjs";import{Hoa as U,yra as F}from"./cli-1.1.21-hdc9e0dr.mjs";import{pta as A,tta as C}from"./cli-1.1.21-13kr6en7.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 Zh,B as _h};
@@ -1,2 +0,0 @@
1
- import{B8 as T,H8 as f,Q8 as WB,y8 as Z}from"./cli-1.1.21-5bxzgpbd.mjs";import{B_ as O,C_ as BB,Jba as _,Kba as KB,bfa as A,nfa as v,wfa as QB}from"./cli-1.1.21-g6wtm4qg.mjs";import{jja as w,lja as JB}from"./cli-1.1.21-fyryzam5.mjs";import{Nla as F,Vla as e}from"./cli-1.1.21-atvca4b4.mjs";import{Mma as I,Nma as i,Yma as M,Zma as m,gma as S,hma as s,yra as a,zna as R}from"./cli-1.1.21-hdc9e0dr.mjs";import{Xra as q,Yra as t}from"./cli-1.1.21-c27qrh9k.mjs";import{tta as K}from"./cli-1.1.21-13kr6en7.mjs";function u(B,J){return B+b(h()*(J-B+1))}var b,h,D;var G=K(()=>{b=Math.floor,h=Math.random;D=u});function p(B){var J=B.length;return J?B[D(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=p});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function c(B){return B==null?[]:z(B,I(B))}var U;var C=K(()=>{P();i();U=c});function n(B){return Y(U(B))}var k;var E=K(()=>{H();C();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,g.cache.clear?.()}function TB(){W=null,Q=null,g.cache.clear?.(),j.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return j()}var W=null,Q=null,g,j;var ZB=K(()=>{BB();t();a();WB();QB();JB();KB();e();g=q((B)=>{let J=v(),X=A(),$,N,L;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let x=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(x))L=x}}let V=Z(),d=V?.organizationUuid,y=V?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:_(),organizationUuid:d,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:L,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});j=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:w()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
2
- export{kB as WU,r as XU,vB as YU,TB as ZU,j as _U,ZB as $U};
@@ -1,2 +0,0 @@
1
- import{Kp as W,Lp as n,gx as I,hx as P,lx as t}from"./cli-1.1.21-eray52nd.mjs";import{l4 as H,m4 as p}from"./cli-1.1.21-72p8ma2g.mjs";import{q4 as C,s4 as i}from"./cli-1.1.21-adykpnkk.mjs";import{Q8 as l,R7 as v,Z4 as S,d5 as c,q8 as R,w8 as V}from"./cli-1.1.21-5bxzgpbd.mjs";import{Ega as y,Hga as k,Kga as g,Wga as D,_ea as E,bfa as X,cha as m,wea as q,wfa as O,wga as T,xea as u,yga as Y}from"./cli-1.1.21-g6wtm4qg.mjs";import{cja as G,eja as f,fja as $,gja as h}from"./cli-1.1.21-2b91fkp9.mjs";import{Sja as Z,Xja as _,Yja as M}from"./cli-1.1.21-g7ve83cr.mjs";import{ala as x,dla as b}from"./cli-1.1.21-7q6ajew6.mjs";import{Bsa as Q,Tsa as A}from"./cli-1.1.21-cb82p9ss.mjs";import{tta as U}from"./cli-1.1.21-13kr6en7.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
- export{Yj as nc,r as oc};
@@ -1,2 +0,0 @@
1
- import{bi as g,ci as Uf}from"./cli-1.1.21-03kdy8xc.mjs";import{gi as A,ii as Kf}from"./cli-1.1.21-ev8srpeg.mjs";import{Cz as C,Fv as m,Gv as Zf,Gz as T,HS as Ff,Hl as Bf,IT as Hf,Il as Gf,JT as d,Ks as E,Kz as _f,Lm as L,Ls as P,Ms as Xf,Ol as y,Qm as Vf,Sj as W,TC as M,UD as u,WE as c,XD as bf,XE as jf,cT as S,dk as w,ek as zf,fS as l,gD as I,hD as $f,hm as Jf,kF as v,pT as p,rF as Df,tm as N,ut as h,vt as Yf,wT as k,zm as Qf}from"./cli-1.1.21-eray52nd.mjs";import{Wga as R,cha as ff}from"./cli-1.1.21-g6wtm4qg.mjs";import{Zja as O,aka as e}from"./cli-1.1.21-qj7gkh71.mjs";import{Ana as q,Aoa as F,Fna as x,nqa as H,yra as s,zna as U}from"./cli-1.1.21-hdc9e0dr.mjs";import{qta as K,tta as t}from"./cli-1.1.21-13kr6en7.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:c(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
2
- export{lf as $h,xf as ai};
@@ -1,2 +0,0 @@
1
- import{_i as J,aj as K,bj as M}from"./cli-1.1.21-yt2eqsfh.mjs";import{DZ as P,H1 as X}from"./cli-1.1.21-s076czd6.mjs";import{f4 as q}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as N}from"./cli-1.1.21-phnkc3q1.mjs";import{bfa as H,wfa as Z}from"./cli-1.1.21-g6wtm4qg.mjs";import{zha as Y}from"./cli-1.1.21-r90yap4s.mjs";import{aka as V}from"./cli-1.1.21-qj7gkh71.mjs";import{pta as z,tta as Q}from"./cli-1.1.21-13kr6en7.mjs";function B(){let k=J();if(!k||!k.available||k.granted)return!1;return K(k)!==null}function E(){if(!B())return!1;let k=H();if(k.hasVisitedExtraUsage)return!1;if((k.overageCreditUpsellSeenCount??0)>=A)return!1;return!0}var R,y,A=3;var D=Q(()=>{X();V();M();Z();Y();q();R=z(P(),1),y=z(N(),1)});
2
- export{E as _g,D as $g};
@@ -1,2 +0,0 @@
1
- import{Ac as U,Bc as $,wc as O,xc as Q}from"./cli-1.1.21-vhz2g6dh.mjs";import{BG as N,DG as _}from"./cli-1.1.21-eray52nd.mjs";import{H1 as Z,a1 as G,c1 as z}from"./cli-1.1.21-s076czd6.mjs";import{d4 as q,e4 as F,f4 as K}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as Y}from"./cli-1.1.21-phnkc3q1.mjs";import{pta as W,tta as X}from"./cli-1.1.21-13kr6en7.mjs";function R({enabled:J,onDismiss:H}){let[w,A]=V.useState(()=>J?{kind:"prompt"}:{kind:"hidden"});if(!J||w.kind==="hidden")return null;if(w.kind==="running")return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),q(z,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(w.kind==="success"||w.kind==="error"){let I=w.kind==="success"?"success":"warning",E=w.kind==="success"?"Migration complete":"Migration finished with warnings";return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:I,bold:!0,children:E}),q(z,{children:Q(w.report)})]})}return F(G,{flexDirection:"column",marginBottom:1,children:[q(z,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),q(z,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),q(N,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(I)=>{if(I==="skip"){U(),A({kind:"hidden"}),H?.("skipped");return}A({kind:"running"}),(async()=>{let E=await O();A({kind:E.errors.length===0?"success":"error",report:E}),H?.("migrated")})()},onCancel:()=>{A({kind:"hidden"}),H?.("skipped")},visibleOptionCount:2})]})}var V;var f=X(()=>{Z();$();_();K();V=W(Y(),1)});
2
- export{R as uc,f as vc};
@@ -1,2 +0,0 @@
1
- import{Wga as B,bfa as A,cha as N,wfa as L}from"./cli-1.1.21-g6wtm4qg.mjs";import{ala as z,dla as K}from"./cli-1.1.21-7q6ajew6.mjs";import{sta as I,tta as J}from"./cli-1.1.21-13kr6en7.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
2
- export{P as kV,Q as lV,R as mV,H as nV,U as oV,V as pV,W as qV};
@@ -1,3 +0,0 @@
1
- import{$0 as s,DZ as t,H1 as o,MZ as p,_0 as j,a1 as F,c1 as V}from"./cli-1.1.21-s076czd6.mjs";import{d4 as w,e4 as g,f4 as y}from"./cli-1.1.21-7bq44n89.mjs";import{D_ as _,E_ as n,x_ as $,y_ as a}from"./cli-1.1.21-g6wtm4qg.mjs";import{pta as i,tta as v}from"./cli-1.1.21-13kr6en7.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
- `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
- export{Hq as ig,Mq as jg};
@@ -1,12 +0,0 @@
1
- import{m9 as D}from"./cli-1.1.21-8db7fdfr.mjs";import{Oka as L,Ska as JG,ala as W,dla as a}from"./cli-1.1.21-7q6ajew6.mjs";import{Mla as c,Nla as jG,Vla as GG}from"./cli-1.1.21-atvca4b4.mjs";import{Xra as q,Yra as g}from"./cli-1.1.21-c27qrh9k.mjs";import{Bsa as H,Tsa as RG}from"./cli-1.1.21-cb82p9ss.mjs";import{_sa as XG}from"./cli-1.1.21-ekphtr04.mjs";import{pta as WG,tta as j,uta as e}from"./cli-1.1.21-13kr6en7.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.21-s1aj62xz.mjs"),import("./index-1.1.21-5fmfkm8y.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 R8,i as S8,N as T8,gG as U8,aG as V8,iG as W8,KG as X8,MJ as Y8,HJ as Z8,OG as _8,E as $8,y as a9,_J as b9,jJ as c9,qJ as d9,UJ as e9,NJ as f9,TJ as g9,FJ as h9,PG as i9};
@@ -1,24 +0,0 @@
1
- import{Kg as _Q,Mg as iQ}from"./cli-1.1.21-kc7af745.mjs";import{Di as WQ,Ei as zX}from"./cli-1.1.21-badssmqg.mjs";import{Np as ZQ,Op as uQ,Vs as CQ,XJ as JJ,YJ as mJ,dK as GQ,dt as qX,eK as KQ,fK as VQ,gK as OQ,iK as NQ,lK as IJ,mK as nJ,nK as rJ,oK as gQ,rG as SJ,sG as YQ}from"./cli-1.1.21-eray52nd.mjs";import{BY as BQ,DY as ZX,GY as FQ,HY as $X,NY as zJ,OY as iJ,nY as bJ,oY as aJ}from"./cli-1.1.21-wermyahx.mjs";import{H1 as WJ,MZ as BJ,X0 as FJ,Y0 as CJ,Z0 as oJ,a1 as N,c1 as M,m1 as t,tZ as LJ,uZ as lJ,w1 as e}from"./cli-1.1.21-s076czd6.mjs";import{d4 as q,e4 as _,f4 as s}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as AJ}from"./cli-1.1.21-phnkc3q1.mjs";import{k9 as i,l9 as dJ}from"./cli-1.1.21-xg5fsk6h.mjs";import{Wga as x,cha as DJ}from"./cli-1.1.21-g6wtm4qg.mjs";import{hha as f,iha as pJ,kha as n,oha as uJ,tha as vJ,zha as kQ}from"./cli-1.1.21-r90yap4s.mjs";import{jja as UQ,lja as aQ}from"./cli-1.1.21-fyryzam5.mjs";import{pta as OJ,tta as qJ,uta as oQ}from"./cli-1.1.21-13kr6en7.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let A of HJ(H.agents))if(K+=1,!A.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((A)=>!A.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",A=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return A+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),A=eJ(J),W=Math.min(U,Math.max(0,A.length-1)),X=A[W],{done:I,total:w}=tJ(J),[S]=BJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=A.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[A,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...A.filter(($)=>$.runId!==J.runId)]:A).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((B)=>Math.max(0,B-1));else if(Y.downArrow)O(),S((B)=>Math.min(Math.max(0,P-1),B+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(AJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),A=J.instructions.trim();return`---
2
- ${H}
3
- ---
4
- ${A?`${A}
5
- `:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((A,W)=>({...A,name:W===U?K:A.name,handbackTo:A.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[A]=BJ(),W=FJ(A),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.21-0c6btjcc.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),B=C-1,u=X&&B>=0?X.steps[B]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
6
- `:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,B).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,B,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&B>=0)P((G)=>({...G,steps:qQ(G.steps,B,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,B,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,B,P]),jQ=E.useCallback(()=>{if(B<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==B)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,B,P]),gJ=E.useCallback((Q)=>{if(!X||B<0)return;let Z=B+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(B,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,B,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
7
- `):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(AJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,A]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{A(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((B)=>Math.max(0,B-1));else if(P.downArrow)w((B)=>Math.min(H.length-1,B+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let B=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,B?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
8
- name: ${J}
9
- description: What this workflow does
10
- steps:
11
- - name: explore
12
- agents: [explorer]
13
- - name: synthesize
14
- agents: [synthesizer]
15
- handbackTo: [explore]
16
- - name: done
17
- ---
18
- Describe the goal and any house rules for this workflow.
19
- `;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(AJ(),1)});function AQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return BQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[A,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
20
- <status>${c.status}</status>
21
- <summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
22
- <result>${$}</result>
23
- </task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:A==="running",inverse:A==="running",children:[" ","Running"," "]}),_(M,{bold:A==="library",inverse:A==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(A==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(AQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(AQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(AJ(),1)});
24
- export{NZ as Xb,YX as Yb};
@@ -1,2 +0,0 @@
1
- import{O_ as z,Q_ as H,Wga as C,cha as J}from"./cli-1.1.21-g6wtm4qg.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
2
- export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
@@ -1,2 +0,0 @@
1
- import{UV as f,VV as h,jW as u}from"./cli-1.1.21-yx5x54tp.mjs";import{aY as C,mY as d}from"./cli-1.1.21-e8cbfmn6.mjs";import{B4 as w,D4 as F}from"./cli-1.1.21-kf8s641e.mjs";import{Z4 as O,d5 as i}from"./cli-1.1.21-5bxzgpbd.mjs";import{U8 as x,X8 as v,c9 as M,d9 as A,i9 as I}from"./cli-1.1.21-tjgcqqx5.mjs";import{Wga as K,cha as j}from"./cli-1.1.21-g6wtm4qg.mjs";import{Xja as R,Yja as _}from"./cli-1.1.21-g7ve83cr.mjs";import{Fka as X,Gka as P,Kka as T,ala as J,dla as W}from"./cli-1.1.21-7q6ajew6.mjs";import{Ala as y,Hla as p}from"./cli-1.1.21-xx8dx3jd.mjs";import{uta as q}from"./cli-1.1.21-13kr6en7.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.21-zbvep84d.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
2
- export{N as Ka,$z as La,Xz as Ma,xz as Na,Uz as Oa};
@@ -1,45 +0,0 @@
1
- import{Fe as BY,Ge as Bz}from"./cli-1.1.21-0n54q1mb.mjs";import{Pg as qY,Qg as qz}from"./cli-1.1.21-z008y1nv.mjs";import{th as $Y,uh as yz,vh as cY,wh as mz}from"./cli-1.1.21-8f3dmt8c.mjs";import{As as Zz,BG as B0,Bs as KK,CG as MY,Iu as eY,JT as V0,Ju as JK,KP as iY,MK as GY,NP as XJ,OP as GZ,PP as X0,RK as Gz,aQ as rY,bQ as Lz,co as UJ,do as UY,eo as jJ,fo as XY,gT as nY,go as NJ,ho as VY,oI as hY,pI as Tz,rG as uY,rP as gY,sG as wz}from"./cli-1.1.21-eray52nd.mjs";import{BY as $J,DY as KY,GY as SY,HY as Az,NY as pY,OY as Fz,nY as _Y,oY as jz}from"./cli-1.1.21-wermyahx.mjs";import{DZ as f0,G0 as bY,H1 as U0,MZ as LY,TZ as IY,UZ as Rz,X0 as fY,Z0 as Ez,a1 as b,c1 as N,w1 as xY}from"./cli-1.1.21-s076czd6.mjs";import{d4 as U,e4 as m,f4 as bJ}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as b0}from"./cli-1.1.21-phnkc3q1.mjs";import{D6 as tY,f7 as ez}from"./cli-1.1.21-5bxzgpbd.mjs";import{k9 as $0,l9 as Cz}from"./cli-1.1.21-xg5fsk6h.mjs";import{M$ as Mz,Tga as fJ,Wga as l0,cha as mY,raa as r0,taa as tz,u$ as yY}from"./cli-1.1.21-g6wtm4qg.mjs";import{hha as S0,iha as Hz,kha as G0,vha as zY,wha as c0,zha as I0}from"./cli-1.1.21-r90yap4s.mjs";import{Zja as $,aka as Nz}from"./cli-1.1.21-qj7gkh71.mjs";import{Gka as oY,Kka as sz,ala as CJ,dla as oz}from"./cli-1.1.21-7q6ajew6.mjs";import{Fna as H0,yra as TY,zna as wY}from"./cli-1.1.21-hdc9e0dr.mjs";import{pta as UZ,tta as XZ}from"./cli-1.1.21-13kr6en7.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let AJ;if(J[30]!==l||J[31]!==M)AJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=AJ;else AJ=J[32];return AJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,AJ=vz,c=Wz,BJ=C??AJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var jY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function dY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${dY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=lY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=iY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,AJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("",{enabled:!1})},OZ=()=>{h("list"),$("",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:j,setQuery:dJ,cursorOffset:P0}=cY(DZ),yJ=R.default.useDeferredValue(j),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>AJ(Y)),rY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!j){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==j){let z=j.toLowerCase();Y=EZ.filter((q)=>{let A=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return A.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=j,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,jZ,AZ;if(J[42]!==YJ||J[43]!==yJ)jZ=()=>{},AZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=jZ,J[45]=AZ;else jZ=J[44],AZ=J[45];R.default.useEffect(jZ,AZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let A of mJ.results)if(A.searchableText){let x=Sz(A.searchableText,YJ,_z);if(x)pJ.set(A.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let A;if(J[60]!==z)A=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=A;else A=J[61];let x=mJ.results.map(pz).filter(A);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[A,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${A}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
2
- ${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${A}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
3
- ${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${A}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
4
- ${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,A)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=dY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
5
- ${K0}`:LJ+EJ,dimDescription:!0,value:A.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let A=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return A?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==j)fZ=async()=>{j.trim();return},J[94]=K,J[95]=O,J[96]=j,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==j)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==j||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=j,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==j)_Z=[j,V],J[102]=V,J[103]=j,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let j0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let A0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==j||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)j.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,A=Y.toLowerCase();if(A==="a"&&z.ctrl&&W)W(),$("",{enabled:!C});else if(A==="b"&&z.ctrl){let x=!c;BJ(x),$("",{enabled:x})}else if(A==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("",{enabled:x})}else if(A==="/"&&q)h("search"),$("",{enabled:!0});else if(A==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("",{});else if(A==="v"&&z.ctrl&&I)k(I),h("preview"),$("",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=j,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==j||J[179]!==m0)sJ=U($Y,{query:j,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=j,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(hY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==j)YZ=Boolean(j.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=j,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==j0||J[211]!==R0||J[212]!==A0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:A0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let A=new Set(q);return A.delete(z),A})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:j0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=j0,J[211]=R0,J[212]=A0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){if(!Z)return;let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(gY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,AY),...Z.messages.slice(-AY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var lY,R,Iz=2,bz=4,fz=2000,AY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();Az();mz();jz();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();Tz();CY();wz();jY();bJ();lY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
6
- ${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
7
- `)}
8
-
9
- Search query: "${Z}"
10
-
11
- Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
12
-
13
- You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
14
-
15
- Each session may include:
16
- - Title (display name or custom title)
17
- - Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
18
- - Branch (git branch name, shown as [branch: name])
19
- - Summary (AI-generated summary)
20
- - First message (beginning of the conversation)
21
- - Transcript (excerpt of conversation content)
22
-
23
- IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
24
-
25
- For each session, consider (in order of priority):
26
- 1. Exact tag matches (highest priority - user explicitly categorized this session)
27
- 2. Partial tag matches or tag-related terms
28
- 3. Title matches (custom titles or first message content)
29
- 4. Branch name matches
30
- 5. Summary and transcript content matches
31
- 6. Semantic similarity and related concepts
32
-
33
- CRITICAL: Be VERY inclusive in your matching. Include sessions that:
34
- - Contain the query term anywhere in any field
35
- - Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
36
- - Discuss topics that could be related to the query
37
- - Have transcripts that mention the concept even in passing
38
-
39
- When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
40
-
41
- Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
42
-
43
- Respond with ONLY the JSON object, no markdown formatting:
44
- {"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
45
- export{YU as pe,az as qe,QU as re,zK as se,WU as te,UK as ue};
@@ -1,2 +0,0 @@
1
- import{Afa as v,Bfa as P,Ifa as k,Ufa as f,_ea as M,bfa as L,vfa as G,wfa as h}from"./cli-1.1.21-g6wtm4qg.mjs";import{Pja as E,Yja as x}from"./cli-1.1.21-g7ve83cr.mjs";import{Kla as T,Vla as u}from"./cli-1.1.21-atvca4b4.mjs";import{tta as C}from"./cli-1.1.21-13kr6en7.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};
@@ -1,2 +0,0 @@
1
- import{bd as Q,cd as Y}from"./cli-1.1.21-vyzdf2h8.mjs";import{Cl as H,Dl as B,Hl as U,Il as V,Rp as J,Sp as W,pN as K,xN as X}from"./cli-1.1.21-eray52nd.mjs";import{qta as q,tta as v}from"./cli-1.1.21-13kr6en7.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
2
- export{P as Zc,C as _c,A as $c,D as ad};
@@ -1,2 +0,0 @@
1
- import{ZM as L,hN as h,qN as y,rN as S,xN as w}from"./cli-1.1.21-eray52nd.mjs";import{DZ as l,H1 as B,a1 as U,c1 as D,g1 as v}from"./cli-1.1.21-s076czd6.mjs";import{d4 as G,e4 as H,f4 as W}from"./cli-1.1.21-7bq44n89.mjs";import{pta as C,tta as M}from"./cli-1.1.21-13kr6en7.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{h();w();B();W();u=C(l(),1)});
2
- export{x as Fg,p as Gg};
@@ -1,2 +0,0 @@
1
- import{DZ as f}from"./cli-1.1.21-s076czd6.mjs";import{d4 as n,f4 as i}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as M}from"./cli-1.1.21-phnkc3q1.mjs";import{pta as o}from"./cli-1.1.21-13kr6en7.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
2
- export{a as mb,l as nb};
@@ -1,2 +0,0 @@
1
- import{$x as C,cy as X}from"./cli-1.1.21-eray52nd.mjs";import{g4 as W}from"./cli-1.1.21-phnkc3q1.mjs";import{N6 as I,_6 as J,f7 as V}from"./cli-1.1.21-5bxzgpbd.mjs";import{Tha as H,mia as T}from"./cli-1.1.21-4ka4k9j1.mjs";import{pta as P,tta as Q}from"./cli-1.1.21-13kr6en7.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as dd,Y as ed};
@@ -1,2 +0,0 @@
1
- import{DN as Q,EN as $}from"./cli-1.1.21-eray52nd.mjs";import{gma as V,hma as P,ina as W,jna as E}from"./cli-1.1.21-hdc9e0dr.mjs";import{tta as L}from"./cli-1.1.21-13kr6en7.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
2
- export{v as bd,C as cd};
@@ -1,2 +0,0 @@
1
- import{tta as r}from"./cli-1.1.21-13kr6en7.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},n;var p=r(()=>{i=Object.getOwnPropertyNames,n=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.35.0",description:"JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.30.1","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk","web-search","literature-search","research","scientific-papers","academic-search","biomedical","life-sciences","pubmed","biorxiv","medrxiv","arxiv","preprints","citations","bioinformatics"],engines:{node:">=22.0.0"}}}})});
2
- export{n as wi,p as xi};
@@ -1,2 +0,0 @@
1
- import{DZ as u,H1 as a,P0 as QQ,Q0 as uQ,a1 as k,c1 as y,i1 as MQ,r1 as _Q,s1 as aQ,w1 as d}from"./cli-1.1.21-s076czd6.mjs";import{d4 as K,e4 as l,f4 as m}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as v}from"./cli-1.1.21-phnkc3q1.mjs";import{D4 as YV,w4 as n,y4 as t}from"./cli-1.1.21-kf8s641e.mjs";import{B8 as pQ,Q8 as XV,v8 as $Q,y8 as P}from"./cli-1.1.21-5bxzgpbd.mjs";import{Wga as CQ,_ea as fQ,bfa as x,cha as VV,wea as mQ,wfa as QV,xea as eQ}from"./cli-1.1.21-g6wtm4qg.mjs";import{hha as IQ,iha as sQ}from"./cli-1.1.21-r90yap4s.mjs";import{Xja as r,Yja as nQ}from"./cli-1.1.21-g7ve83cr.mjs";import{ala as E,dla as iQ}from"./cli-1.1.21-7q6ajew6.mjs";import{Bsa as i,Tsa as tQ}from"./cli-1.1.21-cb82p9ss.mjs";import{pta as T,tta as F}from"./cli-1.1.21-13kr6en7.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
2
- export{XQ as nY,YQ as oY,JQ as pY,hQ as qY,c as rY,NV as sY,LQ as tY,qQ as uY,zQ as vY,NQ as wY,TV as xY,h as yY,KV as zY,UQ as AY,RV as BY,OQ as CY,wQ as DY,o as EY,WQ as FY,$V as GY,oQ as HY,s as IY,SQ as JY,bV as KY,xV as LY,AQ as MY,DQ as NY,EQ as OY,oV as PY,rQ as QY,ZX as RY,GX as SY,JX as TY,LX as UY,qX as VY,JV as WY,HX as XY,LV as YY};
@@ -1,2 +0,0 @@
1
- import{Jh as e,Mh as fq}from"./cli-1.1.21-admbc6bh.mjs";import{Nh as t,Ph as Hq}from"./cli-1.1.21-cgspbjjg.mjs";import{BG as n,CG as Mq,QO as o,RO as s,SO as Oq,co as S,do as Nq,eo as g,fo as Vq,go as $,ho as Wq,ko as i,lo as Yq,rG as r,sG as kq}from"./cli-1.1.21-eray52nd.mjs";import{BY as u,DY as Zq}from"./cli-1.1.21-wermyahx.mjs";import{DZ as Qq,H1 as Xq,a1 as M,c1 as F,u1 as c,v1 as Uq}from"./cli-1.1.21-s076czd6.mjs";import{d4 as L,e4 as R,f4 as l}from"./cli-1.1.21-7bq44n89.mjs";import{g4 as Lq}from"./cli-1.1.21-phnkc3q1.mjs";import{x_ as a,y_ as Jq}from"./cli-1.1.21-g6wtm4qg.mjs";import{pta as d,tta as Gq}from"./cli-1.1.21-13kr6en7.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claudin will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=_;else _=q[6];let zq=_,m;if(q[7]!==X||q[8]!==N)m=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let K=m,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=d(Qq(),1),H=d(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
2
- export{lq as Hh,Fq as Ih};
@@ -1,2 +0,0 @@
1
- import{tta as g}from"./cli-1.1.21-13kr6en7.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
- export{Bq as kW,d as lW,$J as mW,DJ as nW,GJ as oW};
@@ -1,2 +0,0 @@
1
- import{oU as m,pU as b,qU as H,sU as N,tU as K}from"./cli-1.1.21-qgc6dd5n.mjs";import{R8 as x,S8 as M,V8 as D,X8 as R,f9 as L,h9 as O,i9 as _}from"./cli-1.1.21-tjgcqqx5.mjs";import{Uda as X,Zda as Y,bfa as Z,iba as j,kba as P,kea as A,wfa as G}from"./cli-1.1.21-g6wtm4qg.mjs";import{Nla as $,Vla as I}from"./cli-1.1.21-atvca4b4.mjs";import{tta as F}from"./cli-1.1.21-13kr6en7.mjs";function V(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:C,...U}=q;return U}function k(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!H(B))z[B]=Q;return z}function p(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return p(k(V(q)))}function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!j(z))continue;Object.assign(process.env,J(X(z)?.env))}m(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(N.has(z.toUpperCase()))process.env[z]=B}function a(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),x(),D(),O(),L()}var W,h;var T=F(()=>{b();M();G();I();K();R();_();P();A();h=["userSettings","flagSettings","policySettings"]});
2
- export{S as Gc,a as Hc,T as Ic};