@claudiolabs/claudin 1.1.7 → 1.1.9

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 (918) hide show
  1. package/dist/chunks/AgentTool-1.1.9-wkz9sjmc.mjs +1 -0
  2. package/dist/chunks/App-1.1.9-xgs7khyz.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-1.1.9-7gfmxnyz.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-1.1.9-pf08j23x.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-1.1.9-4ze1tfxe.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-1.1.9-ztaz7kpc.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.9-hzpy5qvh.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-1.1.9-ajjzhfrp.mjs +1 -0
  9. package/dist/chunks/DiffDialog-1.1.9-m3n0bamd.mjs +7 -0
  10. package/dist/chunks/Doctor-1.1.9-74y6nka7.mjs +1 -0
  11. package/dist/chunks/ExplorerDialog-1.1.9-9av1q0k2.mjs +6 -0
  12. package/dist/chunks/Grove-1.1.9-me7gmbqp.mjs +1 -0
  13. package/dist/chunks/ITermBackend-1.1.9-776dpey8.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.9-gzyybqqn.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.9-e71y6pr4.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.9-4bkckq3q.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.9-d6c3hrvj.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.9-2dk7z5b6.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.9-ds8mvm64.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.9-2z1ye829.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.9-68k8x7yf.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.9-anh2z73y.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.9-tedma9q3.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.9-3n1b2vrf.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.9-63awezwe.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.9-msa503cz.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.9-w058z417.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.9-t27aw1nb.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.9-dxvbnrfa.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.9-3kevh6af.mjs +1 -0
  31. package/dist/chunks/agents-1.1.9-eabf2wdc.mjs +3 -0
  32. package/dist/chunks/agents-1.1.9-nj93ac5m.mjs +110 -0
  33. package/dist/chunks/api-1.1.9-m1mrnd2p.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.9-d0kjtphm.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.9-e3zkxz2m.mjs +1 -0
  36. package/dist/chunks/auth-1.1.9-8qm9p05y.mjs +1 -0
  37. package/dist/chunks/auth-1.1.9-gm4sybx1.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.9-p9fppced.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.9-m6etj2pr.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.9-4hvzygqr.mjs +1 -0
  41. package/dist/chunks/branch-1.1.9-wqszm8z2.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.9-h886wtcd.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.9-ehv4dp42.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.9-8qkc9feq.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.9-1sdw2z47.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.9-bvwdykpj.mjs +1 -0
  47. package/dist/chunks/btw-1.1.9-sm4j5bt8.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.9-fesnzyh6.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.9-6kzb7z5q.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.9-9j06fcrx.mjs +4 -0
  51. package/dist/chunks/caches-1.1.9-4g38wyxp.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.9-gd3bgkhe.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.9-7xr0h7qv.mjs +1 -0
  54. package/dist/chunks/clear-1.1.9-nadfsynk.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.9-48k9fftx.mjs +1 -0
  56. package/dist/chunks/cli-1.1.9-06k8vem7.mjs +3 -0
  57. package/dist/chunks/cli-1.1.9-0da4szeq.mjs +2 -0
  58. package/dist/chunks/cli-1.1.9-0dcyhvk3.mjs +2 -0
  59. package/dist/chunks/cli-1.1.9-0evqvwgb.mjs +2 -0
  60. package/dist/chunks/cli-1.1.9-0h7f33hw.mjs +66 -0
  61. package/dist/chunks/cli-1.1.9-0s7kmsaa.mjs +6 -0
  62. package/dist/chunks/cli-1.1.9-0w9c82qd.mjs +2 -0
  63. package/dist/chunks/cli-1.1.9-1932rbs7.mjs +2 -0
  64. package/dist/chunks/cli-1.1.9-1b1mw6v2.mjs +6 -0
  65. package/dist/chunks/cli-1.1.9-1ganj1qj.mjs +1 -0
  66. package/dist/chunks/cli-1.1.9-1gg4qe92.mjs +4 -0
  67. package/dist/chunks/cli-1.1.9-1q40zcz0.mjs +2 -0
  68. package/dist/chunks/cli-1.1.9-1ydmnrp6.mjs +2 -0
  69. package/dist/chunks/cli-1.1.9-223enqdr.mjs +2 -0
  70. package/dist/chunks/cli-1.1.9-22gp283h.mjs +2 -0
  71. package/dist/chunks/cli-1.1.9-260z6ry3.mjs +3 -0
  72. package/dist/chunks/cli-1.1.9-2t4pp98q.mjs +133 -0
  73. package/dist/chunks/cli-1.1.9-2wrs8key.mjs +9 -0
  74. package/dist/chunks/cli-1.1.9-2zeypqcv.mjs +3 -0
  75. package/dist/chunks/cli-1.1.9-3ajc04xt.mjs +4 -0
  76. package/dist/chunks/cli-1.1.9-3mgd7wkd.mjs +20 -0
  77. package/dist/chunks/cli-1.1.9-3nfhvvzw.mjs +3 -0
  78. package/dist/chunks/cli-1.1.9-3t9by3gn.mjs +2 -0
  79. package/dist/chunks/cli-1.1.9-4eqcxefk.mjs +4 -0
  80. package/dist/chunks/cli-1.1.9-4k5khbp0.mjs +5 -0
  81. package/dist/chunks/cli-1.1.9-4p8zymhf.mjs +2 -0
  82. package/dist/chunks/cli-1.1.9-4qctf8p1.mjs +2 -0
  83. package/dist/chunks/cli-1.1.9-4ygmyvas.mjs +2 -0
  84. package/dist/chunks/cli-1.1.9-4z0nxn7p.mjs +3 -0
  85. package/dist/chunks/cli-1.1.9-4z7ddbsc.mjs +3 -0
  86. package/dist/chunks/cli-1.1.9-573zndr8.mjs +2 -0
  87. package/dist/chunks/cli-1.1.9-5cr2dpgf.mjs +2 -0
  88. package/dist/chunks/cli-1.1.9-5hzaexj9.mjs +2 -0
  89. package/dist/chunks/cli-1.1.9-5v03p4xq.mjs +2 -0
  90. package/dist/chunks/cli-1.1.9-6a8pdm8s.mjs +2 -0
  91. package/dist/chunks/cli-1.1.9-6h5nwsn1.mjs +18 -0
  92. package/dist/chunks/cli-1.1.9-6kcc57kb.mjs +42 -0
  93. package/dist/chunks/cli-1.1.9-6mwsk9z2.mjs +2 -0
  94. package/dist/chunks/cli-1.1.9-6sv92w0b.mjs +2 -0
  95. package/dist/chunks/cli-1.1.9-79wdzxep.mjs +4 -0
  96. package/dist/chunks/cli-1.1.9-7y42yxmj.mjs +2 -0
  97. package/dist/chunks/cli-1.1.9-840ckwq8.mjs +2 -0
  98. package/dist/chunks/cli-1.1.9-890aswmq.mjs +2 -0
  99. package/dist/chunks/cli-1.1.9-8f0a6ved.mjs +2 -0
  100. package/dist/chunks/cli-1.1.9-8gkjdbxs.mjs +202 -0
  101. package/dist/chunks/cli-1.1.9-8gypdqm2.mjs +2 -0
  102. package/dist/chunks/cli-1.1.9-8sktt26v.mjs +2 -0
  103. package/dist/chunks/cli-1.1.9-8vfhjyxn.mjs +2 -0
  104. package/dist/chunks/cli-1.1.9-8xy2498p.mjs +2 -0
  105. package/dist/chunks/cli-1.1.9-8zhwfv3p.mjs +2 -0
  106. package/dist/chunks/cli-1.1.9-914mh2gv.mjs +16 -0
  107. package/dist/chunks/cli-1.1.9-97jvvqrz.mjs +2 -0
  108. package/dist/chunks/cli-1.1.9-98ypzgj0.mjs +25 -0
  109. package/dist/chunks/cli-1.1.9-9bqrz8qn.mjs +2 -0
  110. package/dist/chunks/cli-1.1.9-9f1te59e.mjs +2 -0
  111. package/dist/chunks/cli-1.1.9-9t7xx2r9.mjs +2 -0
  112. package/dist/chunks/cli-1.1.9-9yrwnzf6.mjs +2 -0
  113. package/dist/chunks/cli-1.1.9-a4c57zxm.mjs +21 -0
  114. package/dist/chunks/cli-1.1.9-a5z84t63.mjs +2 -0
  115. package/dist/chunks/cli-1.1.9-a6yyaw1d.mjs +2 -0
  116. package/dist/chunks/cli-1.1.9-a7x6qt7v.mjs +6 -0
  117. package/dist/chunks/cli-1.1.9-agbzpv77.mjs +2 -0
  118. package/dist/chunks/cli-1.1.9-ajr585mm.mjs +4 -0
  119. package/dist/chunks/cli-1.1.9-aqbj20gg.mjs +2 -0
  120. package/dist/chunks/cli-1.1.9-atdcgnab.mjs +2 -0
  121. package/dist/chunks/cli-1.1.9-atge24ab.mjs +2 -0
  122. package/dist/chunks/cli-1.1.9-ax8tkq65.mjs +2 -0
  123. package/dist/chunks/cli-1.1.9-b353901w.mjs +2 -0
  124. package/dist/chunks/cli-1.1.9-b3za9cts.mjs +2 -0
  125. package/dist/chunks/cli-1.1.9-b78c2fws.mjs +8 -0
  126. package/dist/chunks/cli-1.1.9-b9ykbj6y.mjs +17 -0
  127. package/dist/chunks/cli-1.1.9-bc22evty.mjs +2 -0
  128. package/dist/chunks/cli-1.1.9-bftwnbgn.mjs +5390 -0
  129. package/dist/chunks/cli-1.1.9-bfyz4xjz.mjs +2 -0
  130. package/dist/chunks/cli-1.1.9-bk3tqt6v.mjs +26 -0
  131. package/dist/chunks/cli-1.1.9-bwhdpxw6.mjs +12 -0
  132. package/dist/chunks/cli-1.1.9-c27gt3w1.mjs +2 -0
  133. package/dist/chunks/cli-1.1.9-c5wsttrd.mjs +2 -0
  134. package/dist/chunks/cli-1.1.9-c6nqtzv9.mjs +2 -0
  135. package/dist/chunks/cli-1.1.9-ckr5mgw1.mjs +25 -0
  136. package/dist/chunks/cli-1.1.9-ct1yqfqn.mjs +2 -0
  137. package/dist/chunks/cli-1.1.9-cwtcnyyj.mjs +2 -0
  138. package/dist/chunks/cli-1.1.9-d9wz5g8s.mjs +2 -0
  139. package/dist/chunks/cli-1.1.9-de902mzz.mjs +2 -0
  140. package/dist/chunks/cli-1.1.9-dh5213n0.mjs +2 -0
  141. package/dist/chunks/cli-1.1.9-dxt1d7jm.mjs +2 -0
  142. package/dist/chunks/cli-1.1.9-e0bejpfk.mjs +2 -0
  143. package/dist/chunks/cli-1.1.9-e1ak8jhn.mjs +12 -0
  144. package/dist/chunks/cli-1.1.9-e2ny87k0.mjs +15 -0
  145. package/dist/chunks/cli-1.1.9-e4jhw8xj.mjs +2 -0
  146. package/dist/chunks/cli-1.1.9-e5xq1msp.mjs +58 -0
  147. package/dist/chunks/cli-1.1.9-e6x7cyw4.mjs +2 -0
  148. package/dist/chunks/cli-1.1.9-egv4z3tf.mjs +2 -0
  149. package/dist/chunks/cli-1.1.9-ena9w4sg.mjs +24 -0
  150. package/dist/chunks/cli-1.1.9-etmwe3pd.mjs +2 -0
  151. package/dist/chunks/cli-1.1.9-ewst4gvt.mjs +2 -0
  152. package/dist/chunks/cli-1.1.9-ezkc7ag5.mjs +2 -0
  153. package/dist/chunks/cli-1.1.9-fcqz89mq.mjs +2 -0
  154. package/dist/chunks/cli-1.1.9-fdzgypr3.mjs +3 -0
  155. package/dist/chunks/cli-1.1.9-fqk44arm.mjs +45 -0
  156. package/dist/chunks/cli-1.1.9-frwdaeyw.mjs +2 -0
  157. package/dist/chunks/cli-1.1.9-fws7k6ak.mjs +2 -0
  158. package/dist/chunks/cli-1.1.9-fxyfgpjj.mjs +2 -0
  159. package/dist/chunks/cli-1.1.9-fy9kv0hx.mjs +2 -0
  160. package/dist/chunks/cli-1.1.9-fygnj03b.mjs +2 -0
  161. package/dist/chunks/cli-1.1.9-fzh3d8n1.mjs +2 -0
  162. package/dist/chunks/cli-1.1.9-ga16e8rd.mjs +3 -0
  163. package/dist/chunks/cli-1.1.9-gbtz45hn.mjs +3 -0
  164. package/dist/chunks/cli-1.1.9-gmb2wpqf.mjs +2 -0
  165. package/dist/chunks/cli-1.1.9-gpmbky2h.mjs +2 -0
  166. package/dist/chunks/cli-1.1.9-grhcdmgm.mjs +2 -0
  167. package/dist/chunks/cli-1.1.9-gttthtg1.mjs +2 -0
  168. package/dist/chunks/cli-1.1.9-gv5x5e8a.mjs +2 -0
  169. package/dist/chunks/cli-1.1.9-h45gam34.mjs +2 -0
  170. package/dist/chunks/cli-1.1.9-h66p9ghw.mjs +2 -0
  171. package/dist/chunks/cli-1.1.9-hq4kcpxc.mjs +2 -0
  172. package/dist/chunks/cli-1.1.9-j1bj4zfy.mjs +2 -0
  173. package/dist/chunks/cli-1.1.9-jah1vcdm.mjs +2 -0
  174. package/dist/chunks/cli-1.1.9-jaq6r6ba.mjs +2 -0
  175. package/dist/chunks/cli-1.1.9-jew2xd4p.mjs +2 -0
  176. package/dist/chunks/cli-1.1.9-jfyv5vb1.mjs +7 -0
  177. package/dist/chunks/cli-1.1.9-jmwr69v2.mjs +2 -0
  178. package/dist/chunks/cli-1.1.9-jn9kh16z.mjs +39 -0
  179. package/dist/chunks/cli-1.1.9-jqs0ktme.mjs +2 -0
  180. package/dist/chunks/cli-1.1.9-jqz75k6h.mjs +4 -0
  181. package/dist/chunks/cli-1.1.9-k0b62q76.mjs +2 -0
  182. package/dist/chunks/cli-1.1.9-k3tzdef2.mjs +50 -0
  183. package/dist/chunks/cli-1.1.9-k4gthvh4.mjs +4 -0
  184. package/dist/chunks/cli-1.1.9-k8kz8k9t.mjs +2 -0
  185. package/dist/chunks/cli-1.1.9-k9bbqwgs.mjs +2 -0
  186. package/dist/chunks/cli-1.1.9-kaxffmz4.mjs +2 -0
  187. package/dist/chunks/cli-1.1.9-kdavw6zm.mjs +2 -0
  188. package/dist/chunks/cli-1.1.9-kdgc8zvn.mjs +24 -0
  189. package/dist/chunks/cli-1.1.9-kdpv38ab.mjs +2 -0
  190. package/dist/chunks/cli-1.1.9-kgtexer1.mjs +2 -0
  191. package/dist/chunks/cli-1.1.9-khhnt4hq.mjs +2 -0
  192. package/dist/chunks/cli-1.1.9-khskdxps.mjs +6 -0
  193. package/dist/chunks/cli-1.1.9-kvk6ba28.mjs +2 -0
  194. package/dist/chunks/cli-1.1.9-kyn85fwa.mjs +15 -0
  195. package/dist/chunks/cli-1.1.9-kzqqvms6.mjs +34 -0
  196. package/dist/chunks/cli-1.1.9-m2x94hxw.mjs +5 -0
  197. package/dist/chunks/cli-1.1.9-md4ratv1.mjs +4 -0
  198. package/dist/chunks/cli-1.1.9-mdd84pmt.mjs +2 -0
  199. package/dist/chunks/cli-1.1.9-mgm6zdpx.mjs +2 -0
  200. package/dist/chunks/cli-1.1.9-mk4nfh2a.mjs +2 -0
  201. package/dist/chunks/cli-1.1.9-mp2pqq66.mjs +24 -0
  202. package/dist/chunks/cli-1.1.9-mt1mshmr.mjs +2 -0
  203. package/dist/chunks/cli-1.1.9-mw0y14ny.mjs +133 -0
  204. package/dist/chunks/cli-1.1.9-mz91g55f.mjs +4 -0
  205. package/dist/chunks/cli-1.1.9-n2qz0enm.mjs +2 -0
  206. package/dist/chunks/cli-1.1.9-n886v2tr.mjs +2 -0
  207. package/dist/chunks/cli-1.1.9-nacg7asv.mjs +2 -0
  208. package/dist/chunks/cli-1.1.9-nadf4arq.mjs +2 -0
  209. package/dist/chunks/cli-1.1.9-nbdn95s0.mjs +2 -0
  210. package/dist/chunks/cli-1.1.9-nbtds7y5.mjs +2 -0
  211. package/dist/chunks/cli-1.1.9-p24jbscq.mjs +2 -0
  212. package/dist/chunks/cli-1.1.9-pdcfc5y5.mjs +3 -0
  213. package/dist/chunks/cli-1.1.9-pjfvmwr9.mjs +2 -0
  214. package/dist/chunks/cli-1.1.9-ppnsbsqg.mjs +2 -0
  215. package/dist/chunks/cli-1.1.9-pr2kkmf8.mjs +15 -0
  216. package/dist/chunks/cli-1.1.9-pxbfakmz.mjs +2 -0
  217. package/dist/chunks/cli-1.1.9-q384fwfa.mjs +2 -0
  218. package/dist/chunks/cli-1.1.9-qc93tafw.mjs +2 -0
  219. package/dist/chunks/cli-1.1.9-qr51aqsa.mjs +2 -0
  220. package/dist/chunks/cli-1.1.9-r5gk3nve.mjs +2 -0
  221. package/dist/chunks/cli-1.1.9-r7g33857.mjs +2 -0
  222. package/dist/chunks/cli-1.1.9-r7gng5fx.mjs +2 -0
  223. package/dist/chunks/cli-1.1.9-rawga9ty.mjs +2 -0
  224. package/dist/chunks/cli-1.1.9-rh6wjwvg.mjs +2 -0
  225. package/dist/chunks/cli-1.1.9-rjztj1ez.mjs +9 -0
  226. package/dist/chunks/cli-1.1.9-rmd68sfp.mjs +2 -0
  227. package/dist/chunks/cli-1.1.9-rvmgrj4q.mjs +2 -0
  228. package/dist/chunks/cli-1.1.9-s52npgq0.mjs +2 -0
  229. package/dist/chunks/cli-1.1.9-s5b8svr6.mjs +3 -0
  230. package/dist/chunks/cli-1.1.9-sbmesghv.mjs +2 -0
  231. package/dist/chunks/cli-1.1.9-se5tezpj.mjs +3 -0
  232. package/dist/chunks/cli-1.1.9-spn11xgr.mjs +2 -0
  233. package/dist/chunks/cli-1.1.9-sqfgvaz9.mjs +2 -0
  234. package/dist/chunks/cli-1.1.9-sxsgvz9x.mjs +2 -0
  235. package/dist/chunks/cli-1.1.9-tcx9qwzz.mjs +18 -0
  236. package/dist/chunks/cli-1.1.9-tt85wfyx.mjs +2 -0
  237. package/dist/chunks/cli-1.1.9-txs7wza6.mjs +59 -0
  238. package/dist/chunks/cli-1.1.9-tze0002b.mjs +4 -0
  239. package/dist/chunks/cli-1.1.9-v4hh4r8g.mjs +2 -0
  240. package/dist/chunks/cli-1.1.9-v6dh85e0.mjs +4 -0
  241. package/dist/chunks/cli-1.1.9-vhsgp7b5.mjs +2 -0
  242. package/dist/chunks/cli-1.1.9-vmggmsba.mjs +2 -0
  243. package/dist/chunks/cli-1.1.9-w3xqbxyp.mjs +2 -0
  244. package/dist/chunks/cli-1.1.9-w462299v.mjs +3 -0
  245. package/dist/chunks/cli-1.1.9-w4yjadk7.mjs +2 -0
  246. package/dist/chunks/cli-1.1.9-wg00txsx.mjs +2 -0
  247. package/dist/chunks/cli-1.1.9-wscqghf9.mjs +2 -0
  248. package/dist/chunks/cli-1.1.9-wsqhh56s.mjs +2 -0
  249. package/dist/chunks/cli-1.1.9-wx0fgtgp.mjs +3 -0
  250. package/dist/chunks/cli-1.1.9-wydc25pa.mjs +2 -0
  251. package/dist/chunks/cli-1.1.9-x1ame9j0.mjs +2 -0
  252. package/dist/chunks/cli-1.1.9-x9jz46tx.mjs +2 -0
  253. package/dist/chunks/cli-1.1.9-xa48sv5y.mjs +6 -0
  254. package/dist/chunks/cli-1.1.9-xccq68bp.mjs +2 -0
  255. package/dist/chunks/cli-1.1.9-xmqye6j6.mjs +2 -0
  256. package/dist/chunks/cli-1.1.9-xn1fx31s.mjs +2 -0
  257. package/dist/chunks/cli-1.1.9-xxwf95xq.mjs +17 -0
  258. package/dist/chunks/cli-1.1.9-ygp7jfm9.mjs +2 -0
  259. package/dist/chunks/cli-1.1.9-ytgc0me8.mjs +2 -0
  260. package/dist/chunks/cli-1.1.9-yw9403an.mjs +24 -0
  261. package/dist/chunks/cli-1.1.9-z0wenj5y.mjs +6 -0
  262. package/dist/chunks/cli-1.1.9-zhyjqy1b.mjs +2 -0
  263. package/dist/chunks/cli-1.1.9-zp9cpxw5.mjs +12 -0
  264. package/dist/chunks/cli-1.1.9-zv6e4k6z.mjs +2 -0
  265. package/dist/chunks/cli-1.1.9-zy71vgyg.mjs +2 -0
  266. package/dist/chunks/client-1.1.9-ew20apkg.mjs +1 -0
  267. package/dist/chunks/color-1.1.9-r9fb3e7k.mjs +1 -0
  268. package/dist/chunks/compact-1.1.9-ea493ntb.mjs +3 -0
  269. package/dist/chunks/config-1.1.9-6fxf7dj2.mjs +1 -0
  270. package/dist/chunks/config-1.1.9-snnk2z79.mjs +1 -0
  271. package/dist/chunks/constants-1.1.9-adx0a3k9.mjs +1 -0
  272. package/dist/chunks/context-1.1.9-nxs61bmq.mjs +1 -0
  273. package/dist/chunks/context-noninteractive-1.1.9-cppfq9pr.mjs +1 -0
  274. package/dist/chunks/conversation-1.1.9-3x6s0c83.mjs +1 -0
  275. package/dist/chunks/copilotHeaders-1.1.9-vvy4jfh7.mjs +1 -0
  276. package/dist/chunks/copy-1.1.9-sx84nhzr.mjs +9 -0
  277. package/dist/chunks/cost-1.1.9-msc3677c.mjs +1 -0
  278. package/dist/chunks/createSSHSession-1.1.9-cpa9c11q.mjs +1 -0
  279. package/dist/chunks/createSession-1.1.9-kapv4jes.mjs +1 -0
  280. package/dist/chunks/debug-1.1.9-h57648ft.mjs +1 -0
  281. package/dist/chunks/defaultActionDeps-1.1.9-j6kdarmk.mjs +1526 -0
  282. package/dist/chunks/desktop-1.1.9-4z5p38ma.mjs +1 -0
  283. package/dist/chunks/detectRepository-1.1.9-9c8ws2cg.mjs +1 -0
  284. package/dist/chunks/detection-1.1.9-2vb502cf.mjs +1 -0
  285. package/dist/chunks/diff-1.1.9-8m7str6k.mjs +1 -0
  286. package/dist/chunks/doctor-1.1.9-0f6jzgas.mjs +1 -0
  287. package/dist/chunks/doctorDiagnostic-1.1.9-w983dv1c.mjs +1 -0
  288. package/dist/chunks/earlyInput-1.1.9-c047s7qm.mjs +1 -0
  289. package/dist/chunks/effort-1.1.9-5qnffzr4.mjs +13 -0
  290. package/dist/chunks/engine-1.1.9-5jjj151c.mjs +1 -0
  291. package/dist/chunks/envLessBridgeConfig-1.1.9-jex25t6e.mjs +1 -0
  292. package/dist/chunks/envUtils-1.1.9-krdbmbwa.mjs +1 -0
  293. package/dist/chunks/environmentSelection-1.1.9-nbbgerx3.mjs +1 -0
  294. package/dist/chunks/environments-1.1.9-1t7bdxn2.mjs +1 -0
  295. package/dist/chunks/errors-1.1.9-e3vc9p8s.mjs +1 -0
  296. package/dist/chunks/exampleCommands-1.1.9-xazstg5e.mjs +1 -0
  297. package/dist/chunks/execFileNoThrow-1.1.9-c14n54h8.mjs +1 -0
  298. package/dist/chunks/exit-1.1.9-r4x4th0b.mjs +1 -0
  299. package/dist/chunks/explorer-1.1.9-wdzp1dsf.mjs +1 -0
  300. package/dist/chunks/export-1.1.9-0zmn3m1m.mjs +2 -0
  301. package/dist/chunks/extra-usage-1.1.9-v3cypezj.mjs +1 -0
  302. package/dist/chunks/extra-usage-noninteractive-1.1.9-1b722pj8.mjs +1 -0
  303. package/dist/chunks/fast-1.1.9-ys3bnnx1.mjs +1 -0
  304. package/dist/chunks/feedback-1.1.9-xtbxr07t.mjs +14 -0
  305. package/dist/chunks/firstPartyEventLogger-1.1.9-anc9n41n.mjs +1 -0
  306. package/dist/chunks/git-1.1.9-9dmxfhs7.mjs +1 -0
  307. package/dist/chunks/githubModelsCredentials-1.1.9-tyw52d6k.mjs +1 -0
  308. package/dist/chunks/goal-1.1.9-64kdsaz8.mjs +4 -0
  309. package/dist/chunks/grove-1.1.9-feqpprte.mjs +1 -0
  310. package/dist/chunks/growthbook-1.1.9-5haradn1.mjs +1 -0
  311. package/dist/chunks/headless-1.1.9-x413dfed.mjs +2 -0
  312. package/dist/chunks/heapdump-1.1.9-z0mn192y.mjs +6 -0
  313. package/dist/chunks/help-1.1.9-fsng3h1g.mjs +1 -0
  314. package/dist/chunks/hookChains-1.1.9-h0b5hx6z.mjs +3 -0
  315. package/dist/chunks/hooks-1.1.9-gsjxxhxg.mjs +79 -0
  316. package/dist/chunks/hooks-1.1.9-hhydka88.mjs +1 -0
  317. package/dist/chunks/ide-1.1.9-ke6a38yk.mjs +3 -0
  318. package/dist/chunks/image-processor-napi-1.1.9-0cf7sh4j.mjs +1 -0
  319. package/dist/chunks/inboundAttachments-1.1.9-j5vez7jv.mjs +1 -0
  320. package/dist/chunks/index-1.1.9-1cqvjp5p.mjs +1 -0
  321. package/dist/chunks/index-1.1.9-1pambxgy.mjs +1 -0
  322. package/dist/chunks/index-1.1.9-2gb6syse.mjs +1 -0
  323. package/dist/chunks/index-1.1.9-2sk8q3x9.mjs +30 -0
  324. package/dist/chunks/index-1.1.9-3wevfp37.mjs +1 -0
  325. package/dist/chunks/index-1.1.9-3xm5j58t.mjs +1 -0
  326. package/dist/chunks/index-1.1.9-66dcm0v8.mjs +1 -0
  327. package/dist/chunks/index-1.1.9-6skqhhzf.mjs +1 -0
  328. package/dist/chunks/index-1.1.9-97yrmssd.mjs +1 -0
  329. package/dist/chunks/index-1.1.9-a0nf5r6f.mjs +1 -0
  330. package/dist/chunks/index-1.1.9-a6c1xz4e.mjs +2 -0
  331. package/dist/chunks/index-1.1.9-ad1rhnqp.mjs +9 -0
  332. package/dist/chunks/index-1.1.9-bw0cax5s.mjs +2 -0
  333. package/dist/chunks/index-1.1.9-h341k1xk.mjs +1 -0
  334. package/dist/chunks/index-1.1.9-jneayavn.mjs +23 -0
  335. package/dist/chunks/index-1.1.9-nc3014dy.mjs +1 -0
  336. package/dist/chunks/index-1.1.9-r1qk4xvr.mjs +1 -0
  337. package/dist/chunks/index-1.1.9-sfyz5cb7.mjs +9 -0
  338. package/dist/chunks/index-1.1.9-sg4e7zkb.mjs +5 -0
  339. package/dist/chunks/index-1.1.9-wkj78xgk.mjs +1 -0
  340. package/dist/chunks/index-1.1.9-wqjwb4zm.mjs +1 -0
  341. package/dist/chunks/index-1.1.9-x3yr70wm.mjs +1 -0
  342. package/dist/chunks/index-1.1.9-yznkq9s3.mjs +1 -0
  343. package/dist/chunks/init-1.1.9-0pss5n1w.mjs +1 -0
  344. package/dist/chunks/initReplBridge-1.1.9-xn4x74kj.mjs +1 -0
  345. package/dist/chunks/ink-1.1.9-zwhy78y6.mjs +1 -0
  346. package/dist/chunks/insights-1.1.9-hgpde32q.mjs +870 -0
  347. package/dist/chunks/install-1.1.9-34x0hj9y.mjs +1 -0
  348. package/dist/chunks/install-github-app-1.1.9-9sw6tr8d.mjs +149 -0
  349. package/dist/chunks/install-slack-app-1.1.9-sddcp9xd.mjs +1 -0
  350. package/dist/chunks/instrumentation-1.1.9-b52jmsm9.mjs +1 -0
  351. package/dist/chunks/interactiveHelpers-1.1.9-9d7d8js5.mjs +1 -0
  352. package/dist/chunks/keybindings-1.1.9-8amnba42.mjs +2 -0
  353. package/dist/chunks/knowledge-1.1.9-kz84fs8v.mjs +2 -0
  354. package/dist/chunks/latestVersionCache-1.1.9-d4kwr00h.mjs +1 -0
  355. package/dist/chunks/loadAgentsDir-1.1.9-smk51q1t.mjs +1 -0
  356. package/dist/chunks/loadPluginHooks-1.1.9-a8ny49aa.mjs +1 -0
  357. package/dist/chunks/log-1.1.9-e9py7g1v.mjs +1 -0
  358. package/dist/chunks/main-1.1.9-vx43js6g.mjs +1 -0
  359. package/dist/chunks/managedEnv-1.1.9-zdhg1zfw.mjs +1 -0
  360. package/dist/chunks/mcp-1.1.9-66xztk7e.mjs +4 -0
  361. package/dist/chunks/mcp-1.1.9-6q4s5vpd.mjs +1 -0
  362. package/dist/chunks/mcp-1.1.9-sgvnwe73.mjs +17 -0
  363. package/dist/chunks/mcpb-1.1.9-67ew9jzm.mjs +1 -0
  364. package/dist/chunks/memory-1.1.9-d580fc8g.mjs +72 -0
  365. package/dist/chunks/model-1.1.9-n7gjmzqe.mjs +2 -0
  366. package/dist/chunks/model-1.1.9-r24h6ebx.mjs +1 -0
  367. package/dist/chunks/node-1.1.9-kx2wx79w.mjs +12 -0
  368. package/dist/chunks/oauth-1.1.9-mb03cbrk.mjs +1 -0
  369. package/dist/chunks/openaiShim-1.1.9-7n9g3sj8.mjs +14 -0
  370. package/dist/chunks/output-style-1.1.9-eb07k735.mjs +1 -0
  371. package/dist/chunks/package-L37ZVTF4-1.1.9-s5ve90jq.mjs +1 -0
  372. package/dist/chunks/parseConnectUrl-1.1.9-zdgekp41.mjs +1 -0
  373. package/dist/chunks/parser-1.1.9-v7w400w6.mjs +1 -0
  374. package/dist/chunks/passes-1.1.9-eq2gaejx.mjs +1 -0
  375. package/dist/chunks/permissions-1.1.9-e410dndk.mjs +1 -0
  376. package/dist/chunks/permissions-1.1.9-qdtk36nc.mjs +3 -0
  377. package/dist/chunks/plan-1.1.9-fz63v9vy.mjs +1 -0
  378. package/dist/chunks/plist-1.1.9-vvf1dmeh.mjs +1 -0
  379. package/dist/chunks/plugin-1.1.9-5wgxw7e5.mjs +29 -0
  380. package/dist/chunks/pluginStartupCheck-1.1.9-wsqp215d.mjs +1 -0
  381. package/dist/chunks/plugins-1.1.9-gn7vrvsn.mjs +9 -0
  382. package/dist/chunks/preActionHook-1.1.9-hk5p06zk.mjs +2 -0
  383. package/dist/chunks/print-1.1.9-ccqx25s0.mjs +57 -0
  384. package/dist/chunks/privacy-settings-1.1.9-53703vc6.mjs +1 -0
  385. package/dist/chunks/process-1.1.9-6e5jfgee.mjs +1 -0
  386. package/dist/chunks/processBashCommand-1.1.9-q27mqh31.mjs +1 -0
  387. package/dist/chunks/processSlashCommand-1.1.9-pmx45pst.mjs +9 -0
  388. package/dist/chunks/prompt-1.1.9-2374kg79.mjs +1 -0
  389. package/dist/chunks/prompt-1.1.9-rmzk76ja.mjs +1 -0
  390. package/dist/chunks/prompts-1.1.9-vw2cgjmn.mjs +1 -0
  391. package/dist/chunks/protocolHandler-1.1.9-5qy2tmvh.mjs +13 -0
  392. package/dist/chunks/provider-1.1.9-a55a0767.mjs +2 -0
  393. package/dist/chunks/providerProfiles-1.1.9-0qf6737w.mjs +1 -0
  394. package/dist/chunks/providerValidation-1.1.9-xy0peh3y.mjs +6 -0
  395. package/dist/chunks/rate-limit-options-1.1.9-3mv4vcm2.mjs +1 -0
  396. package/dist/chunks/registerSubcommands-1.1.9-xwrrc93y.mjs +34 -0
  397. package/dist/chunks/registry-1.1.9-nhs76azt.mjs +1 -0
  398. package/dist/chunks/release-notes-1.1.9-evdvm41n.mjs +5 -0
  399. package/dist/chunks/reload-plugins-1.1.9-nsan544v.mjs +2 -0
  400. package/dist/chunks/remote-env-1.1.9-wqd0jdhv.mjs +1 -0
  401. package/dist/chunks/remoteBridgeCore-1.1.9-epxhjpaw.mjs +1 -0
  402. package/dist/chunks/remoteSession-1.1.9-80pvqseg.mjs +1 -0
  403. package/dist/chunks/rename-1.1.9-t6q4frnz.mjs +1 -0
  404. package/dist/chunks/replBridgeHandle-1.1.9-fhcz3nmf.mjs +1 -0
  405. package/dist/chunks/replLauncher-1.1.9-k6bt66pp.mjs +1 -0
  406. package/dist/chunks/resume-1.1.9-f8pqevkb.mjs +2 -0
  407. package/dist/chunks/rewind-1.1.9-mqnvjgnw.mjs +1 -0
  408. package/dist/chunks/rootOptions-1.1.9-hm3xq5ew.mjs +1 -0
  409. package/dist/chunks/runWorkflowHeadless-1.1.9-yzzt2wgy.mjs +10 -0
  410. package/dist/chunks/sandbox-adapter-1.1.9-djbmdqmh.mjs +1 -0
  411. package/dist/chunks/sandbox-toggle-1.1.9-ca1f9nar.mjs +1 -0
  412. package/dist/chunks/session-1.1.9-1h4w7jv2.mjs +2 -0
  413. package/dist/chunks/sessionDiscovery-1.1.9-4xav26hz.mjs +1 -0
  414. package/dist/chunks/sessionFileAccessHooks-1.1.9-76sy9frv.mjs +1 -0
  415. package/dist/chunks/sessionStorage-1.1.9-054r3b21.mjs +1 -0
  416. package/dist/chunks/settings-1.1.9-6xnvy3wf.mjs +1 -0
  417. package/dist/chunks/setup-1.1.9-ryytyyyq.mjs +5 -0
  418. package/dist/chunks/sinks-1.1.9-1tmn5q67.mjs +1 -0
  419. package/dist/chunks/skills-1.1.9-21b3ema9.mjs +1 -0
  420. package/dist/chunks/startupProfiler-1.1.9-4cynjbh6.mjs +1 -0
  421. package/dist/chunks/startupUpdateCheck-1.1.9-0zeaaev8.mjs +1 -0
  422. package/dist/chunks/state-1.1.9-4vnhh3s5.mjs +1 -0
  423. package/dist/chunks/stats-1.1.9-n37acpyb.mjs +6 -0
  424. package/dist/chunks/status-1.1.9-e7fgh9na.mjs +1 -0
  425. package/dist/chunks/stickers-1.1.9-vpzantjb.mjs +1 -0
  426. package/dist/chunks/subprocessEnv-1.1.9-qja4apm2.mjs +1 -0
  427. package/dist/chunks/tasks-1.1.9-xvrvpcpf.mjs +1 -0
  428. package/dist/chunks/teamHelpers-1.1.9-kc45263x.mjs +1 -0
  429. package/dist/chunks/teammateModeSnapshot-1.1.9-5jf6f8yz.mjs +1 -0
  430. package/dist/chunks/teleport-1.1.9-f1mzkj3j.mjs +1 -0
  431. package/dist/chunks/terminalSetup-1.1.9-7xczc9pg.mjs +1 -0
  432. package/dist/chunks/theme-1.1.9-xnntw39r.mjs +1 -0
  433. package/dist/chunks/thinkback-1.1.9-2agv1je1.mjs +1 -0
  434. package/dist/chunks/thinkback-play-1.1.9-0f61agae.mjs +1 -0
  435. package/dist/chunks/toolPool-1.1.9-x4dvej7a.mjs +1 -0
  436. package/dist/chunks/toolSearch-1.1.9-2n3qz8m6.mjs +1 -0
  437. package/dist/chunks/tools-1.1.9-2st9wxya.mjs +1 -0
  438. package/dist/chunks/trustedDevice-1.1.9-24j13chh.mjs +1 -0
  439. package/dist/chunks/turndown.cjs-1.1.9-6a2bdbmc.mjs +69 -0
  440. package/dist/chunks/types-1.1.9-hx767c40.mjs +1 -0
  441. package/dist/chunks/ultrareviewCommand-1.1.9-1d65a9qv.mjs +4 -0
  442. package/dist/chunks/update-1.1.9-2qs71qk6.mjs +72 -0
  443. package/dist/chunks/upgrade-1.1.9-4m89wfqh.mjs +1 -0
  444. package/dist/chunks/upload-1.1.9-141vg13j.mjs +7 -0
  445. package/dist/chunks/upstreamproxy-1.1.9-1hh4dkwb.mjs +14 -0
  446. package/dist/chunks/url-handler-napi-1.1.9-awan17cf.mjs +1 -0
  447. package/dist/chunks/usage-1.1.9-3e6gg2kg.mjs +1 -0
  448. package/dist/chunks/util-1.1.9-jy80stt8.mjs +1 -0
  449. package/dist/chunks/utils-1.1.9-k4q7cea1.mjs +1 -0
  450. package/dist/chunks/vim-1.1.9-s13xmm4h.mjs +1 -0
  451. package/dist/chunks/watchLoop-1.1.9-cbww8p0b.mjs +13 -0
  452. package/dist/chunks/watcher-1.1.9-2mym56cs.mjs +1 -0
  453. package/dist/chunks/wiki-1.1.9-yyjrhwn4.mjs +132 -0
  454. package/dist/chunks/workflows-1.1.9-4jccerzk.mjs +1 -0
  455. package/dist/chunks/worktree-1.1.9-fq2ry5d2.mjs +1 -0
  456. package/dist/chunks/worktreeModeEnabled-1.1.9-42k3m5c3.mjs +1 -0
  457. package/dist/chunks/wrapper-1.1.9-8kjvkg3x.mjs +7 -0
  458. package/dist/cli.mjs +2 -2
  459. package/package.json +9 -9
  460. package/dist/chunks/AgentTool-1.1.7-ta4a3hax.mjs +0 -1
  461. package/dist/chunks/App-1.1.7-bb5w6zvz.mjs +0 -1
  462. package/dist/chunks/ApproveApiKey-1.1.7-92afe7m0.mjs +0 -1
  463. package/dist/chunks/AssistantSessionChooser-1.1.7-gx3qxf94.mjs +0 -1
  464. package/dist/chunks/AutoModeOptInDialog-1.1.7-d0as32bc.mjs +0 -1
  465. package/dist/chunks/BypassPermissionsModeDialog-1.1.7-etp5s6ps.mjs +0 -1
  466. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.7-9thhg137.mjs +0 -1
  467. package/dist/chunks/ConsoleOAuthFlow-1.1.7-wwv2cgzz.mjs +0 -1
  468. package/dist/chunks/DiffDialog-1.1.7-30wzw849.mjs +0 -7
  469. package/dist/chunks/Doctor-1.1.7-m040nz42.mjs +0 -1
  470. package/dist/chunks/ExplorerDialog-1.1.7-xemvy0mx.mjs +0 -6
  471. package/dist/chunks/Grove-1.1.7-0synn9dr.mjs +0 -1
  472. package/dist/chunks/ITermBackend-1.1.7-be5cx2dr.mjs +0 -1
  473. package/dist/chunks/InvalidConfigDialog-1.1.7-b37xct1d.mjs +0 -1
  474. package/dist/chunks/InvalidSettingsDialog-1.1.7-89avh225.mjs +0 -1
  475. package/dist/chunks/MigrationDialog-1.1.7-1k5yjmhb.mjs +0 -1
  476. package/dist/chunks/Onboarding-1.1.7-0qnmq973.mjs +0 -1
  477. package/dist/chunks/ProviderManager-1.1.7-h9tf58hn.mjs +0 -1
  478. package/dist/chunks/REPL-1.1.7-93jsr9mr.mjs +0 -1
  479. package/dist/chunks/ResumeConversation-1.1.7-gv6zzztg.mjs +0 -1
  480. package/dist/chunks/SnapshotUpdateDialog-1.1.7-p7e7703c.mjs +0 -1
  481. package/dist/chunks/TeleportProgress-1.1.7-p8bxj585.mjs +0 -1
  482. package/dist/chunks/TeleportRepoMismatchDialog-1.1.7-nz62ycxc.mjs +0 -1
  483. package/dist/chunks/TeleportResumeWrapper-1.1.7-p5pzbd37.mjs +0 -1
  484. package/dist/chunks/TmuxBackend-1.1.7-6wwv8wy2.mjs +0 -9
  485. package/dist/chunks/ToolSearchTool-1.1.7-cdgerv78.mjs +0 -1
  486. package/dist/chunks/TrustDialog-1.1.7-h6jenc4t.mjs +0 -1
  487. package/dist/chunks/activeProvider-1.1.7-3xbperzf.mjs +0 -1
  488. package/dist/chunks/add-dir-1.1.7-e1padvq0.mjs +0 -1
  489. package/dist/chunks/agentTypes-1.1.7-s8xd8r8v.mjs +0 -1
  490. package/dist/chunks/agents-1.1.7-a5ngvagv.mjs +0 -3
  491. package/dist/chunks/agents-1.1.7-c2hzc3gf.mjs +0 -110
  492. package/dist/chunks/api-1.1.7-fkvjxbac.mjs +0 -1
  493. package/dist/chunks/asciicast-1.1.7-9j8vqr1m.mjs +0 -1
  494. package/dist/chunks/assistant-1.1.7-fxfh1k7b.mjs +0 -1
  495. package/dist/chunks/auth-1.1.7-nrjefdt5.mjs +0 -1
  496. package/dist/chunks/auth-1.1.7-z48g7tsc.mjs +0 -1
  497. package/dist/chunks/autoMode-1.1.7-13583dda.mjs +0 -48
  498. package/dist/chunks/autoUpdater-1.1.7-s5qp83zy.mjs +0 -1
  499. package/dist/chunks/backgroundHousekeeping-1.1.7-4nc59aph.mjs +0 -1
  500. package/dist/chunks/branch-1.1.7-ar2367j0.mjs +0 -4
  501. package/dist/chunks/bridge-1.1.7-qk1825qz.mjs +0 -2
  502. package/dist/chunks/bridgeConfig-1.1.7-dfwv9704.mjs +0 -1
  503. package/dist/chunks/bridgeEnabled-1.1.7-ergk9b5s.mjs +0 -1
  504. package/dist/chunks/bridgeMain-1.1.7-re0t745d.mjs +0 -88
  505. package/dist/chunks/bridgePointer-1.1.7-pcfmgmj9.mjs +0 -1
  506. package/dist/chunks/btw-1.1.7-g8g55nje.mjs +0 -1
  507. package/dist/chunks/buddy-1.1.7-m8tx1e1a.mjs +0 -3
  508. package/dist/chunks/cacache-1.1.7-5t3nj244.mjs +0 -1
  509. package/dist/chunks/cache-probe-1.1.7-wk6sr8ma.mjs +0 -21
  510. package/dist/chunks/cacheStats-1.1.7-3wd7pt08.mjs +0 -4
  511. package/dist/chunks/caches-1.1.7-rwrwkfmc.mjs +0 -1
  512. package/dist/chunks/claudeDesktop-1.1.7-3pkhb5wd.mjs +0 -1
  513. package/dist/chunks/claudemd-1.1.7-zw1vywa0.mjs +0 -1
  514. package/dist/chunks/clear-1.1.7-xme70phr.mjs +0 -1
  515. package/dist/chunks/clearTerminal-1.1.7-cjgtkhn0.mjs +0 -1
  516. package/dist/chunks/cli-1.1.7-00r59ren.mjs +0 -2
  517. package/dist/chunks/cli-1.1.7-00xwy80x.mjs +0 -2
  518. package/dist/chunks/cli-1.1.7-07qdmr1e.mjs +0 -15
  519. package/dist/chunks/cli-1.1.7-0dn48gxn.mjs +0 -2
  520. package/dist/chunks/cli-1.1.7-0ptzaz8z.mjs +0 -15
  521. package/dist/chunks/cli-1.1.7-0sbdqb04.mjs +0 -45
  522. package/dist/chunks/cli-1.1.7-0yczgbvg.mjs +0 -133
  523. package/dist/chunks/cli-1.1.7-17ye23zw.mjs +0 -2
  524. package/dist/chunks/cli-1.1.7-1fyag9qs.mjs +0 -18
  525. package/dist/chunks/cli-1.1.7-1pt67y2k.mjs +0 -2
  526. package/dist/chunks/cli-1.1.7-1sjzdsvt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.7-1wwtwdd5.mjs +0 -2
  528. package/dist/chunks/cli-1.1.7-237ea9et.mjs +0 -2
  529. package/dist/chunks/cli-1.1.7-247qq37c.mjs +0 -2
  530. package/dist/chunks/cli-1.1.7-29jtrc18.mjs +0 -6
  531. package/dist/chunks/cli-1.1.7-2j5f9qsg.mjs +0 -2
  532. package/dist/chunks/cli-1.1.7-370fzee5.mjs +0 -202
  533. package/dist/chunks/cli-1.1.7-37vw5n8s.mjs +0 -4
  534. package/dist/chunks/cli-1.1.7-3c1fz3tj.mjs +0 -3
  535. package/dist/chunks/cli-1.1.7-3c59vjgs.mjs +0 -3
  536. package/dist/chunks/cli-1.1.7-3s5h7xwp.mjs +0 -2
  537. package/dist/chunks/cli-1.1.7-3yd94afn.mjs +0 -2
  538. package/dist/chunks/cli-1.1.7-45h3r40v.mjs +0 -2
  539. package/dist/chunks/cli-1.1.7-4jb3802k.mjs +0 -6
  540. package/dist/chunks/cli-1.1.7-4vn54hra.mjs +0 -2
  541. package/dist/chunks/cli-1.1.7-4w65nb7a.mjs +0 -2
  542. package/dist/chunks/cli-1.1.7-53ptk5md.mjs +0 -2
  543. package/dist/chunks/cli-1.1.7-55sdnwxx.mjs +0 -2
  544. package/dist/chunks/cli-1.1.7-5a7dx8xv.mjs +0 -67
  545. package/dist/chunks/cli-1.1.7-5afzqeez.mjs +0 -2
  546. package/dist/chunks/cli-1.1.7-5hy6nrtz.mjs +0 -2
  547. package/dist/chunks/cli-1.1.7-5jtj2ksb.mjs +0 -2
  548. package/dist/chunks/cli-1.1.7-5p7dfxc8.mjs +0 -3
  549. package/dist/chunks/cli-1.1.7-5xg15za9.mjs +0 -2
  550. package/dist/chunks/cli-1.1.7-6327xnsa.mjs +0 -16
  551. package/dist/chunks/cli-1.1.7-6393tfa4.mjs +0 -2
  552. package/dist/chunks/cli-1.1.7-6k9j331s.mjs +0 -2
  553. package/dist/chunks/cli-1.1.7-709xp7h3.mjs +0 -2
  554. package/dist/chunks/cli-1.1.7-70dq06tj.mjs +0 -2
  555. package/dist/chunks/cli-1.1.7-72scj2da.mjs +0 -2
  556. package/dist/chunks/cli-1.1.7-77fv8msz.mjs +0 -4
  557. package/dist/chunks/cli-1.1.7-78k36t0w.mjs +0 -2
  558. package/dist/chunks/cli-1.1.7-7m4h7kpa.mjs +0 -4
  559. package/dist/chunks/cli-1.1.7-7ykpgzpd.mjs +0 -2
  560. package/dist/chunks/cli-1.1.7-7zf1vqxk.mjs +0 -2
  561. package/dist/chunks/cli-1.1.7-80x28qvs.mjs +0 -50
  562. package/dist/chunks/cli-1.1.7-89xnqhx8.mjs +0 -2
  563. package/dist/chunks/cli-1.1.7-8e3qerv0.mjs +0 -59
  564. package/dist/chunks/cli-1.1.7-8f779vem.mjs +0 -2
  565. package/dist/chunks/cli-1.1.7-8hfhdq9h.mjs +0 -2
  566. package/dist/chunks/cli-1.1.7-8ht7sy5z.mjs +0 -2
  567. package/dist/chunks/cli-1.1.7-8pdn9bvd.mjs +0 -2
  568. package/dist/chunks/cli-1.1.7-8wevpaq4.mjs +0 -25
  569. package/dist/chunks/cli-1.1.7-8yk0ktps.mjs +0 -26
  570. package/dist/chunks/cli-1.1.7-903dbpsw.mjs +0 -2
  571. package/dist/chunks/cli-1.1.7-91mbg6d2.mjs +0 -2
  572. package/dist/chunks/cli-1.1.7-9cr42mkf.mjs +0 -2
  573. package/dist/chunks/cli-1.1.7-9twa1dgn.mjs +0 -2
  574. package/dist/chunks/cli-1.1.7-9wapsqqm.mjs +0 -2
  575. package/dist/chunks/cli-1.1.7-a16gq5s9.mjs +0 -2
  576. package/dist/chunks/cli-1.1.7-a1sffgeq.mjs +0 -2
  577. package/dist/chunks/cli-1.1.7-a34vkb0g.mjs +0 -2
  578. package/dist/chunks/cli-1.1.7-a59w1d0k.mjs +0 -3
  579. package/dist/chunks/cli-1.1.7-a5zb1mk0.mjs +0 -4
  580. package/dist/chunks/cli-1.1.7-aa0r6myz.mjs +0 -3
  581. package/dist/chunks/cli-1.1.7-ac6ve6ks.mjs +0 -2
  582. package/dist/chunks/cli-1.1.7-ah2nkq02.mjs +0 -2
  583. package/dist/chunks/cli-1.1.7-aq4f719n.mjs +0 -2
  584. package/dist/chunks/cli-1.1.7-asb7164v.mjs +0 -18
  585. package/dist/chunks/cli-1.1.7-asnfms2j.mjs +0 -15
  586. package/dist/chunks/cli-1.1.7-avggtwyk.mjs +0 -2
  587. package/dist/chunks/cli-1.1.7-avhh3ykn.mjs +0 -2
  588. package/dist/chunks/cli-1.1.7-avqm93yx.mjs +0 -2
  589. package/dist/chunks/cli-1.1.7-avsxepp6.mjs +0 -2
  590. package/dist/chunks/cli-1.1.7-az0v3sy4.mjs +0 -39
  591. package/dist/chunks/cli-1.1.7-b9n3ev12.mjs +0 -2
  592. package/dist/chunks/cli-1.1.7-be3bepsr.mjs +0 -2
  593. package/dist/chunks/cli-1.1.7-bgyeh9f1.mjs +0 -5
  594. package/dist/chunks/cli-1.1.7-bmf232xq.mjs +0 -2
  595. package/dist/chunks/cli-1.1.7-bn38catj.mjs +0 -2
  596. package/dist/chunks/cli-1.1.7-bsg2jwaz.mjs +0 -2
  597. package/dist/chunks/cli-1.1.7-c1q5d5ds.mjs +0 -2
  598. package/dist/chunks/cli-1.1.7-c32f3enb.mjs +0 -2
  599. package/dist/chunks/cli-1.1.7-ca9b0k53.mjs +0 -3
  600. package/dist/chunks/cli-1.1.7-cfchvspf.mjs +0 -12
  601. package/dist/chunks/cli-1.1.7-cgcj8thk.mjs +0 -2
  602. package/dist/chunks/cli-1.1.7-cs5v2rwy.mjs +0 -2
  603. package/dist/chunks/cli-1.1.7-czrff7za.mjs +0 -3
  604. package/dist/chunks/cli-1.1.7-d44wcebs.mjs +0 -2
  605. package/dist/chunks/cli-1.1.7-dax2hwtd.mjs +0 -2
  606. package/dist/chunks/cli-1.1.7-dc8xhdv8.mjs +0 -4
  607. package/dist/chunks/cli-1.1.7-dnhbz3wm.mjs +0 -2
  608. package/dist/chunks/cli-1.1.7-dy1j64nd.mjs +0 -2
  609. package/dist/chunks/cli-1.1.7-e30xkgx8.mjs +0 -2
  610. package/dist/chunks/cli-1.1.7-e3ks80fz.mjs +0 -6
  611. package/dist/chunks/cli-1.1.7-e8rpt6jw.mjs +0 -2
  612. package/dist/chunks/cli-1.1.7-e9p7j4yw.mjs +0 -2
  613. package/dist/chunks/cli-1.1.7-esfdh0fz.mjs +0 -4
  614. package/dist/chunks/cli-1.1.7-eskazk5w.mjs +0 -4
  615. package/dist/chunks/cli-1.1.7-f0hcstcc.mjs +0 -2
  616. package/dist/chunks/cli-1.1.7-f47dycnc.mjs +0 -2
  617. package/dist/chunks/cli-1.1.7-fdmx4e0y.mjs +0 -2
  618. package/dist/chunks/cli-1.1.7-fh4kn809.mjs +0 -2
  619. package/dist/chunks/cli-1.1.7-fhatjz8y.mjs +0 -2
  620. package/dist/chunks/cli-1.1.7-fq766b4m.mjs +0 -2
  621. package/dist/chunks/cli-1.1.7-ftcsqcsq.mjs +0 -2
  622. package/dist/chunks/cli-1.1.7-ftxzdrxy.mjs +0 -2
  623. package/dist/chunks/cli-1.1.7-fzz66s7r.mjs +0 -2
  624. package/dist/chunks/cli-1.1.7-g69xsadf.mjs +0 -5652
  625. package/dist/chunks/cli-1.1.7-g84cjr3b.mjs +0 -2
  626. package/dist/chunks/cli-1.1.7-g9j8sjq1.mjs +0 -2
  627. package/dist/chunks/cli-1.1.7-gejatr5b.mjs +0 -3
  628. package/dist/chunks/cli-1.1.7-gjhe5v32.mjs +0 -3
  629. package/dist/chunks/cli-1.1.7-gm3vnavd.mjs +0 -4
  630. package/dist/chunks/cli-1.1.7-gsqhqm2p.mjs +0 -2
  631. package/dist/chunks/cli-1.1.7-gzqe35hp.mjs +0 -2
  632. package/dist/chunks/cli-1.1.7-h3m2ycf6.mjs +0 -2
  633. package/dist/chunks/cli-1.1.7-h6bad0y5.mjs +0 -2
  634. package/dist/chunks/cli-1.1.7-h8bj6vzr.mjs +0 -2
  635. package/dist/chunks/cli-1.1.7-hht84q9b.mjs +0 -2
  636. package/dist/chunks/cli-1.1.7-j5s1nhz9.mjs +0 -2
  637. package/dist/chunks/cli-1.1.7-k0cy37cc.mjs +0 -9
  638. package/dist/chunks/cli-1.1.7-k69a0vax.mjs +0 -2
  639. package/dist/chunks/cli-1.1.7-kbdranyx.mjs +0 -2
  640. package/dist/chunks/cli-1.1.7-m09c3zsc.mjs +0 -1
  641. package/dist/chunks/cli-1.1.7-m20ny6y6.mjs +0 -2
  642. package/dist/chunks/cli-1.1.7-m2jc7mts.mjs +0 -2
  643. package/dist/chunks/cli-1.1.7-m2rq9nq2.mjs +0 -2
  644. package/dist/chunks/cli-1.1.7-m4c2snne.mjs +0 -42
  645. package/dist/chunks/cli-1.1.7-m554nr3m.mjs +0 -2
  646. package/dist/chunks/cli-1.1.7-m7cx26gk.mjs +0 -2
  647. package/dist/chunks/cli-1.1.7-m7nyg4k2.mjs +0 -2
  648. package/dist/chunks/cli-1.1.7-m8kaqtm6.mjs +0 -2
  649. package/dist/chunks/cli-1.1.7-mxwxnfss.mjs +0 -24
  650. package/dist/chunks/cli-1.1.7-n642xdmn.mjs +0 -2
  651. package/dist/chunks/cli-1.1.7-n7ne87b1.mjs +0 -8
  652. package/dist/chunks/cli-1.1.7-natjc2r8.mjs +0 -2
  653. package/dist/chunks/cli-1.1.7-nay1q35s.mjs +0 -2
  654. package/dist/chunks/cli-1.1.7-ncn26e96.mjs +0 -2
  655. package/dist/chunks/cli-1.1.7-nctcfgp0.mjs +0 -2
  656. package/dist/chunks/cli-1.1.7-ndrf1r31.mjs +0 -2
  657. package/dist/chunks/cli-1.1.7-nywqmry6.mjs +0 -2
  658. package/dist/chunks/cli-1.1.7-p3a6cf8x.mjs +0 -2
  659. package/dist/chunks/cli-1.1.7-pcg3fv2k.mjs +0 -2
  660. package/dist/chunks/cli-1.1.7-phntwycy.mjs +0 -21
  661. package/dist/chunks/cli-1.1.7-pm52s8y4.mjs +0 -2
  662. package/dist/chunks/cli-1.1.7-q5cm825a.mjs +0 -6
  663. package/dist/chunks/cli-1.1.7-q711j0bm.mjs +0 -2
  664. package/dist/chunks/cli-1.1.7-qgh6hg9x.mjs +0 -2
  665. package/dist/chunks/cli-1.1.7-qgj0pn3h.mjs +0 -2
  666. package/dist/chunks/cli-1.1.7-qrkqafcw.mjs +0 -2
  667. package/dist/chunks/cli-1.1.7-qztj9jjs.mjs +0 -17
  668. package/dist/chunks/cli-1.1.7-r4j6e9vx.mjs +0 -2
  669. package/dist/chunks/cli-1.1.7-r8e45107.mjs +0 -3
  670. package/dist/chunks/cli-1.1.7-r9bf07me.mjs +0 -9
  671. package/dist/chunks/cli-1.1.7-rb629pva.mjs +0 -2
  672. package/dist/chunks/cli-1.1.7-rj70j99r.mjs +0 -4
  673. package/dist/chunks/cli-1.1.7-rtcac49z.mjs +0 -2
  674. package/dist/chunks/cli-1.1.7-sf4he5ds.mjs +0 -17
  675. package/dist/chunks/cli-1.1.7-sj06qxbn.mjs +0 -2
  676. package/dist/chunks/cli-1.1.7-sqb51kyw.mjs +0 -34
  677. package/dist/chunks/cli-1.1.7-svmaept7.mjs +0 -2
  678. package/dist/chunks/cli-1.1.7-svpmye16.mjs +0 -2
  679. package/dist/chunks/cli-1.1.7-sy3nh37g.mjs +0 -2
  680. package/dist/chunks/cli-1.1.7-t3vmh9fp.mjs +0 -12
  681. package/dist/chunks/cli-1.1.7-t4band33.mjs +0 -133
  682. package/dist/chunks/cli-1.1.7-t7869eaw.mjs +0 -2
  683. package/dist/chunks/cli-1.1.7-t9k89a7f.mjs +0 -12
  684. package/dist/chunks/cli-1.1.7-tdw09vfy.mjs +0 -6
  685. package/dist/chunks/cli-1.1.7-tebqyjfs.mjs +0 -2
  686. package/dist/chunks/cli-1.1.7-tj4a73gm.mjs +0 -2
  687. package/dist/chunks/cli-1.1.7-tpjej6bk.mjs +0 -2
  688. package/dist/chunks/cli-1.1.7-ttgr0wt8.mjs +0 -5
  689. package/dist/chunks/cli-1.1.7-v90pc090.mjs +0 -2
  690. package/dist/chunks/cli-1.1.7-v9fzr2wc.mjs +0 -25
  691. package/dist/chunks/cli-1.1.7-vbkerts0.mjs +0 -58
  692. package/dist/chunks/cli-1.1.7-veert5hx.mjs +0 -7
  693. package/dist/chunks/cli-1.1.7-vegzg3sv.mjs +0 -2
  694. package/dist/chunks/cli-1.1.7-vgnyrdsx.mjs +0 -2
  695. package/dist/chunks/cli-1.1.7-vhahreqp.mjs +0 -2
  696. package/dist/chunks/cli-1.1.7-vyxrgqgm.mjs +0 -2
  697. package/dist/chunks/cli-1.1.7-w7qe5saq.mjs +0 -24
  698. package/dist/chunks/cli-1.1.7-wczms3t6.mjs +0 -3
  699. package/dist/chunks/cli-1.1.7-wfpdnn8a.mjs +0 -2
  700. package/dist/chunks/cli-1.1.7-wnveck2c.mjs +0 -2
  701. package/dist/chunks/cli-1.1.7-wtb39gjs.mjs +0 -2
  702. package/dist/chunks/cli-1.1.7-wv4k34jv.mjs +0 -20
  703. package/dist/chunks/cli-1.1.7-wxge1tea.mjs +0 -24
  704. package/dist/chunks/cli-1.1.7-x1mh9vnk.mjs +0 -2
  705. package/dist/chunks/cli-1.1.7-x20kjfvg.mjs +0 -6
  706. package/dist/chunks/cli-1.1.7-x3bpzsev.mjs +0 -24
  707. package/dist/chunks/cli-1.1.7-x5gz0q3n.mjs +0 -2
  708. package/dist/chunks/cli-1.1.7-xbk0ex0w.mjs +0 -2
  709. package/dist/chunks/cli-1.1.7-xr9v14yb.mjs +0 -2
  710. package/dist/chunks/cli-1.1.7-xtcz12t9.mjs +0 -3
  711. package/dist/chunks/cli-1.1.7-xv2n043b.mjs +0 -4
  712. package/dist/chunks/cli-1.1.7-xzys836y.mjs +0 -2
  713. package/dist/chunks/cli-1.1.7-yatnaq1h.mjs +0 -2
  714. package/dist/chunks/cli-1.1.7-ybe5t1at.mjs +0 -2
  715. package/dist/chunks/cli-1.1.7-yejce50d.mjs +0 -2
  716. package/dist/chunks/cli-1.1.7-yf8r2p8t.mjs +0 -2
  717. package/dist/chunks/cli-1.1.7-yvfbn06j.mjs +0 -2
  718. package/dist/chunks/cli-1.1.7-z10gdn10.mjs +0 -2
  719. package/dist/chunks/cli-1.1.7-z7aapeb8.mjs +0 -2
  720. package/dist/chunks/cli-1.1.7-zaz1vdc9.mjs +0 -2
  721. package/dist/chunks/cli-1.1.7-zcxfemky.mjs +0 -2
  722. package/dist/chunks/cli-1.1.7-zk6vqjve.mjs +0 -4
  723. package/dist/chunks/cli-1.1.7-zpr5n1k0.mjs +0 -2
  724. package/dist/chunks/cli-1.1.7-zxr9h2qd.mjs +0 -2
  725. package/dist/chunks/client-1.1.7-zsnn57xt.mjs +0 -1
  726. package/dist/chunks/color-1.1.7-71p1dnta.mjs +0 -1
  727. package/dist/chunks/compact-1.1.7-e6arr03s.mjs +0 -3
  728. package/dist/chunks/config-1.1.7-g3d8g7g2.mjs +0 -1
  729. package/dist/chunks/config-1.1.7-nejamxf1.mjs +0 -1
  730. package/dist/chunks/constants-1.1.7-454c76bh.mjs +0 -1
  731. package/dist/chunks/context-1.1.7-p0442d4z.mjs +0 -1
  732. package/dist/chunks/context-noninteractive-1.1.7-v71njac2.mjs +0 -1
  733. package/dist/chunks/conversation-1.1.7-8ywg16g5.mjs +0 -1
  734. package/dist/chunks/copilotHeaders-1.1.7-qw0bnew9.mjs +0 -1
  735. package/dist/chunks/copy-1.1.7-dfdpmxck.mjs +0 -9
  736. package/dist/chunks/cost-1.1.7-2r3rhrq2.mjs +0 -1
  737. package/dist/chunks/createSSHSession-1.1.7-abvj6vqh.mjs +0 -1
  738. package/dist/chunks/createSession-1.1.7-a0t9ns7c.mjs +0 -1
  739. package/dist/chunks/debug-1.1.7-r660pqwp.mjs +0 -1
  740. package/dist/chunks/defaultActionDeps-1.1.7-79kexp4a.mjs +0 -1446
  741. package/dist/chunks/desktop-1.1.7-sy4n39yq.mjs +0 -1
  742. package/dist/chunks/detectRepository-1.1.7-p52dxbn9.mjs +0 -1
  743. package/dist/chunks/detection-1.1.7-8e2z2aph.mjs +0 -1
  744. package/dist/chunks/diff-1.1.7-yt5nf8gj.mjs +0 -1
  745. package/dist/chunks/doctor-1.1.7-emta4vaz.mjs +0 -1
  746. package/dist/chunks/doctorDiagnostic-1.1.7-4tam9mf5.mjs +0 -1
  747. package/dist/chunks/earlyInput-1.1.7-93ms6qsc.mjs +0 -1
  748. package/dist/chunks/effort-1.1.7-1fp3rh9f.mjs +0 -13
  749. package/dist/chunks/engine-1.1.7-yngz7phq.mjs +0 -1
  750. package/dist/chunks/envLessBridgeConfig-1.1.7-j2h0sf63.mjs +0 -1
  751. package/dist/chunks/envUtils-1.1.7-9y71p8yv.mjs +0 -1
  752. package/dist/chunks/environmentSelection-1.1.7-pd11v0zx.mjs +0 -1
  753. package/dist/chunks/environments-1.1.7-ck5qxyqy.mjs +0 -1
  754. package/dist/chunks/errors-1.1.7-emnk1qwy.mjs +0 -1
  755. package/dist/chunks/exampleCommands-1.1.7-2ksd03w4.mjs +0 -1
  756. package/dist/chunks/execFileNoThrow-1.1.7-jqbw02pg.mjs +0 -1
  757. package/dist/chunks/exit-1.1.7-wpfmrwdn.mjs +0 -1
  758. package/dist/chunks/explorer-1.1.7-b8tcxb5d.mjs +0 -1
  759. package/dist/chunks/export-1.1.7-zz79hhsz.mjs +0 -2
  760. package/dist/chunks/extra-usage-1.1.7-dt936zfb.mjs +0 -1
  761. package/dist/chunks/extra-usage-noninteractive-1.1.7-shwjbctc.mjs +0 -1
  762. package/dist/chunks/fast-1.1.7-w7b1aqwk.mjs +0 -1
  763. package/dist/chunks/feedback-1.1.7-n9j2nr98.mjs +0 -14
  764. package/dist/chunks/firstPartyEventLogger-1.1.7-c0a02n4j.mjs +0 -1
  765. package/dist/chunks/git-1.1.7-9z0c0q3r.mjs +0 -1
  766. package/dist/chunks/githubModelsCredentials-1.1.7-akhn8qhf.mjs +0 -1
  767. package/dist/chunks/goal-1.1.7-aw2580k9.mjs +0 -4
  768. package/dist/chunks/grove-1.1.7-kjhhr548.mjs +0 -1
  769. package/dist/chunks/growthbook-1.1.7-w746wv7x.mjs +0 -1
  770. package/dist/chunks/headless-1.1.7-y4j0h9z8.mjs +0 -2
  771. package/dist/chunks/heapdump-1.1.7-rct22hze.mjs +0 -6
  772. package/dist/chunks/help-1.1.7-y0c2ms52.mjs +0 -1
  773. package/dist/chunks/hookChains-1.1.7-xzn9ad36.mjs +0 -3
  774. package/dist/chunks/hooks-1.1.7-emcz8q8s.mjs +0 -79
  775. package/dist/chunks/hooks-1.1.7-jp0h65wb.mjs +0 -1
  776. package/dist/chunks/ide-1.1.7-x8w21qd6.mjs +0 -3
  777. package/dist/chunks/image-processor-napi-1.1.7-wy6ecw5p.mjs +0 -1
  778. package/dist/chunks/inboundAttachments-1.1.7-nw4e83c9.mjs +0 -1
  779. package/dist/chunks/index-1.1.7-189vzkzr.mjs +0 -1
  780. package/dist/chunks/index-1.1.7-23d4va8a.mjs +0 -2
  781. package/dist/chunks/index-1.1.7-36msf70m.mjs +0 -1
  782. package/dist/chunks/index-1.1.7-6nnrrxjs.mjs +0 -9
  783. package/dist/chunks/index-1.1.7-78kw401a.mjs +0 -1
  784. package/dist/chunks/index-1.1.7-9ag3vjcz.mjs +0 -1
  785. package/dist/chunks/index-1.1.7-abraka41.mjs +0 -1
  786. package/dist/chunks/index-1.1.7-apb8ray2.mjs +0 -1
  787. package/dist/chunks/index-1.1.7-b2e78mb7.mjs +0 -1
  788. package/dist/chunks/index-1.1.7-cxtqz2cx.mjs +0 -1
  789. package/dist/chunks/index-1.1.7-ep7qax1n.mjs +0 -5
  790. package/dist/chunks/index-1.1.7-fahb6z70.mjs +0 -1
  791. package/dist/chunks/index-1.1.7-g7me7k35.mjs +0 -1
  792. package/dist/chunks/index-1.1.7-gsdssjta.mjs +0 -2
  793. package/dist/chunks/index-1.1.7-n6c5mp02.mjs +0 -1
  794. package/dist/chunks/index-1.1.7-ngf7447d.mjs +0 -9
  795. package/dist/chunks/index-1.1.7-pbdmsdx4.mjs +0 -1
  796. package/dist/chunks/index-1.1.7-q3560epc.mjs +0 -23
  797. package/dist/chunks/index-1.1.7-ta1t48pj.mjs +0 -30
  798. package/dist/chunks/index-1.1.7-vrvbq3pq.mjs +0 -1
  799. package/dist/chunks/index-1.1.7-w3k1r4fj.mjs +0 -1
  800. package/dist/chunks/index-1.1.7-w40fc6hp.mjs +0 -1
  801. package/dist/chunks/index-1.1.7-wrysc35z.mjs +0 -1
  802. package/dist/chunks/init-1.1.7-35gnmfwk.mjs +0 -1
  803. package/dist/chunks/initReplBridge-1.1.7-tckq0ph3.mjs +0 -1
  804. package/dist/chunks/ink-1.1.7-00k9mpt1.mjs +0 -1
  805. package/dist/chunks/insights-1.1.7-0733jret.mjs +0 -870
  806. package/dist/chunks/install-1.1.7-hm4q4vg3.mjs +0 -1
  807. package/dist/chunks/install-github-app-1.1.7-td4vg9cd.mjs +0 -149
  808. package/dist/chunks/install-slack-app-1.1.7-wcg8aqqz.mjs +0 -1
  809. package/dist/chunks/instrumentation-1.1.7-c07a380v.mjs +0 -1
  810. package/dist/chunks/interactiveHelpers-1.1.7-46866tc9.mjs +0 -1
  811. package/dist/chunks/keybindings-1.1.7-8bb3ehzd.mjs +0 -2
  812. package/dist/chunks/knowledge-1.1.7-tvqfhagb.mjs +0 -2
  813. package/dist/chunks/latestVersionCache-1.1.7-21sf5wht.mjs +0 -1
  814. package/dist/chunks/loadAgentsDir-1.1.7-0fsxdwtb.mjs +0 -1
  815. package/dist/chunks/loadPluginHooks-1.1.7-dme9wkc4.mjs +0 -1
  816. package/dist/chunks/loadPluginHooks-1.1.7-tn0by9qv.mjs +0 -1
  817. package/dist/chunks/log-1.1.7-3ry9dq4f.mjs +0 -1
  818. package/dist/chunks/main-1.1.7-z35y86b1.mjs +0 -1
  819. package/dist/chunks/managedEnv-1.1.7-hkhdt6m1.mjs +0 -1
  820. package/dist/chunks/mcp-1.1.7-fhw7q8d8.mjs +0 -4
  821. package/dist/chunks/mcp-1.1.7-h76xwxj7.mjs +0 -1
  822. package/dist/chunks/mcp-1.1.7-qxaxb5n8.mjs +0 -17
  823. package/dist/chunks/mcpb-1.1.7-fh84mmcn.mjs +0 -1
  824. package/dist/chunks/memory-1.1.7-rja0b4e3.mjs +0 -72
  825. package/dist/chunks/model-1.1.7-8h1q1vva.mjs +0 -1
  826. package/dist/chunks/model-1.1.7-qn8a1vgp.mjs +0 -2
  827. package/dist/chunks/node-1.1.7-br2cm23q.mjs +0 -12
  828. package/dist/chunks/oauth-1.1.7-xprf6gf8.mjs +0 -1
  829. package/dist/chunks/openaiShim-1.1.7-xpv4sdj1.mjs +0 -14
  830. package/dist/chunks/output-style-1.1.7-gwp6rb3c.mjs +0 -1
  831. package/dist/chunks/package-L37ZVTF4-1.1.7-tv37rpat.mjs +0 -1
  832. package/dist/chunks/parseConnectUrl-1.1.7-hxb18rh0.mjs +0 -1
  833. package/dist/chunks/parser-1.1.7-gxryvbxk.mjs +0 -1
  834. package/dist/chunks/passes-1.1.7-pgn5svgj.mjs +0 -1
  835. package/dist/chunks/permissions-1.1.7-hgf49z9d.mjs +0 -3
  836. package/dist/chunks/permissions-1.1.7-vwc3xcnn.mjs +0 -1
  837. package/dist/chunks/plan-1.1.7-5pd1ezzt.mjs +0 -1
  838. package/dist/chunks/plist-1.1.7-bgk5tgcz.mjs +0 -1
  839. package/dist/chunks/plugin-1.1.7-b2da306j.mjs +0 -29
  840. package/dist/chunks/pluginStartupCheck-1.1.7-75pwt0x6.mjs +0 -1
  841. package/dist/chunks/plugins-1.1.7-wgq2tns5.mjs +0 -9
  842. package/dist/chunks/preActionHook-1.1.7-9jppavfm.mjs +0 -2
  843. package/dist/chunks/print-1.1.7-hcpp1psj.mjs +0 -57
  844. package/dist/chunks/privacy-settings-1.1.7-0rhg1990.mjs +0 -1
  845. package/dist/chunks/process-1.1.7-sz6mk2ax.mjs +0 -1
  846. package/dist/chunks/processBashCommand-1.1.7-h988ta18.mjs +0 -1
  847. package/dist/chunks/processSlashCommand-1.1.7-xj9yd54c.mjs +0 -9
  848. package/dist/chunks/prompt-1.1.7-9n1828tb.mjs +0 -1
  849. package/dist/chunks/prompt-1.1.7-xbh39c5a.mjs +0 -1
  850. package/dist/chunks/prompts-1.1.7-tm2b4n8b.mjs +0 -1
  851. package/dist/chunks/protocolHandler-1.1.7-x5r0fnay.mjs +0 -13
  852. package/dist/chunks/provider-1.1.7-8nkjfnp7.mjs +0 -2
  853. package/dist/chunks/providerProfiles-1.1.7-3hy3rra6.mjs +0 -1
  854. package/dist/chunks/providerValidation-1.1.7-wpwhgmgj.mjs +0 -6
  855. package/dist/chunks/rate-limit-options-1.1.7-qqwd9f98.mjs +0 -1
  856. package/dist/chunks/registerSubcommands-1.1.7-z933969a.mjs +0 -34
  857. package/dist/chunks/registry-1.1.7-zt717sdd.mjs +0 -1
  858. package/dist/chunks/release-notes-1.1.7-hkyqmgj0.mjs +0 -5
  859. package/dist/chunks/reload-plugins-1.1.7-90wc1rrg.mjs +0 -2
  860. package/dist/chunks/remote-env-1.1.7-gyhmvnmb.mjs +0 -1
  861. package/dist/chunks/remoteBridgeCore-1.1.7-kxpxxqbj.mjs +0 -1
  862. package/dist/chunks/remoteSession-1.1.7-931g1df4.mjs +0 -1
  863. package/dist/chunks/rename-1.1.7-pdcr2fqc.mjs +0 -1
  864. package/dist/chunks/replBridgeHandle-1.1.7-wp87p7xp.mjs +0 -1
  865. package/dist/chunks/replLauncher-1.1.7-7z04w8w8.mjs +0 -1
  866. package/dist/chunks/resume-1.1.7-8p8bahzg.mjs +0 -2
  867. package/dist/chunks/rewind-1.1.7-v2ajm3w0.mjs +0 -1
  868. package/dist/chunks/rootOptions-1.1.7-kj11gm8y.mjs +0 -1
  869. package/dist/chunks/runWorkflowHeadless-1.1.7-7d5db3vq.mjs +0 -10
  870. package/dist/chunks/sandbox-adapter-1.1.7-3waw05qr.mjs +0 -1
  871. package/dist/chunks/sandbox-toggle-1.1.7-zhrme3nq.mjs +0 -1
  872. package/dist/chunks/session-1.1.7-b11ew8hv.mjs +0 -2
  873. package/dist/chunks/sessionDiscovery-1.1.7-3w4gd5vr.mjs +0 -1
  874. package/dist/chunks/sessionFileAccessHooks-1.1.7-f1ktfmjp.mjs +0 -1
  875. package/dist/chunks/sessionStorage-1.1.7-0qj40f5g.mjs +0 -1
  876. package/dist/chunks/settings-1.1.7-ayf1fhp5.mjs +0 -1
  877. package/dist/chunks/setup-1.1.7-r7d17dtz.mjs +0 -5
  878. package/dist/chunks/sinks-1.1.7-agpm7pdt.mjs +0 -1
  879. package/dist/chunks/skills-1.1.7-xj1mgj1w.mjs +0 -1
  880. package/dist/chunks/startupProfiler-1.1.7-vy3ha1nb.mjs +0 -1
  881. package/dist/chunks/startupUpdateCheck-1.1.7-m03evcd7.mjs +0 -1
  882. package/dist/chunks/state-1.1.7-a4z499r3.mjs +0 -1
  883. package/dist/chunks/stats-1.1.7-jxbtehxs.mjs +0 -6
  884. package/dist/chunks/status-1.1.7-j7b4zw5r.mjs +0 -1
  885. package/dist/chunks/stickers-1.1.7-2feaa91e.mjs +0 -1
  886. package/dist/chunks/subprocessEnv-1.1.7-7yjfarpg.mjs +0 -1
  887. package/dist/chunks/tasks-1.1.7-74xbzaa7.mjs +0 -1
  888. package/dist/chunks/teamHelpers-1.1.7-y101nwrn.mjs +0 -1
  889. package/dist/chunks/teammateModeSnapshot-1.1.7-h5693rcg.mjs +0 -1
  890. package/dist/chunks/teleport-1.1.7-yjke98c8.mjs +0 -1
  891. package/dist/chunks/terminalSetup-1.1.7-tq3qth9s.mjs +0 -1
  892. package/dist/chunks/theme-1.1.7-5n3fsvh8.mjs +0 -1
  893. package/dist/chunks/thinkback-1.1.7-8wxb9n8q.mjs +0 -1
  894. package/dist/chunks/thinkback-play-1.1.7-rvzk8rt2.mjs +0 -1
  895. package/dist/chunks/toolPool-1.1.7-s3xnzfs1.mjs +0 -1
  896. package/dist/chunks/toolSearch-1.1.7-b99evmfg.mjs +0 -1
  897. package/dist/chunks/tools-1.1.7-1bs5mhnz.mjs +0 -1
  898. package/dist/chunks/trustedDevice-1.1.7-sk8ewavd.mjs +0 -1
  899. package/dist/chunks/turndown.cjs-1.1.7-tcj3tmer.mjs +0 -69
  900. package/dist/chunks/types-1.1.7-dt3wqg7h.mjs +0 -1
  901. package/dist/chunks/ultrareviewCommand-1.1.7-5d0eav8t.mjs +0 -4
  902. package/dist/chunks/update-1.1.7-cc4860dp.mjs +0 -72
  903. package/dist/chunks/upgrade-1.1.7-xnqh398m.mjs +0 -1
  904. package/dist/chunks/upload-1.1.7-e1023tbm.mjs +0 -7
  905. package/dist/chunks/upstreamproxy-1.1.7-54yd40wz.mjs +0 -14
  906. package/dist/chunks/url-handler-napi-1.1.7-98renjvs.mjs +0 -1
  907. package/dist/chunks/usage-1.1.7-vr50x59b.mjs +0 -1
  908. package/dist/chunks/util-1.1.7-07n3bcf9.mjs +0 -1
  909. package/dist/chunks/utils-1.1.7-2gs8qp9e.mjs +0 -1
  910. package/dist/chunks/vim-1.1.7-1hdr63bv.mjs +0 -1
  911. package/dist/chunks/watchLoop-1.1.7-dqnb4ew5.mjs +0 -13
  912. package/dist/chunks/watcher-1.1.7-0vhx6jqw.mjs +0 -1
  913. package/dist/chunks/wiki-1.1.7-hbab147s.mjs +0 -132
  914. package/dist/chunks/workflows-1.1.7-sqc7rhqm.mjs +0 -1
  915. package/dist/chunks/worktree-1.1.7-bgka176p.mjs +0 -1
  916. package/dist/chunks/worktreeModeEnabled-1.1.7-ddyrd6w3.mjs +0 -1
  917. package/dist/chunks/wrapper-1.1.7-tjp6nrw4.mjs +0 -7
  918. /package/dist/chunks/{cli-1.1.7-hr9a4wzy.mjs → cli-1.1.9-s66nvzb4.mjs} +0 -0
@@ -1,2 +0,0 @@
1
- import{md as K,nd as Y}from"./cli-1.1.7-wtb39gjs.mjs";import{Bl as G,Cl as B,Gl as U,Hl as V,Mp as H,Np as W,kN as J,sN as X}from"./cli-1.1.7-g69xsadf.mjs";import{hta as q,kta as v}from"./cli-1.1.7-a1sffgeq.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
2
- export{P as id,C as jd,A as kd,D as ld};
@@ -1,2 +0,0 @@
1
- import{Ak as Q,Bk as I,fS as R,oK as Y,vm as W,ym as P}from"./cli-1.1.7-g69xsadf.mjs";import{aha as B,bha as f}from"./cli-1.1.7-xv2n043b.mjs";import{Mja as F,qja as H,rja as J}from"./cli-1.1.7-svpmye16.mjs";import{yra as $,zna as v}from"./cli-1.1.7-avggtwyk.mjs";import{kta as Z}from"./cli-1.1.7-a1sffgeq.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
2
- export{S as bf,V as cf,X as df,r as ef,w as ff,T as gf,G as hf};
@@ -1,2 +0,0 @@
1
- import{Rh as B,Sh as EJ}from"./cli-1.1.7-5afzqeez.mjs";import{$n as LJ,AG as qQ,Ax as OJ,Bx as tJ,Ky as kq,Ly as _q,My as xJ,Nn as GJ,On as nJ,Rq as Sq,Tq as n,Uq as PJ,Zn as AJ,_n as rJ,ao as oJ,bo as RJ,br as VJ,co as aJ,er as jJ,gr as NJ,jy as gq,kr as qJ,ky as MJ,lr as $q,my as eJ,or as TJ,pr as JJ,yG as wJ}from"./cli-1.1.7-g69xsadf.mjs";import{DY as HJ,EY as sJ,HY as IJ,IY as hJ,QY as DJ,RY as lJ}from"./cli-1.1.7-rb629pva.mjs";import{EZ as pJ,I1 as dJ,b1 as O,d1 as D,f1 as dq,g1 as SJ}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as WJ,p4 as H,q4 as j,r4 as ZJ}from"./cli-1.1.7-1pt67y2k.mjs";import{s4 as iJ}from"./cli-1.1.7-ac6ve6ks.mjs";import{$6 as uq,C6 as fJ,E7 as FJ,I8 as BJ,J7 as KQ,b7 as s,b9 as UQ,i6 as mq,j6 as KJ,l6 as yq,l7 as i,o7 as Cq,s7 as cJ,x6 as UJ}from"./cli-1.1.7-6327xnsa.mjs";import{x9 as K,y9 as vJ}from"./cli-1.1.7-x20kjfvg.mjs";import{Pba as oq,Qba as aq,Rba as vq,Sba as lq,Tba as tq,Uba as eq,dca as mJ}from"./cli-1.1.7-370fzee5.mjs";import{Xja as XJ,_ja as $J}from"./cli-1.1.7-tj4a73gm.mjs";import{gta as YJ,kta as Rq}from"./cli-1.1.7-a1sffgeq.mjs";function sq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function gJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function z(J,q,Q){if(q.startsWith("ansi:")){let Y=q.slice(5);if(Q==="fg")return J[Y]??J;let X=`bg${Y[0].toUpperCase()}${Y.slice(1)}`;return J[X]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let Y=parseInt(q.slice(8));return Q==="fg"?J.ansi256(Y):J.bgAnsi256(Y)}let Z=CJ.exec(q);if(Z){let[Y,X,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(Y,X,U):J.bgRgb(Y,X,U)}return J}function LQ(J,q,Q,Z,Y){if(!B())return bJ(J,q,Q,Z,Y);let{suggestion:X,messageActionsBackground:U}=Y,G=U==="ansi:white"||U==="ansi:whiteBright"?Y.inactive:U,R=Y.inverseText,I=Y.suggestion,F=z(z(K,X,"bg"),R,"fg").bold,L=z(z(K,X,"fg"),G,"bg"),A=z(z(K,G,"bg"),I,"fg"),T=z(K,G,"fg"),Pq=z(K,X,"fg"),P=F(` ${J} `);if(q){if(P+=L(w),P+=A(` ${nq} ${q}`),Q>0||Z>0){if(P+=A(" ("),Q>0)P+=z(z(K,G,"bg"),Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)P+=A(" ");if(Z>0)P+=z(z(K,G,"bg"),Y.warning,"fg")(`↓${Z}`);P+=A(")")}P+=A(" "),P+=T(w)}else P+=Pq(w);return P}function RQ(J,q,Q){if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J)} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J} `)+U(w)}function DQ(J,q,Q){if(!J)return"";if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J.trim())} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function PQ(J,q,Q){if(!J)return"";if(!B())return`[ ${z(K,q.suggestion,"fg")(J.trim())} ]`;let Z=sq(q),Y=q.suggestion,X=z(z(K,Z,"bg"),Y,"fg"),U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function hq(J,q,Q){if(!J)return"";if(!B())return`[ ${J} ]`;let Z=z(z(K,q,"bg"),Q.inverseText,"fg").bold,Y=z(K,q,"fg");return Z(` ${J} `)+Y(w)}function VQ(J,q,Q,Z,Y){if(!J)return"";if(!B()){let L=z(K,Z.suggestion,"fg")(J);if(q>0||Q>0){if(L+=" (",q>0)L+=z(K,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)L+=" ";if(Q>0)L+=z(K,Z.warning,"fg")(`↓${Q}`);L+=")"}return`[ ${L} ]`}let X=sq(Z),U=Z.suggestion,G=z(z(K,X,"bg"),U,"fg"),R=Y?z(z(K,Y,"bg"),X,"fg"):z(K,X,"fg"),I=G(` ${nq} ${J}`);if(q>0||Q>0){if(I+=G(" ("),q>0)I+=z(z(K,X,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=G(" ");if(Q>0)I+=z(z(K,X,"bg"),Z.warning,"fg")(`↓${Q}`);I+=G(")")}return I+=G(" "),I+=R(w),I}function pq(J,q){if(!q||!dq())return J;return`${kq}${q}${_q}${J}${kq}${_q}`}function jQ(J,q,Q,Z="PR",Y){if(!B()){let F=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,L=pq(z(K,F,"fg")(`#${J}`),Y);return`[ ${z(K,Q.inactive,"fg")(Z)} ${L} ]`}let X=gJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,G=z(z(K,X,"bg"),Q.inactive,"fg"),R=z(z(K,X,"bg"),U,"fg"),I=z(K,X,"fg");return G(` ${yJ} `)+pq(R(`#${J}`),Y)+G(" ")+I(w)}function bJ(J,q,Q,Z,Y){let X=z(K,Y.suggestion,"fg").bold,U=`[ ${X(J)} ]`;if(q){let R=z(K,Y.suggestion,"fg")(q);if(Q>0||Z>0){if(R+=" (",Q>0)R+=z(K,Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)R+=" ";if(Z>0)R+=z(K,Y.warning,"fg")(`↓${Z}`);R+=")"}U+=` [ ${R} ]`}return U}var w="",nq="",yJ="",CJ;var rq=Rq(()=>{vJ();SJ();xJ();EJ();CJ=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function uJ(J,q){if(Sq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function wQ(J,q,Q){if(!n(q))return;let Z=qJ(q,J),Y=uJ(Z,Q);return{pill:hq(`${xq(Z)} ${Z}`,Y,Q),bg:Y}}function xq(J){if(Sq(J))return eq;switch(J){case"low":return oq;case"medium":return aq;case"high":return vq;case"xhigh":return lq;case"max":return tq;default:return vq}}var QJ=Rq(()=>{mJ();JJ();rq()});function dQ(J){let q=fq.c(82),{initial:Q,sessionModel:Z,onSelect:Y,onCancel:X,isStandaloneCommand:U,showFastModeNotice:G,headerText:R,skipSettingsWrite:I}=J,F=MJ(),L=IJ(),A=Q===null?h:Q,[T,Pq]=Dq.useState(A),P=gq(zQ),[k,kJ]=Dq.useState(!1),_=gq(ZQ),r;if(q[0]!==_)r=_!==void 0?$q(_):void 0,q[0]=_,q[1]=r;else r=q[1];let[v,cq]=Dq.useState(r),Vq=P??!1,o;if(q[2]!==Vq)o=OJ(Vq),q[2]=Vq,q[3]=o;else o=q[3];let p=o,jq;q:{if(Q!==null&&!p.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return s(i(String(W.value)))===s(i(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=Cq(Q),q[4]=Q,q[5]=W;else W=q[5];let V;if(q[6]!==Q||q[7]!==W)V={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=V;else V=q[8];let S;if(q[9]!==p||q[10]!==V)S=[...p,V],q[9]=p,q[10]=V,q[11]=S;else S=q[11];jq=S;break q}jq=p}let Nq=jq,a;if(q[12]!==Nq)a=Nq.map(QQ),q[12]=Nq,q[13]=a;else a=q[13];let N=a,l;if(q[14]!==A||q[15]!==N)l=N.find((W)=>{if(W.value===A)return!0;if(A===h||W.value===null)return!1;try{return s(i(String(W.value)))===s(i(String(A)))}catch{return!1}})?.value??N[0]?.value??void 0,q[14]=A,q[15]=N,q[16]=l;else l=q[16];let Tq=l,t=Math.min(10,N.length),e=Math.max(0,N.length-t),qq;if(q[17]!==T||q[18]!==N)qq=N.find((W)=>W.value===T)?.label,q[17]=T,q[18]=N,q[19]=qq;else qq=q[19];let Jq=qq,M,Qq;if(q[20]!==T){let W=bq(T);M=W?n(W):!1,Qq=W?PJ(W):!1,q[20]=T,q[21]=M,q[22]=Qq}else M=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==T)zq=Eq(T),q[23]=T,q[24]=zq;else zq=q[24];let x=zq,d=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==_||q[26]!==k)Yq=(W)=>{if(Pq(W),!k&&_===void 0)cq(Eq(W))},q[25]=_,q[26]=k,q[27]=Yq;else Yq=q[27];let Oq=Yq,Xq;if(q[28]!==x||q[29]!==M||q[30]!==Zq)Xq=(W)=>{if(!M)return;cq((V)=>YQ(V??x,W,Zq)),kJ(!0)},q[28]=x,q[29]=M,q[30]=Zq,q[31]=Xq;else Xq=q[31];let Kq=Xq,Uq;if(q[32]!==Kq)Uq={"modelPicker:decreaseEffort":()=>Kq("left"),"modelPicker:increaseEffort":()=>Kq("right")},q[32]=Kq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];HJ(Uq,Wq);let Gq;if(q[35]!==v||q[36]!==k||q[37]!==Y||q[38]!==F||q[39]!==I)Gq=function(V){if(XJ("tengu_model_command_menu_effort",{effort:v}),!I){let Bq=NJ(v,Eq(V),jJ(),k);if(Bq!==void 0)VJ(Bq);F((_J)=>({..._J,effortValue:Bq}))}let S=bq(V),iq=k&&S&&n(S)?v:void 0;if(V===h){Y(null,iq);return}Y(V,iq)},q[35]=v,q[36]=k,q[37]=Y,q[38]=F,q[39]=I,q[40]=Gq;else Gq=q[40];let Mq=Gq,Hq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Hq=H(D,{color:"remember",bold:!0,children:"Select model"}),q[41]=Hq;else Hq=q[41];let wq=R??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=H(D,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let y;if(q[44]!==Z)y=Z&&j(D,{dimColor:!0,children:["Currently using ",Cq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=y;else y=q[45];let C;if(q[46]!==E||q[47]!==y)C=j(O,{marginBottom:1,flexDirection:"column",children:[Hq,E,y]}),q[46]=E,q[47]=y,q[48]=C;else C=q[48];let Fq=X??JQ,g;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Tq||q[52]!==A||q[53]!==N||q[54]!==Fq||q[55]!==t)g=H(O,{flexDirection:"column",children:H(wJ,{defaultValue:A,defaultFocusValue:Tq,options:N,onChange:Mq,onFocus:Oq,onCancel:Fq,visibleOptionCount:t})}),q[49]=Oq,q[50]=Mq,q[51]=Tq,q[52]=A,q[53]=N,q[54]=Fq,q[55]=t,q[56]=g;else g=q[56];let b;if(q[57]!==e)b=e>0&&H(O,{paddingLeft:3,children:j(D,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=b;else b=q[58];let m;if(q[59]!==g||q[60]!==b)m=j(O,{flexDirection:"column",marginBottom:1,children:[g,b]}),q[59]=g,q[60]=b,q[61]=m;else m=q[61];let u;if(q[62]!==d||q[63]!==x||q[64]!==Jq||q[65]!==M)u=H(O,{marginBottom:1,flexDirection:"column",children:M?j(D,{dimColor:!0,children:[H(zJ,{effort:d})," ",GJ(d)," effort",d===x?" (default)":""," ",H(D,{color:"subtle",children:"← → to adjust"})]}):j(D,{color:"subtle",children:[H(zJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=d,q[63]=x,q[64]=Jq,q[65]=M,q[66]=u;else u=q[66];let $;if(q[67]!==G)$=mq()?G?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Fast mode is ",H(D,{bold:!0,children:"ON"})," and available with"," ",yq," only (/fast). Switching to other models turn off fast mode."]})}):KJ()&&!UJ()?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Use ",H(D,{bold:!0,children:"/fast"})," to turn on Fast mode (",yq," only)."]})}):null:null,q[67]=G,q[68]=$;else $=q[68];let f;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==$)f=j(O,{flexDirection:"column",children:[C,m,u,$]}),q[69]=C,q[70]=m,q[71]=u,q[72]=$,q[73]=f;else f=q[73];let c;if(q[74]!==L||q[75]!==U)c=U&&H(D,{dimColor:!0,italic:!0,children:L.pending?j(WJ,{children:["Press ",L.keyName," again to exit"]}):j(RJ,{children:[H(AJ,{shortcut:"Enter",action:"confirm"}),H(LJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=L,q[75]=U,q[76]=c;else c=q[76];let Iq;if(q[77]!==f||q[78]!==c)Iq=j(O,{flexDirection:"column",children:[f,c]}),q[77]=f,q[78]=c,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Lq;if(q[80]!==Aq)Lq=H(DJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Lq;else Lq=q[81];return Lq}function JQ(){}function QQ(J){return{...J,value:J.value===null?h:J.value}}function ZQ(J){return J.effortValue}function zQ(J){return mq()?J.fastMode:!1}function bq(J){if(!J)return;return J===h?uq():i(J)}function zJ(J){let q=fq.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",Y=Q??"low",X;if(q[0]!==Y)X=xq(Y),q[0]=Y,q[1]=X;else X=q[1];let U;if(q[2]!==Z||q[3]!==X)U=H(D,{color:Z,children:X}),q[2]=Z,q[3]=X,q[4]=U;else U=q[4];return U}function YQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],Y=Z.indexOf(J),X=Y!==-1?Y:Z.indexOf("high");if(q==="right")return Z[(X+1)%Z.length];else return Z[(X-1+Z.length)%Z.length]}function Eq(J){let q=bq(J)??uq(),Q=TJ(q);return Q!==void 0?$q(Q):"high"}var fq,Dq,h="__NO_PREFERENCE__";var XQ=Rq(()=>{nJ();hJ();$J();fJ();dJ();sJ();eJ();JJ();cJ();tJ();oJ();qQ();aJ();rJ();lJ();QJ();ZJ();fq=YJ(pJ(),1),Dq=YJ(iJ(),1)});function oQ(J,q,Q){if(!BJ())return!1;if(q)return!0;if(J===null||!FJ(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),Y=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),X=Z==="sonnet"||Z.includes("sonnet-4-6");if(Y&&Q)return!1;return Y||X}var WQ=Rq(()=>{UQ();KQ()});
2
- export{sq as _g,gJ as $g,LQ as ah,RQ as bh,DQ as ch,PQ as dh,VQ as eh,jQ as fh,rq as gh,wQ as hh,xq as ih,QJ as jh,dQ as kh,XQ as lh,oQ as mh,WQ as nh};
@@ -1,2 +0,0 @@
1
- import{EZ as u2,I1 as e2,NZ as Z,b1 as Y,d1 as u}from"./cli-1.1.7-8e3qerv0.mjs";import{p4 as t,q4 as o,r4 as U}from"./cli-1.1.7-1pt67y2k.mjs";import{Gba as X,Iba as j}from"./cli-1.1.7-370fzee5.mjs";import{gta as s}from"./cli-1.1.7-a1sffgeq.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.7"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.7"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.7"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.7"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
- export{c2 as ba};
@@ -1,25 +0,0 @@
1
- import{$x as Nq,CR as yq,DK as Pq,KK as Zq,MK as Uq,PJ as b,QJ as R,Qp as a,RJ as vq,Sp as Kq,UJ as p,VJ as S,WJ as zq,Wu as s,XJ as Bq,YJ as I,ZJ as k,_x as e,av as t,dl as r,eK as Jq,fK as Qq,fl as Wq,gv as Hq,jK as wq,mK as Vq,nK as Oq,pK as Yq,sB as qq,tB as Xq,wR as $q}from"./cli-1.1.7-g69xsadf.mjs";import{Rga as h,Zga as Fq}from"./cli-1.1.7-370fzee5.mjs";import{hja as n,jja as Lq}from"./cli-1.1.7-svpmye16.mjs";import{Fla as jq,rla as y}from"./cli-1.1.7-gm3vnavd.mjs";import{kta as M}from"./cli-1.1.7-a1sffgeq.mjs";function x(B,z){let J=g[z]??1,Z=B!==void 0?g[B]:void 0;if(Z===void 0)return z;return Z<=J?B:z}var g;var m=M(()=>{g={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
- …[truncated ${B.length-z} chars]`}function u(B,z,J,Z){let Y=[];if(Y.push(`You are a worker agent in the "${B.name}" workflow, phase "${Z.name}".`),B.instructions.trim())Y.push(`Workflow instructions:
3
- ${B.instructions.trim()}`);if(Y.push(`Task:
4
- ${z}`),J.trim())Y.push(`Work so far (accumulated artifact from earlier phases):
5
- ${C(J.trim(),Gq)}`);return Y.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),Y.join(`
6
-
7
- `)}function c(B,z){let J=[];if(J.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())J.push(`Workflow instructions:
8
- ${z.instructions.trim()}`);J.push(`Task:
9
- ${B.task}`);let Z=z.steps.findIndex((V)=>V.name===B.currentStep),Y=z.steps.map((V,Q)=>{let j=Q<Z?"[done]":Q===Z?"[current]":"[pending]",H=I(V)?" (terminal)":"";return` ${Q+1}. ${V.name} ${j}${H}`}).join(`
10
- `);if(J.push(`Phases:
11
- ${Y}`),B.history.length>0){let V=B.history.map((Q)=>{let j=Q.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
- ${C(q.output,f).split(`
13
- `).map((N)=>` ${N}`).join(`
14
- `)}`}).join(`
15
- `),H=Q.decision?` decision: ${Q.decision.decision}${Q.decision.target?` → ${Q.decision.target}`:""} — ${Q.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${Q.step}":
16
- ${j}
17
- ${Q.synthesis?` synthesis: ${C(Q.synthesis,f)}
18
- `:""}${H}`}).join(`
19
-
20
- `);J.push(`History (all phases so far):
21
- ${V}`)}let G=z.steps[Z]?.handbackTo??[];return J.push(G.length>0?`From the current phase you may hand back to: ${G.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),J.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),J.join(`
22
-
23
- `)}var f=4000,Gq=6000;var l=M(()=>{k()});function d(B,z,J){let Z=J.steps,Y=Z.findIndex((j)=>j.name===B.currentStep),$={...B.refineCounts},G=B.transitions+1,V=B.currentStep,Q="running";if(z.decision==="advance"){let j=Z[Y+1];if(I(j)){if(Q="done",j)V=j.name}else V=j.name}else if(z.decision==="refine"){if($[V]=($[V]??0)+1,$[V]>S)Q="stalled"}else{let j=Z[Y]?.handbackTo??[];if(!z.target||!j.includes(z.target))Q="stalled";else if($[z.target]=($[z.target]??0)+1,$[z.target]>S)Q="stalled";else V=z.target}if(Q==="running"&&G>=p)Q="stalled";return{...B,currentStep:V,status:Q,refineCounts:$,transitions:G,updatedAt:Date.now()}}var i=M(()=>{k()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function hq(B){let z="",J=0;for(let Y=B.length-1;Y>=0;Y--){let $=B[Y];if($.type!=="assistant"||!$.message)continue;if(!z){let G=($.message.content??[]).filter((V)=>V.type==="text"&&V.text);if(G.length>0)z=G.map((V)=>V.text??"").join(`
24
- `)}if(J===0&&$.message.usage)J=$q($.message.usage);if(z&&J)break}let Z=e(B);return{text:z,tokens:J,tools:Z}}async function o(B){let{label:z,agentDef:J,promptText:Z,toolUseContext:Y,canUseTool:$,extraTools:G,runId:V}=B,Q=Date.now(),j=Y.getAppState(),H=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(J.permissionMode,H)},L=Zq(q,j.mcp.tools);if(G&&G.length>0)L=[...L,...G];let N=J.model??String(Y.options.mainLoopModel??""),F=[],X,P=!1;try{let K=qq({agentDefinition:J,promptMessages:[Yq({content:Z})],toolUseContext:Y,canUseTool:$,isAsync:!1,querySource:a(J.agentType,s(J)),availableTools:L,transcriptSubdir:`workflows/${V}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let w of K)if(F.push(w),w.type==="attachment"&&w.attachment?.type==="structured_output")X=w.attachment.data}catch(K){if(y(K))throw K;h(K),P=!0}let{text:E,tokens:_,tools:v}=hq(F);return{run:{label:z,model:N,tokens:_,tools:v,ms:Date.now()-Q,output:P?"":E,failed:P},structuredOutput:X}}async function tq(B){let{def:z,task:J,toolUseContext:Z,canUseTool:Y,onProgress:$,signal:G}=B,{allAgents:V}=await t(n()),Q=new Map(V.map((N)=>[N.agentType,N]));Q.set(b,R);let j=Q.get(z.main??b)??R,H=new AbortController;if(G)if(G.aborted)H.abort();else G.addEventListener("abort",()=>H.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:J,firstStep:z.steps[0].name});$?.(q);let L=async()=>{await Qq(q),$?.(q)};while(q.status==="running"){if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let N=z.steps.findIndex((W)=>W.name===q.currentStep),F=z.steps[N];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let X;try{X=(await Vq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=Q.get(O);A=D?await o({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,J,q.artifact,F),toolUseContext:Z,canUseTool:Y,runId:q.runId,abortController:H}):T}catch(D){if(y(D))throw D;h(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let P={step:F.name,stepIndex:N,agents:X,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+X.reduce((W,O)=>W+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&X.every((W)=>W.failed)){h(Error(`workflow phase "${F.name}": all ${X.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){h(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],v;try{v=await o({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Z,canUseTool:Y,extraTools:_,runId:q.runId,abortController:H})}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let K=zq.safeParse(v.structuredOutput),w=[...q.history];if(w[w.length-1]={...P,synthesis:v.run.output,decision:K.success?K.data:null,agents:[...X,v.run]},q={...q,history:w,artifact:v.run.output.trim()?v.run.output:q.artifact,totalTokens:q.totalTokens+v.run.tokens,updatedAt:Date.now()},!K.success){h(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Hq();Nq();Xq();Wq();Lq();jq();Fq();Pq();Kq();yq();vq();m();l();wq();i();k()});
25
- export{tq as Ai,Eq as Bi};
@@ -1,26 +0,0 @@
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 y,S as z,E as A};
@@ -1,2 +0,0 @@
1
- import{I4 as N,N4 as $}from"./cli-1.1.7-nay1q35s.mjs";import{D8 as M,J5 as L,M5 as Y,b9 as Z}from"./cli-1.1.7-6327xnsa.mjs";import{Rga as Q,Zga as X}from"./cli-1.1.7-370fzee5.mjs";import{Vja as J,Wja as V}from"./cli-1.1.7-1sjzdsvt.mjs";import{Fla as S,xla as P}from"./cli-1.1.7-gm3vnavd.mjs";import{Ksa as W,ssa as K}from"./cli-1.1.7-w7qe5saq.mjs";import{kta as R}from"./cli-1.1.7-a1sffgeq.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
2
- export{C as iX,j as jX,b as kX};
@@ -1,2 +0,0 @@
1
- import{ai as j,ci as l}from"./cli-1.1.7-vbkerts0.mjs";import{mi as W,si as i}from"./cli-1.1.7-dc8xhdv8.mjs";import{$O as b,AO as M,CO as n,HQ as s,Mx as U,Nx as m,XT as G,Yw as B,Zj as Z,_j as P,aP as o,bj as Y,bw as $,bx as p,cj as A,cw as D,ex as N,fD as L,fx as g,gD as h,iU as r,jU as R,kC as d,kU as f,lU as F,mU as u,nU as t,oC as E,pC as C,xQ as x,xv as _,xz as V,zz as S}from"./cli-1.1.7-g69xsadf.mjs";import{p_ as Q,v_ as k}from"./cli-1.1.7-pm52s8y4.mjs";import{Baa as X,Caa as v,__ as O,f$ as I}from"./cli-1.1.7-370fzee5.mjs";import{$qa as K,Pqa as J,yra as T}from"./cli-1.1.7-avggtwyk.mjs";import{kta as y,lta as w}from"./cli-1.1.7-a1sffgeq.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.1.7-2gs8qp9e.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.7-cdgerv78.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.7-0fsxdwtb.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.7-9n1828tb.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
2
- export{Mq as _h,c as $h};
@@ -1,2 +0,0 @@
1
- import{kta as P}from"./cli-1.1.7-a1sffgeq.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 BW,w as CW,H as DW,g as EW,V as FW,W as GW,L as HW,Y as IW};
@@ -1,2 +0,0 @@
1
- import{Za as S}from"./cli-1.1.7-72scj2da.mjs";import{$a as c}from"./cli-1.1.7-5xg15za9.mjs";import{Dd as P,Hd as Vq}from"./cli-1.1.7-ftxzdrxy.mjs";import{Ld as I,Md as v,Nd as $,Od as Wq}from"./cli-1.1.7-sj06qxbn.mjs";import{Cz as A,Dz as Bq,GF as M,HF as Jq,HM as f,Hu as N,Hz as _,Iu as e,Jz as Gq,KM as Tq,jy as L,ky as h,mp as C,my as qq,op as r,pL as E,qL as Qq}from"./cli-1.1.7-g69xsadf.mjs";import{s4 as s}from"./cli-1.1.7-ac6ve6ks.mjs";import{Aaa as t,Q_ as D,Rga as F,S_ as n,Zga as a,yaa as w}from"./cli-1.1.7-370fzee5.mjs";import{Xja as x,_ja as d}from"./cli-1.1.7-tj4a73gm.mjs";import{_ka as j,bla as o}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as l,xla as y}from"./cli-1.1.7-gm3vnavd.mjs";import{gta as p}from"./cli-1.1.7-a1sffgeq.mjs";Jq();d();Gq();qq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);Bq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();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 E(),$(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 S()}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.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...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{Lq as Ya};
@@ -1,2 +0,0 @@
1
- import{jy as C,my as X}from"./cli-1.1.7-g69xsadf.mjs";import{s4 as W}from"./cli-1.1.7-ac6ve6ks.mjs";import{_6 as I,l7 as J,s7 as V}from"./cli-1.1.7-6327xnsa.mjs";import{Qha as H,jia as T}from"./cli-1.1.7-avhh3ykn.mjs";import{gta as P,kta as Q}from"./cli-1.1.7-a1sffgeq.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
2
- export{v as od,Y as pd};
@@ -1,2 +0,0 @@
1
- import{kta as j}from"./cli-1.1.7-a1sffgeq.mjs";var q,v,z;var w=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],v=[...q,"auto"],z=v});
2
- export{q as Mha,v as Nha,z as Oha,w as Pha};
@@ -1,2 +0,0 @@
1
- import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
2
- export{z as gta,A as hta,B as ita,C as jta,D as kta,F as lta,G as mta,H as nta};
@@ -1,2 +0,0 @@
1
- import{Go as E,Ho as m,Hp as l,Io as Xq,Jp as Rq,Kp as i,Lp as Aq,bp as S,gp as Zq}from"./cli-1.1.7-g69xsadf.mjs";import{Dca as u,Fca as g,Ica as h,Jca as n,Oca as vq,Rga as D,Zga as Qq}from"./cli-1.1.7-370fzee5.mjs";import{aja as d,cja as Uq}from"./cli-1.1.7-5a7dx8xv.mjs";import{Dka as P,Eka as v,Ika as f,Mka as M,Qka as y,_ka as V,bla as e}from"./cli-1.1.7-4jb3802k.mjs";import{Ala as C,Fla as _,yla as W,zla as O}from"./cli-1.1.7-gm3vnavd.mjs";import{Ksa as qq,ssa as p}from"./cli-1.1.7-w7qe5saq.mjs";import{kta as N}from"./cli-1.1.7-a1sffgeq.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
2
- export{Fq as qd,r as rd,nq as sd,lq as td,Oq as ud,QQ as vd,XQ as wd,Dq as xd};
@@ -1,3 +0,0 @@
1
- import{K as E0}from"./cli-1.1.7-70dq06tj.mjs";import{aa as s0}from"./cli-1.1.7-r8e45107.mjs";import{lb as k0}from"./cli-1.1.7-bmf232xq.mjs";import{qb as p0}from"./cli-1.1.7-dy1j64nd.mjs";import{Kc as W0,Mc as ac}from"./cli-1.1.7-4vn54hra.mjs";import{Pc as N,Qc as Ic}from"./cli-1.1.7-sy3nh37g.mjs";import{Sc as Q0,Tc as oc}from"./cli-1.1.7-2j5f9qsg.mjs";import{md as n0,nd as S0}from"./cli-1.1.7-wtb39gjs.mjs";import{Wg as P0,Xg as Fc}from"./cli-1.1.7-t7869eaw.mjs";import{$n as f0,AG as K0,BF as Mc,FG as Y,GG as M0,HG as Z0,IG as _c,KS as d,MS as O0,OS as Tc,UM as _0,VT as b0,Zn as p,_n as N0,ao as d0,bo as i0,cN as r0,co as g0,dU as B0,fU as D0,fo as W,go as j,iU as Rc,iy as X,lU as G0,my as l0,nU as Cc,oH as y0,pH as uc,qN as u0,sN as $0,wG as m0,xF as Y0,xG as x0,yG as r}from"./cli-1.1.7-g69xsadf.mjs";import{$Z as lc,EZ as G,I1 as x,WZ as X0,b1 as c0,d1 as y,h1 as g}from"./cli-1.1.7-8e3qerv0.mjs";import{o4 as e,p4 as m,q4 as U,r4 as C}from"./cli-1.1.7-1pt67y2k.mjs";import{R5 as J0,S5 as hc,i5 as H0,n5 as nc}from"./cli-1.1.7-6327xnsa.mjs";import{$da as w0,Cga as z0,Fga as mc,Pea as V0,Uda as V,Vea as s,Yda as J,Yea as t,_ea as q0,bea as U0,fea as k,rfa as I0}from"./cli-1.1.7-370fzee5.mjs";import{Eha as fc,zha as R}from"./cli-1.1.7-xv2n043b.mjs";import{Xha as C0,dia as L0,jia as ic}from"./cli-1.1.7-avhh3ykn.mjs";import{Xja as q,_ja as E}from"./cli-1.1.7-tj4a73gm.mjs";import{bla as v0}from"./cli-1.1.7-4jb3802k.mjs";import{Lla as K,Sla as R0,Vla as cc}from"./cli-1.1.7-aq4f719n.mjs";import{ioa as a0,oqa as T0,yra as e0}from"./cli-1.1.7-avggtwyk.mjs";import{gta as D,lta as L}from"./cli-1.1.7-a1sffgeq.mjs";E();Tc();e0();import{appendFileSync as Lc}from"fs";Cc();lc();M0();ic();mc();Mc();E();k();K0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}S0();E();x();k();d0();x0();g0();j();N0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},t0=Z.enabledMcpjsonServers||[],A0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...t0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...A0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(j0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function j0(f){return{label:f,value:f}}M0();l0();r0();$0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();Ic();hc();Rc();I0();ac();I0();v0();cc();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}oc();nc();_c();Fc();uc();k();fc();C();function wc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Uc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function pf(f,c,i){return Vc(f,c,{color:"error",beforeExit:i})}async function Vc(f,c,i){let{Text:n}=await import("./ink-1.1.7-00k9mpt1.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Uc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function sf(f,c){f.render(c),E0(),await f.waitUntilExit(),await O0(0)}async function tf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(W0()){let{MigrationDialog:o}=await import("./MigrationDialog-1.1.7-1k5yjmhb.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-1.1.7-0qnmq973.mjs");await z(f,(h)=>m(o,{onDone:()=>{wc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-1.1.7-h6jenc4t.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),G0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await D0();if(R("setupScreens_after_claudemd_check"),h){let F=B0(await b0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-1.1.7-9thhg137.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}k0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>s0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-1.1.7-0synn9dr.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-1.1.7-92afe7m0.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-1.1.7-etp5s6ps.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-1.1.7-d0as32bc.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function Af(f){P0();let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=p0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
2
- `;Lc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
3
- export{wc as C,Uc as D,pf as E,Vc as F,z as G,sf as H,tf as I,Af as J};
@@ -1,4 +0,0 @@
1
- import{Ln as R,Mn as BJ,QE as k,RE as HJ,ft as D,gt as hJ,vp as G,yp as a}from"./cli-1.1.7-g69xsadf.mjs";import{D8 as ZJ,O8 as $J,b9 as bJ}from"./cli-1.1.7-6327xnsa.mjs";import{Sda as WJ,fea as jJ,haa as C,iaa as GJ,jaa as h,kaa as FJ,laa as u,maa as kJ}from"./cli-1.1.7-370fzee5.mjs";import{Zha as x,jia as gJ}from"./cli-1.1.7-avhh3ykn.mjs";import{aja as q,cja as s,dja as Y,eja as r}from"./cli-1.1.7-5a7dx8xv.mjs";import{Hja as M,Mja as yJ}from"./cli-1.1.7-svpmye16.mjs";import{Aka as l,Bka as TJ,kka as o,lka as CJ,uka as n,vka as EJ}from"./cli-1.1.7-4jb3802k.mjs";import{Yma as c,Zma as OJ,ana as H,bna as F,cna as I,cra as QJ,dna as YJ,ema as g,ena as P,fma as zJ,fna as XJ,gma as A,hma as wJ,sma as f,tma as PJ,yra as mJ}from"./cli-1.1.7-avggtwyk.mjs";import{Hra as K,Ira as DJ}from"./cli-1.1.7-kbdranyx.mjs";import{kta as B}from"./cli-1.1.7-a1sffgeq.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 Yf,_J as Zf,JJ as _f,bQ as $f,uQ as ag,cJ as bg,iQ as cg,oJ as dg};
@@ -1,3 +0,0 @@
1
- import{M as A}from"./cli-1.1.7-f0hcstcc.mjs";import{Iga as $,Jga as F,Pga as z,Qga as H,Zga as P}from"./cli-1.1.7-370fzee5.mjs";import{$ja as _,Dka as O,Ika as w,Mka as V,Qka as C,_ka as X,aka as N,bka as B,bla as E,dka as W}from"./cli-1.1.7-4jb3802k.mjs";import{yra as L,zna as Z}from"./cli-1.1.7-avggtwyk.mjs";import{Ksa as y,ssa as q}from"./cli-1.1.7-w7qe5saq.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
2
- `)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
3
- export{e as x};
@@ -1,2 +0,0 @@
1
- import{ita as j}from"./cli-1.1.7-a1sffgeq.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.8"});
2
- export{Lt as s4};
@@ -1,2 +0,0 @@
1
- import{cc as Y}from"./cli-1.1.7-h8bj6vzr.mjs";import{UW as N,VW as C}from"./cli-1.1.7-yf8r2p8t.mjs";import{Lga as A,Nga as w}from"./cli-1.1.7-370fzee5.mjs";import{Xja as B,_ja as k}from"./cli-1.1.7-tj4a73gm.mjs";import{Eka as L,Ika as E,_ka as W,bla as j}from"./cli-1.1.7-4jb3802k.mjs";import{Fla as K,yla as G}from"./cli-1.1.7-gm3vnavd.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
- export{v as Yb,q as Zb,p as _b,g as $b,d as ac,R as bc};
@@ -1,2 +0,0 @@
1
- import{Xra as M,Yra as Y}from"./cli-1.1.7-kbdranyx.mjs";import{kta as W}from"./cli-1.1.7-a1sffgeq.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDE_CODE_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(){return!1}function O(){return!1}function x(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
2
- export{$ as Gla,N as Hla,X as Ila,_ as Jla,j as Kla,U as Lla,I as Mla,S as Nla,T as Ola,c as Pla,L as Qla,w as Rla,z as Sla,O as Tla,x as Ula,k as Vla};
@@ -1,18 +0,0 @@
1
- import{rJ as Q,uJ as F}from"./cli-1.1.7-g69xsadf.mjs";import{_ka as b,bla as y}from"./cli-1.1.7-4jb3802k.mjs";import{Ala as x,Fla as f}from"./cli-1.1.7-gm3vnavd.mjs";import{Ila as w,Vla as R}from"./cli-1.1.7-aq4f719n.mjs";import{Dna as $,Gna as j,yra as K}from"./cli-1.1.7-avggtwyk.mjs";import{kta as v}from"./cli-1.1.7-a1sffgeq.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
2
-
3
- `:"",B=k===G?`
4
-
5
- ${c}`:"";return`Scheduled loop tick.
6
-
7
- ${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
8
-
9
- If .claudin/loop.md exists, read it and follow it.
10
- Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
11
- Otherwise:
12
- - continue any unfinished work from the conversation
13
- - tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
14
- - run cleanup passes such as bug hunts or simplification when nothing else is pending
15
-
16
- Do not start new initiatives outside that scope.
17
- Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
18
- export{Y as di,G as ei,D as fi,g as gi,M as hi,U as ii};
@@ -1,15 +0,0 @@
1
- import{C2 as qJ,F2 as VJ}from"./cli-1.1.7-h6bad0y5.mjs";import{Bba as E,Gba as ZJ,Iba as jJ,Rga as q,V$ as YJ,Vea as U,W$ as TJ,W_ as W,X_ as f,Xda as $J,Zga as u,fea as AJ,rfa as m,zba as y}from"./cli-1.1.7-370fzee5.mjs";import{Xja as F,_ja as NJ}from"./cli-1.1.7-tj4a73gm.mjs";import{Dka as b,Eka as N,Ika as P,Mka as w,Qka as D,_ka as K,bla as xJ}from"./cli-1.1.7-4jb3802k.mjs";import{Ala as v,Dla as n,Fla as j,ila as QJ,zla as M}from"./cli-1.1.7-gm3vnavd.mjs";import{Ila as O,Vla as k}from"./cli-1.1.7-aq4f719n.mjs";import{kta as T}from"./cli-1.1.7-a1sffgeq.mjs";import{access as d,chmod as vJ,writeFile as RJ}from"fs/promises";import{homedir as h}from"os";import{join as B}from"path";function A(){return B(O(),"local")}function _J(J=h()){return B(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([B(Y,"local"),_J(Q)]))}function c(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function GJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return B(A(),"claudin")}function rJ(){return GJ(y())}async function I(J,Q,Y){try{return await RJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await w().mkdir(J),await I(B(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
2
- exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return U(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=T(()=>{E();m();k();j();f();D();u();P()});import{open as MJ,readFile as wJ,stat as yJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await wJ(J,{encoding:"utf8"})).split(`
3
- `)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
4
- `),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=T(()=>{j();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=y();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=N(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!v(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let _=await r(J),G=_?await e(_):null;if(G&&X===G)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let x=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(x.code!==0){q(new R(`Failed to refresh the ${Z} global install at ${$}: ${x.stdout} ${x.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new R(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new R(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!v(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!v(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function BJ(){return H(O(),".update.lock")}async function DJ(){let J=w(),Q=BJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!v($))return q($),!1}}catch(Y){if(!v(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=w(),Q=BJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(v(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new R("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=N(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return N(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new R("Another process is currently installing an update")),F("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
5
- Error: Windows NPM detected in WSL
6
-
7
- You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
8
- This configuration is not supported for updates.
9
-
10
- To fix this issue:
11
- 1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
12
- 2. Make sure Linux NPM is in your PATH before the Windows version
13
- 3. Try updating again with 'claude update'
14
- `),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",_=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(_.code!==0){let G=new R(`Failed to install new version of claude: ${_.stdout} ${_.stderr}`);return q(G),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),U((G)=>({...G,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var R,FJ=4096,IJ,JJ=300000;var dJ=T(()=>{NJ();E();m();xJ();jJ();k();j();f();D();u();TJ();VJ();AJ();o();P();R=class R extends QJ{};IJ=/ENOENT/i});
15
- export{rJ as qU,JQ as rU,QQ as sU,YQ as tU,ZQ as uU,g as vU,S as wU,a as xU,L as yU,l as zU,UJ as AU,HQ as BU,o as CU,zJ as DU,HJ as EU,IQ as FU,kQ as GU,bQ as HU,PQ as IU,BJ as JU,mJ as KU,DQ as LU,fQ as MU,EQ as NU,mQ as OU,uQ as PU,dQ as QU,dJ as RU};