@claudiolabs/claudin 1.1.11 → 1.1.13

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 (927) hide show
  1. package/README.md +3 -24
  2. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
  3. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
  31. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
  32. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
  33. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
  36. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
  37. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
  41. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
  47. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
  51. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
  54. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
  56. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
  57. package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
  58. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
  59. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
  60. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
  61. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
  62. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
  64. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
  65. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
  66. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
  67. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
  68. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
  69. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
  70. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
  71. package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
  72. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
  73. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
  74. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
  75. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
  76. package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
  77. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
  78. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
  79. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
  80. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
  81. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
  82. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
  83. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
  84. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
  85. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
  86. package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
  87. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
  88. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
  89. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
  90. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
  91. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
  92. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
  93. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
  94. package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
  95. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
  96. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
  97. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
  98. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
  99. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
  100. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
  101. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
  102. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
  103. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
  104. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
  105. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
  106. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
  107. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
  108. package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
  109. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
  110. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
  111. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
  112. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
  113. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
  114. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
  115. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
  116. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
  117. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
  118. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
  119. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
  120. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
  121. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
  122. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
  123. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
  124. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
  125. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
  126. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
  127. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
  128. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
  129. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
  130. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
  131. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
  132. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
  133. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
  134. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
  135. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
  136. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
  137. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
  138. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
  139. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
  140. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
  141. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
  142. package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
  143. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
  144. package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
  145. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
  146. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
  147. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
  148. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
  149. package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
  150. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
  151. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
  152. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
  153. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
  154. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
  155. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
  156. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
  157. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
  158. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
  159. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
  160. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
  161. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
  162. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
  163. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
  164. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
  165. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
  166. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
  168. package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
  169. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
  170. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
  171. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
  172. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
  173. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
  174. package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
  175. package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
  176. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
  177. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
  178. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
  179. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
  180. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
  181. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
  182. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
  183. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
  184. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
  185. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
  186. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
  187. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
  189. package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
  190. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
  191. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
  192. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
  193. package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
  194. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
  195. package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
  196. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
  197. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
  198. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
  199. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
  200. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
  201. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
  202. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
  203. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
  204. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
  205. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
  206. package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
  207. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
  208. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
  209. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
  210. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
  211. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
  212. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
  213. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
  214. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
  215. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
  216. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
  217. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
  218. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
  219. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
  220. package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
  221. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
  222. package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
  223. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
  224. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
  225. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
  226. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
  227. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
  228. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
  229. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
  230. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
  231. package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
  232. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
  233. package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
  234. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
  235. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
  236. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
  237. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
  238. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
  239. package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
  240. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
  241. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
  242. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
  243. package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
  244. package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
  245. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
  246. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
  247. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
  248. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
  249. package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
  250. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
  251. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
  252. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
  253. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
  254. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
  255. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
  256. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
  257. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
  258. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
  259. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
  260. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
  261. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
  262. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
  263. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
  264. package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
  265. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
  266. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
  267. package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
  268. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
  269. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
  270. package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
  271. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
  272. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
  273. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
  274. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
  275. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
  276. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
  277. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
  278. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
  279. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
  280. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
  281. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
  282. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
  283. package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
  284. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
  285. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
  286. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
  287. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
  288. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
  289. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
  290. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
  291. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
  292. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
  293. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
  294. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
  295. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
  296. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
  297. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
  298. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
  299. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
  300. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
  301. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
  302. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
  303. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
  304. package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
  305. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
  306. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
  307. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
  308. package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
  309. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
  310. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
  311. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
  312. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
  313. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
  314. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
  315. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
  316. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
  317. package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
  318. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
  319. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
  320. package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
  321. package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
  322. package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
  323. package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
  324. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
  325. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
  326. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
  327. package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
  328. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
  329. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
  330. package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
  331. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
  332. package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
  333. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
  334. package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
  335. package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
  336. package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
  337. package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
  338. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
  339. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
  340. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
  341. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
  342. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
  343. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
  344. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
  345. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
  346. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
  347. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
  348. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
  349. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
  350. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
  351. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
  352. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
  353. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
  354. package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
  355. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
  356. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
  357. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
  358. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
  359. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
  360. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
  361. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
  362. package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
  363. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
  364. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
  365. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
  366. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
  367. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
  368. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
  369. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
  370. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
  371. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
  372. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
  373. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
  374. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
  375. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
  376. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
  377. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
  378. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
  379. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
  380. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
  381. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
  382. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
  383. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
  384. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
  385. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
  386. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
  387. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
  388. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
  389. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
  390. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
  391. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
  392. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
  393. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
  394. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
  395. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
  396. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
  397. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
  398. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
  399. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
  400. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
  401. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
  402. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
  403. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
  404. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
  405. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
  406. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
  407. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
  408. package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
  409. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
  410. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
  411. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
  412. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
  413. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
  414. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
  415. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
  416. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
  417. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
  418. package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
  419. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
  420. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
  421. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
  422. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
  423. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
  424. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
  425. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
  426. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
  427. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
  428. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
  429. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
  430. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
  431. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
  432. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
  433. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
  434. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
  435. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
  436. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
  437. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
  438. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
  439. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
  440. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
  441. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
  442. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
  443. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
  444. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
  445. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
  446. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
  447. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
  448. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
  449. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
  450. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
  451. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
  452. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
  453. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
  454. package/dist/cli.mjs +2 -2
  455. package/dist/help-agents.txt +1 -1
  456. package/dist/help-auth.txt +1 -1
  457. package/dist/help-auto-mode.txt +1 -1
  458. package/dist/help-doctor.txt +1 -1
  459. package/dist/help-install.txt +1 -1
  460. package/dist/help-mcp.txt +1 -1
  461. package/dist/help-plugin.txt +1 -1
  462. package/dist/help-plugins.txt +1 -1
  463. package/dist/help-setup-token.txt +1 -1
  464. package/dist/help-update.txt +1 -1
  465. package/dist/help-upgrade.txt +1 -1
  466. package/dist/help-workflow.txt +1 -1
  467. package/dist/help.txt +3 -4
  468. package/install.cjs +2 -2
  469. package/package.json +9 -9
  470. package/dist/chunks/AgentTool-1.1.11-k2q6nh9x.mjs +0 -1
  471. package/dist/chunks/App-1.1.11-krv6wwgp.mjs +0 -1
  472. package/dist/chunks/ApproveApiKey-1.1.11-9s811hbz.mjs +0 -1
  473. package/dist/chunks/AssistantSessionChooser-1.1.11-basm4sc7.mjs +0 -1
  474. package/dist/chunks/AutoModeOptInDialog-1.1.11-aejfbb8x.mjs +0 -1
  475. package/dist/chunks/BypassPermissionsModeDialog-1.1.11-3wxr3fz9.mjs +0 -1
  476. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.11-b4v59b23.mjs +0 -1
  477. package/dist/chunks/ConsoleOAuthFlow-1.1.11-e3abm4me.mjs +0 -1
  478. package/dist/chunks/DiffDialog-1.1.11-aswpafrn.mjs +0 -6
  479. package/dist/chunks/Doctor-1.1.11-jfetmc28.mjs +0 -1
  480. package/dist/chunks/ExplorerDialog-1.1.11-sn8jmt3x.mjs +0 -6
  481. package/dist/chunks/Grove-1.1.11-f2zsmd4t.mjs +0 -1
  482. package/dist/chunks/ITermBackend-1.1.11-7ga25209.mjs +0 -1
  483. package/dist/chunks/InvalidConfigDialog-1.1.11-vcp6js2b.mjs +0 -1
  484. package/dist/chunks/InvalidSettingsDialog-1.1.11-qqr3ve61.mjs +0 -1
  485. package/dist/chunks/MigrationDialog-1.1.11-z6eadsg8.mjs +0 -1
  486. package/dist/chunks/Onboarding-1.1.11-16z484ph.mjs +0 -1
  487. package/dist/chunks/ProviderManager-1.1.11-tv77qzrq.mjs +0 -1
  488. package/dist/chunks/REPL-1.1.11-eft2tx7z.mjs +0 -1
  489. package/dist/chunks/ResumeConversation-1.1.11-hc55dc65.mjs +0 -1
  490. package/dist/chunks/SnapshotUpdateDialog-1.1.11-j4b72t5c.mjs +0 -1
  491. package/dist/chunks/TeleportProgress-1.1.11-d2ata0wm.mjs +0 -1
  492. package/dist/chunks/TeleportRepoMismatchDialog-1.1.11-3gr88x6n.mjs +0 -1
  493. package/dist/chunks/TeleportResumeWrapper-1.1.11-xf144qy6.mjs +0 -1
  494. package/dist/chunks/TmuxBackend-1.1.11-76y2a4zz.mjs +0 -9
  495. package/dist/chunks/ToolSearchTool-1.1.11-sxwd1d13.mjs +0 -1
  496. package/dist/chunks/TrustDialog-1.1.11-pbh6yxxm.mjs +0 -1
  497. package/dist/chunks/activeProvider-1.1.11-saggs5cv.mjs +0 -1
  498. package/dist/chunks/add-dir-1.1.11-4tgfptar.mjs +0 -1
  499. package/dist/chunks/agentTypes-1.1.11-af225gtm.mjs +0 -1
  500. package/dist/chunks/agents-1.1.11-0wy5khvz.mjs +0 -3
  501. package/dist/chunks/agents-1.1.11-40dk22tt.mjs +0 -110
  502. package/dist/chunks/api-1.1.11-pxj1yw19.mjs +0 -1
  503. package/dist/chunks/asciicast-1.1.11-wmt09xhy.mjs +0 -1
  504. package/dist/chunks/assistant-1.1.11-tqk05t61.mjs +0 -1
  505. package/dist/chunks/auth-1.1.11-nvrxv4q4.mjs +0 -1
  506. package/dist/chunks/auth-1.1.11-pbwjnx30.mjs +0 -1
  507. package/dist/chunks/autoMode-1.1.11-22v33wd4.mjs +0 -48
  508. package/dist/chunks/autoUpdater-1.1.11-pqjz5g38.mjs +0 -1
  509. package/dist/chunks/backgroundHousekeeping-1.1.11-9xjtajrq.mjs +0 -1
  510. package/dist/chunks/branch-1.1.11-76tya9ft.mjs +0 -4
  511. package/dist/chunks/bridge-1.1.11-1m3v2n3k.mjs +0 -2
  512. package/dist/chunks/bridgeConfig-1.1.11-fp43q2e3.mjs +0 -1
  513. package/dist/chunks/bridgeEnabled-1.1.11-tqm667fa.mjs +0 -1
  514. package/dist/chunks/bridgeMain-1.1.11-hg46g911.mjs +0 -88
  515. package/dist/chunks/bridgePointer-1.1.11-1yn4135t.mjs +0 -1
  516. package/dist/chunks/btw-1.1.11-1m97zkn4.mjs +0 -1
  517. package/dist/chunks/buddy-1.1.11-ymv78npp.mjs +0 -3
  518. package/dist/chunks/cache-probe-1.1.11-zyrqae8j.mjs +0 -21
  519. package/dist/chunks/cacheStats-1.1.11-xq2pyhs3.mjs +0 -4
  520. package/dist/chunks/caches-1.1.11-rx01cbpj.mjs +0 -1
  521. package/dist/chunks/claudeDesktop-1.1.11-hcxt0dw3.mjs +0 -1
  522. package/dist/chunks/claudemd-1.1.11-8xr3pty5.mjs +0 -1
  523. package/dist/chunks/clear-1.1.11-bj5qfbw4.mjs +0 -1
  524. package/dist/chunks/clearTerminal-1.1.11-5ttzjadf.mjs +0 -1
  525. package/dist/chunks/cli-1.1.11-00rqxf9s.mjs +0 -2
  526. package/dist/chunks/cli-1.1.11-0djzxjkz.mjs +0 -2
  527. package/dist/chunks/cli-1.1.11-0e0p0ywy.mjs +0 -2
  528. package/dist/chunks/cli-1.1.11-0mhwtkaa.mjs +0 -3
  529. package/dist/chunks/cli-1.1.11-0vywa3gz.mjs +0 -3
  530. package/dist/chunks/cli-1.1.11-0x3jb16g.mjs +0 -2
  531. package/dist/chunks/cli-1.1.11-0zmfx6fs.mjs +0 -2
  532. package/dist/chunks/cli-1.1.11-1425gpc8.mjs +0 -2
  533. package/dist/chunks/cli-1.1.11-1515mm11.mjs +0 -21
  534. package/dist/chunks/cli-1.1.11-178h39tz.mjs +0 -24
  535. package/dist/chunks/cli-1.1.11-17j0yz1c.mjs +0 -2
  536. package/dist/chunks/cli-1.1.11-1fkcr5gp.mjs +0 -2
  537. package/dist/chunks/cli-1.1.11-1he1em03.mjs +0 -2
  538. package/dist/chunks/cli-1.1.11-1jp85542.mjs +0 -6
  539. package/dist/chunks/cli-1.1.11-23hz9e80.mjs +0 -59
  540. package/dist/chunks/cli-1.1.11-2480c28s.mjs +0 -42
  541. package/dist/chunks/cli-1.1.11-2m78tg8p.mjs +0 -2
  542. package/dist/chunks/cli-1.1.11-333vj9h0.mjs +0 -6
  543. package/dist/chunks/cli-1.1.11-3gv2s1c0.mjs +0 -3
  544. package/dist/chunks/cli-1.1.11-3jw12y1k.mjs +0 -6
  545. package/dist/chunks/cli-1.1.11-3n6xajnz.mjs +0 -2
  546. package/dist/chunks/cli-1.1.11-3p62a4zk.mjs +0 -2
  547. package/dist/chunks/cli-1.1.11-3p6nmjzx.mjs +0 -4
  548. package/dist/chunks/cli-1.1.11-3re050dw.mjs +0 -2
  549. package/dist/chunks/cli-1.1.11-3y3ak28a.mjs +0 -2
  550. package/dist/chunks/cli-1.1.11-47crfax7.mjs +0 -2
  551. package/dist/chunks/cli-1.1.11-4a192z90.mjs +0 -2
  552. package/dist/chunks/cli-1.1.11-4a4wbqs3.mjs +0 -2
  553. package/dist/chunks/cli-1.1.11-4h9jnkae.mjs +0 -2
  554. package/dist/chunks/cli-1.1.11-4hkr6h2p.mjs +0 -2
  555. package/dist/chunks/cli-1.1.11-4m87wr6c.mjs +0 -45
  556. package/dist/chunks/cli-1.1.11-4pqmwv4k.mjs +0 -9
  557. package/dist/chunks/cli-1.1.11-4x7gdf33.mjs +0 -2
  558. package/dist/chunks/cli-1.1.11-4yg477hw.mjs +0 -2
  559. package/dist/chunks/cli-1.1.11-53htvfkn.mjs +0 -2
  560. package/dist/chunks/cli-1.1.11-54kmn08f.mjs +0 -2
  561. package/dist/chunks/cli-1.1.11-5716x6c7.mjs +0 -2
  562. package/dist/chunks/cli-1.1.11-57kjeck2.mjs +0 -2
  563. package/dist/chunks/cli-1.1.11-58y8zhtr.mjs +0 -26
  564. package/dist/chunks/cli-1.1.11-5ee40chc.mjs +0 -2
  565. package/dist/chunks/cli-1.1.11-5evw05k8.mjs +0 -2
  566. package/dist/chunks/cli-1.1.11-5mcr3f8x.mjs +0 -2
  567. package/dist/chunks/cli-1.1.11-6ancr21h.mjs +0 -2
  568. package/dist/chunks/cli-1.1.11-6kk88f11.mjs +0 -4
  569. package/dist/chunks/cli-1.1.11-6kp3wff0.mjs +0 -3
  570. package/dist/chunks/cli-1.1.11-6pgzp38k.mjs +0 -2
  571. package/dist/chunks/cli-1.1.11-6tyfa5hn.mjs +0 -2
  572. package/dist/chunks/cli-1.1.11-754rwfhh.mjs +0 -2
  573. package/dist/chunks/cli-1.1.11-7c5dnjyh.mjs +0 -2
  574. package/dist/chunks/cli-1.1.11-7fqzppxh.mjs +0 -2
  575. package/dist/chunks/cli-1.1.11-7h7exk8z.mjs +0 -39
  576. package/dist/chunks/cli-1.1.11-7ns0vhby.mjs +0 -2
  577. package/dist/chunks/cli-1.1.11-7vtjz4fp.mjs +0 -2
  578. package/dist/chunks/cli-1.1.11-80jnvwd3.mjs +0 -2
  579. package/dist/chunks/cli-1.1.11-80y1y33h.mjs +0 -2
  580. package/dist/chunks/cli-1.1.11-88pynw50.mjs +0 -2
  581. package/dist/chunks/cli-1.1.11-8j1jeg3y.mjs +0 -2
  582. package/dist/chunks/cli-1.1.11-8t6wwjcf.mjs +0 -2
  583. package/dist/chunks/cli-1.1.11-8vmf6185.mjs +0 -2
  584. package/dist/chunks/cli-1.1.11-99dgyvn6.mjs +0 -5
  585. package/dist/chunks/cli-1.1.11-9gtaqe5z.mjs +0 -2
  586. package/dist/chunks/cli-1.1.11-9q076mg1.mjs +0 -2
  587. package/dist/chunks/cli-1.1.11-9v76e0nn.mjs +0 -3
  588. package/dist/chunks/cli-1.1.11-9xepp7cw.mjs +0 -2
  589. package/dist/chunks/cli-1.1.11-9yb6m13t.mjs +0 -2
  590. package/dist/chunks/cli-1.1.11-a4we9vgp.mjs +0 -2
  591. package/dist/chunks/cli-1.1.11-ay57kj7t.mjs +0 -2
  592. package/dist/chunks/cli-1.1.11-aydwe9xx.mjs +0 -8
  593. package/dist/chunks/cli-1.1.11-azaecepr.mjs +0 -2
  594. package/dist/chunks/cli-1.1.11-b0bsxy6e.mjs +0 -2
  595. package/dist/chunks/cli-1.1.11-brfrsyj3.mjs +0 -2
  596. package/dist/chunks/cli-1.1.11-c2kpn3fs.mjs +0 -2
  597. package/dist/chunks/cli-1.1.11-c566maxh.mjs +0 -6
  598. package/dist/chunks/cli-1.1.11-c8yn2sy4.mjs +0 -12
  599. package/dist/chunks/cli-1.1.11-c9mw7vaf.mjs +0 -2
  600. package/dist/chunks/cli-1.1.11-ceb5eb1e.mjs +0 -4
  601. package/dist/chunks/cli-1.1.11-cetgmfd3.mjs +0 -2
  602. package/dist/chunks/cli-1.1.11-cfd7wcsr.mjs +0 -2
  603. package/dist/chunks/cli-1.1.11-cj1nzqdk.mjs +0 -6
  604. package/dist/chunks/cli-1.1.11-ctd6he1r.mjs +0 -2
  605. package/dist/chunks/cli-1.1.11-cyt97t1g.mjs +0 -2
  606. package/dist/chunks/cli-1.1.11-d8vrh841.mjs +0 -2
  607. package/dist/chunks/cli-1.1.11-dcv6a2kq.mjs +0 -2
  608. package/dist/chunks/cli-1.1.11-dfssr6vt.mjs +0 -2
  609. package/dist/chunks/cli-1.1.11-dfx7qnxc.mjs +0 -2
  610. package/dist/chunks/cli-1.1.11-dnp18qxm.mjs +0 -2
  611. package/dist/chunks/cli-1.1.11-dygnwf66.mjs +0 -2
  612. package/dist/chunks/cli-1.1.11-dzq0mt2q.mjs +0 -2
  613. package/dist/chunks/cli-1.1.11-e1nmsb3e.mjs +0 -2
  614. package/dist/chunks/cli-1.1.11-e5yvpr5d.mjs +0 -133
  615. package/dist/chunks/cli-1.1.11-e8f5j5pp.mjs +0 -20
  616. package/dist/chunks/cli-1.1.11-e9h0r9s8.mjs +0 -2
  617. package/dist/chunks/cli-1.1.11-ecfegt2j.mjs +0 -2
  618. package/dist/chunks/cli-1.1.11-ef7cg4xt.mjs +0 -2
  619. package/dist/chunks/cli-1.1.11-en4s7zr1.mjs +0 -2
  620. package/dist/chunks/cli-1.1.11-epajg619.mjs +0 -2
  621. package/dist/chunks/cli-1.1.11-erfvptpc.mjs +0 -2
  622. package/dist/chunks/cli-1.1.11-et6r8n19.mjs +0 -12
  623. package/dist/chunks/cli-1.1.11-ex37fv7p.mjs +0 -2
  624. package/dist/chunks/cli-1.1.11-ezt5j484.mjs +0 -7
  625. package/dist/chunks/cli-1.1.11-fcxz5772.mjs +0 -4
  626. package/dist/chunks/cli-1.1.11-fmb9eedn.mjs +0 -2
  627. package/dist/chunks/cli-1.1.11-fmy9jwdc.mjs +0 -3
  628. package/dist/chunks/cli-1.1.11-g0shs4yx.mjs +0 -17
  629. package/dist/chunks/cli-1.1.11-g38vgb2g.mjs +0 -2
  630. package/dist/chunks/cli-1.1.11-g9cesn9x.mjs +0 -2
  631. package/dist/chunks/cli-1.1.11-gnbty7hn.mjs +0 -9
  632. package/dist/chunks/cli-1.1.11-gnws5v1r.mjs +0 -15
  633. package/dist/chunks/cli-1.1.11-gyvneb2n.mjs +0 -2
  634. package/dist/chunks/cli-1.1.11-hazm6rky.mjs +0 -17
  635. package/dist/chunks/cli-1.1.11-hbvz2ngt.mjs +0 -2
  636. package/dist/chunks/cli-1.1.11-j4ym4b26.mjs +0 -2
  637. package/dist/chunks/cli-1.1.11-jc61pe1h.mjs +0 -15
  638. package/dist/chunks/cli-1.1.11-jejkqxzx.mjs +0 -2
  639. package/dist/chunks/cli-1.1.11-js75fbb2.mjs +0 -2
  640. package/dist/chunks/cli-1.1.11-jt8v99mz.mjs +0 -2
  641. package/dist/chunks/cli-1.1.11-jvyac5ts.mjs +0 -2
  642. package/dist/chunks/cli-1.1.11-jzhj2z0q.mjs +0 -4
  643. package/dist/chunks/cli-1.1.11-jzmj7yys.mjs +0 -18
  644. package/dist/chunks/cli-1.1.11-k3691mq1.mjs +0 -1
  645. package/dist/chunks/cli-1.1.11-k7pcdfgm.mjs +0 -2
  646. package/dist/chunks/cli-1.1.11-k8shpmad.mjs +0 -2
  647. package/dist/chunks/cli-1.1.11-kj2dg4vg.mjs +0 -2
  648. package/dist/chunks/cli-1.1.11-kwbasdd3.mjs +0 -2
  649. package/dist/chunks/cli-1.1.11-m117ak01.mjs +0 -58
  650. package/dist/chunks/cli-1.1.11-m3mwsg1h.mjs +0 -5
  651. package/dist/chunks/cli-1.1.11-m4kdt922.mjs +0 -3
  652. package/dist/chunks/cli-1.1.11-m79xp4zw.mjs +0 -50
  653. package/dist/chunks/cli-1.1.11-m7dz7jb4.mjs +0 -2
  654. package/dist/chunks/cli-1.1.11-mjhzsr8x.mjs +0 -2
  655. package/dist/chunks/cli-1.1.11-mpr8grgt.mjs +0 -6
  656. package/dist/chunks/cli-1.1.11-n797shcy.mjs +0 -24
  657. package/dist/chunks/cli-1.1.11-n9eddt48.mjs +0 -133
  658. package/dist/chunks/cli-1.1.11-na2dfshq.mjs +0 -4
  659. package/dist/chunks/cli-1.1.11-nbdb2har.mjs +0 -15
  660. package/dist/chunks/cli-1.1.11-nfcb5zpv.mjs +0 -24
  661. package/dist/chunks/cli-1.1.11-ng71jh69.mjs +0 -2
  662. package/dist/chunks/cli-1.1.11-nnxrj2y7.mjs +0 -2
  663. package/dist/chunks/cli-1.1.11-nqrzeek1.mjs +0 -2
  664. package/dist/chunks/cli-1.1.11-nsf7da8p.mjs +0 -25
  665. package/dist/chunks/cli-1.1.11-p0gdcdg7.mjs +0 -2
  666. package/dist/chunks/cli-1.1.11-p1g4cbqp.mjs +0 -2
  667. package/dist/chunks/cli-1.1.11-p99a0wsg.mjs +0 -2
  668. package/dist/chunks/cli-1.1.11-pfnjpp3j.mjs +0 -2
  669. package/dist/chunks/cli-1.1.11-qd78ng67.mjs +0 -2
  670. package/dist/chunks/cli-1.1.11-qe68985c.mjs +0 -2
  671. package/dist/chunks/cli-1.1.11-qxqfwjt2.mjs +0 -12
  672. package/dist/chunks/cli-1.1.11-qy572ahv.mjs +0 -2
  673. package/dist/chunks/cli-1.1.11-r6pat8w9.mjs +0 -2
  674. package/dist/chunks/cli-1.1.11-r6zppx5e.mjs +0 -2
  675. package/dist/chunks/cli-1.1.11-r737sg77.mjs +0 -2
  676. package/dist/chunks/cli-1.1.11-re35m5b2.mjs +0 -3
  677. package/dist/chunks/cli-1.1.11-rm1ytz6k.mjs +0 -2
  678. package/dist/chunks/cli-1.1.11-s3x93993.mjs +0 -2
  679. package/dist/chunks/cli-1.1.11-s5fsvj2a.mjs +0 -2
  680. package/dist/chunks/cli-1.1.11-sby4j4da.mjs +0 -3
  681. package/dist/chunks/cli-1.1.11-se1r4vmz.mjs +0 -2
  682. package/dist/chunks/cli-1.1.11-sen20m7k.mjs +0 -2
  683. package/dist/chunks/cli-1.1.11-smfhs04w.mjs +0 -3
  684. package/dist/chunks/cli-1.1.11-sph0eaqc.mjs +0 -4
  685. package/dist/chunks/cli-1.1.11-sptbkfhb.mjs +0 -2
  686. package/dist/chunks/cli-1.1.11-sxe5a6ht.mjs +0 -2
  687. package/dist/chunks/cli-1.1.11-sycyfbqa.mjs +0 -2
  688. package/dist/chunks/cli-1.1.11-t4vzh54z.mjs +0 -2
  689. package/dist/chunks/cli-1.1.11-t6xvy5kh.mjs +0 -2
  690. package/dist/chunks/cli-1.1.11-t95hn521.mjs +0 -2
  691. package/dist/chunks/cli-1.1.11-tg2x8my7.mjs +0 -4
  692. package/dist/chunks/cli-1.1.11-th7d92cz.mjs +0 -2
  693. package/dist/chunks/cli-1.1.11-tqtf5qtz.mjs +0 -2
  694. package/dist/chunks/cli-1.1.11-ty1grp21.mjs +0 -2
  695. package/dist/chunks/cli-1.1.11-tzw8k1nw.mjs +0 -2
  696. package/dist/chunks/cli-1.1.11-v0qc9e7x.mjs +0 -2
  697. package/dist/chunks/cli-1.1.11-v9gb0h1v.mjs +0 -2
  698. package/dist/chunks/cli-1.1.11-vaqp2v88.mjs +0 -3
  699. package/dist/chunks/cli-1.1.11-vcbj9ns4.mjs +0 -2
  700. package/dist/chunks/cli-1.1.11-vdh094gb.mjs +0 -2
  701. package/dist/chunks/cli-1.1.11-vkw5s1rv.mjs +0 -4
  702. package/dist/chunks/cli-1.1.11-vqcm2p2k.mjs +0 -3
  703. package/dist/chunks/cli-1.1.11-vtj7f6xe.mjs +0 -34
  704. package/dist/chunks/cli-1.1.11-w50fh65p.mjs +0 -2
  705. package/dist/chunks/cli-1.1.11-wf1jrvag.mjs +0 -2
  706. package/dist/chunks/cli-1.1.11-wjhta14d.mjs +0 -3
  707. package/dist/chunks/cli-1.1.11-wkmpy3a6.mjs +0 -2
  708. package/dist/chunks/cli-1.1.11-wrvqk2kb.mjs +0 -2
  709. package/dist/chunks/cli-1.1.11-ws3mhebq.mjs +0 -2
  710. package/dist/chunks/cli-1.1.11-wsr8n6yx.mjs +0 -2
  711. package/dist/chunks/cli-1.1.11-ww3qs66m.mjs +0 -2
  712. package/dist/chunks/cli-1.1.11-wzd4xr4g.mjs +0 -2
  713. package/dist/chunks/cli-1.1.11-x1cwe9h2.mjs +0 -2
  714. package/dist/chunks/cli-1.1.11-x2px8b33.mjs +0 -4
  715. package/dist/chunks/cli-1.1.11-x3d1641w.mjs +0 -66
  716. package/dist/chunks/cli-1.1.11-x4yq8238.mjs +0 -2
  717. package/dist/chunks/cli-1.1.11-xa1ktjvc.mjs +0 -18
  718. package/dist/chunks/cli-1.1.11-xdf6ka1p.mjs +0 -3
  719. package/dist/chunks/cli-1.1.11-xjejq6gc.mjs +0 -2
  720. package/dist/chunks/cli-1.1.11-xmp31p4m.mjs +0 -2
  721. package/dist/chunks/cli-1.1.11-xw1gtf4q.mjs +0 -2
  722. package/dist/chunks/cli-1.1.11-y8jb9ka1.mjs +0 -5382
  723. package/dist/chunks/cli-1.1.11-ybqaxmsq.mjs +0 -2
  724. package/dist/chunks/cli-1.1.11-ygstc2fh.mjs +0 -2
  725. package/dist/chunks/cli-1.1.11-ys88pb52.mjs +0 -2
  726. package/dist/chunks/cli-1.1.11-ys8qbdxp.mjs +0 -4
  727. package/dist/chunks/cli-1.1.11-ytd49283.mjs +0 -16
  728. package/dist/chunks/cli-1.1.11-yv8jze8x.mjs +0 -3
  729. package/dist/chunks/cli-1.1.11-yx7hmc5y.mjs +0 -24
  730. package/dist/chunks/cli-1.1.11-yz3byxtx.mjs +0 -202
  731. package/dist/chunks/cli-1.1.11-z02dbt8v.mjs +0 -25
  732. package/dist/chunks/cli-1.1.11-z08c87k7.mjs +0 -2
  733. package/dist/chunks/cli-1.1.11-zmkfqsfj.mjs +0 -2
  734. package/dist/chunks/cli-1.1.11-zz43hz3c.mjs +0 -2
  735. package/dist/chunks/client-1.1.11-4fds5q8p.mjs +0 -1
  736. package/dist/chunks/color-1.1.11-1pjrfnnd.mjs +0 -1
  737. package/dist/chunks/compact-1.1.11-qvdk635a.mjs +0 -3
  738. package/dist/chunks/config-1.1.11-3yh6sp7r.mjs +0 -1
  739. package/dist/chunks/config-1.1.11-qs94ayha.mjs +0 -1
  740. package/dist/chunks/constants-1.1.11-6f5wtx0e.mjs +0 -1
  741. package/dist/chunks/context-1.1.11-v76cyrq1.mjs +0 -1
  742. package/dist/chunks/context-noninteractive-1.1.11-59s91h4x.mjs +0 -1
  743. package/dist/chunks/conversation-1.1.11-ve2rcdbk.mjs +0 -1
  744. package/dist/chunks/copilotHeaders-1.1.11-awc75paz.mjs +0 -1
  745. package/dist/chunks/copy-1.1.11-t2yhcnhs.mjs +0 -9
  746. package/dist/chunks/cost-1.1.11-3qfqxkmj.mjs +0 -1
  747. package/dist/chunks/createSSHSession-1.1.11-d1a5c6qx.mjs +0 -1
  748. package/dist/chunks/createSession-1.1.11-tepvp40s.mjs +0 -1
  749. package/dist/chunks/debug-1.1.11-2tghvx1n.mjs +0 -1
  750. package/dist/chunks/defaultActionDeps-1.1.11-35s0feaf.mjs +0 -1526
  751. package/dist/chunks/desktop-1.1.11-hwbpq9hq.mjs +0 -1
  752. package/dist/chunks/detectRepository-1.1.11-1p7kjee0.mjs +0 -1
  753. package/dist/chunks/detection-1.1.11-96xrmjq1.mjs +0 -1
  754. package/dist/chunks/diff-1.1.11-13e093sy.mjs +0 -1
  755. package/dist/chunks/doctor-1.1.11-r1xwax5q.mjs +0 -1
  756. package/dist/chunks/doctorDiagnostic-1.1.11-05h9mhbd.mjs +0 -1
  757. package/dist/chunks/earlyInput-1.1.11-14kzyy0e.mjs +0 -1
  758. package/dist/chunks/effort-1.1.11-9avhwp0f.mjs +0 -13
  759. package/dist/chunks/engine-1.1.11-j24ha45k.mjs +0 -1
  760. package/dist/chunks/envLessBridgeConfig-1.1.11-3xh8n4ys.mjs +0 -1
  761. package/dist/chunks/envUtils-1.1.11-ef7e3q7c.mjs +0 -1
  762. package/dist/chunks/environmentSelection-1.1.11-hxdx739y.mjs +0 -1
  763. package/dist/chunks/environments-1.1.11-356znhvc.mjs +0 -1
  764. package/dist/chunks/errors-1.1.11-ev387w5m.mjs +0 -1
  765. package/dist/chunks/exampleCommands-1.1.11-pejs7gw9.mjs +0 -1
  766. package/dist/chunks/execFileNoThrow-1.1.11-4s6hv328.mjs +0 -1
  767. package/dist/chunks/exit-1.1.11-v9psfac6.mjs +0 -1
  768. package/dist/chunks/explorer-1.1.11-e3f0wt2q.mjs +0 -1
  769. package/dist/chunks/export-1.1.11-3jan1p2n.mjs +0 -2
  770. package/dist/chunks/extra-usage-1.1.11-3zfk19wt.mjs +0 -1
  771. package/dist/chunks/extra-usage-noninteractive-1.1.11-ye9dcmbd.mjs +0 -1
  772. package/dist/chunks/fast-1.1.11-q42apmz5.mjs +0 -1
  773. package/dist/chunks/feedback-1.1.11-dtj0sby7.mjs +0 -14
  774. package/dist/chunks/firstPartyEventLogger-1.1.11-jy7cazzp.mjs +0 -1
  775. package/dist/chunks/git-1.1.11-x9yx65c5.mjs +0 -1
  776. package/dist/chunks/githubModelsCredentials-1.1.11-bqkgby97.mjs +0 -1
  777. package/dist/chunks/goal-1.1.11-q2hpatj3.mjs +0 -4
  778. package/dist/chunks/grove-1.1.11-qxybpwre.mjs +0 -1
  779. package/dist/chunks/growthbook-1.1.11-3vnmw48g.mjs +0 -1
  780. package/dist/chunks/headless-1.1.11-w0ppk4vt.mjs +0 -2
  781. package/dist/chunks/heapdump-1.1.11-vh3qr7jg.mjs +0 -6
  782. package/dist/chunks/help-1.1.11-p384dp1z.mjs +0 -1
  783. package/dist/chunks/hookChains-1.1.11-088ye0xc.mjs +0 -3
  784. package/dist/chunks/hooks-1.1.11-4kkgc487.mjs +0 -79
  785. package/dist/chunks/hooks-1.1.11-a7p1se3t.mjs +0 -1
  786. package/dist/chunks/ide-1.1.11-n0zzy5nx.mjs +0 -3
  787. package/dist/chunks/image-processor-napi-1.1.11-5xcxbnxj.mjs +0 -1
  788. package/dist/chunks/inboundAttachments-1.1.11-y9exjc82.mjs +0 -1
  789. package/dist/chunks/index-1.1.11-03mzh565.mjs +0 -1
  790. package/dist/chunks/index-1.1.11-2yms0cys.mjs +0 -1
  791. package/dist/chunks/index-1.1.11-40px18hy.mjs +0 -2
  792. package/dist/chunks/index-1.1.11-4nqea2zz.mjs +0 -1
  793. package/dist/chunks/index-1.1.11-5gttv5kf.mjs +0 -1
  794. package/dist/chunks/index-1.1.11-68ffeh9a.mjs +0 -1
  795. package/dist/chunks/index-1.1.11-804qa6by.mjs +0 -1
  796. package/dist/chunks/index-1.1.11-9pwqbn5r.mjs +0 -1
  797. package/dist/chunks/index-1.1.11-a3y2aekg.mjs +0 -1
  798. package/dist/chunks/index-1.1.11-a6z5v5rh.mjs +0 -1
  799. package/dist/chunks/index-1.1.11-drr89zt1.mjs +0 -1
  800. package/dist/chunks/index-1.1.11-es7vjyrm.mjs +0 -1
  801. package/dist/chunks/index-1.1.11-fb4zcaqa.mjs +0 -9
  802. package/dist/chunks/index-1.1.11-fe66h6cm.mjs +0 -9
  803. package/dist/chunks/index-1.1.11-fmj2fbg0.mjs +0 -1
  804. package/dist/chunks/index-1.1.11-ft8kdz1m.mjs +0 -30
  805. package/dist/chunks/index-1.1.11-g7s48r9e.mjs +0 -1
  806. package/dist/chunks/index-1.1.11-jg3wztnh.mjs +0 -1
  807. package/dist/chunks/index-1.1.11-k7y5wmy4.mjs +0 -1
  808. package/dist/chunks/index-1.1.11-qykdv19z.mjs +0 -2
  809. package/dist/chunks/index-1.1.11-v4wf2vaf.mjs +0 -23
  810. package/dist/chunks/index-1.1.11-v83fr53d.mjs +0 -5
  811. package/dist/chunks/index-1.1.11-wtdppc5t.mjs +0 -1
  812. package/dist/chunks/init-1.1.11-hmef4hjd.mjs +0 -1
  813. package/dist/chunks/initReplBridge-1.1.11-pwmx5fqy.mjs +0 -1
  814. package/dist/chunks/ink-1.1.11-jw026dnf.mjs +0 -1
  815. package/dist/chunks/insights-1.1.11-6dzm6fbk.mjs +0 -870
  816. package/dist/chunks/install-1.1.11-pmvq4tzr.mjs +0 -1
  817. package/dist/chunks/install-github-app-1.1.11-6yraca1d.mjs +0 -149
  818. package/dist/chunks/install-slack-app-1.1.11-f7kv64nn.mjs +0 -1
  819. package/dist/chunks/instrumentation-1.1.11-5vjxebja.mjs +0 -1
  820. package/dist/chunks/interactiveHelpers-1.1.11-7pncqt0h.mjs +0 -1
  821. package/dist/chunks/keybindings-1.1.11-t04nc417.mjs +0 -2
  822. package/dist/chunks/knowledge-1.1.11-14y01py7.mjs +0 -2
  823. package/dist/chunks/latestVersionCache-1.1.11-0y248exe.mjs +0 -1
  824. package/dist/chunks/loadAgentsDir-1.1.11-281da8yy.mjs +0 -1
  825. package/dist/chunks/loadPluginHooks-1.1.11-smwnwfy1.mjs +0 -1
  826. package/dist/chunks/log-1.1.11-bg8ah9ag.mjs +0 -1
  827. package/dist/chunks/main-1.1.11-6myv71xs.mjs +0 -1
  828. package/dist/chunks/managedEnv-1.1.11-g7a35vm9.mjs +0 -1
  829. package/dist/chunks/mcp-1.1.11-4pdz9q1w.mjs +0 -17
  830. package/dist/chunks/mcp-1.1.11-63cbatj7.mjs +0 -1
  831. package/dist/chunks/mcp-1.1.11-jr7ccm2q.mjs +0 -4
  832. package/dist/chunks/mcpb-1.1.11-w2vyza13.mjs +0 -1
  833. package/dist/chunks/memory-1.1.11-hfwa4d07.mjs +0 -72
  834. package/dist/chunks/model-1.1.11-m73f7dnk.mjs +0 -1
  835. package/dist/chunks/model-1.1.11-s35tcbyz.mjs +0 -2
  836. package/dist/chunks/node-1.1.11-h3t9a7m9.mjs +0 -12
  837. package/dist/chunks/oauth-1.1.11-z19rt783.mjs +0 -1
  838. package/dist/chunks/openaiShim-1.1.11-hw1h9m6b.mjs +0 -14
  839. package/dist/chunks/output-style-1.1.11-9wars2zm.mjs +0 -1
  840. package/dist/chunks/package-L37ZVTF4-1.1.11-xdrqg8t2.mjs +0 -1
  841. package/dist/chunks/parseConnectUrl-1.1.11-1xctyq5g.mjs +0 -1
  842. package/dist/chunks/parser-1.1.11-hdctc99h.mjs +0 -1
  843. package/dist/chunks/passes-1.1.11-cyfzrm0v.mjs +0 -1
  844. package/dist/chunks/permissions-1.1.11-gmeavwga.mjs +0 -1
  845. package/dist/chunks/permissions-1.1.11-k82nchw7.mjs +0 -3
  846. package/dist/chunks/plan-1.1.11-113qc4m4.mjs +0 -1
  847. package/dist/chunks/plist-1.1.11-tn2gma22.mjs +0 -1
  848. package/dist/chunks/plugin-1.1.11-v8jsy700.mjs +0 -29
  849. package/dist/chunks/pluginStartupCheck-1.1.11-ak2j3gqk.mjs +0 -1
  850. package/dist/chunks/plugins-1.1.11-ne541702.mjs +0 -9
  851. package/dist/chunks/preActionHook-1.1.11-trzavag7.mjs +0 -2
  852. package/dist/chunks/print-1.1.11-438pp8v9.mjs +0 -57
  853. package/dist/chunks/privacy-settings-1.1.11-mn1z3vsm.mjs +0 -1
  854. package/dist/chunks/process-1.1.11-eyv3rsh3.mjs +0 -1
  855. package/dist/chunks/processBashCommand-1.1.11-mmp13p2q.mjs +0 -1
  856. package/dist/chunks/processSlashCommand-1.1.11-0q3vxz7d.mjs +0 -9
  857. package/dist/chunks/prompt-1.1.11-r4p751ar.mjs +0 -1
  858. package/dist/chunks/prompt-1.1.11-yrfr0vn1.mjs +0 -1
  859. package/dist/chunks/prompts-1.1.11-qxywq1b7.mjs +0 -1
  860. package/dist/chunks/protocolHandler-1.1.11-h9k096sf.mjs +0 -13
  861. package/dist/chunks/provider-1.1.11-xwrj8dzx.mjs +0 -2
  862. package/dist/chunks/providerProfiles-1.1.11-dwy6je4r.mjs +0 -1
  863. package/dist/chunks/providerValidation-1.1.11-5x71hcx3.mjs +0 -6
  864. package/dist/chunks/rate-limit-options-1.1.11-cex3vev6.mjs +0 -1
  865. package/dist/chunks/registerSubcommands-1.1.11-pa8cx5ka.mjs +0 -34
  866. package/dist/chunks/registry-1.1.11-3s5s5x2w.mjs +0 -1
  867. package/dist/chunks/release-notes-1.1.11-dcephgep.mjs +0 -5
  868. package/dist/chunks/reload-plugins-1.1.11-06znv97n.mjs +0 -2
  869. package/dist/chunks/remote-env-1.1.11-ycaxf826.mjs +0 -1
  870. package/dist/chunks/remoteBridgeCore-1.1.11-3f2qdc67.mjs +0 -1
  871. package/dist/chunks/remoteSession-1.1.11-yr9z4qxr.mjs +0 -1
  872. package/dist/chunks/rename-1.1.11-cjn09qj8.mjs +0 -1
  873. package/dist/chunks/replBridgeHandle-1.1.11-ym5wskq3.mjs +0 -1
  874. package/dist/chunks/replLauncher-1.1.11-b5w7tmfr.mjs +0 -1
  875. package/dist/chunks/resume-1.1.11-nth616a4.mjs +0 -2
  876. package/dist/chunks/rewind-1.1.11-57ydss59.mjs +0 -1
  877. package/dist/chunks/rootOptions-1.1.11-j9g626rf.mjs +0 -1
  878. package/dist/chunks/runWorkflowHeadless-1.1.11-pj37xkbn.mjs +0 -10
  879. package/dist/chunks/sandbox-adapter-1.1.11-ke832djs.mjs +0 -1
  880. package/dist/chunks/sandbox-toggle-1.1.11-fybgyn3j.mjs +0 -1
  881. package/dist/chunks/session-1.1.11-85hpfa2y.mjs +0 -2
  882. package/dist/chunks/sessionDiscovery-1.1.11-wkjk4q5q.mjs +0 -1
  883. package/dist/chunks/sessionFileAccessHooks-1.1.11-9rq4xh7v.mjs +0 -1
  884. package/dist/chunks/sessionStorage-1.1.11-bmy7c4ce.mjs +0 -1
  885. package/dist/chunks/settings-1.1.11-x92a7782.mjs +0 -1
  886. package/dist/chunks/setup-1.1.11-ft54z574.mjs +0 -5
  887. package/dist/chunks/sinks-1.1.11-qj6hh6fq.mjs +0 -1
  888. package/dist/chunks/skills-1.1.11-yb1h8f1p.mjs +0 -1
  889. package/dist/chunks/startupProfiler-1.1.11-aymsv2q9.mjs +0 -1
  890. package/dist/chunks/startupUpdateCheck-1.1.11-q539pk5f.mjs +0 -1
  891. package/dist/chunks/state-1.1.11-z5q89e5v.mjs +0 -1
  892. package/dist/chunks/stats-1.1.11-5tdk8rvw.mjs +0 -6
  893. package/dist/chunks/status-1.1.11-xnqp4j47.mjs +0 -1
  894. package/dist/chunks/stickers-1.1.11-qj2z8gxy.mjs +0 -1
  895. package/dist/chunks/subprocessEnv-1.1.11-p65stpt5.mjs +0 -1
  896. package/dist/chunks/tasks-1.1.11-wxw0xx0j.mjs +0 -1
  897. package/dist/chunks/teamHelpers-1.1.11-60crs4z7.mjs +0 -1
  898. package/dist/chunks/teammateModeSnapshot-1.1.11-s3btrevg.mjs +0 -1
  899. package/dist/chunks/teleport-1.1.11-0xf6aa7g.mjs +0 -1
  900. package/dist/chunks/terminalSetup-1.1.11-pfz13me0.mjs +0 -1
  901. package/dist/chunks/theme-1.1.11-2p323zvq.mjs +0 -1
  902. package/dist/chunks/thinkback-1.1.11-s0m1n5ww.mjs +0 -1
  903. package/dist/chunks/thinkback-play-1.1.11-2sq4jkjt.mjs +0 -1
  904. package/dist/chunks/toolPool-1.1.11-je8wzeg0.mjs +0 -1
  905. package/dist/chunks/toolSearch-1.1.11-w74d8xmb.mjs +0 -1
  906. package/dist/chunks/tools-1.1.11-y36gvdes.mjs +0 -1
  907. package/dist/chunks/trustedDevice-1.1.11-x8dc07e5.mjs +0 -1
  908. package/dist/chunks/turndown.cjs-1.1.11-sr4p4fht.mjs +0 -69
  909. package/dist/chunks/types-1.1.11-hmv5s58r.mjs +0 -1
  910. package/dist/chunks/ultrareviewCommand-1.1.11-k569tjhq.mjs +0 -4
  911. package/dist/chunks/update-1.1.11-p39vapmz.mjs +0 -72
  912. package/dist/chunks/upgrade-1.1.11-tbgxp1ct.mjs +0 -1
  913. package/dist/chunks/upload-1.1.11-2ww1n0bh.mjs +0 -7
  914. package/dist/chunks/upstreamproxy-1.1.11-1y1aettm.mjs +0 -14
  915. package/dist/chunks/url-handler-napi-1.1.11-6g43s7vc.mjs +0 -1
  916. package/dist/chunks/usage-1.1.11-q123k500.mjs +0 -1
  917. package/dist/chunks/util-1.1.11-vtdjcaqr.mjs +0 -1
  918. package/dist/chunks/utils-1.1.11-tratqgvk.mjs +0 -1
  919. package/dist/chunks/vim-1.1.11-07nhad2c.mjs +0 -1
  920. package/dist/chunks/watchLoop-1.1.11-w662caa3.mjs +0 -13
  921. package/dist/chunks/watcher-1.1.11-jjk2rcc6.mjs +0 -1
  922. package/dist/chunks/wiki-1.1.11-kdevp06r.mjs +0 -132
  923. package/dist/chunks/workflows-1.1.11-s711sqq1.mjs +0 -1
  924. package/dist/chunks/worktree-1.1.11-y6c7aw7x.mjs +0 -1
  925. package/dist/chunks/worktreeModeEnabled-1.1.11-afx643vn.mjs +0 -1
  926. package/dist/chunks/wrapper-1.1.11-yx4yqang.mjs +0 -7
  927. /package/dist/chunks/{cli-1.1.11-qx2jtemb.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{pga as C,u_ as z,w_ as H,xga as J}from"./cli-1.1.13-2mrqqgcm.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 g,X as h,Y as i,Z as j,$ as k,B as l,D as m};
@@ -0,0 +1,2 @@
1
+ import{jN as Q,kN as $}from"./cli-1.1.13-x79qava2.mjs";import{Ala as V,Bla as P,Cma as W,Dma as E}from"./cli-1.1.13-0y4933cs.mjs";import{Esa as L}from"./cli-1.1.13-jdcqc6bd.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};
@@ -0,0 +1,2 @@
1
+ import{Xa as c}from"./cli-1.1.13-t4z97zfd.mjs";import{sd as v,wd as Wq}from"./cli-1.1.13-r9tfxszp.mjs";import{Ad as S,Bd as $,Cd as Xq,zd as I}from"./cli-1.1.13-v2synpdg.mjs";import{$y as Bq,Hx as L,Ix as h,Kx as qq,_y as A,aL as f,bL as Tq,cp as C,dz as _,ep as r,fz as Gq,pF as E,qF as Qq,sD as M,sM as P,vM as Vq,wu as N,xu as e,yD as Jq}from"./cli-1.1.13-x79qava2.mjs";import{O3 as s}from"./cli-1.1.13-wmpc2gzg.mjs";import{$$ as t,Z$ as w,p_ as D,pga as F,r_ as n,xga as a}from"./cli-1.1.13-2mrqqgcm.mjs";import{rja as x,uja as d}from"./cli-1.1.13-zgnxf8h2.mjs";import{uka as j,xka as o}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as l,Tka as y}from"./cli-1.1.13-6c4qxmj3.mjs";import{Asa as p}from"./cli-1.1.13-jdcqc6bd.mjs";Qq();d();Gq();qq();Xq();t();o();n();l();a();e();Tq();Jq();Bq();r();var V=p(s(),1);Wq();Vq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=E(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await P();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await f(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await M()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};x("",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
2
+ export{hq as Wa};
@@ -0,0 +1,3 @@
1
+ import{Esa as z}from"./cli-1.1.13-jdcqc6bd.mjs";import{execFile as B}from"child_process";import{promisify as E}from"util";async function N(v){try{let{stdout:q}=await G("git",["worktree","list","--porcelain"],{cwd:v,timeout:5000});if(!q)return[];return q.split(`
2
+ `).filter((j)=>j.startsWith("worktree ")).map((j)=>j.slice(9).normalize("NFC"))}catch{return[]}}var G;var H=z(()=>{G=E(B)});
3
+ export{N as eW,H as fW};
@@ -0,0 +1,2 @@
1
+ import{Esa as y}from"./cli-1.1.13-jdcqc6bd.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function A(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||x.test(B))return!0;return!1}function k(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(A(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,x,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,x=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function O(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function E(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var N=500,V,J;var S=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(N)});
2
+ export{k as D2,P as E2,M as F2,C as G2,I as H2,L as I2,E as J2,T as K2,R as L2,b as M2,g as N2,l as O2,S as P2};
@@ -0,0 +1,2 @@
1
+ import{I0 as k,K0 as y,Q0 as MQ,Z0 as _Q,_0 as aQ,c1 as d,jZ as u,n1 as a,v0 as QQ,w0 as uQ}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as K,M3 as l,N3 as m}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as v}from"./cli-1.1.13-wmpc2gzg.mjs";import{c4 as n,e4 as t,j4 as YV}from"./cli-1.1.13-x663d461.mjs";import{b8 as $Q,e8 as P,h8 as pQ,w8 as XV}from"./cli-1.1.13-gznvgt6g.mjs";import{Rda as mQ,Rea as QV,Sda as eQ,pga as CQ,tea as fQ,wea as x,xga as VV}from"./cli-1.1.13-2mrqqgcm.mjs";import{Cga as IQ,Dga as sQ}from"./cli-1.1.13-kbf9vss4.mjs";import{pja as r,qja as nQ}from"./cli-1.1.13-wqteqtr2.mjs";import{uka as E,xka as iQ}from"./cli-1.1.13-ayx92dtj.mjs";import{Mra as i,csa as tQ}from"./cli-1.1.13-ev08z5ye.mjs";import{Asa as T,Esa as F}from"./cli-1.1.13-jdcqc6bd.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 VX,YQ as WX,JQ as XX,hQ as YX,c as ZX,NV as _X,LQ as $X,qQ as aY,zQ as bY,NQ as cY,TV as dY,h as eY,KV as fY,UQ as gY,RV as hY,OQ as iY,wQ as jY,o as kY,WQ as lY,$V as mY,oQ as nY,s as oY,SQ as pY,bV as qY,xV as rY,AQ as sY,DQ as tY,EQ as uY,oV as vY,rQ as wY,ZX as xY,GX as yY,JX as zY,LX as AY,qX as BY,JV as CY,HX as DY,LV as EY};
@@ -0,0 +1,2 @@
1
+ import{B$ as F,F$ as m,H_ as K,I_ as E,pga as U,xga as H}from"./cli-1.1.13-2mrqqgcm.mjs";import{Dia as v,Fia as x}from"./cli-1.1.13-ykzv8nyq.mjs";import{gka as D,kka as g}from"./cli-1.1.13-ayx92dtj.mjs";import{Esa as S}from"./cli-1.1.13-jdcqc6bd.mjs";import{basename as f,dirname as u,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=u(G),J=f(q);return{directory:N,prefix:J}}async function b(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function d(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await b(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function k(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function n(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await k(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();H();m();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
2
+ export{d as wh,o as xh,n as yh,C as zh};
@@ -0,0 +1,2 @@
1
+ import{To as Q,Yo as f}from"./cli-1.1.13-x79qava2.mjs";import{pga as B,xga as M}from"./cli-1.1.13-2mrqqgcm.mjs";import{Zja as W,_ja as Z,cka as X,gka as $,kka as Y,uka as b,xka as A}from"./cli-1.1.13-ayx92dtj.mjs";import{Esa as U}from"./cli-1.1.13-jdcqc6bd.mjs";import{randomBytes as G}from"crypto";import{readFile as L,rename as N,unlink as j,writeFile as S}from"fs/promises";import{join as T}from"path";function R(){return T(Q(),_)}function E(q){let v=Z(q);if(typeof v!=="object"||v===null||!("plugins"in v)||typeof v.plugins!=="object"||v.plugins===null)return{};let x=v.plugins,C={};for(let[J,H]of Object.entries(x))if(H&&typeof H==="object"&&"flaggedAt"in H&&typeof H.flaggedAt==="string"){let V={flaggedAt:H.flaggedAt};if("seenAt"in H&&typeof H.seenAt==="string")V.seenAt=H.seenAt;C[J]=V}return C}async function K(){try{let q=await L(R(),{encoding:"utf-8"});return E(q)}catch{return{}}}async function O(q){let v=R(),x=`${v}.${G(8).toString("hex")}.tmp`;try{await $().mkdir(Q());let C=W({plugins:q},null,2);await S(x,C,{encoding:"utf-8",mode:384}),await N(x,v),z=q}catch(C){B(C);try{await j(x)}catch{}}}async function u(){let q=await K(),v=Date.now(),x=!1;for(let[C,J]of Object.entries(q))if(J.seenAt&&v-new Date(J.seenAt).getTime()>=w)delete q[C],x=!0;if(z=q,x)await O(q)}function p(){return z??{}}async function c(q){if(z===null)z=await K();let v={...z,[q]:{flaggedAt:new Date().toISOString()}};await O(v),b(`Flagged plugin: ${q}`)}async function g(q){if(z===null)z=await K();let v=new Date().toISOString(),x=!1,C={...z};for(let J of q){let H=C[J];if(H&&!H.seenAt)C[J]={...H,seenAt:v},x=!0}if(x)await O(C)}async function d(q){if(z===null)z=await K();if(!(q in z))return;let{[q]:v,...x}=z;z=x,await O(x)}var _="flagged-plugins.json",w=172800000,z=null;var k=U(()=>{A();Y();M();X();f()});
2
+ export{u as rd,p as sd,c as td,g as ud,d as vd,k as wd};
@@ -0,0 +1 @@
1
+ import{Aia as B,wia as q,yia as A,zia as x}from"./cli-1.1.13-vxpmt3js.mjs";import{cka as J}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as G}from"./cli-1.1.13-6c4qxmj3.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
@@ -0,0 +1,24 @@
1
+ import{JX as P,UX as g}from"./cli-1.1.13-aeq919w1.mjs";import{k2 as C,n2 as d}from"./cli-1.1.13-rnajmfsp.mjs";import{t_ as A,u$ as T,v$ as u,v_ as U,w_ as w}from"./cli-1.1.13-2mrqqgcm.mjs";import{Zja as O,_ja as W,cka as c,uka as X,xja as R,xka as h,zja as F}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as m,Uka as V,Zka as N}from"./cli-1.1.13-6c4qxmj3.mjs";import{cla as k,nla as S}from"./cli-1.1.13-2m39r998.mjs";import{Sqa as D,Tma as B,Xma as E,Zma as M}from"./cli-1.1.13-0y4933cs.mjs";import{Esa as $}from"./cli-1.1.13-jdcqc6bd.mjs";function H(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function e(q,G=10){if(process.platform==="win32"){let L=`
2
+ $pid = ${String(q)}
3
+ $ancestors = @()
4
+ for ($i = 0; $i -lt ${G}; $i++) {
5
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
6
+ if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
7
+ $pid = $proc.ParentProcessId
8
+ $ancestors += $pid
9
+ }
10
+ $ancestors -join ','
11
+ `.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map((Z)=>parseInt(Z,10)).filter((Z)=>!isNaN(Z))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
12
+ `).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function qq(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=A(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function zq(q,G=10){if(process.platform==="win32"){let L=`
13
+ $currentPid = ${String(q)}
14
+ $commands = @()
15
+ for ($i = 0; $i -lt ${G}; $i++) {
16
+ $proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
17
+ if (-not $proc) { break }
18
+ if ($proc.CommandLine) { $commands += $proc.CommandLine }
19
+ if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
20
+ $currentPid = $proc.ParentProcessId
21
+ }
22
+ $commands -join [char]0
23
+ `.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var K=$(()=>{w()});import{chmod as a,mkdir as l,readdir as p,readFile as o,unlink as I,writeFile as j}from"fs/promises";import{join as Y}from"path";function _(){return Y(k(),"sessions")}function n(){return}async function vq(){if(P()!=null)return!1;let q=n()??"interactive",G=_(),J=Y(G,`${process.pid}.json`);R(async()=>{try{await I(J)}catch{}});try{return await l(G,{recursive:!0,mode:448}),await a(G,448),await j(J,O({pid:process.pid,sessionId:B(),cwd:M(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),y?.(),y=E((z)=>{v({sessionId:z})}),!0}catch(z){return X(`[concurrentSessions] register failed: ${V(z)}`),!1}}async function v(q){let G=Y(_(),`${process.pid}.json`);try{let J=W(await o(G,"utf8"));await j(G,O({...J,...q}))}catch(J){X(`[concurrentSessions] updatePidFile failed: ${V(J)}`)}}async function Aq(q){if(!q)return;await v({name:q})}async function b(q){await v({bridgeSessionId:q})}async function Hq(){let q=_(),G;try{G=await p(q)}catch(z){if(!N(z))X(`[concurrentSessions] readdir failed: ${V(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(H(L))J++;else if(T()!=="wsl")I(Y(q,z)).catch(()=>{})}return J}var y;var f=$(()=>{D();F();h();S();m();K();u();c();g()});function Eq(q){x=q,b(t()??null).catch(()=>{})}function r(){return x}function t(){let q=r();return q?C(q.bridgeSessionId):void 0}var x=null;var s=$(()=>{f();d()});
24
+ export{H as oX,e as pX,qq as qX,zq as rX,K as sX,vq as tX,Aq as uX,b as vX,Hq as wX,f as xX,Eq as yX,r as zX,t as AX,s as BX};
@@ -0,0 +1,3 @@
1
+ import{d2 as S,e2 as D,i2 as N}from"./cli-1.1.13-snkbv1w2.mjs";import{Rda as H,Rea as d,Sda as P,pga as X,tea as B,wea as O,xga as E}from"./cli-1.1.13-2mrqqgcm.mjs";import{$ka as f,Tka as U}from"./cli-1.1.13-6c4qxmj3.mjs";import{cla as W,nla as b}from"./cli-1.1.13-2m39r998.mjs";import{Ioa as T,Sqa as M}from"./cli-1.1.13-0y4933cs.mjs";import{Mra as j,csa as y}from"./cli-1.1.13-ev08z5ye.mjs";import{Asa as R,Esa as p}from"./cli-1.1.13-jdcqc6bd.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
3
+ export{zq as $e,Jq as af,C as bf,h as cf,Kq as df,Qq as ef,c as ff};
@@ -0,0 +1,2 @@
1
+ import{Xn as R,Yn as E,hG as h,jG as r}from"./cli-1.1.13-x79qava2.mjs";import{I0 as U,K0 as F,O0 as I,jZ as j,n1 as p}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as Z,M3 as L,N3 as N}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as S}from"./cli-1.1.13-wmpc2gzg.mjs";import{Fda as b,tda as B}from"./cli-1.1.13-2mrqqgcm.mjs";import{rja as H,uja as A}from"./cli-1.1.13-zgnxf8h2.mjs";import{Asa as P}from"./cli-1.1.13-jdcqc6bd.mjs";A();p();b();r();E();N();var O=P(j(),1),T=P(S(),1),v="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function s(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(u,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:v}),Z(I,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=L(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function u(){H("",{})}
2
+ export{v as Ya,s as Za};
@@ -0,0 +1,2 @@
1
+ import{Dsa as x,Esa as z}from"./cli-1.1.13-jdcqc6bd.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
2
+ export{A as j2,F as k2,G as l2,H as m2,J as n2};
@@ -0,0 +1,2 @@
1
+ import{Nd as Jq,Rd as Tq}from"./cli-1.1.13-gechs2yp.mjs";import{Wd as zq,Xd as bq}from"./cli-1.1.13-k5sbyjwd.mjs";import{AL as s,BL as _q,FL as a,IL as l,ML as t,RL as e,TL as Rq,WH as h,XH as fq,Xn as n,Yn as yq,_L as qq,cM as Fq,hG as r,iG as Gq,mL as S,pL as Nq,sM as D,vM as Cq}from"./cli-1.1.13-x79qava2.mjs";import{$Y as i,I0 as F,K0 as C,aZ as Kq,jZ as Bq,n1 as Oq}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as v,M3 as R,N3 as p}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as Lq}from"./cli-1.1.13-wmpc2gzg.mjs";import{caa as x,h_ as g,i_ as Zq,pga as m,u$ as o,u_ as $,v$ as Hq,w_ as Xq,xga as wq,zaa as vq}from"./cli-1.1.13-2mrqqgcm.mjs";import{uka as B,xka as Yq}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as Wq,Tka as P,Wka as u}from"./cli-1.1.13-6c4qxmj3.mjs";import{Asa as d,Esa as Vq}from"./cli-1.1.13-jdcqc6bd.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
2
+ export{Iq as Dd,Yz as Ed,Dq as Fd};
@@ -0,0 +1,2 @@
1
+ import{Esa as P}from"./cli-1.1.13-jdcqc6bd.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
2
+ export{k as KW,w as LW,H as MW,g as NW,V as OW,W as PW,L as QW,Y as RW};
@@ -0,0 +1,2 @@
1
+ import{Hc as k,Ic as P}from"./cli-1.1.13-pjxb9g99.mjs";import{Oc as O,Pc as A,Qc as f}from"./cli-1.1.13-z4p8zcbq.mjs";import{H7 as U,L7 as V,Q7 as j,w8 as E}from"./cli-1.1.13-gznvgt6g.mjs";import{Dea as Y,Iba as X,Jba as H,Pba as x,Rea as G,Yea as I,nfa as h,pga as K,tea as N,wea as J,xga as b}from"./cli-1.1.13-2mrqqgcm.mjs";import{$ka as L,Tka as F}from"./cli-1.1.13-6c4qxmj3.mjs";import{Sqa as T,goa as W}from"./cli-1.1.13-0y4933cs.mjs";import{Esa as y}from"./cli-1.1.13-jdcqc6bd.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
2
+ export{d as Cc,l as Dc,S as Ec,u as Fc};
@@ -0,0 +1,2 @@
1
+ import{Esa as H}from"./cli-1.1.13-jdcqc6bd.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
2
+ export{F as cha,K as dha,M as eha,N as fha,O as gha,P as hha,J as iha};
@@ -0,0 +1,2 @@
1
+ import{Csa as H,Esa as UJ}from"./cli-1.1.13-jdcqc6bd.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=H((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Cq.exports=C1});var uq=H((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=S1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=H((fJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Qq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var S0=H((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=H((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!zq(O,String(Z),J))return null;if(W&&!zq(O,String(W),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
2
+ export{W1 as d2,QQ as e2,WQ as f2,ZQ as g2,KQ as h2,FJ as i2};
@@ -0,0 +1,2 @@
1
+ import{Fh as b,Gh as i}from"./cli-1.1.13-tx4y2gtw.mjs";import{Hh as E,Ih as t}from"./cli-1.1.13-y6vdh2z1.mjs";import{VX as X,WX as s}from"./cli-1.1.13-r2qnta4s.mjs";import{I0 as L,K0 as B,n1 as m}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as $,N3 as F}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as n}from"./cli-1.1.13-wmpc2gzg.mjs";import{d_ as C,e_ as d}from"./cli-1.1.13-2mrqqgcm.mjs";import{Cga as O,Dga as l,Ega as P,Fga as w,Uga as o}from"./cli-1.1.13-kbf9vss4.mjs";import{Asa as r,Esa as a}from"./cli-1.1.13-jdcqc6bd.mjs";function Kq(J,q,H){if(J.startsWith("file-"))return H?b(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function Oq(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Qq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Zq({suggestions:J,selectedSuggestion:q,maxColumnWidth:H,overlay:K}){let{rows:A}=X(),Y=A-2,G=Y>=e?Math.min(qq,Y):Math.max(1,Y);if(J.length===0)return null;let k=H??Math.max(...J.map((Q)=>O(Q.displayText)))+5,V=Math.max(0,Math.min(q-Math.floor(G/2),J.length-G)),U=Math.min(V+G,J.length),Z=J.slice(V,U);return $(L,{flexDirection:"column",justifyContent:K?void 0:"flex-end",children:Z.map((Q)=>$(Yq,{item:Q,maxColumnWidth:k,isSelected:Q.id===J[q]?.id},`${Q.id}:${Q.id===J[q]?.id?"selected":"idle"}`))})}var v,e=8,qq=15,y,Jq=" ",f,j,Yq,Mq;var $q=a(()=>{d();s();l();m();i();o();t();F();v=r(n(),1),y=`${C.pointer} `,f=O(y),j=E();Yq=v.memo(function({item:q,maxColumnWidth:H,isSelected:K}){let A=X().columns,Y=K?y:Jq,G=K?"suggestion":void 0,k=K?"inverseText":void 0;if(Oq(q.id)){let D=Kq(q.id,q.displayText,j),I=!K,u=q.id.startsWith("file-"),x=q.id.startsWith("mcp-resource-"),Aq=2,Gq=4,R=q.description?3:0,z;if(u){let N=q.description?Math.min(20,O(q.description)):0,g=A-f-2-4-R-N;z=P(q.displayText,g)}else if(x)z=w(q.displayText,30);else z=q.displayText;let c=A-f-2-O(z)-R-4,M;if(q.description){let N=w(q.description.replace(/\s+/g," "),Math.max(0,c));M=`${Y}${D} ${z} - ${N}`}else M=`${Y}${D} ${z}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(B,{color:k,dimColor:I,bold:K,wrap:"truncate",children:M})})}let V=Math.floor(A*0.4),U=Math.min(H??O(q.displayText)+5,V),Z=q.displayText;if(O(Z)>U-2)Z=w(Z,U-2);let Q=Qq(q)?`${j?b(q.displayText):"+"} `:"",W=Y+Q+Z+" ".repeat(Math.max(0,U-O(Z))),_=q.tag?`[${q.tag}] `:"",S=O(_),p=Math.max(0,A-f-U-S-4),h=q.description?w(q.description.replace(/\s+/g," "),p):"",T=`${W}${_}${h}`;return $(L,{width:"100%",opaque:!0,backgroundColor:G,children:$(B,{color:k,dimColor:!K,bold:K,wrap:"truncate",children:T})})});Mq=v.memo(Zq)});
2
+ export{Zq as Ah,Mq as Bh,$q as Ch};
@@ -0,0 +1,3 @@
1
+ import{Dk as S,Dl as m,Ek as Iq,OC as P,Ol as W,PC as Zq,Rl as p,Sl as j,WH as d,XH as Yq,Xn as c,Yl as Jq,Yn as Xq,hG as l,iG as Aq,jm as F,oT as Oq,om as Vq,pT as Bq,rS as n,tS as _q}from"./cli-1.1.13-x79qava2.mjs";import{CU as i,DU as Lq}from"./cli-1.1.13-cg1m9a2x.mjs";import{I0 as M,K0 as E,jZ as Gq,n1 as Qq}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as Q,M3 as v,N3 as N}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as Kq}from"./cli-1.1.13-wmpc2gzg.mjs";import{u_ as R,w_ as Hq}from"./cli-1.1.13-2mrqqgcm.mjs";import{rja as y,uja as qq}from"./cli-1.1.13-zgnxf8h2.mjs";import{uka as T,xka as zq}from"./cli-1.1.13-ayx92dtj.mjs";import{Asa as k,Bsa as e,Esa as g}from"./cli-1.1.13-jdcqc6bd.mjs";function f(){(Bq(),e(Oq)).saveWorktreeState(null),S()}function u({onDone:G,onCancel:J}){let[V,H]=X.useState("loading"),[I,O]=X.useState([]),[z,Z]=X.useState(0),[_,K]=X.useState(),q=m();if(X.useEffect(()=>{async function A(){let B=[],Y=await R("git",["status","--porcelain"]);if(Y.stdout)B=Y.stdout.split(`
2
+ `).filter((U)=>U.trim()!==""),O(B);if(q){let{stdout:U}=await R("git",["rev-list","--count",`${q.originalHeadCommit}..HEAD`]),w=parseInt(U.trim())||0;if(Z(w),B.length===0&&w===0){H("removing"),j().then(()=>{process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.(),K("Worktree removed (no changes)")}).catch((s)=>{T(`Failed to clean up worktree: ${s}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway")}).finally(()=>{f()}).then(()=>{H("done")});return}else H("asking")}}A()},[q]),X.useEffect(()=>{if(V==="done")G(_)},[V,G,_]),!q)return G("No active worktree session found",{display:"system"}),null;if(V==="loading"||V==="done")return null;async function D(A){if(!q)return;let B=Boolean(q.tmuxSessionName);if(A==="keep"||A==="keep-with-tmux"){H("keeping"),y("",{commits:z,changed_files:I.length}),await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}if(F.cache.clear?.(),B)K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${q.tmuxSessionName}`);else K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}`);H("done")}else if(A==="keep-kill-tmux"){if(H("keeping"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}F.cache.clear?.(),K(`Worktree kept at ${q.worktreePath} on branch ${q.worktreeBranch}. Tmux session terminated.`),H("done")}else if(A==="remove"||A==="remove-with-tmux"){if(H("removing"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);try{await j(),process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.()}catch(U){T(`Failed to clean up worktree: ${U}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway"),H("done");return}finally{f()}let Y=B?" Tmux session terminated.":"";if(z>0&&I.length>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} and uncommitted changes were discarded.${Y}`);else if(z>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} on ${q.worktreeBranch} ${z===1?"was":"were"} discarded.${Y}`);else if(I.length>0)K(`Worktree removed. Uncommitted changes were discarded.${Y}`);else K(`Worktree removed.${Y}`);H("done")}}if(V==="keeping")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Keeping worktree…"})]});if(V==="removing")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Removing worktree…"})]});let h=q.worktreeBranch,b=I.length>0,$=z>0,L="";if(b&&$)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"} and ${z} ${z===1?"commit":"commits"} on ${h}. All will be lost if you remove.`;else if(b)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if($)L=`You have ${z} ${z===1?"commit":"commits"} on ${h}. The branch will be deleted if you remove the worktree.`;else L="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function o(){if(J){J();return}D("keep")}let x=b||$?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(q.tmuxSessionName),t=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${q.worktreePath}. Reattach with: tmux attach -t ${q.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${q.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:x}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${q.worktreePath}`},{label:"Remove worktree",value:"remove",description:x}];return Q(c,{title:"Exiting worktree session",subtitle:L,onCancel:o,children:Q(l,{defaultFocusValue:C?"keep-with-tmux":"keep",options:t,onChange:D})})}var X;var a=g(()=>{qq();zq();Qq();Hq();Vq();Iq();Zq();Jq();Aq();Xq();Yq();N();X=k(Kq(),1)});function Fq(){return i(Uq)??"Goodbye!"}function wq(G){let J=r.c(5),{showWorktree:V,onDone:H,onCancel:I}=G,O;if(J[0]!==H)O=async function(_){H(_??Fq()),await n(0,"prompt_input_exit")},J[0]=H,J[1]=O;else O=J[1];let z=O;if(V){let Z;if(J[2]!==I||J[3]!==z)Z=Q(u,{onDone:z,onCancel:I}),J[2]=I,J[3]=z,J[4]=Z;else Z=J[4];return Z}return null}var r,Uq;var Pq=g(()=>{Lq();_q();a();N();r=k(Gq(),1),Uq=["Goodbye!","See ya!","Bye!","Catch you later!"]});
3
+ export{wq as jc,Pq as kc};
@@ -0,0 +1,2 @@
1
+ import{rd as Y,sd as Z,td as _,wd as b}from"./cli-1.1.13-r9tfxszp.mjs";import{Md as X,Rd as V}from"./cli-1.1.13-gechs2yp.mjs";import{JL as T,OL as U,TL as O,UL as W,cM as S}from"./cli-1.1.13-x79qava2.mjs";import{uka as Q,xka as K}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as C,Uka as L}from"./cli-1.1.13-6c4qxmj3.mjs";V();K();C();S();O();b();function j(E,H,J){let G=new Set(H.plugins.map((v)=>v.name)),z=`@${J}`,q=[];for(let v of Object.keys(E.plugins)){if(!v.endsWith(z))continue;let h=v.slice(0,-z.length);if(!G.has(h))q.push(v)}return q}async function F(){await Y();let E=W(),H=Z(),J=await T(),G=[];for(let z of Object.keys(J))try{let q=await U(z);if(!q.forceRemoveDeletedPlugins)continue;let v=j(E,q,z);for(let h of v){if(h in H)continue;let R=E.plugins[h]??[];if(!R.some((A)=>A.scope==="user"||A.scope==="project"||A.scope==="local"))continue;for(let A of R){let{scope:B}=A;if(B!=="user"&&B!=="project"&&B!=="local")continue;try{await X(h,B)}catch($){Q(`Failed to auto-uninstall delisted plugin ${h} from ${B}: ${L($)}`,{level:"error"})}}await _(h),G.push(h)}}catch(q){Q(`Failed to check for delisted plugins in "${z}": ${L(q)}`,{level:"warn"})}return G}
2
+ export{F as Xa};
@@ -0,0 +1,4 @@
1
+ import{Bn as R,Cn as BJ,HE as k,IE as HJ,Zs as D,_s as hJ,lp as G,op as a}from"./cli-1.1.13-x79qava2.mjs";import{Y7 as ZJ,h8 as $J,w8 as bJ}from"./cli-1.1.13-gznvgt6g.mjs";import{Fda as jJ,I$ as C,J$ as GJ,K$ as h,L$ as FJ,M$ as u,N$ as kJ,rda as WJ}from"./cli-1.1.13-2mrqqgcm.mjs";import{Hha as gJ,vha as x}from"./cli-1.1.13-86kjp502.mjs";import{Aia as r,wia as q,yia as s,zia as Y}from"./cli-1.1.13-vxpmt3js.mjs";import{bja as M,gja as yJ}from"./cli-1.1.13-ykzv8nyq.mjs";import{Gja as o,Hja as CJ,Qja as n,Rja as EJ,Wja as l,Xja as TJ}from"./cli-1.1.13-ayx92dtj.mjs";import{Ala as A,Bla as wJ,Mla as f,Nla as PJ,Sqa as mJ,qma as c,rma as OJ,uma as H,vma as F,wma as I,wqa as QJ,xma as YJ,yla as g,yma as P,zla as zJ,zma as XJ}from"./cli-1.1.13-0y4933cs.mjs";import{$qa as K,ara as DJ}from"./cli-1.1.13-24284zna.mjs";import{Esa as B}from"./cli-1.1.13-jdcqc6bd.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
2
+ ${Q}
3
+ </${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
+ export{NQ as Kf,_J as Lf,JJ as Mf,bQ as Nf,uQ as Of,cJ as Pf,iQ as Qf,oJ as Rf};
@@ -0,0 +1,2 @@
1
+ import{wsa as n}from"./cli-1.1.13-6dcpjy34.mjs";import{Csa as r}from"./cli-1.1.13-jdcqc6bd.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
2
+ export{i as P9};
@@ -0,0 +1,2 @@
1
+ import{Esa as J}from"./cli-1.1.13-jdcqc6bd.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
2
+ export{K as Dh,Y as Eh,Z as Fh,V as Gh};
@@ -0,0 +1,24 @@
1
+ import{xg as _Q,zg as iQ}from"./cli-1.1.13-zq5f89xg.mjs";import{qi as WQ,ri as zX}from"./cli-1.1.13-a3zfe19b.mjs";import{DJ as JJ,EJ as mJ,Fs as CQ,LJ as GQ,MJ as KQ,NJ as VQ,OJ as OQ,Ps as qX,QJ as NQ,TJ as IJ,UJ as nJ,VJ as rJ,WJ as gQ,ZF as SJ,_F as YQ,yp as ZQ,zp as uQ}from"./cli-1.1.13-x79qava2.mjs";import{VX as bJ,WX as aJ,hY as BQ,jY as ZX,mY as FQ,nY as $X,tY as zJ,uY as iJ}from"./cli-1.1.13-r2qnta4s.mjs";import{$Y as LJ,D0 as FJ,E0 as CJ,F0 as oJ,I0 as N,K0 as M,U0 as t,aZ as lJ,c1 as e,n1 as WJ,sZ as BJ}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as q,M3 as _,N3 as s}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as AJ}from"./cli-1.1.13-wmpc2gzg.mjs";import{S8 as i,T8 as dJ}from"./cli-1.1.13-hg8x8693.mjs";import{pga as x,xga as DJ}from"./cli-1.1.13-2mrqqgcm.mjs";import{Cga as f,Dga as pJ,Fga as n,Jga as uJ,Oga as vJ,Uga as kQ}from"./cli-1.1.13-kbf9vss4.mjs";import{Dia as UQ,Fia as aQ}from"./cli-1.1.13-ykzv8nyq.mjs";import{Asa as OJ,Esa as qJ,Fsa as oQ}from"./cli-1.1.13-jdcqc6bd.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.13-nxkcga73.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};
@@ -0,0 +1,2 @@
1
+ function e(){return[]}async function i(){}
2
+ export{e as jb,i as kb};
@@ -0,0 +1,2 @@
1
+ import{Ew as m,Fw as e}from"./cli-1.1.13-x79qava2.mjs";import{Esa as n}from"./cli-1.1.13-jdcqc6bd.mjs";function c(o){t.setState(()=>[...o])}var t,r=()=>t.getState(),d;var s=n(()=>{e();t=m([]),d=t.subscribe});
2
+ export{r as zd,d as Ad,c as Bd,s as Cd};
@@ -0,0 +1,26 @@
1
+ class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
2
+ - a short flag is a single dash and a single character
3
+ - either use a single dash and a single character (for a short flag)
4
+ - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
5
+ - too many short flags`);if(Y.test($))throw Error(`${_}
6
+ - too many long flags`);throw Error(`${_}
7
+ - unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
8
+ `)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
9
+ `+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
10
+ ${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
11
+ `)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
12
+ (Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
13
+ (Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
14
+ - specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
15
+ Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
16
+ - already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
17
+ - either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
18
+ - if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
19
+ - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
20
+ - ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
21
+ `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
22
+ `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
23
+ `),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
24
+ `),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
25
+ Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
26
+ `)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as X,S as Y,E as Z};